Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Build current and edge releases on Odroid C1

Featured Replies

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.

 

  1. git clone --depth=1 --branch=master https://github.com/armbian/build
  2. cd build
  3. mkdir -p ./output/debs
  4. 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
  5. ./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
  6. 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.

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

  • 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.

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 by Kovács Gábor

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 by Kovács Gábor

  • 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.

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...

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.

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 😕

Yesteday i try build image with new branch main repo. And I get many error. Is to fresh ;)

I back and use master branch 

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?)

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 by Kovács Gábor

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 by Kovács Gábor

  • 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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.