Armbian for Odroid C4 - Focal 20.04

Post Reply
User avatar
igorpec
Posts: 627
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 26 times
Been thanked: 78 times
Contact:

Armbian for Odroid C4 - Focal 20.04

Post by igorpec » Wed Apr 29, 2020 5:22 am

What is Armbian?

Simple. Light. Optimized. Fast. Secure. Supported. Open.
Armbian is a base operating system platform for single board computers that other projects can trust to build upon.

- Lightweight Debian or Ubuntu based linux distribution specialized for ARM development boards,
- Each system is compiled, assembled and optimized by Armbian Build Tools,
- It has a vibrant support community.



DOWNLOAD



Armbian Linux kernel 5.6.y with U-boot 2020.04 and stock 4.9.y LTS Kernel / U-boot 2015.01 from Hardkernel.
Ubuntu Focal 20.04, Ubuntu Bionic, Debian Buster, Debian Bullseye in minimal, server or desktop variant.


( Getting started )
Last edited by igorpec on Thu Jun 04, 2020 12:36 am, edited 4 times in total.
These users thanked the author igorpec for the post (total 7):
rooted (Wed Apr 29, 2020 10:12 am) • Luke.go (Wed Apr 29, 2020 11:08 am) • tobetter (Wed Apr 29, 2020 2:48 pm) • willmore (Thu Apr 30, 2020 10:45 pm) • joerg (Fri May 01, 2020 3:02 pm) • domih (Sat May 02, 2020 3:59 am) • odroidn2user (Sat May 02, 2020 3:11 pm)
ARMBIAN
Linux for ARM development boards

Download latest images for Odroids | Build them from sources | Donate to support development

User avatar
igorpec
Posts: 627
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 26 times
Been thanked: 78 times
Contact:

Re: Armbian for Odroid C4

Post by igorpec » Sat May 02, 2020 7:37 am

- updated LTS images to 5.4.36
- updated nightly images to 5.6.8

Removed wrongly set max speed limit
ARMBIAN
Linux for ARM development boards

Download latest images for Odroids | Build them from sources | Donate to support development

User avatar
igorpec
Posts: 627
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 26 times
Been thanked: 78 times
Contact:

Re: Armbian for Odroid C4

Post by igorpec » Mon May 04, 2020 8:25 pm

Received in the lab!
P1170729.JPG
P1170729.JPG (292.28 KiB) Viewed 3569 times
c4-login.png
c4-login.png (90.8 KiB) Viewed 3569 times
ARMBIAN
Linux for ARM development boards

Download latest images for Odroids | Build them from sources | Donate to support development

User avatar
igorpec
Posts: 627
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 26 times
Been thanked: 78 times
Contact:

Re: Armbian for Odroid C4

Post by igorpec » Wed May 06, 2020 9:29 pm

How to build Ubuntu 20.04 for Odroid C4 from sources?

... or latest Debian if you prefer that.

You need x86 computer with:

Ubuntu Bionic / Focal based environment:

Code: Select all

git clone https://github.com/armbian/build
cd build
./compile.sh BOARD="odroidc4" EXPERT="yes"
or any x86 Linux to compile with help of Docker.

For Debian based distributions Docker is installed automatically, elsewhere (Fedora, Arch, ....) you need to install Docker first.

Code: Select all

git clone https://github.com/armbian/build
cd build
./compile.sh docker BOARD="odroidc4" EXPERT="yes"
Check @BadPritt video to see how simple this process is:



For more info about build options, check developers guide:
https://docs.armbian.com/Developer-Guid ... eparation/
ARMBIAN
Linux for ARM development boards

Download latest images for Odroids | Build them from sources | Donate to support development

User avatar
igorpec
Posts: 627
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 26 times
Been thanked: 78 times
Contact:

Re: Armbian for Odroid C4

Post by igorpec » Fri May 08, 2020 1:29 am

Fixed network troubles on both kernels & images has been updated.
These users thanked the author igorpec for the post:
joerg (Fri May 08, 2020 1:38 am)
ARMBIAN
Linux for ARM development boards

Download latest images for Odroids | Build them from sources | Donate to support development

User avatar
igorpec
Posts: 627
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 26 times
Been thanked: 78 times
Contact:

Re: Armbian for Odroid C4

Post by igorpec » Sat May 09, 2020 4:03 am

Fixed problem with update which lead to the broken system.
ARMBIAN
Linux for ARM development boards

Download latest images for Odroids | Build them from sources | Donate to support development

User avatar
igorpec
Posts: 627
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 26 times
Been thanked: 78 times
Contact:

Re: Armbian for Odroid C4

Post by igorpec » Mon May 25, 2020 7:13 am

