Welcome! Log In Create A New Profile

Advanced

Problem compiling Linux Kernel 4.4.89 Oxnas

Posted by sakatgg 
Problem compiling Linux Kernel 4.4.89 Oxnas
January 05, 2018 01:25PM
Error compiled kernel linux-4.4.89

  CC      drivers/ata/libahci_platform.o
  CC      drivers/ata/sata_oxnas.o
drivers/ata/sata_oxnas.c:32:24: fatal error: mach/utils.h: Нет такого файла или каталога (no found)
 #include <mach/utils.h>
                        ^
compilation terminated.
scripts/Makefile.build:258: ошибка выполнения рецепта для цели «drivers/ata/sata_oxnas.o»
make[2]: *** [drivers/ata/sata_oxnas.o] Ошибка 1
scripts/Makefile.build:403: ошибка выполнения рецепта для цели «drivers/ata»
make[1]: *** [drivers/ata] Ошибка 2
Makefile:964: ошибка выполнения рецепта для цели «drivers»
make: *** [drivers] Ошибка 2
user@debian:~/Openwrt/linux-stable$

no found mach/utils.h

linux-4.4.89-oxnas-tld-1.patch worked fine (creates including utils.h)
linux-stable/arch/arm/mach-oxnas/include/mach/utils.h in place
config-4.4.89-oxnas-tld-1 replaced in .config

What could be the problem?

P.S.
Sources received this way
git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
git checkout v4.4.89



Edited 11 time(s). Last edit at 01/05/2018 04:56PM by sakatgg.
Re: Problem compiling Linux Kernel 4.4.89 Oxnas
January 08, 2018 04:53AM
The kernel under AMR did not compile before, the error seems due to the selected ARCH = x86_64 by default, so it did not find the file utils.h, because The arch/x86 branch is used, not arch/arm

Advise the normal cross compilation instruction for AMR (what useToolchain) on a computer with Debian 8.

Or compilation must be performed on the NAS itself.

Thank you



Edited 5 time(s). Last edit at 01/08/2018 05:15AM by sakatgg.
Re: Problem compiling Linux Kernel 4.4.89 Oxnas
January 08, 2018 11:40PM
See Debian Cross Compiling for how to use a Debian environment for cross compilation.

Ray
Author:

Your Email:


Subject:


Spam prevention:
Please, solve the mathematical question and enter the answer in the input field below. This is for blocking bots that try to post this form automatically.
Question: how much is 24 plus 9?
Message: