Sunday, May 25, 2008

Qemu and N800

At last decided to use QEMU since it has support for latest ARM processors. Now I can browse using lynx on ARM integrator !

Actually, I wanna have a simulated OMAP based board. Poky people have done amazing thing.
They have patch for QEMU to simulate Nokia N800 internet tablet(based on OMAP 2420 )
I tried latest release pinky 3.1(, but had trouble with build scripts with broken link wget ' damn it, it wasted so many hours earlier.
Anyways this time I am not goin to give up. I went ahead with checking out the latest Poky code.
ragha@hoysala:~$ svn co poky

source poky-init-build-env
bitbake poky-image-sato
Again things are not easy.
problem1:This time it is new feature in kernel 2.6.2x. /proc/sys/vm/mmap_min_addr is set to non-zero as an additional security to avoid user applications mmap first couple of pages.

Ubuntu ships with 65536 as a default value for mmap_min_addr, which prevents qemu from mmapping the low address spaces it wants, thus breaking the qemu.
ragha@hoysala:~$ sudo sysctl -w vm.mmap_min_addr=0
problem2:Damn debian guys have changed sh link to dash instead of bash. I hate these political changes. They just don't understand how many scripts can break such change. anyways I have to move on:
ragha@hoysala:~$rm /bin/sh
ragha@hoysala:~$ln /bin/bash /bin/sh
I hate to wait since building Poky takes more than 4-5 hours even on Dual core !! I wonder why they are building the whole linux system.

Let me see if I can run N800 by tomorrow morning.