c4-legacy.png
c4-legacy.png (50.72 KiB) Viewed 2704 times
- added (improved) stock u-boot / kernel images in Ubuntu Focal 20.04 and Debian Buster variant (SERVER or DESKTOP)
- mainline kernel was moved to 5.6.y

https://www.armbian.com/odroid-c4/
ARMBIAN
Linux for ARM development boards

Download latest images for Odroids | Build them from sources | Donate to support development

lda4526
Posts: 10
Joined: Mon May 25, 2020 11:17 pm
languages_spoken: english
ODROIDs: 2 XU4s, 3 C2s, N2, C4
Has thanked: 0
Been thanked: 0
Contact:

Re: Armbian for Odroid C4

Post by lda4526 » Mon May 25, 2020 11:19 pm

igorpec wrote:
Mon May 25, 2020 7:13 am
c4-legacy.png

- added (improved) stock u-boot / kernel images in Ubuntu Focal 20.04 and Debian Buster variant (SERVER or DESKTOP)
- mainline kernel was moved to 5.6.y

https://www.armbian.com/odroid-c4/

I appreciate all the work you do! Since HW acceleration is working in Wayland, is there any plan to release a Gnome/KDE desktop image?

It would be huge to have something like this in my opinion.

User avatar
igorpec
Posts: 627
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 26 times
Been thanked: 78 times
Contact:

Re: Armbian for Odroid C4

Post by igorpec » Tue May 26, 2020 12:14 am

lda4526 wrote:
Mon May 25, 2020 11:19 pm
igorpec wrote:
Mon May 25, 2020 7:13 am
c4-legacy.png

- added (improved) stock u-boot / kernel images in Ubuntu Focal 20.04 and Debian Buster variant (SERVER or DESKTOP)
- mainline kernel was moved to 5.6.y

https://www.armbian.com/odroid-c4/

I appreciate all the work you do! Since HW acceleration is working in Wayland, is there any plan to release a Gnome/KDE desktop image?

It would be huge to have something like this in my opinion.
Thank you!

Most of the Armbian staff works and live in a kernel space, then user space, CLI, server things and then we change DE, wallpapers and look ... Our primary concern is that stuff works as one would expect, second that it looks nice, thirds that there are more desktop options. Others usually have the opposite agenda ;)

I was playing around with (stock) Gnome and it really works quite well, also on less powerful machines like Allwinner A64/H5. Currently, there is little to no development to provide another desktop beside XFCE, but there are is technical ground to start ... This is an ongoing idea to establish a team, responsible for desktop development. But nevertheless ... its possible to just reuse stock Gnome without any rework / rebranding. It works. If you are a fan of desktop tweaking and have time, you are more then welcome to help, to do something about.
ARMBIAN
Linux for ARM development boards

Download latest images for Odroids | Build them from sources | Donate to support development

lda4526
Posts: 10
Joined: Mon May 25, 2020 11:17 pm
languages_spoken: english
ODROIDs: 2 XU4s, 3 C2s, N2, C4
Has thanked: 0
Been thanked: 0
Contact:

Re: Armbian for Odroid C4

Post by lda4526 » Tue May 26, 2020 10:34 am

igorpec wrote:
Tue May 26, 2020 12:14 am
lda4526 wrote:
Mon May 25, 2020 11:19 pm
igorpec wrote:
Mon May 25, 2020 7:13 am
c4-legacy.png

- added (improved) stock u-boot / kernel images in Ubuntu Focal 20.04 and Debian Buster variant (SERVER or DESKTOP)
- mainline kernel was moved to 5.6.y

https://www.armbian.com/odroid-c4/

I appreciate all the work you do! Since HW acceleration is working in Wayland, is there any plan to release a Gnome/KDE desktop image?

It would be huge to have something like this in my opinion.
Thank you!

Most of the Armbian staff works and live in a kernel space, then user space, CLI, server things and then we change DE, wallpapers and look ... Our primary concern is that stuff works as one would expect, second that it looks nice, thirds that there are more desktop options. Others usually have the opposite agenda ;)

I was playing around with (stock) Gnome and it really works quite well, also on less powerful machines like Allwinner A64/H5. Currently, there is little to no development to provide another desktop beside XFCE, but there are is technical ground to start ... This is an ongoing idea to establish a team, responsible for desktop development. But nevertheless ... its possible to just reuse stock Gnome without any rework / rebranding. It works. If you are a fan of desktop tweaking and have time, you are more then welcome to help, to do something about.
Thank you for the reply! When you say focusing on making stuff just works, are you optimistic that open source drivers will eventually allow for HW acceleration in X11 soon?

I really wish I could help but I am not really a dev unfortunately. I would definitely donate!

I have always been a mate/xfce guy myself but was tempted to go KDE/Gnome strictly because of HW acceleration.

User avatar
einstein
Posts: 38
Joined: Sat Apr 13, 2013 11:29 pm
languages_spoken: english, german
ODROIDs: C4, N2, XU4, X2, GO + WeatherBoard 2
Location: Germany
Has thanked: 0
Been thanked: 0
Contact:

Re: Armbian for Odroid C4 - Focal 20.04

Post by einstein » Sat May 30, 2020 11:06 pm

I just install Armbian Focal Server (Kernel 5.6) on my new C4 on eMMC. The first boot worked fine and I was able to complete the setup procedure. Thereafter I did the standard
sudo apt update
sudo apt upgrade
sudo reboot

Unfortunately the reboot did not work. Red LED was on, blue LED stayed off.

I recognized during the update, that it actually downgraded the kernel from 5.6 to 5.4.

What did I do wrong?

Detlev

User avatar
igorpec
Posts: 627
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 26 times
Been thanked: 78 times
Contact:

Re: Armbian for Odroid C4 - Focal 20.04

Post by igorpec » Sun May 31, 2020 7:05 am

einstein wrote:
Sat May 30, 2020 11:06 pm
What did I do wrong?
Forget to seek for that information at the place where you download this file. There is a text
Kernel 5.6.y + modern u-boot

apt update & apt upgrade might leads to the broken system.
on the download pages. Modern kernel and u-boot has this problem ... use stock 4.9.y kernel based images (1st choice) until this is not sorted out. Or best - help sorting out. Modern kernel is very fresh and its not yet on the production levels. New images and updates are coming out today / tomorrow ...
ARMBIAN
Linux for ARM development boards

Download latest images for Odroids | Build them from sources | Donate to support development

User avatar
igorpec
Posts: 627
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 26 times
Been thanked: 78 times
Contact:

Re: Armbian for Odroid C4 - Focal 20.04

Post by igorpec » Thu Jun 04, 2020 12:34 am

einstein wrote:
Sat May 30, 2020 11:06 pm
I just install Armbian Focal Server (Kernel 5.6) on my new C4 on eMMC. The first boot worked fine and I was able to complete the setup procedure. Thereafter I did the standard
sudo apt update
sudo apt upgrade
sudo reboot

Unfortunately the reboot did not work. Red LED was on, blue LED stayed off.

I recognized during the update, that it actually downgraded the kernel from 5.6 to 5.4.

What did I do wrong?
This problems was fixed - it doesn't corrupt the boot image anymore, but one boot related problem remains - with modern kernel/u-boot reboot usually hangs and you need to power cycle.
ARMBIAN
Linux for ARM development boards

Download latest images for Odroids | Build them from sources | Donate to support development

User avatar
igorpec
Posts: 627
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 26 times
Been thanked: 78 times
Contact:

Re: Armbian for Odroid C4 - Focal 20.04

Post by igorpec » Thu Jun 04, 2020 6:47 am

Armbian 20.05 Kagu

What's new:
https://www.armbian.com/newsflash/armbian-20-05-kagu/

Odroid C4 images
Focal / Buster / Bionic / Stretch
ARMBIAN
Linux for ARM development boards

Download latest images for Odroids | Build them from sources | Donate to support development

lda4526
Posts: 10
Joined: Mon May 25, 2020 11:17 pm
languages_spoken: english
ODROIDs: 2 XU4s, 3 C2s, N2, C4
Has thanked: 0
Been thanked: 0
Contact:

Re: Armbian for Odroid C4 - Focal 20.04

Post by lda4526 » Fri Jun 05, 2020 10:55 am

Just out of curiosity are you no longer using 7z? I was a big fan of the fact that you always included a sig file in the 7z archive and that you actually signed the img file using gpg

User avatar
igorpec
Posts: 627
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 26 times
Been thanked: 78 times
Contact:

Re: Armbian for Odroid C4 - Focal 20.04

Post by igorpec » Fri Jun 05, 2020 3:48 pm

lda4526 wrote:
Fri Jun 05, 2020 10:55 am
Just out of curiosity are you no longer using 7z? I was a big fan of the fact that you always included a sig file in the 7z archive and that you actually signed the img file using gpg
For official releases, no, but the build system supports this way of packing in case some 3rd party distro is using our build tool. We decided (sadly can't find URL to a discussion right now) to go away - main purpose is to simplify SD/eMMC card burn process. Sig and sha files are in a separate files and now the compressed image is signed. IMO its more standard way and nothing has been lost in term of security.
ARMBIAN
Linux for ARM development boards

Download latest images for Odroids | Build them from sources | Donate to support development

lda4526
Posts: 10
Joined: Mon May 25, 2020 11:17 pm
languages_spoken: english
ODROIDs: 2 XU4s, 3 C2s, N2, C4
Has thanked: 0
Been thanked: 0
Contact:

Re: Armbian for Odroid C4 - Focal 20.04

Post by lda4526 » Sat Jun 06, 2020 3:38 am

I know you said that you will not be focusing on Gnome for now, but it looks like Alyssa has made some progress for the GPU https://www.collabora.com/news-and-blog ... ics-blobs/

Do you include upstream Mesa by any chance if a user were to try and install Gnome from scratch?

User avatar
igorpec
Posts: 627
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 26 times
Been thanked: 78 times
Contact:

Re: Armbian for Odroid C4 - Focal 20.04

Post by igorpec » Sat Jun 06, 2020 4:55 pm

lda4526 wrote:
Sat Jun 06, 2020 3:38 am
I know you said that you will not be focusing on Gnome for now, but it looks like Alyssa has made some progress for the GPU https://www.collabora.com/news-and-blog ... ics-blobs/

Do you include upstream Mesa by any chance if a user were to try and install Gnome from scratch?
I did test install of Gnome3 with stock mesa lib but only on Utgard arch. Don't know if you need more recent one for bifrost - just try. We are low on desktop development so any help in this regard is welcome! Nothing much, perhaps just making and maintaining own clean snapstoreless Gnome3 DE, that we don't need to use stock bulky branded Ubuntu desktop.
ARMBIAN
Linux for ARM development boards

Download latest images for Odroids | Build them from sources | Donate to support development

User avatar
igorpec
Posts: 627
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 26 times
Been thanked: 78 times
Contact:

Re: Armbian for Odroid C4 - Focal 20.04

Post by igorpec » Mon Jun 08, 2020 3:02 pm

It seems we nailed down the remaining nasty bug "Reboot hangs on boot loader". In case someone still can reproduce it, please speak up here or here and describe your hw setup (especially we are interested in your eMMC/SD card type / brand)
ARMBIAN
Linux for ARM development boards

Download latest images for Odroids | Build them from sources | Donate to support development

fvolk
Posts: 405
Joined: Sun Jun 05, 2016 11:04 pm
languages_spoken: english
ODROIDs: C2, C4, H2
Has thanked: 0
Been thanked: 26 times
Contact:

Re: Armbian for Odroid C4 - Focal 20.04

Post by fvolk » Thu Jun 11, 2020 3:56 am

I flashed 1572864000 Armbian_20.05.2_Odroidc4_focal_current_5.6.15.img
Every one of my C4s boots with mac address 00:50:43:84:fb:2f instead of expected Odroid mac of 00:1e:06:xx:yy:zz
Bug?

User avatar
igorpec
Posts: 627
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 26 times
Been thanked: 78 times
Contact:

Re: Armbian for Odroid C4 - Focal 20.04

Post by igorpec » Thu Jun 11, 2020 3:58 am

fvolk wrote:
Thu Jun 11, 2020 3:56 am
I flashed 1572864000 Armbian_20.05.2_Odroidc4_focal_current_5.6.15.img
Every one of my C4s boots with mac address 00:50:43:84:fb:2f instead of expected Odroid mac of 00:1e:06:xx:yy:zz
Bug?
Linux without bugs? Not possible ;) I haven't notice this problem ... you are saying MAC is fixed, but not the same as on stock kernel? Or switching random?
ARMBIAN
Linux for ARM development boards

Download latest images for Odroids | Build them from sources | Donate to support development

fvolk
Posts: 405
Joined: Sun Jun 05, 2016 11:04 pm
languages_spoken: english
ODROIDs: C2, C4, H2
Has thanked: 0
Been thanked: 26 times
Contact:

Re: Armbian for Odroid C4 - Focal 20.04

Post by fvolk » Thu Jun 11, 2020 4:08 am

With stock Odroid 4.9 the eth0 mac is Odroid's usual 00:1e:06:xx:yy:zz format.
I flashed above's image of Armbian and booted the same microSD on different C4s one after another - and all got the same IP from DHCP - then I figured that's because they claim the same mac.... this does not look normal? :-)

User avatar
odroid
Site Admin
Posts: 34562
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 809 times
Been thanked: 700 times
Contact:

Re: Armbian for Odroid C4 - Focal 20.04

Post by odroid » Thu Jun 11, 2020 10:09 am

I think Armbian OS images ignore the hardware( our pre-programmed NV memory) MAC address.

User avatar
joerg
Posts: 1109
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 50 times
Been thanked: 113 times
Contact:

Re: Armbian for Odroid C4 - Focal 20.04

Post by joerg » Thu Jun 11, 2020 2:22 pm

That‘s probably something, that need to be ported to mainline kernel.

billylo
Posts: 6
Joined: Sun Jun 28, 2015 7:47 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Armbian for Odroid C4 - Focal 20.04

