Get the latest linux kernel

Follow commands,

$ tar -xf linux-x.xx.x.tar.gz
$ cd linux-x.xx.x/
$ make distclean

I use cross compiler which I created using crosstool ng, and my development board holds lpc3250

$ make ARCH=arm CROSS_COMPILE=arm-linux- lpc32XX_defconfig
$ make ARCH=arm CROSS_COMPILE=arm-linux-

You will get the kernel image at arch/arm/boot/zImage

But to create uImage, we can change our last command as below

$ make ARCH=arm CROSS_COMPILE=arm-linux- uImage

As a result you may get both zImage and uImage inside arch/arm/boot/ directory.

Enjoy…!

Advertisements

3 thoughts on “How to Cross Compile Linux Kernel for ARM

  1. I know it has been a long time since you posted this, but do you still have ea3250 board? were you building mainline linux kernel? I am working with an fdi3250 board (I purchased it some time ago, finally I found time to work on it) and I’m trying to build mainline kernel 4.4 using buildroot 2016.02 (some minor tweaks to cdl and uboot 2016.01 to change default uart on kickstart loader and readd support for fdi boards on uboot). So far uboot works (I’m testing ethernet, not sure if it is working) and I am having dma problems and rootfs ramdisk decompression errors when booting linux. Maybe you can share with me some experience you have with lpc3250 boards.

    Like

      1. No problem, I think you might be making a lot more money making android apps than building kernels for some strange and old arm9 core, haha… I was able to build a usable system based on mainline kernel 3.14, thanks to a hint given by a couple of friends I met on the uboot mailing list… Apparently kernel 4.x is not working yet (there is work going on to solve the problems, but it is not ready yet), and 3.x yes… Thanks for taking time to answer me…

        Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s