天嵌 ARM开发社区

 找回密码
 注册
查看: 4184|回复: 13

根文件系统移植了N遍,就是不成功。

[复制链接]
zhujunfengx 发表于 2009-9-25 08:18:12 | 显示全部楼层 |阅读模式
根文件系统移植了N遍,就是不成功。
我不管是按照第二版还是第三版移植。反正就没有一次成功过。这是为什么呢?它到这里就不动。
..........
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs: block 3582 is marked bad
block 3583 is bad
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem).
Freeing init memory: 124K

标点符号绝对正确,因为我把光盘里的根文件系统改成PDF里的内容后(也就是改了inittab  rcS  文件,其他就是用光盘里的文件了),它确能成功.为什么我自己移的就是不行.
怎么会这样呢?  linuxrc用什么软件可以查看它里面的内容呢?
谢谢大家!
lansky 发表于 2009-9-25 10:40:40 | 显示全部楼层
linuxrc是一个链接文件,它连接到bin目录下的busybox

我第一次移植的时候,出现的情况和你一摸一样的。主要原因还是etc目录的文件制作问题。
我重新制作一遍,有些文件内容是从busybox的文件里面拷贝过来的,除了bin sbin usr linuxrc这几个文件。上次说,给你发邮件的,忘了,中午我切换到ubuntu下,给你发一份我的文件系统。
lansky 发表于 2009-9-25 10:41:50 | 显示全部楼层
linuxrc是一个链接文件,它连接到bin目录下的busybox

我第一次移植的时候,出现的情况和你一摸一样的。主要原因还是etc目录的文件制作问题。
我重新制作一遍,有些文件内容是从busybox的文件里面拷贝过来的,除了bin sbin usr linuxrc这几个文件。上次说,给你发邮件的,忘了,中午我切换到ubuntu下,给你发一份我的文件系统。
 楼主| zhujunfengx 发表于 2009-9-25 16:00:19 | 显示全部楼层
我把你给我的文件系统解压到系统下,然后再mkyaffsimage_2 rootfs rootfs.yaffs
再把它烧到NAND Flash里,结果和我的一样,还是不行。到了
............
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem).
Freeing init memory: 120K

到这里.也不动了.晕呀!
这是为什么呢?
lansky 发表于 2009-9-25 17:32:00 | 显示全部楼层
串口要和你内核的一样。。。
lansky 发表于 2009-9-25 17:32:56 | 显示全部楼层
天嵌的是TQ2440_serial,我的文件系统不是这个。你自己看看。。。
 楼主| zhujunfengx 发表于 2009-9-26 08:26:06 | 显示全部楼层
串口应该没有选错,命令行传递过去的也是串口0呀,/etc/inittab   里的也是serial0呀,找不到原因,头大呀。
整个启动界面如下:


U-Boot 1.1.6 (Sep 20 2009 - 20:40:53)

DRAM:  64 MB
Flash: 512 kB
NAND:  64 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0

Loading from NAND 64MiB 3,3V 8-bit, offset 0x4c000
   Image Name:   Linux-2.6.25.8
   Created:      2009-09-15  11:13:48 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1624896 Bytes =  1.5 MB
   Load Address: 30008000
   Entry Point:  30008000
## Booting image at 32000000 ...
   Image Name:   Linux-2.6.25.8
   Created:      2009-09-15  11:13:48 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1624896 Bytes =  1.5 MB
   Load Address: 30008000
   Entry Point:  30008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux....................................................................................................... done, booting the kernel.
Linux version 2.6.25.8 (root@localhost.localdomain) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #2 Tue Sep 15 19:13:33 CST 2009
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=00007177
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
S3C24XX 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 in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
timer tcon=00500000, tcnt a509, tcfg 00000200,00000000, usec 00001e4c
Console: colour dummy device 80x30
console [ttySAC0] enabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 61568KB available (2956K code, 283K data, 120K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 152 bytes
NET: Registered protocol family 16
S3C2410 Power Management, (c) 2004 Simtec Electronics
S3C2410: Initialising architecture
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c4800000, irq 33
DMA channel 1 at c4800040, irq 34
DMA channel 2 at c4800080, irq 35
DMA channel 3 at c48000c0, irq 36
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.
fuse init (API version 7.9)
yaffs Sep 15 2009 19:13:15 Installing.
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
s3c2410-lcd s3c2410-lcd: no platform data for lcd, cannot attach
s3c2410-lcd: probe of s3c2410-lcd failed with error -22
lp: driver loaded but no devices found
ppdev: user-space parallel port driver
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
s3c2410-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2410
s3c2410-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2410
s3c2410-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2410
brd: module loaded
loop: module loaded
dm9000 Ethernet Driver, V1.30
Uniform Multi-Platform E-IDE driver
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2410-nand s3c2410-nand: Tacls=2, 19ns Twrph0=3 29ns, Twrph1=2 19ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00040000 : "ZhuJunFeng uBoot"
0x0004c000-0x0024c000 : "ZhuJunFeng Kernel"
0x0024c000-0x03ffc000 : "ZhuJunFeng Yaffs 2"
usbmon: debugfs is not available
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2410-i2c s3c2410-i2c: slave address 0x10
s3c2410-i2c s3c2410-i2c: bus frequency set to 99 KHz
s3c2410-i2c s3c2410-i2c: i2c-0: S3C I2C adapter
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
TCP cubic registered
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem).
Freeing init memory: 120K
lansky 发表于 2009-9-26 11:53:26 | 显示全部楼层
哦,我明白了,那个busybox不一样哦!!我用的是busybox1.15版本的,而且使用4.3.3编译器编译的busybox
lansky 发表于 2009-9-26 11:57:43 | 显示全部楼层
额,看你内核启动信息,你内核用的是2.6.25.8,编译器版本是4.3.3,按道理说,应该没问题的,很奇怪的。我用的是2.6.30.5的内核。编译器是4.3.3的,注意第三版里面有个注意事项EABI。busybox 1.15 .你的就是出问题,我的就没有问题,想不通。。。
 楼主| zhujunfengx 发表于 2009-9-28 10:05:36 | 显示全部楼层
我用别人的busybox生成的(bin linuxrc sbin usr)的这些文件,它就能行,我用我自己的busybox生成的就不行。但是用人家会生成如下错误:
..............
VFS: Mounted root (yaffs filesystem).
Freeing init memory: 120K

Please press Enter to activate this console.   
id: unknown uid 0
[@ZhuJunFeng /]#
亚瑟王 发表于 2009-9-30 14:15:06 | 显示全部楼层
你检查你的busybox是用什么编译器编译的,然后版本是不是太低了。
airzougang 发表于 2009-10-7 17:57:56 | 显示全部楼层
11# 亚瑟王
怎么看是那个编译器编的?
 楼主| zhujunfengx 发表于 2009-10-8 08:12:43 | 显示全部楼层
编译器版本为:gcc version 4.3.3 (Sourcery G++ Lite 2009ql-203)
是不是用这个呀?亚瑟王
谢谢 亚瑟王!
亚瑟王 发表于 2009-10-14 11:30:22 | 显示全部楼层
是的,编译器是用的4.3.3的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2024-6-29 16:20 , Processed in 1.062500 second(s), 18 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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