2.17. Bootrom Commands

2.17.1. version

Command Purpose

Use the version command to show the Bootrom version information.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

-

AQ-N5000

7.0

Base

-

AQ-N6000

7.0

Base

-

Command Syntax

version

Command Mode

BootRom CLI

Default

None

Usage

None

Examples

This example shows how to show the U-boot version:

bootrom:\> version
U-Boot 2.4.0 (Nov 12 2023)
aarch64-linux-gnu-gcc (Linaro GCC 6.3-2017.02) 6.3.1 20170109
GNU ld (Linaro_Binutils-2017.02) 2.27.0.20161019

2.17.2. setenv

Command Purpose

Use this command to set Bootrom environment variables.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

-

AQ-N5000

7.0

Base

-

AQ-N6000

7.0

Base

-

Command Syntax

setenv (ipaddr|serverip IP_ADDR|bootcmd boot arguments)

Parameter

Parameter Description

Parameter Value

IP_ADDR

Local device or TFTP server IP address

-

boot arguments

Boot form flash or TFTP server

-

Command Mode

BootRom CLI

Default

None

Usage

None

Examples

This example shows how to set Switch IP address as environment variables:

bootrom:\> setenv ipaddr 10.10.29.48

This example shows how to set TFTP server IP address as environment variables:

bootrom:\> setenv serverip 10.10.29.160

This example shows how to set boot command as environment variables:

bootrom:\> setenv bootcmd boot_flash aqnos-7.0.0.bin

Related Commands

None

2.17.3. saveenv

Command Purpose

Use the saveenv command to save the Bootrom environment variables to persistent storage.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

-

AQ-N5000

7.0

Base

-

AQ-N6000

7.0

Base

-

Command Syntax

saveenv

Command Mode

BootRom CLI

Default

None

Usage

None

Examples

This example shows how to save the Bootrom environment variables:

bootrom:\> saveenv

Related Commands

printenv

2.17.4. printenv

Command Purpose

Use the printenv command to show the U-boot environment variables.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

-

AQ-N5000

7.0

Base

-

AQ-N6000

7.0

Base

-

Command Syntax

printenv

Command Mode

BootRom CLI

Default

None

Usage

None

Examples

This example shows how to show the BootRom environment variables:

bootrom:\> printenv
baudrate=115200
bootargs=console=ttyS0,115200 root=/dev/ram0
  earlycon=uart8250,mmio,0x21c0500
  mtdparts=spi0.0:1m(uboot),5m(kernel),1m(dtb),9m(file_system)
  bootimage=flash:/boot/aqnos-7.0.0.bin U-Boot
  2.4.0 selfip=10.10.39.83 eeprom_info=ff ff ff ff ff ff ff ff ff ff
bootcmd=boot_flash
bootdelay=10
eth1addr=00:58:3F:11:06:5C
ethaddr=00:58:3F:11:06:5C
fdtcontroladdr=fbc26638
fman_ucode=fbc33650
ipaddr=10.10.39.83
serverip=10.10.38.160
stderr=serial
stdin=serial
stdout=serial
Environment size: 576/8188 bytes

Related Commands

setenv

2.17.5. reset

Command Purpose

Use the reset command to perform RESET of the CPU.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

-

AQ-N5000

7.0

Base

-

AQ-N6000

7.0

Base

-

Command Syntax

reset

Command Mode

BootRom CLI

Default

None

Usage

None

Examples

This example shows how to RESET the CPU in Bootrom:

bootrom:\> reset

Related Commands

saveenv

2.17.6. ping

Command Purpose

Use the ping command to send ICMP ECHO_REQUEST to network host.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

-

AQ-N5000

7.0

Base

-

AQ-N6000

7.0

Base

-

Command Syntax

ping IP_ADDR

Parameter

Parameter Description

Parameter Value

IP_ADDR

Remote host IPv4 address

-

Command Mode

BootRom CLI

Default

None

Usage

None

Examples

This example shows how to use ping command in Bootrom mode:

