Jump to content

deadmetaphor

Members
  • Posts

    19
  • Joined

  • Last visited

Posts posted by deadmetaphor

  1. I am using the 4.4-rc6 kernel.

     

    You were exactly right about device tree config! 

     

    Setting dr_mode to "otg" (and CONFIG_USB_MUSB_DUAL_ROLE=y) gets rid of the "Invalid or missing 'dr_mode' property" error, but then there nothing in dmesg about musb (and right now I don't have an OTG cable to test if the host mode is working)

     

    Setting dr_mode to "host" (CONFIG_USB_MUSB_HOST=y) gave the following

    # dmesg | grep musb
    [  107.463859] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    [  107.463903] musb-hdrc: MHDRC RTL version 0.0 
    [  107.463937] musb-hdrc: 11/11 max ep, 5184/8192 memory
    [  107.464250] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
    [  107.464299] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
    [  107.465117] usb usb3: Manufacturer: Linux 4.4.0-rc6-sunxi musb-hcd
    [  107.465135] usb usb3: SerialNumber: musb-hdrc.1.auto

    So, I assume it is working (again, unable to test it at the moment).

     

    Setting dr_mode to "otg" (and CONFIG_USB_MUSB_GADGET=y) always gives an error

    musb-sunxi 1c19000.usb: Invalid or missing 'dr_mode' property
    musb-sunxi: probe of 1c19000.usb failed with error -22
  2. Yup, dmesg says ttyS0 is the serial port.

     

    I did some digging around to learn a little more about U-boot and DTBs

     

    Here's the commit that adds sun6i-a31s-sinovoip-bpi-m2 to the Makefile, but I can't figure out why sun6i-a31s-bananapi-m2.dts is still in the tree and when/why it was removed from the Makefile.

     

    While the BPI-Mainline-uboot Makefile contains only sun6i-a31s-bananapi-m2.dts

     

    I tried rebuilding the debs after changing the defconfig in U-boot. But the kernel doesn't boot anyway.

     

    How do I see the detailed logs? I did change the loglevel in boot.cmd to 8, but the verbosity remains the same.

  3. This isn't specific to armbian, I guess.

     

    I am not sure if the mainline linux kernel supports USB peripheral/OTG on Banana Pi M2.

     

    Armbian doesn't list anything in 

    /sys/class/udc

    , so I assume it isn't. 

     

    In the v3.3 kernel released by Sinovoip, there is a dedicated option in the menuconfig for sunxi_usb. I am not sure where to look in the mainline kernel.

     

    Anybody has a better idea about this? 

     

    Thank you.

  4. Hi,

     

    I am new to armbian, and I was trying to compile the vanilla kernel for the Banana Pi M2. 

     

    I get the following error:

    Compiling DTB ccache ...                                                       
     
      DTC     arch/arm/boot/dts/sun5i-a13-inet-98v-rev2.dtb                        
      DTC     arch/arm/boot/dts/sun5i-a13-olinuxino.dtb                            
      DTC     arch/arm/boot/dts/sun5i-a13-olinuxino-micro.dtb                      
      DTC     arch/arm/boot/dts/sun5i-a13-q8-tablet.dtb                            
      DTC     arch/arm/boot/dts/sun5i-a13-utoo-p66.dtb                             
      DTC     arch/arm/boot/dts/sun5i-r8-chip.dtb                                  
      DTC     arch/arm/boot/dts/sun6i-a31-app4-evb1.dtb                            
      DTC     arch/arm/boot/dts/sun6i-a31-colombus.dtb                             
    ERROR (duplicate_node_names): Duplicate node name /soc@01c00000/pinctrl@01c2   
    ERROR: Input tree has errors, aborting (use -f to force output)                
    make[1]: *** [arch/arm/boot/dts/sun6i-a31-app4-evb1.dtb] Error 2               
    make[1]: *** Waiting for unfinished jobs....                                   
    ERROR (duplicate_node_names): Duplicate node name /soc@01c00000/pinctrl@01c2   
    ERROR: Input tree has errors, aborting (use -f to force output)                
    make[1]: *** [arch/arm/boot/dts/sun6i-a31-colombus.dtb] Error 2                
    make: *** [dtbs] Error 2   
    

    I thought I missed some instruction, and restarted the whole process, I still similar error

    Compiling DTB ccache ...                                                       
     
    make[1]: *** [arch/arm/boot/dts/sun6i-a31-app4-evb1.dtb] Error 2               
    make[1]: *** Waiting for unfinished jobs....                                   
      DTC     arch/arm/boot/dts/sun6i-a31-m9.dtb                                   
    ERROR (duplicate_node_names): Duplicate node name /soc@01c00000/pinctrl@01c2   
    ERROR: Input tree has errors, aborting (use -f to force output)                
    make[1]: *** [arch/arm/boot/dts/sun6i-a31-colombus.dtb] Error 2                
    ERROR (duplicate_node_names): Duplicate node name /soc@01c00000/pinctrl@01c2   
    ERROR: Input tree has errors, aborting (use -f to force output)                
    make[1]: *** [arch/arm/boot/dts/sun6i-a31-hummingbird.dtb] Error 2             
    ERROR (duplicate_node_names): Duplicate node name /soc@01c00000/pinctrl@01c2   
    ERROR: Input tree has errors, aborting (use -f to force output)                
    make[1]: *** [arch/arm/boot/dts/sun6i-a31-m9.dtb] Error 2                      
    ERROR (duplicate_node_names): Duplicate node name /soc@01c00000/pinctrl@01c2   
    ERROR: Input tree has errors, aborting (use -f to force output)                
    make[1]: *** [arch/arm/boot/dts/sun6i-a31-i7.dtb] Error 2                      
    make: *** [dtbs] Error 2                                                    

    The host machine is a Ubuntu 14.04 amd64 with kernel version 3.19.0-41-generic

     

    What am I doing wrong here?

     
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines