hardkernel / linux

Linux kernel source tree
Other
426 stars 406 forks source link

Timelines to update odroid-c2 kernel to a modern and supported branch? #259

Open graysky2 opened 7 years ago

graysky2 commented 7 years ago

3.14.79 is currently EOL'ed upstream. Are plans and timelines established to transition to a newer lts kernel for the ODROID-C2? I've read rumors (can't find links) that the 4.4 branch was under development. I don't see any branch here that substantiates this. Thanks!

mmoll commented 7 years ago

please see http://linux-meson.com/

konradsa commented 7 years ago

I don't see a timeline on http://linux-meson.com/.

I agree, this is desperately needed, the kernel is just really getting very long in the tooth. And there are just a lot of issues with it that have been fixed in the newer releases. For instance, I recently ran in to an issue where a lot of dmcrypt file ops pretty much bring down the whole machine. This is a know issue and has been fixed a long time ago, but that fix is not available on C2 due to the very old kernel version.

mmoll commented 7 years ago

@konradsa Well, then the "timeline" will be "it's ready, when it's ready". From what I get, it'll be possible to run a headless server on a C2 with 4.10. The general situation (I hope this is known) is that the SoC vendor Amlogic is providing kernel sources of a specfific version for customers and that is, what's used as a base by Hardkernel.

graysky2 commented 7 years ago

@mmoll - Thanks for the info. I'm ready to stop using my C2 all together since I cannot get the bridge ethernet to work with lxcs (Arch ARM or Ubuntu). I am very interested in running a headless server with a more recent kernel. Have you personally done this or just believe it to be possible?

mmoll commented 7 years ago

@graysky2 see http://rglinuxtech.com/?p=1880 - I have no idea of lxc, but I'm using a C2 with 3.14 kernel and a bridge, with brigdes eth0 and qemu-kvm VMs without any issue.

konradsa commented 7 years ago

I would love to run a headless C2 with 4.10 as well. So basic instructions on how to do that would be nice.

On Thu, Dec 29, 2016 at 11:58 AM, graysky notifications@github.com wrote:

@mmoll https://github.com/mmoll - Thanks for the info. I'm ready to stop using my C2 all together since I cannot get the bridge ethernet to work with lxcs (Arch ARM or Ubuntu). I am very interested in running a headless server with a more recent kernel. Have you personally do this or just believe it to be possible?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/hardkernel/linux/issues/259#issuecomment-269659414, or mute the thread https://github.com/notifications/unsubscribe-auth/AHqig48lzsI9YR4nbM9o42dPzgml3Iyiks5rM-aygaJpZM4LUSLc .

mmoll commented 7 years ago

@konradsa the hardkernel wiki has all the informationen needed, however I really want to qoute linux-meson.com here: "Not for end users - yet!".

graysky2 commented 7 years ago

@mmoll - Can you describe how you're managing your C2's network and bridge? I have tried and failed using both netctl and systemd-networkd (both on Arch ARM and Ubuntu). I do not want to run Ubuntu nor it's native ifup util.

mmoll commented 7 years ago

@graysky2 then I can't help you. I configured it in /etc/network/interfaces.

mmoll commented 7 years ago

(...which results in the same as using brctl, AFAICT)

graysky2 commented 7 years ago

@graysky2 then I can't help you. I configured it in /etc/network/interfaces.

I think networkmanager-ifupdown is available for Arch ARM. I will give it a try. Could you post the needed config that I should write out to /etc/network/interfaces to enable a functional bridge? Thanks!

mmoll commented 7 years ago

@graysky2 sure, here my complete config:

root@hodroid:~# cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual

auto br0
iface br0 inet static
  address 192.168.200.10
  netmask 255.255.255.0
  network 192.168.200.0
  broadcast 192.168.200.255
  gateway 192.168.200.8
  dns-search kvedulv.de
  dns-nameservers 192.168.200.8
  bridge_ports eth0
  bridge_stp off
  bridge_fd 0
  bridge_maxwait 0
  post-up ip link set br0 address 00:1e:06:33:c9:9e
iface br0 inet6 static
  address 2001:470:76ba:1::10
  netmask 64
  gateway 2001:470:76ba:1::1

root@hodroid:~# brctl show
bridge name bridge id       STP enabled interfaces
br0     8000.001e0633c99e   no      eth0
                            vnet0
graysky2 commented 7 years ago

NetworkManger coredumps on Arch.

graysky2 commented 7 years ago

@mmoll - I have ubuntu (ubuntu64-16.04-minimal-odroid-c2-20160815) on the ODROID-C2 now. The network works with the out-of-the-box /etc/network/interfaces.

I installed bridge-utils and slightly modified your /etc/network/interfaces shown below. After a reboot, I have a non-functional network just like under Arch. (I cannot ping anything nor connect to anything)... Hardware???

# cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual

auto br0
iface br0 inet static
  address 192.168.1.24
  netmask 255.255.255.0
  network 192.168.1.0
  broadcast 192.168.1.255
  gateway 192.168.1.1
  dns-nameservers 192.168.1.1
  bridge_ports eth0
  bridge_stp off
  bridge_fd 0
  bridge_maxwait 0
  post-up ip link set br0 address 00:1e:06:33:59:e7
# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 4096 qdisc noqueue state UNKNOWN group default 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br0 state UP group default qlen 1000
    inet 192.168.1.242/24 brd 192.168.1.255 scope global eth0
       valid_lft forever preferred_lft forever
3: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default 
    link/ether 00:1e:06:33:59:e7 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.24/24 brd 192.168.1.255 scope global br0
       valid_lft forever preferred_lft forever
# ip r
default via 192.168.1.1 dev eth0 
192.168.1.0/24 dev eth0  proto kernel  scope link  src 192.168.1.242 
192.168.1.0/24 dev br0  proto kernel  scope link  src 192.168.1.24