Tiny Core Base > Other architectures

Compile Mainline Kernel.

(1/4) > >>

nxtv2.0:
How do i compile Mainline kernel for Orange Pi Plus 2E ?
I got the repository http://linux-sunxi.org/Mainline_Kernel_Howto#Kernel_source
and
--- Code: ---make ARCH=arm zImage dtbs
--- End code ---

but it returned


--- Code: --- 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

--- End code ---
What am i doing wrong?

jgrulich:
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.

nxtv2.0:
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:

--- Code: ---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

--- End code ---

jgrulich:
Have you found the Gigabit Ethernet Driver for the mainline kernel?

nxtv2.0:
No, i thought it was included.
How do i get it?
I will try your method now.

Navigation

[0] Message Index

[#] Next page

Go to full version