免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 4641 | 回复: 17
打印 上一主题 下一主题

2.6.20内核 3.5寸屏移植 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-02-02 13:49 |只看该作者 |倒序浏览
我在2.6.20内核基础上移植3.5寸屏驱动 s3c2410的板子
编译生成zImage后下载到板子上,3.5寸屏上可以显示出小企鹅,但是在终端里看到我的文件系统没有运行起来
启动信息如下:(没添加lcd驱动前,文件系统是可以起来的)
VIVI version 0.1.4 (root@Chaiwy)(gcc version 2.95.2 20000516 (release) [Rebel.co
m])
MMU table base address = 0x33DFC000
Succeed memory mapping.
NAND device: Manufacture ID: 0xec, Chip ID: 0x76 (Samsung K9D1208V0M)
Found saved vivi parameters.
Press Return to start the LINUX now, any other key for vivi
Copy linux kernel from 0x00030000 to 0x30008000, size = 0x001d0000 ... done
zImage magic = 0x016f2818
Setup linux parameters at 0x30000100
linux command line is: "noinitrd root=/dev/mtdblock4 init=/linuxrc console=ttySA
C0,115200"
MACH_TYPE = 193
NOW, Booting Linux......
Uncompressing Linux.............................................................
........................... done, booting the kernel.
Linux version 2.6.20 (root@localhost.localdomain) (gcc version 3.4.1) #10 Tue Fe
b 2 11:08:43 CST 2010
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
Machine: SMDK2410
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2410A (id 0x32410002)
S3C2410: core 200.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz
S3C24XX Clocks, (c) 2004 Simtec Electronics
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
USB Control, (c) 2006 sbc2410
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.  Total pages: 16256
Kernel command line: noinitrd root=/dev/mtdblock4 init=/linuxrc console=ttySAC0,
115200
irq: clearing pending ext status 00000200
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
timer tcon=00000000, tcnt a2c1, tcfg 00000200,00000000, usec 00001eb8
Console: colour dummy device 80x30
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: 62012KB available (2336K code, 413K data, 108K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
Registering sysclass
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
NET: Registered protocol family 16
S3C2410: Initialising architecture
0:               xdreq0, channels 0---
1:               xdreq1, channels -1--
2:                  sdi, channels 0-23
3:                 spi0, channels -1--
4:                 spi1, channels ---3
5:                uart0, channels 0---
6:                uart1, channels -1--
7:                uart2, channels ---3
8:                timer, channels 0-23
9:              i2s-sdi, channels -12-
10:              i2s-sdo, channels --2-
11:               <NULL>, channels ----
12:               <NULL>, channels ----
13:               <NULL>, channels ----
14:              usb-ep1, channels 0---
15:              usb-ep2, channels -1--
16:              usb-ep3, channels --2-
17:              usb-ep4, channels ---3
SCSI subsystem initialized
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: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 2048 bind 1024)
TCP reno registered
NetWinder Floating Point Emulator V0.97 (double precision)
yaffs Feb  2 2010 11:05:19 Installing.
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Console: switching to colour frame buffer device 80x40
fb0: s3c2410fb frame buffer device
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
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
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
loop: loaded (max 8 devices)
usbcore: registered new interface driver ub
ne.c:v1.10 9/23/94 Donald Becker (becker@scyld.com)
Last modified Nov 1, 2000 by Paul Gortmaker
NE*000 ethercard probe at 0xf2100200: 08 08 08 08 12 28
eth0: NE2000 found at 0xf2100200, using IRQ 18.
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
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
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
VFS: Cannot open root device "mtdblock4" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

论坛徽章:
3
金牛座
日期:2014-06-14 22:04:062015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:49:45
2 [报告]
发表于 2010-02-02 17:54 |只看该作者
无法mount根文件系统,你检查一下文件系统路径对不对

论坛徽章:
0
3 [报告]
发表于 2010-02-03 08:36 |只看该作者
回复 2# dreamice


    我文件系统路径应该是对的,因为内核在没移植lcd驱动前,是可以起来的
  我觉得问题应该是在lcd驱动这一块,但一下子找不出来

论坛徽章:
0
4 [报告]
发表于 2010-02-03 10:56 |只看该作者
Please append a correct "root=" boot option

没有指定root

论坛徽章:
0
5 [报告]
发表于 2010-02-03 11:33 |只看该作者
回复 4# emmoblin


    指定了 启动信息里面 就有
linux command line is: "noinitrd root=/dev/mtdblock4 init=/linuxrc console=ttySA
C0,115200"

论坛徽章:
0
6 [报告]
发表于 2010-02-03 11:37 |只看该作者
VFS: Cannot open root device "mtdblock4" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

看看你的内核驱动,mtd驱动都配置好了吗?

论坛徽章:
0
7 [报告]
发表于 2010-02-03 14:37 |只看该作者
回复 6# emmoblin


    配置好了 我内核在没移植lcd驱动前 文件系统是运行良好的
  现在将内核再改为原来的也是可以运行的

论坛徽章:
0
8 [报告]
发表于 2010-02-03 22:24 |只看该作者
那再检查检查到底两个配置有什么区别。

论坛徽章:
0
9 [报告]
发表于 2010-02-04 12:47 |只看该作者
你文件系统和内核映像是最后放在一起作为一个image的么?

论坛徽章:
0
10 [报告]
发表于 2010-02-04 14:46 |只看该作者
回复 9# snail_314


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

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP