Saturday, August 27, 2005

24xx GIT development

Aug. 7th, 2005 04:37 pm 24xx GIT development

Quick and Dirty Guide to start development using
latest kernel from GIT tree of omap-linux.

a. Read OMAP_GIT readme from http://www.muru.com
b. Then read this...

1. Download pre-built arm-linux toolchain from codesourcery.com
Link: http://www.codesourcery.com/gnu_toolchains/arm/

Host Platform:
Please select IA32 GNU/Linux, if you are using the RH _or_ any
other distribution for host.

Target Platform:
Please select GNU/Linux

2. Click on download :-)

3. Go to your home directory. "Don't login as root..Please".

#cd ~/
#mkdir -p toolchains/cs/q12005

Copy the toolchain to above directory.
#cd toolchains/cs/q12005
#tar -xvjf ./ {It is very big name :-)}

Export the path to bin
{update your .bashrc or related file with
your shell}

export PATH=/your/home/toolchains/cs/q12005/bin:$PATH

restart the shell.
#which arm-none-gnueabi-gcc
It should show
/your/home/toolchains/cs/q12005/bin/arm-none-gnueabi-gcc

That's it, you are set for cross-compilation.
You can write your "hello, world" "c" program and test it, like this.

#arm-none-gnueabi-gcc -o test test.c
#file ./test


Check shared libraries. [on host]
#arm-none-gnueabi-readelf -a ./test | grep "Shared"
...


4. Compile the kernel.

Please change the CROSS in top makefile.
It should look like this.
CROSS_COMPILE ?= arm-none-linux-gnueabi-

And go ahead with compilation...It will work...I have tested.

5. Filesystem
You have to create filesystem with the libraries supplied
with toolchain. So earlier filesytem won't work.
Not generated filesystem yet...


Caution:
========

Above steps for compilation are done for latest GIT tree
for linux-omap only, which is linux-2.6.13-rc4-omap1 +
24xx patch + omap_h4_2420_defconfig only.

Don't Don't try to compile your MontaVista kernel (2.4.x)
_or_ earlier 2.6.x series. I don't know, about it's
working...

If you developing test program in "c++" then please
use "arm-none-gnueabi-g++" and don't include
use .
3 comments - Leave a comment

Jul. 31st, 2005 08:00 pm SPI

Ok, Linux Symposium is over. I have lot's of things to read. As the client for whom, I am working, was not interested to sponsor me to attend the event :(.

Anyways, worked on lot's of things. Soon, I will be going back to 2.4.x world !!!. It is concluded now that I need a new PC for my 2.4.x work.

And Finally, 24xx activities on linux-omap-open-source list is started. I am very happy.
Submitted first git-patch to the list. It is nothing but defconfig file :-).

Kernel boot-sequence shows McBSP and USB failing for linux-omap-24xx boot-sequence, need to investigate...
---------snip----------------
Initializing OMAP McBSP system
mcbsp: could not acquire dsp_ck handle.
omapdsp: unsupported omap architecture.
USB: No board-specific platform config found
---------snip----------------

Hey, I have disabled the USB from tree..don't know yet, why it shows up.

Notes for new cogito user with linux-omap tree.
(This is not mentioned in the quick and dirty readme of on muru.com)

- o Always get synced with cogito tree.
- o Last week, cogito-git http was broken (rsync was to rescue).
- o Use cg-admin-uncommit in your temporary commit tree, if you feel that something is missing.
- o Use cg-mkpatch to generate the patch from commit tree to the original tree.

I will try to import my current work tree (oh..it is 2.6.9-omap-24xx) to git.

No comments: