xming Guru
Joined: 02 Jul 2002 Posts: 441
|
Posted: Fri Oct 03, 2003 3:59 pm Post subject: Quick install guide for Nectra X1 (head-less cd-less) |
|
|
This is a guide for installing Gentoo on Nectra X1, X1 is a head-less and cdrom-less Sparc, so you will have to netboot it. There are 2 ways to netboot either RARP/BOOTP or DHCP, I am using DCHP here
Code: |
#Software needed on the DHCP server
emerge tftp-hpa
emerge net-misc/dhcp
#you also need a ftp/http server
#tftp image needed
wget http://auric.debian.org/~bcollins/disks-sparc/current/sparc64/tftpboot.img
#stage needed, please us a mirror
ftp://ftp.skynet.be/mirror/gentoo/releases/1.4_rc4/sparc/sparc64/stage1-sparc64-1.4_rc4.tar.bz2
bzip2 -cd stage1-sparc64-1.4_rc4.tar.bz2 |gzip -c9 > stage1-sparc64-1.4_rc4.tar.gz
#put the stage1-sparc64-1.4_rc4.tar.gz in http/ftp accessible place
# on your DCHP server
vi /etc/hosts
<ip> gentoox1
mkdir /tftpboot
cp /d0/sparc/gentoo/tftpboot.img /tftpboot/
/etc/init.d/in.tftpd start
cd /etc/dhcp
cp dhcpd.conf.sample dhcpd.conf
vi dhcpd.conf
---------------------------------------------------
option domain-name "example.com";
option domain-name-servers ns1.example.com;
option subnet-mask 255.255.255.0;
default-lease-time 600;
max-lease-time 7200;
server-name "servername";
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.200 192.168.1.253;
option routers 192.168.1.1;
}
host clientname {
filename "/tftpboot/tftpboot.img";
server-name "servername";
next-server servername;
hardware ethernet 01:23:45:67:89:AB;
fixed-address 192.168.1.90;
}
----------------------------------------------------
vi /etc/conf.d/dhcp
/etc/init.d/dhcp start
#on X1 ethernet cable in net0 and console connected
#stop-A (no keyboard so that's a break in your favarite program)
# I use minicom: ctrl-A F then type
boot net:dchp
# after Debian booted press enter then choose execute a shell
#[color=red]NOTE[/color]: After Linux booted eth0=net1 and eth1=net0
ifconfig eth1 <IP> netmask <mask>
route add default gw <IP>
fdisk
#swap if you are using any
mkswap /dev/hdaX
swapon /dev/hdaX
#or other fs if you prefer
echo y |mkreiserfs /dev/hdaX
echo y |mkreiserfs /dev/hdaY
echo y |mkreiserfs /dev/hdaZ
#boot partition has to be ext2 because of SILO
mkfs.ext2 /dev/hdaW
cd /mnt
mkdir gentoo
mount /dev/hdaX /mnt/gentoo
cd /mnt/gentoo
mkdir boot usr var
mount /dev/hdaW boot
mount /dev/hdaY usr
mount /dev/hdaZ var
wget ftp://<YOUR PATH>/stage1-sparc64-1.4_rc4.tar.gz
#or
wget http://<YOUR PATH>/stage1-sparc64-1.4_rc4.tar.gz
tar zxf stage1-sparc64-1.4_rc4.tar.gz
mount -o bind /proc /mnt/gentoo/proc
chroot /mnt/gentoo /bin/bash
source /etc/profile
export TERM=vt100
# edit /etc/resolv.conf with your nameservers
nano -w /etc/resolv.conf
emerge sync >/dev/null
emerge rsync >/dev/null
nano -w /etc/make.conf
USE="sparc64 mysql innodb ssl -opengl -svgalib -alsa -esd -X -java -gpm -berkdb -qt -gmp"
CHOST="sparc-unknown-linux-gnu"
ARCH="sparc"
CFLAGS="-O2 -mcpu=ultrasparc -mtune=ultrasparc"
GENTOO_MIRRORS="ftp://ftp.skynet.be/mirror/gentoo/"
#if you use proxy
export HOME=/root
nano -w .wgetrc
ftp_proxy = proxy.codenet.be:8080
http_proxy = proxy.codenet.be:8080
cd /usr/portage
scripts/bootstrap.sh
export CONFIG_PROTECT=""
emerge system
emerge vanilla-sources
cd /usr/src/linux
make menuconfig
# [color=red]NOTE[/color]use tulip instead dmfe for your NIC
make dep;make clean;make vmlinux;make modules; make modules_install
emerge syslog-ng
rc-update add syslog-ng default
emerge vcron
rc-update add vcron default
emerge reiserfsprogs
cd /etc
ln -sf ../usr/share/zoneinfo/Europe/Brussels localtime
nano -w /etc/hostname
nano -w /etc/hosts
nano -w /etc/conf.d/net
rc-update add net.eth0 default
rc-update add sshd default
nano -w /etc/rc.conf
emerge silo
cp /usr/src/linux/vmlinux /boot
cd boot
gzip -9 vmlinux
mkdir /boot/etc
cp /etc/silo.conf /boot/etc
nano -w /boot/etc/silo.conf
silo -C /boot/etc/silo.conf
nano -w /etc/fstab
nano -w /etc/inittab #add serial console
nano -w /etc/securetty # add ttyS0
passwd root
exit
reboot
|
|
|