All of lore.kernel.org
 help / color / mirror / Atom feed
* sparc64 network autoconfiguration
@ 2016-03-18  7:29 Andrei Borzenkov
  2016-03-18  8:07 ` Vladimir 'phcoder' Serbinenko
  0 siblings, 1 reply; 9+ messages in thread
From: Andrei Borzenkov @ 2016-03-18  7:29 UTC (permalink / raw)
  To: The development of GNU GRUB

Documentation says

On sparc64 GRUB is unable to determine which server it was booted from.

Could someone clarify what it means here? sparc64 is ieee1275 that
supports auto configuration for network boot - at least, it has code
to do it. So far the only platform where it is not possible seems to
be uboot (which is also missing from Platform limitations section).


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

* Re: sparc64 network autoconfiguration
  2016-03-18  7:29 sparc64 network autoconfiguration Andrei Borzenkov
@ 2016-03-18  8:07 ` Vladimir 'phcoder' Serbinenko
  2016-03-18  8:30   ` Andrei Borzenkov
  0 siblings, 1 reply; 9+ messages in thread
From: Vladimir 'phcoder' Serbinenko @ 2016-03-18  8:07 UTC (permalink / raw)
  To: The development of GNU GRUB

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

Le ven. 18 mars 2016 08:30, Andrei Borzenkov <arvidjaar@gmail.com> a écrit :

> Documentation says
>
> On sparc64 GRUB is unable to determine which server it was booted from.
>
> Could someone clarify what it means here? sparc64 is ieee1275 that
> supports auto configuration for network boot - at least, it has code
> to do it. So far the only platform where it is not possible seems to
> be uboot (which is also missing from Platform limitations section).
>
AFAIR sparc 64 doesn't provide fields code for ieee1275 depends on.
Moreover sparc64 doesn't support booting via dhcp and works thorough rarp
instead

>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
>

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

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

* Re: sparc64 network autoconfiguration
  2016-03-18  8:07 ` Vladimir 'phcoder' Serbinenko
@ 2016-03-18  8:30   ` Andrei Borzenkov
  2016-03-18  9:49     ` Stanislav Kholmanskikh
  0 siblings, 1 reply; 9+ messages in thread
From: Andrei Borzenkov @ 2016-03-18  8:30 UTC (permalink / raw)
  To: The development of GNU GRUB

On Fri, Mar 18, 2016 at 11:07 AM, Vladimir 'phcoder' Serbinenko
<phcoder@gmail.com> wrote:
>
>
> Le ven. 18 mars 2016 08:30, Andrei Borzenkov <arvidjaar@gmail.com> a écrit :
>>
>> Documentation says
>>
>> On sparc64 GRUB is unable to determine which server it was booted from.
>>
>> Could someone clarify what it means here? sparc64 is ieee1275 that
>> supports auto configuration for network boot - at least, it has code
>> to do it. So far the only platform where it is not possible seems to
>> be uboot (which is also missing from Platform limitations section).
>
> AFAIR sparc 64 doesn't provide fields code for ieee1275 depends on. Moreover
> sparc64 doesn't support booting via dhcp and works thorough rarp instead


Strictly speaking they boot via bootparams protocol, RARP is used for
initial IP auto-configuration. Sun/Oracle servers support DHCP boot
for quite some time; actually it is mandatory for Solaris 11 AI
(automated installer). I am not sure whether they export this
information in OBP though.

Someone from Oracle listening here?


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

* Re: sparc64 network autoconfiguration
  2016-03-18  8:30   ` Andrei Borzenkov
@ 2016-03-18  9:49     ` Stanislav Kholmanskikh
  2016-03-18  9:54       ` Andrei Borzenkov
  2016-03-18  9:55       ` Toomas Soome
  0 siblings, 2 replies; 9+ messages in thread
From: Stanislav Kholmanskikh @ 2016-03-18  9:49 UTC (permalink / raw)
  To: The development of GNU GRUB

Hi!

