Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20750 Discussions

Booting Zephyr on Agilex5: ATF BL2 not working

MsSmith
Beginner
182 Views

Hello!

I am trying to boot Zephyr on an Intel Agilex5 SoC on a dev board but the BL2 preloader is not working.

As written on the Hard Processor System Booting User Guide for Agilex5 and on Zephyr website, the boot flow is ATF BL2 >> ATF BL31 >> Zephyr.

For the moment I am just focusing on loading the preloader BL2 on the QSPI flash. I expect BL2 to send some log over the serial terminal but nothing appears.

So these are the steps I do (tried both on WSL and on Ubuntu):

  1. Execute the instructions from the Building Arm Trusted Firmware section of the RocketBoard tutorial.
  2. Transform the bl2.bin in bl2.hex (I tried also .ihex) using the following command:

 

 

 

aarch64-none-linux-gnu-objcopy -v -I binary -O hex --change-addresses 0x00 bl2.bin bl2.hex

 

 

 

The load address is set to 0x00 since the on-chip RAM is at address 0x00 in the Agilex5.

  1. Compile the Golden Hardware Reference Design on Quartus (and therefore generate the .sof). This design was taken from https://github.com/ArrowElectronics/ghrd-socfpga
  2. Create the .jic file with the following command:

 

 

 

quartus_pfg -c project.sof project.jic -o device=MT25QU01G -o flash_loader=A5ED065BB32AE4SR0 -o hps_path=/path/bl2.hex -o mode=ASX4

 

 

 

  1. Open a serial terminal
  2. Program the board from Quartus Programmer
  3. Push the NCONFIG button

Is there anyone who has already booted an OS using BL2 as preloader that can help me?

Thank you!

Labels (1)
0 Kudos
2 Replies
JingyangTeh
Employee
88 Views

Hi


The steps that is for the Simulation setup.

Could you please refer to the tested boot example in the link below:

https://www.rocketboards.org/foswiki/Documentation/BuildingBootloaderForAgilex5#Boot_from_QSPI_Example


Regards

Jingyang, Teh


0 Kudos
JingyangTeh
Employee
38 Views

Hi


Since there are no feedback for this thread, I shall set this thread to close pending. Please login to ‘https://supporttickets.intel.com’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.

If you happened to close this thread you might receive a survey. If you think you would rank your support experience less than 4 out of 10, please allow me to correct it before closing or if the problem can’t be corrected, please let me know the cause so that I may improve your future service experience.


Regards

Jingyang, Teh


0 Kudos
Reply