Installing the System
The Vega comes pre-installed with the operating system and you can use it directly. You will need to manually install the system if your device fails to boot or requires a firmware upgrade.
Update the system via TFTP
Updating the system via TFTP requires logging into the Vega's bootloader (U-boot) via serial port. The firmware to be flashed must be located on a computer or device equipped with a TFTP server.
Download the System Images
There are three image files to flash: the bootloader, kernel, and system image. You can download these three files from the following link: https://github.com/milkv-vega/vega-buildroot-sdk/releases/
Bootloader: freeloader.bin
Kernel: kernel.bin
System: ubifs.img
You can also use the three image files you compiled yourself using vega-buildroot-sdk to update your system.
After downloading them, place the three files in the TFTP server's root directory. Methods for installing the TFTP service on different computer systems are not explained here; please search online for instructions. Ultimately, you must ensure that the files in the computer's TFTP service directory can be read correctly within the local area network where Vega is located.
Connect to the Serial Port
Refer to the information in Setting Up - Serial Console to connect to the serial port.
Connect the Network Cable
Connect one of the Vega's eight RJ45 ports to the local area network of the computer providing the TFTP service via a network cable.
Enter the Bootloader
After powering on the Vega by plugging in a DC 12V power supply and seeing the following prompt in the serial terminal, quickly type asd to enter the Bootloader command line:
In: console
Out: console
Err: console
Net: xy1000_eth
Press asd to abort autoboot in 2 seconds
=>
The appearance of => indicates that you have successfully entered the Bootloader command line.
If there is no output from the serial port, the bootloader may be unable to start normally. You need to re-flash the bootloader using the USB-JTAG method as described in later chapters before trying again.
Configure the Network
Assign an IP address to Vega, being careful not to conflict with other devices on your local network. Assume your local network segment is 192.168.1.x:
=> setenv ipaddr 192.168.1.234
Configure the IP address of the TFTP server. Let's assume your TFTP server IP address is 192.168.1.10.
=> setenv serverip 192.168.1.10
Check whether the TFTP server is reachable:
=> ping 192.168.1.10
Using xy1000_eth device
host 192.168.1.10 is alive
If you see the returned message host 192.168.1.10 is alive, it means you can access the TFTP server normally. If you cannot access it, please check the TFTP server configuration.
Flash the Images
-
Flashing Bootloader (freeloader.bin)
Execute command:
run updatefreeloaderThe returned information is as follows:
=> run updatefreeloader
Using xy1000_eth device
TFTP from server 192.168.1.10; our IP address is 192.168.1.234
Filename 'freeloader.bin'.
Load address: 0x42000000
Loading: #################################################################
#######
2.2 MiB/s
done
Bytes transferred = 1048976 (100190 hex)
tftp ok
SF: Detected w25q32 with page size 256 Bytes, erase size 4 KiB, total 4 MiB
SF: 1048576 bytes @ 0x0 Erased: OK
device 0 offset 0x0, size 0x100000
SF: 1048576 bytes @ 0x0 Written: OK
=>After flashing the Bootloader, you need to power off and then power on again, then enter the Bootloader command line and reconfigure the TFTP IP according to the above process.
-
Flashing Kernel (kernel.bin)
Execute command:
run updateos_nandThe returned information is as follows:
=> run updateos_nand
Using xy1000_eth device
TFTP from server 192.168.1.10; our IP address is 192.168.1.234
Filename 'kernel.bin'.
Load address: 0x42000000
Loading: #################################################################
#################################################################
#################################################################
#################################################
2.3 MiB/s
done
Bytes transferred = 3574597 (368b45 hex)
tftp ok
SF: Detected w25q32 with page size 256 Bytes, erase size 4 KiB, total 4 MiB
NAND erase.part: device 0 offset 0x0, size 0x400000
Erasing at 0x3e0000 -- 100% complete.
OK
NAND write: device 0 offset 0x0, size 0x400000
4194304 bytes written: OK
=>No restart is required; continue flashing the System image.
-
Flashing System (ubifs.img)
Execute command:
run updateubifs_boot