2.14. Configuring Bootrom

Overview

Function Introduction

The main function of Bootrom is to initialize the board simply and load the system image to boot. You can use some necessary commands in bootrom mode.

Bootrom can load the system image both from TFTP server and persistent storage like flash. Then you can configure the Switch and TFTP server IP address as environment variables in Bootrom mode for boot the system image.

Principle Description

N/A

Configuration

Configuring Boot from TFTP Server

Method 1: Boot the system from TFTP server

Save the configuration and reboot the system:

bootrom:> setenv bootcmd boot_tftp aqnos-v3.1.9.it.r.bin
bootrom:> saveenv
bootrom:> reset

Method 2: Method 1:Boot the system from TFTP server without password

Save the configuration and reboot the system:

bootrom:> setenv bootcmd boot_tftp_nopass aqnos-v3.1.9.it.r.bin
bootrom:> saveenv
bootrom:> reset

Method 3: Boot the system from TFTP server and reboot automatically

bootrom:> boot_tftp aqnos-v3.1.9.it.r.bin

Method 4: Boot the system from TFTP server and reboot automatically without password

bootrom:> boot_tftp_nopass aqnos-v3.1.9.it.r.bin

Validation

After the above setting, you can get show information:

bootrom:> reset
....................
TFTP from server 10.10.29.160; our IP address is 10.10.29.118
Filename 'aqnos-v3.1.9.it.r.bin'.
Load address: 0xaa00000
Loading: octeth0: Up 100 Mbps Full duplex (port 0)
####################################################################################
done
Bytes transferred = 12314539 (bbe7ab hex), 1829 Kbytes/sec

Configuring Boot from FLASH

Boot the system from FLASH

Save the configuration and reboot the system:

bootrom:> setenv bootcmd boot_flash aqnos-v3.1.9.it.r.bin
bootrom:> saveenv
bootrom:> reset

Boot the system from without password

Save the configuration and reboot the system:

bootrom:> setenv bootcmd boot_flash_nopass aqnos-v3.1.9.it.r.bin
bootrom:> saveenv
bootrom:> reset
Do you want to revert to the default config file ? [YN]:Y

Boot the system from FLASH and reboot automatically

bootrom:> boot_flash aqnos-v3.1.9.it.r.bin

Boot the system from FLASH and reboot automatically without password

bootrom:> boot_flash_nopass aqnos-v3.1.9.it.r.bin
Do you want to revert to the default config file ? [YN]:Y

Validation

After the above setting, you can get show information:

bootrom:> reset
......
Do you want to revert to the default config file ? [YN]:Y
## JFFS2 loading '/boot/aqnos-v3.1.9.it.r.bin' to 0xaa00000
Scanning JFFS2 FS: . done.
## JFFS2 load complete: 12314539 bytes loaded to 0xaa00000
# Booting image at 0aa00000 ...
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
......

Set boot IP

step 1 Set Switch IP address , details information as follows

bootrom:> setenv ipaddr 10.10.29.101
bootrom:> saveenv

step 2 Set TFTP server IP address , details information as follows

bootrom:> setenv serverip 10.10.29.160
bootrom:> saveenv

step 3 validation

After the above setting, you can get show information:

bootrom:> printenv
printenv
bootdelay=5
baudrate=9600
download_baudrate=9600
.....................
stderr=serial
ipaddr=10.10.29.101
serverip=10.10.29.160
Environment size: 856/2044 bytes

Upgrade bootrom

step 1 upgrade the Bootrom image from TFTP server

bootrom:> upgrade_uboot bootrom.bin

step 2 validation

After the above setting, you can get show information:

bootrom:> version
version
Bootrom 3.0.3 (Development build) (Build time: Aug 4 2023 - 11:47:06)

Set gateway IP

step 1 Set Switch gateway IP address , details information as follows

bootrom:> setenv gatewayip 10.10.37.1
bootrom:> saveenv

step 2 Set network mask , details information as follows

bootrom:> setenv netmask 255.255.255.0
bootrom:> saveenv

step 3 validation

After the above setting, you can get show information:

bootrom:> printenv
printenv
bootdelay=5
baudrate=9600
download_baudrate=9600
.....................
stderr=serial
gatewayip=10.10.38.1
netmask=255.255.255.0
Environment size: 856/2044 bytes

Application cases

N/A