主题 : TINY6410支持最大的LCD分辨率是多少呢? 复制链接 | 浏览器收藏 | 打印
级别: 侠客
UID: 11461
精华: 0
发帖: 89
金钱: 450 两
威望: 93 点
综合积分: 178 分
注册时间: 2009-12-08
最后登录: 2017-08-29
楼主  发表于: 2016-08-28 17:30

 TINY6410支持最大的LCD分辨率是多少呢?

TFT输出,设置最大可到多少?
我看友善出了LCD2VGA的转接板,上面最大的也能配置输出1024X768
我目前的方案是想驱动京东方的15寸显示屏,分辨率是1024X 768 ,
采用lvds单8接口,我自己做了一块转接板,把TFT输出信号转化为lvds信号输出给显示屏
目前如果我把参数配置了以后,启动内核就报错,显存DMA分配出错。
显示屏却貌似进了自检模式,黑,白,红,绿,蓝,这样在跳转。


把S70屏设置的参数直接改了用的,设置如下:
#define S3CFB_LCD_TYPE "S70"
#define S3CFB_VBP  (0x06) /* back porch */
#define S3CFB_VFP  (0x06) /* front porch */
#define S3CFB_VSW  (0x1A) /* vsync width */
#define S3CFB_HBP  (0x28) /* back porch */
#define S3CFB_HFP  (0x28) /* front porch */
#define S3CFB_HSW  (0xF0) /* hsync width */

#define S3CFB_HRES  1024  /* horizon pixel  x resolition */
#define S3CFB_VRES  768  /* line cnt       y resolution */

#define S3CFB_CLKVAL  1 /* ~66.5 MHz */
#define S3CFB_VIDCON1 (S3C_VIDCON1_IHSYNC_INVERT | S3C_VIDCON1_IVSYNC_INVERT)


然后在make menuconfig里面,选择S70屏,双缓冲,4个frameBuffer


启动的输出信息如下:
OKUncompressing Linux... done, booting the kernel.
Initializing cgroup subsys cpu
Linux version 2.6.38-FriendlyARM ([url=mailto:root@localhost.localdomain]root@localhost.localdomain[/url]) (gcc version 4.5.1 (ctng-1.8.1-FA) ) #66 PREEMPT Sat Aug 27 21:47:16 HKT 2016
CPU: ARMv6-compatible processor [410fb766] revision 6 (ARMv7), cr=00c5387f
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: MINI6410
Memory policy: ECC disabled, Data cache writeback
CPU S3C6410 (id 0x36410101)
S3C24XX Clocks, Copyright 2004 Simtec Electronics
camera: no parent clock specified
S3C64XX: PLL settings, A=532000000, M=532000000, E=24000000
S3C64XX: HCLK2=266000000, HCLK=133000000, PCLK=66500000
mout_apll: source is fout_apll (1), rate is 532000000
mout_epll: source is epll (1), rate is 24000000
mout_mpll: source is mpll (1), rate is 532000000
mmc_bus: source is mout_epll (0), rate is 24000000
mmc_bus: source is mout_epll (0), rate is 24000000
mmc_bus: source is mout_epll (0), rate is 24000000
usb-bus-host: source is clk_48m (0), rate is 48000000
uclk1: source is dout_mpll (1), rate is 66500000
spi-bus: source is mout_epll (0), rate is 24000000
spi-bus: source is mout_epll (0), rate is 24000000
audio-bus: source is mout_epll (0), rate is 24000000
audio-bus: source is mout_epll (0), rate is 24000000
audio-bus: source is mout_epll (0), rate is 24000000
irda-bus: source is mout_epll (0), rate is 24000000
camera: no parent clock specified
s3c64xx: 10485760 bytes SDRAM reserved for fimc at 0x5f5f9000
s3c64xx: 8388608 bytes SDRAM reserved for pp at 0x5edf9000
s3c64xx: 8388608 bytes SDRAM reserved for tv at 0x5e5f9000
s3c64xx: 6291456 bytes SDRAM reserved for mfc at 0x5dff9000
s3c64xx: 4194304 bytes SDRAM reserved for jpeg at 0x5dbf9000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
Kernel command line: root=/dev/mtdblock2 rootfstype=yaffs2 init=/linuxrc console=ttySAC0,115200
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 256MB = 256MB total
Memory: 215368k/215368k available, 46776k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xff000000 - 0xffe00000   (  14 MB)
    vmalloc : 0xd0800000 - 0xf6000000   ( 600 MB)
    lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc0169000   (1412 kB)
      .text : 0xc0169000 - 0xc06e607c   (5621 kB)
      .data : 0xc06e8000 - 0xc072bdc0   ( 272 kB)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Preemptable hierarchical RCU implementation.
        RCU-based detection of stalled CPUs is disabled.
        Verbose stalled-CPUs detection is disabled.
NR_IRQS:246
VIC @f6000000: id 0x00041192, vendor 0x41
VIC @f6010000: id 0x00041192, vendor 0x41
Console: colour dummy device 80x30
console [ttySAC0] enabled
Calibrating delay loop... 530.84 BogoMIPS (lpj=2654208)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
s3c64xx_dma_init: Registering DMA channels
PL080: IRQ 73, at d0808000, channels 0..8
PL080: IRQ 74, at d080c000, channels 8..16
S3C6410: Initialising architecture
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
Advanced Linux Sound Architecture Driver Version 1.0.23.
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 5, 163840 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
UDP hash table entries: 128 (order: 0, 6144 bytes)
UDP-Lite hash table entries: 128 (order: 0, 6144 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 (double precision)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
msgmni has been set to 420
io scheduler noop registered (default)
io scheduler cfq registered
S3C_LCD clock got enabled :: 133.000 Mhz
LCD TYPE :: XGA will be initialized
init here :: 5
wangwy write!
------------[ cut here ]------------
WARNING: at mm/page_alloc.c:2012 __alloc_pages_nodemask+0x170/0x604()
Modules linked in:
[<c0178c44>] (unwind_backtrace+0x0/0xe4) from [<c0188160>] (warn_slowpath_common+0x4c/0x64)
[<c0188160>] (warn_slowpath_common+0x4c/0x64) from [<c0188190>] (warn_slowpath_null+0x18/0x1c)
[<c0188190>] (warn_slowpath_null+0x18/0x1c) from [<c01c1054>] (__alloc_pages_nodemask+0x170/0x604)
[<c01c1054>] (__alloc_pages_nodemask+0x170/0x604) from [<c01796c0>] (__dma_alloc+0xb4/0x290)
[<c01796c0>] (__dma_alloc+0xb4/0x290) from [<c01798b8>] (dma_alloc_writecombine+0x1c/0x24)
[<c01798b8>] (dma_alloc_writecombine+0x1c/0x24) from [<c0019340>] (s3cfb_probe+0x45c/0x750)
[<c0019340>] (s3cfb_probe+0x45c/0x750) from [<c031572c>] (platform_drv_probe+0x14/0x18)
[<c031572c>] (platform_drv_probe+0x14/0x18) from [<c0314920>] (driver_probe_device+0xa8/0x158)
[<c0314920>] (driver_probe_device+0xa8/0x158) from [<c0314a30>] (__driver_attach+0x60/0x84)
[<c0314a30>] (__driver_attach+0x60/0x84) from [<c0313c08>] (bus_for_each_dev+0x4c/0x78)
[<c0313c08>] (bus_for_each_dev+0x4c/0x78) from [<c03142a4>] (bus_add_driver+0xa8/0x224)
[<c03142a4>] (bus_add_driver+0xa8/0x224) from [<c0314c7c>] (driver_register+0xa8/0x12c)
[<c0314c7c>] (driver_register+0xa8/0x12c) from [<c01694d8>] (do_one_initcall+0xbc/0x190)
[<c01694d8>] (do_one_initcall+0xbc/0x190) from [<c0008adc>] (kernel_init+0x98/0x148)
[<c0008adc>] (kernel_init+0x98/0x148) from [<c0174668>] (kernel_thread_exit+0x0/0x8)
---[ end trace dec6997083161631 ]---
wangwy write 222!
Failed to allocate video RAM: -12
------------[ cut here ]------------
WARNING: at kernel/irq/manage.c:906 __free_irq+0x88/0x164()
Trying to free already-free IRQ 62
Modules linked in:
[<c0178c44>] (unwind_backtrace+0x0/0xe4) from [<c0188160>] (warn_slowpath_common+0x4c/0x64)
[<c0188160>] (warn_slowpath_common+0x4c/0x64) from [<c01881f8>] (warn_slowpath_fmt+0x2c/0x3c)
[<c01881f8>] (warn_slowpath_fmt+0x2c/0x3c) from [<c01b6510>] (__free_irq+0x88/0x164)
[<c01b6510>] (__free_irq+0x88/0x164) from [<c01b6624>] (free_irq+0x38/0x58)
[<c01b6624>] (free_irq+0x38/0x58) from [<c0019524>] (s3cfb_probe+0x640/0x750)
[<c0019524>] (s3cfb_probe+0x640/0x750) from [<c031572c>] (platform_drv_probe+0x14/0x18)
[<c031572c>] (platform_drv_probe+0x14/0x18) from [<c0314920>] (driver_probe_device+0xa8/0x158)
[<c0314920>] (driver_probe_device+0xa8/0x158) from [<c0314a30>] (__driver_attach+0x60/0x84)
[<c0314a30>] (__driver_attach+0x60/0x84) from [<c0313c08>] (bus_for_each_dev+0x4c/0x78)
[<c0313c08>] (bus_for_each_dev+0x4c/0x78) from [<c03142a4>] (bus_add_driver+0xa8/0x224)
[<c03142a4>] (bus_add_driver+0xa8/0x224) from [<c0314c7c>] (driver_register+0xa8/0x12c)
[<c0314c7c>] (driver_register+0xa8/0x12c) from [<c01694d8>] (do_one_initcall+0xbc/0x190)
[<c01694d8>] (do_one_initcall+0xbc/0x190) from [<c0008adc>] (kernel_init+0x98/0x148)
[<c0008adc>] (kernel_init+0x98/0x148) from [<c0174668>] (kernel_thread_exit+0x0/0x8)
---[ end trace dec6997083161632 ]---
s3c-fb: probe of s3c-fb failed with error -12
backlight       initialized

s3c6400-uart.0: ttySAC0 at MMIO 0x7f005000 (irq = 16) is a S3C6400/10
s3c6400-uart.1: ttySAC1 at MMIO 0x7f005400 (irq = 20) is a S3C6400/10
s3c6400-uart.2: ttySAC2 at MMIO 0x7f005800 (irq = 24) is a S3C6400/10
s3c6400-uart.3: ttySAC3 at MMIO 0x7f005c00 (irq = 28) is a S3C6400/10
leds    initialized
buttons initialized
pwm     initialized
adc     initialized