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

[microblaze-uclinux] Sysace flash and read only CRAMFS



Hi everybody,
I have got one question on using the compact flash card as an msdos (or any other fs) partition on my XUPv2Pro card.
I have activated the SysAce on my hardware, and compiled petalinux, every thing seems to work fine, you can find the boot log at the end of the mail.
As you can see, the flash memory seem to be recognized as it gives the good capacity, but I can not find the xsa1in the /dev:
# cd /dev/                                                                                
# ls                                                                                      
console     mtd4        mtdblock9   ptyp2       ttyS3       ttypf                         
fb0         mtd5        mtdr0       ptyp3       ttyUL0      urandom                       
flash       mtd6        mtdr1       ptyp4       ttyUL1      xsysacea                      
gpio        mtd7        mtdr10      ptyp5       ttyUL2      xsysacea1                     
gpio0       mtd8        mtdr11      ptyp6       ttyUL3      xsysacea10                    
gpio1       mtd9        mtdr12      ptyp7       ttyp0       xsysacea11                    
gpio2       mtdblock0   mtdr13      ptyp8       ttyp1       xsysacea12                    
gpio3       mtdblock1   mtdr14      ptyp9       ttyp2       xsysacea12                    
gpio4       mtdblock10  mtdr2       ptypa       ttyp3       xsysacea14                    
kmem        mtdblock11  mtdr3       ptypb       ttyp4       xsysacea15                    
mem         mtdblock12  mtdr4       ptypc       ttyp5       xsysacea2                     
mtd0        mtdblock13  mtdr5       ptypd       ttyp6       xsysacea3                     
mtd1        mtdblock14  mtdr6       ptype       ttyp7       xsysacea4                     
mtd10       mtdblock2   mtdr7       ptypf       ttyp8       xsysacea5                     
mtd11       mtdblock3   mtdr8       random      ttyp9       xsysacea6                     
mtd12       mtdblock4   mtdr9       rtc         ttypa       xsysacea7                     
mtd13       mtdblock5   null        tty         ttypb       xsysacea8                     
mtd14       mtdblock6   nvram       ttyS0       ttypc       xsysacea9                     
mtd2        mtdblock7   ptyp0       ttyS1       ttypd       zero                          
mtd3        mtdblock8   ptyp1       ttyS2       ttype            



But when I try to create the node in the /dev in order to mount it:

# mknod  /dev/xsa1 b 254 1                                                                
mknod: /dev/xsa1: Read-only file system   


The filesystem is in a read only mode !:
# more mtab                                                                               
rootfs / rootfs rw 0 0                                                                    
/dev/root / cramfs ro 0 0                                                                 
/proc /proc proc rw 0 0                                                                   
none /sys sysfs rw 0 0     

Another thing, in /proc/partitions I find this:
major minor  #blocks  name                                                                
                                                                                          
 254     0     511056 xsa                                                                 
 254     1     510520 xsa1                                                                
  31     0       1212 mtdblock0 

Is it possible to mount CRAMFS in read/write mode ? will it solve the pb ? how can I mount my compact flash card.
Thank you very much for your help.

Another observation: by ticking nbench and whetstone in the kernel configuration, I did get any corresponding binary file !


Jalil.B



found romfs @ 0x901e4088 (0x0012f000)
#### klimit 901fc000 ####
Moving 0x0012f000 bytes from 0x901e4088 to 0x901fb93c
New klimit: 0x9032b000
Linux version 2.6.20-uc0 (jboukh@Jalil) (gcc version 3.4.1 ( PetaLinux 0.20 Build -rc1 0509
setup_cpuinfo: initialising
setup_cpuinfo: No PVR support in CPU.  Using static compile-time info
set_cpuinfo_static: Using static CPU info.
setup_memory: max_mapnr: 0x9ffff
setup_memory: min_low_pfn: 0x90000
setup_memory: max_low_pfn: 0x10000
On node 0 totalpages: 65536
  DMA zone: 512 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 65024 pages, LIFO batch:15                                                    
  Normal zone: 0 pages used for memmap                                                    
Built 1 zonelists.  Total pages: 65024                                                    
Kernel command line:                                                                      
OPB INTC #0 at 0x81800000                                                                 
PID hash table entries: 1024 (order: 10, 4096 bytes)                                      
TIMER at 0x83C00000                                                                       
disabling early console                                                                   
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)                           
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)                             
Memory: 256512k/262144k available                                                         
Calibrating delay loop... 49.66 BogoMIPS (lpj=248320)                                     
Mount-cache hash table entries: 512                                                       
NET: Registered protocol family 16                                                        
NET: Registered protocol family 2                                                         
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)                            
TCP established hash table entries: 8192 (order: 3, 32768 bytes)                          
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)                                 
TCP: Hash tables configured (established 8192 bind 4096)                                  
TCP reno registered                                                                       
io scheduler noop registered                                                              
io scheduler anticipatory registered                                                      
io scheduler deadline registered                                                          
io scheduler cfq registered (default)                                                     
uartlite.0: ttyUL0 at MMIO 0x84000000 (irq = 3) is a uartlite                             
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize                     
xsysace xsa: Xilinx SystemACE revision 1.0.12                                             
xsysace xsa: capacity: 1022112 sectors                                                    
 xsa: xsa1      
                                                                          
eth0: using fifo mode.                                                                    
eth0: No PHY detected.  Assuming a PHY at address 0.                                      
eth0: Xilinx EMACLite #0 at 0x81000000 mapped to 0x81000000, irq=2                        
uclinux[mtd]: RAM probe address=0x901fb93c size=0x12f000                                  
Creating 1 MTD partitions on "RAM":                                                       
0x00000000-0x0012f000 : "ROMfs"                                                           
uclinux[mtd]: set ROMfs to be root filesystem index=0                                     
TCP cubic registered                                                                      
NET: Registered protocol family 1                                                         
NET: Registered protocol family 17                                                        
VFS: Mounted root (cramfs filesystem) readonly.                                           
Freeing unused kernel memory: 88k freed                                                   
Mounting proc:                                                                            
mount: /etc/mtab: Read-only file system                                                   
Mounting var:                                                                             
mount: /etc/mtab: Read-only file system                                                   
Populating /var:                                                                          
Running local start scripts.                                                              
Mounting /etc/config:                                                                     
Populating /etc/config:                                                                   
flatfsd: Nonexistent or bad flatfs (-48), creating new one...                             
flatfsd: Failed to write flatfs (-48): No such device                                     
flatfsd: Created 5 configuration files (185 bytes)                                        
Mounting sysfs:                                                                           
Setting hostname:                                                                         
Setting up interface lo:                                                                  
Setting up interface eth0:                                                                
Starting portmap:                                                                         
Starting thttpd:                                                                          
                                                                                          
uclinux login: root