Flash SD Card
To write the microSD card image, install bmap-tools on the Linux PC with the following command.
sudo apt install bmap-tools
Check the sd card device.
lsblk
if the sd card device is /dev/sdx, and sd card is mounted, unmount the sd card.
sudo umount /dev/sdx1
sudo umount /dev/sdx2
Wire the SD card to the host PC.
sudo bmaptool copy core-image-<target>-<borad>.wic.gz /dev/sdx
if you want to resize the sd card partition, follow the steps below.
Check the sd card partition.
sudo fdisk -l /dev/sdx
Select the ext4 partition to resize.
sudo growpart /dev/sdx 2
Resize the filesystem.
sudo resize2fs /dev/sdx2