[Milkymist-devel] Linux Porting Issues

Takeshi MATSUYA macchan at sfc.wide.ad.jp
Mon Aug 17 00:10:17 PDT 2009


 > What patches are you using with your Linux kernel btw?

I have ad-hoc patch module.
Patch module and .config file are attached.

<make menuconfig option>
1. <General setup/Configure .. (for small systems)> is select
2. <General setup/Slab allocator> <SLOB> is select
3. <Loadble modules/Module unloading> is select
4. <Real-time sub-system> is not select
5. <Interrupt pipeline> is not select
6. <Processor/Early Prink> is select

 > Anyway, did you try to put a valid initrd and see if the userland  
works? You
 > should be able to use the initrd image from the Linux demonstration  
kit at
 > Lattice's website, so that you don't have to build your own.

Thank you for your advice.
There are few problem.
1. System cal interrupt stack problem.(entry.s)
2. Serial driver is not working.

========Current Linux Log ==========
I: Booting from CF card...
I: Read a 1404358 byte image from BOOT.BIN, CRC32 406626c7
I: Read a 13 byte image from CMDLINE.TXT, CRC32 10c77a5c
I: Read a 4194304 byte image from INITRD.BIN, CRC32 cd3ffb20
I: Booting...
[42949372.960000] Linux version 2.6.23 (tmatsuya at tmatsuyaxpc) (gcc  
version 4.2.1 (LatticeMico32) 7.0.1 SRCE) #367 Mon Aug 17 15:37:07 JST  
2009
[42949372.960000] console [early0] enabled
[42949372.960000] reserving initrd memory: 41002000 size 400000
[42949372.960000]   Normal zone: 128 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: 16256
[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.020000] Bad page state in process 'swapper'
[42949373.020000] page:40169cc0 flags:0x00000000 mapping:00000000  
mapcount:1 count:0
[42949373.020000] Trying to fix it up, but a reboot is needed
[42949373.020000] Backtrace:
[42949373.040000] This architecture does not implement dump_stack()
[42949373.060000] Memory available: 59384k/65536k RAM, (1312k kernel  
code, 60k data)
[42949373.080000] Calibrating delay loop... 158.10 BogoMIPS (lpj=790528)
[42949373.540000] Mount-cache hash table entries: 512
[42949373.560000] NET: Registered protocol family 16
[42949373.660000] checking if image is initramfs...it isn't (bad gzip  
magic numbers); looks like an initrd
[42949376.880000] Freeing initrd mem: 4095k freed
[42949376.920000] io scheduler noop registered (default)
[42949378.180000] RAMDISK driver initialized: 2 RAM disks of 4096K  
size 1024 blocksize
[42949378.220000] RAMDISK: ext2 filesystem found at block 0
[42949378.240000] RAMDISK: Loading 4096KiB [1 disk] into ram disk...  
|/-¥|/-¥|/-¥|/-¥|/-¥|/-¥|/- 
¥|/-¥|/-¥|/-¥|/-¥|/-¥|/- 
¥|/-¥|/-¥|/-¥|/-¥|/-¥|/- 
¥|/-¥|/-¥|/-¥|/-¥|/-¥|/- 
¥|/-¥|/-¥|/-¥|/-¥|/-¥|/- 
¥|/-¥|/-¥|/-¥|/-¥|/-¥|/- 
¥|/-¥|/-¥|/-¥|/-¥|/-¥|/- 
¥|/-¥|/-¥|/-¥|/-¥|/-¥|/- 
¥|/-¥|/-¥|/-¥|/-¥|/-¥|/- 
¥|/-¥|/-¥|/-¥|/-¥|/-¥|/- 
¥|/-¥|/-¥|/-¥done.
[42949381.540000] VFS: Mounted root (ext2 filesystem).
<halt. (k/u stack problem in system call interrupt)>

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.txt
URL: <http://lists.milkymist.org/pipermail/devel-milkymist.org/attachments/20090817/faccbb26/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linux_dot_config
Type: application/octet-stream
Size: 9596 bytes
Desc: not available
URL: <http://lists.milkymist.org/pipermail/devel-milkymist.org/attachments/20090817/faccbb26/attachment.obj>
-------------- next part --------------

--------------------------------------------------------------------------
Keio Universty
Takeshi MATSUYA



More information about the Devel mailing list