cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Contributor
Contributor
8,762 Views
Registered: ‎09-24-2009

ML507 uImage booting error

Hello,

 

I am testing uImage booting from u-boot

But i have an some error messages pleas anyown can help this problem ?

 

Linux kernel 2.6.30

 

 

----------------------------------------------------------------------------
STEP 1 :the device tree blob from the FTP server into memory of the ML507.
----------------------------------------------------------------------------
=> nfs 0x1000000 192.168.70.161:/home/kha/downloads/ml507.dtb
File transfer via NFS from server 192.168.70.161; our IP address is 192.168.70.1
Filename '/home/kha/downloads/ml507.dtb'.
Load address: 0x1000000
Loading: ###
done
Bytes transferred = 12288 (3000 hex)


-------------------------------------------------------------------
STEP 2: uImage down load


=> nfs 0x1C00000 192.168.70.161:/home/kha/downloads/uImage
File transfer via NFS from server 192.168.70.161; our IP address is 192.168.70.1
Filename '/home/kha/downloads/uImage'.
Load address: 0x4000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         ###############################################
done
Bytes transferred = 1567026 (17e932 hex)

 

 

 

 

STEP 3: Booting start.

##
=> bootm 0x1c00000 - 0x1000000
## Booting kernel from Legacy Image at 01c00000 ...
   Image Name:   Linux-2.6.30
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    1566962 Bytes =  1.5 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x1000000
   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.30 (kha@controldev32) (gcc version 4.2.2) #19 PREEMPT Tue Oct 6 13:33:21 EDT 2009
Zone PFN ranges:
  DMA      0x00000000 -> 0x00010000
  Normal   0x00010000 -> 0x00010000
  HighMem  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/ram rw ip=192.168.70.1
NR_IRQS:512
Xilinx intc at 0x81800000 mapped to 0xff9ff000
PID hash table entries: 1024 (order: 10, 4096 bytes)
clocksource: timebase mult[a00000] shift[22] registered
Console: colour dummy device 80x25
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 256000k/262144k available (3192k kernel code, 5820k reserved, 140k data, 140k bss, 156k init)
Kernel virtual memory layout:
  * 0xfffef000..0xfffff000  : fixmap
  * 0xffc00000..0xffe00000  : highmem PTEs
  * 0xffa00000..0xffc00000  : consistent mem
  * 0xff9ff000..0xffa00000  : early ioremap
  * 0xd1000000..0xff9ff000  : vmalloc & ioremap
Calibrating delay loop... 798.72 BogoMIPS (lpj=399360)
Mount-cache hash table entries: 512
net_namespace: 880 bytes
NET: Registered protocol family 16
PCI: Probing PCI hardware
bio: create slab <bio-0> at 0
XGpio: /plb@0/gpio@81460000: registered
XGpio: /plb@0/gpio@81400000: registered
XGpio: /plb@0/gpio@81420000: registered
XGpio: /plb@0/gpio@81440000: registered
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
NET: Registered protocol family 1
ROMFS MTD (C) 2007 Red Hat, Inc.
msgmni has been set to 500
io scheduler noop registered
io scheduler anticipatory 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 16550A
console [ttyS0] enabled
brd: module loaded
loop: module loaded
Device Tree Probing 'ethernet'
xilinx_lltemac 81c00000.ethernet: MAC address is now  0: a:35: 0: 0: 0
xilinx_lltemac 81c00000.ethernet: XLlTemac: using DMA mode.
XLlTemac: DCR address: 0x80
XLlTemac: buffer descriptor size: 32768 (0x8000)
XLlTemac: Allocating DMA descriptors with kmalloc<6>XLlTemac: (buffer_descriptor_init) phy: 0xf958000, virt: 0xcf9
58000, size: 0x8000
XTemac: PHY detected at address 7.
eth0 (xilinx_lltemac): not using net_device_ops yet
xilinx_lltemac 81c00000.ethernet: eth0: Xilinx TEMAC at 0x81C00000 mapped to 0xD1036000, irq=17
mice: PS/2 mouse device common for all mice
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
eth0: XLlTemac: Options: 0x3fa
eth0: XLlTemac: allocating interrupt 19 for dma mode tx.
eth0: XLlTemac: allocating interrupt 18 for dma mode rx.
eth0: XLlTemac: speed set to 1000Mb/s
eth0: XLlTemac: Send Threshold = 24, Receive Threshold = 4
eth0: XLlTemac: Send Wait bound = 254, Receive Wait bound = 254
IP-Config: Guessing netmask 255.255.255.0
IP-Config: Complete:
     device=eth0, addr=192.168.70.1, mask=255.255.255.0, gw=255.255.255.255,
     host=192.168.70.1, domain=, nis-domain=(none),
     bootserver=255.255.255.255, rootserver=255.255.255.255, rootpath=
List of all partitions:
No filesystem could mount root, tried:  ext3 ext2 cramfs vfat msdos romfs
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)
Call Trace:
[cf831ef0] [c0005bd0] show_stack+0x50/0x154 (unreliable)
[cf831f30] [c0032804] panic+0x9c/0x16c
[cf831f80] [c02f7d5c] mount_block_root+0x204/0x228
[cf831fc0] [c02f8020] prepare_namespace+0x18c/0x1cc
[cf831fe0] [c02f71f0] kernel_init+0xd4/0xf0
[cf831ff0] [c000d610] kernel_thread+0x4c/0x68
Rebooting in 180 seconds..

 

 

 

Thanks

Kiman

0 Kudos
Reply
7 Replies
Xilinx Employee
Xilinx Employee
8,757 Views
Registered: ‎09-10-2008

You don't give many details, but it looks like you didn't give the kernel any root file system, unless I just missed it.

 

The wiki at http://xilinx.wikidot.com, on the uboot page shows these details, loading the ramdisk into memory.

 

Thanks.

0 Kudos
Reply
Contributor
Contributor
8,667 Views
Registered: ‎09-24-2009

Thanks a lot.

 

I solved booting problem!

 

Kiman

 

0 Kudos
Reply
Xilinx Employee
Xilinx Employee
8,654 Views
Registered: ‎09-10-2008

Hi Kiman,

 

Can you post the solution for others that may have the same problem?

 

Thanks,

John

0 Kudos
Reply
Contributor
Contributor
8,652 Views
Registered: ‎09-24-2009

Hi John,

 

I have try to u-boot NSF for loading Linux kernel image.

 

 

 

----------------------------
Linux Host dtb file create
----------------------------


kha@controldev32:~/Xilinx/linux-2.6-xlnx/arch/powerpc/boot$
./dtc -b 0 -V 17 -R 4 -S 0x3000 -I dts -O dtb -o ml507.dtb -f dts/virtex440-ml507.dts

 

 

----------------------------
RAM DISK IMAGE create for u-boot
----------------------------
#mkimage -A microblaze -O linux -T ramdisk -C gzip -d arch/microblaze/boot/ramdisk.image.gz uramdisk.image.gz
mkimage -A ppc -O linux -T ramdisk -C gzip -d arch/powerpc/boot/ramdisk.image.gz uramdisk.image.gz

 


----------------------------------------------------------------------------
STEP 1: the device tree blob from the FTP server into memory of the ML507.
----------------------------------------------------------------------------
=> nfs 0x1000000 192.168.70.161:/home/kha/downloads/ml507.dtb
File transfer via NFS from server 192.168.70.161; our IP address is 192.168.70.1
Filename '/home/kha/downloads/ml507.dtb'.
Load address: 0x1000000
Loading: ###
done
Bytes transferred = 12288 (3000 hex)

 


-------------------------------------------------------------------
STEP 2: Download file via NFS protocol
-------------------------------------------------------------------
=> nfs 0x1C00000 192.168.70.161:/home/kha/downloads/uImage
File transfer via NFS from server 192.168.70.161; our IP address is 192.168.70.1
Filename '/home/kha/downloads/uImage'.
Load address: 0x4000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         ###############################################
done
Bytes transferred = 1567026 (17e932 hex)

 

 

-----------
STEP 3: Download uramdisk
-----------
=> nfs 0x1800000 192.168.70.161:/home/kha/downloads/uramdisk.image.gz

 

 

----------------- 

STEP 4: RUN
-----------------------------------------------------------
-> bootm 0x1c00000 0x1800000 0x1000000

 

 

 

=> printenv
baudrate=9600
loads_echo=1
ethaddr=00:0A:35:01:E3:48
ipaddr=192.168.70.1
netmask=255.255.255.0
serverip=192.168.70.161
bootargs=root=dev/nfs rw nfsroot=192.168.70.161:/home/kha/downloads ip=192.168.70.1:192.168.70.161:192.168.70.254:
255.255.255.0::eth0:off console=ttyS0,115200 mem=254M
nfs=0x1000000 192.168.70.161:/home/kha/downloads/ml507.dtb nfs 0x1C00000 192.168.70.161:/home/kha/downloads/uImage
 nfs 0x1800000 192.168.70.161:/home/kha/downloads/uramdisk.image.gz
bootm=0x1c00000 0x1800000 0x1000000
bootdelay=3
bootcmd=bootm 0x1c00000 0x1800000 0x1000000
stdin=serial
stdout=serial
stderr=serial

Environment size: 602/1020 bytes
=>

 

 


---------------------
--- BOOT MESSAGE
---------------------
U-Boot 1.3.4-00326-g9abed00 (Oct  2 2009 - 11:14:36)

CPU:   Xilinx PowerPC 440 UNKNOWN (PVR=7ff21912) at 400 MHz
       32 kB I-Cache 32 kB D-Cache
### No HW ID - assuming ML507
DRAM:  256 MB
FLASH: 32 MB
In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
## Booting kernel from Legacy Image at 01c00000 ...
   Image Name:   Linux-2.6.30
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    1566962 Bytes =  1.5 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01800000 ...
   Image Name:
   Image Type:   PowerPC Linux RAMDisk Image (gzip compressed)
   Data Size:    1854335 Bytes =  1.8 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x1000000
   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
   Loading Ramdisk to 0fcd8000, end 0fe9cb7f ... OK
Using Xilinx Virtex440 machine description
Linux version 2.6.30 (kha@controldev32) (gcc version 4.2.2) #19 PREEMPT Tue Oct 6 13:33:21 EDT 2009
Found initrd at 0xcfcd8000:0xcfe9cb7f
Zone PFN ranges:
  DMA      0x00000000 -> 0x00010000
  Normal   0x00010000 -> 0x00010000
  HighMem  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/ram rw ip=192.168.70.1
NR_IRQS:512
Xilinx intc at 0x81800000 mapped to 0xff9ff000
PID hash table entries: 1024 (order: 10, 4096 bytes)
clocksource: timebase mult[a00000] shift[22] registered
Console: colour dummy device 80x25
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 252400k/262144k available (3192k kernel code, 9444k reserved, 140k data, 140k bss, 156k init)
Kernel virtual memory layout:
  * 0xfffef000..0xfffff000  : fixmap
  * 0xffc00000..0xffe00000  : highmem PTEs
  * 0xffa00000..0xffc00000  : consistent mem
  * 0xff9ff000..0xffa00000  : early ioremap
  * 0xd1000000..0xff9ff000  : vmalloc & ioremap
Calibrating delay loop... 798.72 BogoMIPS (lpj=399360)
Mount-cache hash table entries: 512
net_namespace: 880 bytes
NET: Registered protocol family 16
PCI: Probing PCI hardware
bio: create slab <bio-0> at 0
XGpio: /plb@0/gpio@81460000: registered
XGpio: /plb@0/gpio@81400000: registered
XGpio: /plb@0/gpio@81420000: registered
XGpio: /plb@0/gpio@81440000: registered
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
NET: Registered protocol family 1
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 1810k freed
ROMFS MTD (C) 2007 Red Hat, Inc.
msgmni has been set to 497
io scheduler noop registered
io scheduler anticipatory 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 16550A
console [ttyS0] enabled
brd: module loaded
loop: module loaded
Device Tree Probing 'ethernet'
xilinx_lltemac 81c00000.ethernet: MAC address is now  0: a:35: 0: 0: 0
xilinx_lltemac 81c00000.ethernet: XLlTemac: using DMA mode.
XLlTemac: DCR address: 0x80
XLlTemac: buffer descriptor size: 32768 (0x8000)
XLlTemac: Allocating DMA descriptors with kmalloc<6>XLlTemac: (buffer_descriptor_init) phy: 0xf8a0000, virt: 0xcf8
a0000, size: 0x8000
XTemac: PHY detected at address 7.
eth0 (xilinx_lltemac): not using net_device_ops yet
xilinx_lltemac 81c00000.ethernet: eth0: Xilinx TEMAC at 0x81C00000 mapped to 0xD1036000, irq=17
mice: PS/2 mouse device common for all mice
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
eth0: XLlTemac: Options: 0x3fa
eth0: XLlTemac: allocating interrupt 19 for dma mode tx.
eth0: XLlTemac: allocating interrupt 18 for dma mode rx.
eth0: XLlTemac: speed set to 1000Mb/s
eth0: XLlTemac: Send Threshold = 24, Receive Threshold = 4
eth0: XLlTemac: Send Wait bound = 254, Receive Wait bound = 254
IP-Config: Guessing netmask 255.255.255.0
IP-Config: Complete:
     device=eth0, addr=192.168.70.1, mask=255.255.255.0, gw=255.255.255.255,
     host=192.168.70.1, domain=, nis-domain=(none),
     bootserver=255.255.255.255, rootserver=255.255.255.255, rootpath=
