Skip to contentSkip to conversation

Determining boot server and own IP on sparc64-ieee1275

DISCUSSION Vladimir 'φ-coder/phcoder' Serbinenko 3 participants 4 messages Jul 6, 2011

lore
Share & tools
lore
#0 lore raw

Hello, David. I'm currently working on improving network support in GRUB2. On IEEE1275 we use read/write functions to receive/send packets in conjunction with a IP+UDP+ARP+BOOTP+TFTP implementation. On IBM machines when netbooted we get BOOTP/DHCP reply use by IEEE1275 in "bootppkt" property which allows us to easily, reliably and automatically configure GRUB to continue loading from the same server using same network parameters. However on my Sun Netra X1 I have to use RARP and I haven't found the network boot configuration in device tree. So my questions are:
1) Is there any way to retrieve client and server IP on sparc64 used by IEEE1275 or do we have to redo RARP ourselves?
According to a web search newer sparc machines use BOOTP or DHCP instead of or as an alternative to RARP.
2) Do they store bootp reply in some property?
3) If they don't is there a way to at least determine which protocol was used (RARP, BOOTP or DHCP)?
Thank you in advance.

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
#1 lore raw

From: Vladimir 'φ-coder/phcoder' Serbinenko <[email protected]>
Date: Wed, 06 Jul 2011 14:13:20 +0200

Quoted 2 lines

1) Is there any way to retrieve client and server IP on sparc64 used by IEEE1275 or do we have to redo RARP ourselves?

"/chosen/{client,server,gateway}-ip"

Quoted 2 lines

According to a web search newer sparc machines use BOOTP or DHCP instead of or as an alternative to RARP.

I am not familiar with anything in sparc openboots that supports full blown DHCP, sorry.

#2 lore raw
Quoted 7 lines · David Miller

From: Vladimir 'φ-coder/phcoder' Serbinenko <[email protected]>
Date: Wed, 06 Jul 2011 14:13:20 +0200

Quoted 2 lines

1) Is there any way to retrieve client and server IP on sparc64 used by IEEE1275 or do we have to redo RARP ourselves?

"/chosen/{client,server,gateway}-ip"

Unfortunately my Netra X1 creates no such entries. I suppose that my machine is too old to have those.

Quoted 4 lines
Quoted 2 lines

According to a web search newer sparc machines use BOOTP or DHCP instead of or as an alternative to RARP.

I am not familiar with anything in sparc openboots that supports full blown DHCP, sorry.

Ok, NP.

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
#3 lore raw
In reply to Vladimir 'φ-coder/phcoder' Serbinenko

Hi,

I'll try to gather this info for you.

--S

Quoted 27 lines · Vladimir 'φ-coder/phcoder' Serbinenko

Hello, David. I'm currently working on improving network support in GRUB2. On IEEE1275 we use read/write functions to receive/send packets in conjunction with a IP+UDP+ARP+BOOTP+TFTP implementation. On IBM machines when netbooted we get BOOTP/DHCP reply use by IEEE1275 in "bootppkt" property which allows us to easily, reliably and automatically configure GRUB to continue loading from the same server using same network parameters. However on my Sun Netra X1 I have to use RARP and I haven't found the network boot configuration in device tree. So my questions are:
1) Is there any way to retrieve client and server IP on sparc64 used by IEEE1275 or do we have to redo RARP ourselves?
According to a web search newer sparc machines use BOOTP or DHCP instead of or as an alternative to RARP.
2) Do they store bootp reply in some property?
3) If they don't is there a way to at least determine which protocol was used (RARP, BOOTP or DHCP)?
Thank you in advance.

Signature · 8 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko


_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel