Boot Flow for PetaLinuxΒΆ
PetaLinux can be used to generate everything needed for Linux to boot on the ADRV9361. However, unlike MPSoC platforms, MAC code running in MicroBlaze processors must be loaded separately. This can be done via JTAG and the Xilinx SDK, but this can be an inconvenient setup. This page describes an alternative boot procedure that loads the design completely from the SD card. See ADRV9361 Boot Mode Selection for details on configuring the hardware to boot from either the SD card on the FMC carrier or the MicroSD Card on the SOM.
- Follow the instructions in PetaLinux Projects to build the PetaLinux project as well as the MAC Software Workspace.
- Run
petalinux-package --boot --fsbl --u-boot --force. This will create a newBOOT.BINthat does not contain the FPGA design. We will create a bitstream that contains the FPGA design along with the bitstream that contains the MAC software for the MicroBlaze processors in the next step.- Navigate to the
<proj_root>/components/wlan_mac_workspacefolder executewlan-sdk/scripts/adrv9361_sw_bit_gen.shorwlan-sdk/scripts/adrv9361_sw_bit_gen.bat(if using Linux or Windows respectively). The output of this script should create a<proj_root>/components/wlan_mac_workspace/bootimg/boot_wlan_lin_dcf.bit- Copy
<proj_root>/components/wlan_mac_workspace/bootimg/boot_wlan_lin_dcf.bitto the root folder of an SD card and rename the filewlan.bit- Copy
<proj_root>/images/linux/BOOT.BINto the root folder of an SD card.- Copy
<proj_root>/images/linux/image.ubto the root folder of an SD card.- Copy
<proj_root>/components/util/uEnv.txtto the root folder of an SD card.
At this point, powering on the ADRV9361 with the SD inserted shoot fully boot both Linux as well as the MAC software in the MicroBlaze processors.