RAMDISK: gzip image found at block 0
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem) on device 1:0.
Freeing unused kernel memory: 156k init
### Application running ...
root:~>

 

 

 

Thanks

Kiman,

0 Kudos
Reply
Visitor
Visitor
7,500 Views
Registered: ‎05-10-2010

Hello,

 

I am testing uImage booting from u-boot

But i have an some error messages pleas anyown can help this problem ?

 

Linux kernel 2.6.32

 

when I try to put "file.dtb" in the flash memory and I give this bootm commande to u-uboot: "bootm 0x86400000 - 0x87FF0000"

I have this error:

 

U-Boot 1.3.4-00326-g9abed00-dirty (Jun 29 2010 - 15:01:47)

CPU:   Xilinx PowerPC 440 UNKNOWN (PVR=7ff21912) at 400 MHz
       32 kB I-Cache 32 kB D-Cache
### No HW ID - assuming ML507
DRAM:  64 MB
Top of RAM usable for U-Boot at: 04000000
Reserving 244k for U-Boot at: 03fc2000
Reserving 130k for malloc() at: 03fa1800
Reserving 128 Bytes for Board Info at: 03fa1780
Reserving 56 Bytes for Global Data at: 03fa1748
Stack Pointer at: 03fa1728
New Stack Pointer is: 03fa1728
relocation  fait Now running in RAM - U-Boot at: 03fc2000
FLASH: flash detect cfi
fwc addr 86000000 cmd f0 f0 8bit x 8 bit
fwc addr 86000000 cmd ff ff 8bit x 8 bit
fwc addr 86000055 cmd 98 98 8bit x 8 bit
is= cmd 51(Q) addr 86000010 is= 0 51
fwc addr 86000555 cmd 98 98 8bit x 8 bit
is= cmd 51(Q) addr 86000010 is= 0 51
fwc addr 86000000 cmd f0 f0f0 16bit x 8 bit
fwc addr 86000000 cmd ff ffff 16bit x 8 bit
fwc addr 860000aa cmd 98 9898 16bit x 8 bit
is= cmd 51(Q) addr 86000020 is= 0051 5151
fwc addr 86000aaa cmd 98 9898 16bit x 8 bit
is= cmd 51(Q) addr 86000020 is= 0051 5151
fwc addr 86000000 cmd f0 00f0 16bit x 16 bit
fwc addr 86000000 cmd ff 00ff 16bit x 16 bit
fwc addr 860000aa cmd 98 0098 16bit x 16 bit
is= cmd 51(Q) addr 86000020 is= 0051 0051
is= cmd 52(R) addr 86000022 is= 0052 0052
is= cmd 59(Y) addr 86000024 is= 0059 0059
device interface is 1
found port 2 chip 2 port 16 bits chip 16 bits
00 : 51 52 59 01 00 0a 01 00 00 00 00 17 20 85 95 08  QRY......... ...
10 : 09 0a 00 01 01 02 00 19 01 00 06 00 02 fe 00 00  ................
20 : 02 03 00 80 00 00 00 00 00 ff ff ff ff fd 1b 94  ................
fwc addr 86000000 cmd ff 00ff 16bit x 16 bit
fwc addr 86000000 cmd 90 0090 16bit x 16 bit
fwc addr 86000000 cmd ff 00ff 16bit x 16 bit
fwc addr 860000aa cmd 98 0098 16bit x 16 bit
manufacturer is 1
manufacturer id is 0x89
device id is 0x19
device id2 is 0x0
cfi version is 0x3134
size_ratio 1 port 16 bits chip 16 bits
found 2 erase regions
erase region 0: 0x020000fe
erase_region_count = 255 erase_region_size = 131072
ERROR: too many flash sectors
erase region 1: 0x00800003
erase_region_count = 4 erase_region_size = 32768
ERROR: too many flash sectors
fwc addr 86000000 cmd ff 00ff 16bit x 16 bit
32 MB
*** Warning - bad CRC, using default environment

U-Boot relocated to 03fc2000
Xilinx PIC at 0x81800000
U-Boot is up and runnining
### main_loop entered: bootdelay=5

### main_loop: bootcmd="bootm 0x86400000 - 0x87FF0000"
Hit any key to stop autoboot:  5 \0x08\0x08\0x08 4 \0x08\0x08\0x08 3 \0x08\0x08\0x08 2 \0x08\0x08\0x08 1 \0x08\0x08\0x08 0
*  kernel: cmdline image address = 0x86400000
## Booting kernel from Legacy Image at 86400000 ...
   Image Name:   Linux-2.6.32
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    1698353 Bytes =  1.6 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   kernel data at 0x86400040, len = 0x0019ea31 (1698353)
## Skipping init Ramdisk
## No init Ramdisk
   ramdisk start = 0x00000000, ramdisk end = 0x00000000
*  fdt: cmdline image address = 0x87ff0000
## Checking for 'FDT'/'FDT Image' at 87ff0000
*  fdt: raw FDT blob
## Flattened Device Tree blob at 87ff0000
   Booting using the fdt blob at 0x87ff0000
   of_flat_tree at 0x87ff0000 size 0x00003000
   Uncompressing Kernel Image ... OK
   kernel loaded at 0x00000000, end = 0x03fa1520
## Current stack ends at 0x03fa14d0
## device tree at 0x87FF0000 ... 0x87FF2FFF (len=24576=0x6000)
   Loading Device Tree to 007fa000, end 007fffff ... OK
Updating property 'timebase-frequency' =  17 d7 84 00
Updating property 'clock-frequency' =  17 d7 84 00
Updating property '/plb/clock-frequency' =  05 f5 e1 00
Updating property '/plb/opb/clock-frequency' =  03 ff cf b0
Unable to update property /plb/opb:clock-frequency, err=8\0x03
Updating property '/plb/ebc/clock-frequency' =  00 7f a0 00
Unable to update property /plb/ebc:clock-frequency, err=8\0x03
Updating property 'clock-frequency' =  05 f5 e1 00
Unable to update property NOR mapping, err=8\0x03
## initrd_high = 0xffffffff, copy_to_ram = 1
   ramdisk load start = 0x00000000, ramdisk load end = 0x00000000
## Transferring control to Linux (at address 00000000) ...
   Booting using OF flat tree...
Using Xilinx Virtex440 machine description
Linux version 2.6.32 (root@AMP909) (gcc version 4.2.2) #22 PREEMPT Tue Jun 29 14:16:49 CEST 2010
Zone PFN ranges:
  DMA      0x00000000 -> 0x00004000
  Normal   0x00004000 -> 0x00004000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00004000
MMU: Allocated 1088 bytes of context maps for 255 contexts
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: console=ttyS0,9600 ip=192.168.133.161 root=/dev/ram rw mtdparts=86000000.flash:4M(bits)ro,2M(kernel)ro,25M(rootfs),128k(dev-tree),356K(unused),540K(uboot)
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 61204k/65536k available (3360k kernel code, 4272k reserved, 164k data, 137k bss, 156k init)
Kernel virtual memory layout:
  * 0xffffe000..0xfffff000  : fixmap
  * 0xfde00000..0xfe000000  : consistent mem
  * 0xfde00000..0xfde00000  : early ioremap
  * 0xd1000000..0xfde00000  : vmalloc & ioremap
Hierarchical RCU implementation.
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
bio: create slab <bio-0> at 0
XGpio: /plb@0/gpio@81420000: registered
XGpio: /plb@0/gpio@81400000: registered
XGpio: /plb@0/gpio@81440000: registered
Switching to clocksource timebase
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
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).
JFFS2 version 2.2. (NAND) \0xc2\0xa9 2001-2006 Red Hat, Inc.
ROMFS MTD (C) 2007 Red Hat, Inc.
msgmni has been set to 119
io scheduler noop registered
io scheduler anticipatory 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
86000000.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 86000000.flash
Creating 6 MTD partitions on "86000000.flash":
0x000000000000-0x000000400000 : "bits"
0x000000400000-0x000000600000 : "kernel"
0x000000600000-0x000001f00000 : "rootfs"
0x000001f00000-0x000001f20000 : "dev-tree"
0x000001f20000-0x000001f79000 : "unused"
mtd: partition "unused" doesn't end on an erase block -- force read-only
0x000001f79000-0x000002000000 : "uboot"
mtd: partition "uboot" doesn't start on an erase block boundary -- force read-only
Device Tree Probing 'ethernet'
xilinx_lltemac 81c00000.ethernet: MAC address is now  2: 0: 0: 0: 0: 0
xilinx_lltemac 81c00000.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: 0x39b8000, virt: 0xc39b8000, size: 0x8000
XTemac: PHY detected at address 1.
xilinx_lltemac 81c00000.ethernet: eth0: Xilinx TEMAC at 0x81C00000 mapped to 0xD1056000, irq=17
mice: PS/2 mouse device common for all mice
TCP cubic registered
NET: Registered protocol family 17
eth0: XLlTemac: Options: 0x3fa
eth0: XLlTemac: allocating interrupt 19 for dma mode tx.
eth0: XLlTemac: allocating interrupt 18 for dma mode rx.
NATIONAL DP83865 PHY
XLlTemac: speed set to 10Mb/s
eth0: XLlTemac: Send Threshold = 24, Receive Threshold = 4
eth0: XLlTemac: Send Wait bound = 254, Receive Wait bound = 254
IP-Config: Guessing netmask 255.255.255.0
IP-Config: Complete:
     device=eth0, addr=192.168.133.161, mask=255.255.255.0, gw=255.255.255.255,
     host=192.168.133.161, domain=, nis-domain=(none),
     bootserver=255.255.255.255, rootserver=255.255.255.255, rootpath=
List of all partitions:
1f00            4096 mtdblock0 (driver?)
1f01            2048 mtdblock1 (driver?)
1f02           25600 mtdblock2 (driver?)
1f03             128 mtdblock3 (driver?)
1f04             356 mtdblock4 (driver?)
1f05             540 mtdblock5 (driver?)
No filesystem could mount root, tried:  ext2 cramfs vfat msdos romfs
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)
Call Trace:
[c3827ed0] [c0005de8] show_stack+0x44/0x16c (unreliable)
[c3827f10] [c003031c] panic+0x9c/0x170
[c3827f60] [c0321dd0] mount_block_root+0x1d4/0x244
[c3827fb0] [c03220cc] prepare_namespace+0x17c/0x208
[c3827fd0] [c0321224] kernel_init+0x108/0x134
[c3827ff0] [c000db70] kernel_thread+0x4c/0x68
Rebooting in 180 seconds..

 

I know that i missed the file system..and when I try to put uramdisk in the flash memory( with flash writer of EDK)

 

I have this error :

 

 



U-Boot 1.3.4-00326-g9abed00-dirty (Jun 29 2010 - 15:10:13)

CPU:   Xilinx PowerPC 440 UNKNOWN (PVR=7ff21912) at 400 MHz
       32 kB I-Cache 32 kB D-Cache
### No HW ID - assuming ML507
DRAM:  64 MB
Top of RAM usable for U-Boot at: 04000000
Reserving 244k for U-Boot at: 03fc2000
Reserving 130k for malloc() at: 03fa1800
Reserving 128 Bytes for Board Info at: 03fa1780
Reserving 56 Bytes for Global Data at: 03fa1748
Stack Pointer at: 03fa1728
New Stack Pointer is: 03fa1728
relocation  fait Now running in RAM - U-Boot at: 03fc2000
FLASH: flash detect cfi
fwc addr 86000000 cmd f0 f0 8bit x 8 bit
fwc addr 86000000 cmd ff ff 8bit x 8 bit
fwc addr 86000055 cmd 98 98 8bit x 8 bit
is= cmd 51(Q) addr 86000010 is= 0 51
fwc addr 86000555 cmd 98 98 8bit x 8 bit
is= cmd 51(Q) addr 86000010 is= 0 51
fwc addr 86000000 cmd f0 f0f0 16bit x 8 bit
fwc addr 86000000 cmd ff ffff 16bit x 8 bit
fwc addr 860000aa cmd 98 9898 16bit x 8 bit
is= cmd 51(Q) addr 86000020 is= 0051 5151
fwc addr 86000aaa cmd 98 9898 16bit x 8 bit
is= cmd 51(Q) addr 86000020 is= 0051 5151
fwc addr 86000000 cmd f0 00f0 16bit x 16 bit
fwc addr 86000000 cmd ff 00ff 16bit x 16 bit
fwc addr 860000aa cmd 98 0098 16bit x 16 bit
is= cmd 51(Q) addr 86000020 is= 0051 0051
is= cmd 52(R) addr 86000022 is= 0052 0052
is= cmd 59(Y) addr 86000024 is= 0059 0059
device interface is 1
found port 2 chip 2 port 16 bits chip 16 bits
00 : 51 52 59 01 00 0a 01 00 00 00 00 17 20 85 95 08  QRY......... ...
10 : 09 0a 00 01 01 02 00 19 01 00 06 00 02 fe 00 00  ................
20 : 02 03 00 80 00 00 00 00 00 ff ff ff ff fd 1b 94  ................
fwc addr 86000000 cmd ff 00ff 16bit x 16 bit
fwc addr 86000000 cmd 90 0090 16bit x 16 bit
fwc addr 86000000 cmd ff 00ff 16bit x 16 bit
fwc addr 860000aa cmd 98 0098 16bit x 16 bit
manufacturer is 1
manufacturer id is 0x89
device id is 0x19
device id2 is 0x0
cfi version is 0x3134
size_ratio 1 port 16 bits chip 16 bits
found 2 erase regions
erase region 0: 0x020000fe
erase_region_count = 255 erase_region_size = 131072
ERROR: too many flash sectors
erase region 1: 0x00800003
erase_region_count = 4 erase_region_size = 32768
ERROR: too many flash sectors
fwc addr 86000000 cmd ff 00ff 16bit x 16 bit
32 MB
*** Warning - bad CRC, using default environment

U-Boot relocated to 03fc2000
Xilinx PIC at 0x81800000
U-Boot is up and runnining
### main_loop entered: bootdelay=5

### main_loop: bootcmd="bootm 0x86400000 0x86600000 0x87FF0000"
Hit any key to stop autoboot:  5 \0x08\0x08\0x08 4 \0x08\0x08\0x08 3 \0x08\0x08\0x08 2 \0x08\0x08\0x08 1 \0x08\0x08\0x08 0
*  kernel: cmdline image address = 0x86400000
## Booting kernel from Legacy Image at 86400000 ...
   Image Name:   Linux-2.6.32
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    1698353 Bytes =  1.6 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   kernel data at 0x86400040, len = 0x0019ea31 (1698353)
*  ramdisk: cmdline image address = 0x86600000
## Loading init Ramdisk from Legacy Image at 86600000 ...
   Image Name:   
   Image Type:   PowerPC Linux RAMDisk Image (gzip compressed)
   Data Size:    3357227 Bytes =  3.2 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... Bad Data CRC
Ramdisk image is corrupt
   Uncompressing Kernel Image ... OK
   kernel loaded at 0x00000000, end = 0x03fa1520
images.os.start = 0x0, images.os.end = 0x8659ea71
images.os.load = 0x0, load_end = 0x3fa1520
## Current stack ends at 0x03fa14d0
## cmdline at 0x007ffc00 ... 0x007ffc39
## kernel board info at 0x007ffb80
bd address  = 0x03FA1780
memstart    = 0x00000000
memsize     = 0x04000000
flashstart  = 0x86000000
flashsize   = 0x02000000
flashoffset = 0x00000000
sramstart   = 0x00000000
sramsize    = 0x00000000
bootflags   = 0x00000000
procfreq    =    400 MHz
plb_busfreq =    100 MHz
ethaddr     = 00:1A:A0:0B:82:47
IP addr     = 192.168.133.161
baudrate    =   9600 bps
## initrd_high = 0xffffffff, copy_to_ram = 1
   ramdisk load start = 0x00000000, ramdisk load end = 0x00000000
## Transferring control to Linux (at address 00000000) ...
   Booting using board info...

 

 

I don't know what's the probleme ( its the flashwriter od EDK.xilinx or other thing???)

 

please i need help?

 

thanks

ghazi

0 Kudos
Reply
Xilinx Employee
Xilinx Employee
7,487 Views
Registered: ‎09-10-2008

I see a few things that look like you should be investigating.

 

The following errors probably indicate something is not working or you've set it up wrong.

 

erase region 0: 0x020000fe
erase_region_count = 255 erase_region_size = 131072
ERROR: too many flash sectors
erase region 1: 0x00800003
erase_region_count = 4 erase_region_size = 32768
ERROR: too many flash sectors
fwc addr 86000000 cmd ff 00ff 16bit x 16 bit
32 MB
*** Warning - bad CRC, using default environment

 

I notice that you're using a hardware system which must be very old as it has the OPB bus in it which we haven't used for quite some time.  If you're using tools that old you should probably get some newer tools.  You'll have problems getting much support from anyone if you're using very old tools.

 

If this is running on the ML507 you should be using the reference design from Xilinx which should be newer than that.

 

 

 

0 Kudos
Reply
Visitor
Visitor
7,466 Views
Registered: ‎05-10-2010

Sir,

 

Thanks a lot.

 

I modified some configuration in my config.h(virtex440.h)

and I used  at first this  command to boot linux  ""bootm 0x86400000 - 0x87FF0000"  just the adress of uImage and the device tree ...so I have this error ( I know that he don't find the rootfile but just to explain the probleme ) :

 

 

U-Boot 1.3.4-00326-g9abed00-dirty (Jun 30 2010 - 17:18:18)

CPU:   Xilinx PowerPC 440 UNKNOWN (PVR=7ff21912) at 400 MHz
       32 kB I-Cache 32 kB D-Cache
### No HW ID - assuming ML507
DRAM:  64 MB
Top of RAM usable for U-Boot at: 04000000
Reserving 244k for U-Boot at: 03fc2000
Reserving 130k for malloc() at: 03fa1800
Reserving 128 Bytes for Board Info at: 03fa1780
Reserving 56 Bytes for Global Data at: 03fa1748
Stack Pointer at: 03fa1728
New Stack Pointer is: 03fa1728
relocation  fait Now running in RAM - U-Boot at: 03fc2000
FLASH: flash detect cfi
fwc addr 86000000 cmd f0 f0 8bit x 8 bit
fwc addr 86000000 cmd ff ff 8bit x 8 bit
fwc addr 86000055 cmd 98 98 8bit x 8 bit
is= cmd 51(Q) addr 86000010 is= 0 51
fwc addr 86000555 cmd 98 98 8bit x 8 bit
is= cmd 51(Q) addr 86000010 is= 0 51
fwc addr 86000000 cmd f0 f0f0 16bit x 8 bit
fwc addr 86000000 cmd ff ffff 16bit x 8 bit
fwc addr 860000aa cmd 98 9898 16bit x 8 bit
is= cmd 51(Q) addr 86000020 is= 0051 5151
fwc addr 86000aaa cmd 98 9898 16bit x 8 bit
is= cmd 51(Q) addr 86000020 is= 0051 5151
fwc addr 86000000 cmd f0 00f0 16bit x 16 bit
fwc addr 86000000 cmd ff 00ff 16bit x 16 bit
fwc addr 860000aa cmd 98 0098 16bit x 16 bit
is= cmd 51(Q) addr 86000020 is= 0051 0051
is= cmd 52(R) addr 86000022 is= 0052 0052
is= cmd 59(Y) addr 86000024 is= 0059 0059
device interface is 1
found port 2 chip 2 port 16 bits chip 16 bits
00 : 51 52 59 01 00 0a 01 00 00 00 00 17 20 85 95 08  QRY......... ...
10 : 09 0a 00 01 01 02 00 19 01 00 06 00 02 fe 00 00  ................
20 : 02 03 00 80 00 00 00 00 00 ff ff ff ff fd 1b 94  ................
fwc addr 86000000 cmd ff 00ff 16bit x 16 bit
fwc addr 86000000 cmd 90 0090 16bit x 16 bit
fwc addr 86000000 cmd ff 00ff 16bit x 16 bit
fwc addr 860000aa cmd 98 0098 16bit x 16 bit
manufacturer is 1
manufacturer id is 0x89
device id is 0x19
device id2 is 0x0
cfi version is 0x3134
size_ratio 1 port 16 bits chip 16 bits
found 2 erase regions
erase region 0: 0x020000fe
erase_region_count = 255 erase_region_size = 131072
erase region 1: 0x00800003
erase_region_count = 4 erase_region_size = 32768
fwc addr 86000000 cmd ff 00ff 16bit x 16 bit
32 MB
*** Warning - bad CRC, using default environment

