Zynq design from scratch. Part 28.
Indirect PetaLinux boot via U-boot
Because we have configured ethernet in our evaluation system and connected the ZedBoard to the netwoork, we can use U-boot to boot PetaLinux using the TFTP server running on the host. This is much faster than loading everything using JTAG.
Copy the kernel image file to the host
As we are running the TFTP server on the host, we will use sftp to copy the kernel image file image.ub from the guest to the host. Let's open a terminal on the host and execute the following commands:
Connected to 192.168.56.101.
sftp> get /tftpboot/image.ub
1. First bootstrap the system by downloading U-boot via JTAG.
petalinux-boot --jtag --prebuilt 2
2. When autoboot starts hit any key to stop it.
3. Use the help command to find out about all commands available in U-boot.
4. Check whether the TFTP server IP address is set to the IP Address of the host where the image resides.
5. In the PetaLinux console type
6. If not set, set the server IP addreess to the host IP address.
set serverip <HOST IP ADDRESS>7. Confirm the IP address of the board.
Boot the kernel image
8. Execute the following command in the GTKterm window:
What netboot does is load from a TFTP host a file defined by image.ub (the tftp command), then add the TCP/IP related parameters to the kernel command string, and finally boot Linux from the just loaded image (bootm).
This time the Linux kernel boot only takes seconds. This will save us a lot of time in the future.
Top Previous Next
Posted at 17:23 by svenand