Tiny Core Linux
Tiny Core Base => Other architectures => Topic started by: nxtv2.0 on November 18, 2016, 02:27:40 PM
-
How do i compile Mainline kernel for Orange Pi Plus 2E ?
I got the repository http://linux-sunxi.org/Mainline_Kernel_Howto#Kernel_source (http://linux-sunxi.org/Mainline_Kernel_Howto#Kernel_source)
and make ARCH=arm zImage dtbs
but it returned
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
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 ‘-mno-thumb-interwork’
gcc: error: unrecognized command line option ‘-mfpu=vfp’
Kbuild:45: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 1
Makefile:1027: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2
What am i doing wrong?
-
It's really useful to follow the proven tutorial at the link I've sent to you:
https://linux-sunxi.org/Mainline_Kernel_Howto
It's 100% working, I've tested and used it with the Armbian distro at OrangePi PC.
-
I was running it on ubuntu on x86, i will try it on armbian.
How do i port over the kernel from armbian repository:linux-image-dev-sunxi_5.23_armhf.
I got the vmlinuz and renamed it to zImage, then got the dtb file for Orange-pi-plus-2e and modified boot.scr to boot the kernel like it was descriped in the tutorial.
It boots but ethernet doesn't work.
The serial says:
tar: ./run/udev/control: socket ignored
tar: ./dev/log: socket ignored
ifconfig: SIOCGIFFLAGS: No such device
ifconfig: SIOCSIFADDR: No such device
route: SIOCADDRT: Network is unreachable
-
Have you found the Gigabit Ethernet Driver for the mainline kernel?
-
No, i thought it was included.
How do i get it?
I will try your method now.
-
So the compile worked but ethernet isn't working
ifconfig: SIOCGIFFLAGS: No such device
ifconfig: SIOCSIFADDR: No such device
route: SIOCADDRT: Network is unreachable
How do i get the ethernet driver and include in image?
The menu config doesn't work and gives errors.make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfig
The default config works thought.
-
The Gigabit Ethernet driver is NOT included in the present mainline for sure.
You need to look around and try to find some patch, or wip version with the driver included.
The menuconfig reports error due to missing library, it's mentioned in the compilation tutorial what need to be installed.
-
How do i find the missing driver and compile kernel with it.
-
I found this linkhttp://moinejf.free.fr/opi2/ (http://moinejf.free.fr/opi2/) which contains patchs for mainline how do i use them.
It seems that armbian also has ethernet driver for this board as there are some members on there forums reporting ethernet speeds on 4.8 kernel.https://forum.armbian.com/index.php/topic/1906-mainline-kernel-and-dvfs-throttling-thermal-settings/ (https://forum.armbian.com/index.php/topic/1906-mainline-kernel-and-dvfs-throttling-thermal-settings/)
-
Have you tried the official OPi board manufacturer source?
https://github.com/orangepi-xunlong/orangepi_h3_linux
or test this source:
https://github.com/megous/linux
Both of them seems to be well maintained and working.
-
I tried every kernel source for the h3 including the ones you have mentioned,All give the same error.
-
The GBit Ethernet is not enabled by default in the defconfig, you have to enable it first.
Do you have the menuconfig already working, or you have the reported error still there?
-
I got it to work.
The library missing was curses
-
Understand that you have the menuconfig working. And what about the GBit Ethernet?
Is it working too? Which source?
-
I got the gigabit ethernet to work finally from this kernel + dtb and lib/modules from this source:
https://forum.armbian.com/index.php/topic/3029-mainline-ethernet-driver-h3/ (https://forum.armbian.com/index.php/topic/3029-mainline-ethernet-driver-h3/)
Post no. 11#
But there is a weird issue , top only shows 1 cpu core.
-
Great, let's share with others and include the simple how-to and kernel config.
-
The post i mentioned has a precompiled kernel.
For the multicore issue, i was using the SVC version of uboot.
after switching to hyp it worked flawlessly.
-
OK, but this kernel doesn't support zswap therefor not fully optimized for piCore.
-
How do i enable zswap in compile.
And what does it do?
-
How do i enable zswap in compile.
And what does it do?
Check piCore kernel config