Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
135 Views

How do I make the u-boot semi-hosted on IntelFPGA Cyclone5SoC development kit?

I am developing Cyclone5SoC based card which do not have a uart.

Hence, I am checking if I can debug/use the u-boot semihosted.

I know this feature exists for Arria10SoC as described here:

https://www.youtube.com/watch?v=7pTMl8RoX3o

 

I tried to implement the "#define config_semihosting" variable mentioned there in the appropriate header file of the u-boot environment, but the compile failed with an error prompt.

Afterwards, I checked the other header files and they do not support this variable.

 

Also, I did implement the following lines in the appropriate *.h file,

and this resulted in semihosted preloader but the u-boot itself kept printing to the uart port, and not as expected to the debugger application console:

/* Semihosting support in Preloader */

#define CONFIG_PRELOADER_SEMIHOSTING (1)

 

/* Option to check checksum of subsequent boot software image */

#define CONFIG_PRELOADER_CHECKSUM_NEXT_IMAGE (0)

 

/*

 * Handoff files must provide user option whether to enable

 * debug serial printout support

 */

#define CONFIG_PRELOADER_SERIAL_SUPPORT (0)

 

 

 

So, my question is how do I make the u-boot application for  IntelFPGA Cyclone5SoC development kit semihosted?

 

 

Tags (1)
0 Kudos
6 Replies
Highlighted
55 Views

Hi,

 

Please correct me if I am wrong, you already attempted preloader semihosting, and now you are attemptingto get Uboot semihosted for Cyclone V SoC?

 

Also, are you familiar with ARM DS-5 debugger tools?

 

Here is a useful guide you may refer to:

https://rocketboards.org/foswiki/Documentation/LoadingUBootFromDS5

 

Let me know if you have additional questions.

0 Kudos
Highlighted
Beginner
55 Views

Thanks I am developing Cyclone5SoC based card which does not have a art I am familiar with ARM DS-5 debugger So I am attempting to get Uboot semihosted for my card and it's not so easy, and when running a *semi-hosted only* uboot.ds on the CyclocneV SoC demo board I see that the uboot kept printing on the UART console. This is details of my attempting and results : - I tried to implement the "#define <https://forums.intel.com/_ui/core/feeds/notification/TopicLandingPage?name=define&ref=hash_mention&f...> config_semihosting" variable mentioned there in the appropriate header file of the u-boot environment, but the compile failed with an error prompt. Afterwards, I checked the other header files and they do not support this variable. - Also on CycloneV Demo Board, I did implement the following lines in the appropriate *.h file, and this resulted in semihosted *preloader* but the u-boot itself kept printing to the uart port, and not as expected to the debugger application console: #define <https://forums.intel.com/_ui/core/feeds/notification/TopicLandingPage?name=define&ref=hash_mention&f...> CONFIG_PRELOADER_SEMIHOSTING (1) #define <https://forums.intel.com/_ui/core/feeds/notification/TopicLandingPage?name=define&ref=hash_mention&f...> CONFIG_PRELOADER_CHECKSUM_NEXT_IMAGE (0) #define <https://forums.intel.com/_ui/core/feeds/notification/TopicLandingPage?name=define&ref=hash_mention&f...> CONFIG_PRELOADER_SERIAL_SUPPORT (0) So, my question is how do I make the u-boot application for IntelFPGA Cyclone5SoC development kit semihosted ONLY?
0 Kudos
Highlighted
55 Views

Hi,

 

As mentioned the guide demonstrated the Uboot to be loaded from Ds-5, and shows it is semihosted.

https://rocketboards.org/foswiki/Documentation/LoadingUBootFromDS5

 

Could you provide the errors prompt logs that is preventing you with your testing?

0 Kudos
Highlighted
Beginner
55 Views

Hello el.ign,

 

I am the distributor embedded specialist who is following on the customer.

Regarding your line above, quoting:

"As mentioned the guide demonstrated the Uboot to be loaded from Ds-5, and shows it is semihosted."

Well, I believe the clame for semihosted uboot is a mistake:

If you go the section 5. ("configure the terminal settings") of the link you shared (https://rocketboards.org/foswiki/Documentation/LoadingUBootFromDS5),

you can notice the terminal setting are for REAL serial port and not a JTAG port.

 

The customer is looking for a way to make to u-boot print messages to the jtag port exactly as it is available for the preloader,

and simlarly to what is demonstrated in the following link for Arria10SoC:

https://www.youtube.com/watch?v=7pTMl8RoX3o

 

 

 

 

0 Kudos
Highlighted
55 Views

Helo there,

 

Firstly, I apologize for the misconception of the semihosted mentioned.

 

The following video mentioned to have the setup according to the rocketboards link, which should be the same.

 

The connection of the board to the host PC by using the USB serial connection is to see the Preloader/Uboot serial output.

 

The rocketboards document is old, thus I need to check with our internal team on this update for Cyclone V SoC, this may take some time, but I will update to you once I got the information.

 

 

0 Kudos
Highlighted
42 Views

Hi,

As mentioned, based on my understanding the serial connection simply means the connection of the board to the host PC by using the USB is to see the Preloader/Uboot serial output. 

Unfortunately, we do not have the design available for Cyclone V SoC, thus you may have to adjust the settings accordingly based on the linked tutorial.

0 Kudos