USB OTG Boot
#14
(01-10-2016, 02:45 PM)ssvb Wrote:
(01-10-2016, 01:46 PM)devilsclaw Wrote: The reason why I was trying to looking at a schematic is because I got the dev board yesterday and I'm looking into starting to develop for it. Not having to pull the sdcard every time I make a simple change would be nice. I don't want to do development on the pine its self since the sdcard could get corrupt while doing kernel development or the system might become un-bootable.
USB boot is handled somewhat differently in Allwinner's SDK and in the mainline U-boot. For the mainline U-Boot, you can find  more details here. A bit tricky thing is that the SPL load address is not 0x0 but 0x10000 in A64 and A80. We now have all the necessary changes in sunxi-tools now, but there were no people willing to test FEL USB boot on A80 (apparently A80 is not very popular).

For getting the mainline U-Boot up and running, the most important part is the DRAM controller initialization. For some Allwinner SoC variants this code became open sourced at https://github.com/allwinner-zh/bootload...loader/bsp under a proper GPL license. For the other SoC variants (Allwinner H3) it was more complicated and people had to disassemble the boot0 bootloader binary. If the Pine64 folks can ask Allwinner to open source the bootloader code for A64, then things are going to be a lot easier and more straightforward. Also thus speeding up the development significantly.

(01-10-2016, 01:57 PM)tllim Wrote: The developer board and production board are comes from same schematic. The only different is power LED light where developer board is green and production board is red color. We can release the schematic to developer in two to three weeks time.
Thanks for this information and for the schematic release promise. While it is not available yet, could you please tell us how is the power getting supplied to the lower USB connector (the USB OTG one)? Is the VBUS pin directly connected to +5V or is there some kind of switch available to turn it on and off?

The VBUS connect to a power switch LPW5210B5F with pine 4 en pin tie to high and Rset set as 10K. Here is the LPW5210 data sheet link: http://www.kcttek.com/uploads/soft/LPW5210.pdf. Please lets us know on your concern so that we can explore together.


Messages In This Thread
USB OTG Boot - by devilsclaw - 01-09-2016, 09:53 PM
RE: USB OTG Boot - by tllim - 01-09-2016, 10:59 PM
RE: USB OTG Boot - by Andrew2 - 01-10-2016, 05:45 AM
RE: USB OTG Boot - by tllim - 01-10-2016, 12:45 PM
RE: USB OTG Boot - by devilsclaw - 01-10-2016, 01:46 PM
RE: USB OTG Boot - by tllim - 01-10-2016, 01:57 PM
RE: USB OTG Boot - by Andrew2 - 01-10-2016, 02:43 PM
RE: USB OTG Boot - by ssvb - 01-10-2016, 07:40 AM
RE: USB OTG Boot - by Andrew2 - 01-10-2016, 07:48 AM
RE: USB OTG Boot - by ssvb - 01-10-2016, 08:00 AM
RE: USB OTG Boot - by Andrew2 - 01-10-2016, 08:17 AM
RE: USB OTG Boot - by ssvb - 01-10-2016, 08:19 AM
RE: USB OTG Boot - by ssvb - 01-10-2016, 02:45 PM
RE: USB OTG Boot - by tllim - 01-10-2016, 03:29 PM
RE: USB OTG Boot - by ssvb - 01-10-2016, 04:47 PM
RE: USB OTG Boot - by tllim - 01-10-2016, 06:04 PM
RE: USB OTG Boot - by devilsclaw - 01-10-2016, 07:20 PM
RE: USB OTG Boot - by ssvb - 01-10-2016, 09:56 PM
RE: USB OTG Boot - by janjwerner - 01-22-2016, 08:39 PM
RE: USB OTG Boot - by tllim - 01-23-2016, 11:17 AM
RE: USB OTG Boot - by ssvb - 01-23-2016, 02:27 AM
RE: USB OTG Boot - by Quintus23M - 01-24-2016, 01:51 PM
RE: USB OTG Boot - by tllim - 01-24-2016, 02:04 PM
RE: USB OTG Boot - by kenjiru - 10-24-2016, 04:27 AM
RE: USB OTG Boot - by Learnincurve - 02-24-2017, 04:15 AM
RE: USB OTG Boot - by CaptainZalo - 03-01-2017, 03:22 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pine Board using linux stuck during boot sequence ktaragorn 4 8,443 03-30-2019, 06:48 AM
Last Post: ktaragorn
  Secure boot & OTP efuse program devangpanchal90 0 2,654 05-25-2018, 01:59 AM
Last Post: devangpanchal90
  boot process for pine a64 awaysu 1 4,497 01-24-2018, 05:09 AM
Last Post: xalius
  Can't boot headless after running update_uboot.sh Borglesnorgle Williams 2 4,396 08-17-2017, 04:08 AM
Last Post: Borglesnorgle Williams
Exclamation Pine A64 Plus Fails to Boot grobbs 35 42,627 06-28-2017, 08:53 AM
Last Post: sarav_sara
  Boot issues: What todo when you muck up your FSTAB file Dagremote 1 3,888 04-16-2017, 10:28 PM
Last Post: pfeerick
Question Pine64 cannot boot jamiechang917 6 9,944 04-16-2017, 10:21 PM
Last Post: pfeerick
  U-Boot for A64 git longsleep 38 70,784 03-21-2017, 01:59 PM
Last Post: longsleep
  OpenWRT supports ARMv8 - arm64, u-boot problem? rgdonato 4 6,927 03-20-2017, 03:59 PM
Last Post: rgdonato
  How to boot alternative kernel image with u-boot? zhouer 3 7,024 06-27-2016, 04:15 AM
Last Post: ssvb

Forum Jump:


Users browsing this thread: 1 Guest(s)