LINUX-2.4.19-RMK7-PXA2+PXA270+32Mflash+32MSDRAM怎么设置CONFIG
我现在有个手机的镜像文件;该怎么设置CONFIG文件才能让它在SKYEYE上运行起来.软硬件基本信息:LINUX-2.4.19-RMK7-PXA2+PXA270+32Mflash+32MSDRAM
现在我手上有主板电路图和PXA270的开发手册,以及手机的镜像文件.
镜像文件内容包含以下部分:
dev: start end size erasesize name
mtd0: 00000000-0003FFFF,00040000 00020000 "Bootloader"
mtd1: 00040000-0013FFFF,00100000 00020000 "Kernel"
mtd2: 00140000-004BFFFF,00380000 00020000 "root disk" CRAMFS格式
mtd3: 004C0000-01CBFFFF,01800000 00020000 "GUI disk" JFFS2格式
mtd4: 01CC0000-01EDFFFF,00220000 00020000 "Writable Disk" JFFS2格式
mtd5: 01EE0000-01EFFFFF,00020000 00020000 "Parameter Table"
mtd6: 01EF0000-01FBFFFF,000c0000 00020000 "Configurations" 启动画面
mtd7: 01FC0000-01FDFFFF,00020000 00020000 "BD"
mtd8: 01FE0000-02000000,00020000 00020000 "KER OOPS"
手机里启动配置参数如下:
root=/dev/mtdblock2 rw console=ttyS2,115200 mem=32M@0xA0000000 mem=32M@0xA8000000
另外我对Bootloader和Kernel进行了反汇编,
[ 本帖最后由 wjunhx 于 2008-3-23 20:05 编辑 ] cpu: pxa27x
mach: pxa_mainstone
mem_bank: map=I, type=RW, addr=0x40000000, size=0x0c000000
mem_bank: map=M, type=RW, addr=0xa0000000, size=0x00800000
mem_bank: map=M, type=RW, addr=0xa0800000, size=0x00800000
mem_bank: map=M, type=RW, addr=0xa1000000, size=0x00800000
mem_bank: map=M, type=RW, addr=0xa1800000, size=0x02800000
#log: logon=1, logfile=/tmp/sk2.log, start=500000, end=1500000
lcd:state=on,type=pxa,mod=gtk
#dbct:state=on 无法运行.
mtd0-mtd8是存储在0xA0000000到0xA2000000的32M FLASH上;
0xA8000000到0xAA000000的是32M SDRAM cpu: pxa27x
mach: pxa_mainstone
mem_bank: map=I, type=RW, addr=0x40000000, size=0x0c000000
mem_bank: map=M, type=RW, addr=0xa80000000, size=0x2000000
#log: logon=1, logfile=/tmp/sk2.log, start=500000, end=1500000
lcd:state=on,type=pxa,mod=gtk
#dbct:state=on 由于SKYEYE的mem_bank:最多为8个我按下面内容设置
cpu: xscale
mach: pxa_lubbock
mem_bank: map=F, type=RW, addr=0x00000000, size=0x00040000, file=./blob.bin, boot=y
mem_bank: map=F, type=RW, addr=0x00040000, size=0x00100000, file=./kernel.bin
mem_bank: map=F, type=RW, addr=0x00140000, size=0x00380000, file=./root.cramfs
mem_bank: map=F, type=RW, addr=0x004c0000, size=0x01800000, file=./gui.jffs2
mem_bank: map=F, type=RW, addr=0x01cc0000, size=0x00220000, file=./user.jffs2
mem_bank: map=F, type=RW, addr=0x01ee0000, size=0x00020000, file=./param.bin
#mem_bank: map=F, type=RW, addr=0x01f00000, size=0x000c0000, file=./config.bin
#mem_bank: map=F, type=RW, addr=0x01fc0000, size=0x00020000, file=./bd.bin
#mem_bank: map=F, type=RW, addr=0x01fe0000, size=0x00020000, file=./ker.bin
mem_bank: map=I, type=RW, addr=0x40000000, size=0x0c000000
#mem_bank: map=M, type=RW, addr=0xa0000000, size=0x02000000
mem_bank: map=M, type=RW, addr=0xa8000000, size=0x02000000
结果:
***********************************************************************
**** ****
**** SkyEyeSimulator Ver 0.9.2 withGDB/Insight 5.3 Interface ****
**** ****
***********************************************************************
GNU gdb 5.3
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.Type "show warranty" for details.
This SkyEye was configured as "--host=i686-pc-linux-gnu --target=arm-elf".
(SkyEye) tar s
cpu info: xscale, xscale, 69052100, fffffff0, 2
mach info: name pxa_lubbock, mach_init addr 0x817feb0
SKYEYE: use xscale mmu ops
Loaded FLASH ./blob.bin
Loaded FLASH ./kernel.bin
Loaded FLASH ./root.cramfs
Loaded FLASH ./gui.jffs2
Loaded FLASH ./user.jffs2
Loaded FLASH ./param.bin
Connected to the simulator.
(SkyEye) r
Starting program:
warning: No executable file specified.
warning: No program loaded.
SKYEYE: xscale_cp15_mcr wrote UNKNOWN - reg 14, reg15 0x378
SKYEYE: xscale_cp15_mcr wrote UNKNOWN - reg 14, reg15 0x37c
SKYEYE: xscale_cp15_mcr wrote UNKNOWN - reg 14, reg15 0x380
SKYEYE: cp14_mcr unknown cp14 regs!!!!!!
[ 本帖最后由 wjunhx 于 2008-3-22 17:21 编辑 ] try to run the following in gdb: (I guess you probably forget to run "load" command)
tar s
lo
r 我也试过你说的方法,但结果没有变化
另外我想知道怎么修改SKYEYE源码使其不受mem_bank数量的限制 In arch/arm/common/armdefs.h:192 我更改了MAX_BANK的数量,但最大数量限制仍然为8个
arch/arm/common/armdefs.h:192 I just give you suggestion, not solution...
页:
[1]