USB OTG Boot
#18
(01-10-2016, 07:20 PM)devilsclaw Wrote: Just to let you know my Idea of how I would use the USB boot, if we can get it running.

this depends on how much SRAM is available on the CPU so it might need to be more complex.

if there is enough SRAM then use the first stage boot loader to get the DRAM and Ethernet initialized, second stage gets pulled through Ethernet, second stage init all hardware that is needed besides DRAM, third stage is the full u-boot,
The whole U-Boot can boot over USB just fine and that's how it is currently implemented. The only real reason to switch from the USB FEL protocol (implemented in the boot ROM) to some other communication method is the transfer speed. The FEL transfer speed is around ~900 KB/s for the other Allwinner SoC variants, you can find this information in the SoC support status table. And because the U-Boot size is only around 300 KB, we don't gain much from switching to Ethernet too early.

Quote:and finally load everything from Ethernet into DRAM and boot. this being more of an embedded linux style just for kernel development. or instead of a ramfs image it could also be a NFS boot at that point.
That's how it works now on the older Allwinner chips (A10/A13/A20/A31/...). After U-Boot is loaded, you are free to use any method to load the Linux kernel and rootfs. Ethernet is just one of these methods. NFS boot works and many people are using it. However the beauty of USB OTG is that Ethernet is not strictly required. You can boot everything over the same USB cable and use cdc_ether for NFS. This is particularly useful for tablets.

Quote:This would allow a lot faster development of just about anything.
That's a chicken/egg problem :-) We can do this if we have full U-Boot support with all the bells and whistles, including the Ethernet driver. Then for mounting NFS root you need the Ethernet driver in the Linux kernel too. But when we already have everything, there is no development to speed up anymore.


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 9,117 03-30-2019, 06:48 AM
Last Post: ktaragorn
  Secure boot & OTP efuse program devangpanchal90 0 2,813 05-25-2018, 01:59 AM
Last Post: devangpanchal90
  boot process for pine a64 awaysu 1 4,773 01-24-2018, 05:09 AM
Last Post: xalius
  Can't boot headless after running update_uboot.sh Borglesnorgle Williams 2 4,757 08-17-2017, 04:08 AM
Last Post: Borglesnorgle Williams
Exclamation Pine A64 Plus Fails to Boot grobbs 35 46,164 06-28-2017, 08:53 AM
Last Post: sarav_sara
  Boot issues: What todo when you muck up your FSTAB file Dagremote 1 4,170 04-16-2017, 10:28 PM
Last Post: pfeerick
Question Pine64 cannot boot jamiechang917 6 10,683 04-16-2017, 10:21 PM
Last Post: pfeerick
  U-Boot for A64 git longsleep 38 75,370 03-21-2017, 01:59 PM
Last Post: longsleep
  OpenWRT supports ARMv8 - arm64, u-boot problem? rgdonato 4 7,416 03-20-2017, 03:59 PM
Last Post: rgdonato
  How to boot alternative kernel image with u-boot? zhouer 3 7,443 06-27-2016, 04:15 AM
Last Post: ssvb

Forum Jump:


Users browsing this thread: 1 Guest(s)