January 29, 20233 yr I figure I'd make this a new post. Thanks to @Markus_ and @Igor for their help. I'm still trying to get wifi module 3 working, but I'm happy to at least have an up to date C1 image. git clone --depth=1 --branch=master https://github.com/armbian/build cd build mkdir -p ./output/debs wget -c -O ./output/debs/linux-u-boot-current-odroidc1_23.02.0-trunk_armhf.deb http://apt.armbian.com/pool/main/l/linux-u-boot-odroidc1-current/linux-u-boot-current-odroidc1_21.02.3_armhf.deb ./compile.sh CLEAN_LEVEL= BOARD=odroidc1 BRANCH=current RELEASE=jammy REPOSITORY_INSTALL= BUILD_MINIMAL=no BUILD_DESKTOP=no KERNEL_CONFIGURE=no KERNEL_ONLY=no COMPRESS_OUTPUTIMAGE=sha,gpg,img ls ./output/images u-boot has not been able to be built for a while now (last supported image was focal and 5.x kernel). Step 4 copies the last good u-boot to ./output/debs which is created in step 3. Change current in ./output/debs/linux-u-boot-current-odroidc1_23.02.0-trunk_armhf.deb to edge to use edge kernel. Also change build number 23.02.0 to current build number. Step 5 does build without prompting. Change BRANCH=current to BRANCH=edge to build edge branch. If all goes well you should see image with step 6. Issues: reboot not working. Headless, no HDMI. No wifi at this point, just wired. Current branch with 5.x kernel corrupts SD. I found this build totally unusable.
February 21, 20233 yr Hello, Just a quick question. Do I read well that the above steps are good to produce a usable image for odroid c1? I am asking because I was looking for something like this for ages... Regards, Gabor
February 21, 20233 yr Author Yes, but only edge build seems to work. I cannot find a wifi adapter that works. The old Odroid wifi module 3 doesn't work any more. I've built a driver from source, but no luck yet. Wired seems to work fine. I believe the dtb and uboot, etc need to be fixed, but no one including Hard Kernel are doing that. I have several C1s I'd like to keep alive for projects.
February 21, 20233 yr Thanks! I have also some c1-s that are still working and also some c0-s. I will give it a try, because I don't need Wifi. Thanks again.
February 21, 20233 yr Author Should work OK for you. I tried current build (5.x kernek) and found it unstable. i.e. the file system would go read only. Edge seems fine.
February 21, 20233 yr Just one more question: In step 4, should I change all occurences of "current" to "edge"? The word "current" is written 3 times in step 4. EDIT: it works by just changing the first occurence. I have got an error: 💥] error! [ Failed to fetch Makefile from 'https://raw.githubusercontent.com/hardkernel/u-boot/e7d4447d551ccba5d60be8b11697aa0ab49086c4 b7b8dc21b64b9494618325c9b4d2fbae728aeed6/Makefile' ] I need to check this... Edited February 21, 20233 yr by Kovács Gábor
February 21, 20233 yr Hello, It is not working. I cannot fix this problem with the makefile... any help is appreciated!
February 21, 20233 yr Author In step 4 you only change linux-u-boot-edge-odroidc1_23.02.0-trunk_armhf.deb. This is what tricks the build into using old deb.
February 21, 20233 yr Thanks, I think I understand that. But what should I put instead of linux-u-boot-edge-odroidc1_23.02.0-trunk_armhf.deb ? I guess I should change 23.02.0 to something else, but what should it be? Edited February 21, 20233 yr by Kovács Gábor
February 21, 20233 yr Author Right, so look at https://github.com/armbian/build/releases and 23.02.0 looks right.
February 21, 20233 yr Thanks, but I think I will give it up. I have this name for the deb: linux-u-boot-edge-odroidc1_23.02.0-trunk_armhf.deb , but still it wants to build u-boot .
February 21, 20233 yr Author I just tried this: wget -c -O ./output/debs/linux-u-boot-edge-odroidc1_23.02.0-trunk_armhf.deb http://apt.armbian.com/pool/main/l/linux-u-boot-odroidc1-current/linux-u-boot-current-odroidc1_21.02.3_armhf.deb sudo ./compile.sh CLEAN_LEVEL= BOARD=odroidc1 BRANCH=edge RELEASE=jammy REPOSITORY_INSTALL= BUILD_MINIMAL=no BUILD_DESKTOP=no KERNEL_CONFIGURE=no KERNEL_ONLY=no COMPRESS_OUTPUTIMAGE=sha,gpg,img and it works fine. Make sure BRANCH=edge as step 5 says.
February 21, 20233 yr Thanks, but still not working. Could you please check one last thing for me? Could you run git log in the build folder? I have been looking around in the commits of the armbian build folder master branch and it seems that there have been changes in around three weeks ago that could cause the problem. But this is just a hint...
February 21, 20233 yr Author I always do a git pull before a build. Just paste your compile line and the tail of the failed build. Just for fun you might want to just do a clean clone in another dir.
February 22, 20233 yr Thanks again! After a complete reinstall of the repo (doing git clone --depth=1 --branch=master https://github.com/armbian/build ) and some "update"-s and "upgrade"-s the compilation worked. That is the good news. The bad news is that the resulting image (more than 2 Gbyte-s big) does not start on the odroid c0. Maybe it is only good for the c1... Thanks again.
February 22, 20233 yr Author I never tried on a C0, only C1 and C1+. Also there's an option to compress the image, but you'd need to decompress to dd xz.
February 22, 20233 yr I have exactly the same issue as Kovács Gábor above. What I have tried: Downloading uboot: git clone --depth 1 https://github.com/armbian/build cd build mkdir ./output/debs wget -c -O ./output/debs/linux-u-boot-current-odroidc1_23.02.0-trunk_armhf.deb http://apt.armbian.com/pool/main/l/linux-u-boot-odroidc1-current/linux-u-boot-current-odroidc1_21.02.3_armhf.deb ./compile.sh CLEAN_LEVEL= BOARD=odroidc1 BRANCH=current RELEASE=jammy REPOSITORY_INSTALL= BUILD_MINIMAL=no BUILD_DESKTOP=no KERNEL_CONFIGURE=no KERNEL_ONLY=no COMPRESS_OUTPUTIMAGE=sha,gpg,img Using REPOSITORY_INSTALL flag: git clone --depth 1 https://github.com/armbian/build cd build ./compile.sh CLEAN_LEVEL= BOARD=odroidc1 BRANCH=current RELEASE=jammy REPOSITORY_INSTALL=u-boot BUILD_MINIMAL=no BUILD_DESKTOP=no KERNEL_CONFIGURE=no KERNEL_ONLY=no COMPRESS_OUTPUTIMAGE=sha,gpg,img Compile has been tried with and without sudo. Have tried cloning into a new location. Always the same issue: [🌱] Fetching SHA1 of branch odroidc-v2011.03 [ https://github.com/hardkernel/u-boot.git ] [🌱] SHA1 of branch odroidc-v2011.03 [ 'e7d4447d551ccba5d60be8b11697aa0ab49086c4 b7b8dc21b64b9494618325c9b4d2fbae728aeed6' ] [💥] error! [ Failed to fetch Makefile from 'https://raw.githubusercontent.com/hardkernel/u-boot/e7d4447d551ccba5d60be8b11697aa0ab49086c4 b7b8dc21b64b9494618325c9b4d2fbae728aeed6/Makefile' ] [💥] Exiting with error 43 [ at /mnt/Data/git/build/lib/functions/logging/traps.sh:1 exit_with_error() --> lib/functions/logging/traps.sh:1 obtain_makefile_body_from_git() --> lib/functions/general/git-ref2info.sh:84 memoized_git_ref_to_info() --> lib/functions/general/git-ref2info.sh:127 run_memoized() --> lib/functions/general/memoize-cached.sh:52 artifact_uboot_prepare_version() --> lib/functions/artifacts/artifact-uboot.sh:26 artifact_prepare_version() --> lib/functions/artifacts/artifacts-obtain.sh:24 do_with_logging() --> lib/functions/logging/section-logging.sh:72 obtain_complete_artifact() --> lib/functions/artifacts/artifacts-obtain.sh:76 build_artifact_for_image() --> lib/functions/artifacts/artifacts-obtain.sh:209 main_default_build_packages() --> lib/functions/main/build-packages.sh:49 full_build_packages_rootfs_and_image() --> lib/functions/main/default-build.sh:4 do_with_default_build() --> lib/functions/main/default-build.sh:17 cli_standard_build_run() --> lib/functions/cli/cli-build.sh:17 armbian_cli_run_command() --> lib/functions/cli/utils-cli.sh:126 cli_entrypoint() --> lib/functions/cli/entrypoint.sh:164 main() --> compile.sh:52 ] [💥] Cleaning up [ please wait for cleanups to finish ] Any insights you may have would be appreciated, otherwise I'll just roll with focal for now. Either way, thanks for posting this. Good to know people are still trying to get life out of the C1, even if HardKernal basically decided to stop supporting it pretty much on release 😕
February 22, 20233 yr Author OK, I see: [ o.k. ] Checking git sources [ u-boot-odroidc1 odroidc-v2011.03 ] [ .... ] Up to date as yours is trying to download it. Check for ./output/debs/linux-u-boot-current-odroidc1_23.02.0-trunk_armhf.deb
February 22, 20233 yr I am not a git expert, but apparently what partially solved the compilation error was that I done this git clone --depth=1 --branch=master https://github.com/armbian/build instead of this: git clone --depth 1 https://github.com/armbian/build But this is just a hint.
February 22, 20233 yr Author I changed setp 1 git clone --depth=1 --branch=main https://github.com/armbian/build
February 22, 20233 yr Yesteday i try build image with new branch main repo. And I get many error. Is to fresh I back and use master branch
February 22, 20233 yr Ok, I switched to the master branch, and it is definitely getting further along now (didn't even reach dependency download before). I have to go out now, but will leave it running and report back later tonight/tomorrow. Does this still have the restart bug (i.e. needing a power cycle?)
February 22, 20233 yr Hello sgjava, In case you succeed with the compilation, would you be so kind to share the image with me? I would like to test your image on my odroid c0-s, perhaps yours would work on my machines. Edited February 22, 20233 yr by Kovács Gábor
February 22, 20233 yr Author OK guys, you need to use the master branch. I started with a blank slate and updated the original post. @Kovács Gábor did you use edge on a C1? If so, did you get the blue led heartbeat? I'll try now with new edge image.
February 22, 20233 yr Hello sgjava, I used edge, the blue led blinked, but I have got nothing on the hdmi output neither on ssh (with an USB Ethernet adapter because it was a C0 not a C0). Edited February 22, 20233 yr by Kovács Gábor
February 22, 20233 yr Author This is the image I made today with master branch Armbian_23.02.0-trunk_Odroidc1_jammy_edge_6.1.13.img. Fires up as normal using Ethernet port, no hdmi, reboot or shutdown. I'll update the original post. After boot: Linux odroidc1 6.1.13-meson #trunk SMP Wed Feb 22 20:20:05 UTC 2023 armv7l armv7l armv7l GNU/Linu
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.