U-Boot relocated to 03fc2000
Xilinx PIC at 0x81800000
U-Boot is up and runnining
### main_loop entered: bootdelay=5

### main_loop: bootcmd="bootm 0x86400000 - 0x87FF0000"
Hit any key to stop autoboot:  5 \0x08\0x08\0x08 4 \0x08\0x08\0x08 3 \0x08\0x08\0x08 2 \0x08\0x08\0x08 1 \0x08\0x08\0x08 0
*  kernel: cmdline image address = 0x86400000
## Booting kernel from Legacy Image at 86400000 ...
   Image Name:   Linux-2.6.32
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    1698350 Bytes =  1.6 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   kernel data at 0x86400040, len = 0x0019ea2e (1698350)
## Skipping init Ramdisk
## No init Ramdisk
   ramdisk start = 0x00000000, ramdisk end = 0x00000000
*  fdt: cmdline image address = 0x87ff0000
## Checking for 'FDT'/'FDT Image' at 87ff0000
*  fdt: raw FDT blob
## Flattened Device Tree blob at 87ff0000
   Booting using the fdt blob at 0x87ff0000
   of_flat_tree at 0x87ff0000 size 0x00003000

   Uncompressing Kernel Image ... OK
   kernel loaded at 0x00000000, end = 0x03fa1520
## Current stack ends at 0x03fa14d0
## device tree at 0x87FF0000 ... 0x87FF2FFF (len=24576=0x6000)
   Loading Device Tree to 007fa000, end 007fffff ... OK
Updating property 'timebase-frequency' =  17 d7 84 00
Updating property 'clock-frequency' =  17 d7 84 00
Updating property '/plb/clock-frequency' =  05 f5 e1 00
Updating property '/plb/opb/clock-frequency' =  03 ff cf b0
Unable to update property /plb/opb:clock-frequency, err=FDT_ERR_NOTFOUND
Updating property '/plb/ebc/clock-frequency' =  00 7f a0 00
Unable to update property /plb/ebc:clock-frequency, err=FDT_ERR_NOTFOUND
Updating property 'clock-frequency' =  05 f5 e1 00
Unable to update property NOR mapping, err=FDT_ERR_NOTFOUND
## initrd_high = 0xffffffff, copy_to_ram = 1
   ramdisk load start = 0x00000000, ramdisk load end = 0x00000000
## Transferring control to Linux (at address 00000000) ...
   Booting using OF flat tree...
Using Xilinx Virtex440 machine description
Linux version 2.6.32 (root@AMP909) (gcc version 4.2.2) #24 PREEMPT Wed Jun 30 16:41:24 CEST 2010
Zone PFN ranges:
  DMA      0x00000000 -> 0x00004000
  Normal   0x00004000 -> 0x00004000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00004000
MMU: Allocated 1088 bytes of context maps for 255 contexts
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: console=ttyS0,9600  ip=192.168.133.161 root=/dev/ram rw
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 61204k/65536k available (3360k kernel code, 4272k reserved, 164k data, 137k bss, 156k init)
Kernel virtual memory layout:
  * 0xffffe000..0xfffff000  : fixmap
  * 0xfde00000..0xfe000000  : consistent mem
  * 0xfde00000..0xfde00000  : early ioremap
  * 0xd1000000..0xfde00000  : vmalloc & ioremap
Hierarchical RCU implementation.
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
bio: create slab <bio-0> at 0
XGpio: /plb@0/gpio@81420000: registered
XGpio: /plb@0/gpio@81400000: registered
XGpio: /plb@0/gpio@81440000: registered
Switching to clocksource timebase
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
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).
JFFS2 version 2.2. (NAND) \0xc2\0xa9 2001-2006 Red Hat, Inc.
ROMFS MTD (C) 2007 Red Hat, Inc.
msgmni has been set to 119
io scheduler noop registered
io scheduler anticipatory 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
86000000.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
RedBoot partition parsing not available
Device Tree Probing 'ethernet'
xilinx_lltemac 81c00000.ethernet: MAC address is now  2: 0: 0: 0: 0: 0
xilinx_lltemac 81c00000.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: 0x39b8000, virt: 0xc39b8000, size: 0x8000
XTemac: PHY detected at address 1.
xilinx_lltemac 81c00000.ethernet: eth0: Xilinx TEMAC at 0x81C00000 mapped to 0xD1056000, irq=17
mice: PS/2 mouse device common for all mice
TCP cubic registered
NET: Registered protocol family 17
eth0: XLlTemac: Options: 0x3fa
eth0: XLlTemac: allocating interrupt 19 for dma mode tx.
eth0: XLlTemac: allocating interrupt 18 for dma mode rx.
NATIONAL DP83865 PHY
XLlTemac: speed set to 10Mb/s
eth0: XLlTemac: Send Threshold = 24, Receive Threshold = 4
eth0: XLlTemac: Send Wait bound = 254, Receive Wait bound = 254
IP-Config: Guessing netmask 255.255.255.0
IP-Config: Complete:
     device=eth0, addr=192.168.133.161, mask=255.255.255.0, gw=255.255.255.255,
     host=192.168.133.161, domain=, nis-domain=(none),
     bootserver=255.255.255.255, rootserver=255.255.255.255, rootpath=
List of all partitions:
1f00           32768 mtdblock0 (driver?)
No filesystem could mount root, tried:  ext2 cramfs vfat msdos romfs
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)

Call Trace:
[c3827ed0] [c0005de8] show_stack+0x44/0x16c (unreliable)
[c3827f10] [c003031c] panic+0x9c/0x170
[c3827f60] [c0321dd0] mount_block_root+0x1d4/0x244
[c3827fb0] [c03220cc] prepare_namespace+0x17c/0x208
[c3827fd0] [c0321224] kernel_init+0x108/0x134
[c3827ff0] [c000db70] kernel_thread+0x4c/0x68
Rebooting in 180 seconds..

 

 

then When I want to add the address of the rootfile system (in the flash) , I have this trace :

 

U-Boot 1.3.4-00326-g9abed00-dirty (Jun 30 2010 - 17:25:37)

CPU:   Xilinx PowerPC 440 UNKNOWN (PVR=7ff21912) at 400 MHz
       32 kB I-Cache 32 kB D-Cache
