Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21579 討論

Proper setting for Uboot/SPL

CAlex
新貢獻者 II
1,165 檢視

Hi

I want to use FPGA Boot to run my baremetal system on CycloneVsoc board. But the AN709 needs to be updated, for preloader is no longer needed, all custom settings are made by Uboot/SPL settings.

 

Another issue is that arm-altera-eabi is no longer included in the SOC EDS. So the hex file needed for the OCRAM in FPGA booting can't get done.

I've tried to use the

arm-eabi-objcopy -O ihex --adjust-vma -0xC0000000 uboot-socfpga/spl/u-boot-spl preloader.hex

instead of arm-altera-eabi-objcopy, but the Quartus Warns me that the width and space of the ROM is not enough.

 

My question is:

1.How to set the Uboot/SPL in order to let the SPL/UBoot know it is boot from FPGA.

2.How to upload the Baremetal image other than SD/MMC? Is there a way to upload the image directly through FPGA?

3. What is the image form needed by this way? I assume it is the same as the SD/MMC Image, which have the following type:

                1. P1 root flie (ext3)

                2. P2 sys file(fat32)

                3. P3 Uboot/SPL file (2A)

4. A new way to achieve hex file needed by the FPGA booting ROM.

 

Thank you

Alex

標籤 (1)
0 積分
7 回應
JingyangTeh_Altera
1,106 檢視

Hi


We sincerely apologize for the inconvenience caused by the delay in addressing your Forum queries. Due to an unexpected back-end issue in our system, your Forum cases, along with others, did not get through as intended. As a result, we have a backlog of cases that we are currently working through one by one.

Please be assured that we are doing everything we can to resolve this issue as quickly as possible. However, this process will take some time, and we kindly ask for your patience and understanding during this period. The cases will be attended by AE shortly. We appreciate your patience and understanding, and we are committed to providing you with the best support possible. 

Thank you for your understanding.


Back to your issue, sorry to tell you that the boot from FPGA software support have been removed and we only support the standard flow.

https://www.rocketboards.org/foswiki/Documentation/BuildingBootloaderCycloneVAndArria10#Cyclone_V_SoC_and_Arria_V_SoC


Regards

Jingyang, Teh


CAlex
新貢獻者 II
1,092 檢視

Hi

when using standard flow,I found that it is hard to set the SPL to what I want to.

I'm using eMMc as a boot source now, what I want to achieve is that the core run the SPL and then the SPL point to the Baremetal application.

 

I use the same bulid flow to build up the SD card image with default SPL settings:

P3                   type: 2A                               u-boot-spl

P1                   type: Fat32                          BM.bin-mkimage.bin

P2                   type: Ext3                            Dummy file

 

And I use dd to write into the eMMc card, but it failed to boot.

Is that related to the SPL settings?

 

Alex

JingyangTeh_Altera
1,018 檢視

Hi


Yes it would not launch .

You would need to load the program( .img file) into the ram from the sd card.

In uboot try the command below:


//to copy application to the ram address

load mmc 0:1 \${loadaddr}


//test to see if the application is loaded successful

iminfo ${loadaddr}


//jump to application

go ${loadaddr}




CAlex
新貢獻者 II
1,014 檢視

Now I'm using USM to communicate with the board, I can visit the emmc on /dev/sda.

 

I loaded the image to /dev/sda but BootROM can't find out where SPL was and keep resetting.

 

 

So how should I do to let the BootROM find the SPL? 

What changes need to be done in the SPL setting? 

What changes need to be done in the image making?

 

 

Thank you.

Alex

JingyangTeh_Altera
937 檢視

Hi Alex

 

Sorry for the slow response.

What is the USM that you are referring to?

Usually we do not change the BootROM, did you make changes to the BootROM?

The BootROM will go to the same location to find the SPL image to be loaded.

 

 

 

JingyangTeh_Altera
767 檢視

Hi


Any update on this case?

For the bootROM it is not possible to change the bootROM for the HPS. It is added on during the configuration.

The bootROM have been hardcoded to jump to the SPL uboot automatically.


Regards

Jingyang, Teh


JingyangTeh_Altera
726 檢視

Hi


As we do not receive any response from you on the previous question/reply/answer that we have provided. Please login to ‘https://supporttickets.intel.com/s/?language=en_US’, 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.



Regards

Jingyang, Teh


回覆