[OS] Debian Buster for ODROID C4/HC4

User avatar
meveric
Posts: 11531
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 68 times
Been thanked: 479 times
Contact:

[OS] Debian Buster for ODROID C4/HC4

Post by meveric »

This is the first version of my Debian Buster image for the ODROID C4.

It is uses the 4.9 LTS Kernel from Hardkernel.

It's a headless server image only with user root. But it has all my repositories included, which allows for easy installation and updates of packages such as Kernel and Headers and other packages.

The image has my usual setup: means on first boot it's resizing the rootfs partition and configures SSH. It will automatically reboot after the initial setup after which this image is ready to use.
Kernel and headers are already installed if you need to build your own drivers.
A few basic tools such as htop, mc, vim and bash-completion are already installed for your convenience.
A full list of installed applications and dependencies can be found in the root of the image ("/").

Download: https://oph.mdrjr.net/meveric/images/Bu ... -C4.img.xz md5 sha512 sig

Size compressed: 114MB
Size uncompressed: 1GB

Default Login: root
Default Password: odroid

It's ready to be used as a server image.

First things first:
Since there's constantly new development for this image and ODROIDs in general the First thing you should do after the image is up and running is to install all updates:

Code: Select all

apt update && apt upgrade && apt dist-upgrade
How to convert the image into a Desktop image:
The image can easily converted into a Desktop image looking similar to this:
Image

I created a setup tool that's already preinstalled:

Code: Select all

setup-odroid
Which should easily allow you to install a Desktop Environment.

Please Note:
There are no X11 GPU drivers for the ODROID C4 which means there is no 3D acceleration available for Desktop applications. You can still run fbdev applications such as glmark2-es2-fbdev, retroarch or others from the desktop, but it will be using the entire framebuffer and the desktop in the background can cause issues (such as clock shining through or other desktop applications).

Hints:
Changing language:
If you install a Desktop environment you should already have keybord-configuration installed, it will ask upon the first installation what keyboard layout it should use.
This configuration is for your X11 Desktop so you have your desired keyboard layout.
For console you need to install console-setup to do the same, so just in case:

Code: Select all

apt-get install console-setup keyboard-configuration
dpkg-reconfigure keyboard-configuration
should be all that is needed to change your keyboard layout.
You probably want to set timezone as well

Code: Select all

dpkg-reconfigure tzdata
Setting up WLAN from command line
Edit the file /etc/network/interfaces or create a new one under /etc/network/interfaces.d/ and add the following lines

Code: Select all

auto wlan0
iface wlan0 inet dhcp
    wpa-essid <NAME-OF-YOUR-WLAN>
    wpa-psk <WLAN-PASSWORD>
If you're using a "hidden" network, please also add wpa-scan-ssid 1

Webbrowser:
Since the C4 does not have X11 GPU drivers none of the webbrowsers available will have hardware accelerated browsing.
Means you won't have "smooth scrolling", "WebGL" or other 3D features that require working hardware acceleration on the Desktop.
I suggest using FireFox for webbrowsing, as it's faster than Chromium and supports YouTube videos up to 720p.
If you want to use Chromium anyway, make sure to start it with the option --use-gl=none or else it will try to use MESA with Software rendering which is very slow and will cause even more slowdowns.

Kodi with hardware acceleration:
Kodi with hardware acceleration can also be installed with the tool setup-odroid and I'd suggest to use this rather than manually trying to install it, as there are modules that need to be loaded, and permissions to be configured in order to get Kodi working.
Once again it's running with fbdev, and although you can start it from desktop, the desktop can cause some issues in displaying.

General Notice:
Most of the applications I provide in my repositories are for X11 systems, since the C4 does not support X11 there's a high chance they won't work.
Some of them (that do not require a GPU) will work, others may not.
I also offer specific fbdev applications such as retroarch for example which allow you to utilize the GPU of the C4, but won't work "nicely" with a desktop, please keep that in mind when you use my image.
Some more applications that use "OpenGL" instead of OpenGL ES can be run via gl4es from the Desktop as well.
These users thanked the author meveric for the post (total 5):
mad_ady (Wed May 06, 2020 3:46 pm) • Bubbi (Wed May 13, 2020 8:31 pm) • dunwin (Tue Jun 23, 2020 7:12 pm) • Friendly Explorer (Mon Oct 26, 2020 4:02 pm) • tukan (Tue Feb 02, 2021 6:15 pm)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

User avatar
meveric
Posts: 11531
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 68 times
Been thanked: 479 times
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by meveric »

The ODROID C4 pretty much reacts like the N2.
Actually it's much closer than I'd had expected.

I tried mupen64plus fbdev version that I build for N2 and I could play Conquer's Bad Fur Day in full speed, which was quite nice.
I tried retroarch fbdev version, which also worked the same as on the N2.
I even tried GameCube emulation with dolphin which was surprisingly good. It even "felt" better than on the N2, it was actually working quite well which was interesting to see.

Kodi does work as well.. Menu and sound is working fine, decoding is not really there.
The hardware decoder is running and processes the videos but it's too slow and video and audio are out of sync.
Disabling hardware decoder, results in working video stream but also seems to have tearing.

Once again, I'm surprised how close the C4 is to the performance of the N2 in real emulation and graphics performance.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

Bubbi
Posts: 2
Joined: Tue May 12, 2020 4:09 pm
languages_spoken: english
ODROIDs: odorid-c4
Has thanked: 2 times
Been thanked: 0
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by Bubbi »

This is exactly what I'm looking for. I tried it on an sdcard and all looks good until after the full update. It then fails to boot. I meant to order the emmc reader or writer but somehow I messed up and I didn't order it with my board.

If I write image this to the emmc (via dd) would it be more stable?

User avatar
meveric
Posts: 11531
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 68 times
Been thanked: 479 times
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by meveric »

I'm not entirely sure.
Normally there shouldn't be much of a difference between eMMC and SD card.
Both should be stable, but every now and then SD cards, may have issues, or the C4 doesn't support all SD cards.
eMMC often is more robust to physical errors like wearing of the device, but if the system is able to boot from SD card at the first try it should be able to boot after the update as well.
These users thanked the author meveric for the post:
Bubbi (Wed May 13, 2020 8:31 pm)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

Bubbi
Posts: 2
Joined: Tue May 12, 2020 4:09 pm
languages_spoken: english
ODROIDs: odorid-c4
Has thanked: 2 times
Been thanked: 0
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by Bubbi »

I tried another sdcard I had lying around and it worked fine....

Thanks!

nas27
Posts: 13
Joined: Tue Sep 23, 2014 2:40 am
languages_spoken: english
ODROIDs: U3+ C1 C2 C4
Has thanked: 3 times
Been thanked: 0
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by nas27 »

Hi meveric,

First, many thanks for your work on the Debian images — I've been
using them on a C2 for quite a while.

I've installed Debian-Buster64-1.0~RC1-20200505-C4.img to an EMMC
card on a new C4 and successfully booted. However, any attempt to
upgrade yields an error leaving the system unbootable, with important
stuff missing from the /boot volume:

Code: Select all

Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/clean_uInitrd 4.9.218+ /boot/vmlinuz-4.9.218+
run-parts: /etc/kernel/postrm.d/clean_uInitrd exited with return code 1
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/tmp.ci/postrm line 291.
dpkg: error processing archive /tmp/apt-dpkg-install-dXVCh0/01-linux-image-4.9.218+_4.9.218-20200531-C4_arm64.deb (--unpack):
 new linux-image-4.9.218+ package post-removal script subprocess returned error exit status 1
My only edit was to disable display_autodetect in boot.ini.

Do you have any ideas on how to fix this?

Thanks and regards,
Nick

Code: Select all

root@odroid-buster64:~# apt update
Get:1 http://ftp.debian.org/debian buster InRelease [121 kB]                   
Get:2 https://oph.mdrjr.net/meveric all InRelease [19.4 kB]                    
Get:3 http://ftp.debian.org/debian buster-updates InRelease [51.9 kB]          
Get:4 http://ftp.debian.org/debian buster-backports InRelease [46.7 kB]        
Get:5 https://oph.mdrjr.net/meveric buster InRelease [4,125 B]                 
Get:6 http://ftp.debian.org/debian buster/main arm64 Packages [7,735 kB]  
Get:7 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:8 https://oph.mdrjr.net/meveric all/c4 arm64 Packages [1,957 B]            
Get:9 https://oph.mdrjr.net/meveric all/main arm64 Packages [12.8 kB]          
Get:10 https://oph.mdrjr.net/meveric all/testing arm64 Packages [1,816 B]      
Get:11 https://oph.mdrjr.net/meveric buster/backports arm64 Packages [8,300 B] 
Get:12 http://security.debian.org/debian-security buster/updates/main arm64 Packages [201 kB]
Get:13 https://oph.mdrjr.net/meveric buster/main arm64 Packages [40.5 kB]      
Get:14 http://security.debian.org/debian-security buster/updates/main Translation-en [110 kB]
Get:15 http://security.debian.org/debian-security buster/updates/non-free Translation-en [344 B]
Get:16 http://ftp.debian.org/debian buster/main Translation-en [5,969 kB]      
Get:17 http://ftp.debian.org/debian buster/contrib arm64 Packages [39.2 kB]    
Get:18 http://ftp.debian.org/debian buster/contrib Translation-en [44.7 kB]    
Get:19 http://ftp.debian.org/debian buster/non-free arm64 Packages [53.7 kB]   
Get:20 http://ftp.debian.org/debian buster/non-free Translation-en [88.9 kB]   
Get:21 http://ftp.debian.org/debian buster-updates/main arm64 Packages [7,848 B]
Get:22 http://ftp.debian.org/debian buster-updates/main Translation-en [5,672 B]
Get:23 http://ftp.debian.org/debian buster-updates/non-free arm64 Packages [600 B]
Get:24 http://ftp.debian.org/debian buster-updates/non-free Translation-en [673 B]
Get:25 http://ftp.debian.org/debian buster-backports/contrib Sources [4,532 B] 
Get:26 http://ftp.debian.org/debian buster-backports/non-free Sources [6,240 B]
Get:27 http://ftp.debian.org/debian buster-backports/main Sources [277 kB]     
Get:28 http://ftp.debian.org/debian buster-backports/main arm64 Packages [307 kB]
Get:29 http://ftp.debian.org/debian buster-backports/main Translation-en [243 kB]
Get:30 http://ftp.debian.org/debian buster-backports/contrib arm64 Packages [5,712 B]
Get:31 http://ftp.debian.org/debian buster-backports/contrib Translation-en [5,936 B]
Get:32 http://ftp.debian.org/debian buster-backports/non-free arm64 Packages [6,212 B]
Get:33 http://ftp.debian.org/debian buster-backports/non-free Translation-en [30.3 kB]
Fetched 15.5 MB in 46s (339 kB/s)                                              
Reading package lists... Done
Building dependency tree       
Reading state information... Done
22 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@odroid-buster64:~# apt list --upgradable
Listing... Done
apt-transport-https/stable 1.8.2.1 all [upgradable from: 1.8.2]
apt-utils/stable 1.8.2.1 arm64 [upgradable from: 1.8.2]
apt/stable 1.8.2.1 arm64 [upgradable from: 1.8.2]
base-files/stable 10.3+deb10u4 arm64 [upgradable from: 10.3+deb10u3]
ca-certificates/stable-updates 20200601~deb10u1 all [upgradable from: 20190110]
iputils-ping/stable 3:20180629-2+deb10u1 arm64 [upgradable from: 3:20180629-2]
libapt-inst2.0/stable 1.8.2.1 arm64 [upgradable from: 1.8.2]
libapt-pkg5.0/stable 1.8.2.1 arm64 [upgradable from: 1.8.2]
libdns-export1104/stable 1:9.11.5.P4+dfsg-5.1+deb10u1 arm64 [upgradable from: 1:9.11.5.P4+dfsg-5.1]
libgnutls30/stable 3.6.7-4+deb10u4 arm64 [upgradable from: 3.6.7-4+deb10u3]
libisc-export1100/stable 1:9.11.5.P4+dfsg-5.1+deb10u1 arm64 [upgradable from: 1:9.11.5.P4+dfsg-5.1]
libpam-systemd/stable 241-7~deb10u4 arm64 [upgradable from: 241-7~deb10u3]
libsystemd0/stable 241-7~deb10u4 arm64 [upgradable from: 241-7~deb10u3]
libudev1/stable 241-7~deb10u4 arm64 [upgradable from: 241-7~deb10u3]
linux-headers-4.9.218+/unknown 4.9.218-20200531-C4 arm64 [upgradable from: 4.9.218-20200501-C4]
linux-image-4.9.218+/unknown 4.9.218-20200531-C4 arm64 [upgradable from: 4.9.218-20200501-C4]
setup-odroid/unknown 0.0.1-55 all [upgradable from: 0.0.1-52]
systemd-sysv/stable 241-7~deb10u4 arm64 [upgradable from: 241-7~deb10u3]
systemd/stable 241-7~deb10u4 arm64 [upgradable from: 241-7~deb10u3]
tzdata/stable 2020a-0+deb10u1 all [upgradable from: 2019c-0+deb10u1]
udev/stable 241-7~deb10u4 arm64 [upgradable from: 241-7~deb10u3]
wpasupplicant/stable 2:2.7+git20190128+0c1e29f-6+deb10u2 arm64 [upgradable from: 2:2.7+git20190128+0c1e29f-6+deb10u1]
root@odroid-buster64:~# apt upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
  u-boot
