Jump to content

Build current and edge releases on Odroid C1


sgjava

Recommended Posts

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.
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 😕

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines