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

[microblaze-uclinux] Problem mounting CF filesystem with System Ace



Hi everyone,

I'm making pretty good progress using the System Ace module with a Memec 3SMB1500 dev board, but I'm getting stuck when attempting to actually mount the CF card. Configuring the FPGA and copying the uClinux image from the image.bin file seem to be working. However, the system freezes with the following error when mounting the CF card:

JTAG controller couldn't read configuration from the CompactFlash

The red error LED also lights up indicating an error.

The following config items are in my uClinux configuration:

----------------------------------------------------------------
# System Ace drivers.
CONFIG_XILINX_SYSACE=y

# MSDOS filesystems.
CONFIG_FAT_FS=y
CONFIG_MSDOS_FS=y
CONFIG_VFAT_FS=y
# CONFIG_UMSDOS_FS is not set

# MSDOS partitions.
CONFIG_PARTITION_ADVANCED=y
CONFIG_MSDOS_PARTITION=y
----------------------------------------------------------------

Below is the console output from boot to the error:

----------------------------------------------------------------
Opening kernel image a:\image.bin.
Copying kernel image from a:\image.bin.
Copied 1947678 bytes.
Starting uClinux at address 0x22000000...
Linux version 2.4.32-uc0 (ubuntu@ubuntu) (gcc version 3.4.1 ( Xilinx EDK 8.1 Build EDK_I.17 090206 )) #24 Thu Dec 7 13:46:11 PST 2006
On node 0 totalpages: 8192
zone(0): 8192 pages.
zone(1): 0 pages.
zone(2): 0 pages.
CPU: MICROBLAZE
Kernel command line:
Console: xmbserial on UARTLite
Calibrating delay loop... 37.17 BogoMIPS
Memory: 32MB = 32MB total
Memory: 30372KB available (1215K code, 817K data, 52K init)
Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 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 = 2) is a Microblaze UARTlite
Starting kswapd
xgpio #0 at 0x40000000 mapped to 0x40000000
Xilinx GPIO registered
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
Initializing SystemAce driver
Partition check:
 xsysacea: xsysacea1
System ACE at 0x41800000 mapped to 0x41800000, irq=1, 125440KB
uclinux[mtd]: RAM probe address=0x2216ae7c size=0x92000
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 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 4096)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
FAT: bogus logical sector size 9088
UMSDOS: msdos_read_super failed, mount aborted.
FAT: bogus logical sector size 9088
FAT: bogus logical sector size 9088
VFS: Mounted root (romfs filesystem) readonly.
Freeing init memory: 52K
Mounting proc:
Mounting var:
Populating /var:
Running local start scripts.
Mounting /etc/config:
Populating /etc/config:
Setting hostname:
Setting up interface lo:

uclinux-auto login: root
Password:
# ls /dev
console     mtdblock1   null        ptypd       ttyp5       xsysacea11
fb0         mtdblock2   nvram       ptype       ttyp6       xsysacea12
flash       mtdblock3   ptyp0       ptypf       ttyp7       xsysacea12
gpio        mtdblock4   ptyp1       random      ttyp8       xsysacea14
kmem        mtdblock5   ptyp2       rtc         ttyp9       xsysacea15
mem         mtdblock6   ptyp3       tty         ttypa       xsysacea2
mtd0        mtdblock7   ptyp4       ttyS0       ttypb       xsysacea3
mtd1        mtdr0       ptyp5       ttyS1       ttypc       xsysacea4
mtd2        mtdr1       ptyp6       ttyS2       ttypd       xsysacea5
mtd3        mtdr2       ptyp7       ttyS3       ttype       xsysacea6
mtd4        mtdr3       ptyp8       ttyp0       ttypf       xsysacea7
mtd5        mtdr4       ptyp9       ttyp1       urandom     xsysacea8
mtd6        mtdr5       ptypa       ttyp2       xsysacea    xsysacea9
mtd7        mtdr6       ptypb       ttyp3       xsysacea1   zero
mtdblock0   mtdr7       ptypc       ttyp4       xsysacea10
# mount -t msdos /dev/xsysacea1 /mnt
JTAG controller couldn't read configuration from the CompactFlash
[The system gets hung here.]
----------------------------------------------------------------

I'm believe I'm getting close, but there is obviously a final tweak or two the configuration before my uClinux system is happy with the System Ace and CF card.

I read in the microblaze-uclinux archives that it may be necessary to reset the SystemAce or CF card when transitioning between my bootloader and starting uClinux. Doing so seemed to fix an issue with the System Ace getting stuck when first initialized with uClinux, but it doesn't seem to help in this situation.

Any thoughts or ideas on where I can look next?

Thanks,

Mike Thompson
mpthompson@xxxxxxxxx

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/