From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Sat, 07 Apr 2001 17:24:23 +0200 From: T. Weyergraf Subject: Re: [Axp-hardware] tftpboot alpha server 4/275 In-Reply-To: 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