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

RE: [microblaze-uclinux] Kernel hangs after mount filesystem on CF card



Hi,

> I suspect it's a problem on the systemace driver, but I'm not 
> an expert with uclinux.
> Does anyone ever tried to mount a filesystem readwrite on the 
> systemace CF?

Yes, on one of our old development boards we are running uClinux from
compact flash with the filesystem mounted readwrite.
I do not remember running in such problems you described,
and have not clue what might be wrong with that,
but I am using it a little different than you do.

1. I am not using DEVFS, so /proc/partitions looks like this:

   /usr> cat /proc/partitions
   major minor  #blocks  name     rio rmerge rsect ruse wio wmerge wsect
wuse runni
   ng use aveq

    254     0     250880 xsysacea 98 17 119 1070 5 0 5 100 0 1120 1170
    254     1      33008 xsysacea1 33 0 33 220 0 0 0 0 0 220 220
    254     2       8448 xsysacea2 0 0 0 0 0 0 0 0 0 0 0
    254     3       8448 xsysacea3 0 0 0 0 0 0 0 0 0 0 0
    254     4     200960 xsysacea4 64 14 78 810 5 0 5 100 0 860 910

2. I am mounting using vfat as file system. 

   /bin/mount -t vfat -o umask=007,gid=102 /dev/xsysacea4 /usr
   /bin/mount -t vfat /dev/xsysacea1 /var

   after this mount tells

   rootfs on / type rootfs (rw)
   /dev/mtdblock0 on / type romfs (ro)
   /proc on /proc type proc (rw)
   /dev/xsysacea4 on /usr type vfat (rw)
   /dev/xsysacea1 on /var type vfat (rw)

This all is done with an older version of uClinux (Linux version
2.4.22-uc2).
I hope this is of any help for you.

Cheers,
Erik



****************************
Erik Hansen
SHF Communication Technologies AG
Wilhelm-von-Siemens-Str. 23D
12277 Berlin
Germany
phone: +49 (30) 77 20 51 0
fax  : +49 (30) 75 31 07 8
****************************
 

> -----Original Message-----
> From: owner-microblaze-uclinux@itee.uq.edu.au 
> [mailto:owner-microblaze-uclinux@itee.uq.edu.au] On Behalf Of 
> Claudio Lanconelli
> Sent: Thursday, March 17, 2005 4:50 PM
> To: microblaze-uclinux@itee.uq.edu.au
> Subject: [microblaze-uclinux] Kernel hangs after mount 
> filesystem on CF card
> 
> 
> Hi,
> I have solved my previous problem with systemace. It was due 
> to power on reset 
> on my Spartan3 MB1500 evaluation board with systemace board 
> installed. If I 
> press FPGA RESET button until the FPGA is configured by systemace the 
> bootloader loads image file to SDRAM memory and the linux 
> kernel start 
> sucesfully.
> However, at boot prompt, if I mount the CF filesystem RW the 
> system hangs and 
> sometimes a message appears: 
>  Scheduling in interrupt kernel BUG at sched.c:569!
> sometimes the kernel silently hangs (look at BOOT log above).
> 
> I tried with both MSDOS and EXT2 filesystems but it doesn't matter.
> Instead if I mount the filesystems readonly the problem seems 
> to disappear.
> 
> I suspect it's a problem on the systemace driver, but I'm not 
> an expert with 
> uclinux.
> Does anyone ever tried to mount a filesystem readwrite on the 
> systemace CF?
> 
> I have updated the kernel today from CVS and build with 
> latest gcc tools. In 
> the configuration file I enabled systemace driver, devfs and msdos 
> filesystems support. (config file in the attachment with 
> system.mhs and 
> system.mss files)
> 
> My CF card is partitioned with MSDOS on partition n.1 and 
> EXT2 on partition 
> n.2. I really write access at least on second partition.
> 
> Disk /dev/sdc: 128 MB, 128450560 bytes
> 4 heads, 62 sectors/track, 1011 cylinders
> Units = cylinders of 248 * 512 = 126976 bytes
> 
>    Device Boot      Start         End      Blocks   Id  System
> /dev/sdc1               1         127       15717    6  FAT16
> /dev/sdc2             128        1011      109616   83  Linux
> 
> 
> Thanks in advance for any suggestions.
> Regards,
> Claudio Lanconelli
> 
> =========== BOOT LOG ==========
> -- Entering main() --
> load_boot_image()
> Lock granted
> 
> LBA: 0000003E
> Aimag
> IMAGE   
> FileSize: 2063390  FirstCluster: 2
> IMAGE.BIN found!
> ..............................................................
> ..............................................................
> ..............................................................
> ..............................................................
> ..............................................................
> ..............................................................
> ..............................................................
> ..............................................................
> ..............................................................
> ..............................................................
> ..............................................................
> ..............................................................
> ..............................................................
> ..............................................................
> ..............................................................
> ..............................................................
> ................
> Jumping to kernel startup... (80000000)
> Linux version 2.4.29-uc0 (lanco@claudio) (gcc version 
> 2.95.3-4 Xilinx EDK 6.3 
> Build EDK_Gmm.12.2) #26 Thu Mar 17 12:35:30 CET 2005
> On node 0 totalpages: 8192
> zone(0): 8192 pages.
> zone(1): 0 pages.
> zone(2): 0 pages.
> CPU: MICROBLAZE
> Console: xmbserial on UARTLite
> Kernel command line: 
> Calibrating delay loop... 16.12 BogoMIPS
> Memory: 32MB = 32MB total
> Memory: 30252KB available (1182K code, 969K data, 44K 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 0xffff2000 (irq = 1) is a Microblaze UARTlite
> Starting kswapd
> devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
> devfs: devfs_debug: 0x0
> devfs: boot_options: 0x1
> RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
> Initializing SystemAce driver
> Partition check:
>  xsysacea: p1 p2
> System ACE at 0xFFFE0000 mapped to 0xFFFE0000, irq=2, 125440KB
> MBVanilla flash probe(0xff000000,8388608,4): 800000 at ff000000
> CFI: Found no Flash device at location zero
> Search for id:(00 00) interleave(2) type(2)
> Search for id:(00 00) interleave(2) type(2)
> Search for id:(00 00) interleave(2) type(2)
> Search for id:(00 00) interleave(2) type(1)
> Search for id:(00 00) interleave(2) type(1)
> Search for id:(00 00) interleave(2) type(1)
> Search for id:(00 00) interleave(4) type(2)
> Search for id:(00 00) interleave(4) type(2)
> Search for id:(00 00) interleave(4) type(2)
> Search for id:(00 00) interleave(4) type(1)
> Search for id:(00 00) interleave(4) type(1)
> Search for id:(00 00) interleave(4) type(1)
> JEDEC: Found no Flash device at location zero
> MBVanilla ram probe(0x801645b0,745472,4): b6000 at 801645b0
> Creating 1 MTD partitions on "RAM":
> 0x00000000-0x000b6000 : "Romfs"
> 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 2048)
> NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
> FAT: bogus logical sector size 28272
> FAT: bogus logical sector size 28272
> VFS: Mounted root (romfs filesystem) readonly.
> Mounted devfs on /dev
> Freeing init memory: 44K
> Mounting proc: 
> Mounting var: 
> Populating /var: 
> Running local start scripts.
> init: Booting to single user mode
> # cat /proc/partitions
> major minor  #blocks  name     rio rmerge rsect ruse wio 
> wmerge wsect wuse 
> running use aveq
> 
>  254     0     125440 xsysace/disc0/disc 1 3 8 40 0 0 0 0 0 40 40
>  254     1      15717 xsysace/disc0/part1 0 0 0 0 0 0 0 0 0 0 0
>  254     2     109616 xsysace/disc0/part2 0 0 0 0 0 0 0 0 0 0 0
> # mount -t ext2 /dev/xsysace/disc0/part2 /mnt
> 
> System hangs here!!!!!!!
> 
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> 
> 

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


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