Step 5 : Flash to SD Card ========================= .. tab-set:: .. tab-item:: Flash to SD Card * In this program, you are going to learn .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow * How to ? .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow Topics in this section, * :ref:`Flash the OS ` .. _yocto_rpi_3b_step5_0: .. tab-set:: .. tab-item:: Flash the OS * Insert the SD card reader and run dmesg to find the device name. .. code-block:: c $ sudo dmesg | tail [sudo] password for wifi: [13956.819387] sd 1:0:0:0: [sda] No Caching mode page found [13956.819394] sd 1:0:0:0: [sda] Assuming drive cache: write through [13956.819980] sd 1:0:0:1: [sdb] Media removed, stopped polling [13956.820433] sd 1:0:0:2: [sdc] Media removed, stopped polling [13956.820650] sd 1:0:0:1: [sdb] Attached SCSI removable disk [13956.820901] sd 1:0:0:3: [sdd] Media removed, stopped polling [13956.821201] sd 1:0:0:2: [sdc] Attached SCSI removable disk [13956.821604] sd 1:0:0:3: [sdd] Attached SCSI removable disk [13956.828315] sda: [13956.828399] sd 1:0:0:0: [sda] Attached SCSI removable disk * Run fdisk to know the device name and its details. .. code-block:: c $ sudo fdisk -l Disk /dev/sda: 59.45 GiB, 63831015424 bytes, 124669952 sectors Disk model: USB SD Reader Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x5452574f * Extract the image using the bzip2 command. .. code-block:: c $ cd $HOME/build/tmp/deploy/images/raspberrypi4-64 $ bzip2 -d -f core-image-base-raspberrypi3-64.wic.bz2 * Flash the image to SD card. .. code-block:: c $ sudo dd bs=4M if=core-image-base-raspberrypi3-64.wic of=/dev/sda status=progress conv=fsync