sgjava Posted January 29, 2023 Posted January 29, 2023 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. 0 Quote
sgjava Posted January 29, 2023 Author Posted January 29, 2023 I answered my own question, hahaha 0 Quote
Kovács Gábor Posted February 21, 2023 Posted February 21, 2023 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 0 Quote
sgjava Posted February 21, 2023 Author Posted February 21, 2023 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. 0 Quote
Kovács Gábor Posted February 21, 2023 Posted February 21, 2023 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. 0 Quote
sgjava Posted February 21, 2023 Author Posted February 21, 2023 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. 0 Quote
Kovács Gábor Posted February 21, 2023 Posted February 21, 2023 (edited) 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, 2023 by Kovács Gábor 0 Quote
Kovács Gábor Posted February 21, 2023 Posted February 21, 2023 Hello, It is not working. I cannot fix this problem with the makefile... any help is appreciated! 0 Quote
sgjava Posted February 21, 2023 Author Posted February 21, 2023 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. 0 Quote
Kovács Gábor Posted February 21, 2023 Posted February 21, 2023 (edited) 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, 2023 by Kovács Gábor 0 Quote
sgjava Posted February 21, 2023 Author Posted February 21, 2023 Right, so look at https://github.com/armbian/build/releases and 23.02.0 looks right. 0 Quote
Kovács Gábor Posted February 21, 2023 Posted February 21, 2023 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 . 0 Quote
sgjava Posted February 21, 2023 Author Posted February 21, 2023 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. 0 Quote
Kovács Gábor Posted February 21, 2023 Posted February 21, 2023 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... 0 Quote
sgjava Posted February 21, 2023 Author Posted February 21, 2023 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. 0 Quote
Kovács Gábor Posted February 22, 2023 Posted February 22, 2023 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. 0 Quote
sgjava Posted February 22, 2023 Author Posted February 22, 2023 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. 0 Quote
torz77 Posted February 22, 2023 Posted February 22, 2023 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 😕 0 Quote
sgjava Posted February 22, 2023 Author Posted February 22, 2023 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 0 Quote
Kovács Gábor Posted February 22, 2023 Posted February 22, 2023 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. 1 Quote
sgjava Posted February 22, 2023 Author Posted February 22, 2023 I think main is now master? I'll do it from scratch, hold on... 0 Quote
sgjava Posted February 22, 2023 Author Posted February 22, 2023 I changed setp 1 git clone --depth=1 --branch=main https://github.com/armbian/build 0 Quote
sgjava Posted February 22, 2023 Author Posted February 22, 2023 OK seeing same error with fresh build dir. Let's try different branch. 0 Quote
Cyryllo Posted February 22, 2023 Posted February 22, 2023 Yesteday i try build image with new branch main repo. And I get many error. Is to fresh I back and use master branch 0 Quote
torz77 Posted February 22, 2023 Posted February 22, 2023 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?) 0 Quote
sgjava Posted February 22, 2023 Author Posted February 22, 2023 Yes, I'm finding main is hosed, trying master now from scratch. 0 Quote
Kovács Gábor Posted February 22, 2023 Posted February 22, 2023 (edited) 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, 2023 by Kovács Gábor 0 Quote
sgjava Posted February 22, 2023 Author Posted February 22, 2023 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. 0 Quote
Kovács Gábor Posted February 22, 2023 Posted February 22, 2023 (edited) 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, 2023 by Kovács Gábor 0 Quote
sgjava Posted February 22, 2023 Author Posted February 22, 2023 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 0 Quote
Recommended Posts
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.