Post by billylo » Sat Jun 13, 2020 7:16 am

I use the 4.9 legacy image with SD card. It seems that the kernel only supports cpu max up to 1800000.

User avatar
igorpec
Posts: 627
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 26 times
Been thanked: 78 times
Contact:

Re: Armbian for Odroid C4 - Focal 20.04

Post by igorpec » Sat Jun 13, 2020 6:24 pm

billylo wrote:
Sat Jun 13, 2020 7:16 am
I use the 4.9 legacy image with SD card. It seems that the kernel only supports cpu max up to 1800000.
Aren't stock images also limited to 1.8?
ARMBIAN
Linux for ARM development boards

Download latest images for Odroids | Build them from sources | Donate to support development

User avatar
joerg
Posts: 1109
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 50 times
Been thanked: 113 times
Contact:

Re: Armbian for Odroid C4 - Focal 20.04

Post by joerg » Sat Jun 13, 2020 7:58 pm

Hello @igorpec, when I tried Armbian I2C with my C4 I saw that the I2C overlays are not correct, have address of C2:

Code: Select all

/ {
    compatible = "amlogic,meson-gxbb";
    fragment@0 {
        target-path = "/aliases";
        __overlay__ {
            i2cA = "/soc/bus@c1100000/i2c@8500";
        };
    };
    fragment@1 {
        target-path = "/soc/bus@c1100000/i2c@8500";
        __overlay__ {
            status = "okay";
        };
    };
};
Need to be like this:

Code: Select all


&i2c2 {
	status = "okay";

	/*
	 * 40 Pin Header : SDA(GPIOX.17->3 Pin)
	 *		   SCL(GPIOX.18->5 Pin)
	 */
	pinctrl-names = "default";
	pinctrl-0 = <&i2c2_master_pins1>;

	/* default 400k */
	clock-frequency = <400000>;
};

&i2c3 {
	/* default i2c clock-frequency is 100Khz */
	status = "okay";

	/*
	 * 40 Pin Header : SDA(GPIOA.14->27 Pin)
	 *		   SCL(GPIOA.15->28 Pin)
	 */
	pinctrl-names = "default";
	pinctrl-0 = <&i2c3_master_pins2>;

	/* default 100k */
	clock-frequency = <100000>;
};

&periphs_pinctrl {
	i2c2_master_pins1: i2c2-master-pins1 {
		mux {
			groups = "i2c2_sda_x",
				"i2c2_sck_x";
			function = "i2c2";
			bias-pull-up;
			drive-strength-microamp = <4000>;
		};
	};

	i2c3_master_pins2: i2c3-master-pins2 {
		mux {
			groups = "i2c3_sda_a",
				"i2c3_sck_a";
			function = "i2c3";
			bias-pull-up;
			drive-strength-microamp = <4000>;
		};
	};
};

Together with a patch from tony.hong for the pinctrl-meson:
viewtopic.php?f=202&t=39110#p295486

fvolk
Posts: 405
Joined: Sun Jun 05, 2016 11:04 pm
languages_spoken: english
ODROIDs: C2, C4, H2
Has thanked: 0
Been thanked: 26 times
Contact:

Re: Armbian for Odroid C4 - Focal 20.04

Post by fvolk » Wed Jun 17, 2020 5:37 am

fvolk wrote:
Thu Jun 11, 2020 4:08 am
on different C4s one after another - and all got the same IP from DHCP - then I figured that's because they claim the same mac....
I hard-wired a
setenv ethaddr "00:1e:06:xx:yy:zz"
into the boot script(s) as a temporary work-around,
with original mac address(es) obtained from Odroid's image,
so that the IP addresses received from DHCP are stable.

May I ask, is the Armbian Uboot binary available somewhere in a package, like Odroid's? (https://github.com/hardkernel/u-boot/tags)
That would accelerate setting up new card...

User avatar
tobetter
Posts: 5206
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 175 times
Been thanked: 543 times
Contact:

Re: Armbian for Odroid C4 - Focal 20.04

Post by tobetter » Wed Jun 17, 2020 7:17 am

fvolk wrote:
Wed Jun 17, 2020 5:37 am
fvolk wrote:
Thu Jun 11, 2020 4:08 am
on different C4s one after another - and all got the same IP from DHCP - then I figured that's because they claim the same mac....
I hard-wired a
setenv ethaddr "00:1e:06:xx:yy:zz"
into the boot script(s) as a temporary work-around,
with original mac address(es) obtained from Odroid's image,
so that the IP addresses received from DHCP are stable.

May I ask, is the Armbian Uboot binary available somewhere in a package, like Odroid's? (https://github.com/hardkernel/u-boot/tags)
That would accelerate setting up new card...
I had replied a couple of times that MAC address issue can be resolved by using HK stock U-boot, at the same time this will cause the boot failure with 5.x kernel as you exprienced. So, again, please share post your boot.ini you are using in your Armbian image.