### No HW ID - assuming ML507
DRAM:  64 MB
Top of RAM usable for U-Boot at: 04000000
Reserving 244k for U-Boot at: 03fc2000
Reserving 130k for malloc() at: 03fa1800
Reserving 128 Bytes for Board Info at: 03fa1780
Reserving 56 Bytes for Global Data at: 03fa1748
Stack Pointer at: 03fa1728
New Stack Pointer is: 03fa1728
relocation  fait Now running in RAM - U-Boot at: 03fc2000
FLASH: flash detect cfi
fwc addr 86000000 cmd f0 f0 8bit x 8 bit
fwc addr 86000000 cmd ff ff 8bit x 8 bit
fwc addr 86000055 cmd 98 98 8bit x 8 bit
is= cmd 51(Q) addr 86000010 is= 0 51
fwc addr 86000555 cmd 98 98 8bit x 8 bit
is= cmd 51(Q) addr 86000010 is= 0 51
fwc addr 86000000 cmd f0 f0f0 16bit x 8 bit
fwc addr 86000000 cmd ff ffff 16bit x 8 bit
fwc addr 860000aa cmd 98 9898 16bit x 8 bit
is= cmd 51(Q) addr 86000020 is= 0051 5151
fwc addr 86000aaa cmd 98 9898 16bit x 8 bit
is= cmd 51(Q) addr 86000020 is= 0051 5151
fwc addr 86000000 cmd f0 00f0 16bit x 16 bit
fwc addr 86000000 cmd ff 00ff 16bit x 16 bit
fwc addr 860000aa cmd 98 0098 16bit x 16 bit
is= cmd 51(Q) addr 86000020 is= 0051 0051
is= cmd 52(R) addr 86000022 is= 0052 0052
is= cmd 59(Y) addr 86000024 is= 0059 0059
device interface is 1
found port 2 chip 2 port 16 bits chip 16 bits
00 : 51 52 59 01 00 0a 01 00 00 00 00 17 20 85 95 08  QRY......... ...
10 : 09 0a 00 01 01 02 00 19 01 00 06 00 02 fe 00 00  ................
20 : 02 03 00 80 00 00 00 00 00 ff ff ff ff fd 1b 94  ................
fwc addr 86000000 cmd ff 00ff 16bit x 16 bit
fwc addr 86000000 cmd 90 0090 16bit x 16 bit
fwc addr 86000000 cmd ff 00ff 16bit x 16 bit
fwc addr 860000aa cmd 98 0098 16bit x 16 bit
manufacturer is 1
manufacturer id is 0x89
device id is 0x19
device id2 is 0x0
cfi version is 0x3134
size_ratio 1 port 16 bits chip 16 bits
found 2 erase regions
erase region 0: 0x020000fe
erase_region_count = 255 erase_region_size = 131072
erase region 1: 0x00800003
erase_region_count = 4 erase_region_size = 32768
fwc addr 86000000 cmd ff 00ff 16bit x 16 bit
32 MB
*** Warning - bad CRC, using default environment

U-Boot relocated to 03fc2000
Xilinx PIC at 0x81800000
U-Boot is up and runnining
### main_loop entered: bootdelay=5

### main_loop: bootcmd="bootm 0x86400000 0x86600000 0x87FF0000"
Hit any key to stop autoboot:  5 \0x08\0x08\0x08 4 \0x08\0x08\0x08 3 \0x08\0x08\0x08 2 \0x08\0x08\0x08 1 \0x08\0x08\0x08 0
*  kernel: cmdline image address = 0x86400000
## Booting kernel from Legacy Image at 86400000 ...
   Image Name:   Linux-2.6.32
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    1698350 Bytes =  1.6 MB

   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   kernel data at 0x86400040, len = 0x0019ea2e (1698350)
ramdisk: cmdline image address = 0x86600000
## Loading init Ramdisk from Legacy Image at 86600000 ...
   Image Name:   
   Image Type:   PowerPC Linux RAMDisk Image (gzip compress
ed)
   Data Size:    1507104 Bytes =  1.4 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   ramdisk start = 0x86600040, ramdisk end = 0x8676ff60
*  fdt: cmdline image address = 0x87ff0000
## Checking for 'FDT'/'FDT Image' at 87ff0000
*  fdt: raw FDT blob
## Flattened Device Tree blob at 87ff0000
   Booting using the fdt blob at 0x87ff0000
   of_flat_tree at 0x87ff0000 size 0x00003000

   Uncompressing Kernel Image ... OK
   kernel loaded at 0x00000000, end = 0x03fa1520
## Current stack ends at 0x03fa14d0
## device tree at 0x87FF0000 ... 0x87FF2FFF (len=24576=0x6000)
   Loading Device Tree to 007fa000, end 007fffff ... OK
Updating property 'timebase-frequency' =  17 d7 84 00
Updating property 'clock-frequency' =  17 d7 84 00
Updating property '/plb/clock-frequency' =  05 f5 e1 00
Updating property '/plb/opb/clock-frequency' =  03 ff cf b0
Unable to update property /plb/opb:clock-frequency, err=FDT_ERR_NOTFOUND
Updating property '/plb/ebc/clock-frequency' =  00 00 00 00
Unable to update property /plb/ebc:clock-frequency, err=FDT_ERR_NOTFOUND
Updating property 'clock-frequency' =  05 f5 e1 00
Unable to update property NOR mapping, err=FDT_ERR_NOTFOUND
## initrd_high = 0xffffffff, copy_to_ram = 1
   Loading Ramdisk to 03e31000, end 03fa0f20 ... OK
   ramdisk load start = 0x03e31000, ramdisk load end = 0x03fa0f20
## Transferring control to Linux (at address 00000000) ...
   Booting using OF flat tree..
.

 

So the boot is hang... in the booting using OF flat tree..

I Don't knwo why

this is my configure used with u-boot..virtex440.h:

 



#ifndef __CONFIG_H
#define __CONFIG_H

#define DEBUG
#define ET_DEBUG

 /*CPU*/
#define CONFIG_XILINX_VIRTEX5_FXT  1        /* ... in a Xilinx Virtex-5 FXT */
#define CONFIG_XILINX_ML507    1
#define CONFIG_XILINX_440    1
#define CONFIG_440        1
#define CONFIG_4xx        1

#include "../board/xilinx/virtex440/xparameters.h"
#define CONFIG_PPC         1
#define CONFIG_CMDLINE_TAG 1

#define CONFIG_OF_LIBFDT    1
#define CONFIG_OF_BOARD_SETUP        1


/*Mem Map*/
#define CFG_SDRAM_BASE        0x0


#define CFG_SDRAM_SIZE_MB    64
#define CFG_MONITOR_BASE    TEXT_BASE            
#define CFG_MONITOR_LEN        ( 512 * 1024 )
#define CFG_MALLOC_LEN        ( CFG_ENV_SIZE + 128 * 1024 )  


/*
 * 16550 UART and console
 */
#define CONFIG_CONS_INDEX    1
#undef    CONFIG_SERIAL_SOFTWARE_FIFO
#define CFG_NS16550
#define CFG_NS16550_SERIAL
#define CFG_NS16550_REG_SIZE    -4
#define CFG_NS16550_CLK        XPAR_UARTNS550_0_CLOCK_FREQ_HZ
#define CFG_NS16550_COM1    (XPAR_UARTNS550_0_BASEADDR + 0x1003)

