cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Observer
Observer
4,375 Views
Registered: ‎11-24-2009

problem with run kernel

Hi friends, I have one ml310 board and I can run the linux 2.6kernel very well with root=/dev/ram but I need tun on the compactflash and I made this change root=/dev/xsysace/disc0/part2 I saw this on the wikidot but when I run my kernel I see this:

 

 

zImage starting: loaded at 0x00400000 (sp: 0x00997eb0)
Allocating 0x38cf6c bytes for kernel ...
gunzipping (0x00000000 <- 0x0040d000:0x005addc6)...done 0x36c02c bytes
Attached initrd image at 0x005ae000-0x009965f5
initrd head: 0x1f8b0808

Linux/PowerPC load: console=ttyS0 root=/dev/xsysace/disc0/part2
Finalizing device tree... flat tree at 0x9a4300
Using Xilinx Virtex machine description
Linux version 2.6.33 (root@localhost.localdomain) (gcc version 4.2.2) #7 PREEMPT
 Wed Apr 21 13:35:10 CEST 2010
Zone PFN ranges:
  DMA      0x00000000 -> 0x00010000
  Normal   0x00010000 -> 0x00010000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00010000
MMU: Allocated 1088 bytes of context maps for 255 contexts
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
Kernel command line: console=ttyS0 root=/dev/xsysace/disc0/part2
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 256000k/262144k available (3380k kernel code, 5912k reserved, 128k data,
 127k bss, 144k init)
Kernel virtual memory layout:
  * 0xfffdf000..0xfffff000  : fixmap
  * 0xfde00000..0xfe000000  : consistent mem
  * 0xfde00000..0xfde00000  : early ioremap
  * 0xd1000000..0xfde00000  : vmalloc & ioremap
Hierarchical RCU implementation.
RCU-based detection of stalled CPUs is enabled.
NR_IRQS:512 nr_irqs:512
clocksource: timebase mult[d55555] shift[22] registered
Console: colour dummy device 80x25
Mount-cache hash table entries: 512
NET: Registered protocol family 16
PCI: Probing PCI hardware
bio: create slab <bio-0> at 0
vgaarb: loaded
Switching to clocksource timebase
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
ROMFS MTD (C) 2007 Red Hat, Inc.
msgmni has been set to 500
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
83e00000.serial: ttyS0 at MMIO 0x83e01003 (irq = 16) is a 16550
console [ttyS0] enabled
brd: module loaded
loop: module loaded
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
TCP cubic registered
NET: Registered protocol family 17
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "xsysace/disc0/part2" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
Call Trace:
[cf831ed0] [c0006ec8] show_stack+0x44/0x16c (unreliable)
[cf831f10] [c0033248] panic+0x9c/0x180
[cf831f60] [c0329d5c] mount_block_root+0x12c/0x244
[cf831fb0] [c0329fec] prepare_namespace+0x68/0x210
[cf831fd0] [c032923c] kernel_init+0x120/0x14c
[cf831ff0] [c000f170] kernel_thread+0x4c/0x68
Rebooting in 180 seconds..

 

 

 

I know that the problem is on the root but I need run on the compact flash. somebody can help me? thanks!!

0 Kudos
3 Replies
Highlighted
Participant
Participant
4,365 Views
Registered: ‎05-07-2009

hi, jose_mula,

 

try to use this bootargs: console=ttyS0 root=/dev/xsa2

 

 

 

Aaron 

0 Kudos
Highlighted
Observer
Observer
4,342 Views
Registered: ‎11-24-2009

I tried this and don't solve the problem I see this:

 

zImage starting: loaded at 0x00400000 (sp: 0x0099aeb0)
Allocating 0x392f8c bytes for kernel ...
gunzipping (0x00000000 <- 0x0040d000:0x005b0b39)...done 0x37202c bytes
Attached initrd image at 0x005b1000-0x009995f5
initrd head: 0x1f8b0808

Linux/PowerPC load: console=ttyS0 root=/dev/xsa2
Finalizing device tree... flat tree at 0x9a7300
Using Xilinx Virtex machine description
Linux version 2.6.33 (root@localhost.localdomain) (gcc version 4.2.2) #10 PREEMP
T Thu Apr 22 10:50:46 CEST 2010
Found initrd at 0xc05b1000:0xc09995f5
Zone PFN ranges:
  DMA      0x00000000 -> 0x00010000
  Normal   0x00010000 -> 0x00010000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00010000
MMU: Allocated 1088 bytes of context maps for 255 contexts
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
Kernel command line: console=ttyS0 root=/dev/xsa2
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 251904k/262144k available (3404k kernel code, 9940k reserved, 128k data,
 127k bss, 164k init)
Kernel virtual memory layout:
  * 0xfffdf000..0xfffff000  : fixmap
  * 0xfde00000..0xfe000000  : consistent mem
  * 0xfde00000..0xfde00000  : early ioremap
  * 0xd1000000..0xfde00000  : vmalloc & ioremap
Hierarchical RCU implementation.
RCU-based detection of stalled CPUs is enabled.
NR_IRQS:512 nr_irqs:512
clocksource: timebase mult[d55555] shift[22] registered
Console: colour dummy device 80x25
Mount-cache hash table entries: 512
NET: Registered protocol family 16
PCI: Probing PCI hardware
bio: create slab <bio-0> at 0
vgaarb: loaded
Switching to clocksource timebase
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 4001k freed
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
ROMFS MTD (C) 2007 Red Hat, Inc.
msgmni has been set to 500
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
83e00000.serial: ttyS0 at MMIO 0x83e01003 (irq = 16) is a 16550
console [ttyS0] enabled
brd: module loaded
loop: module loaded
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
TCP cubic registered
NET: Registered protocol family 17
RAMDISK: gzip image found at block 0
EXT2-fs (ram0): warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem) on device 1:0.
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "xsa2" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
Call Trace:
[cf831ea0] [c0006ec8] show_stack+0x44/0x16c (unreliable)
[cf831ee0] [c0033308] panic+0x9c/0x180
[cf831f30] [c032ad7c] mount_block_root+0x12c/0x244
[cf831f80] [c032bcd0] initrd_load+0x238/0x338
[cf831fb0] [c032b0a4] prepare_namespace+0x100/0x208
[cf831fd0] [c032a23c] kernel_init+0x120/0x14c
[cf831ff0] [c000f170] kernel_thread+0x4c/0x68
Rebooting in 180 seconds..

 

I need make any change in the configuration of the kernel with respect to root=/dev/ram?

0 Kudos
Highlighted
Newbie
Newbie
4,332 Views
Registered: ‎04-22-2010

Hi Jose,

 

from what I get, you want to run the file system from your CF card. Here is what I did, to get the whole system running from the CF card:

 

  • -in the configuration file, you should enable ACE support, uder device drivers options (not the "old" driver)
  • -in the configuration file, you should enable ext3 filesystem support
  • -supposing you want to put the root filesystem, in the CF card's second partition, you should change the boot args in your dts file, as: boot=/dev/xsa2 rw
  • -now build the kernel with: make simpleImage.<your_dts_file> 
  • -you will now have your elf file, which you can combine with your bit design file, so as to generate an ace file to run from the CF card.
  • -have your root filesystem on the second Linux partition of the card, and put the ace file at the first partition, as usual and you should now have a bootable Linux System from the CF card.

 

 

References:

  1. http://forums.xilinx.com/xlnx/board/message?message.uid=39019
  2. 2.http://xilinx.wikidot.com/osl-sysace-driver
0 Kudos