Any experience with Debian 9 (stretch) on HC1?

Moderators: odroid, mdrjr

Any experience with Debian 9 (stretch) on HC1?

Unread postby Talkless » Wed Jan 03, 2018 2:56 am

Hi,

I see Debian has Wiki about Installing Debian on HC1, have anyone tried that?

Is Debian Stretch working good enough?
Talkless
 
Posts: 10
Joined: Wed Jan 03, 2018 2:22 am
languages_spoken: english

Re: Any experience with Debian 9 (stretch) on HC1?

Unread postby dkn » Sat Jan 13, 2018 12:47 am

just tried it. No problem following the guide you mentioned. Bur afterwards no network connection, perhaps because of wrong interface name or faulty sd card or... as there is no hdmi connection on the board i am waiting for a usb-serial-adapter now to debug...
dkn
 
Posts: 1
Joined: Fri Jan 12, 2018 5:56 pm
languages_spoken: english

Re: Any experience with Debian 9 (stretch) on HC1?

Unread postby Talkless » Sat Jan 13, 2018 1:48 am

dkn wrote: i am waiting for a usb-serial-adapter now to debug...


Yeah, I just got mine HC1 with serial adapter, maybe will find time to try Debian Stretch on it this weekend too.
Talkless
 
Posts: 10
Joined: Wed Jan 03, 2018 2:22 am
languages_spoken: english

Re: Any experience with Debian 9 (stretch) on HC1?

Unread postby Talkless » Sun Feb 18, 2018 7:44 pm

I've have prepared SD card, connected "minicom", I see HC1 booting, but once I get login prompt, I cannot enter login/password. It is unresponsive.
Talkless
 
Posts: 10
Joined: Wed Jan 03, 2018 2:22 am
languages_spoken: english

Re: Any experience with Debian 9 (stretch) on HC1?

Unread postby Talkless » Sun Feb 18, 2018 9:13 pm

Iv'e got network working with /etc/network/interfaces:

Code: Select all
auto lo
iface lo inet loopback

#auto type/1/1=first
#iface first inet dhcp
auto enx001e0630d1c1
iface enx001e0630d1c1 inet static
    address 192.168.0.2
    netmask 255.255.255.0
    gateway 192.168.0.1


And I got minicom working by setting "Hardware flow control" to "No" in "sudo minicom -s" (and saved settings as default)

Although it seems I do not have DNS resolution. Maybe needs some more packages...
Talkless
 
Posts: 10
Joined: Wed Jan 03, 2018 2:22 am
languages_spoken: english

Re: Any experience with Debian 9 (stretch) on HC1?

Unread postby Talkless » Sun Feb 18, 2018 9:47 pm

For DNS resolution, I've enabled "systemd-resolved" daemon:
Code: Select all
systemctl enable systemd-resolved

After reboot, DNS is working!

Also, there are issues with locales, and dash configuration. Not sure how but seems I've fixed it (could not write HOWTO yet thought).

EDIT: DNS resolving works for static IP configuration if you write /etc/resolv.conf file name correctly (I had file with typo in filename), systemd-resolved is not needed :) .
Last edited by Talkless on Wed Feb 28, 2018 4:45 am, edited 1 time in total.
Talkless
 
Posts: 10
Joined: Wed Jan 03, 2018 2:22 am
languages_spoken: english

Re: Any experience with Debian 9 (stretch) on HC1?

Unread postby Talkless » Sun Feb 18, 2018 11:49 pm

It seems I have to restart networking in `rc.local` to have working network for some reason, as boot log shows:

Code: Select all
[    8.069553] r8152 5-1:1.0 enx001e0630d1c1: renamed from eth0
[FAILED] Failed to start Raise network interfaces.
See 'systemctl status networking.service' for details.
[  OK  ] Reached target Network.


So I've created /etc/rc.local (chmod a+x) with contents:

Code: Select all
#!/usr/bin/env bash

systemctl restart networking
Talkless
 
Posts: 10
Joined: Wed Jan 03, 2018 2:22 am
languages_spoken: english

Re: Any experience with Debian 9 (stretch) on HC1?

Unread postby odroid » Mon Feb 19, 2018 8:43 am

Nice progress!
Thank you for sharing the solutions.
User avatar
odroid
Site Admin
 
Posts: 27329
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Any experience with Debian 9 (stretch) on HC1?

Unread postby Talkless » Thu Feb 22, 2018 3:09 am

Seems like systemd tries to start network a little too early.

At first, network interface is named `eth0`, so `ifup` fail. Then interface it is renamed (by kernel driver?) to `enx001e0630d1c1`, and that's why later `systemctl restart networking` in `rc.local` fixes it:

Code: Select all
Nov 03 19:16:44 odroid-hc1 ifup[273]: Cannot find device "enx001e0630d1c1"
Nov 03 19:16:44 odroid-hc1 ifup[273]: ifup: failed to bring up enx001e0630d1c1
Nov 03 19:16:44 odroid-hc1 kernel: r8152 5-1:1.0 eth0: v1.08.8
Nov 03 19:16:44 odroid-hc1 systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
Nov 03 19:16:44 odroid-hc1 systemd[1]: Failed to start Raise network interfaces.
Nov 03 19:16:44 odroid-hc1 systemd[1]: networking.service: Unit entered failed state.
Nov 03 19:16:44 odroid-hc1 systemd[1]: networking.service: Failed with result 'exit-code'.
Nov 03 19:16:44 odroid-hc1 systemd[1]: Reached target Network.
Nov 03 19:16:44 odroid-hc1 systemd-timesyncd[282]: System clock time unset or jumped backwards, restoring from recorded timestamp: Wed 2018-02-21 19:52:49 EET
Feb 21 19:52:49 odroid-hc1 kernel: r8152 5-1:1.0 enx001e0630d1c1: renamed from eth0
Feb 21 19:52:49 odroid-hc1 systemd[1]: Reached target Network is Online.


Any idea how to configure ifup or systemd to wait for interface a little longer..?
Talkless
 
Posts: 10
Joined: Wed Jan 03, 2018 2:22 am
languages_spoken: english

Re: Any experience with Debian 9 (stretch) on HC1?

Unread postby recliq » Thu Feb 22, 2018 7:22 am

You could try adding
Code: Select all
net.ifnames=0 biosdevname=0

to the kernel commandline, this way the interface should keep the old name (eth0).
(Of course you would have to edit your interface config to also reference eth0 again...)
8-)

PS: Also make sure there is no /etc/udev/rules.d/70-persistent-net.rules renaming the interface (or at least one tying the MAC to eth0 :) )...
User avatar
recliq
 
Posts: 111
Joined: Mon Feb 25, 2013 6:07 pm
Location: Germany
languages_spoken: english, german
ODROIDs: 2xU2 + U3 + XU3 + 2xXU4 + C2

Re: Any experience with Debian 9 (stretch) on HC1?

Unread postby Talkless » Wed Feb 28, 2018 3:50 am

recliq wrote:You could try adding
Code: Select all
net.ifnames=0 biosdevname=0



Yes! It works now without restarting network in rc.local, thanks!

recliq wrote:PS: Also make sure there is no /etc/udev/rules.d/70-persistent-net.rules renaming the interface (or at least one tying the MAC to eth0 :) )...

There where no rules files, so thats not an issue.

I guess I'll suggest updating Debian Wiki page for networking part.

I could try to reinstall from scratch for sanity check, but bootstraping system on sdcard is sooo slow...
Talkless
 
Posts: 10
Joined: Wed Jan 03, 2018 2:22 am
languages_spoken: english


Return to Other OS

Who is online

Users browsing this forum: No registered users and 2 guests