ty3655 发表于 2010-5-1 16:31:51

Lcd驱动失败!!!

按照例程改完后编译内核正常,写到nand后启动提示如下:
NAND ID is 0xecf1
Set boot params = root=/dev/mtdblock3 init=/linuxrc load_ramdisk=0 console=ttySAC0,115200 mem=65536K devfs=mount display=sam320 0
Load Kernel...
Uncompressing Linux... done, booting the kernel.
Linux version 2.6.33 (root@localhost.localdomain) (gcc version 3.4.1) #22 Sat May 1 16:25:48 CST 2010
CPU: ARM920T revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: SMDK2410
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C24XX Clocks, Copyright 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: root=/dev/mtdblock3 init=/linuxrc load_ramdisk=0 console=ttySAC0,115200 mem=65536K devfs=mount display=sam320 0
PID hash table entries: 256 (order: -2, 1024 bytes)
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: 60652KB available (3712K code, 329K data, 172K init, 0K highmem)
Hierarchical RCU implementation.
NR_IRQS:99
irq: clearing pending ext status 000dfe00
irq: clearing subpending status 00000093
irq: clearing subpending status 00000092
Console: colour dummy device 80x30
console enabled
Calibrating delay loop... 199.47 BogoMIPS (lpj=498688)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
S3C Power Management, Copyright 2004 Simtec Electronics
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C24XX DMA Driver, Copyright 2003-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
s3c-i2c s3c2440-i2c: slave address 0x10
s3c-i2c s3c2440-i2c: bus frequency set to 97 KHz
s3c-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
Advanced Linux Sound Architecture Driver Version 1.0.21.
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
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
NetWinder Floating Point Emulator V0.97 (extended precision)
ROMFS MTD (C) 2007 Red Hat, Inc.
yaffs May1 2010 13:10:25 Installing.
msgmni has been set to 118
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
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: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: s3c2410_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
st: Version 20081215, fixed bufsize 32768, s/g segs 256
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c24xx-nand s3c2440-nand: Tacls=2, 20ns Twrph0=6 60ns, Twrph1=2 20ns
s3c24xx-nand s3c2440-nand: NAND ECC disabled
NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
NAND_ECC_NONE selected by board driver. This is not recommended !!
Scanning device for bad blocks
Bad eraseblock 370 at 0x000002e40000
Creating 8 MTD partitions on "NAND 128MiB 3,3V 8-bit":
0x000000000000-0x000000100000 : "Boot"
0x000000140000-0x000000500000 : "MyApp"
0x000000500000-0x000000800000 : "Kernel"
0x000000800000-0x000004400000 : "fs_yaffs"
0x000004400000-0x000008000000 : "WINCE"
0x000000000000-0x000008000000 : "(null)"
0x000000000000-0x000008000000 : "(null)"
0x000000000000-0x000008000000 : "(null)"
dm9000 Ethernet Driver, V1.31
eth0: dm9000e at c482c300,c4830304 IRQ 51 MAC: 00:12:34:56:80:49 (chip)
console enabled
netconsole: network logging started
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
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.
mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
No device for DAI UDA134X
No device for DAI s3c24xx-i2s
ALSA device list:
No soundcards found.
TCP cubic registered
NET: Registered protocol family 17
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
yaffs: dev is 32505859 name is "mtdblock3"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.3, "mtdblock3"
yaffs: auto selecting yaffs2
yaffs: restored from checkpoint
yaffs_read_super: isCheckpointed 1
VFS: Mounted root (yaffs filesystem) on device 31:3.
Freeing init memory: 172K

init started: BusyBox v1.6.0 (2008-01-09 17:10:28 CST) multi-call binary

starting pid 951, tty '': '/etc/init.d/rcS'
mount: mounting none on /dev/pts failed
mount: mounting tmpfs on /dev/shm failed
dm9000 dm9000.0: WARNING: no IRQ resource flags set.
eth0: link down
ifconfig: SIOCSIFADDR: No such device

Please press Enter to activate this console. Can't open framebuffer device /dev/fb0
Can't open framebuffer device /dev/fb0
driver cannot connect
然后屏就花屏。

ty3655 发表于 2010-5-2 17:49:32

内核配置的时候有选中logo,为什么显示的是花屏??
难道还要qt么?

飞凌-vxworks 发表于 2010-5-3 10:44:42

是自己重新编译的内核吗?看下你驱动的分辨率是不是设置正确呢

ty3655 发表于 2010-5-3 15:29:49

是指配置内核的时候么?
这是的驱动的配置:
/* LCD driver info */

static struct s3c2410fb_display smdk2440_lcd_cfg[] __initdata =
{
        {
        .lcdcon5        = S3C2410_LCDCON5_FRM565 |
                          S3C2410_LCDCON5_INVVLINE |
                          S3C2410_LCDCON5_INVVFRAME |
                          S3C2410_LCDCON5_PWREN |
                          S3C2410_LCDCON5_HWSWP,

        .type                = S3C2410_LCDCON1_TFT,
        .width                = 320,
        .height                = 240,

        .pixclock        = 270000, /* HCLK 60 MHz, divisor 10 */
        .xres                = 320,
        .yres                = 240,
        .bpp                = 16,
        .left_margin        = 8,
        .right_margin        = 5,
        .hsync_len        = 63,
        .upper_margin        = 15,
        .lower_margin        = 3,
        .vsync_len        = 5,
        },

};

static struct s3c2410fb_mach_info smdk2440_fb_info __initdata = {
        .displays        = smdk2440_lcd_cfg,
        .num_displays        = ARRAY_SIZE(smdk2440_lcd_cfg),
        .default_display = 0,

#if 0
        /* currently setup by downloader */
        .gpccon                = 0xaa940659,
        .gpccon_mask        = 0xffffffff,
        .gpcup                = 0x0000ffff,
        .gpcup_mask        = 0xffffffff,
        .gpdcon                = 0xaa84aaa0,
        .gpdcon_mask        = 0xffffffff,
        .gpdup                = 0x0000faff,
        .gpdup_mask        = 0xffffffff,
#endif

        .lpcsel                = 0,
};

飞凌-seventeen 发表于 2010-5-4 08:45:11

启动信息提示你打不开fb0。是你的驱动没有注册设备,没有节点/dev/fb/0,所以在文件系统/usr/etc/rc.touch里面的关于ln -s /dev/fb/0 fb0的链接没有成功,导致qt没有显示,最终花屏。

如果你使用的是飞凌的开发板,飞凌的lcd驱动可以兼容飞凌不同尺寸的屏,无需修改

ty3655 发表于 2010-5-4 10:40:52

回复 5# 飞凌-seventeen


      我的是OK2440-III的板子,试过28的系统和12的系统都没有成功。按照我们网站的例程改是不成功的。按照你的说法是不是说我还要改其他的地方。屏是三星3.5‘的。裸机驱动是没有问题的。

傲视苍穹的鹰 发表于 2013-12-16 21:07:37

页: [1]
查看完整版本: Lcd驱动失败!!!