AIM-Linux/ROM-5722 Anroid flash image guide

From ESS-WIKI
Jump to: navigation, search

OTG Flash Image guide : 

0. Please change to Download mode ( Swtich setting  is  4 on  , others off  )

RTENOTITLE

1. To identify a device using a command, you typically use commands like lsusb for USB devices  on Linux systems.

Here’s how you can use these commands:

RTENOTITLE

2. Log into Image folder 

RTENOTITLE

 

3. Flash image by command : 

command : 

sudo ./uuu_imx_android_flash.sh -f imx8mp -a -e

RTENOTITLE

 

SD Card Flash Image guide : 

0. Chech the SD Card in Linux system 

command : 

        sudo fdisk -l 

1. Log into SD card image folder 

RTENOTITLE

2. Flash SD card image by command : 

command : 

      sudo ./imx-sdcard-partition.sh -f imx8mp /dev/sdh

 

Flahs process message

----------------------------------------------------------------------------

$ sudo ./imx-sdcard-partition.sh -f imx8mp /dev/sdh
make gpt partition for android: partition-table.img
17+0 records in
17+0 records out
17408 bytes (17 kB, 17 KiB) copied, 0.00582998 s, 3.0 MB/s

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

Warning! Main and backup partition tables differ! Use the 'c' and 'e' options
on the recovery & transformation menu to examine the two tables.

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

formating android images
format_partition: metadata:/dev/sdh8 ext4
mke2fs 1.45.5 (07-Jan-2020)
/dev/sdh8 contains a ext4 file system labelled 'metadata'
        created on Mon Jul 29 15:43:38 2024
Creating filesystem with 4096 4k blocks and 4096 inodes

Allocating group tables: done
Writing inode tables: done
Creating journal (1024 blocks): done
Writing superblocks and filesystem accounting information: done

erase_partition: presistdata : /dev/sdh9 1M
1+0 records in
1+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.0170493 s, 61.5 MB/s
erase_partition: fbmisc : /dev/sdh12 1M
1+0 records in
1+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.0180272 s, 58.2 MB/s
erase_partition: misc : /dev/sdh7 4M
4+0 records in
4+0 records out
4194304 bytes (4.2 MB, 4.0 MiB) copied, 0.0838173 s, 50.0 MB/s
format_partition: userdata:/dev/sdh11 ext4
mke2fs 1.45.5 (07-Jan-2020)
Creating filesystem with 2281984 4k blocks and 571200 inodes
Filesystem UUID: 89e5388e-3131-458a-9c07-dcbf9efb39ed
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

Allocating group tables: done
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done

flash_partition: dtbo-imx8mp.img ---> /dev/sdh1
0+1 records in
0+1 records out
4194304 bytes (4.2 MB, 4.0 MiB) copied, 0.0651725 s, 64.4 MB/s
flash_partition: dtbo-imx8mp.img ---> /dev/sdh2
0+1 records in
0+1 records out
4194304 bytes (4.2 MB, 4.0 MiB) copied, 0.105797 s, 39.6 MB/s
flash_partition: vendor_boot.img ---> /dev/sdh5
6+1 records in
6+1 records out
67108864 bytes (67 MB, 64 MiB) copied, 1.07076 s, 62.7 MB/s
flash_partition: vendor_boot.img ---> /dev/sdh6
6+1 records in
6+1 records out
67108864 bytes (67 MB, 64 MiB) copied, 1.2398 s, 54.1 MB/s
flash_partition: boot.img ---> /dev/sdh3
6+1 records in
6+1 records out
67108864 bytes (67 MB, 64 MiB) copied, 1.23529 s, 54.3 MB/s
flash_partition: boot.img ---> /dev/sdh4
6+1 records in
6+1 records out
67108864 bytes (67 MB, 64 MiB) copied, 1.24231 s, 54.0 MB/s
flash_partition: super.img ---> /dev/sdh10
flash_partition: vbmeta-imx8mp.img ---> /dev/sdh13
0+1 records in
0+1 records out
8192 bytes (8.2 kB, 8.0 KiB) copied, 0.00371064 s, 2.2 MB/s
flash_partition: vbmeta-imx8mp.img ---> /dev/sdh14
0+1 records in
0+1 records out
8192 bytes (8.2 kB, 8.0 KiB) copied, 0.0192231 s, 426 kB/s
erase_partition: uboot : /dev/sdh
flash_partition: u-boot-imx8mp.imx ---> /dev/sdh
the bootloader partition size: 8160
8160+0 records in
8160+0 records out
8355840 bytes (8.4 MB, 8.0 MiB) copied, 1.65138 s, 5.1 MB/s
1388+1 records in
1388+1 records out
1422256 bytes (1.4 MB, 1.4 MiB) copied, 0.500707 s, 2.8 MB/s

>>>>>>>>>>>>>> Flashing successfully completed <<<<<<<<<<<<<<
3. Change the Switch to  1 off , 2 on , 3 on, other off . 

RTENOTITLE

 

 4. Android Image boot up 

ROM-5722 androidimage bootup.PNG