>
>Try to spot the exact place where it is happening, also enabling the DEBUG FS
>could help to spot issues.

Well, here's an odd thing.

I already had FS debug on of course,  but not the informational output. Turn 
that on, and I can now actually create a FAT volume on /dev/ram0.

Cannot explain that (console output below).

Tried running msconn with /dev/ram0 but it still crashes.

It *seems* to be printf statements in the msconn system app itself!!??

nsh>mkrd 64
mkrd: RAMDISK at 0x20074cd0
ramdisk_register: buffer: 0x20074cd0 nsectors: 64 sectsize: 512
nsh>mkfatfs /dev/ram0
bchdev_register: blkdev="/dev/ram0" chardev="/dev/tmpc000001" readonly=F
find_blockdriver: pathname="/dev/ram0"
rd_open: rd_crefs: 1
rd_geometry: Entry
rd_geometry: available: true mediachanged: false writeenabled: true
rd_geometry: nsectors: 64 sectorsize: 512
rd_geometry: Entry
rd_geometry: available: true mediachanged: false writeenabled: true
rd_geometry: nsectors: 64 sectorsize: 512
mkfatfs_clustersearch: Configuring with 1 sectors/cluster...
mkfatfs_tryfat12: nfatsects=1 nclusters=29 (max=341)
mkfatfs_tryfat16: nfatsects=1 nclusters=29 (min=4081 max=256)
mkfatfs_tryfat16: WARNING:  Too few or too many clusters for FAT16: 4081 < 29 < 
254
mkfatfs_clustersearch: WARNING:  Cannot format FAT16 at 1 sectors/cluster
mkfatfs_selectfat: Selected FAT12
mkfatfs_configfatfs: Sector size:          512 bytes
mkfatfs_configfatfs: Number of sectors:    64 sectors
mkfatfs_configfatfs: FAT size:             12 bits
mkfatfs_configfatfs: Number FATs:          2
mkfatfs_configfatfs: Sectors per cluster:  1 sectors
mkfatfs_configfatfs: FS size:              1 sectors
mkfatfs_configfatfs:                       29 clusters
mkfatfs_configfatfs: Root directory slots: 512
mkfatfs_configfatfs: Volume ID:            00000000
mkfatfs_configfatfs: Volume Label:         "           "
/* lots of rd_write messages to the sectors. Deleted from this copy/paste */
rd_close: rd_crefs: 0

nsh>mount mount -t vfat /dev/ram0 /mnt
find_blockdriver: pathname="/dev/ram0"
rd_open: rd_crefs: 1
rd_geometry: Entry
rd_geometry: available: true mediachanged: false writeenabled: true
rd_geometry: nsectors: 64 sectorsize: 512
rd_read: sector: 0 nsectors: 1 sectorsize: 512
rd_read: Transfer 512 bytes from 0x20074cd0
fat_mount: FAT12:
fat_mount:      HW  sector size:     512
fat_mount:          sectors:         64
fat_mount:      FAT reserved:        1
fat_mount:          sectors:         64
fat_mount:          start sector:    1
fat_mount:          root sector:     3
fat_mount:          root entries:    512
fat_mount:          data sector:     35
fat_mount:          FSINFO sector:   0
fat_mount:          Num FATs:        2
fat_mount:          FAT sectors:     1
fat_mount:          sectors/cluster: 1
fat_mount:          max clusters:    29
fat_mount:      FSI free count       -1
fat_mount:          next free        0
nsh>



Reply via email to