08-02-2010 05:36 AM
hey,
I'm trying to boot Linux-kernel on ml507 Virtex 5 (powerpc),
I make all steps in this tutorial:
http://xilinx.wdfiles.com/local--files/embedded-linux/uboot-ml507-howto.pdf
and use the newest verstion of tool and Kernel from
but in I boot the kernel I get folowing error:
=> printenv
bootargs=console=ttyS0,9600 ip=off root=/dev/xsysace/disc0/part2 rw
bootdelay=5
baudrate=9600
loads_echo=1
ethaddr=00:0A:35:01:E7:96
stdin=serial
stdout=serial
stderr=serial
Environment size: 174/1020 bytes
=> bootm 0xFE400000 - 0xFFF00000
## Booting kernel from Legacy Image at fe400000 ...
Image Name: Linux-2.6.34
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 1860612 Bytes = 1.8 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at fff00000
Booting using the fdt blob at 0xfff00000
Uncompressing Kernel Image ... OK
Loading Device Tree to 007fa000, end 007fffff ... OK
Unable to update property /plb/opb:clock-frequency, err=FDT_ERR_NOTFOUND
Unable to update property /plb/ebc:clock-frequency, err=FDT_ERR_NOTFOUND
Unable to update property NOR mapping, err=FDT_ERR_NOTFOUND
Using Xilinx Virtex440 machine description
Linux version 2.6.34 (root@blub) (gcc version 4.2.2) #1 PREEMPT Mon Aug 2 12:56:43 CEST 20 10
Zone PFN ranges:
DMA 0x00000000 -> 0x00010000
Normal empty
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 rootfstype=jffs2 root=/dev/mtdblock2 rw mtdparts=fe0000 00.flash:4M(bits)ro,2M(kernel)ro,25M(rootfs),128k(devtree),640K(unused),256K(uboot)
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: 255952k/262144k available (3628k kernel code, 6192k reserved, 136k data, 126k bss, 168k init)
Kernel virtual memory layout:
* 0xfffdf000..0xfffff000 : fixmap
* 0xfde00000..0xfe000000 : consistent mem
* 0xfde00000..0xfde00000 : early ioremap
* 0xd1000000..0xfde00000 : vmalloc & ioremap
Hierarchical RCU implementation.
NR_IRQS:512 nr_irqs:512
clocksource: timebase mult[a00000] 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
XGpio: /plb@0/gpio@81400000: registered
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.
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
ROMFS MTD (C) 2007 Red Hat, Inc.
msgmni has been set to 499
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
83e20000.serial: ttyS0 at MMIO 0x83e21003 (irq = 16) is a 16550
console [ttyS0] enabled
83e00000.serial: ttyS1 at MMIO 0x83e01003 (irq = 17) is a 16550
brd: module loaded
loop: module loaded
fe000000.flash: Found 1 x16 devices at 0x0 in 16-bit bank
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Using buffer write method
Using auto-unlock on power-up/resume
cfi_cmdset_0001: Erase suspend on write enabled
6 cmdlinepart partitions found on MTD device fe000000.flash
Creating 6 MTD partitions on "fe000000.flash":
0x000000000000-0x000000400000 : "bits"
0x000000400000-0x000000600000 : "kernel"
0x000000600000-0x000001f00000 : "rootfs"
0x000001f00000-0x000001f20000 : "devtree"
0x000001f20000-0x000001fc0000 : "unused"
0x000001fc0000-0x000002000000 : "uboot"
Device Tree Probing 'ethernet'
xilinx_lltemac 81480000.ethernet: MAC address is now 0: a:35:eb:88: 0
xilinx_lltemac 81480000.ethernet: XLlTemac: using DMA mode.
XLlTemac: DCR address: 0x80
XLlTemac: buffer descriptor size: 32768 (0x8000)
XLlTemac: Allocating DMA descriptors with kmalloc
XLlTemac: (buffer_descriptor_init) phy: 0xf9c0000, virt: 0xcf9c0000, size: 0x8000
XTemac: PHY detected at address 7.
eth0: Dropping NETIF_F_SG since no checksum feature.
xilinx_lltemac 81480000.ethernet: eth0: Xilinx TEMAC at 0x81480000 mapped to 0xD108C000, i rq=18
mice: PS/2 mouse device common for all mice
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.
List of all partitions:
No filesystem could mount root, tried: jffs2
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
Call Trace:
[cf82ded0] [c0005fdc] show_stack+0x44/0x16c (unreliable)
[cf82df10] [c0034810] panic+0x94/0x110
[cf82df60] [c0361e48] mount_block_root+0x1d4/0x244
[cf82dfb0] [c0362144] prepare_namespace+0x17c/0x208
[cf82dfd0] [c0361268] kernel_init+0x14c/0x188
[cf82dff0] [c000ddfc] kernel_thread+0x4c/0x68
Rebooting in 180 seconds..
but whats wrong?
08-03-2010 01:20 AM
if I boot from /dev/ram with uramdisk linux boot without errors, but if I boot from flash it dont work :-/
08-03-2010 07:44 AM
It sounds like you haven't programmed the flash correctly.
I would boot off of the ramdisk and try to mount the flash file system manually 1st. Until that works you'll not be able to boot off of the flash.
This is a general Linux question, not Xilinx specific.
Thanks.
09-06-2010 05:46 AM
in bootm options u specified NULL for ramdisk...and didnt program flash with the ramdisk image !!
12-05-2012 08:28 PM
Hello,
i am trying to port linux kernrl on ml403 by powerpc core, kernel is compiling but of no use i am seeing the old message "finalising device tree........flat tree at xxxxxxxx" after this statement booting is stoped, and i am not using any u-boot
After downloading 3.6 kernel from git, these are the steps i followed
1) downloaded a ramdisk.image.gz and pasted it in /arch/powerpc/boot
2) after pasting i followed these steps for initrd http://www.aclevername.com/articles/linux-xilinx-tutorial/minimalist-initramfs.html
3) make ARCH=powerpc 40x/virtex4_defconfig
4)make ARCH=powerpc simpleImage.initrd.xilinx
After hitting the last step i got an elf image in /arch/powerpc/boot
i took that elf and bit file for creating ace file . I dumped .ace file on to board through compact flash.
after doing this i am able to see only 5 lines on the console and the last line is "finalising device tree...flat tree at xxxxxxxx"
These are the steps i am following is this correct or what? if wrong what is correct approach.....plz share
Thanks in advance