Bootrom:\> ping 10.10.38.160
Using <FM1@DTSEC3> device
host 10.10.38.160 is alive

Related Commands

saveenv

2.17.7. aqcls

Command Purpose

Use the ls command to list files in a directory (default is /).

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

-

AQ-N5000

7.0

Base

-

AQ-N6000

7.0

Base

-

Command Syntax

aqls

Command Mode

BootRom CLI

Default

None

Usage

None

Examples

This example shows how to list files in a directory (default is /):

Bootrom:\> aqcls
| <DIR> 4096 .
| <DIR> 4096 ..
| <DIR> 16384 lost+found
| <DIR> 4096 boot
| <DIR> 4096 cfg
| <DIR> 4096 info
| <DIR> 4096 log
| <DIR> 4096 conf
| <DIR> 4096 cold
| <DIR> 4096 reboot-info
| <DIR> 4096 monitor
| <DIR> 4096 capwap
        1682 startup-config.conf

Related Commands

None

2.17.8. boot_tftp

Command Purpose

Use the boot_tftp command to boot system through the specified system image from TFTP server.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

-

AQ-N5000

7.0

Base

-

AQ-N6000

7.0

Base

-

Command Syntax

boot_tftp IMAGE_NAME

Parameter

Parameter Description

Parameter Value

IMAGE_NAME

Image name of TFTP server

-

Command Mode

BootRom CLI

Default

None

Usage

None

Examples

This example shows how to boot system form TFTP server:

bootrom:\> boot_tftp aqnos-7.0.0.bin

Related Commands

None

2.17.9. boot_tftp_nopass

Command Purpose

Use the boot_tftp_nopass command to boot system through the specified system image from TFTP server with default configuration.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

-

AQ-N5000

7.0

Base

-

AQ-N6000

7.0

Base

-

Command Syntax

boot_tftp_nopass IMAGE_NAME

Parameter

Parameter Description

Parameter Value

IMAGE_NAME

Image name of TFTP server

-

Command Mode

BootRom CLI

Default

None

Usage

None

Examples

This example shows how to boot system form TFTP server:

bootrom:\> boot_tftp_nopass aqnos-7.0.0.bin

Related Commands

None

2.17.10. boot_flash

Command Purpose

Use the boot_flash command to boot system through the specify image or default image in the flash.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

-

AQ-N5000

7.0

Base

-

AQ-N6000

7.0

Base

-

Command Syntax

boot_flash IMAGE_NAME

Parameter

Parameter Description

Parameter Value

IMAGE_NAME

Image name in flash

-

Command Mode

BootRom CLI

Default

None

Usage

None

Examples

This example shows how to boot system through the specify image in the flash:

bootrom:\> boot_flash

Related Commands

None

2.17.11. boot_flash_nopass

Command Purpose

Use the boot_flash_nopass command to boot system through the specify image or default image in the flash with default configuration.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

-

AQ-N5000

7.0

Base

-

AQ-N6000

7.0

Base

-

Command Syntax

boot_flash_nopass IMAGE_NAME

Parameter

Parameter Description

Parameter Value

IMAGE_NAME

Image name in flash

-

Command Mode

BootRom CLI

Default

None

Usage

None

Examples

This example shows how to boot system through the specify image in the flash with default configuration:

bootrom:\> boot_flash_nopass /boot/aqnos-7.0.0.bin
Do you want to revert to the default config file ? \[YE\]:Y

Related Commands

None

2.17.12. upgrade_uboot

Command Purpose

Use the upgrade_uboot command to upgrade the U-boot image from TFTP server.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

-

AQ-N5000

7.0

Base

-

AQ-N6000

7.0

Base

-

Command Syntax

upgrade_uboot IMAGE_NAME

Parameter

Parameter Description

Parameter Value

IMAGE_NAME

Image name form TFTP server

-

Command Mode

BootRom CLI

Default

None

Usage

None

Examples

This example shows how to upgrade the Bootrom image from TFTP server:

bootrom:\> upgrade_uboot uboot-cg1-2.4.0.bin

Related Commands

None