天嵌 ARM开发社区

 找回密码
 注册
查看: 3531|回复: 10

yaffs 移植问题

[复制链接]
trihook 发表于 2009-11-11 20:51:55 | 显示全部楼层 |阅读模式
本帖最后由 trihook 于 2009-11-11 20:53 编辑

照着手册做的 哪里有问题啊

##### EmbedSky BIOS for SKY2440/TQ2440 #####
Press Space key to Download Mode !
Booting Linux ...
Copy linux kernel from 0x00200000 to 0x30008000, size = 0x00200000 ... Copy Kernel to SDRAM done,NOW, Booting Linux......
Uncompressing Linux......................................................................................................................... done, booting the kernel.
Linux version 2.6.30.4 (root@embedsky) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #4 Mon Nov 9 21:30:03 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 pending status 02000000
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: 60908KB available (3496K code, 311K data, 124K 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
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
s3c2440-i2c s3c2440-i2c: slave address 0x10
s3c2440-i2c s3c2440-i2c: bus frequency set to 97 KHz
s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
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)
JFFS2 version 2.2. (NAND) (SUMMARY)  漏 2001-2006 Red Hat, Inc.
ROMFS MTD (C) 2007 Red Hat, Inc.
msgmni has been set to 119
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
GPIO-Control initialized
PWM-Test initialized
adc initialized
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
Now use the default MAC address: 10:23:45:67:89:ab
eth0 (dm9000): not using net_device_ops yet
eth0: dm9000e at c4872000,c4876004 IRQ 51 MAC: 10:23:45:67:89:ab (EmbedSky)
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2440-nand s3c2440-nand: Tacls=2, 20ns Twrph0=3 30ns, Twrph1=2 20ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 112 at 0x0000001c0000
Bad eraseblock 1174 at 0x000001258000
Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x000000000000-0x000000040000 : "EmbedSky_Board_uboot"
0x000000200000-0x000000400000 : "EmbedSky_Board_kernel"
0x000000400000-0x000003ff8000 : "EmbedSky_Board_yaffs2"
usbmon: debugfs is not available
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
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
usbcore: registered new interface driver libusual
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
USB Serial support registered for FTDI USB Serial Device
usbcore: registered new interface driver ftdi_sio
ftdi_sio: v1.4.3:USB FTDI Serial Converters Driver
USB Serial support registered for pl2303
usbcore: registered new interface driver pl2303
pl2303: Prolific PL2303 USB to serial adaptor driver
mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling
s3c2410-rtc s3c2410-rtc: rtc core: registered s3c as rtc0
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
mapped channel 0 to 0
s3c2440-sdi s3c2440-sdi: powered down.
s3c2440-sdi s3c2440-sdi: initialisation done.
Advanced Linux Sound Architecture Driver Version 1.0.18a.
ALSA device list:
  No soundcards found.
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
s3c2410-rtc s3c2410-rtc: setting system clock to 2009-11-11 20:29:32 UTC (1257971372)
s3c2440-sdi s3c2440-sdi: powered down.
List of all partitions:
1f00             256 mtdblock0 (driver?)
1f01            2048 mtdblock1 (driver?)
1f02           61408 mtdblock2 (driver?)
No filesystem could mount root, tried:  ext3 ext2 cramfs vfat msdos iso9660 romfs
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)
Backtrace:
[<c002b9dc>] (dump_backtrace+0x0/0x114) from [<c02c5b1c>] (dump_stack+0x18/0x1c)
r7:00008000 r6:c3886000 r5:c002383c r4:c03b3a14
[<c02c5b04>] (dump_stack+0x0/0x1c) from [<c02c5b6c>] (panic+0x4c/0x11c)
[<c02c5b20>] (panic+0x0/0x11c) from [<c00090d0>] (mount_block_root+0x1e0/0x220)
r3:00000002 r2:80000000 r1:c3817f6c r0:c033bd5d
[<c0008ef0>] (mount_block_root+0x0/0x220) from [<c00091d4>] (mount_root+0xc4/0xfc)
r8:00000000 r7:00000000 r6:00000000 r5:c002383c r4:01f00002
[<c0009110>] (mount_root+0x0/0xfc) from [<c000937c>] (prepare_namespace+0x170/0x1c4)
r5:c002383c r4:c03b3364
[<c000920c>] (prepare_namespace+0x0/0x1c4) from [<c000860c>] (kernel_init+0xbc/0xe8)
r5:00000000 r4:c03b3340
[<c0008550>] (kernel_init+0x0/0xe8) from [<c0048664>] (do_exit+0x0/0x58c)
r4:00000000
亚瑟王 发表于 2009-11-12 16:43:12 | 显示全部楼层
提示信息显示开发板中没有烧写yaffs文件系统哦。
回复

