pxa270系统移植,求救
最近搞了一下eeliod的linux2.6.38移植,把XSBASE270_EDR平台加了进去,其中MACHINE_START模块在下面
#if defined(CONFIG_ARCH_XSBASE270_EDR)
MACHINE_START(XSBASE270, "51Board XSBase270-EDR Development Platform "
#elif defined(CONFIG_ARCH_XSBASE270_DVK)
MACHINE_START(XSBASE270, "51Board XSBAse270-DVK Development Platform "
#endif
.phys_io = 0x40000000,
.boot_params = 0xA0000100, /* BLOB boot parameter setting */
.io_pg_offst = (io_p2v(0x40000000) >> 1 & 0xfffc, // BOOT_MEM(0xA0000000, 0x40000000, io_p2v(0x40000000))
.map_io = xsbase27x_map_io,
.init_irq = xsbase27x_init_irq,
//.fixup = fixup_xsbase27x,
.timer = &pxa_timer,
.init_machine = xsbase27x_init, //FIXUP(fixup_xsbase27x) MAINTAINER("51Board Inc."
MACHINE_END
booting the kernel之后没有反映了,终于查到了一个办法去除printk缓冲区,是这样的:
<5>Linux version 2.6.36 (root@zhenchuan.HappyOrg) (gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72) ) #15 Tue Apr 26 04:52:21 EDT 2011
<4>CPU: XScale-PXA270 [69054117] revision 7 (ARMv5TE), cr=0000397f
<4>CPU: VIVT data cache, VIVT instruction cache
<4>Machine: 51Board XSBase270-EDR Development Platform
<4>Memory policy: ECC disabled, Data cache writeback
<0>Kernel panic - not syncing: ERROR: Failed to allocate 0x1000 bytes below 0x0.
<0>
<4>Backtrace:
<4>[<c0024334>] (dump_backtrace+0x0/0x11 from [<c01e876c>] (dump_stack+0x18/0x1c)
<4> r7:00000000 r6:00000000 r5:00000000 r4:c0286404
<4>[<c01e8754>] (dump_stack+0x0/0x1c) from [<c01e87d0>] (panic+0x60/0x184)
<4>[<c01e8770>] (panic+0x0/0x184) from [<c0010b4c>] (memblock_alloc_base+0x44/0x50)
<4> r3:00000000 r2:00000000 r1:00001000 r0:c02467fc
<4>[<c0010b08>] (memblock_alloc_base+0x0/0x50) from [<c0010b78>] (memblock_alloc+0x20/0x2
<4> r7:c0285a9c r6:00000000 r5:00000000 r4:00000000
<4>[<c0010b58>] (memblock_alloc+0x0/0x2 from [<c000ae10>] (early_alloc+0x20/0x40)
<4> r5:c0285a9c r4:00001000
<4>[<c000adf0>] (early_alloc+0x0/0x40) from [<c000b760>] (paging_init+0x584/0x6f0)
<4> r5:c0285a9c r4:00000001
<4>[<c000b1dc>] (paging_init+0x0/0x6f0) from [<c0009c90>] (setup_arch+0x304/0x584)
<4>[<c000998c>] (setup_arch+0x0/0x584) from [<c0008968>] (start_kernel+0x6c/0x260)
<4>[<c00088fc>] (start_kernel+0x0/0x260) from [<a0008034>] (0xa0008034)
<4> r5:c0285a6c r4:0000397d
说明start_kernel已经调用,MMU也已经开启,这里在初始化页表之后进行首次malloc,但是就出错了这是怎么回事?我在启动参数那里添加了MEM=64M。
万望帮帮忙,谢谢!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
无人回吗?
还是无人回吗?
再顶
求达人,没达人也来围观一下哈...
PXA270比较老了,N年前玩的,现在都忘记了