Re: Pi2 bootcode.bin puzzle

Liste des GroupesRevenir à cs raspberry-pi 
Sujet : Re: Pi2 bootcode.bin puzzle
De : theom+news (at) *nospam* chiark.greenend.org.uk (Theo)
Groupes : comp.sys.raspberry-pi
Date : 28. Mar 2025, 18:43:29
Autres entêtes
Organisation : University of Cambridge, England
Message-ID : <buh*WFB+z@news.chiark.greenend.org.uk>
References : 1 2 3 4 5 6
User-Agent : tin/1.8.3-20070201 ("Scotasay") (UNIX) (Linux/5.10.0-28-amd64 (x86_64))
druck <news@druck.org.uk> wrote:
On 27/03/2025 15:53, Theo wrote:
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.
 
That's the only way it works on older devices.

Supposedly you can make them USB boot by just providing a bootcode.bin on
SD, then they pick up start.elf, config.txt etc from USB.  I've not tried
this, but it appears to work for some people.

(previously bootcode.bin didn't know anything about USB, but since Pi 3/4/5
can USB boot I believe that code has now made itself into bootcode.bin)

Theo

Date Sujet#  Auteur
25 Mar 25 * Pi2 bootcode.bin puzzle24bp
25 Mar 25 +* Re: Pi2 bootcode.bin puzzle6Chris Townley
26 Mar 25 i`* Re: Pi2 bootcode.bin puzzle5bp
27 Mar 25 i `* Re: Pi2 bootcode.bin puzzle4druck
27 Mar 25 i  `* Re: Pi2 bootcode.bin puzzle3Theo
27 Mar 25 i   `* Re: Pi2 bootcode.bin puzzle2druck
28 Mar 25 i    `- Re: Pi2 bootcode.bin puzzle1Theo
25 Mar 25 `* Re: Pi2 bootcode.bin puzzle17Theo
26 Mar 25  `* Re: Pi2 bootcode.bin puzzle16bp
26 Mar 25   `* Re: Pi2 bootcode.bin puzzle15Theo
28 Mar 25    `* Re: Pi2 bootcode.bin puzzle14bp
28 Mar 25     `* Re: Pi2 bootcode.bin puzzle13Chris Elvidge
29 Mar 25      `* Re: Pi2 bootcode.bin puzzle12bp
29 Mar 25       +* Re: Pi2 bootcode.bin puzzle10Mike Scott
29 Mar 25       i`* Re: Pi2 bootcode.bin puzzle9bp
29 Mar 25       i +- Re: Pi2 bootcode.bin puzzle1The Natural Philosopher
29 Mar 25       i +* Re: Pi2 bootcode.bin puzzle5Theo
30 Mar 25       i i`* Re: Pi2 bootcode.bin puzzle4bp
31 Mar 25       i i `* Re: Pi2 bootcode.bin puzzle3bp
31 Mar 25       i i  `* Re: Pi2 bootcode.bin puzzle2The Natural Philosopher
31 Mar 25       i i   `- Re: Pi2 bootcode.bin puzzle1bp
31 Mar 25       i `* Re: Pi2 bootcode.bin puzzle2Mike Scott
31 Mar 25       i  `- Re: Pi2 bootcode.bin puzzle1bp
1 Apr 25       `- Re: Pi2 bootcode.bin puzzle1bp

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal