[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] PetaLinux and ML501 - issue



Hi John, All.

 

I’ve been playing with petalinux on my new ml501 (last time I did any of this stuff was when the ml401 first came out and there was no option but uclinux-autoconfig).

I have to say the petalinux environment and the user guide is excellent. Congratulations.

 

Now for the issue –

I followed the tutorial, setting up the hardware – a few notable differences, I’m using EDK 9.1, and the DDR2 controller is now mch_opb_ddr2 and the flash controller is now mch_opb_emc. I had to modify the petalinux bsp to include these as valid interfaces for the main_memory and flash_memory variables.

Another difference (and this may be the key) is the flash seems to be now 2Mx16 instead of the 2Mx32 in the ml401 tutorial.

 

However, I pressed on, and was able to get FS-BOOT working, and when I downloaed the u-boot srec file, I got the following:

 

******

 

FS-BOOT: Warning image location differ from default boot location. Image will not boot automatically after POR.

FS-BOOT: Press 'n' to boot old image.

FS-BOOT: Use new image.

FS-BOOT: Booting image...

SDRAM :

\0x09U-Boot Start:0x5ffc0000

\0x09Malloc Start:0x5ff80000

\0x09Board Info Start:0x5ff7ffd0

\0x09Boot Parameters Start:0x5ff6ffd0

FLASH:

=================================================

FS-BOOT First Stage Bootloader (c) 2006 PetaLogix

=================================================

FS-BOOT: System initialisation completed.

FS-BOOT: No existing image in FLASH.  Starting image download.

FS-BOOT: Waiting for SREC image....

 

*********

 

So u-boot was starting (ignore the 0x09 I believe they are tab characters) – but when it got to the flash stage it balked and “restarted”.

So, on I pressed even further, this time instead using XMD to download the image.elf (I know this does not have the file system, but I wanted to see what happened!) And I got this:

 

Thu May 3 17:07:20 PDT 2007

On node 0 totalpages: 65536

zone(0): 65536 pages.

zone(1): 0 pages.

zone(2): 0 pages.

CPU: MICROBLAZE

Kernel command line: ls

Console: xmbserial on UARTLite

Calibrating delay loop... 49.76 BogoMIPS

Memory: 256MB = 256MB total

Memory: 257828KB available (1221K code, 259K data, 52K init)

Dentry cache hash table entries: 32768 (order: 6, 262144 bytes)

Inode cache hash table entries: 16384 (order: 5, 131072 bytes)

Mount cache hash table entries: 512 (order: 0, 4096 bytes)

Buffer cache hash table entries: 16384 (order: 4, 65536 bytes)

Page-cache hash table entries: 65536 (order: 6, 262144 bytes)

POSIX conformance testing by UNIFIX

Linux NET4.0 for Linux 2.4

Based upon Swansea University Computer Society NET3.039

Initializing RT netlink socket

Microblaze UARTlite serial driver version 1.00

ttyS0 at 0x40600000 (irq = 3) is a Microblaze UARTlite

Starting kswapd

RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize

eth0: using fifo mode.

eth0: Xilinx EMAC #0 at 0x40C00000 mapped to 0x40C00000, irq=2

eth0: id 0.0a; block id 0, type 0

physmap_auto flash device: 2000000 at 4a000000

physmap_auto probing buswidth 2

  Unknown IntelExt Extended Query version 1.4.

gen_probe: No supported Vendor Command Set found

physmap_auto probing buswidth 2

Search for id:(89 8919) interleave(1) type(2)

Search for id:(89 8919) interleave(1) type(2)

Search for id:(89 8919) interleave(1) type(2)

Search for id:(00 00) interleave(1) type(4)

Search for id:(00 00) interleave(1) type(4)

Search for id:(00 00) interleave(1) type(4)

Search for id:(89 19) interleave(2) type(1)

Search for id:(89 19) interleave(2) type(1)

Search for id:(89 19) interleave(2) type(1)

Search for id:(89 01) interleave(2) type(2)

Search for id:(89 01) interleave(2) type(2)

Search for id:(89 01) interleave(2) type(2)

JEDEC: Found no Physically mapped flash device at location zero

physmap_auto probing buswidth 2

uclinux[mtd]: RAM probe address=0x50172278 size=0x0

uclinux[mtd]: root filesystem index=0

NET4: Linux TCP/IP 1.0 for NET4.0

IP Protocols: ICMP, UDP, TCP

IP: routing cache hash table of 2048 buckets, 16Kbytes

TCP: Hash tables configured (established 16384 bind 32768)

NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.

end_request: I/O error, dev 1f:00 (mtdblock), sector 2

EXT2-fs: unable to read superblock

cramfs: wrong magic

Kernel panic: VFS: Unable to mount root fs on 1f:00

 

 

So the flash seemed to again cause issues. Is 2x16 supported? Or what would I need to do to make it work?

 

Also, if I want to bypass the “flash” for now, and download the image – I remember I had to download the image.bin – does this still work?

If I did a:

dow –data image.bin <DDR2 BASE ADDRESS> and then did

con <DDR2 BASE ADDRESS>

should this work? (I tried it, and it did not – no output at all)

 

 

So petalinux is almost alive on ml501 – any tips would be GREATLY appreciated!

 

Cheers

John