From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,cb03cc4a6994ff51 X-Google-Attributes: gid1164f8,public From: Richard van den Berg Subject: Re: DECSTAtion 5000/240 Linux boot problems Date: 1999/04/18 Message-ID: #1/1 X-Deja-AN: 467809479 References: <3713110A.D00CF0AF@ufsia.ac.be> <7f00ih$cgr$1@panix7.panix.com> <3713a48c.0@rainbow.hrz.uni-siegen.de> <7fb79v$2rn$1@autumn.news.rcn.net> X-Complaints-To: abuse@nl.uu.net X-Trace: zonnetje.NL.net 924400701 9192 193.79.46.172 (18 Apr 1999 01:58:21 GMT) Organization: Dutch Mountain User-Agent: tin/pre-1.4-19990413 ("Endemoniada") (UNIX) (Linux/2.0.29 (i486)) NNTP-Posting-Date: 18 Apr 1999 01:58:21 GMT Newsgroups: comp.sys.dec At 17 Apr 1999 23:59:59 GMT Douglas Meade (meade@inforum.umd.edu) wrote: [a big snip] > Anyway, I'd be interested to find some more files for Linux/pmax > I could try out. Following should get you going (btw there's a mailing list for the Linux MIPS port, linux-mips#fnet.fr , change the obvious sign): The Rough Cuts CD from Redhat contains a big endian Version, whereas the DECstations are little endian boxes. Installing Linux on a DECstation isn't very easy. Anyway, here's a short description (you'll need a working *nix box with bootp, tftp and nfs servers): o Get a crosscompiling environment from ftp://bolug.uni-bonn.de/mips/. You'll find cross-egcs and cross-binutils there. o Get the latest kernel source tree: ftp://ftp.linux.sgi.com/pub/linux/mips/test/linux-2.2.1-dec.tar.gz o Build a kernel with the following .config (mind the cpu type as Linux-MIPS is cpu dependent, a R3000 kernel won't run on a R4x00 machine). --- snip here --- CONFIG_EXPERIMENTAL=y CONFIG_DECSTATION=y CONFIG_CPU_R3000=y CONFIG_CPU_LITTLE_ENDIAN=y CONFIG_ELF_KERNEL=y CONFIG_BINFMT_ELF=y CONFIG_NET=y CONFIG_SYSVIPC=y CONFIG_SYSCTL=y CONFIG_TC=y CONFIG_UNIX=y CONFIG_INET=y CONFIG_IP_PNP=y CONFIG_IP_PNP_BOOTP=y CONFIG_IP_NOSR=y CONFIG_SCSI=y CONFIG_BLK_DEV_SD=y CONFIG_SCSI_CONSTANTS=y CONFIG_SCSI_DECNCR=y CONFIG_NETDEVICES=y CONFIG_DECLANCE=y CONFIG_SERIAL=y CONFIG_ZS=y CONFIG_SERIAL_CONSOLE=y CONFIG_PROC_FS=y CONFIG_EXT2_FS=y CONFIG_NFS_FS=y CONFIG_ROOT_NFS=y CONFIG_SUNRPC=y CONFIG_LOCKD=y CONFIG_ULTRIX_PARTITION=y CONFIG_CROSSCOMPILE=y --- snip here --- "make dep netboot" builds a netbootable kernel image in arch/mips/dec/boot/nbImage. o Set up bootp and tftp servers on your intel-box, just like described on http://decstation-unix-ag.org o Switch your DECstation to serial console "setenv console s" on the PROM prompt and connect a terminal or something similar to port #3, 9600 8N1, no handshake. o Boot with "boot 3/tftp/nbImage console=ttyS2", et voila :-). The kernel should be up and running and panic with a "unable to mount root" message. Still reading? Ok, on it goes :-). o You can get a root image from ftp://ftp.linux.sgi.com/pub/linux/mips/mipsel-linux/root/declinuxroot-990128.tgz Unpack this on your Linux box into an arbitrary directory and export this for NFS. Update your bootptab accordingly and the kernel should mount this root image via NFS. o It may happen that mount bombs out with a segmentation fault. If this is the case, get a mount-*.rpm from ftp://intel.cleveland.lug.net/pub/Mipsel/RPMS and install it. If you like, you can destroy all your harddisk's content and fdisk, prepare ext2 and swap partitions and unpack declinuxroot-990128.tgz on your root partition. Disk booting isn't possible yet, but if you netboot your kernel with, for example, "boot 3/tftp/nbImage console=ttyS2 root=/dev/sda" the kernel should mount the hardisk as it's root filesystem. Login via serial console doesn't work, too, but telnet or rlogin will. You may want to edit some rc files in that case. We're still working :-). Another page with interesting tips and links is Karels at http://www.xs4all.nl/~vhouten/mipsel/ -- Richard Your treasure house is within; it contains all you'll ever need. Hui-Hai