Niagra 804: Initial Bootup
Jump to navigation
Jump to search
Basic boot up via PXE
Get an IP address by DHCP
Request an IP address by typing dhcp:
Octeon cust_n804# dhcp
BOOTP broadcast 1
DHCP client bound to address 172.28.1.84
Octeon cust_n804#Specify a TFTP server
Specify the TFTP server by setting the serverip environment variable:
Octeon cust_n804# setenv server ip 172.28.0.2Identify the boot image to pull down
TFTP down the boot image file:
Octeon cust_n804# tftp 0 /images/im_niagra804/vmlinux_n804.bin
Using octmgmt0 device
TFTP from server 172.28.0.2; our IP address is 172.28.1.84
Filename '/images/im_niagra804/vmlinux_n804.bin'.
Load address: 0x20000000
Loading: #################################################
done
Bytes transferred = 33838432 (2045560 hex)Boot the system
bootoctlinux 0 coremask=f #f = cores 0-3, 3ff = cores 0-9Booting Debian from SDK created image
Start the USB service
Octeon cust_n804# usb startYou should be able to see the USB storage devices using usb storage at the uBoot prompt:
Octeon cust_n804# usb storageLoad the kernel image to memory
Octeon cust_n804# fatload usb 0:1 0x20000000 vmlinux.64The syntax here is:
- fatload = load a file from FAT filesystem
- usb = device type to be access is a USB storage device
- 0:1 = device 0, partition 1 - devices start at 0, partitions start at 1
Boot the kernel image
Octeon cust_n804# bootoctlinux 0x20000000 numcores=10 root=/dev/sda2
mkdir /mnt/sda1 mkdir /mnt/sda2 mount /dev/sda1 /mnt/sda1 mount /dev/sda2 /mnt/sda2 mount --bind /proc /mnt/sda2/proc chroot /mnt/sda2 ifconfig mgmt0 172.28.1.95 up route add default gw 172.28.0.1 mgmt0
</syntaxhighlight>
Setup Networking in BusyBox
Setup the IP networking
# grab the IP address from the output of dhcp above
ifconfig mgmt0 172.28.1.84
route add default gw 172.28.0.1 mgmt0Setup the resolv.conf file
# create the following file
/mnt/sda1 # cat /etc/resolv.conf
nameserver 172.28.0.2
search pxe.boston.co.ukAfter this you can use wget to pull files down from the tftp server or the web