QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2129|回复: 3

运行linuxrc脚本时出现的错误

[复制链接]
发表于 2006-7-10 10:38:59 | 显示全部楼层 |阅读模式
Image Name:   Linux
   Created:      2006-07-09  12:02:42 UTC
   Image Type:   ARM Linux Kernel Image (gzip compressed)
   Data Size:    906983 Bytes = 885.7 kB
   Load Address: 30008000
   Entry Point:  30008000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

Linux version 2.6.14 ([email protected]) (gcc version 3.4.1) #8 Sun Jul 9 19:45:44 CST 2006
CPU: ARM920Tid(wb) [41129200] revision 0 (ARMv4T)
Machine: SMDK2410
Memory policy: ECC disabled, Data cache writeback
CPU S3C2410A (id 0x32410002)
S3C2410: core 202.800 MHz, memory 101.400 MHz, peripheral 50.700 MHz
S3C2410 Clocks, (c) 2004 Simtec Electronics
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists
Kernel command line: noinitrd root=/dev/mtdblock3 init=/linuxrc console=ttySAC0,115200 mac=08:00:3e:26birq: clearing subpending status 00000002
PID hash table entries: 512 (order: 9, 8192 bytes)
timer tcon=00500000, tcnt a509, tcfg 00000200,00000000, usec 00001e4c
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 64MB = 64MB total
Memory: 62848KB available (1513K code, 335K data, 76K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
softlockup thread 0 started up.
NET: Registered protocol family 16
S3C2410: Initialising architecture
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
yaffs Jul  9 2006 19:42:11 Installing.
s3c2410-lcd s3c2410-lcd: no platform data for lcd, cannot attach
s3c2410-lcd: probe of s3c2410-lcd failed with error -22
S3C2410 RTC, (c) 2004 Simtec Electronics
s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2410
s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2410
s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2410
io scheduler noop registered
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
NFTL driver: nftlcore.c $Revision: 1.97 $, nftlmount.c $Revision: 1.40 $
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2410-nand: mapped registers at c4880000
s3c2410-nand: timing: Tacls 10ns, Twrph0 30ns, Twrph1 10ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
NAND_ECC_NONE selected by board driver. This is not recommended !!
Scanning device for bad blocks
Creating 6 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00030000 : "loader"
0x00050000-0x00070000 : "param"
0x000c0000-0x002c0000 : "kernel"
0x002c0000-0x00cc0000 : "root"
0x00cc0000-0x016c0000 : "yaffs"
0x016c0000-0x03ff0000 : "user"
mice: PS/2 mouse device common for all mice
ts: Compaq touchscreen protocol output
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Reading data from NAND FLASH without ECC is not recommended
VFS: Mounted root (cramfs filesystem) readonly.
Freeing init memory: 76K
Using fallback suid method
Using fallback suid method

mount /etc as ramfs
Using fallback suid method
Using fallback suid method
Reading data from NAND FLASH without ECC is not recommended
Using fallback suid method
re-create the /etc/mtab entries
Using fallback suid method
Using fallback suid method
Using fallback suid method
init started:  BusyBox v1.1.3 (2006.07.09-07:43+0000) multi-call binary
Starting pid 167, console /dev/console: '/etc/init.d/rcS'
Bummer, could not run '/etc/init.d/rcS': No such file or directory
Bummer, could not run '/etc/init.d/rcS': No such file or directory

Please press Enter to activate this console.
Starting pid 168, console /dev/console: '/bin/sh'
Using fallback suid method


BusyBox v1.1.3 (2006.07.09-07:43+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

# cd /
# ls
Using fallback suid method
bin      etc      lib      mnt      sbin     usr
dev      home     linuxrc  proc     tmp      var
# ls /mnt/etc
Using fallback suid method
fstab         inetd.conf    modules.conf  protocols     tmp
group         init.d        mtab          resolv.conf   var
hosts         login.defs    passwd        services
# ls /dev
Using fallback suid method
console



我的linuxrc为
#!/bin/ash
echo "mount /etc as ramfs"
/bin/mount -n -t ramfs ramfs /etc
/bin/cp -a /mnt/etc/* /etc

echo "re-create the /etc/mtab entries"
# re-create the /etc/mtab entries
/bin/mount -f -t cramfs -o remount,ro /dev/mtdblock/3 /
/bin/mount -f -t ramfs ramfs /etc

exec /sbin/init


我查看/etc目录,为空
请问这是什么原因?
 楼主| 发表于 2006-7-11 10:48:47 | 显示全部楼层
:-)
自己快搞定了,拿别人的cramfs,好使

对比了一下,自己的/lib下缺少了好多文件,看来自己做的cramfs不完整
(从头做rootfs真费尽,>_<)

缺少文件如下:
libglib-1.2.s0.0       libglib-1.2.so.0.0.10        libglib.a        libglib.la
libgmodule-1.2.so.0        libgmodule-1.2.so.0.0.10
libgmodule.a                   libgmodule.la
libjpeg.so.62          libjpeq.so.62.0.0
libopenobex-0.9.so.8      libopenobex-0.9.so.8.0.0           libopenobex.a
libopenobex.la       libopenobex.so
libtermcap.so.2      libtermcap.so.2.0.8

请问,这些库文件都是从什么编译来的啊?
回复

使用道具 举报

发表于 2006-7-20 12:34:05 | 显示全部楼层
xiao_in,
楼上的大哥 , 我在做s3c2410上2.6.13的移植
现在也是文件系统挂不上
我原来用的是ramdisk
好久都没加上
现在我也想用cramfs
可是我的flash还没分区
小弟不知道分区信息应该在哪个文件,哪个结构体中加,您能救救我吗??
回复

使用道具 举报

 楼主| 发表于 2006-7-21 09:46:12 | 显示全部楼层
我用2.6.14的内核
arch/arm/mach-s3c2410/devs.c

partition_info[]里添加
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-2 14:30 , Processed in 0.047738 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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