On 03/18/2016 11:30 AM, Andrei Borzenkov wrote:
> On Fri, Mar 18, 2016 at 11:07 AM, Vladimir 'phcoder' Serbinenko
> <phcoder@gmail.com> wrote:
>>
>>
>> Le ven. 18 mars 2016 08:30, Andrei Borzenkov <arvidjaar@gmail.com> a écrit :
>>>
>>> Documentation says
>>>
>>> On sparc64 GRUB is unable to determine which server it was booted from.
>>>
>>> Could someone clarify what it means here? sparc64 is ieee1275 that
>>> supports auto configuration for network boot - at least, it has code
>>> to do it. So far the only platform where it is not possible seems to
>>> be uboot (which is also missing from Platform limitations section).
>>
>> AFAIR sparc 64 doesn't provide fields code for ieee1275 depends on. Moreover
>> sparc64 doesn't support booting via dhcp and works thorough rarp instead
>
>
> Strictly speaking they boot via bootparams protocol, RARP is used for
> initial IP auto-configuration. Sun/Oracle servers support DHCP boot
> for quite some time; actually it is mandatory for Solaris 11 AI
> (automated installer). I am not sure whether they export this
> information in OBP though.
>
> Someone from Oracle listening here?

I can't say for Oracle HW in general, but on T4, T5, T7 machines 
booting via DHCP/TFTP is supported, for example via 'boot net:dhcp'.

In our group we do load grub2 via dhcp/tftp. There were some issues, but 
in general this scheme works fine. I hope patches for these issues will 
be sent here soon.

Thanks.


>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
>


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

* Re: sparc64 network autoconfiguration
  2016-03-18  9:49     ` Stanislav Kholmanskikh
@ 2016-03-18  9:54       ` Andrei Borzenkov
  2016-03-18 10:14         ` Toomas Soome
  2016-03-18  9:55       ` Toomas Soome
  1 sibling, 1 reply; 9+ messages in thread
From: Andrei Borzenkov @ 2016-03-18  9:54 UTC (permalink / raw)
  To: The development of GNU GRUB

On Fri, Mar 18, 2016 at 12:49 PM, Stanislav Kholmanskikh
<stanislav.kholmanskikh@oracle.com> wrote:
> Hi!
>
>
> On 03/18/2016 11:30 AM, Andrei Borzenkov wrote:
>>
>> On Fri, Mar 18, 2016 at 11:07 AM, Vladimir 'phcoder' Serbinenko
>> <phcoder@gmail.com> wrote:
>>>
>>>
>>>
>>> Le ven. 18 mars 2016 08:30, Andrei Borzenkov <arvidjaar@gmail.com> a
>>> écrit :
>>>>
>>>>
>>>> Documentation says
>>>>
>>>> On sparc64 GRUB is unable to determine which server it was booted from.
>>>>
>>>> Could someone clarify what it means here? sparc64 is ieee1275 that
>>>> supports auto configuration for network boot - at least, it has code
>>>> to do it. So far the only platform where it is not possible seems to
>>>> be uboot (which is also missing from Platform limitations section).
>>>
>>>
>>> AFAIR sparc 64 doesn't provide fields code for ieee1275 depends on.
>>> Moreover
>>> sparc64 doesn't support booting via dhcp and works thorough rarp instead
>>
>>
>>
>> Strictly speaking they boot via bootparams protocol, RARP is used for
>> initial IP auto-configuration. Sun/Oracle servers support DHCP boot
>> for quite some time; actually it is mandatory for Solaris 11 AI
>> (automated installer). I am not sure whether they export this
>> information in OBP though.
>>
>> Someone from Oracle listening here?
>
>
> I can't say for Oracle HW in general, but on T4, T5, T7 machines booting via
> DHCP/TFTP is supported, for example via 'boot net:dhcp'.
>

Sure, but is content of DHCP ACK available to GRUB (see
grub-core/net/drivers/ieee1275/ofnet.c:grub_ieee1275_net_config_real())
- i.e. can GRUB do autoconfiguration of network interface used to load
it based on information from firmware?


> In our group we do load grub2 via dhcp/tftp. There were some issues, but in
> general this scheme works fine. I hope patches for these issues will be sent
> here soon.
>
> Thanks.
>
>
>
>>
>> _______________________________________________
>> Grub-devel mailing list
>> Grub-devel@gnu.org
>> https://lists.gnu.org/mailman/listinfo/grub-devel
>>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel


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

* Re: sparc64 network autoconfiguration
  2016-03-18  9:49     ` Stanislav Kholmanskikh
  2016-03-18  9:54       ` Andrei Borzenkov
@ 2016-03-18  9:55       ` Toomas Soome
  1 sibling, 0 replies; 9+ messages in thread
From: Toomas Soome @ 2016-03-18  9:55 UTC (permalink / raw)
  To: The development of GNU GRUB


> On 18. märts 2016, at 11:49, Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com> wrote:
> 
> Hi!
> 
> On 03/18/2016 11:30 AM, Andrei Borzenkov wrote:
>> On Fri, Mar 18, 2016 at 11:07 AM, Vladimir 'phcoder' Serbinenko
>> <phcoder@gmail.com> wrote:
>>> 
>>> 
>>> Le ven. 18 mars 2016 08:30, Andrei Borzenkov <arvidjaar@gmail.com> a écrit :
>>>> 
>>>> Documentation says
>>>> 
>>>> On sparc64 GRUB is unable to determine which server it was booted from.
>>>> 
>>>> Could someone clarify what it means here? sparc64 is ieee1275 that
>>>> supports auto configuration for network boot - at least, it has code
>>>> to do it. So far the only platform where it is not possible seems to
>>>> be uboot (which is also missing from Platform limitations section).
>>> 
>>> AFAIR sparc 64 doesn't provide fields code for ieee1275 depends on. Moreover
>>> sparc64 doesn't support booting via dhcp and works thorough rarp instead
>> 
>> 
>> Strictly speaking they boot via bootparams protocol, RARP is used for
>> initial IP auto-configuration. Sun/Oracle servers support DHCP boot
>> for quite some time; actually it is mandatory for Solaris 11 AI
>> (automated installer). I am not sure whether they export this
>> information in OBP though.
>> 
>> Someone from Oracle listening here?
> 
> I can't say for Oracle HW in general, but on T4, T5, T7 machines booting via DHCP/TFTP is supported, for example via 'boot net:dhcp'.
> 
> In our group we do load grub2 via dhcp/tftp. There were some issues, but in general this scheme works fine. I hope patches for these issues will be sent here soon.
> 
> Thanks.
> 
> 

basically all sun4u and sun4v support dhcp boot (assuming up to date firmware).

rgds,
toomas



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

* Re: sparc64 network autoconfiguration
  2016-03-18  9:54       ` Andrei Borzenkov
@ 2016-03-18 10:14         ` Toomas Soome
  2016-03-18 11:25           ` Andrei Borzenkov
  0 siblings, 1 reply; 9+ messages in thread
From: Toomas Soome @ 2016-03-18 10:14 UTC (permalink / raw)
  To: The development of GNU GRUB


> On 18. märts 2016, at 11:54, Andrei Borzenkov <arvidjaar@gmail.com> wrote:
> 
> On Fri, Mar 18, 2016 at 12:49 PM, Stanislav Kholmanskikh
> <stanislav.kholmanskikh@oracle.com> wrote:
>> Hi!
>> 
>> 
>> On 03/18/2016 11:30 AM, Andrei Borzenkov wrote:
>>> 
>>> On Fri, Mar 18, 2016 at 11:07 AM, Vladimir 'phcoder' Serbinenko
>>> <phcoder@gmail.com> wrote:
>>>> 
>>>> 
>>>> 
>>>> Le ven. 18 mars 2016 08:30, Andrei Borzenkov <arvidjaar@gmail.com> a
>>>> écrit :
>>>>> 
>>>>> 
>>>>> Documentation says
>>>>> 
>>>>> On sparc64 GRUB is unable to determine which server it was booted from.
>>>>> 
>>>>> Could someone clarify what it means here? sparc64 is ieee1275 that
>>>>> supports auto configuration for network boot - at least, it has code
>>>>> to do it. So far the only platform where it is not possible seems to
>>>>> be uboot (which is also missing from Platform limitations section).
>>>> 
>>>> 
>>>> AFAIR sparc 64 doesn't provide fields code for ieee1275 depends on.
>>>> Moreover
>>>> sparc64 doesn't support booting via dhcp and works thorough rarp instead
>>> 
>>> 
>>> 
>>> Strictly speaking they boot via bootparams protocol, RARP is used for
>>> initial IP auto-configuration. Sun/Oracle servers support DHCP boot
>>> for quite some time; actually it is mandatory for Solaris 11 AI
>>> (automated installer). I am not sure whether they export this
>>> information in OBP though.
>>> 
>>> Someone from Oracle listening here?
>> 
>> 
>> I can't say for Oracle HW in general, but on T4, T5, T7 machines booting via
>> DHCP/TFTP is supported, for example via 'boot net:dhcp'.
>> 
> 
> Sure, but is content of DHCP ACK available to GRUB (see
> grub-core/net/drivers/ieee1275/ofnet.c:grub_ieee1275_net_config_real())
> - i.e. can GRUB do autoconfiguration of network interface used to load
> it based on information from firmware?
> 

the ack is saved in /chosen-bootreply in forth code. (google /chosen-bootreply openboot does some hints in openboot source in coreboot.org).

rgds,
toomas



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

* Re: sparc64 network autoconfiguration
  2016-03-18 10:14         ` Toomas Soome
@ 2016-03-18 11:25           ` Andrei Borzenkov
  2016-03-18 14:19             ` Toomas Soome
  0 siblings, 1 reply; 9+ messages in thread
From: Andrei Borzenkov @ 2016-03-18 11:25 UTC (permalink / raw)
  To: The development of GNU GRUB

On Fri, Mar 18, 2016 at 1:14 PM, Toomas Soome <tsoome@me.com> wrote:
>
>> On 18. märts 2016, at 11:54, Andrei Borzenkov <arvidjaar@gmail.com> wrote:
>>
>> On Fri, Mar 18, 2016 at 12:49 PM, Stanislav Kholmanskikh
>> <stanislav.kholmanskikh@oracle.com> wrote:
>>> Hi!
>>>
>>>
>>> On 03/18/2016 11:30 AM, Andrei Borzenkov wrote:
>>>>
>>>> On Fri, Mar 18, 2016 at 11:07 AM, Vladimir 'phcoder' Serbinenko
>>>> <phcoder@gmail.com> wrote:
>>>>>
>>>>>
>>>>>
>>>>> Le ven. 18 mars 2016 08:30, Andrei Borzenkov <arvidjaar@gmail.com> a
>>>>> écrit :
>>>>>>
>>>>>>
>>>>>> Documentation says
>>>>>>
>>>>>> On sparc64 GRUB is unable to determine which server it was booted from.
>>>>>>
>>>>>> Could someone clarify what it means here? sparc64 is ieee1275 that
>>>>>> supports auto configuration for network boot - at least, it has code
>>>>>> to do it. So far the only platform where it is not possible seems to
>>>>>> be uboot (which is also missing from Platform limitations section).
>>>>>
>>>>>
>>>>> AFAIR sparc 64 doesn't provide fields code for ieee1275 depends on.
>>>>> Moreover
>>>>> sparc64 doesn't support booting via dhcp and works thorough rarp instead
>>>>
>>>>
>>>>
>>>> Strictly speaking they boot via bootparams protocol, RARP is used for
>>>> initial IP auto-configuration. Sun/Oracle servers support DHCP boot
>>>> for quite some time; actually it is mandatory for Solaris 11 AI
>>>> (automated installer). I am not sure whether they export this
>>>> information in OBP though.
>>>>
>>>> Someone from Oracle listening here?
>>>
>>>
>>> I can't say for Oracle HW in general, but on T4, T5, T7 machines booting via
>>> DHCP/TFTP is supported, for example via 'boot net:dhcp'.
>>>
>>
>> Sure, but is content of DHCP ACK available to GRUB (see
>> grub-core/net/drivers/ieee1275/ofnet.c:grub_ieee1275_net_config_real())
>> - i.e. can GRUB do autoconfiguration of network interface used to load
>> it based on information from firmware?
>>
>
> the ack is saved in /chosen-bootreply in forth code. (google /chosen-bootreply openboot does some hints in openboot source in coreboot.org).
>

We are currently looking for the following properties on /chosen/bootpath

bootp_response_properties[] =
  {
    { .name = "bootp-response", .offset = 0},
    { .name = "dhcp-response", .offset = 0},
    { .name = "bootpreply-packet", .offset = 0x2a},
  };


As I understand this does not cover sparc, it need additional code to
parse different node, right?


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

* Re: sparc64 network autoconfiguration
  2016-03-18 11:25           ` Andrei Borzenkov
