|
Replies:
18
-
Last Post:
Mar 28, 2006 11:09 AM
by: yanyh
|
|
|
Posts:
75
From:
USA
Registered:
8/1/05
|
|
|
|
The inetboot (the NFS boot) is ready to load the kernel
Posted:
Mar 13, 2006 1:56 PM
|
|
Hi, All,
It has been so quiet (which is wired) in recent several weeks here. Hopefully my update may stir something up.
The inetboot, which allow a diskless system to boot over NFS root is now functional. It can mount the root fs from the NFS server, load an elf file(kernel), exitto it and let it go. I upload some camer shot (seems the PowerMac G4 does not have serial port) in http://polaris.blastwave.org/attachment/wiki/YanyhDiary/1.GIF, http://polaris.blastwave.org/attachment/wiki/YanyhDiary/2.GIF
In brief, the inetboot bootstrap process is as follow: 1. openfirmware load the inetboot from tftp server and give control to inetboot 2. inetboot initialize memory list 3. sends rarp request to get the host ip 4. sends whoami and getfile bootparamd rpc requests to get info for nfs server and remote root 5. nfs-mount root fs 6. read unix over nfs and transfer control to it
There is no joke at all for even this small task and there are so many details that requires lots of doc/code reading and debuging (I even begin to lean Forth now :o). My informal diary records those major changes which could help if anybody is interested in this.
This time, I do need to stop, synchronize and clean my code with the main trunk. So give me some time to check in my code :)
Noah
|
|
|
Posts:
1,174
From:
IL
Registered:
4/27/05
|
|
|
|
Re: The inetboot (the NFS boot) is ready to load
the kernel
Posted:
Mar 13, 2006 2:07 PM
in response to: yanyh
|
|
Noah,
impressive work !
On 3/13/06, Noah Yan <noah dot yan at gmail dot com> wrote: > Hi, All, > > It has been so quiet (which is wired) in recent several weeks here. Hopefully my update may stir something up. > > The inetboot, which allow a diskless system to boot over NFS root is now functional. It can mount the root fs from the NFS server, load an elf file(kernel), exitto it and let it go. I upload some camer shot (seems the PowerMac G4 does not have serial port) in http://polaris.blastwave.org/attachment/wiki/YanyhDiary/1.GIF, > http://polaris.blastwave.org/attachment/wiki/YanyhDiary/2.GIF > > In brief, the inetboot bootstrap process is as follow: > 1. openfirmware load the inetboot from tftp server and give control to inetboot > 2. inetboot initialize memory list > 3. sends rarp request to get the host ip > 4. sends whoami and getfile bootparamd rpc requests to get info for nfs server and remote root > 5. nfs-mount root fs > 6. read unix over nfs and transfer control to it > > There is no joke at all for even this small task and there are so many details that requires lots of doc/code reading and debuging (I even begin to lean Forth now :o). My informal diary records those major changes which could help if anybody is interested in this. > > This time, I do need to stop, synchronize and clean my code with the main trunk. So give me some time to check in my code :) > > Noah > This message posted from opensolaris.org > _______________________________________________ > powerpc-discuss mailing list > powerpc-discuss at opensolaris dot org >
-- Regards, Cyril _______________________________________________ powerpc-discuss mailing list powerpc-discuss at opensolaris dot org
|
|
|
|
Leon Koll
napobo3@gmail.com
|
|
|
|
Re: The inetboot (the NFS boot) is ready to load
the kernel
Posted:
Mar 13, 2006 2:09 PM
in response to: yanyh
|
|
Sounds great ! Congratulations with big step ahead !!!
-- Leon
On 3/13/06, Noah Yan <noah dot yan at gmail dot com> wrote: > Hi, All, > > It has been so quiet (which is wired) in recent several weeks here. Hopefully my update may stir something up. > > The inetboot, which allow a diskless system to boot over NFS root is now functional. It can mount the root fs from the NFS server, load an elf file(kernel), exitto it and let it go. I upload some camer shot (seems the PowerMac G4 does not have serial port) in http://polaris.blastwave.org/attachment/wiki/YanyhDiary/1.GIF, > http://polaris.blastwave.org/attachment/wiki/YanyhDiary/2.GIF > > In brief, the inetboot bootstrap process is as follow: > 1. openfirmware load the inetboot from tftp server and give control to inetboot > 2. inetboot initialize memory list > 3. sends rarp request to get the host ip > 4. sends whoami and getfile bootparamd rpc requests to get info for nfs server and remote root > 5. nfs-mount root fs > 6. read unix over nfs and transfer control to it > > There is no joke at all for even this small task and there are so many details that requires lots of doc/code reading and debuging (I even begin to lean Forth now :o). My informal diary records those major changes which could help if anybody is interested in this. > > This time, I do need to stop, synchronize and clean my code with the main trunk. So give me some time to check in my code :) > > Noah > This message posted from opensolaris.org > _______________________________________________ > powerpc-discuss mailing list > powerpc-discuss at opensolaris dot org > _______________________________________________ powerpc-discuss mailing list powerpc-discuss at opensolaris dot org
|
|
|
|
Posts:
148
From:
Registered:
6/29/05
|
|
|
|
Re: The inetboot (the NFS boot) is ready to load the kernel
Posted:
Mar 13, 2006 4:24 PM
in response to: yanyh
|
|
very cool :)
|
|
|
|
Posts:
976
From:
Винницкая область — область на западе Украины. (Vinnitsya, Ukraine)
Registered:
6/14/05
|
|
|
|
Re: The inetboot (the NFS boot) is ready
to load the kernel
Posted:
Mar 13, 2006 5:04 PM
in response to: yanyh
|
|
YEZ YEZ YEZ: Just great Noah.
On Mon, 13 Mar 2006 13:56:27 PST Noah Yan wrote: > > Hi, All, > > It has been so quiet (which is wired) in recent several weeks here. > Hopefully my update may stir something up. > > The inetboot, which allow a diskless system to boot over NFS root is now > functional. It can mount the root fs from the NFS server, load an elf > file(kernel), exitto it and let it go. I upload some camer shot (seems the > PowerMac G4 does not have serial port) in > http://polaris.blastwave.org/attachment/wiki/YanyhDiary/1.GIF, > http://polaris.blastwave.org/attachment/wiki/YanyhDiary/2.GIF > > In brief, the inetboot bootstrap process is as follow: > 1. openfirmware load the inetboot from tftp server and give control to > inetboot > 2. inetboot initialize memory list > 3. sends rarp request to get the host ip > 4. sends whoami and getfile bootparamd rpc requests to get info for nfs > server and remote root > 5. nfs-mount root fs > 6. read unix over nfs and transfer control to it > > There is no joke at all for even this small task and there are so many > details that requires lots of doc/code reading and debuging (I even begin to > lean Forth now :o). My informal diary records those major changes which > could help if anybody is interested in this. > > This time, I do need to stop, synchronize and clean my code with the main > trunk. So give me some time to check in my code :) > > Noah > This message posted from opensolaris.org > _______________________________________________ > powerpc-discuss mailing list > powerpc-discuss at opensolaris dot org > _______________________________________________ powerpc-discuss mailing list powerpc-discuss at opensolaris dot org
|
|
|
|
Posts:
80
From:
Registered:
4/27/05
|
|
|
|
Re: The inetboot (the NFS boot) is ready to load
the kernel
Posted:
Mar 13, 2006 9:27 PM
in response to: yanyh
|
|
On 3/14/06, Noah Yan <noah dot yan at gmail dot com> wrote: > Hi, All, > > It has been so quiet (which is wired) in recent several weeks here. Hopefully my update may stir something up. > > The inetboot, which allow a diskless system to boot over NFS root is now functional. It can mount the root fs from the NFS server, load an elf file(kernel), exitto it and let it go. I upload some camer shot (seems the PowerMac G4 does not have serial port) in http://polaris.blastwave.org/attachment/wiki/YanyhDiary/1.GIF, > http://polaris.blastwave.org/attachment/wiki/YanyhDiary/2.GIF > > In brief, the inetboot bootstrap process is as follow: > 1. openfirmware load the inetboot from tftp server and give control to inetboot > 2. inetboot initialize memory list > 3. sends rarp request to get the host ip > 4. sends whoami and getfile bootparamd rpc requests to get info for nfs server and remote root > 5. nfs-mount root fs > 6. read unix over nfs and transfer control to it > > There is no joke at all for even this small task and there are so many details that requires lots of doc/code reading and debuging (I even begin to lean Forth now :o). My informal diary records those major changes which could help if anybody is interested in this. > > This time, I do need to stop, synchronize and clean my code with the main trunk. So give me some time to check in my code :)
Great work Noah! :) -- Regards, Jeremy _______________________________________________ powerpc-discuss mailing list powerpc-discuss at opensolaris dot org
|
|
|
|
Leon Koll
napobo3@gmail.com
|
|
|
|
Re: The inetboot (the NFS boot) is ready to load
the kernel
Posted:
Mar 14, 2006 4:29 AM
in response to: yanyh
|
|
http://napobo3.blogspot.com/2006/03/solarisppc-on-my-desktop.html
Best wishes to the PowerPC community! -- Leon
On 3/13/06, Noah Yan <noah dot yan at gmail dot com> wrote: > Hi, All, > > It has been so quiet (which is wired) in recent several weeks here. Hopefully my update may stir something up. > > The inetboot, which allow a diskless system to boot over NFS root is now functional. It can mount the root fs from the NFS server, load an elf file(kernel), exitto it and let it go. I upload some camer shot (seems the PowerMac G4 does not have serial port) in http://polaris.blastwave.org/attachment/wiki/YanyhDiary/1.GIF, > http://polaris.blastwave.org/attachment/wiki/YanyhDiary/2.GIF > > In brief, the inetboot bootstrap process is as follow: > 1. openfirmware load the inetboot from tftp server and give control to inetboot > 2. inetboot initialize memory list > 3. sends rarp request to get the host ip > 4. sends whoami and getfile bootparamd rpc requests to get info for nfs server and remote root > 5. nfs-mount root fs > 6. read unix over nfs and transfer control to it > > There is no joke at all for even this small task and there are so many details that requires lots of doc/code reading and debuging (I even begin to lean Forth now :o). My informal diary records those major changes which could help if anybody is interested in this. > > This time, I do need to stop, synchronize and clean my code with the main trunk. So give me some time to check in my code :) > > Noah > This message posted from opensolaris.org > _______________________________________________ > powerpc-discuss mailing list > powerpc-discuss at opensolaris dot org > _______________________________________________ powerpc-discuss mailing list powerpc-discuss at opensolaris dot org
|
|
|
|
Posts:
75
From:
USA
Registered:
8/1/05
|
|
|
|
Re: The inetboot (the NFS boot) is ready to load
the kernel
Posted:
Mar 14, 2006 10:46 AM
in response to: Leon Koll
|
|
Thanks very much for your great replies :). Very glad that we are making progress and best wishes to our community and all of you too.
found a web log from Sameer Seth ( http://blogs.sun.com/roller/resources/sameers/boot_net.pdf
) that gives in great detail the inetboot process for Solaris on SPARC (it is a pity that I found this so late). It brought me to think about the main difference between x86 multiboot and inetboot in the kernel side (just my thoughts, shoot me if wrong ).
In inetboot (also ufsboot and hsfsboot), when control is transferred to the kernel, the NFS and network stack(tcp/ip, rarp, bootparamd) modules have not yet been loaded. The kernel needs to callback the services (called boot service in code base) of the inetboot bootstrap to read in those required modules from root fs and link them, pretty complex.
In multiboot, the boot_archive that includes those modules is mounted as root fs via ramdisk. It is much simplier for the kernel to load and link them.
The trick is the run time linking that reads in modules one by one. so what is the benefit of it in kernel startup and why not just link those required modules in build time (like Xen), which may posibbly save some booting seconds?
Noah
On 3/14/06, Leon Koll <napobo3 at gmail dot com> wrote:
http://napobo3.blogspot.com/2006/03/solarisppc-on-my-desktop.html
Best wishes to the PowerPC community! -- Leon
On 3/13/06, Noah Yan <
noah dot yan at gmail dot com> wrote: > Hi, All, > > It has been so quiet (which is wired) in recent several weeks here. Hopefully my update may stir something up. > > The inetboot, which allow a diskless system to boot over NFS root is now functional. It can mount the root fs from the NFS server, load an elf file(kernel), exitto it and let it go. I upload some camer shot (seems the PowerMac G4 does not have serial port) in
http://polaris.blastwave.org/attachment/wiki/YanyhDiary/1.GIF, >
http://polaris.blastwave.org/attachment/wiki/YanyhDiary/2.GIF > > In brief, the inetboot bootstrap process is as follow: > 1. openfirmware load the inetboot from tftp server and give control to inetboot
> 2. inetboot initialize memory list > 3. sends rarp request to get the host ip > 4. sends whoami and getfile bootparamd rpc requests to get info for nfs server and remote root > 5. nfs-mount root fs
> 6. read unix over nfs and transfer control to it > > There is no joke at all for even this small task and there are so many details that requires lots of doc/code reading and debuging (I even begin to lean Forth now :o). My informal diary records those major changes which could help if anybody is interested in this.
> > This time, I do need to stop, synchronize and clean my code with the main trunk. So give me some time to check in my code :) > > Noah > This message posted from
opensolaris.org > _______________________________________________ > powerpc-discuss mailing list >
powerpc-discuss at opensolaris dot org >
_______________________________________________
powerpc-discuss mailing list
powerpc-discuss at opensolaris dot org
|
|
|
|
Sven Luther
sl@bplan-gmbh.de
|
|
|
|
Re: The inetboot (the NFS boot) is ready to load
the kernel
Posted:
Mar 18, 2006 1:12 AM
in response to: yanyh
|
|
On Mon, Mar 13, 2006 at 01:56:27PM -0800, Noah Yan wrote: > Hi, All, > > It has been so quiet (which is wired) in recent several weeks here. Hopefully my update may stir something up. > > The inetboot, which allow a diskless system to boot over NFS root is now functional. It can mount the root fs from the NFS server, load an elf file(kernel), exitto it and let it go. I upload some camer shot (seems the PowerMac G4 does not have serial port) in http://polaris.blastwave.org/attachment/wiki/YanyhDiary/1.GIF, > http://polaris.blastwave.org/attachment/wiki/YanyhDiary/2.GIF
Hi Noah, ...
Next week i aim on working on duplicating what you did on the pegasos/ODW machines. I can still not build opensolaris myself though.
> In brief, the inetboot bootstrap process is as follow: > 1. openfirmware load the inetboot from tftp server and give control to inetboot
is a pre-compiled inetboot available somewhere ? And did you have to make special (mac-obp specific ?) modifications of it ?
> 2. inetboot initialize memory list > 3. sends rarp request to get the host ip
would this work with a bootp/dhcp system instead too ?
> 4. sends whoami and getfile bootparamd rpc requests to get info for nfs server and remote root > 5. nfs-mount root fs
mmm, this supposes there is an root filesystem available too, right ?
> 6. read unix over nfs and transfer control to it > > There is no joke at all for even this small task and there are so many details that requires lots of doc/code reading and debuging (I even begin to lean Forth now :o). My informal diary records those major changes which could help if anybody is interested in this. > > This time, I do need to stop, synchronize and clean my code with the main trunk. So give me some time to check in my code :)
How did you progress on this this week ?
Friendly,
Sven Luther
_______________________________________________ powerpc-discuss mailing list powerpc-discuss at opensolaris dot org
|
|
|
|
Posts:
75
From:
USA
Registered:
8/1/05
|
|
|
|
Re: The inetboot (the NFS boot) is ready to load
the kernel
Posted:
Mar 18, 2006 9:52 AM
in response to: Sven Luther
|
|
On 3/18/06, Sven Luther <sl@bplan-gmbh.de> wrote:
On Mon, Mar 13, 2006 at 01:56:27PM -0800, Noah Yan wrote: > Hi, All, > > It has been so quiet (which is wired) in recent several weeks here. Hopefully my update may stir something up. > >
The inetboot, which allow a diskless system to boot over NFS root is
now functional. It can mount the root fs from the NFS server, load an
elf file(kernel), exitto it and let it go. I upload some camer shot
(seems the PowerMac G4 does not have serial port) in
http://polaris.blastwave.org/attachment/wiki/YanyhDiary/1.GIF, > http://polaris.blastwave.org/attachment/wiki/YanyhDiary/2.GIF
Hi Noah, ...
Next week i aim on working on duplicating what you did on the pegasos/ODW machines. I can still not build opensolaris myself though.
> In brief, the inetboot bootstrap process is as follow:
> 1. openfirmware load the inetboot from tftp server and give control to inetboot
is a pre-compiled inetboot available somewhere ? And did you have to make special (mac-obp specific ?) modifications of it ?
> 2. inetboot initialize memory list > 3. sends rarp request to get the host ip
would this work with a bootp/dhcp system instead too ?
I did not test dhcp. but I think not, it uses something called "dhcp cache (?)" in the firmware in the original sparc code.
> 4. sends whoami and getfile bootparamd rpc requests to get info for nfs server and remote root
> 5. nfs-mount root fs
mmm, this supposes there is an root filesystem available too, right ?
yes. check the my diary for how to start nfsd, rarpd and bootparamd daemons.
> 6. read unix over nfs and transfer control to it > > There is no joke at all for even this small task and there are so many details that requires lots of doc/code reading and debuging (I even begin to lean Forth now :o). My informal diary records those major changes which could help if anybody is interested in this. > > This time, I do need to stop, synchronize and clean my code with the main trunk. So give me some time to check in my code :)
How did you progress on this this week ?
not very much. But I will try to make this happen around next week or two, both the source and simple docs.
Friendly,
Sven Luther
_______________________________________________ powerpc-discuss mailing list powerpc-discuss at opensolaris dot org [/nobr]
|
|
|
|
Sven Luther
sl@bplan-gmbh.de
|
|
|
|
Re: The inetboot (the NFS boot) is ready to load
the kernel
Posted:
Mar 18, 2006 10:04 AM
in response to: yanyh
|
|
On Sat, Mar 18, 2006 at 11:52:12AM -0600, Noah yan wrote: > On 3/18/06, Sven Luther <sl@bplan-gmbh.de> wrote: > > > > On Mon, Mar 13, 2006 at 01:56:27PM -0800, Noah Yan wrote: > > > Hi, All, > > > > > > It has been so quiet (which is wired) in recent several weeks here. > > Hopefully my update may stir something up. > > > > > > The inetboot, which allow a diskless system to boot over NFS root is now > > functional. It can mount the root fs from the NFS server, load an elf > > file(kernel), exitto it and let it go. I upload some camer shot (seems the > > PowerMac G4 does not have serial port) in > > http://polaris.blastwave.org/attachment/wiki/YanyhDiary/1.GIF, > > > http://polaris.blastwave.org/attachment/wiki/YanyhDiary/2.GIF > > > > Hi Noah, ... > > > > Next week i aim on working on duplicating what you did on the pegasos/ODW > > machines. I can still not build opensolaris myself though. > > > > > In brief, the inetboot bootstrap process is as follow: > > > 1. openfirmware load the inetboot from tftp server and give control to > > inetboot > > > > is a pre-compiled inetboot available somewhere ? And did you have to make > > special (mac-obp specific ?) modifications of it ? > > > I put one on > http://polaris.blastwave.org/attachment/wiki/YanyhDiary/inetboot.elf > let me know your results (take some short :)). Thanks
Ok, thanks.
> no special modification for mac-obp, since most of the code are borrowed or > started from the cooresponding SPARC vesion. but there may be some hidden > ones that we donot know.
Well, as i will work on the pegasos OF/obp, i probably will discover any such rather quickly.
> > 2. inetboot initialize memory list > > > 3. sends rarp request to get the host ip > > > > would this work with a bootp/dhcp system instead too ? > > > I did not test dhcp. but I think not, it uses something called "dhcp cache > (?)" in the firmware in the original sparc code.
I suppose it will need to install a rarp server then, or try the dhcp code.
The pegasos OF can get an ip address by dhcp, not sure if this one can be forwarded to the booted system or not. Maybe it is part of the chosen/bootpath.
> > 4. sends whoami and getfile bootparamd rpc requests to get info for nfs > > server and remote root > > > 5. nfs-mount root fs > > > > mmm, this supposes there is an root filesystem available too, right ? > > > yes. check the my diary for how to start nfsd, rarpd and bootparamd daemons.
Ok. I was more worried with the actual content of the nfs root, since i don't have a setup able to build opensolaris. Maybe you (or someone else) could make a minimal root filesystem available too ?
> > 6. read unix over nfs and transfer control to it > > > > > > There is no joke at all for even this small task and there are so many > > details that requires lots of doc/code reading and debuging (I even begin to > > lean Forth now :o). My informal diary records those major changes which > > could help if anybody is interested in this. > > > > > > This time, I do need to stop, synchronize and clean my code with the > > main trunk. So give me some time to check in my code :) > > > > How did you progress on this this week ? > > > not very much. But I will try to make this happen around next week or two, > both the source and simple docs.
Cool.
Friendly,
Sven Luther
_______________________________________________ powerpc-discuss mailing list powerpc-discuss at opensolaris dot org
|
|
|
|
Posts:
75
From:
USA
Registered:
8/1/05
|
|
|
|
Re: The inetboot (the NFS boot) is ready to load
the kernel
Posted:
Mar 18, 2006 11:30 AM
in response to: Sven Luther
|
|
On 3/18/06, Sven Luther <sl@bplan-gmbh.de> wrote:
On Sat, Mar 18, 2006 at 11:52:12AM -0600, Noah yan wrote: > On 3/18/06, Sven Luther <sl@bplan-gmbh.de> wrote: > > > > On Mon, Mar 13, 2006 at 01:56:27PM -0800, Noah Yan wrote:
> > > Hi, All, > > > > > > It has been so quiet (which is wired) in recent several weeks here. > > Hopefully my update may stir something up. > > > > > > The inetboot, which allow a diskless system to boot over NFS root is now
> > functional. It can mount the root fs from the NFS server, load an elf > > file(kernel), exitto it and let it go. I upload some camer shot (seems the > > PowerMac G4 does not have serial port) in
> > http://polaris.blastwave.org/attachment/wiki/YanyhDiary/1.GIF, > > >
http://polaris.blastwave.org/attachment/wiki/YanyhDiary/2.GIF > > > > Hi Noah, ... > > > > Next week i aim on working on duplicating what you did on the pegasos/ODW > > machines. I can still not build opensolaris myself though.
> > > > > In brief, the inetboot bootstrap process is as follow: > > > 1. openfirmware load the inetboot from tftp server and give control to > > inetboot > > > > is a pre-compiled inetboot available somewhere ? And did you have to make
> > special (mac-obp specific ?) modifications of it ? > > > I put one on > http://polaris.blastwave.org/attachment/wiki/YanyhDiary/inetboot.elf
> let me know your results (take some short :)). Thanks
Ok, thanks.
> no special modification for mac-obp, since most of the code are borrowed or > started from the cooresponding SPARC vesion. but there may be some hidden
> ones that we donot know.
Well, as i will work on the pegasos OF/obp, i probably will discover any such rather quickly.
> > 2. inetboot initialize memory list > > > 3. sends rarp request to get the host ip
> > > > would this work with a bootp/dhcp system instead too ? > > > I did not test dhcp. but I think not, it uses something called "dhcp cache > (?)" in the firmware in the original sparc code.
I suppose it will need to install a rarp server then, or try the dhcp code.
The pegasos OF can get an ip address by dhcp, not sure if this one can be forwarded to the booted system or not. Maybe it is part of the
chosen/bootpath.
> > 4. sends whoami and getfile bootparamd rpc requests to get info for nfs > > server and remote root > > > 5. nfs-mount root fs > > > > mmm, this supposes there is an root filesystem available too, right ?
> > > yes. check the my diary for how to start nfsd, rarpd and bootparamd daemons.
Ok. I was more worried with the actual content of the nfs root, since i don't have a setup able to build opensolaris. Maybe you (or someone else) could make
a minimal root filesystem available too ?
Hi Sven,
I forget to mention this. Currently, the root file system is just
an exported directory, nothing in it. You can put an ELF binary (as
kernel) that can bootstrap itself, such as grub, or linux kernel, or
even the inetboot.elf itself. When the inetboot.elf is loaded and runs,
it will prompt to ask for the kernel (default is ppc/unix), just
input the name of the file that is put in the nfs root (be sure to
start with "/"). and the inetboot will load it and transfer control to
it.
Noah
> > 6. read unix over nfs and transfer control to it > > > > > > There is no joke at all for even this small task and there are so many
> > details that requires lots of doc/code reading and debuging (I even begin to > > lean Forth now :o). My informal diary records those major changes which > > could help if anybody is interested in this.
> > > > > > This time, I do need to stop, synchronize and clean my code with the > > main trunk. So give me some time to check in my code :) > > > > How did you progress on this this week ?
> > > not very much. But I will try to make this happen around next week or two, > both the source and simple docs.
Cool.
Friendly,
Sven Luther
_______________________________________________
powerpc-discuss mailing list
powerpc-discuss at opensolaris dot org
|
|
|
|
Sven Luther
sl@bplan-gmbh.de
|
|
|
|
Re: The inetboot (the NFS boot) is ready to load
the kernel
Posted:
Mar 18, 2006 12:31 PM
in response to: yanyh
|
|
On Sat, Mar 18, 2006 at 01:30:38PM -0600, Noah yan wrote: > Hi Sven, > > I forget to mention this. Currently, the root file system is just an > exported directory, nothing in it. You can put an ELF binary (as kernel) > that can bootstrap itself, such as grub, or linux kernel, or even the > inetboot.elf itself. When the inetboot.elf is loaded and runs, it will > prompt to ask for the kernel (default is ppc/unix), just input the name of > the file that is put in the nfs root (be sure to start with "/"). and the > inetboot will load it and transfer control to it.
Ah, nice.
I guess the real test will be when we will be able to do the same, but instead of using inetboot and rarp/bootp/dhcp/nfs, we will be able to use the client read interface to access the filesystem.
Do you know what inetboot.elf uses ? Does it parse the chosen/bootpath node, and uses that. It would be interesting then to have it be able to parse either the static stuff :
boot eth:<server-ip>,<file>,<own-ip>,<gateway-ip>,<netmas k>
or the rarp/bootp/dhcp version of this one.
Friendly,
Sven Luther
_______________________________________________ powerpc-discuss mailing list powerpc-discuss at opensolaris dot org
|
|
|
|
Posts:
75
From:
USA
Registered:
8/1/05
|
|
|
|
Re: The inetboot (the NFS boot) is ready to load
the kernel
Posted:
Mar 20, 2006 10:44 AM
in response to: Sven Luther
|
|
On 3/18/06, Sven Luther <sl@bplan-gmbh.de> wrote:
On Sat, Mar 18, 2006 at 01:30:38PM -0600, Noah yan wrote: > Hi Sven, > > I forget to mention this. Currently, the root file system is just an
> exported directory, nothing in it. You can put an ELF binary (as kernel) > that can bootstrap itself, such as grub, or linux kernel, or even the > inetboot.elf itself. When the inetboot.elf is loaded and runs, it will
> prompt to ask for the kernel (default is ppc/unix), just input the name of > the file that is put in the nfs root (be sure to start with "/"). and the > inetboot will load it and transfer control to it.
Ah, nice.
I guess the real test will be when we will be able to do the same, but instead of using inetboot and rarp/bootp/dhcp/nfs, we will be able to use the client read interface to access the filesystem.
Do you know what inetboot.elf uses ? Does it parse the chosen/bootpath node, and uses that. It would be interesting then to have it be able to parse either the static stuff :
boot eth:<server-ip>,<file>,<own-ip>,<gateway-ip>,<netmas k>
Hi, Sven,
The inetboot parse bootpath and bootargs and pass most of them to the kernel,
but not for the static configuration of the network.
inetboot network are within subnet, so all needed network config is the ip and rarp is enough. yet dhcp is generally available so no need to setup server ( I will see how to force inetboot to use dhcp).
In general, network configuration of inetboot is not very much platform dependent and it is a matter of programming to use different features, either rarp(dhcp)/bootparamd or bootpd or static configuration.
Noah
or the rarp/bootp/dhcp version of this one.
Friendly,
Sven Luther
_______________________________________________
powerpc-discuss mailing list
powerpc-discuss at opensolaris dot org
|
|
|
|
Sven Luther
sl@bplan-gmbh.de
|
|
|
|
Re: The inetboot (the NFS boot) is ready to load
the kernel
Posted:
Mar 20, 2006 8:20 PM
in response to: yanyh
|
|
On Mon, Mar 20, 2006 at 12:44:01PM -0600, Noah yan wrote: > The inetboot parse bootpath and bootargs and pass most of them to the > kernel, > but not for the static configuration of the network.
Too bad, but understandable.
> inetboot network are within subnet, so all needed network config is the ip > and rarp is enough. yet dhcp is generally available so no need to setup > server ( I will see how to force inetboot to use dhcp). > > In general, network configuration of inetboot is not very much platform > dependent and it is a matter of programming to use different features, > either rarp(dhcp)/bootparamd or bootpd or static configuration.
I guess parsing the bootpath/bootargs would be the best way for the user to pass that info to inetboot, and since the user need then to pass it to the kernel anyway, the easiest way to not duplicate that information.
Friendly,
Sven Luther
_______________________________________________ powerpc-discuss mailing list powerpc-discuss at opensolaris dot org
|
|
|
|
Sven Luther
sl@bplan-gmbh.de
|
|
|
|
Re: The inetboot (the NFS boot) is ready to load
the kernel
Posted:
Mar 21, 2006 5:28 AM
in response to: yanyh
|
|
Nice, ...
I will probably be able to get some ultrasparc 5, i guess this will allow me to run opensolaris/sparc on it, and cross compile to opensolaris/powerpc, right ?
Friendly,
Sven Luther
_______________________________________________ powerpc-discuss mailing list powerpc-discuss at opensolaris dot org
|
|
|
|
Posts:
75
From:
USA
Registered:
8/1/05
|
|
|
|
Re: The inetboot (the NFS boot) is ready to load
the kernel
Posted:
Mar 21, 2006 6:11 AM
in response to: Sven Luther
|
|
On 3/21/06, Sven Luther <sl@bplan-gmbh.de> wrote:
Nice, ...
I will probably be able to get some ultrasparc 5, i guess this will allow me to run opensolaris/sparc on it, and cross compile to opensolaris/powerpc,
right ?
Noah
Friendly,
Sven Luther
_______________________________________________
powerpc-discuss mailing list
powerpc-discuss at opensolaris dot org
|
|
|
|
Sven Luther
sl@bplan-gmbh.de
|
|
|
|
Re: The inetboot (the NFS boot) is ready to load
the kernel
Posted:
Mar 21, 2006 12:10 PM
in response to: yanyh
|
|
On Tue, Mar 21, 2006 at 08:11:10AM -0600, Noah yan wrote: > On 3/21/06, Sven Luther <sl@bplan-gmbh.de> wrote: > > > > Nice, ... > > > > I will probably be able to get some ultrasparc 5, i guess this will allow > > me > > to run opensolaris/sparc on it, and cross compile to opensolaris/powerpc, > > right ? > > > you will have to build the cross-compiling toolchain for sparc2ppc, which > is from http://polaris.blastwave.org/wiki/PolarisGcc . But probably somebody > has pre-built one.
I can build it, no problem :)
> I use an x86-solaris and toolchain binary directly from > http://www.opensolaris.org/os/community/power_pc/ppc_tools/
Yeah, i had only powerpc machines, so this made building opensolaris a bit more difficult, since building from linux was not supported :)
Friendly,
Sven Luther
_______________________________________________ powerpc-discuss mailing list powerpc-discuss at opensolaris dot org
|
|
|
|
Posts:
75
From:
USA
Registered:
8/1/05
|
|
|
|
Re: The inetboot (the NFS boot) is ready to load
the kernel
Posted:
Mar 28, 2006 11:09 AM
in response to: yanyh
|
|
Sources are checked in
( http://svn.genunix.org/repos/polaris/branches/yanyh/ws/) and docs
from
http://polaris.blastwave.org/wiki/PolarisBootstrap#NFSDisklessBoot
Noah On 3/13/06, Noah Yan <noah dot yan at gmail dot com> wrote:
Hi, All,
It has been so quiet (which is wired) in recent several weeks here. Hopefully my update may stir something up.
The
inetboot, which allow a diskless system to boot over NFS root is now
functional. It can mount the root fs from the NFS server, load an elf
file(kernel), exitto it and let it go. I upload some camer shot (seems
the PowerMac G4 does not have serial port) in
http://polaris.blastwave.org/attachment/wiki/YanyhDiary/1.GIF, http://polaris.blastwave.org/attachment/wiki/YanyhDiary/2.GIF
In brief, the inetboot bootstrap process is as follow: 1. openfirmware load the inetboot from tftp server and give control to inetboot 2. inetboot initialize memory list 3. sends rarp request to get the host ip
4. sends whoami and getfile bootparamd rpc requests to get info for nfs server and remote root 5. nfs-mount root fs 6. read unix over nfs and transfer control to it
There
is no joke at all for even this small task and there are so many
details that requires lots of doc/code reading and debuging (I even
begin to lean Forth now :o). My informal diary records those major
changes which could help if anybody is interested in this.
This time, I do need to stop, synchronize and clean my code with the main trunk. So give me some time to check in my code :)
Noah This message posted from
opensolaris.org __________________________ _____________________ powerpc-discuss mailing list powerpc-discuss at opensolaris dot org
_______________________________________________
powerpc-discuss mailing list
powerpc-discuss at opensolaris dot org
|
|
|
|
|