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 : 31. Mar 2025, 01:10:38
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vscmhu$2nksn$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11
User-Agent : tin/2.6.4-20241224 ("Helmsdale") (FreeBSD/14.2-STABLE (arm64))
bp@www.zefox.net wrote:
Theo <theom+news@chiark.greenend.org.uk> wrote:
bp@www.zefox.net wrote:
 
AIUI, config.txt sets up the Pi, cmdline.txt furnishes
runtime arguments to the kernel when that kernel is
linux. If this isn't true somebody please correct me!
 
Does it show the FreeBSD beastie text-mode screen?
https://docs.freebsd.org/images/books/handbook/virtualization/qemu-freebsd02.png
 
In which case you can probably set things up in loader.conf:
https://docs.freebsd.org/en/books/handbook/boot/index.html#boot-loader
 
the same way you do on x86.
 
Might it be possible to let the machine boot from microSD to the
loader prompt, next re-load the kernel from the USB drive, then
start the new kernel and finally mountroot from USB?
 
That seems too easy. I must be missing something.

Well, it's less easy than I thought, but it does seem to work.

The method is to interrupt boot just before the kernel starts.
Next, unload the kernel, set the currdev to disk0s2a, set
the root device to da0s2a, load the kernel again (from the
new root device and boot.

Setting currdev and rootdev can be done in /boot/loader.conf
on the microSD's FreeBSD, I've asked on the freebsd-arm mailing
list where the unload and load commands should go.

There are still some problems with usb disk discovery failing,
but this is a big improvement.

Thank you Theo!

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