Bitbake after add RAUC not work, IMX8MN

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Bitbake after add RAUC not work, IMX8MN

Jump to solution
2,956 Views
Schnitzel
Contributor I

Hello together,

i use the NXP Dev. Board imx8mn.

In the first step, I checked out the NXP zeus.

Build Configuration:
BB_VERSION = "1.44.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "aarch64-fslc-linux"
MACHINE = "imx8mnevk"
DISTRO = "fslc-wayland"
DISTRO_VERSION = "3.0"
TUNE_FEATURES = "aarch64 cortexa53 crc crypto"
TARGET_FPU = ""

 

 

Bitbake core-image-minimal baked successfully.


Now I've checked out Meta-RAUC.
added the following to the BBlayers:

${BSPDIR}/sources/meta-rauc \

In the local.conf
DISTRO_FEATURES + = "rauc"
IMAGE_INSTALL_append = "rauc"

WKS_FILES_mx8mn = "imx8mn-mp-rauc-sdimage.wks"
CERT_PATH = "${TOPDIR}/../sources/meta-rauc/openssl-ca/dev"

But now I'm not getting any further. I'm sure you grab your head and think: "It's so easy".

I hope you can help me.

Here is the error report when baking:


| scripts/kconfig/conf --defconfig=arch/../configs/imx8mn_evk_defconfig Kconfig
| ***
| *** Can't find default configuration "arch/../configs/imx8mn_evk_defconfig"!
| ***
| scripts/kconfig/Makefile:128: recipe for target 'imx8mn_evk_defconfig' failed
| make[1]: *** [imx8mn_evk_defconfig] Error 1
| Makefile:516: recipe for target 'imx8mn_evk_config' failed
| make: *** [imx8mn_evk_config] Error 2
| WARNING: exit code 1 from a shell command.
|
ERROR: Task (/projects/imx-yocto-bsp/sources/poky/meta/recipes-bsp/u-boot/u-boot-fw-utils_2019.07.bb:do_compile) failed with exit code '1'

 

Labels (1)
0 Kudos
Reply
1 Solution
2,945 Views
emptyfridge
Contributor III

hi Schnitzel (paniert?)

 

I'm just working on the same topic. Try to introduce RAUC as our new update tool.I've already successful build the bundle. (not yet tested)

Regarding your problem what I can say comes from here: https://github.com/rauc/meta-rauc#id3

Note: If you do not use packagegroup-base, you als need to manually add the rauc package to your systems image recipe:

IMAGE_INSTALL_append = " rauc"

Check if you using packagegroup-base. If so, you do not have to add it to IMAGE_INSTALL. This fixed for me the Problem to build it.

 

But now I have the problem again if I try to build rauc itself. 

Maybe someone has a idea here...

MACHINE=port-core-techshine bitbake u-boot imx-boot rauc

ERROR: u-boot-fw-utils-1_2019.07-r0 do_compile: oe_runmake failed
ERROR: u-boot-fw-utils-1_2019.07-r0 do_compile: Execution of '/home/linderth/workspace/yocto-builder-zeus/poky/build/tmp/work/port_core_techshine-poky-linux/u-boot-fw-utils/1_2019.07-r0/temp/run.do_compile.107812' failed with exit code 1:
make -f ./scripts/Makefile.build obj=scripts/basic
rm -f .tmp_quiet_recordmcount
make -f ./scripts/Makefile.build obj=scripts/kconfig port_core_fspi_defconfig
scripts/kconfig/conf --defconfig=arch/../configs/port_core_fspi_defconfig Kconfig
***
*** Can't find default configuration "arch/../configs/port_core_fspi_defconfig"!
***

 

View solution in original post

3 Replies
2,192 Views
gonewithwind-peter
Senior Contributor I

hi

@Schnitzel 

I am playing rauc now too. 

I can build rauc in yocto sumo , but I do not know where is the default wks file in yocto sumo source code. I have modified some .wks file and add an additional partition to test. but it is no additional  partition in sdcard in .bz2 file . it's still as before:bootloader,uboot,boot(image),rootfs.

I posted my Qustion at here https://community.nxp.com/t5/i-MX-Processors/how-to-write-WKS-file-for-rauc-in-imx8mq-maaxboard-what...

I what to know where is the default wks file in yocto sumo source code.

how about your wks file ? is it working now?

Thank you for your reply 

 

0 Kudos
Reply
2,921 Views
Schnitzel
Contributor I

You were right.
IMAGE_INSTALL_append = "rauc"
This only needs to be implemented if packagegroup-base is not used. (core-image-minimal use  packagegroup-base)

Then I wanted to ensure the correct partitioning. Using a WKS file.

WKS-File:

part U-BOOT --source rawcopy --sourceparams="file=imx-boot" --ondisk mmc --no-table --align 32

part --source bootimg-partition --fstype=vfat --label boot0 --ondisk mmc --active --align 8192 --size 20
part / --source rootfs --fstype=ext4 --label root0 --ondisk mmc --use-uuid
part --source bootimg-partition --fstype=vfat --label boot1 --ondisk mmc --active --size 20
part / --source rootfs --fstype=ext4 --label root1 --ondisk mmc --use-uuid

Unfortunately, he does not want to use this WKS file, because it creates an error:

ERROR: core-image-minimal-1.0-r0 do_image_wic: No kickstart files from WKS_FILES were found: imx8mn-rauc.wks core-image-minimal.wks. Please set WKS_FILE or WKS_FILES appropriately.

I tried different solutions in my local conf.

DISTRO_FEATURES += "rauc" #rauc alone bake successfully

DISTRO_FEATURES_append = " systemd" #test2
VIRTUAL-RUNTIME_init_manager = "systemd" #test2
DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit" #test2
VIRTUAL-RUNTIME_initscripts = ""  #test2

IMAGE_INSTALL_append = " rauc-hawkbit"
SDIMG_ROOTFS_TYPE= "ext4"
#######PREFERRED_PROVIDER_virtual/bootloader="u-boot"  #always gives an u-boot error
WKS_FILE="imx8mn-rauc.wks"
IMAGE_FSTYPES="tar.bz2 ext4 wic.bz2 wic.bmap"

0 Kudos
Reply
2,946 Views
emptyfridge
Contributor III

hi Schnitzel (paniert?)

 

I'm just working on the same topic. Try to introduce RAUC as our new update tool.I've already successful build the bundle. (not yet tested)

Regarding your problem what I can say comes from here: https://github.com/rauc/meta-rauc#id3

Note: If you do not use packagegroup-base, you als need to manually add the rauc package to your systems image recipe:

IMAGE_INSTALL_append = " rauc"

Check if you using packagegroup-base. If so, you do not have to add it to IMAGE_INSTALL. This fixed for me the Problem to build it.

 

But now I have the problem again if I try to build rauc itself. 

Maybe someone has a idea here...

MACHINE=port-core-techshine bitbake u-boot imx-boot rauc

ERROR: u-boot-fw-utils-1_2019.07-r0 do_compile: oe_runmake failed
ERROR: u-boot-fw-utils-1_2019.07-r0 do_compile: Execution of '/home/linderth/workspace/yocto-builder-zeus/poky/build/tmp/work/port_core_techshine-poky-linux/u-boot-fw-utils/1_2019.07-r0/temp/run.do_compile.107812' failed with exit code 1:
make -f ./scripts/Makefile.build obj=scripts/basic
rm -f .tmp_quiet_recordmcount
make -f ./scripts/Makefile.build obj=scripts/kconfig port_core_fspi_defconfig
scripts/kconfig/conf --defconfig=arch/../configs/port_core_fspi_defconfig Kconfig
***
*** Can't find default configuration "arch/../configs/port_core_fspi_defconfig"!
***