how to make the Kernel transplantation?
dear all
i want to transplant the linux kernel into the ARM developed board。 PC :ubuntu 12.04 gcc 4.6.3 arm-linux-gcc 4.4.3 kenerl :linux-2.6.32.63 ARM : mini2440 1. i change the Makefile as below export KBUILD_BUILDHOST := $(SUBARCH) ARCH ?= arm CROSS_COMPILE ?= arm-linux- 2. i change the linux-2.6.32.63/arch/arm/mach-s3c2440/mach-mini2440.c file to fit the ARM developed board Frequency :12000000 MACH_CODE : MINI2440 3. # make mini2440_defconfig showing as below: root@ubuntu:/opt/linux-2.6.32.63# make mini2440_defconfig4. make zImage root@ubuntu:/opt/linux-2.6.32.63# make zImage what was the wrong ? how can i can do for this? |
Well, first of all, "transplantation" is not the proper English word to use. (The word would refer to, say, moving a heart from one body to another.) :)
The proper term for what you're intending to do, I believe, is "cross-compile." A better title, and I suggest you change it, is: "How to cross-compile the kernel for an ARM processor target?" I think you'll get more hits that way. Unfortunately, I'm not myself qualified to respond to the question. |
Quote:
and do you know how to cross-compile the kernel for ARM board |
bounds.c compilation..
Hello,
Was this ever resolved? I am experiencing something similar using Ubuntu 14.04.. CC kernel/bounds.s > fixdep: kernel/.bounds.s.d: No such file or directory > make[2]: *** [kernel/bounds.s] Error 2 |
First make sure your cross compiler tools are in your path first.
Code:
export PATH=/place/crossenv:$PATH |
Hi,
Yes, the cross compiler is defined. I beieve the make which is being called however is the regular gcc compiler for the bounds.c file not the cross compiler. Am I correct? Thanks! QUOTE=Rinndalir;5428472]First make sure your cross compiler tools are in your path first. Code:
export PATH=/place/crossenv:$PATH |
Quote:
The command line was `CC kernel/bounds.s`, and CC would invoke the cross-compiler of the toolchain. HOSTCC would invoke the native compiler of the host. Regards |
Thanks, guys.
Yes, that is indeed correct. I took a look at the Makefile. I ended up using the newest version of Fedora to recompile my custom Kernel. All seems to be working well now, however, I'm still a little confused as to why a different flavor of Linux would affect cross compilation for an ARM based device. |
All times are GMT -5. The time now is 01:12 PM. |