[SOLVED] Debian 12 Bookworm on HC4 - no network connection

Post Reply
EPIX
Posts: 5
Joined: Fri Mar 22, 2024 5:15 pm
languages_spoken: german
ODROIDs: HC4
Has thanked: 2 times
Been thanked: 0
Contact:

[SOLVED] Debian 12 Bookworm on HC4 - no network connection

Post by EPIX »

I tried several times to install debian 12 (because of OMV 7) and ending allways in the same mass:
no network connection
eth0: state DOWN...

when i start from petitboot - the network installation ist possible, ther is an connection to my network
During debian installation the network is correct detected.
after restart - no connection
i tries serveral mirroring servers for debian, -> same result

installed is: Kernel 6.1.0-odroid-arm64

when I log in as root and
# ip link set eth0 up
# dhclient -r
# dhclient eth0

i get a network IP, after the next reboot - no connection.

I had to mention - I'm a linux-noob ;-(

any hints?

Greetings from Austria
Last edited by EPIX on Tue Mar 26, 2024 5:49 pm, edited 1 time in total.

User avatar
tobetter
Posts: 13115
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 999 times
Been thanked: 2277 times
Contact:

Re: Debian 12 Bookworm on HC4 - no network connection

Post by tobetter »

I've just tried fresh installation and met the same problem.

My solution is to use these commands after getting IP address using the same command sudo dhclient eth0 you've tried.

Code: Select all

$ sudo apt update
$ sudo apt install netplan.io
The create a file /etc/netplan/01-netcfg.yaml with this config.

Code: Select all

network:
  version: 2
  renderer: networkd
  ethernets:
    eth0:
      dhcp4: true
Then the network will work after rebooting.
These users thanked the author tobetter for the post:
EPIX (Tue Mar 26, 2024 5:49 pm)

EPIX
Posts: 5
Joined: Fri Mar 22, 2024 5:15 pm
languages_spoken: german
ODROIDs: HC4
Has thanked: 2 times
Been thanked: 0
Contact:

Re: Debian 12 Bookworm on HC4 - no network connection

Post by EPIX »

Thank you for the quick reply and the perfect solution!!

greetings from Austria

User avatar
EarBiteR
Posts: 33
Joined: Wed Mar 18, 2015 12:13 pm
languages_spoken: english
ODROIDs: N2,C4's,C1's running CoreElec and Bullseye
Has thanked: 3 times
Been thanked: 2 times

Re: [SOLVED] Debian 12 Bookworm on HC4 - no network connection

Post by EarBiteR »

@tobetter, any plans to update the bookworm netboot install so this isnt needed? I did the netplan.io install and removed the other grub cmdline fixes from another post and it FAILS to get an ip upon reboot. For me this doesnt fix it as I dont get an ip. Sorry. I am on C4.

User avatar
tobetter
Posts: 13115
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 999 times
Been thanked: 2277 times
Contact:

Re: [SOLVED] Debian 12 Bookworm on HC4 - no network connection

Post by tobetter »

EarBiteR wrote:
Sat Apr 06, 2024 12:22 am
@tobetter, any plans to update the bookworm netboot install so this isnt needed? I did the netplan.io install and removed the other grub cmdline fixes from another post and it FAILS to get an ip upon reboot. For me this doesnt fix it as I dont get an ip. Sorry. I am on C4.
I believe adding ipv6.disable=1 to kernel parameter would not help to obtain IP address on Debian Bookworm.

The problem is new network interface name rule.
https://www.freedesktop.org/wiki/Softwa ... faceNames/

Two solutions in my understanding.
  • Installing netplan.io and creating a file /etc/netplan/01-netcfg.yaml manually --> netplan.io will be installed by default, but one needs to create /etc/netplan/01-netcfg.yaml by onself. This solution will let user to use traditional network interface name, eth0, for the on-board ethernet hardware.
  • Using predictable network interface --> Commenting out one line that contains net.ifnames=0 in /usr/share/flash-kernel/ubootenv.d/upstream/90-misc and run update-bootscript will let the network interface have IP address since next rebooting. But the network interface name will be end0, not eth0.
I prefer let user to decide which one to use, but it might make new bee to be frustrated...

What's your input?

dbert05
Posts: 1
Joined: Sat Apr 13, 2024 3:00 pm
languages_spoken: english
ODROIDs: HC4
Has thanked: 0
Been thanked: 0
Contact:

Re: [SOLVED] Debian 12 Bookworm on HC4 - no network connection

Post by dbert05 »

I am removing my last post. I got it to work, but it took a couple tries. The second method did not work, but the first did.

I am not sure if this is related to changes, but does anyone have an issue with installing some programs now? I got this issues when trying to install OMV. I don't know if this has anything to do with another debian change or related to the network issue:

update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults

User avatar
mad_ady
Posts: 11996
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, N2L, H2, H3+, Go, Go Advance, M1, M1S
Location: Bucharest, Romania
Has thanked: 663 times
Been thanked: 1284 times
Contact:

Re: [SOLVED] Debian 12 Bookworm on HC4 - no network connection

Post by mad_ady »

That's juat a warning systemd spits when there are legacy init.d init files, without a systemd unit. It shouldn't be an issue.

Post Reply

Return to “Issues”

Who is online

Users browsing this forum: No registered users and 1 guest