U-Boot Unzip Rootfs

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

U-Boot Unzip Rootfs

跳至解决方案
4,737 次查看
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 项奖励
回复
1 解答
4,518 次查看
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 项奖励
回复
2 回复数
4,519 次查看
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 项奖励
回复
4,518 次查看
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 项奖励
回复