flash sdcard localy

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

flash sdcard localy

Jump to solution
557 Views
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

Tags (1)
0 Kudos
Reply
1 Solution
535 Views
Alejandro_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!

View solution in original post

0 Kudos
Reply
2 Replies
536 Views
Alejandro_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 Kudos
Reply
526 Views
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 Kudos
Reply