Sujet : Re: Pi2 bootcode.bin puzzle
De : theom+news (at) *nospam* chiark.greenend.org.uk (Theo)
Groupes : comp.sys.raspberry-piDate : 27. Mar 2025, 16:53:32
Autres entêtes
Organisation : University of Cambridge, England
Message-ID : <auh*F0v+z@news.chiark.greenend.org.uk>
References : 1 2 3 4
User-Agent : tin/1.8.3-20070201 ("Scotasay") (UNIX) (Linux/5.10.0-28-amd64 (x86_64))
druck <
news@druck.org.uk> wrote:
It may still work on the Pi 2B, but being slower you may need to
increase the value of rootwait in cmdline.txt - particularly if it is a
spinning disc rather than an SSD - it could take 60 seconds before the
drive is readable.
I think the problem here is that start.elf, config.txt, the kernel and
cmdline.txt are all on the USB device - you can't put a timeout in
cmdline.txt because by that point you already need the USB device up to read
that file.
The alternative approach would be to have a regular bootcode.bin, start.elf,
kernel, etc on the SD card and then tell the kernel to find its rootfs on a
USB drive, at which point rootwait may help. (I think Bob is using FreeBSD
but there is probably an equivalent option there). Or to interpose u-boot
for the 'kernel' on the SD card, and then tell u-boot to find the kernel on
USB.
Theo