Difference between revisions of "Niagra 804: Working with Uboot"
Jump to navigation
Jump to search
| Line 64: | Line 64: | ||
setenv bootdelay 5 | setenv bootdelay 5 | ||
setenv mexaboot 'usb start; fatload usb 0:1 0 vmlinux.64; bootoctlinux 0 numcores=10 mem=0' | setenv mexaboot 'usb start; fatload usb 0:1 0 vmlinux.64; bootoctlinux 0 numcores=10 mem=0' | ||
| − | |||
setenv bootcmd ‘run mexaboot’ | setenv bootcmd ‘run mexaboot’ | ||
saveenv | saveenv | ||
Revision as of 10:11, 16 April 2014
Info Commands
bdinfo
- Get Information about the board
Octeon cust_n804# bdinfo
boot_params = 0x8FF63CE0
memstart = 0x80000000
memsize = 0x80000000
flashstart = 0x17C00000
flashsize = 0x08000000
flashoffset = 0x00000000
ethaddr = 00:0c:bd:06:36:68
ip_addr = 172.28.1.84
baudrate = 115200 bpsprintenv
- Get information about all the environment variables
Octeon cust_n804# printenv
autoload=n
baudrate=115200
bf=bootoct $(flash_unused_addr) forceboot numcores=$(numcores)
boardname=CUST_N804
bootdelay=0
bootfile=/pxelinux.0
bootloader_flash_update=bootloaderupdate
burn_app=erase $(flash_unused_addr) +$(filesize);cp.b $(fileaddr) $(flash_unused_addr) $(filesize)
burn_uboot=prot off $(flash_base_addr) +$(filesize);erase $(flash_base_addr) +$(filesize);cp.b $(fileaddr) $(flash_base_addr) $(filesize)
dnsip=172.28.0.1
env_addr=0x1fb80000
env_size=0x20000
ethact=octmgmt0
ethaddr=00:0c:bd:06:36:68
flash_base_addr=0x17c00000
flash_size=0x8000000
flash_unused_addr=0x17ce0000
flash_unused_size=0x7f20000
gatewayip=172.28.0.1
ipaddr=172.28.1.84
linux_cf=fatload ide 0 $(loadaddr) vmlinux.64;bootoctlinux $(loadaddr)
loadaddr=0x20000000
ls=fatls ide 0
mtdids=nor0=octeon_nor0,nor1=octeon_nor1
netmask=255.255.0.0
nuke_env=protect off $(env_addr) +$(env_size); erase $(env_addr) +$(env_size)
numcores=10
octeon_failsafe_mode=0
octeon_ram_mode=0
serverip=172.28.0.2
stderr=serial
stdin=serial,pci,bootcmd
stdout=serial
uboot_flash_addr=0x17c00000
uboot_flash_size=0xe0000
ver=U-Boot 2011.03-00010-g4eb07f9-dirty (Build time: Jan 13 2014 - 11:25:38)Enabling auto-boot
setenv bootdelay 5
setenv mexaboot 'usb start; fatload usb 0:1 0 vmlinux.64; bootoctlinux 0 numcores=10 mem=0'
setenv bootcmd ‘run mexaboot’
saveenvsetenv bootdelay 5= Set a delay of 5 seconds before auto-bootingsetenv mexaboot ‘usb start; fatload usb 0:1 0 vmlinux.64; bootoctlinux 0 numcores=10 mem=0’= Create an environment variablemexabootand list the normal boot items in sequence.setenv bootcmd ‘run mexaboot’= Set environment variablebootcmd(the contents of which are executed whenbootdelay=0) to run the contents of themexabootenvironment variable.saveenv= Save the modified environment variables.