[SOLVED] Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Post Reply
karog
Posts: 22
Joined: Fri Oct 09, 2015 3:28 am
languages_spoken: english
ODROIDs: XU4,N2
Has thanked: 0
Been thanked: 1 time
Contact:

[SOLVED] Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by karog » Mon Apr 22, 2019 3:42 am

On my new N2, I have tried to install wireguard-dkms under both Ubuntu 18.04.2 LTS (GNU/Linux 4.9.168-24 aarch64) and Arch Linux Arm 4.9.168-1. On both I get the same error from missing header file.

Code: Select all

./arch/arm64/include/asm/irqflags.h:24:10: fatal error: ../drivers/amlogic/debug/irqflags_debug_arm64.h: No such file or directory
 #include <../drivers/amlogic/debug/irqflags_debug_arm64.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
irqflags_debug_arm64.h is included because in ./arch/arm64/include/asm/irqflags.h there is

Code: Select all

#ifdef CONFIG_AMLOGIC_DEBUG_LOCKUP
#include <../drivers/amlogic/debug/irqflags_debug_arm64.h>
#else
I doubt the flag CONFIG_AMLOGIC_DEBUG_LOCKUP was meant to be set. I found two solutions.

First, I found a copy of irqflags_debug_arm64.h at https://github.com/hardkernel/linux in drivers/amlogic/debug and this allowed successful installation of wireguard-dkms.

Second, I edited #ifdef CONFIG_AMLOGIC_DEBUG_LOCKUP to #ifndef CONFIG_AMLOGIC_DEBUG_LOCKUP in irqflags.h because the code after the #else was the same as in irqflags_debug_arm64.h but for some irq traces and such added to the latter. This also allowed successful installation of wireguard-dkms.
These users thanked the author karog for the post:
sjuut (Wed May 01, 2019 4:36 pm)

User avatar
meveric
Posts: 10563
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
Has thanked: 19 times
Been thanked: 161 times
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by meveric » Mon Apr 22, 2019 5:42 am

works perfectly fine on Debian Stretch:

Code: Select all

root@odroid-stretch64:~# apt install wireguard-dkms
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  dkms
Suggested packages:
  python3-apport
Recommended packages:
  fakeroot lsb-release wireguard-tools
The following NEW packages will be installed:
  dkms wireguard-dkms
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 338 kB of archives.
After this operation, 2,078 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://ftp.uk.debian.org/debian stretch/main arm64 dkms all 2.3-2 [74.8 kB]
Get:2 https://oph.mdrjr.net/meveric stretch/backports arm64 wireguard-dkms all 0.0.20190123-1 [264 kB]
Fetched 338 kB in 0s (574 kB/s)     
Selecting previously unselected package dkms.
(Reading database ... 229127 files and directories currently installed.)
Preparing to unpack .../archives/dkms_2.3-2_all.deb ...
Unpacking dkms (2.3-2) ...
Selecting previously unselected package wireguard-dkms.
Preparing to unpack .../wireguard-dkms_0.0.20190123-1_all.deb ...
Unpacking wireguard-dkms (0.0.20190123-1) ...
Setting up dkms (2.3-2) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up wireguard-dkms (0.0.20190123-1) ...
Loading new wireguard-0.0.20190123 DKMS files...
dpkg: warning: version '4.9.162+
4.9.168+-4.9.162+
4.9.168+' has bad syntax: invalid character in version number
dpkg: warning: version '4.9.162+
4.9.168+-4.9.162+
4.9.168+' has bad syntax: invalid character in version number
Building for 4.9.168+
Building initial module for 4.9.168+
Done.

wireguard:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.9.168+/kernel/net/

depmod...

DKMS: install completed.
root@odroid-stretch64:~# modprobe wireguard 
root@odroid-stretch64:~# lsmod | grep wireguard
wireguard             143360  0
ip6_udp_tunnel         16384  1 wireguard
udp_tunnel             16384  1 wireguard
ipv6                  479232  51 wireguard
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

karog
Posts: 22
Joined: Fri Oct 09, 2015 3:28 am
languages_spoken: english
ODROIDs: XU4,N2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by karog » Mon Apr 22, 2019 8:43 am

meveric wrote:
Mon Apr 22, 2019 5:42 am
works perfectly fine on Debian Stretch:
Does your headers ./arch/arm64/include/asm/irqflags.h contain the following?

Code: Select all

#ifdef CONFIG_AMLOGIC_DEBUG_LOCKUP
#include <../drivers/amlogic/debug/irqflags_debug_arm64.h>
#else
If so, does ./arch/arm64/drivers/amlogic/debug/irqflags_debug_arm64.h exist?

User avatar
meveric
Posts: 10563
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
Has thanked: 19 times
Been thanked: 161 times
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by meveric » Mon Apr 22, 2019 11:16 pm

Code: Select all

root@odroid-stretch64:/usr/src/linux-headers-4.9.168+# head -n30 arch/arm64/include/asm/irqflags.h 
/*
 * Copyright (C) 2012 ARM Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
#ifndef __ASM_IRQFLAGS_H
#define __ASM_IRQFLAGS_H

#ifdef __KERNEL__

#include <asm/ptrace.h>

#ifdef CONFIG_AMLOGIC_DEBUG_LOCKUP
#include <../drivers/amlogic/debug/irqflags_debug_arm64.h>
#else
/*
 * CPU interrupt mask handling.
 */
static inline unsigned long arch_local_irq_save(void)
{
root@odroid-stretch64:/usr/src/linux-headers-4.9.168+# ll drivers/amlogic/debug/irqflags_debug_arm64.h 
-rw-r--r-- 1 root root 2693 Feb 16 17:29 drivers/amlogic/debug/irqflags_debug_arm64.h
both yes.
Although your "path" is wrong, it's not ./arch/arm64/drivers/amlogic/debug/irqflags_debug_arm64.h
but ./drivers/amlogic/debug/irqflags_debug_arm64.h
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

karog
Posts: 22
Joined: Fri Oct 09, 2015 3:28 am
languages_spoken: english
ODROIDs: XU4,N2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by karog » Tue Apr 23, 2019 5:43 am

meveric wrote:
Mon Apr 22, 2019 11:16 pm
both yes.
Although your "path" is wrong, it's not ./arch/arm64/drivers/amlogic/debug/irqflags_debug_arm64.h
but ./drivers/amlogic/debug/irqflags_debug_arm64.h
Well the actual path in irqflags.h is <../drivers/amlogic/debug/irqflags_debug_arm64.h> so is relative to -I paths in the make. It looks in both ./drivers and ./arch/arm64/drivers for wireguard-dkms.

In any case, for Ubuntu and Arch, irqflags_debug_arm64.h does not exist in either place which is why I get the error. The only file in ./drivers/amlogic/debug for Arch is Kconfig. I think that is also true for Ubuntu but I would have to swap EMMC's and reboot to check.

Thanks for checking.

User avatar
alanplum241276
Posts: 18
Joined: Tue Apr 23, 2019 9:53 pm
languages_spoken: English
ODROIDs: N2, XU4
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by alanplum241276 » Tue Apr 23, 2019 9:56 pm

@karog

I have a similar issue to you, but I downloaded the .h file and put it in the appropriate place.

However, when wireguard DKMS compiles I am getting:

ld: cannot open linker script file ./arch/arm64/kernel/module.lds: No such file or directory
scripts/Makefile.modpost:159: recipe for target '/var/lib/dkms/wireguard/0.0.20190406/build/wireguard.ko' failed
make[1]: *** [/var/lib/dkms/wireguard/0.0.20190406/build/wireguard.ko] Error 1
Makefile:1629: recipe for target 'modules' failed

Is it possible you could offer me some assistance? Ubuntu with kernel 4.9.168-24

karog
Posts: 22
Joined: Fri Oct 09, 2015 3:28 am
languages_spoken: english
ODROIDs: XU4,N2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by karog » Wed Apr 24, 2019 1:47 am

alanplum241276 wrote:
Tue Apr 23, 2019 9:56 pm
@karog
ld: cannot open linker script file ./arch/arm64/kernel/module.lds: No such file or directory
scripts/Makefile.modpost:159: recipe for target '/var/lib/dkms/wireguard/0.0.20190406/build/wireguard.ko' failed
make[1]: *** [/var/lib/dkms/wireguard/0.0.20190406/build/wireguard.ko] Error 1
Makefile:1629: recipe for target 'modules' failed

Is it possible you could offer me some assistance? Ubuntu with kernel 4.9.168-24
I really run Arch linux but I have Ubuntu on an EMMC chip. I mounted that and looked in /usr/src/linux-4.9.168-24/arch/arm64/kernel and did not find module.lds.

Arch module.lds and odroidn2-4.9.y branch *** be sure to match ownership and permission with other files in the target dir when you create the file

Code: Select all

SECTIONS {
	.plt : { BYTE(0) }
}
EDIT: I have since discovered module.lds at https://github.com/hardkernel/linux at arch/arm64/kernel/module.lds whose actual URL for the odroidn2-4.9.y branch is https://github.com/hardkernel/linux/blo ... module.lds and it matches the Arch version.

User avatar
alanplum241276
Posts: 18
Joined: Tue Apr 23, 2019 9:53 pm
languages_spoken: English
ODROIDs: N2, XU4
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by alanplum241276 » Wed Apr 24, 2019 7:37 am

I’m thinking that will work, but not sure how it will survive kernel upgrades.

Tomorrow I think I’ll try meverics N2 kernel which comes with the headers

As he has confirmed DKMS works on Stretch, then hopefully his kernel and headers will work for Ubuntu.

This is going to be a remote N2 so need to reduce the risks of DKMS not working.

User avatar
odroid
Site Admin
Posts: 32677
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 209 times
Been thanked: 364 times
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by odroid » Wed Apr 24, 2019 9:11 am

We will add the missing/broken header files in the next update.
Meanwhile, try meveric's kernel packages.

User avatar
alanplum241276
Posts: 18
Joined: Tue Apr 23, 2019 9:53 pm
languages_spoken: English
ODROIDs: N2, XU4
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by alanplum241276 » Wed Apr 24, 2019 4:01 pm

I switched over to Meverics N2 Kernel this morning using the meta-data package provided.

All is now working perfectly using 4.9.168+ with headers. Wireguard DKMS compiles with no issues.

Thanks for your help, and very big thanks to @meveric for your awesome repo :)

User avatar
meveric
Posts: 10563
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
Has thanked: 19 times
Been thanked: 161 times
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by meveric » Wed Apr 24, 2019 4:43 pm

you're welcome :)
These users thanked the author meveric for the post:
alanplum241276 (Wed Apr 24, 2019 9:16 pm)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

dabeeeenster
Posts: 5
Joined: Sat Apr 13, 2019 6:49 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 0
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by dabeeeenster » Thu Apr 25, 2019 9:43 pm

odroid wrote:
Wed Apr 24, 2019 9:11 am
We will add the missing/broken header files in the next update.
Meanwhile, try meveric's kernel packages.
Any idea when this will be?

User avatar
odroid
Site Admin
Posts: 32677
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 209 times
Been thanked: 364 times
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by odroid » Fri Apr 26, 2019 8:48 am

It must be available a couple of hours ago.

Code: Select all

root@odroid:~# uname -a
Linux odroid 4.9.170-25 #1 SMP PREEMPT Thu Apr 25 20:03:24 -03 2019 aarch64 aarch64 aarch64 GNU/Linux
Please try it and let us know the result.

dabeeeenster
Posts: 5
Joined: Sat Apr 13, 2019 6:49 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 0
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by dabeeeenster » Fri Apr 26, 2019 5:45 pm

Hmm - I'm getting this:

Code: Select all

root@odroid:~# apt-get install wireguard-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  wireguard-dkms
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/553 kB of archives.
After this operation, 4,561 kB of additional disk space will be used.
Selecting previously unselected package wireguard-dkms.
(Reading database ... 177955 files and directories currently installed.)
Preparing to unpack .../wireguard-dkms_0.0.20190406-wg1~bionic_all.deb ...
Unpacking wireguard-dkms (0.0.20190406-wg1~bionic) ...
Setting up wireguard-dkms (0.0.20190406-wg1~bionic) ...
Loading new wireguard-0.0.20190406 DKMS files...
It is likely that 4.9.170-25 belongs to a chroot's host
Building for 4.15.0-48-generic and 4.9.170-25
Building initial module for 4.15.0-48-generic
Done.

wireguard:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.15.0-48-generic/updates/dkms/

depmod...

DKMS: install completed.
Building initial module for 4.9.170-25
ERROR (dkms apport): kernel package linux-headers-4.9.170-25 is not supported
Error! Bad return status for module build on kernel: 4.9.170-25 (aarch64)
Consult /var/lib/dkms/wireguard/0.0.20190406/build/make.log for more information.
root@odroid:~# modprobe wireguard
modprobe: FATAL: Module wireguard not found in directory /lib/modules/4.9.170-25

User avatar
alanplum241276
Posts: 18
Joined: Tue Apr 23, 2019 9:53 pm
languages_spoken: English
ODROIDs: N2, XU4
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by alanplum241276 » Fri Apr 26, 2019 8:28 pm

What does CAT /var/lib/dkms/wireguard/0.0.20190406/build/make.log reveal?

dabeeeenster
Posts: 5
Joined: Sat Apr 13, 2019 6:49 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 0
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by dabeeeenster » Fri Apr 26, 2019 9:10 pm

Code: Select all

root@odroid:~# cat  /var/lib/dkms/wireguard/0.0.20190406/build/make.log
DKMS make.log for wireguard-0.0.20190406 for kernel 4.9.170-25 (aarch64)
Fri Apr 26 09:43:25 BST 2019
make: Entering directory '/usr/src/linux-4.9.170-25'
  LD      /var/lib/dkms/wireguard/0.0.20190406/build/built-in.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20190406/build/main.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20190406/build/noise.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20190406/build/device.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20190406/build/peer.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20190406/build/queueing.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20190406/build/timers.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20190406/build/send.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20190406/build/receive.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20190406/build/socket.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20190406/build/peerlookup.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20190406/build/allowedips.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20190406/build/ratelimiter.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20190406/build/cookie.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20190406/build/netlink.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20190406/build/crypto/zinc/chacha20/chacha20.o
  PERLASM /var/lib/dkms/wireguard/0.0.20190406/build/crypto/zinc/chacha20/chacha20-arm64.S
  CC [M]  /var/lib/dkms/wireguard/0.0.20190406/build/crypto/zinc/poly1305/poly1305.o
  PERLASM /var/lib/dkms/wireguard/0.0.20190406/build/crypto/zinc/poly1305/poly1305-arm64.S
  CC [M]  /var/lib/dkms/wireguard/0.0.20190406/build/crypto/zinc/chacha20poly1305.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20190406/build/crypto/zinc/blake2s/blake2s.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20190406/build/crypto/zinc/curve25519/curve25519.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20190406/build/compat/siphash/siphash.o
  AS [M]  /var/lib/dkms/wireguard/0.0.20190406/build/crypto/zinc/chacha20/chacha20-arm64.o
  AS [M]  /var/lib/dkms/wireguard/0.0.20190406/build/crypto/zinc/poly1305/poly1305-arm64.o
  LD [M]  /var/lib/dkms/wireguard/0.0.20190406/build/wireguard.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /var/lib/dkms/wireguard/0.0.20190406/build/wireguard.mod.o
  LD [M]  /var/lib/dkms/wireguard/0.0.20190406/build/wireguard.ko
ld: cannot open linker script file ./arch/arm64/kernel/module.lds: No such file or directory
scripts/Makefile.modpost:159: recipe for target '/var/lib/dkms/wireguard/0.0.20190406/build/wireguard.ko' failed
make[1]: *** [/var/lib/dkms/wireguard/0.0.20190406/build/wireguard.ko] Error 1
Makefile:1629: recipe for target 'modules' failed
make: *** [modules] Error 2
make: Leaving directory '/usr/src/linux-4.9.170-25'
root@odroid:~#

karog
Posts: 22
Joined: Fri Oct 09, 2015 3:28 am
languages_spoken: english
ODROIDs: XU4,N2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by karog » Fri Apr 26, 2019 9:23 pm

As it shows near the bottom, you are missing module.lds. Read up thread about that.

User avatar
alanplum241276
Posts: 18
Joined: Tue Apr 23, 2019 9:53 pm
languages_spoken: English
ODROIDs: N2, XU4
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by alanplum241276 » Fri Apr 26, 2019 9:28 pm

Yes, as karog says that was the exact problem I had.

Just switch over to meveric's kernel. It's soooo much better and it just works.

dabeeeenster
Posts: 5
Joined: Sat Apr 13, 2019 6:49 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 0
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by dabeeeenster » Fri Apr 26, 2019 9:32 pm

karog wrote:
Fri Apr 26, 2019 9:23 pm
As it shows near the bottom, you are missing module.lds. Read up thread about that.
OK yes so grabbing https://raw.githubusercontent.com/hardk ... module.lds and putting that file in /usr/src/linux-4.9.170-25/arch/arm64/kernel/ and now the installation works. I guess I'd need to do this every time the kernel is updated?

User avatar
alanplum241276
Posts: 18
Joined: Tue Apr 23, 2019 9:53 pm
languages_spoken: English
ODROIDs: N2, XU4
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by alanplum241276 » Fri Apr 26, 2019 9:56 pm

Yes, but that was my problem.

As my N2 is headless and also remote, if the kernel updated, wireguard would stop and would need manual intervention.

That's why I need a reliable DKMS build every update.

crashoverride
Posts: 4551
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 79 times
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by crashoverride » Sat Apr 27, 2019 1:02 am

dabeeeenster wrote:
Fri Apr 26, 2019 9:10 pm
ld: cannot open linker script file ./arch/arm64/kernel/module.lds: No such file or directory
I am also running into this issue with my own kernel module (not DKMS or wireguard related).

karog
Posts: 22
Joined: Fri Oct 09, 2015 3:28 am
languages_spoken: english
ODROIDs: XU4,N2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by karog » Sat Apr 27, 2019 1:49 am

module.lds should have been added with irqflags_debug_arm64.h in the 4.9.170 update. I think odroid simply missed it. I did not have that problem with Arch linux, just the irq problem. The module.lds showed up for Ubuntu in the middle of the thread. Once fixed that should be the end of the problem.

@odroid? Fix for the next time?

User avatar
alanplum241276
Posts: 18
Joined: Tue Apr 23, 2019 9:53 pm
languages_spoken: English
ODROIDs: N2, XU4
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by alanplum241276 » Mon Apr 29, 2019 9:01 pm

@odroid, yes I can also confirm that module.lds is still missing (in ubuntu) from 4.9.170-25:

Can you please do another update to the linux-odroid-n2 package that includes:

module.lds in /arch/arm64/kernel/

Many thanks

mdrjr
Site Admin
Posts: 11726
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 13 times
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by mdrjr » Mon Apr 29, 2019 11:13 pm

That would be my bad.. I've fixed it for the next release that should be today :)
These users thanked the author mdrjr for the post:
alanplum241276 (Mon Apr 29, 2019 11:45 pm)

User avatar
alanplum241276
Posts: 18
Joined: Tue Apr 23, 2019 9:53 pm
languages_spoken: English
ODROIDs: N2, XU4
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by alanplum241276 » Mon Apr 29, 2019 11:45 pm

mdrjr wrote:
Mon Apr 29, 2019 11:13 pm
That would be my bad.. I've fixed it for the next release that should be today :)
Thank you!! :)

mdrjr
Site Admin
Posts: 11726
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 13 times
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by mdrjr » Tue Apr 30, 2019 12:54 am

I've just released the update.. it should include all the files now

User avatar
alanplum241276
Posts: 18
Joined: Tue Apr 23, 2019 9:53 pm
languages_spoken: English
ODROIDs: N2, XU4
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by alanplum241276 » Tue Apr 30, 2019 2:23 am

It does, thanks, however I have another issue now. If this is different then I can start another thread.

So after doing apt full-upgrade the new kernel was installed, and includes the necessary headers which is great, but DKMS didn’t kick in meaning wireguard module wasn’t compiled for the new kernel.

After a reboot, the N2 starts with the new kernel but obviously the wireguard module is missing due to DKMS not running.

I’m fairly new to Linux so apologies if this is something different, but any help would be appreciated.

Thanks

mdrjr
Site Admin
Posts: 11726
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 13 times
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by mdrjr » Tue Apr 30, 2019 2:59 am

Nope, its the right thread, Lets check whats needed to run in order to rebuild the dkms modules when a new kernel is installed so it can fixed as well.
These users thanked the author mdrjr for the post:
alanplum241276 (Tue Apr 30, 2019 3:37 am)

User avatar
alanplum241276
Posts: 18
Joined: Tue Apr 23, 2019 9:53 pm
languages_spoken: English
ODROIDs: N2, XU4
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by alanplum241276 » Tue Apr 30, 2019 4:08 am

I can see that /etc/kernel/postinst.d/dkms exists so not sure why it’s not working

User avatar
meveric
Posts: 10563
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
Has thanked: 19 times
Been thanked: 161 times
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by meveric » Tue Apr 30, 2019 6:19 am

alanplum241276 wrote:
Tue Apr 30, 2019 4:08 am
I can see that /etc/kernel/postinst.d/dkms exists so not sure why it’s not working
linux-odroid is a selfmade package that only triggers post installation functions defined by @mdrjr, it does not follow any of the post installation functions normally triggered by a regular kernel/header installation.
Which also means the scripts inside /etc/kernel are all ignored.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

User avatar
alanplum241276
Posts: 18
Joined: Tue Apr 23, 2019 9:53 pm
languages_spoken: English
ODROIDs: N2, XU4
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by alanplum241276 » Tue Apr 30, 2019 8:03 pm

:(

Well, lets hope that they can fix this issue as it's my last stumbling block before putting this N2 into a remote location, headless.

Thanks for all the efforts involved so far. I'm so glad I left RockChip behind.....

User avatar
alanplum241276
Posts: 18
Joined: Tue Apr 23, 2019 9:53 pm
languages_spoken: English
ODROIDs: N2, XU4
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by alanplum241276 » Fri May 17, 2019 5:50 am

mdrjr wrote:
Tue Apr 30, 2019 2:59 am
Nope, its the right thread, Lets check whats needed to run in order to rebuild the dkms modules when a new kernel is installed so it can fixed as well.
@mdrjr I just updated the Linux-firmware via apt full-upgrade and wireguard DKMS appears to have worked. 4.9.170-27

Can you just confirm that this has been fixed and that this wasn’t just a one off?

Thanks again for helping with this issue.

karog
Posts: 22
Joined: Fri Oct 09, 2015 3:28 am
languages_spoken: english
ODROIDs: XU4,N2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by karog » Fri May 17, 2019 6:02 am

alanplum241276 wrote:
Fri May 17, 2019 5:50 am

@mdrjr I just updated the Linux-firmware via apt full-upgrade and wireguard DKMS appears to have worked. 4.9.170-27

Can you just confirm that this has been fixed and that this wasn’t just a one off?

Thanks again for helping with this issue.
Not certain that it has been fixed. I have these header problems with wireguard-dkms on arch linux arm. The linux-odroid-n2-headers package recently updated and my wireguard-dkms built fine. But it was because I already had the missing files in place. The upgrade did not affect that. I removed the headers package and saw the missing files I had added were left all alone. I manually removed them, reloaded the headers package, checked and found the missing files were still missing. I had to manually add them back again to get wireguard-dkms to build.

User avatar
alanplum241276
Posts: 18
Joined: Tue Apr 23, 2019 9:53 pm
languages_spoken: English
ODROIDs: N2, XU4
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by alanplum241276 » Fri May 17, 2019 6:20 am

Hi karog,

I was mainly referring to the kernel now correctly firing the DKMS after each upgrade. That’s what I’m hoping is now fixed.

As per the headers, I’m using Ubuntu and I haven’t manually added anything since I rebuilt, so perhaps just an issue with arch?

karog
Posts: 22
Joined: Fri Oct 09, 2015 3:28 am
languages_spoken: english
ODROIDs: XU4,N2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by karog » Fri May 17, 2019 6:32 am

Glad your auto-rebuild is working.

As for headers, if you added missing ones once and then left it alone, that is the issue I was talking about. Was just saying that working does not guarantee the headers are fixed. It may be just arch at this point. I wrote a post on archlinuxarm forums a week ago and got no response. Earlier today I learned I should have posted in a different area where someone else posted just today on the same issue. I moved my post there for completeness. I hope it gets attention now. I don't really understand why when the arch package info claims it is dependent on exactly the URL where I found the missing files, it hasn't already been brought up to date.

I like arch in a lot of ways, but there is a lot of sloppiness in their package maintenance/upgrades.

User avatar
alanplum241276
Posts: 18
Joined: Tue Apr 23, 2019 9:53 pm
languages_spoken: English
ODROIDs: N2, XU4
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by alanplum241276 » Fri May 17, 2019 4:31 pm

Damn, it didn't work. Had an update to odroid-n2 kernel this morning and it didn't fire DKMS :(

User avatar
alanplum241276
Posts: 18
Joined: Tue Apr 23, 2019 9:53 pm
languages_spoken: English
ODROIDs: N2, XU4
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by alanplum241276 » Fri May 17, 2019 4:52 pm

I'm posting this here just for my future reference.

After every kernel update, e.g. linux-odroid-n2 I do the following *before* rebooting:

sudo dkms build -m wireguard -v 0.0.20190406 -k 4.14.120-160
sudo dkms install -m wireguard -v 0.0.20190406 -k 4.14.120-160
sudo dkms remove -m wireguard -v 0.0.20190406 -k 4.14.111-158

Putting the appropriate values in for kernel, wireguard etc

User avatar
odroid
Site Admin
Posts: 32677
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 209 times
Been thanked: 364 times
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by odroid » Fri May 17, 2019 4:56 pm

We've been trying to make an auto-trigger for the DKMS build but it failed.
We will try it again for the next update. sorry about that.

User avatar
alanplum241276
Posts: 18
Joined: Tue Apr 23, 2019 9:53 pm
languages_spoken: English
ODROIDs: N2, XU4
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by alanplum241276 » Fri May 17, 2019 5:02 pm

@odroid.....thank you for trying....keep at it (Y)

User avatar
odroid
Site Admin
Posts: 32677
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 209 times
Been thanked: 364 times
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by odroid » Tue Jun 11, 2019 11:24 am

The recent Kernel update package 4.9.180-30 has a new feature of the DKMS rebuild trigger.
Please try it and let us know the result.
These users thanked the author odroid for the post:
alanplum241276 (Tue Jun 11, 2019 9:45 pm)

User avatar
alanplum241276
Posts: 18
Joined: Tue Apr 23, 2019 9:53 pm
languages_spoken: English
ODROIDs: N2, XU4
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Missing header <../drivers/amlogic/debug/irqflags_debug_arm64.h>

Unread post by alanplum241276 » Tue Jun 11, 2019 9:38 pm

odroid wrote:
Tue Jun 11, 2019 11:24 am
The recent Kernel update package 4.9.180-30 has a new feature of the DKMS rebuild trigger.
Please try it and let us know the result.
WOOHOO!!!. It worked perfectly.

Thanks @odroid for your hard work and effort.

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 0 guests