使用道具 举报

 楼主| trihook 发表于 2009-11-12 20:22:33 | 显示全部楼层
提示信息显示开发板中没有烧写yaffs文件系统哦。
亚瑟王 发表于 2009-11-12 16:43



2# 亚瑟王


按照手册做有些问题 ,内核做make menuconfig 的时候file system 没有设置支持yaffs
我现在能认出yaffs 但好像不对
这部分怎么配置?

yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs: block 918 is marked bad
block 919 is bad
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem) on device 31:2.
Freeing init memory: 124K
Kernel panic - not syncing: Attempted to kill init!
Backtrace:
[<c002b9dc>] (dump_backtrace+0x0/0x114) from [<c02b197c>] (dump_stack+0x18/0x1c)
r7:c3817f54 r6:c3812c40 r5:c3812c40 r4:c039b9b4
[<c02b1964>] (dump_stack+0x0/0x1c) from [<c02b19cc>] (panic+0x4c/0x11c)
[<c02b1980>] (panic+0x0/0x11c) from [<c00486d4>] (do_exit+0x70/0x58c)
r3:c03828f0 r2:c3812c40 r1:c3817d1c r0:c0328b59
[<c0048664>] (do_exit+0x0/0x58c) from [<c0048c80>] (do_group_exit+0x90/0xc4)
[<c0048bf0>] (do_group_exit+0x0/0xc4) from [<c00526e8>] (get_signal_to_deliver+0x2f4/0x32c)
r4:00000004
[<c00523f4>] (get_signal_to_deliver+0x0/0x32c) from [<c002a06c>] (do_signal+0x70/0x4f4)
[<c0029ffc>] (do_signal+0x0/0x4f4) from [<c002a520>] (do_notify_resume+0x30/0x34)
[<c002a4f0>] (do_notify_resume+0x0/0x34) from [<c0027e2c>] (work_pending+0x1c/0x20)
回复

使用道具 举报

wangdawei_80 发表于 2009-11-12 22:57:42 | 显示全部楼层
检查你的根文件系统吧,应该是根文件系统出了问题。
1.检查一下linuxrc和/sbin/init是否有可执行权限;
2.检查一下/dev/下是否有console和null设备;
3.检查/etc/init.d/rcS是否有可执行权限;
4.检查/etc/inittab中是否有串口信息,如:s3c2440_serial0::askfirst:-/bin/sh;另外,s3c2440_serial应该和内核源代码树中drivers/serial/samsung.c中的s3c24xx_uart_drv变量的.dev_name是否一致;
5.检查根文件系统的交叉编译工具是否和内核一致;
6.检查busybox是否支持udev以及ash;
回复

使用道具 举报

sunhy1021 发表于 2009-11-13 11:27:10 | 显示全部楼层
wangdawei_80 说的 我都有做过,可以还是跟lz的问题一样~!!!
回复

使用道具 举报

wangdawei_80 发表于 2009-11-13 17:14:11 | 显示全部楼层
你看看内核的Device Driver->MTD->NAND Device Support->Samsung S3C NAND Hardware ECC是否编译进内核了?在2.6.30以后的内核需要这个选项。
回复

使用道具 举报

村口一蹲 发表于 2010-1-11 20:05:36 | 显示全部楼层
我是直接拿TQ的文件系统做的,现在也出现这个问题了
回复

使用道具 举报

亚瑟王 发表于 2010-1-12 17:09:53 | 显示全部楼层
出现这个问题应该是64MB的Nand Flash使用了ECC校验引起的。
回复

使用道具 举报

days999 发表于 2010-1-15 13:21:14 | 显示全部楼层
不用Ecc校验,用天嵌提供的文件系统做我自己的文件系统,也会出现这个问题的,
回复

使用道具 举报

days999 发表于 2010-1-15 13:49:53 | 显示全部楼层
这个问题已经解决了,原来是内核没有使用EABI编译造成的
回复

使用道具 举报

亚瑟王 发表于 2010-1-18 11:20:33 | 显示全部楼层
晕死,这样的情况你不自己说出来,我们是没法解决的;我们默认的就是:使用EABI编译器编译内核+文件系统或者使用softfloat的编译器编译内核和文件系统。
回复

使用道具 举报

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

本版积分规则

关闭

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

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

GMT+8, 2025-8-3 12:27 , Processed in 2.044774 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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