天嵌 ARM开发社区

 找回密码
 注册
查看: 2234|回复: 2

QT启动,屏幕没显示,真正的原因什么?

[复制链接]
itspy 发表于 2010-12-17 14:23:15 | 显示全部楼层 |阅读模式
试着自己编译LINUX内核。
步骤:
make menuconfig
导入arch/arm/config/s3c2410_defconfig
文件。
然后进行各种配置。
关键的YAFFS2,NAND FLASH配置之后等等,还有其他,
虽然不大懂,但是可以感觉出一点点,先不管了,先弄出来再说。
编译make zImage
然后将产生的 zImage 烧录LIUNUX内核
还好,失败几次之后,通过调整,终于部分成功,LINUX应该是可以跑起来了吧:


##### EmbedSky BIOS for SKY2440/TQ2440 #####
Press Space key to Download Mode !

#####    Boot for Nor Flash Main Menu   #####
[1] Download u-boot or STEPLDR.nb1 or other bootloader to Nand Flash
[2] Download Eboot to Nand Flash
[3] Download Linux Kernel to Nand Flash
[5] Download CRAMFS image to Nand Flash
[6] Download YAFFS image to Nand Flash
[7] Download Program (uCOS-II or TQ2440_Test) to SDRAM and Run it
[8] Boot the system
[9] Format the Nand Flash
[0] Set the boot parameters
[a] Download User Program (eg: uCOS-II or TQ2440_Test)
Download LOGO Picture (.bin) to Nand  Flash
[l] Set LCD Parameters
[o] Download u-boot to Nor Flash
[r] Reboot u-boot
[q] quit from menu
Enter your selection: 8
Start Linux ...
Copy linux kernel from 0x00200000 to 0x30008000, size = 0x00200000 ... Copy Kern
el to SDRAM done,NOW, Booting Linux......
Uncompressing Linux.............................................................
........................................... done, booting the kernel.
Linux version 2.6.25.8 (root@EmbedSKy) (gcc version 4.3.3 (Sourcery G++ Lite 200
9q1-203) ) #11 Fri Dec 17 13:58:19 CST 2010
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
Machine: SMDK2440
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C244X: core 400.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
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 pending ext status 00080000
irq: clearing subpending status 00000003
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
timer tcon=00500000, tcnt a2c1, tcfg 00000200,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: 61464KB available (3004K code, 273K data, 100K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 152 bytes
NET: Registered protocol family 16
S3C2440: Initialising architecture
S3C2440: IRQ Support
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
S3C244X: Clock Support, DVS off
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)
yaffs Dec 17 2010 10:59:23 Installing.
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
TQ2440/SKY2440 LEDS, (c) 2008,2009 www.embedsky.net
EmbedSky-leds initialized
TQ2440/SKY2440 Beep, (c) 2008,2009 www.embedsky.net
EmbedSky-Beep initialized
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
loop: module loaded
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
PPP MPPE Compression module registered
NET: Registered protocol family 24
PPPoL2TP kernel driver, V1.0
SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256) (6 bit encapsula
tion enabled).
CSLIP: code copyright 1989 Regents of the University of California.
SLIP linefill/keepalive option.
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 c480e000,c4810004 IRQ 51 MAC: 10:32:54:76:98:ba
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: 0xda (Samsung NAND 256MiB 3,3V 8-bi
t)
Scanning device for bad blocks
Creating 3 MTD partitions on "NAND 256MiB 3,3V 8-bit":
0x00000000-0x00040000 : "EmbedSky_Board_uboot"
0x00200000-0x00600000 : "EmbedSky_Board_kernel"
0x00400000-0x0ff80000 : "EmbedSky_Board_yaffs2"
usbmon: debugfs is not available
Initial EmbedSky TWO USB HOST 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
mice: PS/2 mouse device common for all mice
EmbedSky TouchScreen successfully loaded
input: EmbedSky TouchScreen as /class/input/input0
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
i2c /dev entries driver
s3c2440-i2c s3c2440-i2c: slave address 0x10
s3c2440-i2c s3c2440-i2c: bus frequency set to 390 KHz
s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
s3c2440-sdi s3c2410-sdi: unable to get DMA channel.
s3c2440-sdi s3c2410-sdi: powered down.
s3c2440-sdi s3c2410-sdi: initialisation done.
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
TCP cubic registered
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
s3c2440-sdi s3c2410-sdi: powered down.
s3c2410-rtc s3c2410-rtc: setting system clock to 2061-10-02 12:20:26 UTC (289548
1226)
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs: auto selecting yaffs2
VFS: Mounted root (yaffs filesystem).
Freeing init memory: 100K
hwclock: settimeofday() failed: Invalid argument
input_polldev: version magic '2.6.30.4-EmbedSky mod_unload ARMv4 ' should be '2.
6.25.8 mod_unload ARMv4 '
insmod: cannot insert '/lib/input-polldev.ko': invalid module format
mac80211: version magic '2.6.30.4-EmbedSky mod_unload ARMv4 ' should be '2.6.25.
8 mod_unload ARMv4 '
insmod: cannot insert '/lib/mac80211.ko': invalid module format
rt2x00lib: version magic '2.6.30.4-EmbedSky mod_unload ARMv4 ' should be '2.6.25
.8 mod_unload ARMv4 '
insmod: cannot insert '/lib/rt2x00lib.ko': invalid module format
rt2x00usb: version magic '2.6.30.4-EmbedSky mod_unload ARMv4 ' should be '2.6.25
.8 mod_unload ARMv4 '
insmod: cannot insert '/lib/rt2x00usb.ko': invalid module format
rt73usb: version magic '2.6.30.4-EmbedSky mod_unload ARMv4 ' should be '2.6.25.8
mod_unload ARMv4 '
insmod: cannot insert '/lib/rt73usb.ko': invalid module format
ov9650: version magic '2.6.30.4-EmbedSky mod_unload ARMv4 ' should be '2.6.25.8
mod_unload ARMv4 '
insmod: cannot insert '/lib/ov9650.ko': invalid module format
Try to bring eth0 interface up ...
ifconfig eth0 hw ether 10:23:45:67:89:ab
eth0: link down
ifconfig eth0 192.168.1.6 netmask 255.255.255.0 up
add default gw 192.168.1.2
Done
open device leds: No such file or directory
[27/Aug/1925:05:52:14 +0000] boa: server version Boa/0.94.13
[27/Aug/1925:05:52:14 +0000] boa: server built Jul 29 2009 at 14:27:34.
[27/Aug/1925:05:52:14 +0000] boa: starting server pid=275, port 80
Start Qtopia-2.2.0