Use 'apt autoremove' to remove it.
The following packages will be upgraded:
  apt apt-transport-https apt-utils base-files ca-certificates iputils-ping
  libapt-inst2.0 libapt-pkg5.0 libdns-export1104 libgnutls30 libisc-export1100
  libpam-systemd libsystemd0 libudev1 linux-headers-4.9.218+
  linux-image-4.9.218+ setup-odroid systemd systemd-sysv tzdata udev
  wpasupplicant
22 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 40.5 MB of archives.
After this operation, 71.7 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.debian.org/debian buster/main arm64 base-files arm64 10.3+deb10u4 [69.8 kB]
Get:2 http://security.debian.org/debian-security buster/updates/main arm64 libgnutls30 arm64 3.6.7-4+deb10u4 [1,061 kB]
Get:3 http://ftp.debian.org/debian buster/main arm64 systemd-sysv arm64 241-7~deb10u4 [99.9 kB]
Get:4 http://ftp.debian.org/debian buster/main arm64 libpam-systemd arm64 241-7~deb10u4 [200 kB]
Get:5 http://ftp.debian.org/debian buster/main arm64 libsystemd0 arm64 241-7~deb10u4 [313 kB]
Get:6 http://ftp.debian.org/debian buster/main arm64 systemd arm64 241-7~deb10u4 [3,256 kB]
Get:7 https://oph.mdrjr.net/meveric all/c4 arm64 linux-image-4.9.218+ arm64 4.9.218-20200531-C4 [17.5 MB]
Get:8 http://ftp.debian.org/debian buster/main arm64 udev arm64 241-7~deb10u4 [1,246 kB]
Get:9 http://ftp.debian.org/debian buster/main arm64 libudev1 arm64 241-7~deb10u4 [146 kB]
Get:10 http://ftp.debian.org/debian buster/main arm64 tzdata all 2020a-0+deb10u1 [263 kB]
Get:11 http://ftp.debian.org/debian buster/main arm64 iputils-ping arm64 3:20180629-2+deb10u1 [42.9 kB]
Get:12 http://ftp.debian.org/debian buster-updates/main arm64 ca-certificates all 20200601~deb10u1 [158 kB]
Get:13 http://ftp.debian.org/debian buster/main arm64 wpasupplicant arm64 2:2.7+git20190128+0c1e29f-6+deb10u2 [1,166 kB]
Get:14 http://security.debian.org/debian-security buster/updates/main arm64 libapt-pkg5.0 arm64 1.8.2.1 [899 kB]
Get:15 http://security.debian.org/debian-security buster/updates/main arm64 libapt-inst2.0 arm64 1.8.2.1 [201 kB]
Get:16 http://security.debian.org/debian-security buster/updates/main arm64 apt arm64 1.8.2.1 [1,370 kB]
Get:17 http://security.debian.org/debian-security buster/updates/main arm64 apt-utils arm64 1.8.2.1 [411 kB]
Get:18 http://security.debian.org/debian-security buster/updates/main arm64 apt-transport-https all 1.8.2.1 [149 kB]
Get:19 http://security.debian.org/debian-security buster/updates/main arm64 libisc-export1100 arm64 1:9.11.5.P4+dfsg-5.1+deb10u1 [368 kB]
Get:20 http://security.debian.org/debian-security buster/updates/main arm64 libdns-export1104 arm64 1:9.11.5.P4+dfsg-5.1+deb10u1 [904 kB]
Get:21 https://oph.mdrjr.net/meveric all/c4 arm64 linux-headers-4.9.218+ arm64 4.9.218-20200531-C4 [9,245 kB]
Get:22 https://oph.mdrjr.net/meveric buster/main arm64 setup-odroid all 0.0.1-55 [1,366 kB]
Fetched 40.5 MB in 9min 20s (72.2 kB/s)                                        
Preconfiguring packages ...
(Reading database ... 34593 files and directories currently installed.)
Preparing to unpack .../base-files_10.3+deb10u4_arm64.deb ...
Unpacking base-files (10.3+deb10u4) over (10.3+deb10u3) ...
Setting up base-files (10.3+deb10u4) ...
Installing new version of config file /etc/debian_version ...
(Reading database ... 34593 files and directories currently installed.)
Preparing to unpack .../systemd-sysv_241-7~deb10u4_arm64.deb ...
Unpacking systemd-sysv (241-7~deb10u4) over (241-7~deb10u3) ...
Preparing to unpack .../libpam-systemd_241-7~deb10u4_arm64.deb ...
Unpacking libpam-systemd:arm64 (241-7~deb10u4) over (241-7~deb10u3) ...
Preparing to unpack .../libsystemd0_241-7~deb10u4_arm64.deb ...
Unpacking libsystemd0:arm64 (241-7~deb10u4) over (241-7~deb10u3) ...
Setting up libsystemd0:arm64 (241-7~deb10u4) ...
(Reading database ... 34593 files and directories currently installed.)
Preparing to unpack .../systemd_241-7~deb10u4_arm64.deb ...
Unpacking systemd (241-7~deb10u4) over (241-7~deb10u3) ...
Preparing to unpack .../udev_241-7~deb10u4_arm64.deb ...
Unpacking udev (241-7~deb10u4) over (241-7~deb10u3) ...
Preparing to unpack .../libudev1_241-7~deb10u4_arm64.deb ...
Unpacking libudev1:arm64 (241-7~deb10u4) over (241-7~deb10u3) ...
Setting up libudev1:arm64 (241-7~deb10u4) ...
(Reading database ... 34593 files and directories currently installed.)
Preparing to unpack .../libgnutls30_3.6.7-4+deb10u4_arm64.deb ...
Unpacking libgnutls30:arm64 (3.6.7-4+deb10u4) over (3.6.7-4+deb10u3) ...
Setting up libgnutls30:arm64 (3.6.7-4+deb10u4) ...
(Reading database ... 34593 files and directories currently installed.)
Preparing to unpack .../libapt-pkg5.0_1.8.2.1_arm64.deb ...
Unpacking libapt-pkg5.0:arm64 (1.8.2.1) over (1.8.2) ...
Setting up libapt-pkg5.0:arm64 (1.8.2.1) ...
(Reading database ... 34593 files and directories currently installed.)
Preparing to unpack .../libapt-inst2.0_1.8.2.1_arm64.deb ...
Unpacking libapt-inst2.0:arm64 (1.8.2.1) over (1.8.2) ...
Preparing to unpack .../archives/apt_1.8.2.1_arm64.deb ...
Unpacking apt (1.8.2.1) over (1.8.2) ...
Setting up apt (1.8.2.1) ...
(Reading database ... 34593 files and directories currently installed.)
Preparing to unpack .../00-apt-utils_1.8.2.1_arm64.deb ...
Unpacking apt-utils (1.8.2.1) over (1.8.2) ...
Preparing to unpack .../01-linux-image-4.9.218+_4.9.218-20200531-C4_arm64.deb ...
The directory /lib/modules/4.9.218+ still exists. Continuing as directed.
Examining /etc/kernel/preinst.d/
run-parts: executing /etc/kernel/preinst.d/remove-old-on-upgrade 4.9.218+ /boot/vmlinuz-4.9.218+
Done.
Unpacking linux-image-4.9.218+ (4.9.218-20200531-C4) over (4.9.218-20200501-C4) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/clean_uInitrd 4.9.218+ /boot/vmlinuz-4.9.218+
run-parts: /etc/kernel/postrm.d/clean_uInitrd exited with return code 1
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-4.9.218+.postrm line 291.
dpkg: warning: old linux-image-4.9.218+ package post-removal script subprocess returned error exit status 1
dpkg: trying script from the new package instead ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/clean_uInitrd 4.9.218+ /boot/vmlinuz-4.9.218+
run-parts: /etc/kernel/postrm.d/clean_uInitrd exited with return code 1
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/tmp.ci/postrm line 291.
dpkg: error processing archive /tmp/apt-dpkg-install-dXVCh0/01-linux-image-4.9.218+_4.9.218-20200531-C4_arm64.deb (--unpack):
 new linux-image-4.9.218+ package post-removal script subprocess returned error exit status 1
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/clean_uInitrd 4.9.218+ /boot/vmlinuz-4.9.218+
run-parts: /etc/kernel/postrm.d/clean_uInitrd exited with return code 1
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/tmp.ci/postrm line 291.
dpkg: error while cleaning up:
 new linux-image-4.9.218+ package post-removal script subprocess returned error exit status 1
Preparing to unpack .../02-tzdata_2020a-0+deb10u1_all.deb ...
Unpacking tzdata (2020a-0+deb10u1) over (2019c-0+deb10u1) ...
Preparing to unpack .../03-iputils-ping_3%3a20180629-2+deb10u1_arm64.deb ...
Unpacking iputils-ping (3:20180629-2+deb10u1) over (3:20180629-2) ...
Preparing to unpack .../04-apt-transport-https_1.8.2.1_all.deb ...
Unpacking apt-transport-https (1.8.2.1) over (1.8.2) ...
Preparing to unpack .../05-ca-certificates_20200601~deb10u1_all.deb ...
Unpacking ca-certificates (20200601~deb10u1) over (20190110) ...
Preparing to unpack .../06-libisc-export1100_1%3a9.11.5.P4+dfsg-5.1+deb10u1_arm64.deb ...
Unpacking libisc-export1100:arm64 (1:9.11.5.P4+dfsg-5.1+deb10u1) over (1:9.11.5.P4+dfsg-5.1) ...
Preparing to unpack .../07-libdns-export1104_1%3a9.11.5.P4+dfsg-5.1+deb10u1_arm64.deb ...
Unpacking libdns-export1104 (1:9.11.5.P4+dfsg-5.1+deb10u1) over (1:9.11.5.P4+dfsg-5.1) ...
Preparing to unpack .../08-linux-headers-4.9.218+_4.9.218-20200531-C4_arm64.deb ...
Unpacking linux-headers-4.9.218+ (4.9.218-20200531-C4) over (4.9.218-20200501-C4) ...
Preparing to unpack .../09-wpasupplicant_2%3a2.7+git20190128+0c1e29f-6+deb10u2_arm64.deb ...
Unpacking wpasupplicant (2:2.7+git20190128+0c1e29f-6+deb10u2) over (2:2.7+git20190128+0c1e29f-6+deb10u1) ...
Preparing to unpack .../10-setup-odroid_0.0.1-55_all.deb ...
Unpacking setup-odroid (0.0.1-55) over (0.0.1-52) ...
Errors were encountered while processing:
 /tmp/apt-dpkg-install-dXVCh0/01-linux-image-4.9.218+_4.9.218-20200531-C4_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@odroid-buster64:~# ls /boot
boot.ini  display.bin  edid.bin  Image.gz  Image.gz.bak  uInitrd
root@odroid-buster64:~# apt dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
  u-boot
Use 'apt autoremove' to remove it.
The following packages will be upgraded:
  linux-image-4.9.218+
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
16 not fully installed or removed.
Need to get 0 B/17.5 MB of archives.
After this operation, 80.9 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
Setting up systemd (241-7~deb10u4) ...
(Reading database ... 34606 files and directories currently installed.)
Preparing to unpack .../linux-image-4.9.218+_4.9.218-20200531-C4_arm64.deb ...
The directory /lib/modules/4.9.218+ still exists. Continuing as directed.
Examining /etc/kernel/preinst.d/
run-parts: executing /etc/kernel/preinst.d/remove-old-on-upgrade 4.9.218+ /boot/vmlinuz-4.9.218+
Done.
Unpacking linux-image-4.9.218+ (4.9.218-20200531-C4) over (4.9.218-20200501-C4) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/clean_uInitrd 4.9.218+ /boot/vmlinuz-4.9.218+
run-parts: /etc/kernel/postrm.d/clean_uInitrd exited with return code 1
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-4.9.218+.postrm line 291.
dpkg: warning: old linux-image-4.9.218+ package post-removal script subprocess returned error exit status 1
dpkg: trying script from the new package instead ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/clean_uInitrd 4.9.218+ /boot/vmlinuz-4.9.218+
run-parts: /etc/kernel/postrm.d/clean_uInitrd exited with return code 1
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/tmp.ci/postrm line 291.
dpkg: error processing archive /var/cache/apt/archives/linux-image-4.9.218+_4.9.218-20200531-C4_arm64.deb (--unpack):
 new linux-image-4.9.218+ package post-removal script subprocess returned error exit status 1
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/clean_uInitrd 4.9.218+ /boot/vmlinuz-4.9.218+
run-parts: /etc/kernel/postrm.d/clean_uInitrd exited with return code 1
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/tmp.ci/postrm line 291.
dpkg: error while cleaning up:
 new linux-image-4.9.218+ package post-removal script subprocess returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/linux-image-4.9.218+_4.9.218-20200531-C4_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@odroid-buster64:~# ls /boot
