Before following the instructions in this section, user must have access to the switch console. User's terminal emulation software has to be configured with the following settings to ensure a successful console connection to the switch:
- Baud rate: 115200
- Data bits: 8
- Stop bits: 1
Modifying U-Boot Parameters
U-Boot (Universal Boot Loader) is an open source, primary boot loader for embedded devices. U-boot is used to package the instructions to boot the operating system kernel of a device. The following example shows the auto boot-up sequence:
To modify the baud rate or other boot parameters, interrupt the boot sequence by hitting any key during auto boot. Once the boot sequence is interrupted, user is at the U-boot shell.
Do not interrupt the default auto boot sequence unless the file system is being fixed or the console port settings are being changed.
The most common commands in U-Boot are:
- help - Get command line help.
- printenv - Show all environment variables. The U-Boot environment is a block of memory kept on persistent storage and copied to RAM when U-Boot starts. It stores environment variables used to configure the system.
- version - Show the U-Boot version.
- setenv - Set an environment variable.
- saveenv - Save the modification in the environment memory.
Use the set and save commands to reset the U-Boot environment variables. In the example below, the baud rate is set to 11520 with the setenv baudrate 115200 command.
PicOS switches do support Linux shutdown command. To shut down a switch, after running the “sudo shutdown -h now" command, disconnect the power supply.