#define CFG_BAUDRATE_TABLE    \
    {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200}


#define CONFIG_BAUDRATE        9600


/*-----------------------------------------------------------------------*/

/*Cmd*/
#include <config_cmd_default.h>
#define CONFIG_CMD_ASKENV
#define CONFIG_CMD_CACHE
#define CONFIG_CMD_DIAG
#define CONFIG_CMD_ELF
#define CONFIG_CMD_IRQ
#define CONFIG_CMD_REGINFO

/* pour utiliser la flash decommenter ces deux lingnes du JFFS2*/

#define CONFIG_CMD_JFFS2
#define CONFIG_JFFS2_CMDLINE


#define CONFIG_CMD_FPGA
#define CONFIG_CMD_LOADB
#define CONFIG_CMD_ELF
/*
 * BOOTP options
 */
#define CONFIG_BOOTP_BOOTFILESIZE
#define CONFIG_BOOTP_BOOTPATH
#define CONFIG_BOOTP_GATEWAY
#define CONFIG_BOOTP_HOSTNAME



/* Network configuration */

#define CONFIG_CMD_NET
#define CONFIG_CMD_PING
#define CONFIG_CMD_DHCP


#define CONFIG_IPADDR           192.168.133.161
#define CONFIG_NETMASK          255.255.255.0
#define CONFIG_SERVERIP         192.168.133.xxx
#define CONFIG_ETHADDR        00:1A:A0:0B:82:47
#define CONFIG_gatewayip     192.168.133.xxx


#define CFG_CONSOLE_INFO_QUIET

#undef CONFIG_CMD_SETGETDCR
#undef CONFIG_CMD_I2C
#undef CONFIG_CMD_DTT

#undef CONFIG_CMD_EEPROM
#undef CONFIG_CMD_IMLS

/*Env flash when I want to use it */
/*
#define    CFG_ENV_IS_IN_FLASH    1
#define    CFG_ENV_SIZE        0x20000
#define    CFG_ENV_SECT_SIZE    0x20000
#define CFG_ENV_OFFSET         0x1A0000
#define CFG_ENV_ADDR         (XPAR_FLASH_8MX16_MEM0_BASEADDR + CFG_ENV_OFFSET)
*/


/* env NvRAM    */

#define CFG_ENV_IS_IN_NVRAM    1
#define CFG_ENV_SIZE            1024
#define CFG_ENV_ADDR            0xFFFF0000
//#define CFG_NO_FLASH    1


#define CONFIG_UART1_CONSOLE    1


/*Misc*/
#define CONFIG_BOOTDELAY    5        /* autoboot after 5 seconds     */
#define CONFIG_BOOTCOMMAND  "bootm 0x86400000 0x86600000 0x87FF0000"  // bootm 0x86400000  0x86600000 0x87FF0000 ;cp .b 0x87F00000 0x10000000 400 ;
#define CONFIG_BOOTARGS    "console=ttyS0,9600 ip =192.168.133.161 root=/dev/ram0 rw "   // root=/dev/ram0
#define CFG_LONGHELP                /* undef to save memory         */
#define CFG_PROMPT        "uboot# "    /* Monitor Command Prompt       */
//#if defined(CONFIG_CMD_KGDB)
#define CFG_CBSIZE        1024        /* Console I/O Buffer Size      */
//#else
//#define CFG_CBSIZE        256        /* Console I/O Buffer Size      */
//#endif
#define CFG_PBSIZE        ( CFG_CBSIZE + sizeof( CFG_PROMPT ) + 16 )
#define CFG_MAXARGS        16        /* max number of command args   */
#define CFG_BARGSIZE        CFG_CBSIZE    /* Boot Argument Buffer Size */
#define CFG_MEMTEST_START    0x00400000    /* memtest works on           */
#define CFG_MEMTEST_END        0x00C00000    /* 4 ... 12 MB in DRAM        */
#define CFG_LOAD_ADDR        0x00800000    /* default load address       */
#define CFG_EXTBDINFO        1        /* Extended board_into (bd_t) */
#define CFG_HZ            1000        /* decrementer freq: 1 ms ticks */
#define CONFIG_CMDLINE_EDITING        1    /* add command line history     */
 


#define CONFIG_ENV_OVERWRITE    1

#define CONFIG_AUTO_COMPLETE            /* add autocompletion support   */
#define CONFIG_LOOPW                /* enable loopw command         */
#define CONFIG_MX_CYCLIC            /* enable mdc/mwc commands      */
#define CONFIG_ZERO_BOOTDELAY_CHECK        /* check for keypress on bootdelay==0 */
#define CONFIG_VERSION_VARIABLE            /* include version env variable */
#define CFG_CONSOLE_INFO_QUIET            /* don't print console @ startup */
#define CFG_HUSH_PARSER                /* Use the HUSH parser          */
#define    CFG_PROMPT_HUSH_PS2    "> "
#define CONFIG_LOADS_ECHO        1    /* echo on for serial download  */
#define CFG_LOADS_BAUD_CHANGE            /* allow baudrate change        */
#define CFG_BOOTMAPSZ        ( 8 << 20 )    /* Initial Memory map for Linux */
#define CONFIG_PREBOOT        "echo U-Boot is up and runnining;"

/*Stack*/
#define CFG_INIT_RAM_ADDR    0x800000    /* Initial RAM address    */
#define CFG_INIT_RAM_END    0x2000    /* End of used area in RAM  */
#define CFG_GBL_DATA_SIZE    128        /* num bytes initial data   */
#define CFG_GBL_DATA_OFFSET    ( CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE )
#define CFG_INIT_SP_OFFSET    CFG_GBL_DATA_OFFSET
/*Speed*/
#define CONFIG_SYS_CLK_FREQ    XPAR_CORE_CLOCK_FREQ_HZ

/*Flash*/

#define    CFG_FLASH_BASE        XPAR_FLASH_8MX16_MEM0_BASEADDR
#define    CFG_FLASH_SIZE        (32*1024*1024)
#define    CFG_FLASH_CFI        1
#define    CONFIG_FLASH_CFI_DRIVER    1
#define    CFG_FLASH_EMPTY_INFO    1
#define    CFG_MAX_FLASH_BANKS    1
#define    CFG_MAX_FLASH_SECT    262
#define    CFG_FLASH_PROTECTION



//#define BOOTFLAG_COLD    0x01    /* Normal Power-On: Boot from FLASH    */
//#define BOOTFLAG_WARM    0x02

#endif                        /* __CONFIG_H */

 

 


with this meesage I attached the file.dts for my hardware description

 

Thinks a lot ,

ghazi

 

 

 

 

 

0 Kudos
Reply