MV4.0.1 and Avnet Mini-Module

Has anyone been able to get montavista4.0.1 to build a 2.6 kernel for the mini-module? I get a build but the kernel crashes trying to allocate kernel cache memory:

loaded at: 00400000 004E913C board data at: 004E7124 004E713C relocated to: 004051E4 004051FC zimage at: 00405A3D 004E6BC4 avail ram: 004EA000 04000000

Linux/PPC load: console=tty1 console=ttyS0,9600 ip=on root=/dev/xsysace2 rw Uncompressing Linux...done. Now booting the kernel Linux version 2.6.10_mvl401-ml40x (Administrator@Rachel_d600) (gcc version

3.4.3 (MontaVista 3.4.3-25.0.100.0600797 2006-06-06)) #4 Wed Sep 20 19:14:20 EDT 2006 Xilinx ML40x Reference System (Virtex-4 FX) Port by MontaVista Software, Inc. ( snipped-for-privacy@mvista.com) Built 1 zonelists Kernel command line: console=tty1 console=ttyS0,9600 ip=on root=/dev/xsysace2 rw Xilinx INTC #0 at 0x41200000 mapped to 0xFDFFE000 PID hash table entries: 512 (order: 9, 8192 bytes) hr_time_init: arch_to_nsec = 20971520, nsec_to_arch = 429496729 Console: colour dummy device 80x25 Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) Memory: 62848k available (1452k kernel code, 452k data, 116k init, 0k highmem) Mount-cache hash table entries: 512 (order: 0, 4096 bytes) Badness in __schedule at kernel/sched.c:2842 Call trace: [c0003a64] check_bug_trap+0x98/0xdc [c0003c98] ProgramCheckException+0x1f0/0x2b4 [c00032a4] ret_from_except_full+0x0/0x4c [c01674c4] __schedule+0x28/0x728 [c0167c34] preempt_schedule+0x70/0xa4 [c003e04c] buffered_rmqueue+0x2ec/0x2f8 [c003e120] __alloc_pages+0xc8/0x3ac [c003e42c] __get_free_pages+0x28/0x68 [c0042c80] cache_alloc_refill+0x32c/0x5d0 [c00426dc] kmem_cache_alloc+0x68/0x6c [c006436c] sget+0xc4/0x3fc [c006558c] get_sb_single+0x34/0xcc [c009b700] sysfs_get_sb+0x1c/0x2c [c0065680] do_kern_mount+0x5c/0x118 [c01d2e8c] sysfs_init+0x48/0x80 kmem_cache_create: Early error in slab bdev_cache kernel BUG in kmem_cache_create at mm/slab.c:1209! Oops: Exception in kernel mode, sig: 5 [#1] PREEMPT NIP: C0043C94 LR: C0043C94 SP: C01BFF60 REGS: c01bfeb0 TRAP: 0700 Not tainted MSR: 00029030 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR: 11 TASK = c0198710[0] 'swapper' THREAD: c01be000 Last syscall: 0 GPR00: C0043C94 C01BFF60 C0198710 00000035 00000703 FFFFFFFF 00000001 00000720 GPR08: C01F0000 C01C0000 00000000 C01BE000 44000028 00003570 02001400 00000000 GPR16: 00000001 00000001 FFFFFFFF 007FFF00 01FFAA80 C0065E54 00000003 00000000 GPR24: 00000000 C0176A18 FF950040 78737973 00062000 C01A0000 00000000 00000188 NIP [c0043c94] kmem_cache_create+0x5c/0x5e0 LR [c0043c94] kmem_cache_create+0x5c/0x5e0 Call trace: [c01d2078] bdev_cache_init+0x3c/0xb0 [c01d2424] vfs_caches_init+0xf0/0x108 [c01c05dc] start_kernel+0x12c/0x170 [c000225c] start_here+0x44/0xb0 Kernel panic - not syncing: Aiee, killing interrupt handler! Rebooting in 180 seconds..

Near as I can tell it is crashing because it thinks it's in an interrupt when it goes to allocate the kernel cache. It's got to be something simple like the interrupt controller is programmed wrong based on my xparm.h file.

Anyway, does anybody have a 2.6 kernel working on mini-module? So far neither MV or Xilinx have been any help.

Thanks, Clark

Reply to
Anonymous
Loading thread data ...

what processor revision (PVR) is the PowerPC core in the V4FX12 part on the mini module ? if its 0x20011430 then you need to make sure you've applied a patch to sets bits 1 & 3 in the CCR0 register and disable all the caches. thats what i had to do to get 2.4 to work reliably on the mini module. here's the xilinx page the describes the silicon errata involved:

formatting link

(answer record 20658)

-rimas

An> Has anyone been able to get montavista4.0.1 to build a 2.6 kernel for the

Reply to
funkrhythm

I took a look at these modules and I don't see the difference between the DS-KIT-3S400MM1-BASE and the DS-KIT-MM-BASE, other than the price.

DS-KIT-3S400MM1-BASE $375.00 Xilinx Spartan-3 XC3S400 Mini-Module, Baseboard, Power Supply

DS-KIT-MM-BASE $195.00 Xilinx Spartan-3 XC3S400 Mini-Module Baseboard and Power Supply

Is the DS-KIT-MM-BASE just a base board without the minimodule? I guess that comma is very important! Maybe they should reword this page a bit to make this more clear?

Reply to
rickman

rickman schrieb:

LOL, yes its the comman issue one includes the module other doesnt

Antti

Reply to
Antti

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.