* Re: [Axp-hardware] tftpboot alpha server 4/275
@ 2001-05-05 15:49 duane ellis
0 siblings, 0 replies; 13+ messages in thread
From: duane ellis @ 2001-05-05 15:49 UTC (permalink / raw)
duane > Found some problems with 'glibc' - sent the 4 line patch in >
already.
My glibc problem is this - I'm cross compiling, during the
glibc 'install' step some programs need to be built - I can't build
them cause not enough is installed. The boo-boo has to do with the
build-programs=no option not being honored during 'make install'
[snip, stuff about alpha]
>Hope this helps a bit.
>Thorsten
Thanks, I think it will.
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
_______________________________________________
Axp-hardware mailing list
Axp-hardware@lists.alphalinux.org
http://lists.alphalinux.org/mailman/listinfo/axp-hardware
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Axp-hardware] tftpboot alpha server 4/275
@ 2001-05-04 23:53 duane ellis
2001-05-06 9:02 ` T. Weyergraf
0 siblings, 1 reply; 13+ messages in thread
From: duane ellis @ 2001-05-04 23:53 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2234 bytes --]
After a long long hayatus, I'm back.
I can cross compile a kernal without dorking with
anything out side of /home/duane (my default user account)
There are defininatly problems with the alpha linux
makefiles that *DO*NOT* let you cross compile.
It is basically broken. I'm going to have to look at
various newer versions of the kernel to see if these
things are fixed or not.
If/when I develop patches - who do I send them to?
Is there a designated "alpha-kernel" person, or do I send
them directly into Linus/Alan?
Found some problems with 'glibc' - sent the 4 line patch in already.
I'm now at the stage where I have "vmlinux" and I
need to do the "make bootpfile" step.
The file 'objstrip' is now the problem it appears
that it is written non-portable (ie: will not work
in a cross compile situation)
I'm getting this message:
tools/objstrip -v /home/duane/ALPHA/dir-kernel/linux/vmlinux vmlinux.nh
tools/objstrip: 0 program headers (forgot to link with -N?)
tools/objstrip: extracting 0x00000000310000-0000000000000000 (at 310000)
tools/objstrip: copying 4291756032 byte from
/home/duane/ALPHA/dir-kernel/linux/vmlinux
read: Invalid argument
Two things look wrong (A) The extract range is dumb looking
(B) 4291756032 is very *WRONG* looking for a file size.
To fix this, I need some information.
I hope you guys can help. If not please point me to who can.
Remember my host is i686, target: alpha.
intel alpha
ie: sizeof(char) = 1 byte, alpha? Assume 1 byte?
sizeof(short) = 2 byte, alpha? Unknown
sizeof(long) = 4 byte, alpha? Unknown
sizeof(long long) = 8 byte, alpha? Unknown
Is alpha big/little endian?
does alpha require/support/care about structure alignment?
what about structure packing?
Anybody have reasonable looking numbers for these things?
I'm only looking for "ball park" numbers - I know mine will
be different to some degree.
-Duane.
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
_______________________________________________
Axp-hardware mailing list
Axp-hardware@lists.alphalinux.org
http://lists.alphalinux.org/mailman/listinfo/axp-hardware
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Axp-hardware] tftpboot alpha server 4/275
2001-05-04 23:53 duane ellis
@ 2001-05-06 9:02 ` T. Weyergraf
0 siblings, 0 replies; 13+ messages in thread
From: T. Weyergraf @ 2001-05-06 9:02 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 4295 bytes --]
> After a long long hayatus, I'm back.
Hey, welcome back ;-)
> I can cross compile a kernal without dorking with
> anything out side of /home/duane (my default user account)
>
> There are defininatly problems with the alpha linux
> makefiles that *DO*NOT* let you cross compile.
> It is basically broken. I'm going to have to look at
> various newer versions of the kernel to see if these
> things are fixed or not.
Don't worry about letting us know some details. Although at least *i* use various Alphas
as build-hosts, this is interesting enough. I only have two PC's - one of which is in use
as an Xterminal and Mailserver - but I could very well set up one of those to get
involved with the cross-development stuff.
> If/when I develop patches - who do I send them to?
> Is there a designated "alpha-kernel" person, or do I send
> them directly into Linus/Alan?
I would probably send them to Andrea Arcangeli at SuSE. He's doing *a lot* of work
on Alphas and thus has a deep understanding of what's going on in linux-alpha.
I've not been in contact with him, so I can't predict, whether he would like to see them
or not. But since he actively maintains patches to the main kernel-tree, he *might*
be interested. I would not send the patches to Alan or Linus, since their Email is
apparently cluttered with stuff of lesser importance already.
As always, YMMV.
> Found some problems with 'glibc' - sent the 4 line patch in already.
>
> I'm now at the stage where I have "vmlinux" and I
> need to do the "make bootpfile" step.
>
> The file 'objstrip' is now the problem it appears
> that it is written non-portable (ie: will not work
> in a cross compile situation)
>
> I'm getting this message:
>
> tools/objstrip -v /home/duane/ALPHA/dir-kernel/linux/vmlinux vmlinux.nh
> tools/objstrip: 0 program headers (forgot to link with -N?)
> tools/objstrip: extracting 0x00000000310000-0000000000000000 (at 310000)
> tools/objstrip: copying 4291756032 byte from
> /home/duane/ALPHA/dir-kernel/linux/vmlinux
> read: Invalid argument
>
> Two things look wrong (A) The extract range is dumb looking
> (B) 4291756032 is very *WRONG* looking for a file size.
>
> To fix this, I need some information.
> I hope you guys can help. If not please point me to who can.
>
> Remember my host is i686, target: alpha.
>
> intel alpha
> ie: sizeof(char) = 1 byte, alpha? Assume 1 byte?
> sizeof(short) = 2 byte, alpha? Unknown
> sizeof(long) = 4 byte, alpha? Unknown
> sizeof(long long) = 8 byte, alpha? Unknown
On Alpha, all sizes are the same as in x86, except for longs being 64bit by default. The
same of course goes for pointers.
By looking at the source of objstrip, i think, this is precisely your problem.
> Is alpha big/little endian?
little endian
> does alpha require/support/care about structure alignment?
> what about structure packing?
It cares *a lot* about alignment. It supports misaligned accesses, but traps on them as
all major RISC arches do. See do_enTuna in the kernel sources. You'll get a
kernel message about that. When creating the bootpfile, you should use the correct
alignment for 64bit machines, which is 8 bytes. I think, that at least the ELF headers,
which objstrip reads for tthe conversion is aligned to 8 bytes.
You *must* use that alignment, so make sure, that the cross-compiler uses it.
Also, objstrip uses longs in a way, that they are expected to be 64bits. IMHO, you
need hack either the cross-dev setup or the source itself, to make sure it uses
64bit longs, pointers and filedescriptors.
> Anybody have reasonable looking numbers for these things?
> I'm only looking for "ball park" numbers - I know mine will
> be different to some degree.
HTH,
T. Weyergraf
P.S.: I might be wrong on some of this - it's early here ( just got up ;-)
So, YMMV
--
Thomas Weyergraf kirk@colinet.de
My Favorite IA64 Opcode-guess ( see arch/ia64/lib/memset.S )
"br.ret.spnt.few" - got back from getting beer, did not spend a lot.
_______________________________________________
Axp-hardware mailing list
Axp-hardware@lists.alphalinux.org
http://lists.alphalinux.org/mailman/listinfo/axp-hardware
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Axp-hardware] tftpboot alpha server 4/275
@ 2001-04-12 12:23 duane ellis
2001-04-12 12:51 ` Jan-Benedict Glaw
0 siblings, 1 reply; 13+ messages in thread
From: duane ellis @ 2001-04-12 12:23 UTC (permalink / raw)
duane> > Right now, I'm muddling my way through settig up my
> > Intel box to cross compile the kernal.
This is such a pain!!!
>you should be aware, that 2.4.3 does not compile on alpha without special
>patches. The proper patch is available via ftp on:
>ftp.kernel.org/pub/linux/kernel/people/andrea/kernels/v2.4/2.4.3aa1/00_alpha-numa-1
Thanks, i'm not even that far yet. :-<
The problem is a big tangled Catch-22 problem.
I need to build glibc, gcc, binutils and the kernal
and some parts (A) I have to hack so I can build (B)
so that I can go back and build the unhacked version of (A)
so that I can go back and build the unhacked version of (B)
so that I can then get to the point where I can build the
kernal.
glibc is one of those... and it takes 2 hours to build
on my box. Then it dies - and I find one more hack I have
to put in. AGH!
I can only work for a few hours each evening after my 9yr
old son gets his daily dose of "Need For Speed III"
the latest game he has fallen in love with.
-Duane.
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
_______________________________________________
Axp-hardware mailing list
Axp-hardware@lists.alphalinux.org
http://lists.alphalinux.org/mailman/listinfo/axp-hardware
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Axp-hardware] tftpboot alpha server 4/275
2001-04-12 12:23 duane ellis
@ 2001-04-12 12:51 ` Jan-Benedict Glaw
2001-04-12 15:19 ` T. Weyergraf
0 siblings, 1 reply; 13+ messages in thread
From: Jan-Benedict Glaw @ 2001-04-12 12:51 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2148 bytes --]
On Thu, Apr 12, 2001 at 08:23:32AM -0400, duane ellis wrote:
> duane> > Right now, I'm muddling my way through settig up my
> > > Intel box to cross compile the kernal.
>
> This is such a pain!!!
No. You only need a cross compiler for yout kernel. Therefor, any
glibc and so on is *not* needed. Only compiler and binutils. You may
want to fetch a script from
ftp://oss.sgi.com:/pub/linux/mips/mips-linux/simple/crossdev/make-cross.sh
and some binutils and gcc source packages. Then buils your alpha cross
compiler for "linux-alpha".
> >you should be aware, that 2.4.3 does not compile on alpha without special
> >patches. The proper patch is available via ftp on:
> >ftp.kernel.org/pub/linux/kernel/people/andrea/kernels/v2.4/2.4.3aa1/00_alpha-numa-1
>
> Thanks, i'm not even that far yet. :-<
>
> The problem is a big tangled Catch-22 problem.
> I need to build glibc, gcc, binutils and the kernal
> and some parts (A) I have to hack so I can build (B)
> so that I can go back and build the unhacked version of (A)
> so that I can go back and build the unhacked version of (B)
> so that I can then get to the point where I can build the
> kernal.
For building a kernel, you only need gcc and binutils. Even on slow
machines they can be build within an hour.
> glibc is one of those... and it takes 2 hours to build
> on my box. Then it dies - and I find one more hack I have
> to put in. AGH!
You *would* need to have a cross-glibc for userspace. But don't try
to completely build it from scratch on your own. Simply fetch up
all needed alpha-packages from your preferred distribution (Debian
would be nice) and unpack them into one directory. That would be
fairly enough.
In fact, this is how I started working on DECstations (little endian
MIPS machines).
MfG, JBG
--
Fehler eingestehen, Größe zeigen: Nehmt die Rechtschreibreform zurück!!!
/* Jan-Benedict Glaw <jbglaw@lug-owl.de> -- +49-172-7608481 */
keyID=0x8399E1BB fingerprint=250D 3BCF 7127 0D8C A444 A961 1DBD 5E75 8399 E1BB
"insmod vi.o and there we go..." (Alexander Viro on linux-kernel)
application/pgp-signature attachment: stored
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: [Axp-hardware] tftpboot alpha server 4/275
2001-04-12 12:51 ` Jan-Benedict Glaw
@ 2001-04-12 15:19 ` T. Weyergraf
2001-04-13 13:00 ` Jan-Benedict Glaw
0 siblings, 1 reply; 13+ messages in thread
From: T. Weyergraf @ 2001-04-12 15:19 UTC (permalink / raw)
Hi,
[...]
> > > > Right now, I'm muddling my way through settig up my
> > > > Intel box to cross compile the kernal.
> >
> > This is such a pain!!!
>
> No. You only need a cross compiler for yout kernel. Therefor, any
> glibc and so on is *not* needed. Only compiler and binutils. You may
> want to fetch a script from
> ftp://oss.sgi.com:/pub/linux/mips/mips-linux/simple/crossdev/make-cross.sh
> and some binutils and gcc source packages. Then buils your alpha cross
> compiler for "linux-alpha".
hmm. is there a cross-development setup for binutils as well ? Of course, the binutils
need a working glibc.
Otherwise, i can't help, since i don't use a cross-development setup.
Regards,
Thomas
--
Thomas Weyergraf kirk@colinet.de
My Favorite IA64 Opcode-guess ( see arch/ia64/lib/memset.S )
"br.ret.spnt.few" - got back from getting beer, did not spend a lot.
_______________________________________________
Axp-hardware mailing list
Axp-hardware@lists.alphalinux.org
http://lists.alphalinux.org/mailman/listinfo/axp-hardware
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Axp-hardware] tftpboot alpha server 4/275
2001-04-12 15:19 ` T. Weyergraf
@ 2001-04-13 13:00 ` Jan-Benedict Glaw
0 siblings, 0 replies; 13+ messages in thread
From: Jan-Benedict Glaw @ 2001-04-13 13:00 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1119 bytes --]
On Thu, Apr 12, 2001 at 05:19:12PM +0200, T. Weyergraf wrote:
[Building a complete userspace cross development chain]
> > No. You only need a cross compiler for yout kernel. Therefor, any
> > glibc and so on is *not* needed. Only compiler and binutils. You may
> > want to fetch a script from
> > ftp://oss.sgi.com:/pub/linux/mips/mips-linux/simple/crossdev/make-cross.sh
> > and some binutils and gcc source packages. Then buils your alpha cross
> > compiler for "linux-alpha".
>
> hmm. is there a cross-development setup for binutils as well ? Of course, the binutils
> need a working glibc.
The script mentioned above compiles gcc as well as binutils. And no,
you don't need a cross-glibc to compile a kernel. You only need
binutils and gcc's sources.
MfG, JBG
--
Fehler eingestehen, Größe zeigen: Nehmt die Rechtschreibreform zurück!!!
/* Jan-Benedict Glaw <jbglaw@lug-owl.de> -- +49-172-7608481 */
keyID=0x8399E1BB fingerprint=250D 3BCF 7127 0D8C A444 A961 1DBD 5E75 8399 E1BB
"insmod vi.o and there we go..." (Alexander Viro on linux-kernel)
application/pgp-signature attachment: stored
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Axp-hardware] tftpboot alpha server 4/275
@ 2001-04-08 14:28 duane ellis
2001-04-10 11:36 ` T. Weyergraf
0 siblings, 1 reply; 13+ messages in thread
From: duane ellis @ 2001-04-08 14:28 UTC (permalink / raw)
>Ok, here are the necessary steps to netboot an Alpha:
Thanks - your stuff is very helpful.
Question: the "-flags" option to the boot command
is this where I can specify additional kenal options
at boot/load time?
Right now, I'm muddling my way through settig up my
Intel box to cross compile the kernal. I'm getting there
learned a few things from the "ARM" hand held development
web pages. I'm trying vrs 2.4.3
I think being able to build my own kernal will make life
quite a bit easier.
Thanks for the tips on root-on-nfs stuff, I need that.
BTW - RH 7.0 - uses xinet.d and does not come with bootp
so I had to get it off the net.
I did find another boot image and it gets further, I guess
it's something to do with the real time clock. Seems like
there should be a switch some where for the oddities of the
4/275 machines with sable cpus.
I've also found that using tcpdump helps find many problems
as I can see what is/is not happening on the wire.
>You should be fine now. If not, feel free to ask or drop me a mail.
>Regards,
>Thomas Weyergraf
Again, thanks - I'll let you know when I get stuck.
If all goes right, I'm going to try to port the SDK
for eBookman to alpha. (http://www.franklin.com/ebookman)
it's where I work and the product I've been workig on for
the last 15 months or so. I'm one of the core developers
on the project. At work we have intel Linux boxes and now
I have an alpha I want to see if I can do it.
-Duane.
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
_______________________________________________
Axp-hardware mailing list
Axp-hardware@lists.alphalinux.org
http://lists.alphalinux.org/mailman/listinfo/axp-hardware
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Axp-hardware] tftpboot alpha server 4/275
2001-04-08 14:28 duane ellis
@ 2001-04-10 11:36 ` T. Weyergraf
2001-04-10 11:44 ` Rich Payne
2001-04-10 11:50 ` Jan-Benedict Glaw
0 siblings, 2 replies; 13+ messages in thread
From: T. Weyergraf @ 2001-04-10 11:36 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 4140 bytes --]
Hi,
> >Ok, here are the necessary steps to netboot an Alpha:
>
> Thanks - your stuff is very helpful.
Great, good to hear ;-)
> Question: the "-flags" option to the boot command
> is this where I can specify additional kenal options
> at boot/load time?
Yes, indeed. The SRM "boot -flags" mechanism is used by the Linux-kernel for
passing options. You can put whatever you like in there, although there is a limit
on the length. The limit is 256 characters as in arch/alpha/kernel/setup.c.
> Right now, I'm muddling my way through settig up my
> Intel box to cross compile the kernal. I'm getting there
> learned a few things from the "ARM" hand held development
> web pages. I'm trying vrs 2.4.3
you should be aware, that 2.4.3 does not compile on alpha without special patches.
The proper patch is available via ftp on:
ftp.kernel.org/pub/linux/kernel/people/andrea/kernels/v2.4/2.4.3aa1/00_alpha-numa-1
if IIRC. You should check the recent linux-kernel mailing-list archives.
> I think being able to build my own kernal will make life
> quite a bit easier.
>
> Thanks for the tips on root-on-nfs stuff, I need that.
>
> BTW - RH 7.0 - uses xinet.d and does not come with bootp
> so I had to get it off the net.
hmm. I don't use red hat, so all of my comments should be adated to any non-UNIX
environment ;-)
Anyway, bootpd should be buildable right out of the box. I can't imagine, that red hat
ships a inetd-replacement, that doesn't offer inetd functionality.
> I did find another boot image and it gets further, I guess
> it's something to do with the real time clock. Seems like
> there should be a switch some where for the oddities of the
> 4/275 machines with sable cpus.
Can't tell, what the problem is. As far as real-time clocks are concerned, make sure
to build *any* linux-alpha kernels with
CONFIG_RTC=y
Otherwise, your system date and time might be completely off. If the kernel contains the
above option, it's wise to set the systems's date with date(1) to the correct time and date and
copy that back to the HW's RTC. Use hwclock --systohc for that. IIRC, red hat uses to
hwclock --hctosys to set the systems date&time at boot. You may want to revisit the
bootscripts for that.
> I've also found that using tcpdump helps find many problems
> as I can see what is/is not happening on the wire.
As far as bootpd is concerned, the daemon itself comes with a fairly detailed debugging
flag. Check the manpage for your preferred debug-level. Output goes ( as always ) to
the logs. I've found that quite useful. Debugging NFS transactions on ethernet framelevel
can be a bit bitchy, but I'm sure you knew that already ;-)
> Again, thanks - I'll let you know when I get stuck.
Go ahead ;-)
>
> If all goes right, I'm going to try to port the SDK
> for eBookman to alpha. (http://www.franklin.com/ebookman)
> it's where I work and the product I've been workig on for
> the last 15 months or so. I'm one of the core developers
> on the project. At work we have intel Linux boxes and now
> I have an alpha I want to see if I can do it.
For any serious development work on apps, make sure you checked the compaq compilers.
They are free to download for non-commercial use, and they provide *much* better
binary code. I like them a lot, although I can't use them for my stuff ( kernel-related, and
linux-kernels don't build with anything else but GCC ).
I've been told, that on alpha, especially their C++ compiler provides much better code and
less bugs/deficiencies, although I can't verify that - I simply don't C++.
The relevant link to all free Compaq-Alpha tools is
http://www.support.compaq.com/alpha-tools/
> -Duane.
HTH and regards,
T. Weyergraf
--
Thomas Weyergraf kirk@colinet.de
My Favorite IA64 Opcode-guess ( see arch/ia64/lib/memset.S )
"br.ret.spnt.few" - got back from getting beer, did not spend a lot.
_______________________________________________
Axp-hardware mailing list
Axp-hardware@lists.alphalinux.org
http://lists.alphalinux.org/mailman/listinfo/axp-hardware
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Axp-hardware] tftpboot alpha server 4/275
2001-04-10 11:36 ` T. Weyergraf
@ 2001-04-10 11:44 ` Rich Payne
2001-04-10 11:50 ` Jan-Benedict Glaw
1 sibling, 0 replies; 13+ messages in thread
From: Rich Payne @ 2001-04-10 11:44 UTC (permalink / raw)
>
> > I did find another boot image and it gets further, I guess
> > it's something to do with the real time clock. Seems like
> > there should be a switch some where for the oddities of the
> > 4/275 machines with sable cpus.
>
> Can't tell, what the problem is. As far as real-time clocks are concerned, make sure
> to build *any* linux-alpha kernels with
>
> CONFIG_RTC=y
>
> Otherwise, your system date and time might be completely off. If the kernel contains the
> above option, it's wise to set the systems's date with date(1) to the correct time and date and
> copy that back to the HW's RTC. Use hwclock --systohc for that. IIRC, red hat uses to
> hwclock --hctosys to set the systems date&time at boot. You may want to revisit the
> bootscripts for that.
There is one exception to this...do not build 2.2.x SMP with RTC unless
you apply the RTC lite patches, unless you like using only the primary
CPU.
--rdp
--
Rich Payne
rpayne@alphalinux.org www.alphalinux.org
_______________________________________________
Axp-hardware mailing list
Axp-hardware@lists.alphalinux.org
http://lists.alphalinux.org/mailman/listinfo/axp-hardware
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Axp-hardware] tftpboot alpha server 4/275
2001-04-10 11:36 ` T. Weyergraf
2001-04-10 11:44 ` Rich Payne
@ 2001-04-10 11:50 ` Jan-Benedict Glaw
1 sibling, 0 replies; 13+ messages in thread
From: Jan-Benedict Glaw @ 2001-04-10 11:50 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 713 bytes --]
On Tue, Apr 10, 2001 at 01:36:14PM +0200, T. Weyergraf wrote:
> Can't tell, what the problem is. As far as real-time clocks are concerned, make sure
> to build *any* linux-alpha kernels with
>
> CONFIG_RTC=y
That issue has been fixed - you may build RTC's char device modular
these days *and* expect your kernel to come up with the right(TM)
epoch year.
MfG, JBG
--
Fehler eingestehen, Größe zeigen: Nehmt die Rechtschreibreform zurück!!!
/* Jan-Benedict Glaw <jbglaw@lug-owl.de> -- +49-172-7608481 */
keyID=0x8399E1BB fingerprint=250D 3BCF 7127 0D8C A444 A961 1DBD 5E75 8399 E1BB
"insmod vi.o and there we go..." (Alexander Viro on linux-kernel)
application/pgp-signature attachment: stored
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Axp-hardware] tftpboot alpha server 4/275
@ 2001-04-07 12:42 duane ellis
2001-04-07 15:24 ` T. Weyergraf
0 siblings, 1 reply; 13+ messages in thread
From: duane ellis @ 2001-04-07 12:42 UTC (permalink / raw)
Hello all, I'm trying to boot an AS2000 4/275
via bootp from my RH7.0 Intel box. I'm having some
success - and some problems.
If this is the wrong list to ask this on please
give me a suggestion.
The only tftpboot image I can find is debian, so I'm
trying to do a debian install. I'd make CDs but I don't
know how to make bootable CDs, and I don't know the boot
from cd command or if the 4/275 supports it.
The alpha box has dual 275mhz "4meg sable" CPUS
and 512MEG ram.
The tftpboot information is missing from the debian install
instructions. It ends with "NOT WRITTEN YET" I've gone well
past that point (compaq has great PDF files on line!)
At this point, on my alpha I type:
boot -protocol bootp ewa0
{Are there other options I should specifiy?}
On my intel box, I've got the bootp server running. My intel
box dumps zillions of debug messages all is well, things seem
great. No problem at that end.
Alpha box loads and I get the various sign on banners
for the loader.
On the alpha, I get these messages:
boostrap code read in
base = 200000, image_start = 0, image_bytes=436a55
iniitalizing HWRPB at 2000
initialzing page table at 1f2000
initializing machine state
setting affinity to the primary CPU
jumping to boostrap code
Linux/AXP bootp loader for linux 2.2.18pre21
Switching to OSF PAL-code .. OK (rev 400090002012d)
Initrd positioned at 0xffffffc00011ba000
halted CPU 0
halt code = 2
kernel stack not valid halt
PC=144e4
I'm stuck, any suggestions on where to goto next?
-Duane.
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
_______________________________________________
Axp-hardware mailing list
Axp-hardware@lists.alphalinux.org
http://lists.alphalinux.org/mailman/listinfo/axp-hardware
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: [Axp-hardware] tftpboot alpha server 4/275
2001-04-07 12:42 duane ellis
@ 2001-04-07 15:24 ` T. Weyergraf
0 siblings, 0 replies; 13+ messages in thread
From: T. Weyergraf @ 2001-04-07 15:24 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 5655 bytes --]
Hi,
> Hello all, I'm trying to boot an AS2000 4/275
> via bootp from my RH7.0 Intel box. I'm having some
> success - and some problems.
>
> If this is the wrong list to ask this on please
> give me a suggestion.
>[... Lots of stuff deleted ...]
Ok, here are the necessary steps to netboot an Alpha:
First of all, you need to create a netbootable Kernelimage foer the Alpha. That of course,
assumes, that you have an Alpha on which you can build a kernel. If not, feel free
to send me the proper .config and the version of the kernel you want and I can build
one for you. Make sure, the kernel contains proper networking and a non-module (!) driver
for the ethernet card In addition, the following options must be set:
CONFIG_IP_PNP=y
CONFIG_IP_PNP_BOOTP=y
CONFIG_IP_PNP_RARP=y
CONFIG_NFS_FS=y
CONFIG_ROOT_NFS=y
CONFIG_SUNRPC=y
CONFIG_LOCKD=y
Compile the kernel as follows:
First the normal stuff:
make dep ; make clean ; make boot
Then, create the bootimage by doing:
make bootpfile
That gives you a file called "bootpfile" in arch/alpha/boot. This is the kernel, you can boot
via bootp. Copy that kernel to the location, where the root-filesystem you intend to export
for the Alpha lives. I use the whole networking stuff, to boot my experimental Alpha-clustering
kernels, which are based on linux-kernel. So the following examples are real-world ones.
I'll use /home/colinet/cid1, and call the kernel vmlinux ( i call the vmccol, but that doesn't
matter, since it's not normal linux anyway ;-). That gives you the complete path of the kernel:
/home/colinet/cid1/vmlinux
Along with the kernel, the directory /home/colinet/cid1 should also contain a reasonable
amount of linux-related files, like a correct init-binary, an /etc hirachy, /sbin, /usr/bin, /var
and all that stuff. Edit that whole thing to your requirements. It's an awful lot of work. As a
starter, I used the Debian ( my distro ) boot-floppies, unpacked the whole stuff in the
/home/colinet/cid1 and reconfigured the /etc hirachy. Feel free, to create your own
linux-setup, you'll wish to netboot. As my current setup is definitely not linux anymore
( I use my own init for my cluster, so the whole thing looks different from the very beginning ),
I can't even give you a decent ls-Ral template. Sorry for that ;-)
Now, configure bootp for the correct System. Note, that the "ha=xxxxxxxx" needs to be changed
to the MAC of your ethernet card - show device on SRM usually tells you that number. Also
the IP-adress and netmask needs to be tuned to your network. The machine name cid1 should
also be changed to what you have. My /etc/bootptab entry looks like this:
cid1\
:ha=0080AD86D284:rp=/home/colinet/cid1:\
:hd=/home/colinet/cid1:bf=vmlinux:\
:ip=192.168.164.2:sm=255.255.255.0:\
:td=/home/colinet/cid1
Now, make sure, bootpd is running ( start via /usr/sbin/bootpd ) and the tftp service is enabled
and configured correctly in /etc/inetd.conf. My inetd.conf entry looks like this:
tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /home/colinet
The path at the end of the line, is the directory matching all above settings. Also, as you can
see, I'm running tftpd under the control of the tcp-wrapper, for security reasons. Since
this is default on all serious linux-distros today, make sure, /etc/hosts.allow and /etc/hosts.deny
are configured correctly.
Now. setup the NFS-root for the client correctly. For that, my /etc/exports contains the
following entry:
/home/colinet/cid1 cid1(rw,no_root_squash)
Make sure, NFS is configured correctly and the service is running on the server. As a
security note, make sure, there is no whitespace between the hostname ( cid1 ) and the
opening-bracket. The flag no_root_squash is necessary, in order to allow real UID=0
access to the NFS-root for the client.
Now, make sure, your client's fstab in /home/colinet/cid1/etc/fstab contains the correct
filesystem setup. You should have at least:
192.168.164.2:/home/colinet/cid1 / nfs rsize=8192,wsize=8192
proc /proc proc defaults 0 0
You can tune the rsize/wsize settings to your preferences, your NIC's MTU and the like.
the 8192 values work well for me. IIRC, 1024 is the default value for both, so these can
be omitted.
Now, the smoke test ;-)
Verify, all changes to config-files are correct on the server, as stated above. Make sure,
bootp is running, inetd can start tftpd and NFS is running on the server.
Boot the ( alpha-) client into SRM and enter the following:
boot -proto bootp ewa0 -flags "nfsroot=192.168.164.10:/home/colinet/cid1"
Of course, 192.168.164.10 needs to be changed to your server's IP address and the
nfsroot-path needs to be changed according to your settings above.
Besides, for testing if the bootpd/tftp stuff is configured correctly, you can just enter:
boot -proto bootp ewa0
That should load the kernel, which starts and bails out with the "Kernel Panic: VFS: Unable to
mount root on xx:yy" message.
You should be fine now. If not, feel free to ask or drop me a mail.
Regards,
Thomas Weyergraf
--
Thomas Weyergraf kirk@colinet.de
My Favorite IA64 Opcode-guess ( see arch/ia64/lib/memset.S )
"br.ret.spnt.few" - got back from getting beer, did not spend a lot.
_______________________________________________
Axp-hardware mailing list
Axp-hardware@lists.alphalinux.org
http://lists.alphalinux.org/mailman/listinfo/axp-hardware
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2001-05-06 9:02 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-05 15:49 [Axp-hardware] tftpboot alpha server 4/275 duane ellis
-- strict thread matches above, loose matches on Subject: below --
2001-05-04 23:53 duane ellis
2001-05-06 9:02 ` T. Weyergraf
2001-04-12 12:23 duane ellis
2001-04-12 12:51 ` Jan-Benedict Glaw
2001-04-12 15:19 ` T. Weyergraf
2001-04-13 13:00 ` Jan-Benedict Glaw
2001-04-08 14:28 duane ellis
2001-04-10 11:36 ` T. Weyergraf
2001-04-10 11:44 ` Rich Payne
2001-04-10 11:50 ` Jan-Benedict Glaw
2001-04-07 12:42 duane ellis
2001-04-07 15:24 ` T. Weyergraf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox