天嵌 ARM开发社区

 找回密码
 注册
查看: 3977|回复: 7

yaffs2移植问题

[复制链接]
jiugantang 发表于 2009-11-5 17:08:23 | 显示全部楼层 |阅读模式
.......................................... done, booting the kernel.
Linux version 2.6.30.4 (root@chen-desktop) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #4 Thu Nov 5 03:52:09 CST 2009
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: SMDK2440
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C24XX Clocks, (c) 2004 Simtec Electronics
S3C244X: core 400.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0
NR_IRQS:85
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
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: 61504KB available (2912K code, 246K data, 112K init, 0K highmem)
Calibrating delay loop... 199.47 BogoMIPS (lpj=498688)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 936 bytes
NET: Registered protocol family 16
S3C Power Management, Copyright 2004 Simtec Electronics
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c4808000, irq 33
DMA channel 1 at c4808040, irq 34
DMA channel 2 at c4808080, irq 35
DMA channel 3 at c48080c0, irq 36
S3C244X: Clock Support, DVS off
bio: create slab <bio-0> at 0
SCSI subsystem initialized
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
NET: Registered protocol family 1
NetWinder Floating Point Emulator V0.97 (extended precision)
yaffs Nov  5 2009 02:05:07 Installing.
msgmni has been set to 120
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Console: switching to colour frame buffer device 30x40
fb0: s3c2410fb frame buffer device
lp: driver loaded but no devices found
ppdev: user-space parallel port driver
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
s3c2440-uart.0: tq2440_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: tq2440_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: tq2440_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
brd: module loaded
loop: module loaded
Uniform Multi-Platform E-IDE driver
ide-gd driver 1.18
ide-cd driver 5.00
Driver 'sd' needs updating - please use bus_type methods
dm9000 Ethernet Driver, V1.31
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2440-nand s3c2440-nand: Tacls=3, 30ns Twrph0=7 70ns, Twrph1=3 30ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
Scanning device for bad blocks
Creating 3 MTD partitions on "NAND 256MiB 3,3V 8-bit":
0x000000000000-0x000000040000 : "EmbedSky_Board_uboot"
0x000000200000-0x000000400000 : "EmbedSky_Board_kernel"
0x000000400000-0x00000ff80000 : "EmbedSky_Board_yaffs2"
mice: PS/2 mouse device common for all mice
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
end_request: I/O error, dev mtdblock2, sector 256
isofs_fill_super: bread failed, dev=mtdblock2, iso_blknum=64, block=128
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs: auto selecting yaffs2
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem) on device 31:2.
Freeing init memory: 112K
cannot run '/etc/init.d/rcS': Permission denie
can't open /dev/s3c2410_serial0: No such file or director
can't open /dev/s3c2410_serial0: No such file or director
can't open /dev/s3c2410_serial0: No such file or director
can't open /dev/s3c2410_serial0: No such file or director
can't open /dev/s3c2410_serial0: No such file or director
can't open /dev/s3c2410_serial0: No such file or director
can't open /dev/s3c2410_serial0: No such file or director
can't open /dev/s3c2410_serial0: No such file or director
can't open /dev/s3c2410_serial0: No such file or director
can't open /dev/s3c2410_serial0: No such file or director
can't open /dev/s3c2410_serial0: No such file or director
can't open /dev/s3c2410_serial0: No such file or director
can't open /dev/s3c2410_serial0: No such file or director
can't open /dev/s3c2410_serial0: No such file or director
can't open /dev/s3c2410_serial0: No such file or director
can't open /dev/s3c2410_serial0: No such file or director
can't open /dev/s3c2410_serial0: No such file or director
can't open /dev/s3c2410_serial0: No such file or director
can't open /dev/s3c2410_serial0: No such file or director

这个问题怎么解决???
用我做的内核能挂载板子提供的yaffs2,挂载我做的就出现这种问题
wangdawei_80 发表于 2009-11-7 21:46:34 | 显示全部楼层
这里有两个问题:
1.你的根文件系统的etc/init.d/rcS是否有可执行权限?
2.你的根文件系统中的etc/inittab中是否有s3c2410_serial0::askfirst:-/bin/sh一行?
3.你的内核源代码中drivers/serial/samsun.c中的s3c24xx_uart_drv变量的.dev_name成员是否为s3c2410_serial?
当你确认这三个问题后,问题就能解决了。
回复

使用道具 举报

leelei 发表于 2009-11-12 16:11:24 | 显示全部楼层
我的移植完 老重启 怎么回事??
回复

使用道具 举报

亚瑟王 发表于 2009-11-12 16:25:55 | 显示全部楼层
你开启了看门狗吧,编译一个喂狗程序,然后添加到文件系统中,然后开机后让喂狗程序一直工作就行了。
回复

使用道具 举报

 楼主| jiugantang 发表于 2009-11-12 21:11:20 | 显示全部楼层
我用的是Ubuntu9.04的pc linux
听说用redhat的就能行
用这个版本都抱错
这咋整,还得从新装个redhat?
回复

使用道具 举报

亚瑟王 发表于 2009-11-16 15:07:58 | 显示全部楼层
报错,是什么错呢?你只说有错,没有人能帮你解决的。
回复

使用道具 举报

hefeng1000 发表于 2009-11-17 11:15:19 | 显示全部楼层
我也遇到同样是问题:
1.你的根文件系统的etc/init.d/rcS是否有可执行权限?
我的rcs文件是:#!/bin/sh


PATH=/sbin:/bin:/usr/sbin:/usr/bin
runlevel=S
prevlevel=N
umask 022
export PATH runlevel prevlevel

#
#        Trap CTRL-C &c only in this shell so we can interrupt subprocesses.
#
echo Done > /dev/s3c2410_serial0

mount -a
mkdir /dev/pts
mount -t devpts devpts /dev/pts
echo /sbin/mdev > /proc/sys/kernel/hotplug
mdev -s
mkdir -p /var/lock

mkdir /dev/fb /dev/v4l
ln -s /dev/fb0 /dev/fb/0
ln -s /dev/video0 /dev/v4l/video0

ln -s /dev/ts0 /dev/h3600_tsraw

hwclock -s

insmod /lib/input-polldev.ko
insmod /lib/mac80211.ko
insmod /lib/rt2x00lib.ko
insmod /lib/rt2x00usb.ko
insmod /lib/rt73usb.ko

insmod /lib/ov9650.ko

ifconfig lo 127.0.0.1
net_set &

/etc/rc.d/init.d/leds start
/etc/rc.d/init.d/netd start
/etc/rc.d/init.d/httpd start

qtopia &
/bin/hostname -F /etc/sysconfig/HOSTNAME
2.和3.都是正确的 但是还是楼主的 问题
回复

使用道具 举报

亚瑟王 发表于 2009-11-17 11:45:06 | 显示全部楼层
你的是什么问题?
回复

使用道具 举报

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

本版积分规则

关闭

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

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

GMT+8, 2025-6-18 20:30 , Processed in 2.031619 second(s), 21 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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