cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Observer
Observer
1,170 Views
Registered: ‎01-27-2016

fwupgrade application

Hi

I read UG983 for firmware upgrade, and notice that petalinux 2018.2, there is no fwupgrade application anymore,

from "petalinux -c rootfs", anybody knows where I can find it? And UG983 is kind of old, lastest version is 2014.

Anybody knows latest version?

 

Thanks

0 Kudos
11 Replies
Highlighted
Moderator
Moderator
1,147 Views
Registered: ‎04-24-2017

Hi @lynn.zhang,

 

This is UG is obsoleted.

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
Highlighted
Observer
Observer
1,123 Views
Registered: ‎01-27-2016

Hi, Sandeep

Thank you for letting me know. So if I like to firmware update, what procedure should I do?

Any document relate to this?

Thank

0 Kudos
Highlighted
612 Views
Registered: ‎12-12-2019

hi,

if its obsoleted,how is it done in latest version of petalinux?

 

Regards,

Sriraksha

0 Kudos
Highlighted
Moderator
Moderator
606 Views
Registered: ‎12-04-2016

Hi, Sriraksha @lynn.zhang 

fwupgrade is not shipped by Xilinx. It is just a utility from older rootfs used in petalinux.

It is recommended to use other utilities like (swupdateMender or RAUC.) in the latest projects. (extracted info from https://github.com/tpetazzoni/fwupgrade)

For example, yocto provides SWupdate as meta layer and you may try adding it to petalinux and see if that works. This post might help you in adding this layer

https://www.zachpfeffer.com/single-post/Integrate-SWUpdate-into-a-PetaLinux-Project

 

Best Regards

Shabbir

 

0 Kudos
Highlighted
Moderator
Moderator
582 Views
Registered: ‎04-24-2017

Hi @sriraksha.nayak ,

What is you actual requirement here, Are you looking for OTA(Over-the-air) update from older version to newer version or Just upgrading the images from incremental builds?

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
Highlighted
552 Views
Registered: ‎12-12-2019

hi @sandeepg 

I would like to know how to flash the firmware when its Running bare-metal/FreeRTOS.

 About firmware update i mean to say adding BOOT.bin in flash (board doesnt have any firmware at present its a dead board). 

SDCARD option is ruled out.So if updating BOOT.bin over usb is available or Jatg or if any other options?

 

Regards,
Sriraksha

0 Kudos
Highlighted
Moderator
Moderator
543 Views
Registered: ‎04-24-2017

Hi @sriraksha.nayak ,

If you have SD card on your hardware then you can use SD card to load flash the BOOT.bin to QSPI parition.

If you don't have SD card then only way to program the BOOT.bin to flash on new board using JTAG boot mode via XSDK(2019.1 and below release) or Vitis(2019.2 and above release) tool(Flash Programming method).

For more details refer UG1209.

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
Highlighted
533 Views
Registered: ‎12-12-2019

Hi @sandeepg,

Thank you for the reply.

So you are saying other than sd card and jtag we dont have any other options to to push bins in dead board? over usb is there a provision?

we were checking if over usb if its possible?

Regards,
Sriaksha

0 Kudos
Highlighted
Moderator
Moderator
496 Views
Registered: ‎04-24-2017

Hi @sriraksha.nayak ,

If you have USB boot mode options on your board.

  1. Create a BOOT.bin with DFU enabled
  2. Boot from DFU so that BOOT.bin is copied to OCM and FSBL and u-boot should comes up
  3. Halt at u-boot
  4. Copy the QSPI BOOT.bin to DDR address
  5. Use sf probe, erase and write commands to program BOOT.bin to flash as show below.

In below example I used fatload mmc(using SD) you can replace with tftp or dfu commands to copy the BOOT.bin to DDR address.

 

Xilinx Zynq MP First Stage Boot Loader
Release 2018.1   Aug  2 2018  -  21:31:44
NOTICE:  ATF running on XCZU9EG/silicon v4/RTL5.1 at 0xfffea000
NOTICE:  BL31: Secure code at 0x0
NOTICE:  BL31: Non secure code at 0x10080000
NOTICE:  BL31: v1.4(release):xilinx-v2017.4-1351-gdf4a7e97
NOTICE:  BL31: Built : 03:26:47, Aug  3 2018
PMUFW:  v1.0
 
 
U-Boot 2018.01 (Aug 02 2018 - 21:27:36 -0600) Xilinx ZynqMP ZCU102 rev1.0
 
I2C:   ready
DRAM:  4 GiB
EL Level:       EL2
Chip ID:        zu9eg
MMC:   sdhci@ff170000: 0 (SD)
SF: Detected n25q512a with page size 512 Bytes, erase size 128 KiB, total 128 MiB
In:    serial@ff000000
Out:   serial@ff000000
Err:   serial@ff000000
Model: ZynqMP ZCU102 Rev1.0
Board: Xilinx ZynqMP
Net:   ZYNQ GEM: ff0e0000, phyaddr c, interface rgmii-id
eth0: ethernet@ff0e0000
Hit any key to stop autoboot:  0
ZynqMP> sf probe 0 0 0
SF: Detected n25q512a with page size 512 Bytes, erase size 128 KiB, total 128 MiB
 
ZynqMP> fatload mmc 0 0x10000000 qspi-BOOT.bin
reading qspi-BOOT.bin
27642392 bytes read in 1814 ms (14.5 MiB/s)
 
ZynqMP> sf erase 0x0 0x1e00000
SF: 31457280 bytes @ 0x0 Erased: OK
 
ZynqMP> sf write 0x10000000 0x0 ${filesize}
device 0 offset 0x0, size 0x1a5ca18
SF: 27642392 bytes @ 0x0 Written: OK
 
ZynqMP>
Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
Highlighted
472 Views
Registered: ‎12-12-2019

Hi @sandeepg,

We were looking for usb options for booting but looks like its not available.

We can find the current boot mode MIO strapping pins in the Zynq 7000 TRM(ug585-Zynq-7000) page 166.

Suggest us the best option to push production code into the flash.

check attachment for reference.

Regards,
Sriraksha

 

download.png
0 Kudos
Highlighted
Moderator
Moderator
431 Views
Registered: ‎04-24-2017

Hi @sriraksha.nayak ,

Sorry my bad I thought its ZynqMP architecture, Yes for Zynq7000 we don't have USB boot mode.

Hence you need to use JTAG boot mode.

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos