hidden text to trigger early load of fonts ПродукцияПродукцияПродукцияПродукция Các sản phẩmCác sản phẩmCác sản phẩmCác sản phẩm المنتجاتالمنتجاتالمنتجاتالمنتجات מוצריםמוצריםמוצריםמוצרים
FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
6334 Discussions

Cyclone 5 first boot linux crashes, howto debug?

qwitza
Novice
647 Views

Hello,

We have a design with a Cyclone V FPGA. Some boards only boot after a reset following power-on.

Problem:

The Debian Linux with U-Boot boots from the SD card, but after approximately 10 seconds, the system crashes and becomes unresponsive. The login prompt appears (on UART debug), but I cannot enter anything, and the network interface does not work.

How should I start troubleshooting?

There is a JTAG on the board, but I have never used it until now.

Any hints or links would be greatly appreciated.

Sorry, but I have no idea how to resolve this, or where to start with the troubleshooting.

0 Kudos
15 Replies
qwitza
Novice
619 Views

Hello,

after some search, it seems that the linux system crashes after writing the fpga firmware.

 

0 Kudos
JingyangTeh
Employee
557 Views

Hi


Are you able to still boot into the uboot?


Regards

Jingyang, Teh


0 Kudos
qwitza
Novice
536 Views

Hello,

uboot and debian are booted every time.

but after writing the fpga firmware debian crashes, no input or other possible hard crash

 

9.697986] socfpga-dwmac ff702000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 9.706611] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Debian GNU/Linux 10 ttyS0
login: [ 37.347805] fpga_manager fpga0: writing socfpga.rbf to Altera SOCFPGA FPGA Manager
login: [ 1477.077961] socfpga-dwmac ff702000.ethernet eth0: Link is Down

 

if i disable the fpga firmware flash, it seems that the system bootup every time. the fpga firmware is written via devicetree update.

 

thanks for the help!

0 Kudos
JingyangTeh
Employee
459 Views

Hi


Is it possible to share how you flash the FPGA firmware?

In normal case we do not suggest to flash the FPGA firmware after we boot into the linux console.


Regards

Jingyang, Teh


0 Kudos
qwitza
Novice
424 Views

Hello,

here is the source code, how we "upload" the fpga firmware.

if(is_no_error())
{
	std::ofstream wpd("/sys/kernel/config/device-tree/overlays/device/path");
	wpd << "socfpga_overlay.dtb"";
	wpd.close();
	if(wpd.fail())
		return ERROR_WRITE_FAIL;
}
0 Kudos
JingyangTeh
Employee
407 Views

Hi


After checking, it seems this is not officially tested for the Cyclone5.


However we could try to get it to work on your end.

The problem could be you not setting the Cyclone5 to have partial reconfiguration?

https://www.intel.com/content/www/us/en/docs/programmable/683694/current/dynamic-reconfiguration-25100.html


The configuration during the linux should only be on the FPGA fabric and not reconfigure the HPS.

You could not reconfigure the HPS when running in linux.


Regards

Jingyang, Teh


0 Kudos
JingyangTeh
Employee
324 Views

Hi


Do you have any follow up question from the previous comment?


Regards

Jingyang, Teh


0 Kudos
qwitza
Novice
307 Views

Hello,
we do not write the rpd partially it is a full flash.
The kernel also offers this option.

0 Kudos
JingyangTeh
Employee
224 Views

Hi


Could you change the rpd to partial?

It would need to be partial as the full configuration could cause the HPS to reconfigured too.

When the HPS is configured the linux running will alsoo crashes, I believe what is happening currently in your case.


Regards

Jingyang, Teh



0 Kudos
qwitza
Novice
185 Views

Hello,

i think we can not change to partial, because we have only the free version.

i am right?

 

greetings

0 Kudos
JingyangTeh
Employee
196 Views

Hi


Any update on this case?

Did you try out the suggestion in the previous comment?


Regards

Jingyang, Teh


0 Kudos
qwitza
Novice
183 Views

Hello,

i think we can not change to partial, because we have only the free version.

i am right?

 

greetings

0 Kudos
JingyangTeh
Employee
116 Views

Hi


Yes. The partial configuration for CycloneV requires the Quartus Pro licensing.

The crash that you are observing is due to the full configuration.

The full configuration is resetting the HPS which the linux is running on.


Regards

Jingyang, Teh


0 Kudos
JingyangTeh
Employee
88 Views

Hi


Do you have any follow up question on this issue?


Regards

Jingyang, Teh


0 Kudos
JingyangTeh
Employee
13 Views

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


0 Kudos
Reply