I was able to build an image without adding any packages. After that, i’ve tried to build an image with docker-ce package, which I added to poky/qti-conf/local.conf.
After running the commands:
source build.sh
build-qti-robotics-med-image
I get this error:
I will provide the patch.
It might help you.
Hello,
I’ve added the patch to poky/meta-virtualization/recipes-containers/docker/files. Then I’ve updated the SRC_URI in file docker-ce_git.bb:
But when i tried to make rebake docker-ce I get the following error while running the
docker-ce_git.bb:do_patch task
ERROR: docker-ce-19.03.8-ce+gitafacb8b7f0d8d4f9d2a8e8736e9c993e672b41f3-r0 do_patch: Applying patch ‘0001-docker-support.patch’ on target directory ‘/home/ubuntu_16_04_final/Documents/SC206_2/qcm2290_linux_r60_r004/build-qti-distro-rb-debug/tmp-glibc/work/aarch64-oe-linux/docker-ce/19.03.8-ce+gitafacb8b7f0d8d4f9d2a8e8736e9c993e672b41f3-r0/git’
Command Error: ‘quilt --quiltrc /home/ubuntu_16_04_final/Documents/SC206_2/qcm2290_linux_r60_r004/build-qti-distro-rb-debug/tmp-glibc/work/aarch64-oe-linux/docker-ce/19.03.8-ce+gitafacb8b7f0d8d4f9d2a8e8736e9c993e672b41f3-r0/recipe-sysroot-native/etc/quiltrc push’ exited with 0 Output:
Applying patch 0001-docker-support.patch
can’t find file to patch at input line 15
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
|From ba68e4fbabf8a1a652ba47e91113f3075bd7ea4f Mon Sep 17 00:00:00 2001
|From: “heter.hou” heter.hou@quectel.com
|Date: Mon, 10 Jul 2023 09:58:24 +0800
|Subject: [PATCH] docker support
|
|—
| poky/meta-qti-bsp/conf/machine/qrbx210-rbx.conf | 2 ±
| src/kernel/msm-5.4/init/do_mounts.c | 2 ±
| 2 files changed, 2 insertions(+), 2 deletions(-)
|
|diff --git a/poky/meta-qti-bsp/conf/machine/qrbx210-rbx.conf b/poky/meta-qti-bsp/conf/machine/qrbx210-rbx.conf
|index 9d8d6efb38…780b5d5c8e 100755
|— a/poky/meta-qti-bsp/conf/machine/qrbx210-rbx.conf
+++ b/poky/meta-qti-bsp/conf/machine/qrbx210-rbx.conf |
No file to patch. Skipping patch. |
1 out of 1 hunk ignored |
can’t find file to patch at input line 27 |
Perhaps you used the wrong -p or --strip option? |
The text leading up to this was: |
|diff --git a/src/kernel/msm-5.4/init/do_mounts.c b/src/kernel/msm-5.4/init/do_mounts.c
|index 9634ecf374…a92147375f 100644
|— a/src/kernel/msm-5.4/init/do_mounts.c
+++ b/src/kernel/msm-5.4/init/do_mounts.c |
No file to patch. Skipping patch. |
1 out of 1 hunk ignored |
Patch 0001-docker-support.patch does not apply (enforce with -f) |
ERROR: Logfile of failure stored in: /home/ubuntu_16_04_final/Documents/SC206_2/qcm2290_linux_r60_r004/build-qti-distro-rb-debug/tmp-glibc/work/aarch64-oe-linux/docker-ce/19.03.8-ce+gitafacb8b7f0d8d4f9d2a8e8736e9c993e672b41f3-r0/temp/log.do_patch.7933 |
ERROR: Task (/home/ubuntu_16_04_final/Documents/SC206_2/qcm2290_linux_r60_r004/poky/meta-virtualization/recipes-containers/docker/docker-ce_git.bb:do_patch) failed with exit code ‘1’ |
NOTE: Tasks Summary: Attempted 2085 tasks of which 2081 didn’t need to be rerun and 1 failed. |
NOTE: Writing buildhistory |
NOTE: Writing buildhistory took: 13 seconds |
Summary: 1 task failed:
/home/ubuntu_16_04_final/Documents/SC206_2/qcm2290_linux_r60_r004/poky/meta-virtualization/recipes-containers/docker/docker-ce_git.bb:do_patch
Summary: There were 141 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
From the log, it failed to apply the patch.
The format do not match.
Please check it by yourself.
What if you won’t change anything, just try
bitbake -c do_compile docker-ce
Will it succeed?
Docker compilation (bitbake -c do_compile docker-ce) was successful
Then, as the patch suggested, I’ve modified the qrbx210-rbx.conf file
And the do_mounts.c
But i get the error shown below
I don´t understand why it suggests that the PC run out of space if I have almost 130 GB of free space
The “out of space” do not mean that the Ubuntu.
If you add the docker-ce, then the system and recovery partion is not enough.
Please follow the
Quectel_SC206E_Series_Linux_Partition_Adjustment_Guide_V1.0.pdf
to adjust the partion size.
I’ve increased the recovery partition size and I mantained the changes in qrbx210-rbx.conf and do_mounts.c. Finally I could compile the images with git and docker. Nevertheless, now it is not possible to read the sdcard that I’ve inserted in the SD CARD slot of the EVB.
Please check
lsblk
cat /proc/parttions
Maybe the sdcard is not mounted.
Indeed, the sdcard was not mounted.
Then I realized (using df -h) that there was not space available in /dev/root, so I increased the size of the system partition to 8GB.
I build the image and the sdcard was detected properly.
Thanks!!
Good news and you are Great!