Please press Enter to activate this console.
[root@EmbedSky /]#

但是真正的问题出来了, 屏幕白屏,没显示。。。。
看着,似乎QT已经启动成功。。。
但为什么没显示呢,LCD各参数应该已经对。QT的文件系统是好的,如果直接下出厂程序,是没问题的。
不知道真正的原因是什么?
哪位大侠,有这方面的经历,指点一下。。。
 楼主| itspy 发表于 2010-12-17 16:07:09 | 显示全部楼层
本帖最后由 itspy 于 2010-12-17 16:12 编辑

问题已解决。
其实感觉,没多大问题,
主要还是液晶的选型没对。
原来在配置显示参数之外还有选择LCD型号的选项。
我原来的默认选的是3.5, 但是板子是4.3的
所以要在Graphics support下
Support for frame buffer devices
要选对LCD尺寸,以及其他相配的选项
最后编译的大小为1.66M,相对比官方少了.2M
最后下载,启动,终于有显示界面。
天嵌_support1 发表于 2010-12-17 18:52:19 | 显示全部楼层
2# itspy


出产内核的源码中有分LCD尺寸的配置文件的
手册也提到了
cp -f config_EmbedSky_W43  .config
在make menuconfig
一下才编译
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-10-5 16:32 , Processed in 1.032160 second(s), 18 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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