uptane / meta-updater

Yocto layer supporting Uptane updates via aktualizr and OSTree
MIT License
12 stars 17 forks source link

Rpi CM4 not booting #82

Open tcikel opened 8 months ago

tcikel commented 8 months ago

Hello,

I am trying to get the ostree working on raspberry pi cm4. I am using meta-updater and meta-updater-raspberrypi dunfell branches and I have an issue with unable to boot raspberry pi.

` U-Boot 2022.07 (Jan 01 1970 - 00:00:00 +0000) DRAM: 1.9 GiB RPI Compute Module 4 (0xb03140) Core: 210 devices, 16 uclasses, devicetree: board MMC: mmcnr@7e300000: 1, mmc@7e340000: 0 Loading Environment from FAT... OK In: serial Out: serial Err: serial Net: eth0: ethernet@7d580000 PCIe BRCM: link down starting USB... No working controllers found Hit any key to stop autoboot: 0 540 bytes read in 21 ms (24.4 KiB/s) ostree_root=/ostree/boot.1/poky/aac113a8a6bbc802e06f1ed7868b96930db44abe7f5a8d81a048250d6c08716e/0 96 bytes read in 152 ms (0 Bytes/s) 9672160 bytes read in 428 ms (21.6 MiB/s) Wrong Image Format for bootm command ERROR: can't get kernel image! resetting ...

`

I have already applied patch which fixed other booting issue with fit config. My build doesnt generate any specific errors and only warnings are from missing some sota credentials.

When i ran iminfo in Uboot on my fit image I get the message that its unable to read the file but I dont think its corrupted because I tried to build it multiple times and have the same issue everytime. Its seems like there some issue with generating the fit image but I am unable to find the problem.

EstebanSannin commented 8 months ago

Hi @tcikel I have a suggestion for you that may not solve the problem you currently have, but can get you a working version of yocto with OSTree and aktualizr installed. There is a project called Common Torizon fully open source yocto based operating system for many embedded device and already support RPi3 - RPi4 - CM4 and many other boards.

You can start from a binary image where you need just to flash it on your module and use it: https://github.com/commontorizon/meta-common-torizon/releases/tag/v6.3.0-common

If you need to build from source you can use the manifest, download all the met-layers, and build it, there should also be a file available in the repo describing how to build it, anyway, if you have any questions you can ask there, it is a pretty active community.