FAQ: [#5976] Screen color is blue or red in microwin test(2010)

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

[#5976] Screen color is blue or red in microwin test

Submitted By: Vivi Li

Open Date

2010-03-18 04:12:25     Close Date

2010-07-05 02:04:19

Priority:

Medium     Assignee:

Michael Hennerich

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2010R1     Release:

Category:

N/A     Board:

N/A

Processor:

ALL     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Rejected

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.3-2010_Jan_22

App binary format:

N/A     

Summary: Screen color is blue or red in microwin test

Details:

 

Run microwin test on bf548-ezkit/bf537-stamp, screen is covered with blue when nano-X applications are running, while it is covered with red on bf527-ezkit.

The place supposed to be white turns out to be blue or red.

Application video_test has no such problem, and 09r1.1 release is OK.

 

--

root:/> modprobe bf54x_lq043fb

bf54x-lq043: FrameBuffer initializing...

root:/> nano-X &

[1] 330 nano-X

root:/> nanowm &

[2] 331 nanowm

root:/> nxclock

^C

root:/> nano-X: client closed socket: 6

root:/> nxkbd

^C

root:/> nano-X: client closed socket: 6

--

 

Follow-ups

 

--- Michael Hennerich                                        2010-03-18 05:25:04

What version of the BF527-EZKIT are you using?

Please attach kernel and user config files.

 

--- Vivi Li                                                  2010-03-18 06:12:00

Sorry, config files are attached.

 

BF548-EZKIT board version is 1.4;

BF527-EZKIT board version is 2.0.

 

--- Michael Hennerich                                        2010-03-18 08:22:34

I wonder if microwin/nano-X ever showed a correct picture on the BF527-EZKIT?

 

--- Vivi Li                                                  2010-03-18 22:33:34

Except for bug 4126, it can show a correct picture.

 

At least, BF537-STAMP/BF548-EZKIT used to show a completely correct picture.

 

--- Michael Hennerich                                        2010-06-18 06:52:17

I double checked -

BF527-EZKIT board version is 2.1 shows correct colors.

Nanowm desktop is blue while nxclock background is white.

The old BF527-EZKIT uses a reversed color format that nano-X doesn't support.

 

--- Vivi Li                                                  2010-06-25 06:57:20

Hi, Michael

 

I have a 2.2 board and don't have 2.1 board.

I can see no picture on lcd screen either in u-boot or with video_test in

kernel. Board config is default and I can't see anything wrong. Could you try it

on 2.2 board?

 

-Vivi

 

--- Michael Hennerich                                        2010-06-25 08:25:32

I wonder if you are using:

1) u-boot:              bf527-ezkit-v2 board config?

2) uclinux-dist:        BF527-EZKIT-V2 board config?

 

-Michael

 

 

--- Vivi Li                                                  2010-06-28 00:05:26

Yeah, I configured u-boot and uclinux-dist on bf527-ezkit-v2, and it didn't

work.

 

--- Vivi Li                                                  2010-06-28 00:07:47

My config is attached.

 

--- Michael Hennerich                                        2010-06-28 03:51:22

How did you set the LCD Mode switches on the BF527-EZKIT V 2.2?

 

Try:

SW26:

 

SW26-1: OFF

SW26-2: ON

SW26-3: ON

SW26-4: ON

SW26-5: ON

SW26-6: ON

 

SW5:

 

SW5-1: OFF

SW5-2: ON

 

-Michael

 

 

--- Michael Hennerich                                        2010-06-28 04:02:48

Looking at your config files:

 

#

# Frame buffer hardware drivers

#

CONFIG_FB_BFIN_T350MCQB=m

# CONFIG_FB_BFIN_LQ035Q1 is not set

 

You are not using the: BF527-EZKIT-V2_defconfig

 

Please compare the BF527-EZKIT-V2 against your config files.

New EZKIT uses CONFIG_FB_BFIN_LQ035Q1!

 

Please make sure that you use the right default config files in u-boot and

kernel.

 

-Michael

 

 

 

--- Vivi Li                                                  2010-06-28 06:47:24

Thank you, Michael. I didn't realize that I used a wrong LCD driver. I'll update

the build script.

 

It can show image in kernel now.

And Nanowm desktop makes nxclock blue, isn't it a bug of microwin? I remembered

that in our old release, white used to be white instead of blue.

 

--- Vivi Li                                                  2010-07-01 22:22:10

Attached is my latest image and config for microwin test on 2.2 board.

 

--

U-Boot 2010.03-svn2335 (ADI-2010R1-pre) (Jun 28 2010 - 10:58:27)

 

CPU:   ADSP bf527-0.0 (Detected Rev: 0.2) (parallel flash boot)

Board: ADI BF527 EZ-Kit board

       Support: http://blackfin.uclinux.org/

Clock: VCO: 525 MHz, Core: 525 MHz, System: 131.250 MHz

RAM:   64 MB

Flash:  4 MB

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

Net:   bfin_mac

Hit any key to stop autoboot:  0

bfin> printenv

bootargs=root=/dev/mtdblock0 rw clkin_hz=25000000

earlyprintk=serial,uart1,57600 console=tty0 console=ttyBF1,57600

bootcmd=run ramboot

bootdelay=5

baudrate=57600

loads_echo=1

autoload=no

rootpath=/romfs

netmask=255.255.255.0

hostname=bf527-ezkit

loadaddr=0x1000000

nc=set ncip ${serverip};set stdin nc;set stdout nc

ubootfile=u-boot.ldr

update=tftp $(loadaddr) $(ubootfile);protect off 0x20000000 +$(filesize);erase

0x20000000 +$(filesize);cp.b $(loadaddr) 0x200000)

addip=set bootargs $(bootargs)

ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname):eth0:off

ramfile=uImage

ramargs=set bootargs root=/dev/mtdblock0 rw clkin_hz=25000000

earlyprintk=serial,uart1,57600 console=tty0 console=ttyBF1,57600

ramboot=tftp $(loadaddr) $(ramfile);run ramargs;run addip;bootm

nfsfile=vmImage

nfsargs=set bootargs root=/dev/nfs rw

nfsroot=$(serverip):$(rootpath),tcp,nfsvers=3

nfsboot=tftp $(loadaddr) $(nfsfile);run nfsargs;run addip;bootm

flashboot=bootm 0x20100000

ethact=bfin_mac

ipaddr=10.100.4.50

serverip=10.100.4.174

gatewayip=10.100.4.174

ethaddr=00:E0:22:FE:C0:9A

stdin=serial

stdout=serial

stderr=serial

 

Environment size: 1125/8188 bytes

bfin>

bfin> run ramboot

Using bfin_mac device

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'uImage'.

Load address: 0x1000000

Loading: #################################################################

         #################################################################

         #################################################################

         #################################################################

         ##################################################

done

Bytes transferred = 4550696 (457028 hex)

## Booting kernel from Legacy Image at 01000000 ...

   Image Name:   bf527-2.6.34-ADI-2010R1-pre-svn8

   Created:      2010-06-28  16:04:28 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    4550632 Bytes =  4.3 MB

   Load Address: 00001000

   Entry Point:  001c6704

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 001c6704

Linux version 2.6.34-ADI-2010R1-pre-svn8936 (test@uboot30-527ezkit) (gcc

version 4.3.4 (ADI-trunk/svn-3951) ) #7 Mon Jun 28 16:00

register early platform devices

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart1] enabled

early printk enabled on early_BFuart1

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x0012d5e8

  rodata    = 0x0012d5e8-0x00192510

  bss       = 0x00193000-0x001a70d0

  data      = 0x001a70d0-0x001bc000

    stack   = 0x001ba000-0x001bc000

  init      = 0x001bc000-0x0092c000

  available = 0x0092c000-0x03f00000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 1

Reset caused by Software reset

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

Compiled for ADSP-BF527 Rev 0.2

Blackfin Linux support by http://blackfin.uclinux.org/

Processor Speed: 525 MHz core clock and 131 MHz System Clock

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

  External memory: cacheable in instruction cache

Data Cache Enabled for CPU0

  External memory: cacheable (write-back) in data cache

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

Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000

earlyprintk=serial,uart1,57600 console=tty0 console=ttyBF1,57600 if

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 available: 54552k/65536k RAM, (7616k init code, 1201k kernel code, 571k

data, 1024k dma, 572k reserved)

Hierarchical RCU implementation.

NR_IRQS:159

Configuring Blackfin Priority Driven Interrupts

Console: colour dummy device 80x25

Linux version 2.6.34-ADI-2010R1-pre-svn8936 (test@uboot30-527ezkit) (gcc

version 4.3.4 (ADI-trunk/svn-3951) ) #7 Mon Jun 28 16:00

register early platform devices

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart1] enabled

early printk enabled on early_BFuart1

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x0012d5e8

  rodata    = 0x0012d5e8-0x00192510

  bss       = 0x00193000-0x001a70d0

  data      = 0x001a70d0-0x001bc000

    stack   = 0x001ba000-0x001bc000

  init      = 0x001bc000-0x0092c000

  available = 0x0092c000-0x03f00000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 1

Reset caused by Software reset

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

Compiled for ADSP-BF527 Rev 0.2

Blackfin Linux support by http://blackfin.uclinux.org/

Processor Speed: 525 MHz core clock and 131 MHz System Clock

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

  External memory: cacheable in instruction cache

Data Cache Enabled for CPU0

  External memory: cacheable (write-back) in data cache

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

Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000

earlyprintk=serial,uart1,57600 console=tty0 console=ttyBF1,57600 if

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 available: 54552k/65536k RAM, (7616k init code, 1201k kernel code, 571k

data, 1024k dma, 572k reserved)

Hierarchical RCU implementation.

NR_IRQS:159

Configuring Blackfin Priority Driven Interrupts

Console: colour dummy device 80x25

console [tty0] enabled

console [ttyBF1] enabled, bootconsole disabled

console [ttyBF1] enabled, bootconsole disabled

Calibrating delay loop... 1046.52 BogoMIPS (lpj=2093056)

Security Framework initialized

Mount-cache hash table entries: 512

Blackfin Scratchpad data SRAM: 4 KB

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

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

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

NET: Registered protocol family 16

Blackfin DMA Controller

ezkit_init(): registering device resources

bio: create slab <bio-0> at 0

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

msgmni has been set to 106

io scheduler noop registered

io scheduler cfq registered (default)

dma_alloc_init: dma_page @ 0x0291a000 - 256 pages at 0x03f00000

Console: switching to colour frame buffer device 40x30

bfin-lq035q1 bfin-lq035q1: 320x240 16-bit RGB FrameBuffer initialized

bfin-otp: initialized

bfin-uart: Blackfin serial driver

bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 31) is a BFIN-UART

brd: module loaded

m25p80 spi0.1: m25p16 (2048 Kbytes)

Creating 2 MTD partitions on "m25p80":

0x000000000000-0x000000040000 : "bootloader(spi)"

0x000000040000-0x000000200000 : "linux kernel(spi)"

bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0,

regs_base@ffc00500, dma channel@7

bfin_mii_bus: probed

bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1,

mdc_clk=2500000Hz(mdc_div=25)@sclk=131MHz)

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

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

ad7879 0-002c: Failed to write AD7879 Touchscreen

ad7879: probe of 0-002c failed with error -1

input: adp5520-keys as

/devices/platform/i2c-bfin-twi.0/i2c-0/0-0032/adp5520-keys.5520/input/input0

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

regs_base@ffc01400

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

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 1970-01-04 07:51:58 UTC (287518)

IP-Config: Complete:

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

     host=bf527-ezkit, domain=, nis-domain=(none),

     bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=

Freeing unused kernel memory: 7616k freed

                           _____________________________________

        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|            - http://blackfin.uclinux.org/

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

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

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

 

Have a lot of fun...

 

 

BusyBox v1.16.2 (2010-06-28 16:02:35 GMT) hush - the humble shell

 

root:/> PHY: 0:01 - Link is Up - 100/Full

 

root:/> nano-X &

[1] 270 nano-X

root:/> nanowm &

[2] 271 nanowm

root:/> nxclock

^C

root:/> nano-X: client closed socket: 6

--

 

--- Michael Hennerich                                        2010-07-02 04:16:56

I can see that the nano-X colors on your image are wrong.

 

However on my image they look right.

Comparing your microwin config against mine shows that you are

Using a bad config.

 

Deselect:

CONFIG_USER_MICROWIN_MWPF_PALETTE=y

 

And select:

 

CONFIG_USER_MICROWIN_MWPF_TRUECOLOR565=y

 

Or:

 

CONFIG_USER_MICROWIN_MWPF_TRUECOLOR888=y

 

-Michael

 

--- Vivi Li                                                  2010-07-05 02:01:22

Yeah, it works now.

Close it.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.527-v2    application/octet-stream    46056    Vivi Li

uImage    application/octet-stream    4550696    Vivi Li

config.linux_v2.2    application/octet-stream    38829    Vivi Li

config.config_v2.2    application/octet-stream    48145    Vivi Li

config.config.microwin    application/octet-stream    51781    Vivi Li

config.linux.microwin    application/octet-stream    43203    Vivi Li

Outcomes