[#4570] Nothing shows on lcd when try directfb on bf537-stamp with usb mouse plugged in

Document created by Aaronwu Employee on Aug 29, 2013
Version 1Show Document
  • View in full screen mode

[#4570] Nothing shows on lcd when try directfb on bf537-stamp with usb mouse plugged in

Submitted By: Vivi Li

Open Date

2008-10-29 03:36:19     Close Date

2008-11-19 03:11:33

Priority:

Medium     Assignee:

Graf Yang

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

Output to Screen     Board:

STAMP

Processor:

BF537     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

toolchain-2008_Oct_10

App binary format:

N/A     

Summary: Nothing shows on lcd when try directfb on bf537-stamp with usb mouse plugged in

Details:

 

For BF537 with isp1362 usb board and lq035 tftlcd, try directfb on it, nothing shows up in screen.

 

Config files are attached and bellow is the log:

--

Linux version 2.6.26.5-ADI-2009R1-pre-svn5488 (test@107-local) (gcc version 4.1.2 (ADI svn)) #124 Wed Oct 29 16:19:27 CST 2008

console [early_BFuart0] enabled

early printk enabled on early_BFuart0

Warning: limiting memory to 56MB due to hardware anomaly 05000263

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x00140b40

  rodata    = 0x00140b40-0x001a3f40

  bss       = 0x001a3f40-0x001b75d0

  data      = 0x001b75d0-0x001cc000

    stack   = 0x001ca000-0x001cc000

  init      = 0x001cc000-0x0062c000

  available = 0x0062c000-0x037ff000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace Active and Enabled

Blackfin support (C) 2004-2008 Analog Devices, Inc.

Compiled for ADSP-BF537 Rev 0.2

Blackfin Linux support by   blackfin.uclinux.org/

Processor Speed: 500 MHz core clock and 100 MHz System Clock

NOMPU: setting up cplb tables for global access

Instruction Cache Enabled

Data Cache Enabled (write-through)

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 14223

Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600 console=tty0 console=ttyBF0,57600 ip=10.100.4.50:10.f

Configuring Blackfin Priority Driven Interrupts

PID hash table entries: 256 (order: 8, 1024 bytes)

Console: colour dummy device 80x25

console [tty0] enabled

Linux version 2.6.26.5-ADI-2009R1-pre-svn5488 (test@107-local) (gcc version 4.1.2 (ADI svn)) #124 Wed Oct 29 16:19:27 CST 2008

console [early_BFuart0] enabled

early printk enabled on early_BFuart0

Warning: limiting memory to 56MB due to hardware anomaly 05000263

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x00140b40

  rodata    = 0x00140b40-0x001a3f40

  bss       = 0x001a3f40-0x001b75d0

  data      = 0x001b75d0-0x001cc000

    stack   = 0x001ca000-0x001cc000

  init      = 0x001cc000-0x0062c000

  available = 0x0062c000-0x037ff000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace Active and Enabled

Blackfin support (C) 2004-2008 Analog Devices, Inc.

Compiled for ADSP-BF537 Rev 0.2

Blackfin Linux support by   blackfin.uclinux.org/

Processor Speed: 500 MHz core clock and 100 MHz System Clock

NOMPU: setting up cplb tables for global access

Instruction Cache Enabled

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 14223

Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600 console=tty0 console=ttyBF0,57600 ip=10.100.4.50:10.f

Configuring Blackfin Priority Driven Interrupts

PID hash table entries: 256 (order: 8, 1024 bytes)

Console: colour dummy device 80x25

console [tty0] enabled

console handover: boot [early_BFuart0] -> real [ttyBF0]

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

Memory available: 50436k/65536k RAM, (4480k init code, 1278k kernel code, 558k data, 1024k dma, 7760k reserved)

Security Framework initialized

Mount-cache hash table entries: 512

Blackfin Scratchpad data SRAM: 4 KB

Blackfin L1 Data A SRAM: 16 KB (15 KB free)

Blackfin L1 Data B SRAM: 16 KB (16 KB free)

Blackfin L1 Instruction SRAM: 48 KB (41 KB free)

net_namespace: 192 bytes

NET: Registered protocol family 16

Blackfin GPIO Controller

Blackfin DMA Controller

stamp_init(): registering device resources

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

NET: Registered protocol family 1

msgmni has been set to 98

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

 

 

bf537-lq035: FrameBuffer initializing...<6>dma_alloc_init: dma_page @ 0x00950000 - 256 pages at 0x03f00000

Console: switching to colour frame buffer device 40x15

Done.

Serial: Blackfin serial driver

bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART

brd: module loaded

bfin_mac_mdio: probed

bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=19)@sclk=100MHz)

bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1

driver isp1362-hcd, 2005-04-04

isp1362-hcd isp1362-hcd.0: ISP1362 Host Controller

isp1362-hcd isp1362-hcd.0: new USB bus registered, assigned bus number 1

isp1362_hc_reset:

isp1362-hcd isp1362-hcd.0: irq 53, io mem 0x20360000

isp1362_hc_start:

isp1362-hcd isp1362-hcd.0: ISP1362 Memory usage:

isp1362-hcd isp1362-hcd.0:   ISTL:    2 *  256:      512 @ $0000:$0100

isp1362-hcd isp1362-hcd.0:   INTL:   16 * ( 64+8):  1152 @ $0200

isp1362-hcd isp1362-hcd.0:   ATL :   32 * ( 64+8):  2304 @ $0680

isp1362-hcd isp1362-hcd.0:   USED/FREE:   3968       128

usb usb1: configuration #1 chosen from 1 choice

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 2 ports detected

ISP1362 Host Controller, irq 53

sl811: driver sl811-hcd, 19 May 2005

sl811-hcd sl811-hcd.0: SL811HS v1.5

sl811-hcd sl811-hcd.0: new USB bus registered, assigned bus number 2

sl811-hcd sl811-hcd.0: irq 54, io mem 0x20340000

usb usb2: configuration #1 chosen from 1 choice

hub 2-0:1.0: USB hub found

hub 2-0:1.0: 1 port detected

usb 1-2: new low speed USB device using isp1362-hcd and address 2

mice: PS/2 mouse device common for all mice

usb 1-2: configuration #1 chosen from 1 choice

usb 2-1: new low speed USB device using sl811-hcd and address 2

usb 2-1: configuration #1 chosen from 1 choice

usbcore: registered new interface driver appletouch

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0

i2c /dev entries driver

i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller, regs_base@ffc01400

usbcore: registered new interface driver i2c-tiny-usb

bfin-wdt: initialized: timeout=20 sec (nowayout=0)

input: Dell Dell USB Keyboard as /class/input/input0

input: USB HID v1.10 Keyboard [Dell Dell USB Keyboard] on usb-isp1362-hcd.0-2

input: HID 04b3:3107 as /class/input/input1

input: USB HID v11.10 Mouse [HID 04b3:3107] on usb-sl811-hcd.0-1

usbcore: registered new interface driver usbhid

usbhid: v2.6:USB HID core driver

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 1970-01-01 00:42:03 UTC (2523)

IP-Config: Complete:

     device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174,

     host=bf537-stamp, domain=, nis-domain=(none),

     bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=

Freeing unused kernel memory: 4480k freed

                           _________________________________P__HY: 0:01 - Link is Up - 100/Full

 

        a8888b.           / Welcome to the uClinux distribution \

       d888888b.         /       _     _                         \

       8P"YP"Y88        /       | |   |_|            __  __ (TM)  |

       8|o||o|88  _____/        | |    _ ____  _   _ \ \/ /       |

       8'    .88       \        | |   | |  _ \| | | | \  /        |

       8`._.' Y8.       \       | |__ | | | | | |_| | /  \        |

      d/      `8b.       \      \____||_|_| |_|\____|/_/\_\       |

     dP   .    Y8b.       \   For embedded processors including   |

    d8:'  "  `::88b        \    the Analog Devices Blackfin      /

   d8"         'Y88b        \___________________________________/

  :8P    '      :888

   8a.   :     _a88P         For further information, check out:

._/"Yaa_:   .| 88P|            -   blackfin.uclinux.org/

\    YP"    `| 8P  `.          -   docs.blackfin.uclinux.org/

/     \.___.d|    .'           -   www.uclinux.org/

`--..__)8888P`._.'  jgs/a:f    -   www.analog.com/blackfin

 

Have a lot of fun...

 

 

BusyBox v1.12.1 (2008-10-29 14:20:54 CST) built-in shell (msh)

Enter 'help' for a list of built-in commands.

 

root:/> df_dok

 

   ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.2.6 |~~~~~~~~~~~~~~~~~~~~~~~~~~

        (c) 2001-2008  The world wide DirectFB Open Source Community

        (c) 2000-2004  Convergence (integrated media) GmbH

      ----------------------------------------------------------------

 

(*) DirectFB/Core: Single Application Core. (2008-10-29 07:37)

(*) Direct/Thread: Started 'VT Switcher' (303) [CRITICAL OTHER/OTHER 0/0] <12288>...

(*) Direct/Thread: Started 'Keyboard Input' (304) [INPUT OTHER/OTHER 0/0] <12288>...

(*) DirectFB/Input: Keyboard 0.9 (directfb.org)

(*) Direct/Thread: Started 'Linux Input' (305) [INPUT OTHER/OTHER 0/0] <12288>...

(*) DirectFB/Input: Dell Dell USB Keyboard (1) 0.1 (directfb.org)

(*) Direct/Thread: Started 'Linux Input' (306) [INPUT OTHER/OTHER 0/0] <12288>...

(*) DirectFB/Input: HID 04b3:3107 (2) 0.1 (directfb.org)

(*) Direct/Thread: Started 'PS/2 Input' (307) [INPUT OTHER/OTHER 0/0] <12288>...

(*) DirectFB/Input: IMPS/2 Mouse 1.0 (directfb.org)

(*) DirectFB/Graphics: Generic Software Rasterizer 0.6 (directfb.org)

(*) DirectFB/Core/WM: Default 0.3 (directfb.org)

(*) FBDev/Surface: Allocated 320x240 16 bit RGB16 buffer (index 0) at offset 0 and pitch 640.

DirectFB/FBDev: Panning display failed (x=0 y=0 ywrap=0 vbl=1)!

    --> Invalid argument

(*) FBDev/Mode: Setting 320x240 RGB16

(*) FBDev/Mode: Switched to 320x240 (virtual 320x240) at 16 bit (RGB16), pitch 640

(*) FBDev/Surface: Allocated 320x240 16 bit RGB16 buffer (index 0) at offset 0 and pitch 640.

DirectFB/FBDev: Panning display failed (x=0 y=0 ywrap=0 vbl=1)!

    --> Invalid argument

(*) Direct/Interface: Loaded 'PNG' implementation of 'IDirectFBImageProvider'.

(*) Direct/Interface: Loaded 'FT2' implementation of 'IDirectFBFont'.

(*) Direct/Interface: Loaded 'GIF' implementation of 'IDirectFBImageProvider'.

 

Benchmarking 256x221 on 320x231 RGB16 (16bit)...

 

Anti-aliased Text                              3.000 secs (  709.200 KChars/sec) [100.0%]

...

--

 

Follow-ups

 

--- Vivi Li                                                  2008-11-12 05:19:22

It fails when a usb mouse has been plugged in; it works without a usbmouse.

 

--- Graf Yang                                                2008-11-16 22:26:34

It is a resource conflict, sl811-hcd and bf537-lq035 both need the gpio pin pf4,

you can change sl811-hcd interrupt pin to avoiding.

I have committed a patch that will print some message when the irq pin is

conflicting with others.

 

--- Graf Yang                                                2008-11-16 23:18:21

I modified my commit, let request_irq() fail when the requested pin is busy.

 

--- Vivi Li                                                  2008-11-19 03:11:33

GPIO pin setting has been changed in build script. Appropriate jumper setting

should be done in USB add-on board and BF537-STAMP, refer to build script.

BF537-STAMP: SW5 is all OFF; SW6.4 is OFF;

USB card with ISP1362/SL811: JP3, populate pin 15 & 16; JP5, populate pin

17 & 18.

 

OK now. Close this bug.

Thanks!

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.kernel.537    application/octet-stream    35687    Vivi Li

config.user.537    application/octet-stream    45402    Vivi Li

Outcomes