Date: Wed, 22 Apr 2020 22:28:29 +0200 From: "Georg Lindenberg" <georg.lindenberg@web.de> To: freebsd-arm@freebsd.org Subject: Booting from USB on RPI3 Message-ID: <trinity-19081201-3024-4046-817a-48321c51a515-1587587309088@3c-app-webde-bap64> In-Reply-To: <20200421181224.GC96994@www.zefox.net> References: <mailman.61.1587470402.80084.freebsd-arm@freebsd.org> <trinity-4938b1d4-f29f-4907-bedd-65be21112e48-1587489497227@3c-app-webde-bs65> <20200421181224.GC96994@www.zefox.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> Gesendet: Dienstag, 21. April 2020 um 20:12 Uhr > Von: "bob prohaska" <fbsd@www.zefox.net> > An: "Georg Lindenberg" <georg.lindenberg@web.de> > Cc: freebsd-arm@freebsd.org, "bob prohaska" <fbsd@www.zefox.net> > Betreff: Re: Booting from USB on RPI3 > > On Tue, Apr 21, 2020 at 07:18:17PM +0200, Georg Lindenberg wrote: > > Hey, > > These are the steps I took to boot my RPI3B from usb. > > > > 1. Put the .img file on both the usb device and the SD Card (e.g. with= dd). > > 2. Plug in everything. RPI starts uboot from the SD Card. > > 3. Type any key to enter the U-Boot prompt. Then type "run usb_boot". > > > > That's a command I didn't know about, despite considerable looking. > Is it described anywhere? > > It'll be my next experiment! > > > You can see all the uboot variables with "env print". Maybe it is poss= ible to add "boot_cmd=3Drun usb_boot" to one of the config files, but I wa= s too scared to try it. > > My Pi3's setup is experimental, so crashing/corrupting it isn't a proble= m. > > Thanks very much for writing! > > bob prohaska > > Uboot will run bootcmd, unless you hit a key. Then it will enter the shell= . You can track down bootcmd (env print bootcmd): bootcmd=3Ddistro_bootcmd distro_bootcmd=3Dfor target in ${boot_targets}; do run bootcmd_${target} boot_targets=3Dmmc0 mmc1 usb0 pxe dhcp So, in this loop, usb0 is in third place. :-/ mmc will boot first. U-Boot> env print bootcmd_usb0 bootcmd_usb0=3Ddevnum=3D0; run usb_boot Anyways, one way to tell uboot to boot the usb permanently would be sth li= ke this: setenv bootcmd=3Drun usb_boot saveenv However: U-Boot> saveenv Saving Environment to FAT... Failed (1) This makes me wonder whether CONF_ENV_FAT_DEVICE_AND_PART is set correctly= . It should be 0:1, or 0:auto, not 1:1.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?trinity-19081201-3024-4046-817a-48321c51a515-1587587309088>