天嵌 ARM开发社区

 找回密码
 注册
查看: 2558|回复: 1

移植文件系统出错(已解决)

[复制链接]
chinxue 发表于 2018-11-11 22:19:47 | 显示全部楼层 |阅读模式
本帖最后由 chinxue 于 2018-11-11 22:24 编辑

在2440上移植文件系统错误,首先编译内核没问题,和手册一样,但是安装busybox之后,按照步骤制作yaffs文件系统,烧到开发板之后始终显示控制台不能打开,如下:
EmbedSky-buttons initialized
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2410-rtc s3c2410-rtc: rtc VFS: Mounted root (yaffs filesystem).
Freeing init memory: 116K
Warning: unable to open an initial console.
Failed to execute /linuxrc.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.
*** Warning - bad CRC or NAND, using default environment

控制台不能打开,查了很多资料,主要都是说dev下面两个文件的问题,然后各种改文件权限,重新用命令(虽然两个文件都是空),然而没什么用。
然后怀疑是内核传递参数问题,因为打印出许多坏块,或者是nand驱动问题,或者DNW烧写地址问题(上次因为小文件问题吃过亏),又去研究了内核传递参数和ecc设置,然而还是没用;
接着做了个重要的对比,将TQ自带的一个256M适用的QT文件系统烧写到开发板,可以运行,立马就排除了内核等等一系列问题,肯定的就在自己生成的文件系统了;
接下来又按照手册,一步步将文件系统制作一遍,依然那个问题,很多坏块,打不开控制台。然后将busybox设置又顺了一遍,完全按照手册的点,反复不下5次,依然。换了TQ自带的文件系统源码,用busybox生成,问题更坏,坏块打印到一半就死机了。
今天继续弄,先核对busybox是否跟内核有关,然后在官网下个原生的busybox,弄了还是不行。在路上查CSDN有说跟yaffs工具有关的,又去busybox找yaffs工具准备重新来,结果busybox工具里面没有make,但是分明记得是当时在工具下make出的yaffs工具,心里觉得焦急的瞬间也觉得有哪点有个闪光,然后找TQ的工具包里,重新将那个yaffs工具复制过去,制作,下载,成了!!!
当时就激动了,就前面驱动搞了那么久,就为linux,又韦东山的前几章都遍了就差移植系统,结果翻越重重大山走到拉萨门口你不让进,那一刻真的。。。
冷静下来复盘当时的情景,yaffs工具是从yaffs2工具文件夹make出来的,对比和TQ提供的,大小也不一样,y印证了工具不对的说法。后面继续研究下工具生成到底哪里不对,但是这个坎先过了。
贴上正确和错误的两种打印,有相似情况的可以有个思路

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
 楼主| chinxue 发表于 2018-11-11 22:21:28 | 显示全部楼层
##### EmbedSky BIOS for SKY2440/TQ2440#####
Press Space key to Download Mode !
Booting Linux ...
Copy linux kernel from 0x00200000 to0x30008000, size = 0x00300000 ... Copy Kernel to SDRAM done,NOW, BootingLinux......
Uncompressing Linux.....................................................................................................done, booting the kernel.
Linux version 2.6.25.8-EmbedSky(pi@pi-VirtualBox) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-176) )  Sat Nov 10 12:06:00 CST 2018
CPU: ARM920T [41129200] revision 0(ARMv4T), cr=c0007177
Machine: SMDK2440
ATAG_INITRD is deprecated; please updateyour bootloader.
Memory policy: ECC disabled, Data cachewriteback
CPU S3C2440A (id 0x32440001)
S3C244X: core 400.000 MHz, memory 100.000MHz, peripheral 50.000 MHz
S3C24XX Clocks, (c) 2004 Simtec Electronics
CLOCK: Slow mode (1.500 MHz), fast, MPLLon, UPLL on
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity64, 32 byte lines, 8 sets
Built 1 zonelists in Zone order, mobilitygrouping on.  Total pages: 16256
Kernel command line: noinitrdroot=/dev/mtdblock2 init=/linuxrc console=ttySAC0
irq: clearing pending ext status 00080000
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024bytes)
timer tcon=00500000, tcnt a2c1, tcfg00000200,00000000, usec 00001eb8
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: 61500KB available (2892K code, 343Kdata, 116K 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 SimtecElectronics
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C24XX DMA Driver, (c) 2003-2004,2006Simtec 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
S3C244X: Clock Support, DVS off
usbcore: registered new interface driverusbfs
usbcore: registered new interface driverhub
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 (established2048 bind 2048)
TCP reno registered
NetWinder Floating Point Emulator V0.97(double precision)
JFFS2 version 2.2. (NAND) ?? 2001-2006 RedHat, Inc.
io scheduler noop registered
io scheduler anticipatory registered(default)
io scheduler deadline registered
io scheduler cfq registered
lp: driver loaded but no devices found
ppdev: user-space parallel port driver
s3c2440-uart.0: tq2440_serial0 at MMIO0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: tq2440_serial1 at MMIO0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: tq2440_serial2 at MMIO0x50008000 (irq = 76) is a S3C2440
brd: module loaded
loop: module loaded
dm9000 Ethernet Driver
eth%d: Invalid ethernet MAC address.  Please set using ifconfig
Now use the default MAC address:10:32:54:76:98:ba
eth0: dm9000 at c485e000,c4860004 IRQ 51MAC: 10:32:54:76:98:ba
Uniform Multi-Platform E-IDE driver
ide: Assuming 50MHz system bus speed forPIO modes; override with idebus=xx
S3C24XX NAND Driver, (c) 2004 SimtecElectronics
s3c2440-nand s3c2440-nand: Tacls=2, 20nsTwrph0=3 30ns, Twrph1=2 20ns
NAND device: Manufacturer ID: 0xec, ChipID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
NAND_ECC_NONE selected by board driver.This is not recommended !!
Scanning device for bad blocks
Bad eraseblock 1332 at 0x0a680000
Creating 3 MTD partitions on "NAND256MiB 3,3V 8-bit":
0x00000000-0x00040000 :"EmbedSky_Board_uboot"
0x00200000-0x00500000 :"EmbedSky_Board_kernel"
0x00500000-0x10000000 :"EmbedSky_Board_yaffs2"
usbmon: debugfs is not available
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB busregistered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem0x49000000
usb usb1: configuration #1 chosen from 1choice
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
TQ2440/SKY2440 LEDS, (c) 2008,2009www.embedsky.net
EmbedSky-buttons initialized
S3C24XX RTC, (c) 2004,2006 SimtecElectronics
s3c2410-rtc s3c2410-rtc: rtc VFS: Mountedroot (yaffs filesystem).
Freeing init memory: 116K
Warning: unable to open an initial console.
Failed to execute /linuxrc.  Attempting defaults...
Kernel panic - not syncing: No initfound.  Try passing init= option tokernel.
*** Warning - bad CRC or NAND, usingdefault environment


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

本版积分规则

关闭

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

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

GMT+8, 2024-4-26 12:47 , Processed in 1.031244 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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