Compile kernel

gags
Hello,

I am working mini2440 , i want to enable gpio's but for that i have to
compile the kernel ( thts what i came to know via this forum ) , but how to
compile? are there any steps mentioned to compile the kernel and enable
gpio's.
 

Thanks!
Please reply!!!

davef
There are thousands of threads on how to compile the Linux kernel and
probably hundreds of them on enabling GPIO.

Do you want to learn how to do this yourself or would you be happier with a
kernel that already has GPIO enabled and a short tutorial on how to use
them?

gags
Hello Dave,

Thanks for the reply , I would go for the second part of your reply "would
you be happier with a kernel that already has GPIO enabled and a short
tutorial on how to use them? "

Could you please lead me to one document or step? I am not finding it in
mini2440 manual?

davef
http://www.oselas.org/oselas/bsp/pengutronix/mini2440_bsp_en.html

Download:

OSELAS.BSP-Pengutronix-Mini2440-Quickstart.pdf 

Read the section on GPIO near the back and then decide if you want to spend
a few days/weeks learning how to drive a BSP rather than months or years
doing it from scratch!

If you proceed with the BSP option I would suggest:

OSELAS.BSP-Pengutronix-Mini2440-2011.07.0.tgz

r@wboom
hello experts
my ubuntu had corrupted and i reinstalled it but when i again install the
toolchain and see the version it tells me command not found why??
i revised the process many times but result are same.
please help

davef
Did you put a path to your toolchain in /home/.bashrc

Juergen
r@wboom: if you run a 64 bit system you must install the 32 bit
compatibility libs, too, because the binary toolchain is 32 bit only.

Meher
How do I know which version of Kernel is there in my mini2440?

Meher
Is this possible to compile the kernel for SPI and install it in SD card
and boot from it without disturbing the NAND flash kernel??

Sunny Leone
>> For Kernel Version
"uname -a"

>> Booting from SD Card is not possible.

davef
You could have two SD cards with different kernels and/or root filesystems
on them and boot using them.

See the relevant chapters in the QuickStart guide. Barebox run be modified
at runtime to boot from different sources.  

The main issue, as I see it, is that the kernel in NAND would be
over-written.  Maybe, you could have two kernel partitions - one for the
kernel you want to keep on the mini2440 and the other for space to load the
SD card kernel into.

Barebox run be modified at runtime to boot from different sources. You
would have to talk to the Barebox experts to see if this is even possible.

Just a suggestion.

fanning
Hi all.I use mini2440 and compile the kernel
linux-2.6.32.2-mini2440-20141011 (on CD) compile is ok but after install
it, when first boot i cant touch the LCD to calibrate. My lcd td35.

davef
td35? Do you mean t35?

It might help if you post the boot messages.  Do you get a command prompt?

fanning
Thanks for rep davef !
I use lcd TD35 ! I try recompile last night and install ok to use gpio.
Maybe i mistake when i chose option build.

devef ! I edit driver led for mini2440 to use order port. 
This is the makefile to compile driver for ubuntu 14 kernel 3...
/*
obj-m += hello_kernel_module.o

all:

      make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules

clean:

      make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean

*/
if i compile driver for kernel 2.6, what i do know ? help me !

davef
Sorry, I made one hello kernel module about 2 years ago and never looked at
kernel modules again.

Do you mean "what do I do after I have a properly cross-compiled kernel
module"?

I can only suggest a few keywords, <modprobe, insmod>

I think they live in a special place in your file system then you need to
tell the kernel to find and insert them.

Good luck!