[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-arm-kernel
Subject:    Problem with RAM disk on a PXA250
From:       Jesper Magnusson <d99jema () stud ! hh ! se>
Date:       2003-11-26 11:27:37
[Download RAW message or body]

We're trying to port linux to a homemade architecture
based on an Intel PXA250. Our bootloader is BLOB.
The kernel is linux-2.6.0-test2 patched with
"patch-2.6.0-test2-rmk1" and "diff-2.6.0-test2-rmk1-pxa1".

Now we're able to mount Nicolas Pitre's RAMdisk (ramdisk_ks).
We have also tested Lart's RAMdisk, but we get the same problem.
Here's the output from the kernel, with all debug info.

Starting kernel ...

Linux version 2.6.0-test2-rmk1-pxa1 (root@localhost.localdomain) (gcc version 3.
3.2 20030820 (prerelease)) #97 Wed Nov 26 10:49:19 CET 2003
CPU: XScale-PXA250 [69052904] revision 4 (ARMv5TE)
CPU: D undefined 5 cache
CPU: I cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
CPU: D cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
Machine: Intel DBPXA250 Development Platform
Memory policy: ECC disabled, Data cache write back
Memory clock: 99.53MHz (*27)
Run Mode clock: 199.07MHz (*2)
Turbo Mode clock: 398.13MHz (*2.0, inactive)
On node 0 totalpages: 8192
  DMA zone: 8192 pages, LIFO batch:2
  Normal zone: 0 pages, LIFO batch:1
  HighMem zone: 0 pages, LIFO batch:1
Building zonelist for node : 0
Kernel command line: console=ttyS0,115200 initrd=0xA0400000,8M ramdisk_size=1024
0 root=/dev/ram0
<7>Relocating machine vectors to 0xffff0000
PID hash table entries: 256 (order 8: 2048 bytes)
Calibrating delay loop... 99.32 BogoMIPS
Memory: 32MB = 32MB total
Memory: 23120KB available (842K code, 158K data, 48K init)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
-> /dev
-> /dev/console
-> /root
POSIX conformance testing by UNIFIX
Linux NoNET1.0 for Linux 2.6
mm/memory.c:170: spin_unlock(arch/arm/kernel/init_task.c:a00ea760) not locked
arch/arm/mm/ioremap.c:225: spin_lock(arch/arm/kernel/init_task.c:a00ea760) alrea
dy locked by mm/memory.c/172
BIO: pool of 256 setup, 14Kb (56 bytes/bio)
biovec pool[0]:   1 bvecs:  44 entries (12 bytes)
biovec pool[1]:   4 bvecs:  22 entries (48 bytes)
biovec pool[2]:  16 bvecs:  11 entries (192 bytes)
biovec pool[3]:  64 bvecs:   5 entries (768 bytes)
biovec pool[4]: 128 bvecs:   2 entries (1536 bytes)
biovec pool[5]: 256 bvecs:   1 entries (3072 bytes)
sa1111_pcibuf: buffer sizes: small=1024, large=4096
NetWinder Floating Point Emulator V0.97 (double precision)
SA11x0/PXA2xx Real Time Clock driver v1.00
ttyS0 at MMIO 0x40200000 (irq = 14) is a BTUART
RAMDISK driver initialized: 1 RAM disks of 10240K size 1024 blocksize
RAMDISK: ext2 filesystem found at block 0
RAMDISK: Loading 8000 blocks [1 disk] into ram disk... done.
Freeing initrd memory: 8192K
VFS: Mounted root (ext2 filesystem) readonly.
Freeing init memory: 48K

And here it stops...!!!
But the kernel comes to "execve("/sbin/init",argv_init,envp_init);",
have tested to put a printk-line just above that line and it's printed.
Why can't "/sbin/init" execute? Pitre's ramdisk should be working on a
PXA250, or?

We have changed in the "static struct uart_pxa_port serial_pxa_ports[]"
and put our BTUART first instead of FFUART. So our BTUART is ttyS0.
Otherwise the kernel doesn't line up our UART, only the first one in the
struct seems to work. But it should work with BTUART as ttyS0, or?

Does anybody has any tip or solution?
Thanks in advance!

-------------------------------------------------------------------
Subscription options: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
FAQ/Etiquette:       http://www.arm.linux.org.uk/armlinux/mailinglists.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic