How to deploy image to SD Card?

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

How to deploy image to SD Card?

Jump to solution
1,173 Views
bladerunner1010
Contributor III

??

Tags (1)
0 Kudos
1 Solution
1,156 Views
yipingwang
NXP TechSupport
NXP TechSupport

Use "fdisk" to create 4 partitions.

Please use "mkfs.ext4" to format the second and the fourth partition.

$ mkfs.ext4 /dev/sdc2

$ mkfs.ext4 /dev/sdc4

dd firmware_ls1043ardb_sdboot.img to SD card.

$ dd if=firmware_ls1043ardb_sdboot.img of=/dev/sdc bs=512 seek=8

Write boot_LS_arm64_lts_5.10.tgz to the second partition of SD card.

$ mount /dev/sdc2 /mnt

$ cp boot_LS_arm64_lts_5.10.tgz /mnt

$ tar -xzvf  boot_LS_arm64_lts_5.10.tgz

$ rm boot_LS_arm64_lts_5.10.tgz

$umount /mnt

Write rootfs_lsdk2108_buildroot_tiny_arm64.tgz to the fourth partition of SD card.

$ mount /dev/sdc4 /mnt

$ cp rootfs_lsdk2108_buildroot_tiny_arm64.tgz /mnt

$ tar -xzvf  rootfs_lsdk2108_buildroot_tiny_arm64.tgz

$ rm rootfs_lsdk2108_buildroot_tiny_arm64.tgz

$umount /mnt

 

View solution in original post

1 Reply
1,157 Views
yipingwang
NXP TechSupport
NXP TechSupport

Use "fdisk" to create 4 partitions.

Please use "mkfs.ext4" to format the second and the fourth partition.

$ mkfs.ext4 /dev/sdc2

$ mkfs.ext4 /dev/sdc4

dd firmware_ls1043ardb_sdboot.img to SD card.

$ dd if=firmware_ls1043ardb_sdboot.img of=/dev/sdc bs=512 seek=8

Write boot_LS_arm64_lts_5.10.tgz to the second partition of SD card.

$ mount /dev/sdc2 /mnt

$ cp boot_LS_arm64_lts_5.10.tgz /mnt

$ tar -xzvf  boot_LS_arm64_lts_5.10.tgz

$ rm boot_LS_arm64_lts_5.10.tgz

$umount /mnt

Write rootfs_lsdk2108_buildroot_tiny_arm64.tgz to the fourth partition of SD card.

$ mount /dev/sdc4 /mnt

$ cp rootfs_lsdk2108_buildroot_tiny_arm64.tgz /mnt

$ tar -xzvf  rootfs_lsdk2108_buildroot_tiny_arm64.tgz

$ rm rootfs_lsdk2108_buildroot_tiny_arm64.tgz

$umount /mnt