搜索
bottom↓
回复: 3

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

[复制链接]

出0入0汤圆

发表于 2009-3-15 21:53:51 | 显示全部楼层 |阅读模式
我移植的LINUX内核是2.6.14.1 板子是友善之臂的mini2440 交叉编译环境为3.4.1
在Boot options 中键入的是 noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0,115200

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

~ # ls
bin      etc      linuxrc  opt      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 [M:7fh,P:2h,S:1h]                        
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) [41129200] revision 0 (ARMv4T) Mar 15 18:40:35 CSTC2440EG Audio Decoder        
Machine: SMDK2410                 
ATAG_INITRD is deprecated; please update your bootloader.
[v] 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     
[v] View        
s3c2410_serial1 at MMIO 0x50004000
devfs_mk_dev: could not append to parent for tts/1                                          
[q] 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   
[k] 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"                             
[f] 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: SIOC[ADD|DEL]RT: 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
~ #

阿莫论坛20周年了!感谢大家的支持与爱护!!

一只鸟敢站在脆弱的枝条上歇脚,它依仗的不是枝条不会断,而是自己有翅膀,会飞。

出0入0汤圆

 楼主| 发表于 2009-3-16 15:09:19 | 显示全部楼层
没人遇到类似的情况吗?

出0入0汤圆

发表于 2009-6-10 12:24:03 | 显示全部楼层
我也遇到同样的问题,请问如何解决呀

出0入0汤圆

发表于 2009-9-28 15:47:48 | 显示全部楼层
cramfs 本身是只读文件系统 你能变成可读写文件系统嘛?属于压缩只读文件系统.看来基础知识了解太少啊!
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-5-20 11:21

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

快速回复 返回顶部 返回列表