@ 2016-03-18 14:19             ` Toomas Soome
  0 siblings, 0 replies; 9+ messages in thread
From: Toomas Soome @ 2016-03-18 14:19 UTC (permalink / raw)
  To: The development of GNU GRUB


> On 18. märts 2016, at 13:25, Andrei Borzenkov <arvidjaar@gmail.com> wrote:
> 
> On Fri, Mar 18, 2016 at 1:14 PM, Toomas Soome <tsoome@me.com> wrote:
>> 
>>> On 18. märts 2016, at 11:54, Andrei Borzenkov <arvidjaar@gmail.com> wrote:
>>> 
>>> On Fri, Mar 18, 2016 at 12:49 PM, Stanislav Kholmanskikh
>>> <stanislav.kholmanskikh@oracle.com> wrote:
>>>> Hi!
>>>> 
>>>> 
>>>> On 03/18/2016 11:30 AM, Andrei Borzenkov wrote:
>>>>> 
>>>>> On Fri, Mar 18, 2016 at 11:07 AM, Vladimir 'phcoder' Serbinenko
>>>>> <phcoder@gmail.com> wrote:
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> Le ven. 18 mars 2016 08:30, Andrei Borzenkov <arvidjaar@gmail.com> a
>>>>>> écrit :
>>>>>>> 
>>>>>>> 
>>>>>>> Documentation says
>>>>>>> 
>>>>>>> On sparc64 GRUB is unable to determine which server it was booted from.
>>>>>>> 
>>>>>>> Could someone clarify what it means here? sparc64 is ieee1275 that
>>>>>>> supports auto configuration for network boot - at least, it has code
>>>>>>> to do it. So far the only platform where it is not possible seems to
>>>>>>> be uboot (which is also missing from Platform limitations section).
>>>>>> 
>>>>>> 
>>>>>> AFAIR sparc 64 doesn't provide fields code for ieee1275 depends on.
>>>>>> Moreover
>>>>>> sparc64 doesn't support booting via dhcp and works thorough rarp instead
>>>>> 
>>>>> 
>>>>> 
>>>>> Strictly speaking they boot via bootparams protocol, RARP is used for
>>>>> initial IP auto-configuration. Sun/Oracle servers support DHCP boot
>>>>> for quite some time; actually it is mandatory for Solaris 11 AI
>>>>> (automated installer). I am not sure whether they export this
>>>>> information in OBP though.
>>>>> 
>>>>> Someone from Oracle listening here?
>>>> 
>>>> 
>>>> I can't say for Oracle HW in general, but on T4, T5, T7 machines booting via
>>>> DHCP/TFTP is supported, for example via 'boot net:dhcp'.
>>>> 
>>> 
>>> Sure, but is content of DHCP ACK available to GRUB (see
>>> grub-core/net/drivers/ieee1275/ofnet.c:grub_ieee1275_net_config_real())
>>> - i.e. can GRUB do autoconfiguration of network interface used to load
>>> it based on information from firmware?
>>> 
>> 
>> the ack is saved in /chosen-bootreply in forth code. (google /chosen-bootreply openboot does some hints in openboot source in coreboot.org).
>> 
> 
> We are currently looking for the following properties on /chosen/bootpath
> 
> bootp_response_properties[] =
>  {
>    { .name = "bootp-response", .offset = 0},
>    { .name = "dhcp-response", .offset = 0},
>    { .name = "bootpreply-packet", .offset = 0x2a},
>  };
> 
> 
> As I understand this does not cover sparc, it need additional code to
> parse different node, right?
> 

To be sure one really has to just verify what/how different it is. The thing is, much of the code around is based on opensourced T1/T2 sources and obviously have started to live life of its own but the core logic should be similar still. Also the T2 sources are still downloadable, even as searching out the actual download link may be a bit of the issue. 

rgds,
toomas




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

end of thread, other threads:[~2016-03-18 14:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-18  7:29 sparc64 network autoconfiguration Andrei Borzenkov
2016-03-18  8:07 ` Vladimir 'phcoder' Serbinenko
2016-03-18  8:30   ` Andrei Borzenkov
2016-03-18  9:49     ` Stanislav Kholmanskikh
2016-03-18  9:54       ` Andrei Borzenkov
2016-03-18 10:14         ` Toomas Soome
2016-03-18 11:25           ` Andrei Borzenkov
2016-03-18 14:19             ` Toomas Soome
2016-03-18  9:55       ` Toomas Soome

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.