Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rpi CM4 not booting #82

Open
tcikel opened this issue Nov 6, 2023 · 1 comment
Open

Rpi CM4 not booting #82

tcikel opened this issue Nov 6, 2023 · 1 comment

Comments

@tcikel
Copy link

tcikel commented Nov 6, 2023

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
Copy link

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.

fboudra added a commit to fboudra/meta-updater that referenced this issue Jan 8, 2024
Update the SRCREV to fix a build failure ('uint8_t' does not name a type)
when using poky master branch.

c90723717 (HEAD -> master, origin/master, origin/HEAD) Merge pull request uptane#105 from uptane/merge-upstream-docs
7dff8e1c2 Fixed coverage and static checks jobs (#1837)
d35e774c0 Fixed libOstree links (#1833)
efd939295 Merge pull request uptane#101 from uptane/fix-shellcheck-complaint
b2ee72ebf Merge pull request uptane#102 from DengkeDu/fix-build-error-v2
05b1af5e0 aktualizr: fix build error 'uint8_t' does not name a type
317f2ee65 (origin/fix-shellcheck-complaint) Remove leftover cruft from load tests.
69dfff995 Fix shellcheck complaint that somehow didn't show up until now.
60e2ffbff Merge pull request uptane#96 from cajun-rat/multibyte-part1
b32833489 Fix test flake by picking a random port
28ed95cd9 Add tests for non-ascii targets
6eacb8ac3 Refactor Implementation of HttpFake and MetaFake out of header file
3b92fb0a8 Decode URLs in HttpFake
c54afdd57 Merge pull request uptane#94 from uptane/docs/OTA-5642/update-targets-options
8afa20446 OTA-5642 update targets upload and add-uploaded options
762741ac6 Merge pull request uptane#93 from uptane/document-targets.json-size-limit
16b0d5005 OTA-6069 document targets.json size limit
0622ad789 Merge pull request uptane#92 from uptane/aktualizr-info-root-version
342d176a9 aktualizr-info: Allow specifying the Root metadata version to output.
86cad5a1d Merge pull request uptane#91 from uptane/docs/upstream
69efebebc OTA-5352 add page about how to add/remove key, set threshold
1420ad5f5 OTA-5352 add page about how to add/remove key, set threshold
f039b6f82 Revert "OTA-5352 add page about how to add/remove key, set threshold"
377aad27e Merge pull request uptane#90 from uptane/add-remove-targets-key
04765058a OTA-5352 add page about how to add/remove key, set threshold
0b4e2e71a Merge pull request uptane#88 from uptane/feat/event-sending-improvements
dc5ede14d Fix clang-tidy complaints.
57bae6892 Send smaller payload or drop if 413
b49975c1b Limit event number sent in a single request
e6df198cf Optionally limit event number to fetch
45d033679 Merge pull request uptane#84 from uptane/feat/improve-error-logging
f6816a1b9 Stop emitting LOG_ERROR messages when verifying local metadata
2d6b8a57f Merge pull request uptane#73 from uptane/tuf-test-vectors-uptane-namespace
8a9595b5b Manually fetch the submodules in github CI.
4fb44d770 Use main instead of master; it's newer.
b4513018e Bump tuf-test-vectors and switch to uptane namespace.
bb385161d Merge pull request uptane#86 from uptane/docs-port
afdf96a59 Add login to dockerhub
28b1da02d Changed not relevant link from Troubleshooting BSP Integration & Rollbacks pages (#1818)
2de3b690f Merge pull request uptane#85 from uptane/fix/macos-build
1a44c2a19 (origin/fix/macos-build) Minor fixes to build correctly on MacOS
67596b0b7 Merge pull request uptane#82 from cajun-rat/bug/storekeys
b7b3b287c Only write ManagedSecondary keys once
7b015f9b3 Rename struct stat to 'stat_buf' from 'st'
1f855fe1f Merge pull request uptane#81 from uptane/fix-U-Boot-url-master
e0286749c changed not relevant url
fa12aaaae Merge pull request uptane#78 from uptane/fix/77/arm-int64_t
7594cd55d Merge pull request uptane#79 from uptane/feature/AddDefaultPKCS11ArmPath
f1002f440 Added default path for pkcs11 for arm.
846edc038 Attempt to fix int conversion error found on ARM.

Signed-off-by: Fathi Boudra <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants