Inforce Computing Forums

inforce computing forums to discuss about inforce products

How to add a new module to linux kernel

Questions and discussions related to Inforce 6601™ development kit

by tamo2 » Thu Feb 15, 2018 11:48 am

Hi. I would like to add a new module to the linux kernel, but when I try kmake64 menuconfig it fails as follows:
$ kmake64 menuconfig
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
compilation terminated.
scripts/Makefile.host:108: recipe for target 'scripts/kconfig/mconf.o' failed
make[1]: *** [scripts/kconfig/mconf.o] Error 1
Makefile:545: recipe for target 'menuconfig' failed
make: *** [menuconfig] Error 2

Do you recommend editting the .config file as a way to add a module? Why does menuconfig not appear to be working?
Thanks,
tamo
tamo2
 
Posts: 27
Joined: Tue Jun 13, 2017 4:39 pm

by ashwin » Wed Mar 07, 2018 10:05 pm

Hi Tamo,

Its ideal to add the required configs in src/kernel/arch/arm64/configs/defconfig

You can also run menuconfig using the following commands.

export ARCH=arm64
CROSS_COMPILE=<path to gcc compiler>/bin/aarch64-linux-gnu-
make menuconfig

Hope this helps.

Best Regards,
Ashwin
ashwin
 
Posts: 44
Joined: Wed Jul 01, 2015 10:07 pm


Return to INFORCE 6601™ DEVELOPMENT KIT

cron

Contact Us.