Re: Pi2 bootcode.bin puzzle

Liste des GroupesRevenir à cs raspberry-pi 
Sujet : Re: Pi2 bootcode.bin puzzle
De : bp (at) *nospam* www.zefox.net
Groupes : comp.sys.raspberry-pi
Date : 29. Mar 2025, 05:47:36
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vs7u18$g2gp$1@dont-email.me>
References : 1 2 3 4 5 6
User-Agent : tin/2.6.4-20241224 ("Helmsdale") (FreeBSD/14.2-STABLE (arm64))
Chris Elvidge <chris@internal.net> wrote:
On 28/03/2025 at 15:19, bp@www.zefox.net wrote:
Theo <theom+news@chiark.greenend.org.uk> wrote:
>
I believe that config.txt is consumed by the GPU-side firmware, which is
start*.elf.  bootcode.bin is just enough to be able to load start.elf
and config.txt from storage.  I'd guess that if that storage is USB, it's
too early to have read config.txt.
 
It looks like the path of least resistance is to let FreeBSD boot from
microSD, mount that as root and then mount the USB disk as /usr, with
/var/, /tmp/ and swap mounted from the USB device, either as links
to /usr or maybe as hard partitions.
 
That worked fine in the very early days of FreeBSD on the Pi2.
There isn't much write activity to the root filesystem in a
"production" environment, only during OS upgrades. If the microSD
is sufficiently oversized it'll last long enough.
 
I'd hoped bootcode.bin could be upgraded/tuned to boot from a
USB3 disk on a Pi2, but apparently not.
 
Thanks to everyone for writing!
 
bob prohaska
 
 
 
 
Perhaps I'm coming here too late, but the way I did it was to keep the
whole of the /boot directory on the SD card and put the whole of /
(minus /boot contents) onto the USB SSD. Change the PARTUUID parameter
in cmdline.txt to the new SSD partuuid and of course update the SSD
/etc/fstab to the new values. Worked fine for Pi2B and Pi2B+.

I've yet to figure out what the FreeBSD equivalent to cmdline.txt
is. That might be the key to making your approach work.

Is this what fstab would look like?

/dev/da0s2a mounted on /
/dev/mmcsd0s2a mounted on  /boot
/dev/mmcsd0s1 mounted on /boot/efi
/dev/da0s2d mounted on /usr

That doesn't look impossible, but .....
Somehow it seems wrong to me, as it requires access to /boot
"out of order".  Maybe the loader can do it. 

In the end, mounting the microsd as root and just hanging /usr
off of it will relieve most of the limitations of flash storage.
/var, /tmp and /home can be linked to /usr, swap is hardware anyway.
This much I know how to do.

Early on there was much concern about "wearing out" flash storage.
In practice, it's turned out to be a minor issue. Write delays
can be a problem, but it really bites hard only on network traffic.
Putting the most-written filesystems on a USB disk solves most of
the problems. It would be nice to not need microSD at all once
booted, but in practical terms that isn't hugely beneficial.

Thanks for writing!

bob prohaska


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