9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* HOWTO: Net booting Plan 9 on RPi 3s and 4s
@ 2020-06-03 18:26 Skip Tavakkolian
  2020-06-03 19:43 ` Skip Tavakkolian
  0 siblings, 1 reply; 8+ messages in thread
From: Skip Tavakkolian @ 2020-06-03 18:26 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 142 bytes --]

FYI, I've updated the HOWTO to include RPi4's. It's here:

https://docs.google.com/document/d/1hgcsAgk_FJRYW5r7LVeY23sTZN_giUit-8ra-dlW9ng

[-- Attachment #2: Type: text/html, Size: 351 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: HOWTO: Net booting Plan 9 on RPi 3s and 4s
  2020-06-03 18:26 HOWTO: Net booting Plan 9 on RPi 3s and 4s Skip Tavakkolian
@ 2020-06-03 19:43 ` Skip Tavakkolian
  2020-06-04  1:18   ` Skip Tavakkolian
  0 siblings, 1 reply; 8+ messages in thread
From: Skip Tavakkolian @ 2020-06-03 19:43 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 452 bytes --]

Note that RPi 4 DHCP requests include a parameter request for TFTP Server
Name (66).  There is a link in the doc to the diffs for
/sys/src/cmd/ip/dhcpd/dhcpd.c. I'll submit a patch to 9p.io soon.

On Wed, Jun 3, 2020 at 11:26 AM Skip Tavakkolian <skip.tavakkolian@gmail.com>
wrote:

>
> FYI, I've updated the HOWTO to include RPi4's. It's here:
>
>
> https://docs.google.com/document/d/1hgcsAgk_FJRYW5r7LVeY23sTZN_giUit-8ra-dlW9ng
>
>
>

[-- Attachment #2: Type: text/html, Size: 1005 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: HOWTO: Net booting Plan 9 on RPi 3s and 4s
  2020-06-03 19:43 ` Skip Tavakkolian
@ 2020-06-04  1:18   ` Skip Tavakkolian
  2020-06-04 11:01     ` [9fans] " Richard Miller
  2020-06-05  7:47     ` Skip Tavakkolian
  0 siblings, 2 replies; 8+ messages in thread
From: Skip Tavakkolian @ 2020-06-04  1:18 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 628 bytes --]

The patch is on 9p.io:

/n/sources/patch/dhcpd-rpi-pxeboot


On Wed, Jun 3, 2020 at 12:43 PM Skip Tavakkolian <skip.tavakkolian@gmail.com>
wrote:

> Note that RPi 4 DHCP requests include a parameter request for TFTP Server
> Name (66).  There is a link in the doc to the diffs for
> /sys/src/cmd/ip/dhcpd/dhcpd.c. I'll submit a patch to 9p.io soon.
>
> On Wed, Jun 3, 2020 at 11:26 AM Skip Tavakkolian <
> skip.tavakkolian@gmail.com> wrote:
>
>>
>> FYI, I've updated the HOWTO to include RPi4's. It's here:
>>
>>
>> https://docs.google.com/document/d/1hgcsAgk_FJRYW5r7LVeY23sTZN_giUit-8ra-dlW9ng
>>
>>
>>

[-- Attachment #2: Type: text/html, Size: 1523 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] Re: HOWTO: Net booting Plan 9 on RPi 3s and 4s
  2020-06-04  1:18   ` Skip Tavakkolian
@ 2020-06-04 11:01     ` Richard Miller
  2020-06-04 16:53       ` Skip Tavakkolian
  2020-06-05  7:47     ` Skip Tavakkolian
  1 sibling, 1 reply; 8+ messages in thread
From: Richard Miller @ 2020-06-04 11:01 UTC (permalink / raw)
  To: 9fans

Thanks, Skip. I just net-booted a pi4 using your instructions. Very timely,
as I was running out of 2GB SD cards for my growing pi collection.

Can I just add two footnotes concerning the pi4 procedure:
- At the first step where it says "copy the EEPROM image of interest from
  /lib/firmware/raspberrypi/bootloader/ to pieeprom.bin", I found 26
  different pieeprom.bin files under that directory.  I guessed that
  "stable" would be the right one, and that seems to have been OK.  I
  think "vcgencmd bootloader_version" will give you a hint as to which
  file is currently in the eeprom.
- If you use the eeprom config var TFTP_IP to hardcode the tftp server
  address, you don't need the patched version of Plan 9 dhcpd; in fact
  any old dhcp server can then be used without special configuration,
  as it only needs to supply an ip address.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] Re: HOWTO: Net booting Plan 9 on RPi 3s and 4s
  2020-06-04 11:01     ` [9fans] " Richard Miller
@ 2020-06-04 16:53       ` Skip Tavakkolian
  2020-06-04 17:54         ` Richard Miller
  0 siblings, 1 reply; 8+ messages in thread
From: Skip Tavakkolian @ 2020-06-04 16:53 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 1378 bytes --]

Thank you! I will add them.

I'll clarify that TFTP_IP setting will work for RPI4's. I believe RPI3's
will still require the dhcpd patch, if I'm not mistaken.


On Thu, Jun 4, 2020 at 4:03 AM Richard Miller <9fans@hamnavoe.com> wrote:

> Thanks, Skip. I just net-booted a pi4 using your instructions. Very timely,
> as I was running out of 2GB SD cards for my growing pi collection.
>
> Can I just add two footnotes concerning the pi4 procedure:
> - At the first step where it says "copy the EEPROM image of interest from
>   /lib/firmware/raspberrypi/bootloader/ to pieeprom.bin", I found 26
>   different pieeprom.bin files under that directory.  I guessed that
>   "stable" would be the right one, and that seems to have been OK.  I
>   think "vcgencmd bootloader_version" will give you a hint as to which
>   file is currently in the eeprom.
> - If you use the eeprom config var TFTP_IP to hardcode the tftp server
>   address, you don't need the patched version of Plan 9 dhcpd; in fact
>   any old dhcp server can then be used without special configuration,
>   as it only needs to supply an ip address.
>
>
> ------------------------------------------
> 9fans: 9fans
> Permalink:
> https://9fans.topicbox.com/groups/9fans/Teeceb2ca38619b36-Mdbb9d646528889d9886437f0
> Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
>

[-- Attachment #2: Type: text/html, Size: 2014 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] Re: HOWTO: Net booting Plan 9 on RPi 3s and 4s
  2020-06-04 16:53       ` Skip Tavakkolian
@ 2020-06-04 17:54         ` Richard Miller
  2020-06-04 19:13           ` Skip Tavakkolian
  0 siblings, 1 reply; 8+ messages in thread
From: Richard Miller @ 2020-06-04 17:54 UTC (permalink / raw)
  To: 9fans

> I believe RPI3's
> will still require the dhcpd patch, if I'm not mistaken.

That's right, the pi3 doesn't have an eeprom to hold the tftp ip address.

An alternative way to network-boot is to use Plan 9 as a boot loader:
a (minimal) Plan 9 kernel can be loaded from the SD card, which will
fetch the full Plan 9 kernel via tftp and copy it to /dev/reboot.
That works even for older pi models (pi1 and pi2), but does require
an SD card.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] Re: HOWTO: Net booting Plan 9 on RPi 3s and 4s
  2020-06-04 17:54         ` Richard Miller
@ 2020-06-04 19:13           ` Skip Tavakkolian
  0 siblings, 0 replies; 8+ messages in thread
From: Skip Tavakkolian @ 2020-06-04 19:13 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 827 bytes --]

Fantastic.  It has been updated.

On Thu, Jun 4, 2020 at 10:58 AM Richard Miller <9fans@hamnavoe.com> wrote:

> > I believe RPI3's
> > will still require the dhcpd patch, if I'm not mistaken.
>
> That's right, the pi3 doesn't have an eeprom to hold the tftp ip address.
>
> An alternative way to network-boot is to use Plan 9 as a boot loader:
> a (minimal) Plan 9 kernel can be loaded from the SD card, which will
> fetch the full Plan 9 kernel via tftp and copy it to /dev/reboot.
> That works even for older pi models (pi1 and pi2), but does require
> an SD card.
>
>
> ------------------------------------------
> 9fans: 9fans
> Permalink:
> https://9fans.topicbox.com/groups/9fans/Teeceb2ca38619b36-M20deb9483c257c87d1b46ef9
> Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
>

[-- Attachment #2: Type: text/html, Size: 1385 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: HOWTO: Net booting Plan 9 on RPi 3s and 4s
  2020-06-04  1:18   ` Skip Tavakkolian
  2020-06-04 11:01     ` [9fans] " Richard Miller
@ 2020-06-05  7:47     ` Skip Tavakkolian
  1 sibling, 0 replies; 8+ messages in thread
From: Skip Tavakkolian @ 2020-06-05  7:47 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 815 bytes --]

there is a cleaner patch now:

/n/sources/patch/rpi-netboot-dhcpd

On Wed, Jun 3, 2020 at 6:18 PM Skip Tavakkolian <skip.tavakkolian@gmail.com>
wrote:

> The patch is on 9p.io:
>
> /n/sources/patch/dhcpd-rpi-pxeboot
>
>
> On Wed, Jun 3, 2020 at 12:43 PM Skip Tavakkolian <
> skip.tavakkolian@gmail.com> wrote:
>
>> Note that RPi 4 DHCP requests include a parameter request for TFTP Server
>> Name (66).  There is a link in the doc to the diffs for
>> /sys/src/cmd/ip/dhcpd/dhcpd.c. I'll submit a patch to 9p.io soon.
>>
>> On Wed, Jun 3, 2020 at 11:26 AM Skip Tavakkolian <
>> skip.tavakkolian@gmail.com> wrote:
>>
>>>
>>> FYI, I've updated the HOWTO to include RPi4's. It's here:
>>>
>>>
>>> https://docs.google.com/document/d/1hgcsAgk_FJRYW5r7LVeY23sTZN_giUit-8ra-dlW9ng
>>>
>>>
>>>

[-- Attachment #2: Type: text/html, Size: 2038 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-06-05  7:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-03 18:26 HOWTO: Net booting Plan 9 on RPi 3s and 4s Skip Tavakkolian
2020-06-03 19:43 ` Skip Tavakkolian
2020-06-04  1:18   ` Skip Tavakkolian
2020-06-04 11:01     ` [9fans] " Richard Miller
2020-06-04 16:53       ` Skip Tavakkolian
2020-06-04 17:54         ` Richard Miller
2020-06-04 19:13           ` Skip Tavakkolian
2020-06-05  7:47     ` Skip Tavakkolian

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).