[Milkymist-devel] Linux Porting Issues
Takeshi MATSUYA
macchan at sfc.wide.ad.jp
Sat Aug 15 22:00:11 PDT 2009
> Issue #1 - minor
> Issue #3
> Issue #4
> ...
> free_area_init -> start_mem is 0x4019c000
> virtual_end is 0x44000000
> BUG: failure at mm/page_alloc.c:2986/free_area_init_core()!
> Kernel panic - not syncing: BUG!
Maybe memory cache problem.
I suggest a below solution.
--------------------
diff cores/lm32/rtl/lm32_include.v cores/lm32/rtl/lm32_include.v.org
59c59
< //`define CFG_DCACHE_ENABLED
---
> `define CFG_DCACHE_ENABLED
--------------------
============ Current Linux Log =============
I: Booting from CF card...I: Read a 13 byte image from CMDLINE.TXT,
CRC32 0f744682
I: Read a 17793 byte image from INITRD.BIN, CRC32 1924399d
I: Read a 1437408 byte image from BOOT.BIN, CRC32 8a2866ba
I: Booting...
[42949372.960000] Linux version 2.6.23 (tmatsuya at tmatsuyaxpc) (gcc
version 4.2.1 (LatticeMico32) 7.0.1 SRCE) #280 Sun Aug 16 13:33:33 JST
2009
[42949372.960000] console [early0] enabled
[42949372.960000] memory from 4036e000 - 44000000
[42949372.960000] reserving initrd memory: 41000000 size 5000
[42949372.960000] start_mem is 0x4036e000
[42949372.960000] virtual_end is 0x44000000
[42949372.960000] before free_area_init
[42949372.960000] free_area_init -> start_mem is 0x4036e000
[42949372.960000] virtual_end is 0x44000000
[42949372.960000] Normal zone: 124 pages used for memmap
[42949372.960000] Normal zone: 0 pages reserved
[42949372.960000] Movable zone: 0 pages used for memmap
[42949372.960000] after free_area_init
[42949372.960000] Built 1 zonelists in Zone order. Total pages: 15748
[42949372.960000] Kernel command line: console=early
[42949372.960000] PID hash table entries: 256 (order: 8, 1024 bytes)
[42949372.960000] Dentry cache hash table entries: 8192 (order: 3,
32768 bytes)
[42949372.980000] Inode-cache hash table entries: 4096 (order: 2,
16384 bytes)
[42949373.000000] Mem_init: start=4036e000, end=44000000
[42949373.040000] Bad page state in process 'swapper'
[42949373.040000] page:40375dc0 flags:0x00000000 mapping:00000000
mapcount:1 count:0
[42949373.040000] Trying to fix it up, but a reboot is needed
[42949373.040000] Backtrace:
[42949373.060000] This architecture does not implement dump_stack()
[42949373.080000] Memory available: 61372k/63488k RAM, (1336k kernel
code, 60k data)
[42949373.080000] Calibrating delay loop... 130.66 BogoMIPS (lpj=653312)
[42949373.500000] Mount-cache hash table entries: 512
[42949373.540000] NET: Registered protocol family 16
[42949373.640000] checking if image is initramfs...it isn't (no cpio
magic); looks like an initrd
[42949376.840000] Freeing initrd mem: 17k freed
[42949376.860000] io scheduler noop registered (default)
[42949378.440000] RAMDISK driver initialized: 2 RAM disks of 4096K
size 1024 blocksize
[42949378.480000] loop: module loaded
[42949378.520000] RAMDISK: Compressed image found at block 0
[42949384.860000] RAMDISK: ran out of compressed data
[42949384.880000] out of input data
[42949384.900000] VFS: Cannot open root device "<NULL>" or unknown-
block(0,0)
[42949384.900000] Please append a correct "root=" boot option; here
are the available partitions:
[42949384.920000] Kernel panic - not syncing: VFS: Unable to mount
root fs on unknown-block(0,0)
---------------------
Takeshi MATSUYA
More information about the Devel
mailing list