Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: regnarg on March 04, 2014, 09:47:59 AM

Title: Doesn't boot with USB power
Post by: regnarg on March 04, 2014, 09:47:59 AM
When I boot OLinuXino with 12V power, everything works fine. But when I use the MiniUSB-OTG port, the boot gets stuck at "[    1.684866] [sw-ehci1]: Set USB Power ON" (watching using a USB-Serial-Cable-F connected to my laptop). I use the newest official Debian image. I tried both a laptop USB port and an ATX power supply 5V line as power sources. Cubieboard runs just fine from the same USB port.

More kernel messages:
<6>sunxi_emac Using mii phy on PortA
[    1.563040] sunxi_emac Using mii phy on PortA
<6>sunxi_emac Using MAC from SID: 02:04:04:03:23:20[    1.582169] sunxi_emac Using MAC from SID: 02:04:04:03:23:20<6>PPP generic driver version 2.4.2

[    1.592829] PPP generic driver version 2.4.2
<6>PPP BSD Compression module registered
[    1.601208] PPP BSD Compression module registered
<6>PPP Deflate Compression module registered
[    1.609934] PPP Deflate Compression module registered
<6>PPP MPPE Compression module registered
[    1.619961] PPP MPPE Compression module registered
<6>NET: Registered protocol family 24
[    1.628215] NET: Registered protocol family 24
<6>ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.638503] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
<6>ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.650248] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[sw-ehci1]: open clock
[    1.658849] [sw-ehci1]: open clock
[sw-ehci1]: Set USB Power ON
[    1.684866] [sw-ehci1]: Set USB Power ON
<6>sw-ehc


Sic, the last thing it writes is "sw-ehc".

Ideas?
Title: Re: Doesn't boot with USB power
Post by: frederic_alexandre on June 25, 2014, 10:07:11 PM
Had the same problem.
Someaon have an idea why ?
Thank you very much
Title: Re: Doesn't boot with USB power
Post by: JohnS on June 25, 2014, 11:52:36 PM
Looks like a software bug so try a different kernel etc.

John
Title: Re: Doesn't boot with USB power
Post by: frederic_alexandre on June 26, 2014, 10:17:05 AM
I tried with the one bought on the site, and it worked for a while and now it doesn't work anymore.
And I tried different kind of Sd card (differnt size ) with official kernel, still have the same error.
Do you know wheer it comes from
Thank you
Title: Re: Doesn't boot with USB power
Post by: frederic_alexandre on June 26, 2014, 11:28:57 PM
I tried to boot with the laste version
dd if=A20_debian_kernel_3_4_LAN_USBx2_Cards_LCD_HDMI_SATA_TS_X_GPIO_OTG_MIC_Video_accel_release7.img of=/mnt/mmcblk0

and I still have the same problem.
No log are ritten so I'm stuck.
Can someonee help ?
Thx
Title: Re: Doesn't boot with USB power
Post by: frederic_alexandre on July 01, 2014, 08:35:54 PM
It finally works.

I tried with a new kernel.
I tried with an line adaptator, the led stayed red and nothing happen.
I tried to boot with the factory android and it worked.
And for a reason I do not know I put again an homemade sdcard, and it worked !!!
Title: Re: Doesn't boot with USB power
Post by: frederic_alexandre on July 02, 2014, 11:09:22 PM
I finally understood how to boot:

I have to start with the android firmware, then put the sd card, and push reset.
Hope I would help
best regards,
Title: Re: Doesn't boot with USB power
Post by: dave-at-axon on July 03, 2014, 06:11:56 AM
I saw this with another unit I built yesterday.I put the Android Micro SD in and another blank SD in and switched it on. I got the normal boot animation and then the screen went black but the backlight was on.

I let it sit like this for about 5 mins, which is way more than it should need and then powered off. I removed the SD and powered up. This time is was fine. I then inserted the SD, went to settings and formatted the SD. Now it boots OK.

I didn't have the debug cable connected this time but today I plan to try this again with another blank SD card and see what that shows.
Title: Re: Doesn't boot with USB power
Post by: frederic_alexandre on July 03, 2014, 09:29:55 AM
I have the debug cable plugged.
The last line printed is

[sw-ehci1]: Set USB Power ON
[    1.684866] [sw-ehci1]: Set USB Power ON
<6>sw-ehc

It looks like it stucks during USB power on but I do not understand why a warm reboot works in this case.