flash sdcard localy

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

flash sdcard localy

跳至解决方案
1,959 次查看
Ahelion
Contributor IV

Hi all,

Instead of using the UUU thing to flash android on imx8 over serial wire, can one flash and sd-card localy from a Linux/Windows pc, and simply insert the sd-card after?

Br, Mircea

标记 (1)
0 项奖励
回复
1 解答
1,937 次查看
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @Ahelion !

 

Please refer to ANDROID_USERS_GUIDE in chapter 5 (Programming Images).

 

There is explained the different methods for to download the images to SD card in your case.

 

Alejandro_Salas_0-1699392364456.png

 

There is a tool called imx-sdcard-partition.sh and it is used for download all images to the SD card.

 

Normally the use of imx-sdcard-partition.sh is:

$ sudo ${MY_ANDROID}/device/nxp/common/tools/imx-sdcard-partition.sh -f
 <soc_name> /dev/sdX
# <soc_name> can be imx8mm,imx8mn,imx8mp,imx8mq, imx8ulp, imx8qm,imx8qxp.

and where sdX is the disk index assigned for your Linux host to your SDcard.

You can know what index is assigned to your SDcard with:

$ lsblk -t

 

I hope this can helps to you.

 

Best regards!

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,938 次查看
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @Ahelion !

 

Please refer to ANDROID_USERS_GUIDE in chapter 5 (Programming Images).

 

There is explained the different methods for to download the images to SD card in your case.

 

Alejandro_Salas_0-1699392364456.png

 

There is a tool called imx-sdcard-partition.sh and it is used for download all images to the SD card.

 

Normally the use of imx-sdcard-partition.sh is:

$ sudo ${MY_ANDROID}/device/nxp/common/tools/imx-sdcard-partition.sh -f
 <soc_name> /dev/sdX
# <soc_name> can be imx8mm,imx8mn,imx8mp,imx8mq, imx8ulp, imx8qm,imx8qxp.

and where sdX is the disk index assigned for your Linux host to your SDcard.

You can know what index is assigned to your SDcard with:

$ lsblk -t

 

I hope this can helps to you.

 

Best regards!

0 项奖励
回复
1,928 次查看
Ahelion
Contributor IV

LE: changed sdcard, it worked with a 32gb model.

 

Hello,

I did what you said, returned the error bellow.

"

make gpt partition for android: partition-table.img
17+0 records in
17+0 records out
17408 bytes (17 kB, 17 KiB) copied, 0,00641273 s, 2,7 MB/s

/dev/sdb:
re-reading partition table
Caution: invalid backup GPT header, but valid main header; regenerating
backup header from main header.

Warning! One or more CRCs don't match. You should repair the disk!
Main header: OK
Backup header: ERROR
Main partition table: OK
Backup partition table: ERROR

Caution! Secondary header was placed beyond the disk's limits! Moving the
header, but other problems may occur!
Aborting write operation!

"

 

Any ideea what to do?

Br, Mircea

0 项奖励
回复