UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Adventurer
Adventurer
12,021 Views
Registered: ‎10-14-2015

QSPI Firmware Upgrade

Hi,

 

I try to get working the example of firmware upgrade delivered inside the SDK. I'm using a Spansion S25FL512S. I can list all mtd partition and also, write to /dev/flash/boot and /dev/flash/kernel. I guess I correctly setup flash.

 

I can easily go through the end of the program just before rebooting. Once reboot called, nothing happen. Linux hang...

 

If I press any key, I go back to the console(tty) and I can navigate, but I can't shutdown or reboot. If I turn off the board and turn it back on, got no problem, u-boot and the updated kernel are booting.

 

I'm stuck at this step. Is there anyone had this issue before ?

 

 

0 Kudos
7 Replies
Adventurer
Adventurer
11,684 Views
Registered: ‎10-14-2015

Re: QSPI Firmware Upgrade

bump !

 

Nobody ?

0 Kudos
Scholar rfs613
Scholar
11,675 Views
Registered: ‎05-28-2013

Re: QSPI Firmware Upgrade

There seems to be a contradiction... after calling "reboot" you say linux hangs... but then you say that it goes back to the console if you press any key? That doesn't make sense...

If "reboot" does nothing, you can try "reboot -f". If that fixes it, there is a problem in the software shutdown sequence. You'll have to look at the init scripts and see where it gets stuck.

If "reboot -f" also hangs, that points more to a hardware-type issue. One possible issue has to do with putting the QSPI chip back into the proper mode. Works fine on cold boot, but warm-reboot didn't know to reset it. This was fixed 1-2 years ago (memory is getting a bit rusty).

Are you running reasonably current versions of uboot, kernel, etc?
0 Kudos
Adventurer
Adventurer
11,584 Views
Registered: ‎10-14-2015

Re: QSPI Firmware Upgrade

Sorry for confusion.

 

If I go back to the console and I type a command, the Zynq does not respond. On the PCB, there is a led indicate if the FPGA is programmed or not. On cold boot, this led is turn on, so the FPGA is ok and I can see u-boot and linux booting. If, after a firmware upgrade in the SPI, I call a warm reboot, the led is kept turn off. I tried with "reboot -r" and no change..

 

I guess the shutdown sequence is ok because the FPGA done's led is turn off, but never turn on back again. I also enable debug in the petalinux FSBL to view if it has correctly been load. On cold boot, I see debug, on reboot after flash, I can't see anything. I connect the JTAG and I can communicate with the Zynq, it's in live. I read that one possible issue is the bootrom entered in error, but there is anyway to gather this code by JTAG ?

 

When you talk about the init script, in my case if the FSBL isn't loaded, what's the solution for me ?

 

Thanks.

0 Kudos
Scholar rfs613
Scholar
11,580 Views
Registered: ‎05-28-2013

Re: QSPI Firmware Upgrade

Based on your description, on warm boot, the FPGA is not being programmed, and no code is executing. There could be several reasons for this. Regarding bootrom detecting an error, I have seen such messages printed on the serial console-- I do not know if there is some other way to check (eg. via JTAG).

 

One possibility is that the QSPI chip is not being reset. When Linux boots, it will normally configure the chip for best performance, including putting it into 4-byte addressing mode, and enabling quad mode. However, bootrom expects it to be in a relatively dumb/slow mode. The only way to guarantee this is to reset the QSPI chip at warm-boot time.

 

Does rebooting work under normal circumstances (eg. when not performing firmware upgrade)? Is it custom hardware, or one of the eval boards?

0 Kudos
Adventurer
Adventurer
11,577 Views
Registered: ‎10-14-2015

Re: QSPI Firmware Upgrade

Do I suppose to see print out messages on the serial console when the boot is in the bootrom sequence ? I yes, I don't see anything.

If I do not call firmware upgrade and with the serial console I type "reboot", the rebot sequence with shutting down, reprogramming the FPGA, u-boot and petalinux correctly.

 

It a hybride custom hardware. I use a SOM of Enclustra company with a custom base board. 

0 Kudos
Scholar rfs613
Scholar
11,572 Views
Registered: ‎05-28-2013

Re: QSPI Firmware Upgrade

Okay, so the problem only occurs when you use the flrmware upgrade. I do not have direct experience with that tool; for upgrades I just use "flashcp" to update mtd partitions manually. Afraid that's about all I can offer...
0 Kudos
Adventurer
Adventurer
11,562 Views
Registered: ‎10-14-2015

Re: QSPI Firmware Upgrade

Hi,

 

Yes exactly, only when I write the QSPI memory. I also tried with flashcp and it did the same behavior...

 

So thanks for your help. Hope someone have a solution!

 

Regards.

0 Kudos