From 328029d7cc4dffdf3f2de9d420ab5a4f5af385c1 Mon Sep 17 00:00:00 2001 From: "APAC\\JSO2KOR" Date: Mon, 4 Nov 2024 14:23:36 +0530 Subject: [PATCH] [#281]Added how to flash the image to raspberry pi and also resolved review comments Signed-off-by: Sanjeev Joshi --- .../build-yocto-image-raspberry-pi.md | 42 +++++++++++++++++-- 1 file changed, 38 insertions(+), 4 deletions(-) diff --git a/web/site/content/docs/how-to-guides/build-yocto-image-raspberry-pi.md b/web/site/content/docs/how-to-guides/build-yocto-image-raspberry-pi.md index 1fe82869..9c9e98e4 100644 --- a/web/site/content/docs/how-to-guides/build-yocto-image-raspberry-pi.md +++ b/web/site/content/docs/how-to-guides/build-yocto-image-raspberry-pi.md @@ -144,6 +144,9 @@ Building a Yocto Image for a Raspberry Pi involves several steps, including sett bitbake-layers show-layers ``` + The ouput should be as shown below + + ### Configure local.conf file * Open local.conf file which is placed at the below location in build directory @@ -229,7 +232,7 @@ Building a Yocto Image for a Raspberry Pi involves several steps, including sett #MACHINE ?= "qemux86-64" # This sets the default machine to be qemux86-64 if no other machine is selected: - MACHINE ??= "qemuarm64" + MACHINE ??= "qemuarm" ``` @@ -237,13 +240,13 @@ Building a Yocto Image for a Raspberry Pi involves several steps, including sett * In the same build directory run the below command to run qemu - ```shell - runqemu qemuarm64 + ```shell + runqemu qemuarm ``` * The above command will open a window which boots as "YOCTO PROJECT" and it enters to command line window. Enter login as `root', and check for kanto components with the below commands. - ```shell + ```shell systemctl status \ suite-connector.service \ container-management.service \ @@ -256,4 +259,35 @@ Building a Yocto Image for a Raspberry Pi involves several steps, including sett All listed services must be in an active running state. +### Flash the image on Raspberry Pi + +* The build image will be availabe at `build/tmp/deploy/images/raspberrypi4/` + +* Identify the SD Card Device with the below command to find the device name of your SD card + + ```shell + lsblk + ``` + +* Flash the image to sd card + + ```shell + sudo dd if=/path/to/image.wic of=/dev/sdX bs=4M status=progress + ``` + +* Boot the Raspberry Pi, + Insert the SD card into your Raspberry Pi and power it on. The Pi should boot from the Yocto image.Login to your device and run the below command to verify the kanto components. + + ```shell + systemctl status \ + suite-connector.service \ + container-management.service \ + software-update.service \ + file-upload.service \ + file-backup.service \ + system-metrics.service \ + kanto-update-manager.service + ``` + +