Struggle in compiling the kernel for OMAP850/OMAP730

Linux, kernel, tool chain No Comments »

Warning: I am newbie on embedded systems, kernels, etc. All disclaimers apply -read at yout own risk!

I hate to use binaries on Linux and I learnt I am not the only one who would like to make some changes to the code, compile it and use it. Many tell me that I am wasting time in doing so, but I love this. Old habits die hard. For the same reason, I do not want to use LinWizard. Is there a LinWizard source?

I decided to tread the difficult task of compiling the kernel and and ended up in downloading several versions and bookmarking various sites.

I found muru.com to be very useful.

This is what I did:

  1. Got the git tree from mvista and created a clone in my Linux box and created my branch “vairam” meaning diamond in Tamil. Then installed the GNU arm eabi tool chain from codesourcery.com. Created the .config file by selecting all default options using “make config”. 
  2. In the Makefile changed the prefix CROSS_COMPILE = arm-none-eabi. 
  3. Make menuconfig
  4. Selected OMAP Core type as OMAP=730 and OMAP board type FSAMPLE
  5. Make

I got the following error:

In file included from arch/arm/kernel/entry-armv.S:21:
arch/arm/plat-omap/include/mach/entry-macro.S:18:2: error: #error “FIXME: OMAP730 doesn’t support multiple-OMAP”

     6.  Then I reconfigured to exclude OMAP 15XX After the reconfiguration, .config shows

# CONFIG_ARCH_OMAP15XX is not set

     7. make 

This time I got the following error.

arch/arm/plat-omap/gpio.c: In function ‘_set_gpio_wakeup’:

arch/arm/plat-omap/gpio.c:848: warning: unused variable ‘flags’
arch/arm/plat-omap/gpio.c: In function ‘dbg_gpio_show’:
arch/arm/plat-omap/gpio.c:1834: error: ’struct gpio_bank’ has no member named ’suspend_wakeup’
arch/arm/plat-omap/gpio.c:1860: error: ’struct gpio_bank’ has no member named ’suspend_wakeup’

I tried to turn this switch off  in the .config and ended up corrupting it :-). I know I am blindly compiling the kernel, but I want to at least compile it with out any error.

I decided to patch the code with the CONFIG_ARCH_OMAP730 in the gpio_bank struct along with CONFIG_ARCH_OMAP16XX and CONFIG_ARCH_OMAP24XX. I am not sure whether it is right or wrong, but the error during kernel compilation went away.

I also got an error on related VGA_CONSOLE. I unset the VGA_CONSOLE=n and recompiled the kernel again.

With lot of struggle, I created the first kernel image vlinux (around 3.5MB) and ZImage (1.2MB) and it did not boot my HTC Wizard!  

Let me know if you have better ideas!

Share/Save/Bookmark

Windows mobile lost its space to Linux!

LinWizard, Linux, X Windows, boot loader No Comments »

Thanks to the efforts of LinWizard folks, my Windows Mobile got the taste of Linux for the first time in its life. Does it feel happy? I do not know, but I was thrilled, even though there was a kernel panic, initially.

I downloaded the linwizard version 0.2.0 and uncompressed it to the SD mini disk. I tried haret-0.5.2 as the boot loader - kernel panic resulted. I rebooted my machine and used the haret-0.5.0, I got the first success.

I got a root prompt and logged in as root. There is no password for root in this version. The penguin is sitting pretty on my mobile screen, smiling at me, non-stop. Oh, what a feeling.

I logged in, went to user bin and launched startx - ta da - the X booted up and the xclock and a xterm showed up.

Amazing guys, hats off to you (LinWizard folks), fantastic effort. The image at the bottom is the proof :-)

Linux on Imate K-JAM

Linux on Imate K-JAM

Share/Save/Bookmark

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in