fvolk
Posts: 405
Joined: Sun Jun 05, 2016 11:04 pm
languages_spoken: english
ODROIDs: C2, C4, H2
Has thanked: 0
Been thanked: 26 times
Contact:

Re: Armbian for Odroid C4 - Focal 20.04

Post by fvolk » Wed Jun 17, 2020 6:31 pm

tobetter wrote:
Wed Jun 17, 2020 7:17 am
So, again, please share post your boot.ini you are using in your Armbian image.
I have already provided a link to my boot script two times in this forum. For your convenience, instead of solely the link (viewtopic.php?f=135&t=22717&start=1100#p292685) another full copy below that I now use with Armbian - note the only changed lines are the dtb and now also the mac address. (the parts with xx are redacted, of course)

Code: Select all

setenv kernel_addr 11000000
setenv fdt_addr 1000000
#setenv fdtfile c2/meson-gxbb-odroidc2.dtb
setenv fdtfile c2/meson-sm1-odroid-c4.dtb
setenv bootfile c2/Image
setenv autoload no
setenv ethaddr "00:1e:06:xx:xx:xx"
dhcp
setenv serverip 192.168.1.xx
tftp ${kernel_addr} ${bootfile}
tftp ${fdt_addr} ${fdtfile}
setenv bootargs init=/mydisklessinit ip=dhcp root=/dev/nfs nfsroot=192.168.1.xx:/c2,tcp,vers=4.1 no_console_suspend fsck.fix=yes
booti ${kernel_addr} - ${fdt_addr}
boot

User avatar
tobetter
Posts: 5206
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 175 times
Been thanked: 543 times
Contact:

Re: Armbian for Odroid C4 - Focal 20.04

Post by tobetter » Wed Jun 17, 2020 6:44 pm

fvolk wrote:
Wed Jun 17, 2020 6:31 pm
tobetter wrote:
Wed Jun 17, 2020 7:17 am
So, again, please share post your boot.ini you are using in your Armbian image.
I have already provided a link to my boot script two times in this forum. For your convenience, instead of solely the link (viewtopic.php?f=135&t=22717&start=1100#p292685) another full copy below that I now use with Armbian - note the only changed lines are the dtb and now also the mac address. (the parts with xx are redacted, of course)

Code: Select all

setenv kernel_addr 11000000
setenv fdt_addr 1000000
#setenv fdtfile c2/meson-gxbb-odroidc2.dtb
setenv fdtfile c2/meson-sm1-odroid-c4.dtb
setenv bootfile c2/Image
setenv autoload no
setenv ethaddr "00:1e:06:xx:xx:xx"
dhcp
setenv serverip 192.168.1.xx
tftp ${kernel_addr} ${bootfile}
tftp ${fdt_addr} ${fdtfile}
setenv bootargs init=/mydisklessinit ip=dhcp root=/dev/nfs nfsroot=192.168.1.xx:/c2,tcp,vers=4.1 no_console_suspend fsck.fix=yes
booti ${kernel_addr} - ${fdt_addr}
boot
I've seen the links but there were no boot.ini I can refer to correctly.
With the Hardkernel U-boot, try after changing the value fdt_addr from 1000000 to 0x20000000.

fvolk
Posts: 405
Joined: Sun Jun 05, 2016 11:04 pm
languages_spoken: english
ODROIDs: C2, C4, H2
Has thanked: 0
Been thanked: 26 times
Contact:

Re: Armbian for Odroid C4 - Focal 20.04

Post by fvolk » Wed Jun 17, 2020 7:25 pm

tobetter wrote:
Wed Jun 17, 2020 6:44 pm
With the Hardkernel U-boot, try after changing the value fdt_addr from 1000000 to 0x20000000.
changed to

Code: Select all

setenv kernel_addr 11000000
setenv fdt_addr  0x20000000
network boot works with Odroid U-Boot :-)
What are the optimal/correct values for this addr?

User avatar
tobetter
Posts: 5206
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 175 times
Been thanked: 543 times
Contact:

Re: Armbian for Odroid C4 - Focal 20.04

Post by tobetter » Wed Jun 17, 2020 7:35 pm

fvolk wrote:
Wed Jun 17, 2020 7:25 pm
tobetter wrote:
Wed Jun 17, 2020 6:44 pm
With the Hardkernel U-boot, try after changing the value fdt_addr from 1000000 to 0x20000000.
changed to

Code: Select all

setenv kernel_addr 11000000
setenv fdt_addr  0x20000000
network boot works with Odroid U-Boot :-)
What are the optimal/correct values for this addr?
For the U-boot from Hardkernel which version is old (v2015.01), as long as it's not lower than 0x01080000 (kernel execute address) and not overlapped with other booting images, it would be fine. My OS images also use the same address 0x20000000, you can try another address for sure. :) So...the problem is solved?

fvolk
Posts: 405
Joined: Sun Jun 05, 2016 11:04 pm
languages_spoken: english
ODROIDs: C2, C4, H2
Has thanked: 0
Been thanked: 26 times
Contact:

Re: Armbian for Odroid C4 - Focal 20.04

Post by fvolk » Wed Jun 17, 2020 8:00 pm

So far it appears to work, yes, I can use my C4s now :-)
I don't know how this stuff works in detail, I use whatever address you tell me and I hope it doesn't waste any memory with one load address vs. another....

jayjr1105
Posts: 18
Joined: Sun Feb 16, 2020 8:03 am
languages_spoken: english
ODROIDs: Odroid Go, Odroid Go Advance, Odroid C4
Has thanked: 0
Been thanked: 3 times
Contact:

Re: Armbian for Odroid C4 - Focal 20.04

Post by jayjr1105 » Fri Jun 19, 2020 7:28 am

How is this vs the stock Ubuntu Mate?

User avatar
igorpec
Posts: 627
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 26 times
Been thanked: 78 times
Contact:

Re: Armbian for Odroid C4 - Focal 20.04

Post by igorpec » Mon Jun 22, 2020 6:55 pm

jayjr1105 wrote:
Fri Jun 19, 2020 7:28 am
How is this vs the stock Ubuntu Mate?
Stock Ubuntu Mate is unofficial Ubuntu with a hardware layer / kernel from Hardkernel, a kernel where this device (C4) was initially developed. Armbian provides that same identical kernel but also a modern kernel (5.6.y ATM + u-boot 2020.04) experience. You can switch kernels (test how far modern kernel development is) without reinstalling the image + general improvements: https://forum.armbian.com/topic/7787-wh ... ment-58689 and can easily be recreated from sources. "Ubuntu Mate" can't be easily recreated.

"Mate" is just a (lightweight) desktop environment of choice. Armbian default comes with XFCE. Both have pros and cons.
ARMBIAN
Linux for ARM development boards

Download latest images for Odroids | Build them from sources | Donate to support development

campbell
Posts: 411
Joined: Thu Sep 03, 2015 1:13 pm
languages_spoken: english
ODROIDs: C4, N2, C2, C1+, XU4, XU3, Cloudshell, Smart Power
Has thanked: 3 times
Been thanked: 8 times
Contact:

Re: Armbian for Odroid C4 - Focal 20.04

Post by campbell » Tue Jun 30, 2020 1:36 am

Worth noting this image results in around 600 mW lower power consumption when not using USB, compared to the Hardkernel Ubuntu image with 4.9 kernel. And unlike on the C2, USB remains hotpluggable under the mainline kernel. All good progress!
These users thanked the author campbell for the post:
igorpec (Tue Jun 30, 2020 1:54 am)

campbell
Posts: 411
Joined: Thu Sep 03, 2015 1:13 pm
languages_spoken: english
ODROIDs: C4, N2, C2, C1+, XU4, XU3, Cloudshell, Smart Power
Has thanked: 3 times
Been thanked: 8 times
Contact:

Re: Armbian for Odroid C4 - Focal 20.04

Post by campbell » Tue Jun 30, 2020 3:44 am

I don't suppose there's any procedure for rebuilding the kernel on the board, with just a couple config mods vs the one packaged in this image? All the Armbian docs say I need to do this on an x86_64 machine, which seems rather arbitrary and shortsighted.

User avatar
igorpec
Posts: 627
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 26 times
Been thanked: 78 times
Contact:

Re: Armbian for Odroid C4 - Focal 20.04

Post by igorpec » Tue Jun 30, 2020 3:56 am

campbell wrote:
Tue Jun 30, 2020 3:44 am
I don't suppose there's any procedure for rebuilding the kernel on the board, with just a couple config mods vs the one packaged in this image? All the Armbian docs say I need to do this on an x86_64 machine, which seems rather arbitrary and shortsighted.
It is possible to rebuild kernel on a device, but its on the level as on any other Linux. Manually. We are working on to make it easy, but we don't cover costs for making this and investion will never be returned so there is no need to rush anywhere. Sources can be downloaded via armbian-config ...
ARMBIAN
Linux for ARM development boards

Download latest images for Odroids | Build them from sources | Donate to support development

campbell
Posts: 411
Joined: Thu Sep 03, 2015 1:13 pm
languages_spoken: english
ODROIDs: C4, N2, C2, C1+, XU4, XU3, Cloudshell, Smart Power
Has thanked: 3 times
Been thanked: 8 times
Contact:

Re: Armbian for Odroid C4 - Focal 20.04

Post by campbell » Tue Jun 30, 2020 4:54 am

igorpec wrote:
Tue Jun 30, 2020 3:56 am
campbell wrote:
Tue Jun 30, 2020 3:44 am
I don't suppose there's any procedure for rebuilding the kernel on the board, with just a couple config mods vs the one packaged in this image? All the Armbian docs say I need to do this on an x86_64 machine, which seems rather arbitrary and shortsighted.
It is possible to rebuild kernel on a device, but its on the level as on any other Linux. Manually. We are working on to make it easy, but we don't cover costs for making this and investion will never be returned so there is no need to rush anywhere. Sources can be downloaded via armbian-config ...
That's a shame. Recompiling either the Hardkernel kernel on the C4 or the Arch Linux kernel on the C2 is trivially easy, takes a while but is pretty hands-off.

User avatar
igorpec
Posts: 627
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 26 times
Been thanked: 78 times
Contact:

Re: Armbian for Odroid C4 - Focal 20.04

Post by igorpec » Tue Jun 30, 2020 6:05 am

On Armbian you have to run "make" ... Just "make install" part is not done yet. You need to copy artefacts manually. For a developer this is trivial easy.

Poslano z mojega Mi 9T Pro z uporabo Tapatalk


ARMBIAN
Linux for ARM development boards

Download latest images for Odroids | Build them from sources | Donate to support development

campbell
Posts: 411
Joined: Thu Sep 03, 2015 1:13 pm
languages_spoken: english
ODROIDs: C4, N2, C2, C1+, XU4, XU3, Cloudshell, Smart Power
Has thanked: 3 times
Been thanked: 8 times
Contact:

Re: Armbian for Odroid C4

Post by campbell » Tue Jun 30, 2020 11:48 am

igorpec wrote:
Wed May 06, 2020 9:29 pm
For Debian based distributions Docker is installed automatically, elsewhere (Fedora, Arch, ....) you need to install Docker first.

Code: Select all

git clone https://github.com/armbian/build
cd build
./compile.sh docker BOARD="odroidc4" EXPERT="yes"
I tried this in a fresh Ubuntu 20.04 VM with 30 GB of disk space (Armbian docs say you need 25), and it ran out of disk space after installing at least fourteen versions of gcc. Not sure what I'm doing wrong. Can you give some more detailed instructions for reproducing this image?

User avatar
igorpec
Posts: 627
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 26 times
Been thanked: 78 times
Contact:

Re: Armbian for Odroid C4

Post by igorpec » Tue Jun 30, 2020 4:26 pm

campbell wrote:
Tue Jun 30, 2020 11:48 am
I tried this in a fresh Ubuntu 20.04 VM with 30 GB of disk space (Armbian docs say you need 25)
If you care that its corrected file problems you have with documentation here:
https://github.com/armbian/documentation/issues
... and wait for a volunteer to change that text.

Pull request is a desired way.
campbell wrote:
Tue Jun 30, 2020 11:48 am
installing at least fourteen versions of gcc.
For compiling Odroid C4 at least 2, possible 3 are needed. This tool was not designed to cover only Odroid nor anyone personal needs. Yes, its possible to RFC this part, also to remove 1 or 2 that is already deprecated, but maintaining already costs around 3.000 EUR per day ... and more important issues are waiting. BTW, I know all supporters, some in person, that helps to lower this.
campbell wrote:
Tue Jun 30, 2020 11:48 am
Not sure what I'm doing wrong.
If you ran out of space its obvious what to do ...
campbell wrote:
Tue Jun 30, 2020 11:48 am
Can you give some more detailed instructions for reproducing this image?
I happily provide support for clients that covers my time. My inbox have a constant flow of people that wants "some help" ...
https://github.com/armbian/build#support
ARMBIAN
Linux for ARM development boards

Download latest images for Odroids | Build them from sources | Donate to support development

User avatar
joerg
Posts: 1109
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 50 times
Been thanked: 113 times
Contact:

Re: Armbian for Odroid C4 - Focal 20.04

Post by joerg » Tue Jun 30, 2020 5:19 pm

@campbell, as @odroid confirmed in this thread viewtopic.php?f=114&t=37887&hilit=eos#p282220, you don't need all the old toolchains, only the empty file .download-complete in folder build/cache/toolchains/... is necessary and build process won't download the toolchain if this file exists. So you can delete this old toolchains to free the memory. Just a workaround. :)
These users thanked the author joerg for the post (total 2):
igorpec (Tue Jun 30, 2020 7:20 pm) • campbell (Wed Jul 01, 2020 12:11 am)

Post Reply

Return to “Other OS”

Who is online

Users browsing this forum: No registered users and 1 guest