Closed BhupiMAD closed 2 months ago
LastError: Failed mounting bundle: Failed to load dm table: Invalid argument, check DM_VERITY, DM_CRYPT or CRYPTO_AES kernel options.
Do you have enabled those options in your kernel config? Check /proc/config.gz
or the config in you build system. Can you attach your full config?
1 Image: [rootfs] Size: 3.3?GB (3261339648 bytes)
Your image is 3.3GB, which for ext4 may include empty space.
|-mmcblk1p2 179:98 0 3.9G 0 part / |-mmcblk1p3 179:99 0 3.9G 0 part
Should my
RAUC_SLOT_rootfs
be the same as the image originally built for the device?
Usually the same rootfs image is used for both the RAUC bundle and the factory disk image.
And it makes me wonder why the bundle update files are so huge? the .raucb file that update bundle generates is 800-900 mb.
3.3 GB to ~800 MB isn't a bad compression ratio. Which size would you expect?
/proc/config.gz
config.txt
Here is the complete config file
I found the following
CONFIG_DM_VERITY=y
is not set
CONFIG_BLK_DEV_DM=y
is set to CONFIG_BLK_DEV_DM=m
CONFIG_BLK_DEV_NBD=y
is set to CONFIG_BLK_DEV_NBD=m
This makes me wonder if my bbappend file is working.
/proc/config.gz
config.txt Here is the complete config file I found the following
CONFIG_DM_VERITY=y
is not set
That would explain the Failed to load dm table
error. Also check the other options mentioned in https://rauc.readthedocs.io/en/latest/integration.html#kernel-configuration
/proc/config.gz
config.txt Here is the complete config file I found the following
CONFIG_DM_VERITY=y
is not setThat would explain the
Failed to load dm table
error. Also check the other options mentioned in https://rauc.readthedocs.io/en/latest/integration.html#kernel-configuration
There are other kernel options that the error showed DM_CRYPT or CRYPTO_AES
and below are my observations
# CONFIG_DM_CRYPT is not set
CONFIG_CRYPTO_AES_ARM64=y
CONFIG_CRYPTO_AES_ARM64_CE=y
CONFIG_CRYPTO_AES_ARM64_CE_CCM=y
CONFIG_CRYPTO_AES_ARM64_CE_BLK=y
CONFIG_CRYPTO_AES_ARM64_NEON_BLK=m
CONFIG_CRYPTO_AES_ARM64_BS=m
**CONFIG_CRYPTO_AES=y**
# CONFIG_CRYPTO_AES_TI is not set
CONFIG_CRYPTO_AES
has multiple options, do i need to enable all of them?
As described in the linked documentation CONFIG_DM_CRYPT
and CONFIG_CRYPTO_AES
are needed for encrypted bundles only.
3.3 GB to ~800 MB isn't a bad compression ratio. Which size would you expect?
@jluebbe Thank you for all of your prompt replies. My question regarding the size was because, for example, I want to add a package like nano editor, will I have to push an 800mb update file for that?
RAUC bundles contain the full system images and are independent of which old version is installed on the system, see https://rauc.readthedocs.io/en/latest/basic.html for more details. Using adaptive updates and streaming, the download of reused data can be avoided.
@jluebbe The previous error is solved but now getting below error
root@imx8mp-icore:~# rauc install /home/root/update-bundle-imx8mp-icore-20240809084814.raucb
installing
0% Installing
0% Determining slot states
10% Determining slot states done.
10% Checking bundle
10% Verifying signature
20% Verifying signature done.
20% Checking bundle done.
20% Checking manifest contents
30% Checking manifest contents done.
30% Determining target install group
40% Determining target install group done.
100% Installing failed.
LastError: Compatible mismatch: Expected '@@MACHINE@@' but bundle manifest has 'imx8mp-icore'
Installing `/home/root/update-bundle-imx8mp-icore-20240809084814.raucb` failed
Why is it expecting @@MACHINE@@
?
i got it, my system.conf is the issue. I will update it.
@jluebbe I would once again like to THANK YOU for all the timely support you provided today.
I was able to test the update and it switches the partition successfully. Will be testing it more.
My SOC is Engicam imx8mp
, if there is any way to contribute on what changes are required to bring this board up with RAUC then please let me know and I can do a pull request.
My SOC is
Engicam imx8mp
, if there is any way to contribute on what changes are required to bring this board up with RAUC then please let me know and I can do a pull request.
There is https://github.com/rauc/meta-rauc-community. You'd need to check if it could be integrated into an existing layer or should be separate. Alternatively, if you have suggestions to improve the documentation, we'd also appreciate PRs for that: https://github.com/rauc/rauc/tree/master/docs
meta-rauc on custom imx8mp board (Kirkstone).
I want to make RAUC work with a custom imx8mp board. I followed the guide and was able to add
meta-rauc
to my build. While creating an update bundle and trying to install it on the device I get the below error.rauc info on package
rauc status
update-bundle.bb
Should my
RAUC_SLOT_rootfs
be the same as the image originally built for the device? And it makes me wonder why the bundle update files are so huge? the .raucb file that update bundle generates is 800-900 mb.