boot.ini  display.bin  edid.bin  Image.gz  Image.gz.bak  uInitrd
root@odroid-buster64:~# 

User avatar
meveric
Posts: 11531
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 68 times
Been thanked: 479 times
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by meveric »

sadly I think that's my mistake with the /etc/kernel/postrm.d/clean_uInitrd script I think it's easiest to simply delete this file, as it doesn't work as I intended it to work anyway.
I removed it from later releases.
These users thanked the author meveric for the post:
nas27 (Mon Jun 15, 2020 11:23 pm)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

nas27
Posts: 13
Joined: Tue Sep 23, 2014 2:40 am
languages_spoken: english
ODROIDs: U3+ C1 C2 C4
Has thanked: 3 times
Been thanked: 0
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by nas27 »

Ah, that's brilliant. Deleting that file before the upgrade fixed the problem.

Just installing xfce now...

Thanks and regards,
Nick

User avatar
MichaIng
Posts: 59
Joined: Wed Apr 10, 2019 4:44 am
languages_spoken: english german
Has thanked: 14 times
Been thanked: 17 times
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by MichaIng »

Ah I see you recognised the issue with the /etc/kernel/postrm.d/clean_uInitrd. For such scripts it is only important that they do not end with a false/non-zero state hence the last line could be fixed by changing it from:

Code: Select all

[ -f /boot/uInitrd-$version ] && rm /boot/uInitrd-$version
to

Code: Select all

[ ! -f /boot/uInitrd-$version ] || rm /boot/uInitrd-$version
Another question. There is an obsolete u-boot package installed from Odroid N2 and none present in the Odroid C4 repo component. It seems that flashing this u-boot to the image/drive breaks it, also it does not seem to match the u-boot currently located on the image, if I did not do something wrong to get/write it via dd. So is it basically intended to use the Odroid N2 u-boot on Odroid C4 or has the package been installed accidentally without flashing it to the drive?

And a minor hint for Buster image creation: apt-transport-https is now a transitional dummy package only since HTTPS has been migrated into the apt package itself since Buster. So it can be removed from build scripts ;).

User avatar
meveric
Posts: 11531
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 68 times
Been thanked: 479 times
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by meveric »

MichaIng wrote:
Tue Jun 16, 2020 5:48 am
Ah I see you recognised the issue with the /etc/kernel/postrm.d/clean_uInitrd. For such scripts it is only important that they do not end with a false/non-zero state hence the last line could be fixed by changing it from:

Code: Select all

[ -f /boot/uInitrd-$version ] && rm /boot/uInitrd-$version
to

Code: Select all

[ ! -f /boot/uInitrd-$version ] || rm /boot/uInitrd-$version
sure that would solve the failure, but the script still doesn't do what it's suppose to do.
Starting the script manually worked fine, but during the update process it does not.
I have to rethink it. It was meant only as a cleanup anyway and is not system-critical, so better to not have it then it causing issues.
MichaIng wrote:
Tue Jun 16, 2020 5:48 am
Another question. There is an obsolete u-boot package installed from Odroid N2 and none present in the Odroid C4 repo component.
That is true, the package is a leftover and should not be used. I'm actually checking if it's worth updating u-boot for the C4 and how to manage that in the future.
MichaIng wrote:
Tue Jun 16, 2020 5:48 am
It seems that flashing this u-boot to the image/drive breaks it, also it does not seem to match the u-boot currently located on the image, if I did not do something wrong to get/write it via dd. So is it basically intended to use the Odroid N2 u-boot on Odroid C4 or has the package been installed accidentally without flashing it to the drive?
Well first of all it's a bad idea just to execute random stuff that's on the image, and flashing a u-boot that is just laying around is definitely a bad idea.
The reason why it's there is simple, if there's a new u-boot for the C4, I only need to publish a new u-boot package, and it will be found as an update, without you having to do anything.
But executing the file that's laying around manually is not the best idea ;)
If I remove the package, it's harder to install it again later on.
I would have to force it as a dependency of another package again, so that it will be installed again.
Normally I do this together with a Kernel update, but Kernel updates for the 4.9er Kernel are very rare it seems (at least from HK), so i would have to build a "null-update" for the Kernel just to force the installation of a new u-boot package.
That's why I thought, letting another package laying around would be the easier step for future u-boot updates :)
But true, I could have removed the files itself - or use a dummy package instead - so no one accidentally executes them, guess I was just too lazy to do this :)
MichaIng wrote:
Tue Jun 16, 2020 5:48 am
And a minor hint for Buster image creation: apt-transport-https is now a transitional dummy package only since HTTPS has been migrated into the apt package itself since Buster. So it can be removed from build scripts ;).
Thanks for letting me know. I don't actually have any build-scripts as I install very few packages as is to keep the image as clean as possible.
But I will remove apt-transport-https on new images :)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

User avatar
MichaIng
Posts: 59
Joined: Wed Apr 10, 2019 4:44 am
languages_spoken: english german
Has thanked: 14 times
Been thanked: 17 times
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by MichaIng »

meveric wrote:
Tue Jun 16, 2020 7:15 am
The reason why it's there is simple, if there's a new u-boot for the C4, I only need to publish a new u-boot package, and it will be found as an update, without you having to do anything.
But executing the file that's laying around manually is not the best idea ;)
Okay that makes sense. Yeah I'm playing around with creating/updating images from within VM with qemu/systemd-nspawn container and in some cases kernel/bootloader related package postinst scripts depend on /proc or /sys content which does not match on the VM of course. So I'm going through those and see which I might need to execute manually. However it's all testing currently ;).
But I will remove apt-transport-https on new images :)
On Stretch it's still required, just to be clear ;).
There is another one: firmware-ralink has been a transitional dummy package for longer which has been merged into and pulls firmware-misc-nonfree. Since the latter is quite bloated with lots of Nvidia and Intel drivers, there might be an argument to drop it. Although aside of certain network adapter drivers, some modem, TV and audio drivers are included as well, granting certain OOTB flexibility. DVB-T... wan't that dead :D?

dunwin
Posts: 2
Joined: Tue Jun 23, 2020 7:09 pm
languages_spoken: english
ODROIDs: C4
Has thanked: 1 time
Been thanked: 0
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by dunwin »

meveric wrote:
Wed May 06, 2020 7:12 am
This is the first version of my Debian Buster image for the ODROID C4.
...
Thanks for putting the images together! I'm doing my Linux install to make a home NAS on the C4, and have been following instructions here:
https://github.com/OpenMediaVault-Plugi ... rmbian.pdf

I just want to report that BalenaEtcher has reported a checksum error while creating the SD card image, and using MD5&SHA Checksum Utility, it's also reporting that the Hash doesn't match.

User avatar
meveric
Posts: 11531
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 68 times
Been thanked: 479 times
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by meveric »

Hmm I'll check if there's an issue.
Please Note, that the md5 and sha512 checksums are for the img.xz file NOT for the .img after flashing.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

dunwin
Posts: 2
Joined: Tue Jun 23, 2020 7:09 pm
languages_spoken: english
ODROIDs: C4
Has thanked: 1 time
Been thanked: 0
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by dunwin »

meveric wrote:
Tue Jun 23, 2020 11:04 pm
Please Note, that the md5 and sha512 checksums are for the img.xz file NOT for the .img after flashing.
Oh right. I was checking the .img file. I've redone the Checksum check and it worked with the MD5 and SHA512. I've done some further reading on the BalenaEtcher issue. It seems to be a software issue with Windows.

I couldn't get your Debian Buster build to boot on the C4 - the blue LED wouldn't initiate after trying different SD cards, I've had success with a couple of other builds: success with Armbian Buster and the Mate Desktop (Hardkernel's supported distro).

I'm keen to give your Debian Buster a go for Open Media Vault if you can work out the boot loader issue.

User avatar
meveric
Posts: 11531
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 68 times
Been thanked: 479 times
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by meveric »

That's odd, since it's working for others and myself without issues.
I can reflash on an SD card to try currently I'm using an eMMC and know it works there, but I can check again with SD card for comparison.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

User avatar
meveric
Posts: 11531
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 68 times
Been thanked: 479 times
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by meveric »

Just wanted to confirm that booting from SD card actually works fine.
Tested it and the blue LED showed up right away.
After a couple of seconds the image booted, did a reboot to resize filesystem booted again and the system was up and running.
So the image is fine and so is booting from SD card, this shouldn't be an issue.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

legogris
Posts: 9
Joined: Fri Jan 31, 2020 12:05 pm
languages_spoken: english
Has thanked: 0
Been thanked: 1 time
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by legogris »

Do you have the sources for this available anywhere? Want to see if I can get a working bullseye image.

User avatar
meveric
Posts: 11531
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 68 times
Been thanked: 479 times
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by meveric »

sources for "what"? O_o
And sure you can get bullseye working.. just update to it and done.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

legogris
Posts: 9
Joined: Fri Jan 31, 2020 12:05 pm
languages_spoken: english
Has thanked: 0
Been thanked: 1 time
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by legogris »

For the img files you posted in OP (assuming they're not manually crafted!)

User avatar
meveric
Posts: 11531
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 68 times
Been thanked: 479 times
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by meveric »

it is manually crafted.
There aren't many steps involved.
create a debootstrab rootfs, copy it to an existing image, install applications you want/need.
In my case mainly my own kernel and headers and setup-odorid tool.
That's about it.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

gseaman
Posts: 98
Joined: Fri Jan 01, 2016 2:42 pm
languages_spoken: english
ODROIDs: c1+/c4
Location: WA, USA
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by gseaman »

I just received a c4. About 4 years ago, I got a c1+. I used your Debian images, back then and am about to install this on my new c4. It has been a while, so I may have questions. ;)

gseaman
Posts: 98
Joined: Fri Jan 01, 2016 2:42 pm
languages_spoken: english
ODROIDs: c1+/c4
Location: WA, USA
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by gseaman »

I remembered how to flash the image on the emmc, but I am not getting output to my monitor. I have a 1600x900 hp W2072a with no hdmi input. I have a hdmi to vga adaptor that worked with my c1+. I used to have to change some settings in the boot.ini file, but the ubuntu 20.04 image that came on the emmc automatically found the monitor. This image does not. I tried to find the old conversation helping me with the c1+, but could not find it. But, I tried by memory to use setenv to 1600x900 and hdmiout to dvi.

I am missing something. Thanks.

User avatar
odroid
Site Admin
Posts: 37371
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1785 times
Been thanked: 1139 times
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by odroid »

Find boot.ini file and edit.
Note this link shows a boot.ini file for Ubuntu which might be slightly different from @meveric's Debian Buster image.
https://github.com/mdrjr/c4_bootini/blo ... r/boot.ini

display_autodetect: from "true" to "false"
hdmimode: from 1080p60hz to "1600x900p60hz"
voutmode: from "hdmi" to "dvi"

gseaman
Posts: 98
Joined: Fri Jan 01, 2016 2:42 pm
languages_spoken: english
ODROIDs: c1+/c4
Location: WA, USA
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by gseaman »

The boot.ini in meverics image appears to be the same. I tried these settings and it worked! But, after updating and running the setup-odroid script, I don't get to the screen again. I will try again, tomorrow. Thanks.

gseaman
Posts: 98
Joined: Fri Jan 01, 2016 2:42 pm
languages_spoken: english
ODROIDs: c1+/c4
Location: WA, USA
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by gseaman »

It has been a while since I did an install on my last odroid. I was flashing the uncompressed *.img instead of the *.img.xz. After fixing this, the video was autodetected and I used nano to setup up wlan0. The updates and setup-odroid worked as expected. I installed the mate desktop followed all directions, but when it rebooted I got no screen again. Are there any other steps that I am missing?

User avatar
meveric
Posts: 11531
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 68 times
Been thanked: 479 times
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by meveric »

last time I tried it worked perfectly fine.
Can you see any errors in the syslog or Xorg.0.log that indicates a problem?
What happens if you start lightdm manually?

Code: Select all

service lightdm start
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

gseaman
Posts: 98
Joined: Fri Jan 01, 2016 2:42 pm
languages_spoken: english
ODROIDs: c1+/c4
Location: WA, USA
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by gseaman »

I don't have a setup to login to the C4 if the screen doesn't light up. I could type in the code and see if it responds, but I don't get a cursor or any type of screen. If I reboot between the update and running setup-odriod, can I type the command 'service lightdm start' without another reboot?

gseaman
Posts: 98
Joined: Fri Jan 01, 2016 2:42 pm
languages_spoken: english
ODROIDs: c1+/c4
Location: WA, USA
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by gseaman »

I tried again a couple of times last night. I reflashed the emmc withe img.xz file using etcher. I booted up the c4, and logged in. I edited /etc/network/interfaces using nano to setup my wifi. Next, I ran the updates using the directions from the first post. So far, everything works as expected.

To see if my problem came from the update or something in the setup-odroid script, I rebooted before running the script. When it rebooted, I did not get output to the screen.

I started all over and tried a second time, but this time I edited boot.ini with the previously mentioned video settings and rebooted. Still, no output.

Maybe I could ssh into the C4 from my desktop, but I don't know what to check for if I did. Any assistance is greatly appreciated!

User avatar
meveric
Posts: 11531
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 68 times
Been thanked: 479 times
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by meveric »

I wonder if the error actually comes from the graphics settings in the boot.ini.

You should definitely try to use "putty" as a software under Windows to connect to the ODROID via SSH that way you can see if the system is up and running.
You can probably even see if the desktop is up and running after the setup. Maybe one of the updates has it that your monitor/TV is no longer working afterwards.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

gseaman
Posts: 98
Joined: Fri Jan 01, 2016 2:42 pm
languages_spoken: english
ODROIDs: c1+/c4
Location: WA, USA
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by gseaman »

Thanks.
When I did all the updates on the stock ubuntu, everything still worked. I don't know if that provides any clues, but I thought I would throw in any information that might help. I will try ssh and see what I can find out.

I haven't had a windows system at home since windows 98. :) I even moved my wife to linux over 10 years ago.

User avatar
meveric
Posts: 11531
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 68 times
Been thanked: 479 times
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by meveric »

then just connect from your Linux system via ssh that's even easier... I just thought you had a windows PC at home.
you can use any linux system that ssh client on it to connect to the ODROID.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

gseaman
Posts: 98
Joined: Fri Jan 01, 2016 2:42 pm
languages_spoken: english
ODROIDs: c1+/c4
Location: WA, USA
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by gseaman »

Ok, I plugged the power to my c4, but no mouse or keyboard. The wlan0 was setup before I lost access to it. I used

Code: Select all

ip addr
to find my ip address. Then,

Code: Select all

nmap -sn 192.168.0.102/24
to find my odroid's address on the network. It is identified as "Samsung Electro-mechanics(thailand)". Finally, I entered

Code: Select all

ssh galen@192.168.0.101
and

Code: Select all

ssh root@192.168.0.101
. I got the message "Connection timed out". I'm sorry for the newbie questions, I will be able to figure this out, but I've found things go much quicker when you have good advice.

I also ping'ed the address and it appears to be there, but does not answer back.

gseaman
Posts: 98
Joined: Fri Jan 01, 2016 2:42 pm
languages_spoken: english
ODROIDs: c1+/c4
Location: WA, USA
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by gseaman »

If necessary, I can start over and do whatever setup might be needed for ssh.

I just realized that the address was likely for my phone, and the c4 is not attached to the network.

torx
Posts: 13
Joined: Fri Aug 14, 2020 9:38 am
languages_spoken: english
ODROIDs: C4, HC2
Has thanked: 2 times
Been thanked: 1 time
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by torx »

I'm getting the below errors on upgrade. As a result i removed the file: /etc/kernel/postrm.d/clean_uInitrd - would this be safe?

Code: Select all

Do you want to continue? [Y/n] Y
(Reading database ... 38914 files and directories currently installed.)
Preparing to unpack .../linux-image-4.9.218+_4.9.218-20200615-C4_arm64.deb ...
Unpacking linux-image-4.9.218+ (4.9.218-20200615-C4) over (4.9.218-20200501-C4) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/clean_uInitrd 4.9.218+ /boot/vmlinuz-4.9.218+
run-parts: /etc/kernel/postrm.d/clean_uInitrd exited with return code 1
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-4.9.218+.postrm line 291.
dpkg: warning: old linux-image-4.9.218+ package post-removal script subprocess returned error exit status 1
dpkg: trying script from the new package instead ...
run-parts: /etc/kernel/postrm.d/clean_uInitrd exited with return code 1
dpkg: error processing archive /var/cache/apt/archives/linux-image-4.9.218+_4.9.218-20200615-C4_arm64.deb (--unpack):
 new linux-image-4.9.218+ package post-removal script subprocess returned error exit status 1
run-parts: /etc/kernel/postrm.d/clean_uInitrd exited with return code 1
dpkg: error while cleaning up:
 new linux-image-4.9.218+ package post-removal script subprocess returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/linux-image-4.9.218+_4.9.218-20200615-C4_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

User avatar
meveric
Posts: 11531
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 68 times
Been thanked: 479 times
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by meveric »

yes you can remove that.
It was removed from later versions of the Kernel anyway.
These users thanked the author meveric for the post:
torx (Sat Aug 15, 2020 1:13 am)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

torx
Posts: 13
Joined: Fri Aug 14, 2020 9:38 am
languages_spoken: english
ODROIDs: C4, HC2
Has thanked: 2 times
Been thanked: 1 time
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by torx »

gseaman wrote:
Fri Aug 07, 2020 4:25 pm
If necessary, I can start over and do whatever setup might be needed for ssh.
You have to edit the network interface config on the C4:

Code: Select all

nano /etc/network/interfaces
Addiing the specific details of your network to <NAME-OF-YOUR-WLAN> & <WLAN-PASSWORD> so it looks like the code below (with your information of course):

Code: Select all

auto wlan0
iface wlan0 inet dhcp
    wpa-essid <NAME-OF-YOUR-WLAN>
    wpa-psk <WLAN-PASSWORD>
Then reboot the C4. From the remote computer, find the IP address of the C4, and then SSH will be available. SSH into the server, from a Mac terminal use:

Code: Select all

ssh root@<YOUR-IP-ADDRESS>
Remove the “clean_uInitrd” file:

Code: Select all

rm /etc/kernel/postrm.d/clean_uInitrd
And then do updates:

Code: Select all

apt update && apt upgrade && apt dist-upgrade
You should be good to go.
These users thanked the author torx for the post:
meveric (Sat Aug 15, 2020 5:42 am)

gseaman
Posts: 98
Joined: Fri Jan 01, 2016 2:42 pm
languages_spoken: english
ODROIDs: c1+/c4
Location: WA, USA
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by gseaman »

I edit the /etc/network/interfaces and the c4 accessed the internet. However, after I did the update, ssh did not work. I will try removing "clean_uInitrd" and try again. Thanks for the information.

Friendly Explorer
Posts: 4
Joined: Sun Jan 06, 2019 12:31 am
languages_spoken: english
ODROIDs: C2, C4, HiFi Shield 2, oCam
Has thanked: 3 times
Been thanked: 0
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by Friendly Explorer »

Installed your image on the ODROID C4 and can confirm it works really GREAT! Used your image before on the C2, always quality builds! Thank you very much, meveric!

