bxs19830629 发表于 2009-3-15 21:53:51

请教大虾如何去掉cramfs文件系统的只读属性

我移植的LINUX内核是2.6.14.1 板子是友善之臂的mini2440 交叉编译环境为3.4.1
在Boot options 中键入的是 noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0,115200

虽然挂载上了cramfs文件系统 但是文件系统是只读的属性 无法创建路径 请问如何解决这一问题

~ # ls
bin      etc      linuxrcopt      qt       tmp      var
dev      lib      mnt      proc   sbin   usr
~ # mkdir tt
mkdir: Cannot create directory `tt': Read-only file system
~ #
以下是我的板子的启动信息:
VIVI version 0.1.4 (root@capcross) (gcc version 2.95.3 20010315 (release)) #0.1.                                                                              
4 Fri Sep 12 02:09:10 CST 2008                              
MMU table base address = 0x33DF                           
Succeed memory mapping.                     
DIVN_UPLL0         
MPLLVal                         
CLKDIVN:5h         


+---------------------------------------------+                                             
| S3C2440A USB Downloader ver R0.03 2004 Jan|                                             
+---------------------------------------------+                                             
USB: IN_ENDPOINT:1 OUT_ENDPOINT:3                                 
FORMAT: <ADDR(DATA):4>+<SIZE(n+10):4>+<DATA:n>+<CS:2>                                                   
NOTE: Power off/on or press the reset button for 1 sec                                                      
      in order to get a valid USB device address.                                                

NAND device: Manufacture ID: 0xec, Chip ID: 0x76 (Samsung K9D1208V0M)                                                                     
Found saved vivi parameters.                           
Press Return to start the LINUX/Wince now, any other key for vivi                                                               
Copy linux kernel from 0x00050000 to 0x30008000, size = 0x00200000 ... done                                                                           
zImage magic = 0x016f2818                        
Setup linux parameters at 0x30000100                                    
linux command line is: "noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySA                                                                              
C0"   
MACH_TYPE = 193               
NOW, Booting Linux......                        
Uncompressing Linux.............................................................                                                                              
....................... done, booting the kernel.                                                
Linux version 2.6.14.1 (root@bxs) (gcc version 3.4.1) #                                                      
2009 vers
CPU: ARM920Tid(wb) revision 0 (ARMv4T) Mar 15 18:40:35 CSTC2440EG Audio Decoder      
Machine: SMDK2410               
ATAG_INITRD is deprecated; please update your bootloader.
Downl         
2009vipyr         
CPU: ARM920Tid(w
Memory policy: ECC disabled, Data cache writeback kernel not append to parent for               
CPU S3C2440A (id 0x32440001)                           
S3C2440: core 405.000 MHz, memory 101.250 MHz, peripheral 50.625 MHzRD is deprecated; please update your bootloader.                  
S3C2410 Clocks, (c) 2004 Simtec Electronicsc] Download root_cramfs image0 (ir         
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL ond, Data cache writeback                           
CPU0: D VIVT write-back cacheute User Appli               
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets   Title: 上            
S3C2440: core 405.000 MHz, memory 101.250
CPU0: D cache: 16384 bytes, associativity 6                                       
io scheduler a            
timer tcon=00000000, tcnt a4ca, tcfg 00000200,00000000, usec 00001e57load & Run                  
irq: clearing pending status 02000000   
Console: colour dummy device 80x30irq: clearing subpending status 00
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)            
PID hash table entries: 512 (order: 9, 8192 byte
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)

+----------------------                     
timer tcon=
Memory: 64MB = 64MB total00000200,00000000, usec 0
Memory: 62080KB available (2163K code, 482K data, 108K init)               

##### FriendlyA               
| S3C   

S3C2440: Clock Support, UPLL 48
S3C2410 DMA Driver, (c) 2003-2004 Simtec Electronics 1024 (order                                       
DMA channel 0 at c4800000, irq 33                     
S3C2410 DM
DMA channel 1 at c4800040, irq 34ctronics                        
DMA channel 2 at c4800080, irq 35annel 0 at c4800000, irq 33ture I
DMA channel 3 at c48000c0, irq 36                                 
NetWinder Floating Point Emulator V0.97 (double precision)4                                 
   
devfs: boot_opti
S3C2410 RTC, (c) 2004 Simtec Electronics (c) 2004 Simtec Electronics Boot the sy
ppdev: user-space parallel port driver                                    
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronicsom HOST through USBite(). Return                  
Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing enabledg Timer, (c) 2004 Simtec Electronics                                    
s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440   
View      
s3c2410_serial1 at MMIO 0x50004000
devfs_mk_dev: could not append to parent for tts/1                                          
Qu
s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440      
devfs_mk_dev: could not append to parent for tts/
devfs_mk_dev: could not append to parent for tts/2                                                
io scheduler noop registered                     
io sch
io scheduler anticipatory registered            
io scheduler anticipat
io scheduler deadline registered                              
io scheduler cfq registeredheduler deadline registered
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize   
et
nand   
Download linux kernel                        

loop: loaded (max 8 devices)Scanning device for bad bloc
Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":            
Copy linux         
IP route cache has
0x00000000-0x00030000 : "bootloader"                           
Fo
0x00050000-0x00250000 : "kernel"         
Reading data from NA
0x00250000-0x03ffc000 : "root"ommended                     
mice: PS/2 mouse device common for all miceot the system                  
Set th
s3c2440-i2c s3c2440-i2c: slave address 0x10thout ECC is not recommended struct of winc
s3c2440-i2c s3c2440-i2c: bus frequency set to 98 KHz                     
Backu         
Reading d
s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adaptered                                             
NET: Registered protocol family 2ash from H                     
Reading data from NAND FLASH without ECC is not recommended
VFS: Mounted root (cramfs filesystem) readonly.
Mounted devfs on /dev
Freeing init memory: 108K
mount /etc as ramfs
cp: unable to link `/etc/var/lib/nfs/xtab': Operation not permitted
re-create the /etc/mtab entries
init started:BusyBox v1.00-pre10 (2004.07.01-15:47+0000) multi-call binary
Starting pid 27, console /dev/console: '/etc/init.d/rcS'
mount: Mounting /dev/mtdblock/1 on /mnt/yaffs failed: No such device
SIOCSIFADDR: No such device
SIOCSIFNETMASK: No such device
SIOCGIFFLAGS: No such device
route: SIOCRT: No such device
Reading data from NAND FLASH without ECC is not recommended

Starting pid 57, console /dev/console: '/bin/sh'


BusyBox v1.00-pre10 (2004.07.01-15:47+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

-sh: can't access tty; job control turned off
~ #

bxs19830629 发表于 2009-3-16 15:09:19

没人遇到类似的情况吗?

junzuyu 发表于 2009-6-10 12:24:03

我也遇到同样的问题,请问如何解决呀

zm2002 发表于 2009-9-28 15:47:48

cramfs 本身是只读文件系统 你能变成可读写文件系统嘛?属于压缩只读文件系统.看来基础知识了解太少啊!
页: [1]
查看完整版本: 请教大虾如何去掉cramfs文件系统的只读属性