Hello, I am following: http://nanopi.org/nanopi_development.html#3 toolchain: 4.9.3 arm-none-linux-gnueabihf-gcc --version arm-none-linux-gnueabihf-gcc (ctng-1.21.0-229g-FA) 4.9.3 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Kernel: linux-4.x.y.git build: export PATH=/home/user/NANOPI-NEO/toolchain/4.9.3/bin:$PATH export GCC_COLORS=auto export ARCH=arm export CROSS_COMPILE=arm-none-linux-gnueabihf- make && make uImage && make modules strings ./uImage | grep Linux Linux-4.1.2-FriendlyARM I copied the uImage on boot partition and after booting and after u-boot messages I get: # Booting kernel from Legacy Image at 40007800 ... Image Name: Linux-4.1.2-FriendlyARM Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4771536 Bytes = 4.6 MiB Load Address: 30008000 Entry Point: 30008000 Verifying Checksum ... OK Loading Kernel Image ... OK OK [ 4.455][mmc]: MMC Device 2 not found [ 4.459][mmc]: mmc not find,so not exit [ 4.463] Starting kernel ... undefined instruction pc : [<3f501000>] lr : [<5faf7164>] sp : 569fdc88 ip : 00000007 fp : 00000001 r10: 00001029 r9 : 00000000 r8 : 569fff04 r7 : 57a1b4f0 r6 : 30008000 r5 : 00000000 r4 : 569fffe4 r3 : 4000018c r2 : 40000100 r1 : 00000000 r0 : 00000000 Flags: nZCv IRQs off FIQs off Mode SVC_32 Holding for test mode (STUCK HERE) The original kernel: Linux-3.4.39-h3 boots fine. ## Booting kernel from Legacy Image at 40007800 ... Image Name: Linux-3.4.39-h3 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4522784 Bytes = 4.3 MiB Load Address: 40008000 Entry Point: 40008000 Verifying Checksum ... OK Loading Kernel Image ... OK OK [ 4.389][mmc]: MMC Device 2 not found [ 4.393][mmc]: mmc not find,so not exit [ 4.397] Starting kernel ... [sun8i_fixup]: From boot, get meminfo: Start: 0x40000000 Size: 512MB ion_carveout reserve: 160m@0 256m@0 130m@1 200m@1 ion_reserve_select: ion chipid [0x2c00081! ion_reserve_common: ion reserve: [0x56000000, 0x60000000]! [ 0.000000] Booting Linux on physical CPU 0 [ 0.000000] Initializing cgroup subsys cpuset
NanoPI Neo Kernel Hang
I found the right kernel for nano pi neo at: http://wiki.friendlyarm.com/wiki/index.php/NanoPi_NEO I am trying to build the rtl8192cu-fixes from https://github.com/pvaret/rtl8192cu-fixes The Makefile @ rtl8192cu-fixes has several configurations. For the kernel for NEO which is FriendlyARM 3.4.39-h3 which ocnfiguration do I use. If I use CONFIG_PLATFORM_ARM_SUNxI = y nction ‘script_parser_fetch’ [-Werror=implicit-function-declaration] ret = script_parser_fetch("usb_wifi_para", "usb_wifi_usbc_num", (int *)&usb_wifi_host, 64); ^ cc1: some warnings being treated as errors scripts/Makefile.build:307: recipe for target '/home/marius/APPS/BOARDS/NANOPI-NEO/rtl8192cu-fixes/os_dep/linux/usb_intf.o' failed make[2]: *** [/home/marius/APPS/BOARDS/NANOPI-NEO/rtl8192cu-fixes/os_dep/linux/usb_intf.o] Error 1 Makefile:1366: recipe for target '_module_/home/marius/APPS/BOARDS/NANOPI-NEO/rtl8192cu-fixes' failed make[1]: *** [_module_/home/marius/APPS/BOARDS/NANOPI-NEO/rtl8192cu-fixes] Error 2 make[1]: Leaving directory '/home/marius/APPS/BOARDS/NANOPI-NEO/lichee-nano-pi-neo-all/linux-3.4' Makefile:585: recipe for target 'modules' failed make: *** [modules] Error 2 Which config for the kernel should I choose.
I suggest that your main problem is that the NEO uses a AllWinner CPU and you are not using the toolchain provided by FriendlyArm for the specific CPU you are using. Check out http://wiki.friendlyarm.com/wiki/index.php/NanoPi_NEO
Hi, Thank you. I figure out that. I have build the kernel lichee-nano-pi-neo-all/linux-3.4 which builds OK. I am tryng now to build the rt8192cu and/or rt8192cu-fixes, but the configurations in Makefile are faulty: CONFIG_PLATFORM_ARM_SUNxI = y CONFIG_PLATFORM_ARM_SUN6I = n /home/marius/APPS/BOARDS/NANOPI-NEO/rtl8192cu-fixes/os_dep/linux/usb_intf.c:1556 :2: error: implicit declaration of function ‘script_parser_fetch’ [-Werror=implicit-function-declaration] ret = script_parser_fetch("usb_wifi_para", "usb_wifi_usbc_num", (int *)&usb_wifi_host, 64);
I tried also SUN6I but Then I get /ioctl_cfg80211.h:24:3: error: #error "Can't define CONFIG_IOCTL_CFG80211 because neither CONFIG_CFG80211 nor CONFIG_CFG80211_MODULE is defined in kernel" and looks like there is is noting like that in configuration linux-3.4$ grep CONFIG_CFG80 ./.config linux-3.4$
Don't you have to grep CONFIG_CFG80* ? I saw a list, maybe on the new forum, for supported WiFi dongles.