-
Posts
19 -
Joined
-
Last visited
Content Type
Forums
Store
Crowdfunding
Applications
Events
Raffles
Community Map
Posts posted by deadmetaphor
-
-
-
Aha! No wonder CONFIG_USB_MUSB_GADGET=y always had that error...it's decided at compile time. Thanks!
I did find a lot of "gadget" related handling in musb, now I have to figure out if MUSB_PORT_MODE_DUAL_ROLE supports gadget mode. And, if I have the right .config to make it work (assuming it's expected to work on A31 based boards).
-
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
-
Thanks!
I had CONFIG_USB_MUSB_DUAL_ROLE=y instead of CONFIG_USB_MUSB_HOST=y
Also, I had to enable usb_otg in the dtb for BPI M2
And, now musb is printing something to dmesg, although it's an error:
[ 74.232805] musb-sunxi 1c19000.usb: Invalid or missing 'dr_mode' property [ 74.239659] musb-sunxi: probe of 1c19000.usb failed with error -22
-
Thanks for that pastebin, I had no clue that musb was applicable for sun*i devices too.
musb is all but quiet on this machine
Which def_config are you using?
-
Yup, the BPI-M2 Android kernel is too "limiting" too. Because my final aim is to experiment with configfs gadgets (which seems more full-featured in the mainline kernel), but for some reason, Android refuses to boot if I do not enable android_usb.
I didn't try to load any modules manually. I'll try that now.
-
I was able to boot with a 4.4-rc6 kernel, but USB peripheral drivers don't seem to be present (at least /sys/class/udc is empty)
Guess, only Android images have this working
--
-
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.
-
Thanks, I'll try this.
-
Thanks for your time, Igor!
My serial console shows almost the same output I get on HDMI, I guess the verbosity needs to be bumped up somehow.
-
Wow! That was quick!!
Surprisingly, both sun6i-a31s-bananapi-m2.dts and sun6i-a31s-sinovoip-bpi-m2.dts are in the tree!
Just curious - where do I look for the U-boot logs?
-
Exact same story
But there's some hope (just to keep myself happy) - I randomly came across phy-sun4i-usb.ko (assuming it is also applicable for sun6i) in the modules list
-
Thanks for the M2 debs!
It is failing to boot though, and gets stuck when "starting kernel" (screenshot)There was one error when installing the new DTB
dpkg: error processing archive linux-dtb-dev-sunxi_5.00_armhf.deb (--install): trying to overwrite '/boot/dtb/sun8i-a33-et-q8-v1.6.dtb', which is also in package linux-dtb-next-sunxi 4.5
I'll try the H3 debs now
-
Wanted to confirm if that was a Banana Pi M2 image, because it didn't even boot
-
Thanks Igor!
I am downloading the first image and will test with it.
-
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.
-
OK, this was because I wasn't using the master branch of igor's lib and the branch I was on wasn't picking the latest stable release correctly.
It's all working now.
-
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?
IR sensor on Banana Pi M2
in Allwinner sunxi
Posted
Thanks tkaiser!