I have one question though:
To activate the HiFi Shield 2, I need to activate it via editing the/media/boot/config.ini to edit the DTBO settings.
https://wiki.odroid.com/accessory/sound ... odroid-c41

Does anyone have an idea where to find this config.ini under Debian. Thanks in advance!

User avatar
meveric
Posts: 11531
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 68 times
Been thanked: 479 times
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by meveric »

I'll update the C4 boot.ini soon. I've done that a couple of days ago on the N2 and have to do the same on the C4.
The option will be directly in the boot.ini not in config.ini.
Give me a day or two so I can update and test the new boot.ini properly :)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

User avatar
meveric
Posts: 11531
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 68 times
Been thanked: 479 times
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by meveric »

Friendly Explorer wrote:
Mon Oct 26, 2020 4:01 pm
Installed your image on the ODROID C4 and can confirm it works really GREAT! Used your image before on the C2, always quality builds! Thank you very much, meveric!

I have one question though:
To activate the HiFi Shield 2, I need to activate it via editing the/media/boot/config.ini to edit the DTBO settings.
https://wiki.odroid.com/accessory/sound ... odroid-c41

Does anyone have an idea where to find this config.ini under Debian. Thanks in advance!
I've uploaded a new setup-odroid package which should add support for Device Tree Overlays.
Just do a regular update as described in the first post and the boot.ini should be adjusted accordingly to your needs :)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

Friendly Explorer
Posts: 4
Joined: Sun Jan 06, 2019 12:31 am
languages_spoken: english
ODROIDs: C2, C4, HiFi Shield 2, oCam
Has thanked: 3 times
Been thanked: 0
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by Friendly Explorer »

Thanks for your immediate update, meveric! Installed the new package smoothly and seeing the required section in the boot.ini.

Unfortunately. the HiFi Shield 2 is still not detected with neither adding the code snippet from wiki.odroid.com nor executing the install_odroid_hifishield2.sh from DietPi forums.

The return from #aplay -l (German language) is:

**** Liste der Hardware-Geräte (PLAYBACK) ****
Karte 0: ODROIDHDMI [ODROID-HDMI], Gerät 0: SPDIF-dit-hifi dit-hifi-0 []
Sub-Geräte: 1/1
Sub-Gerät #0: subdevice #0

Yet don't feel pushed to add full driver support, other OS's like Manjaro etc. also don't have these audio drivers. Hard to tell what the problem is.

User avatar
meveric
Posts: 11531
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 68 times
Been thanked: 479 times
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by meveric »

To be honest I haven't tested the HiFi Shield2 on the C4 yet.
I know that on the C2 you only had to activated GPIO pins
But checking on the wiki post.. question is, did you do the "overlay_profile" or did you add it to the overlay_custom?
As I don't have a profile for the hifi shield2 it would only work as a custom setting.
In fact I copied the profiles from hardkernels boot.ini/config.ini and they didn't had the hifishield2 profile in their either.. which is why it's not in mine.

so, set profile to custom and add "hifishield2" to the overlay_custom and it "might" work (once again haven't tested yet).
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

astraluma
Posts: 3
Joined: Tue Nov 10, 2020 11:10 am
languages_spoken: english
ODROIDs: HC4
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by astraluma »

So, this doesn't seem to work on the HC4?

I don't have the serial cable to read off the boot log, so I can't really give details. I know it works for a while, does a reboot, and kinda just keeps going without ever actually doing DHCP or anything.

The hardkernel ubuntu image boots fine from this SD card.

User avatar
meveric
Posts: 11531
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 68 times
Been thanked: 479 times
Contact:

Re: [OS] Debian Buster for ODROID C4

Post by meveric »

I'll check.. thanks for reporting
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

User avatar
meveric
Posts: 11531
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 68 times
Been thanked: 479 times
Contact:

Re: [OS] Debian Buster for ODROID C4/HC4

Post by meveric »

Update:
I've updated the base image it now supports ODROID HC4 out of the box.
It also includes my latest Kernel and some other fixes that I've been working on.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

peppoonline
Posts: 36
Joined: Fri Nov 13, 2020 5:48 pm
languages_spoken: english
ODROIDs: HC4
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Buster for ODROID C4/HC4

Post by peppoonline »

Hey meveric, thanks for all your work :)

I tried to get this to work, but unfortunately I can't.
- Download/Compare Hash/ued Etcher to burn it to a new tested SD Card/Updated Petit Bootloader
- Petit Bootloader does recognize it (which is more than the Armbian Images for me), but after I select the "NO LABEL", the monitor gets dark, but still a signal (which is more, then with the integrated netboot_default debian...here the monitor has no signal after finishing the installation).
- I can't ping the HC4 anymore, after your Image is loaded (pingable while in Petit Bootloader).

Can you tell me in which direction I have to go? :)

Jschoeck
Posts: 18
Joined: Fri Nov 06, 2020 9:30 pm
languages_spoken: english, german
ODROIDs: HC2, HC4
Has thanked: 4 times
Been thanked: 0
Contact:

Re: [OS] Debian Buster for ODROID C4/HC4

Post by Jschoeck »

This sounds like what happens to me using DietPi for C4, which is also based on Debian Buster.

peppoonline
Posts: 36
Joined: Fri Nov 13, 2020 5:48 pm
languages_spoken: english
ODROIDs: HC4
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Buster for ODROID C4/HC4

Post by peppoonline »

I tried so many different approaches, but can't get anyting to work, despite the Ubuntu minimal image from SDcard...

User avatar
meveric
Posts: 11531
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 68 times
Been thanked: 479 times
Contact:

Re: [OS] Debian Buster for ODROID C4/HC4

Post by meveric »

Jschoeck wrote:
Fri Nov 13, 2020 10:52 pm
This sounds like what happens to me using DietPi for C4, which is also based on Debian Buster.
The image was just updated yesterday.. before that it wouldn't work.
And I need to talk to the DietPi guys that they also need to update for the HC4 to work.
peppoonline wrote:
Sat Nov 14, 2020 12:41 am
I tried so many different approaches, but can't get anyting to work, despite the Ubuntu minimal image from SDcard...
When did you download the image? As just mentioned a working image was just uploaded yesterday. Before that the image would not boot.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

peppoonline
Posts: 36
Joined: Fri Nov 13, 2020 5:48 pm
languages_spoken: english
ODROIDs: HC4
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Buster for ODROID C4/HC4

Post by peppoonline »

I downloaded this one:
Debian-Buster64-1.1-20201112-C4.img
But I'm going to try again tomorrow....perhaps I'm more lucky then :)

Post Reply

Return to “Other OS”

Who is online

Users browsing this forum: No registered users and 1 guest