I want to use the u-boot axi-ethernet function on avnet mini itx board, I check the u-boot source code, found that it has the driver for axi-ethernet, but how to enable and use it? any document? Thanks!
I want to use the u-boot axi-ethernet function on avnet mini itx board, I check the u-boot source code, found that it has the driver for axi-ethernet, but how to enable and use it? any document? Thanks!
U-boot is pretty flexible in the number of boot options it offers. In the standard configuration we provide, it does enable the ethernet driver and request an address from a DHCP server. A simple way to test booting over the network is to simply interrupt u-boot on the serial port when it is doing it's countdown. You can then manually enter instructions to download a linux image from a TFTP server and then boot the image from DDR3.
To do this, you will need to configure a TFTP server on your local network. Copy over the linux image (for test simplicity, use a single image, like the image.ub that comes with the PetaLinux BSP). to the root directory for the TFTP server on your host. Make sure you point the TFTP server at the the directory with your boot file, and that you bind it to the address of your host. On the target side, power the board and interrupt u-boot at the serial prompt. If your host address is 192.168.1.102 (for example):, type at the u-boot prompt:
tftpboot 0x1000000 192.168.1.102:image.ub
This will request image.ub from the TFTP server, and load it to DDR3 at address 0x1000000.
At the u-boot prompt, enter: bootm
This will boot the downloaded image from DDR3. When you have everything working the way you like, you can rebuild u-boot with the changed boot parameters or configure the u-boot flash environment instead. Either way, it will boot Linux over the network from power-up.
U-boot is pretty flexible in the number of boot options it offers. In the standard configuration we provide, it does enable the ethernet driver and request an address from a DHCP server. A simple way to test booting over the network is to simply interrupt u-boot on the serial port when it is doing it's countdown. You can then manually enter instructions to download a linux image from a TFTP server and then boot the image from DDR3.
To do this, you will need to configure a TFTP server on your local network. Copy over the linux image (for test simplicity, use a single image, like the image.ub that comes with the PetaLinux BSP). to the root directory for the TFTP server on your host. Make sure you point the TFTP server at the the directory with your boot file, and that you bind it to the address of your host. On the target side, power the board and interrupt u-boot at the serial prompt. If your host address is 192.168.1.102 (for example):, type at the u-boot prompt:
tftpboot 0x1000000 192.168.1.102:image.ub
This will request image.ub from the TFTP server, and load it to DDR3 at address 0x1000000.
At the u-boot prompt, enter: bootm
This will boot the downloaded image from DDR3. When you have everything working the way you like, you can rebuild u-boot with the changed boot parameters or configure the u-boot flash environment instead. Either way, it will boot Linux over the network from power-up.