odroid-c2 on mainline kernel

This forum is for topics dealing with problems with software specifically in the AArch64 repo.

odroid-c2 on mainline kernel

Postby mcloaked » Fri Jan 05, 2018 9:56 pm

I upgraded the kernel to mainline:

$this->bbcode_second_pass_code('', '
pacman -R uboot-odroid-c2
pacman -S uboot-odroid-c2-mainline linux-aarch64
reboot
')

The system boots, and I can ssh in to this headless system, but I have several issues that I would appreciate any advice on.

1) haveged systemd service fails:

$this->bbcode_second_pass_code('', '
[root@odroid-c2 ~]# systemctl status haveged
* haveged.service - Entropy Harvesting Daemon
Loaded: loaded (/usr/lib/systemd/system/haveged.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2018-01-05 20:29:59 UTC; 10min ago
Docs: man:haveged(8)
Process: 303 ExecStart=/usr/bin/haveged -F -w 1024 -v 1 (code=exited, status=1/FAILURE)
Main PID: 303 (code=exited, status=1/FAILURE)

Jan 05 20:29:58 odroid-c2 systemd[1]: Started Entropy Harvesting Daemon.
Jan 05 20:29:58 odroid-c2 haveged[303]: haveged: Couldn't initialize HAVEGE rng 5
Jan 05 20:29:58 odroid-c2 haveged[303]: haveged starting up
Jan 05 20:29:59 odroid-c2 systemd[1]: haveged.service: Main process exited, code=exited, status=1/FAILURE
Jan 05 20:29:59 odroid-c2 systemd[1]: haveged.service: Failed with result 'exit-code'.
')

Is there a workaround?

2) systemd-modules-load also fails:

$this->bbcode_second_pass_code('', '
[root@odroid-c2 ~]# systemctl status systemd-modules-load
* systemd-modules-load.service - Load Kernel Modules
Loaded: loaded (/usr/lib/systemd/system/systemd-modules-load.service; static; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2017-12-21 13:33:56 UTC; 2 weeks 1 days ago
Docs: man:systemd-modules-load.service(8)
man:modules-load.d(5)
Process: 254 ExecStart=/usr/lib/systemd/systemd-modules-load (code=exited, status=1/FAILURE)
Main PID: 254 (code=exited, status=1/FAILURE)

Dec 21 13:33:55 odroid-c2 systemd-modules-load[254]: Failed to find module 'aml_i2c'
Dec 21 13:33:56 odroid-c2 systemd[1]: systemd-modules-load.service: Main process exited, code=exited, status=1/FAIL
Dec 21 13:33:56 odroid-c2 systemd[1]: systemd-modules-load.service: Failed with result 'exit-code'.
Dec 21 13:33:56 odroid-c2 systemd[1]: Failed to start Load Kernel Modules.
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
')

Is there a workaround for this?

3) The RTC shield hardware clock is not working ( and related to 2) since the RTC needs the aml_i2c module:

$this->bbcode_second_pass_code('', '
[root@odroid-c2 ~]# hwclock -r
hwclock: Cannot access the Hardware Clock via any known method.
hwclock: Use the --debug option to see the details of our search for an access method.
[root@odroid-c2 ~]# timedatectl
Local time: Fri 2018-01-05 20:31:46 UTC
Universal time: Fri 2018-01-05 20:31:46 UTC
RTC time: n/a
Time zone: UTC (UTC, +0000)
System clock synchronized: yes
systemd-timesyncd.service active: yes
RTC in local TZ: no
[root@odroid-c2 ~]# ./timeupd
Couldn't open blob from '/boot/dtbs/meson64_odroidc2.dtb': No such file or directory
modprobe: FATAL: Module aml_i2c not found in directory /lib/modules/4.14.11-1-ARCH
')

the content of timeupd is:

$this->bbcode_second_pass_code('', '
#!/bin/bash
fdtput -t s /boot/dtbs/meson64_odroidc2.dtb /i2c@c1108500/pcf8563@51 status "okay"
modprobe aml_i2c
#hwclock --systohc --utc
exit
')

that used to work previously with the old kernel ( linux-odroid-c2-3.14.79-28 ). The RTC and system-modules-load issue are related since the RTC needs the aml_i2c module!

It is now running 4.14.11-1-ARCH but I would like to fix these two remaining issues if possible. Any input appreciated.

Edit: The haveged problem is now resolved by stopping/disabling that service, and installing rng-tools instead and enabling the rngd service instead. After an update this morning that brought in the kernel 4.14.12-1-ARCH, there is now only the problem with the RTC, and it looks predominantly as though the aml_i2c module is not built into the kernel - so I wonder if the maintainers would be able to switch that on with the kernel builds so that it is available, since there are presumably reasonable numbers of users with the odroid-c2 who have the RTC module that needs this?
mcloaked
 
Posts: 83
Joined: Thu Oct 16, 2014 4:16 pm

Return to ARMv8

Who is online

Users browsing this forum: No registered users and 26 guests

cron