ODROID-N2: Missing kernel header

Problems with packages? Post here, using [tags] of the package name.

ODROID-N2: Missing kernel header

Postby krovetz » Thu May 16, 2019 3:31 pm

The ODROID-N2 is a wonderful addition to ArchLinixArm. Thank you! Building an external module doesn't currently work due to missing headers.

$this->bbcode_second_pass_code('', 'n2> make
KMOD ko/enable_arm_pmu.ko
In file included from ./arch/arm64/include/asm/sysreg.h:25,
from ./arch/arm64/include/asm/cputype.h:108,
from ./arch/arm64/include/asm/cachetype.h:19,
from ./arch/arm64/include/asm/cache.h:19,
from ./include/linux/cache.h:5,
from ./include/linux/printk.h:8,
from ./include/linux/kernel.h:13,
from /home/krovetz/imac/tmp/enable_arm_pmu_v8/ko/enable_arm_pmu.c:4:
./arch/arm64/include/asm/opcodes.h:5:10: fatal error: ../../arm/include/asm/opcodes.h: No such file or directory
#include <../../arm/include/asm/opcodes.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
')
krovetz
 
Posts: 78
Joined: Tue Jun 26, 2012 11:03 pm

Re: ODROID-N2: Missing kernel header

Postby karog » Thu May 16, 2019 8:46 pm

Quite so. I posted the same thing a week ago regarding the linux-odroid-n2-headers package but did not know I should post it here. I wrote:

When I try to install wireguard-dkms, I get build errors for building the module because of missing files, namely:
$this->bbcode_second_pass_code('', '
build/arch/arm/include/asm/opcodes.h
build/arch/arm/include/asm/xen/hypervisor.h
build/drivers/amlogic/debug/irqflags_debug_arm64.h
')
I was able to find these specific files at https://github.com/hardkernel/linux/tree/odroidn2-4.9.y which is the URL for the package linux-odroid-n2-headers. There would appear to be a lot of other missing files as well in the alarm package.

What is the best way to get this package brought up to date?
karog
 
Posts: 300
Joined: Thu Jan 05, 2012 7:55 pm

Re: ODROID-N2: Missing kernel header

Postby sjuut » Mon May 20, 2019 11:15 am

I have the same issue and for me, copying the files from the upstream repo to the 'missing' folders does not resolve the problem.
sjuut
 
Posts: 1
Joined: Tue May 14, 2019 1:47 pm

Re: ODROID-N2: Missing kernel header

Postby karog » Wed Jun 12, 2019 7:27 pm

The latest core/linux-odroid-n2-headers 4.9.180-1 added a number of the missing files.

However, the following dir is still missing almost all of its files:

build/drivers/amlogic/debug

In particular, as reported upthread, the package wireguard-dkms needs:

build/drivers/amlogic/debug/irqflags_debug_arm64.h
karog
 
Posts: 300
Joined: Thu Jan 05, 2012 7:55 pm

Re: ODROID-N2: Missing kernel header

Postby krovetz » Sun Jun 23, 2019 6:29 pm

A recent update to the kernel and headers appears to have fixed this for me. Thank you.
krovetz
 
Posts: 78
Joined: Tue Jun 26, 2012 11:03 pm


Return to Packages

Who is online

Users browsing this forum: No registered users and 4 guests