* [9fans] 9front USB EFI Boot hang
@ 2025-01-27 17:34 Paul Lalonde
2025-01-27 18:15 ` ori
2025-01-27 18:17 ` Jacob Moody
0 siblings, 2 replies; 9+ messages in thread
From: Paul Lalonde @ 2025-01-27 17:34 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
[-- Attachment #1: Type: text/plain, Size: 627 bytes --]
Hi,
I was trying to bring up 9front on another machine I have (Lenovo
Thinkstation P620 with a Threadripper Pro 3955WX), and I hang right after
the "boot\n" output of the EFI loader.
Any suggestions on how to debug this? Is there a simple way to just build
the EFI and 9fat partitions on a USB stick until I have something that
boots far enough to mount root from my cpu server?
Paul
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Tb7ff9ca34535affa-M260c45424e5ca4e807eab37e
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
[-- Attachment #2: Type: text/html, Size: 1142 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [9fans] 9front USB EFI Boot hang
2025-01-27 17:34 [9fans] 9front USB EFI Boot hang Paul Lalonde
@ 2025-01-27 18:15 ` ori
2025-01-27 18:17 ` Jacob Moody
1 sibling, 0 replies; 9+ messages in thread
From: ori @ 2025-01-27 18:15 UTC (permalink / raw)
To: 9fans
Quoth Paul Lalonde <paul.a.lalonde@gmail.com>:
> Hi,
> I was trying to bring up 9front on another machine I have (Lenovo
> Thinkstation P620 with a Threadripper Pro 3955WX), and I hang right after
> the "boot\n" output of the EFI loader.
>
> Any suggestions on how to debug this? Is there a simple way to just build
> the EFI and 9fat partitions on a USB stick until I have something that
> boots far enough to mount root from my cpu server?
>
> Paul
>
The code for efi boot is in /sys/src/boot/efi,
and you can build a custom iso by following section
5.3 of the fqa: https://fqa.9front.org/fqa5.html .
You should be able to start adding prints to bisect
where it actually hangs.
I think that if you edit the /sys/lib/dist/mkfile
to remove $proto, or point at a slimmed down proto,
then you should more or less get what you want.
the format of proto files is documented in proto(2).
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Tb7ff9ca34535affa-M5ec6e70fbbd5efca114ace7e
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [9fans] 9front USB EFI Boot hang
2025-01-27 17:34 [9fans] 9front USB EFI Boot hang Paul Lalonde
2025-01-27 18:15 ` ori
@ 2025-01-27 18:17 ` Jacob Moody
2025-01-27 19:28 ` Paul Lalonde
1 sibling, 1 reply; 9+ messages in thread
From: Jacob Moody @ 2025-01-27 18:17 UTC (permalink / raw)
To: 9fans
On 1/27/25 11:34, Paul Lalonde wrote:
> Hi,
> I was trying to bring up 9front on another machine I have (Lenovo Thinkstation P620 with a Threadripper Pro 3955WX), and I hang right after the "boot\n" output of the EFI loader.
>
> Any suggestions on how to debug this? Is there a simple way to just build the EFI and 9fat partitions on a USB stick until I have something that boots far enough to mount root from my cpu server?
If I got to "boot" then its possible it actually got in to the kernel and it's the kernel that is hanging.
Regardless, if you want to attempt to debug the EFI bootloader you can find it in /sys/src/boot/efi.
The efi bootloader will search either the ESP itself for a kernel as well as a 9fat partition.
So for just debugging, you can make yourself an ESP and place both the the bootloader and a kernel there.
We have had reports of some machines having buggy EFI firmware that forces people to place their kernel
on the ESP, so maybe that's worth a try as well? Although I think with those the bootloader complains
that its not able to find the kernel and doesn't just hang.
If you do want to make yourself a plan9 partition + a 9fat perhaps take a look at what the installer
scripts do (/rc/bin/inst/*) to see the process.
Thanks,
moody
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Tb7ff9ca34535affa-M49c5421caeb0b2872c74579c
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [9fans] 9front USB EFI Boot hang
2025-01-27 18:17 ` Jacob Moody
@ 2025-01-27 19:28 ` Paul Lalonde
2025-01-27 19:30 ` David Leimbach via 9fans
0 siblings, 1 reply; 9+ messages in thread
From: Paul Lalonde @ 2025-01-27 19:28 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 2115 bytes --]
Thank Ori and Moody.
I've started walking through making my custom iso and efi partition.
Reasonably straightforward, though I get this error when building:
fluxcpu% disk/mk9660 -c9j -B pc/9bootiso -E efi/efiboot.fat -v 'Plan 9
Front ('^$objtype^')' /tmp/test.iso
warning: boot image too big; will only load the first 2K
Is it normal for 9bootiso to be 6664 bytes long? Or is there something
broken in my source tree?
Paul
On Mon, Jan 27, 2025 at 10:18 AM Jacob Moody <moody@posixcafe.org> wrote:
> On 1/27/25 11:34, Paul Lalonde wrote:
> > Hi,
> > I was trying to bring up 9front on another machine I have (Lenovo
> Thinkstation P620 with a Threadripper Pro 3955WX), and I hang right after
> the "boot\n" output of the EFI loader.
> >
> > Any suggestions on how to debug this? Is there a simple way to just
> build the EFI and 9fat partitions on a USB stick until I have
> something that boots far enough to mount root from my cpu server?
>
> If I got to "boot" then its possible it actually got in to the kernel and
> it's the kernel that is hanging.
> Regardless, if you want to attempt to debug the EFI bootloader you can
> find it in /sys/src/boot/efi.
> The efi bootloader will search either the ESP itself for a kernel as well
> as a 9fat partition.
> So for just debugging, you can make yourself an ESP and place both the the
> bootloader and a kernel there.
>
> We have had reports of some machines having buggy EFI firmware that forces
> people to place their kernel
> on the ESP, so maybe that's worth a try as well? Although I think with
> those the bootloader complains
> that its not able to find the kernel and doesn't just hang.
>
> If you do want to make yourself a plan9 partition + a 9fat perhaps take a
> look at what the installer
> scripts do (/rc/bin/inst/*) to see the process.
>
> Thanks,
> moody
>
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Tb7ff9ca34535affa-M9687d11007555ca811e1f22b
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
[-- Attachment #2: Type: text/html, Size: 3558 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [9fans] 9front USB EFI Boot hang
2025-01-27 19:28 ` Paul Lalonde
@ 2025-01-27 19:30 ` David Leimbach via 9fans
2025-01-27 21:22 ` ron minnich
0 siblings, 1 reply; 9+ messages in thread
From: David Leimbach via 9fans @ 2025-01-27 19:30 UTC (permalink / raw)
To: 9fans; +Cc: 9fans
[-- Attachment #1: Type: text/html, Size: 4036 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [9fans] 9front USB EFI Boot hang
2025-01-27 19:30 ` David Leimbach via 9fans
@ 2025-01-27 21:22 ` ron minnich
2025-01-28 2:07 ` ori
0 siblings, 1 reply; 9+ messages in thread
From: ron minnich @ 2025-01-27 21:22 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 2900 bytes --]
"We have had reports of some machines having buggy EFI firmware ..."
wow, I hear that a *lot* :-)
On Mon, Jan 27, 2025 at 11:31 AM David Leimbach via 9fans <9fans@9fans.net>
wrote:
> I put rEFIt on my dell and boot it from there
> Sent from my iPhone
>
> On Jan 27, 2025, at 11:29 AM, Paul Lalonde <paul.a.lalonde@gmail.com>
> wrote:
>
>
> Thank Ori and Moody.
>
> I've started walking through making my custom iso and efi partition.
> Reasonably straightforward, though I get this error when building:
> fluxcpu% disk/mk9660 -c9j -B pc/9bootiso -E efi/efiboot.fat -v 'Plan 9
> Front ('^$objtype^')' /tmp/test.iso
> warning: boot image too big; will only load the first 2K
>
> Is it normal for 9bootiso to be 6664 bytes long? Or is there something
> broken in my source tree?
>
> Paul
>
> On Mon, Jan 27, 2025 at 10:18 AM Jacob Moody <moody@posixcafe.org> wrote:
>
>> On 1/27/25 11:34, Paul Lalonde wrote:
>> > Hi,
>> > I was trying to bring up 9front on another machine I have (Lenovo
>> Thinkstation P620 with a Threadripper Pro 3955WX), and I hang right after
>> the "boot\n" output of the EFI loader.
>> >
>> > Any suggestions on how to debug this? Is there a simple way to just
>> build the EFI and 9fat partitions on a USB stick until I have
>> something that boots far enough to mount root from my cpu server?
>>
>> If I got to "boot" then its possible it actually got in to the kernel and
>> it's the kernel that is hanging.
>> Regardless, if you want to attempt to debug the EFI bootloader you can
>> find it in /sys/src/boot/efi.
>> The efi bootloader will search either the ESP itself for a kernel as well
>> as a 9fat partition.
>> So for just debugging, you can make yourself an ESP and place both the
>> the bootloader and a kernel there.
>>
>> We have had reports of some machines having buggy EFI firmware that
>> forces people to place their kernel
>> on the ESP, so maybe that's worth a try as well? Although I think with
>> those the bootloader complains
>> that its not able to find the kernel and doesn't just hang.
>>
>> If you do want to make yourself a plan9 partition + a 9fat perhaps take a
>> look at what the installer
>> scripts do (/rc/bin/inst/*) to see the process.
>>
>> Thanks,
>> moody
>>
> *9fans <https://9fans.topicbox.com/latest>* / 9fans / see discussions
> <https://9fans.topicbox.com/groups/9fans> + participants
> <https://9fans.topicbox.com/groups/9fans/members> + delivery options
> <https://9fans.topicbox.com/groups/9fans/subscription> Permalink
> <https://9fans.topicbox.com/groups/9fans/Tb7ff9ca34535affa-M03d414e2ea12398f39897ad0>
>
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Tb7ff9ca34535affa-M50bf67e5e90bdc31054d46d2
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
[-- Attachment #2: Type: text/html, Size: 4700 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [9fans] 9front USB EFI Boot hang
2025-01-27 21:22 ` ron minnich
@ 2025-01-28 2:07 ` ori
2025-01-28 3:10 ` Bakul Shah via 9fans
0 siblings, 1 reply; 9+ messages in thread
From: ori @ 2025-01-28 2:07 UTC (permalink / raw)
To: 9fans
Quoth ron minnich <rminnich@gmail.com>:
> "We have had reports of some machines having buggy EFI firmware ..."
>
> wow, I hear that a *lot* :-)
>
It would be exceptional to hear about a not visibly buggy EFI firmware.
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Tb7ff9ca34535affa-Me89d7c1b94cd79945f1d130b
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [9fans] 9front USB EFI Boot hang
2025-01-28 2:07 ` ori
@ 2025-01-28 3:10 ` Bakul Shah via 9fans
2025-01-28 6:15 ` Kurt H Maier via 9fans
0 siblings, 1 reply; 9+ messages in thread
From: Bakul Shah via 9fans @ 2025-01-28 3:10 UTC (permalink / raw)
To: 9fans
9front came up fine under bhyve (uses efi). Last install from 9front-10522.amd64.iso
> On Jan 27, 2025, at 6:07 PM, ori@eigenstate.org wrote:
>
> Quoth ron minnich <rminnich@gmail.com>:
>> "We have had reports of some machines having buggy EFI firmware ..."
>>
>> wow, I hear that a *lot* :-)
>>
>
> It would be exceptional to hear about a not visibly buggy EFI firmware.
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Tb7ff9ca34535affa-M1dce226dd7afa7633dabdf43
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [9fans] 9front USB EFI Boot hang
2025-01-28 3:10 ` Bakul Shah via 9fans
@ 2025-01-28 6:15 ` Kurt H Maier via 9fans
0 siblings, 0 replies; 9+ messages in thread
From: Kurt H Maier via 9fans @ 2025-01-28 6:15 UTC (permalink / raw)
To: 9fans
On Mon, Jan 27, 2025 at 07:10:36PM -0800, Bakul Shah via 9fans wrote:
> 9front came up fine under bhyve (uses efi). Last install from 9front-10522.amd64.iso
and once anyone starts shipping laptops with ed2k, we'll all breath a
sigh of relief.
khm
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Tb7ff9ca34535affa-M436020e4f2a09ca8876c4162
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2025-01-28 14:08 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-27 17:34 [9fans] 9front USB EFI Boot hang Paul Lalonde
2025-01-27 18:15 ` ori
2025-01-27 18:17 ` Jacob Moody
2025-01-27 19:28 ` Paul Lalonde
2025-01-27 19:30 ` David Leimbach via 9fans
2025-01-27 21:22 ` ron minnich
2025-01-28 2:07 ` ori
2025-01-28 3:10 ` Bakul Shah via 9fans
2025-01-28 6:15 ` Kurt H Maier via 9fans
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).