-
Notifications
You must be signed in to change notification settings - Fork 5
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
Support odroid C2 for resin build #53
Comments
Ah, I found the issue for the AUFS support, needed to add the 4.14 key/SHA to the branch dict in layers/meta-resin/meta-resin-common/classes/kernel-resin.bbclass |
Well the build 'passed', but did not produce a |
Ah, Also found that I had no entry in So the build is getting hung up on finding the boot.ini and the uimage dtb file. Not sure why those weren't generated yet. |
Hi, Maybe first wait a bit until this PR gets merged and then you can continue with your work |
I have the project building using the Rocko and Master branch of https://github.com/akuster/meta-odroid (I had trouble resolving issues with u-boot on Pyro due to the use of uboot provided by hardkernel uboot, and later multiple provides) The project builds cleanly, but I don't see any network or HDMI output when launched. |
Yes, you need to hook up to the serial port and check if at least u-boot is starting. Do you see anything on serial? |
Yeah, seeing:
|
I'm assuming at this point that my intitrd doesn't match the boot script. |
hmmm... tried adding -O ^64bit to the mkfs.ext4 command for the boot2 in resin os as that seemed to be an issue for some, but no go on that. |
hmm... tried editing the uboot bappend to use -A arm64 with it's preappend mkimage command, but that didn't seem to do anything. :/ |
My boot.scr looks like this:
|
So I think I'm starting to understand the boot process a little better... uboot loads from SD partition 0 the device tree and kernel image. Looks like uboot can find and read both, but there must be something wrong with one/both of the images? Not sure what I need to look at from here. |
Can you paste the output of
and see what you have in the boot partition for starters? |
Everything seems to be present.
|
Just tried the 2018.01 uboot as well, same results. |
Hmmm... looks like booti simply may not be supported. Manually running:
Starts to load the kernel, albeit with a kernel panic:
Looks like I may need to add Overlay support to the kernel. |
From the above it looks like manual doing the booti command works. So you need to change bootscr accordingly.
instead. By doing that, your C2 will use aufs as a balena storage driver. If you want to have it using overlayfs, also add a line there like this (your Odroid C2 needs a kernel version 4.x):
|
looks like there may be more issues with meta-resin:
|
Is this from a new build or from the existing one you had started before? |
This is a completely new build. Rolling back to 585641b seems to let it build again, so I don't think it is environment. |
Do you know of any way to add aditional logging to the balena runtime? Looks like there are many places that could return the runtime error in the balena subsystem. |
Just tried the 997c0cad2ab514ad0934d03a202df8b14d9d2708 version of meta-resin and that was able to compile, but didn't get past the overlay error. |
Can you paste the entire diff you use? I want to give it a go on my side too |
https://github.com/rbray89/resin-odroid Note that I'm getting the kernel panic runtime error, not the build error. |
If I move meta-resin to the one mainline resin-odroid uses, I get an odd error in linux-stable:
|
Hmmm... seems that moving back to the version of meta-resin I was previously on isn't working. Not sure what changed, but it just can't seem to find the cross compiler now. |
Fixed the gcc issue... but the overlay runtime issue shows up on meta-resin @585641b, while I still seem to get the docker error on master of meta-resin. Still trying other versions of meta-resin. |
Let me try it on my side too when I have some time and will get back to you |
No useful update. Still panicking at the same spot with the latest build. I double-checked the kernel config, CONFIG_OVERLAY_FS=y is set. |
I've done some basic work in trying to get the odroid C2 booting resin, however I'm not terribly familiar with the resin build system. Using the master branch of resin-odroid, and simply adding the *.coffee files, I get an issue with recursive dependencies shortly after initializing tasks.
If I pull master of meta-odroid, I can get rid of the recursion error by adding
IMAGE_FSTYPES_remove_odroid-c2 = "sdcard"
to layers/meta-resin-odroid/recipes-core/images/resin-image-initramfs.bbappend, however when doing this, I will later get an issue with being unable to patch the kernel for AUFS support.
Any help or aid in getting this to build and run would be greatly appreciated.
The text was updated successfully, but these errors were encountered: