U-Boot Unzip Rootfs

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

U-Boot Unzip Rootfs

Jump to solution
2,671 Views
mitun_chidampar
Contributor I

U-Boot - unzip

Hello, 
I am using a SOM based on the NXP i.MX6S7

I want to use the U-boot to update the firmware of our system. When I plugin a USB stick during startup, the u-boot should detect the USB and rewrite the rootfs. 

In my u-boot these are the commands , I am using :

TX6S U-Boot > fatload usb 0:1 18000000  rootfs_tx6-emmc.tgz

                        reading rootfs_tx6-emmc.tgz
                        14063707 bytes read in 443 ms (30.3 MiB/s)

TX6S U-Boot > unzip 18000000 19000000
Uncompressed size: 39219200 = 0x2567000

After I unzip, how do i rewrite the rootfs in my mmc flash ?

Please guide me to the right direction.

Thank you

Regards,

Mitun Chidamparam

0 Kudos
1 Solution
2,452 Views
igorpadykov
NXP Employee
NXP Employee

Hi Mitun

one can look at solutions provided on

https://community.nxp.com/docs/DOC-343518 

https://boundarydevices.com/programming-emmc-on-i-mx6/ 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
2 Replies
2,453 Views
igorpadykov
NXP Employee
NXP Employee

Hi Mitun

one can look at solutions provided on

https://community.nxp.com/docs/DOC-343518 

https://boundarydevices.com/programming-emmc-on-i-mx6/ 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
2,452 Views
mitun_chidampar
Contributor I

How can I determine the correct start block size, when I use this command?

U-Boot > gzwrite mmc 1 10008000 0x$filesize 100000 0
0 Kudos