Welcome, Guest! Log In | Create Account

Run openmoko kernel on SkyEye

1. Build openmoko linux-2.6.21.1 kernel.
You can follow the instruction on the openmoko official website in the URL: http://wiki.openmoko.org/wiki/Kernel
The following two files in kernel souce need to be modified for debug purpose.
[include/asm-arm/arch-s3c2410/map.h:171]
[include/asm-arm/arch-s3c2410/memory.h:21]
More info can refer to http://skyeye.wiki.sourceforge.net/Linux#tocLinux2
2. Config openmoko kernel.
Now we only use initrd as the root filesystem ,and You should modify the COMMAND_LINE in boot options to
CONFIG_CMDLINE="console=tty0, console=ttySAC0 root=/dev/ram initrd=0xc0800000,0x00200000 "
And add ext2 file system support.
Rebuild your kernel.

3. Run openmoko kernel on SkyEye
get skyeye source by svn co https://skyeye.svn.sourceforge.net/svnroot/skyeye/skyeye-v1/branches/openmoko/
Then run "make" to build SkyEye and the execute file "skyeye" will be located at openmoki/binary directory.
use "skyeye -e vmlinux" to run the kernel image. The skyeye.conf file as the following:

 # skyeye config file for S3C2410X

 cpu: arm920t
 mach: s3c2410x

# physical memory
 mem_bank: map=M, type=RW, addr=0xc0000000, size=0x00800000
 mem_bank: map=M, type=RW, addr=0xc0800000, size=0x00200000, file=./initrd.img
 mem_bank: map=M, type=RW, addr=0xc0a00000, size=0x00600000
# all peripherals I/O mapping area
 mem_bank: map=I, type=RW, addr=0x48000000, size=0x20000000

 #mem_bank: map=I, type=RW, addr=0x19000300, size=0x00000020
 #net: type=cs8900a, base=0x19000300, size=0x20,int=9, mac=0:4:3:2:1:f, ethmod=tuntap, hostip=10.0.0.1
 nandflash: type=s3c2410x,name=K9F1208U0B,dump=./nand.dump
 lcd: type=s3c2410x, mod=gtk
 #regfile:r1=193
 #dbct:state=on

The screen snapshot as the following image:
Imported from wikispaces