$ make ARCH=arm menuconfig
produces Errors:
HOSTCC scripts/kconfig/mconf.o
In file included from scripts/kconfig/mconf.c:23:0:
scripts/kconfig/lxdialog/dialog.h:38:20: fatal error: curses.h: No such file or directory #include CURSES_LOC
^
compilation terminated.
make[1]: *** [scripts/kconfig/mconf.o] Error 1
make: *** [menuconfig] Error 2
$ make ARCH=arm LOCALVERSION= zImage
produces Errors:
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.hâ is up to date.
CC kernel/bounds.s
gcc: error: unrecognized argument in option â-mabi=aapcs-linuxâ
gcc: note: valid arguments to â-mabi=â are: ms sysv
gcc: error: unrecognized command line option â-mlittle-endianâ
gcc: error: unrecognized command line option â-mapcsâ
gcc: error: unrecognized command line option â-mno-sched-prologâ
gcc: error: unrecognized command line option â-mno-thumb-interworkâ
gcc: error: unrecognized command line option â-mfpu=vfpâ
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
Question:
Does anybody know a solution for the problem?
I tried a hint âmake oldconfigâ but it doesnât worked either.
What I understand is that a .config File is produced, which I neeed to produce the zImage.
Is it possible to get the .config File direct for DE1-SoC Board (Cyclone V) ?
Your first error shows that your environment is not correctly set for Linux kernel compilation. Packages such as ncurses or ncurses-dev are required here and you donât have them on your build system.
Try to install: ncurses-devel and ncurses (or libncurses5 and libncurses5-dev) packages from your Linux distribution package manager (yum, apt-getâŚ).
Your second error is about the same problem, your environment is not set. Which cross-compiler is installed on your build system ?
I will recommend to check some tutorials about Linux kernel cross-compilation (setup and steps), before going any further.
Thank you very much for your answer.
The first hint helps.
After installing libncurses5 and libncurses5-dev "make ARCH=arm menuconfig " works.
Second error is still there.
I have cross-compiler âgcc-linaro-5.2-2015.11-2-x86_64_arm-linux-gnueabihfâ.
(used also in Rocketboards Tutorial LAB2: U-Boot)
Kind regards
Gerhard
Now I have a zImage produced with the following command line:
sudo make -j8 ARCH=arm CROSS_COMPILE=$PWD/gcc-linaro-5.2-2015.11-2-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- zImage
Here are the last messages from console-window:
AS arch/arm/boot/compressed/piggy.gzip.o
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
Now I have to test, if zImage is working.
Thank you very much for your hints.
Kind regards
Gerhard
HiâŚas per my knowledge packages such as ncurses or ncurses-dev are required here and you donât have them on your build system.Use this ncurses-devel and ncurses (or libncurses5 and libncurses5-dev) packages from your Linux distribution package manager.