2011-03-29 10:35:37     something wrongs with adv7393

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

2011-03-29 10:35:37     something wrongs with adv7393

jerry chen (CHINA)

Message: 99430   

 

hi all, i am a freshman of uclinix and blackfin DSP. These days when i tested the uclinux on my blackfin boards i found some problems that i can't slove, please help me:

 

in my owner bfin561 board:

 

1. i compiled the adv7393 as a module and added into my uclinux kernel, and i can't find the node in /dev;after i used the command "modprobe";

 

2.  i can't get any output message from my termial,evne i input the wrong parameters like "mode=10,mem=10";

 

in the bfin548-ezkit board:

 

i compiled the adv7393 into the kernel and i can found the /dev/fb0, but as a module ,NO;

 

what's problem?

QuoteReplyEditDelete

 

 

2011-03-29 14:09:22     Re: something wrongs with adv7393

Mike Frysinger (UNITED STATES)

Message: 99435   

 

neither the bf561 nor the bf548 have adv7393 resources in the boards file.  see how it is declared in linux-2.6.x/arch/blackfin/mach-bf537/boards/stamp.c as an example.

 

please post the full boot output of the kernel.  use `dmesg` to view the kernel log after it has booted.

QuoteReplyEditDelete

 

 

2011-03-30 07:42:37     Re: something wrongs with adv7393

jerry chen (CHINA)

Message: 99465   

 

Hi Mike!

 

    Thanks for your reply.The full boot output of my kernel is just like :

 

Linux version 2.6.34.7-ADI-2010R1 (root@localhost.localdomain) (gcc version 4.3.

5 (ADI-2010R1-RC4) ) #54 Wed Mar 30 02:24:03 EDT 2011

register early platform devices

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart0] enabled

early printk enabled on early_BFuart0

Limiting kernel memory to 56MB due to anomaly 05000263

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x00103580

  rodata    = 0x00103580-0x00156c40

  bss       = 0x00157000-0x0016755c

  data      = 0x0016755c-0x00178000

    stack   = 0x00176000-0x00178000

  init      = 0x00178000-0x00792000

  available = 0x00792000-0x03800000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 2

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

Compiled for ADSP-BF561 Rev 0.3

Warning: Compiled for Rev 3, but running on Rev 5

Blackfin Linux support by   blackfin.uclinux.org/

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

boot memmap: 0000000000792000 - 0000000003800000 (usable)

On node 0 totalpages: 14336

free_area_init_node: node 0, pgdat 00174334, node_mem_map 00794000

  DMA zone: 112 pages used for memmap

  DMA zone: 0 pages reserved

  DMA zone: 14224 pages, LIFO batch:0

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

  External memory: cacheable in instruction cache

  L2 SRAM        : uncacheable in instruction cache

Data Cache Enabled for CPU0

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

  L2 SRAM        : cacheable (write-through) in data cache

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

Kernel command line: root=/dev/mtdblock0 rw clkin_hz=30000000 earlyprintk=serial

,uart0,57600 console=ttyBF0,57600

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)

Kernel managed physical pages: 14336

Memory available: 49024k/65536k RAM, (6248k init code, 1033k kernel code, 467k d

ata, 1024k dma, 7740k reserved)

Hierarchical RCU implementation.

NR_IRQS:153

Configuring Blackfin Priority Driven Interrupts

console [ttyBF0] enabled, bootconsole disabled

Calibrating delay loop... 1191.93 BogoMIPS (lpj=2383872)

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: 16 KB (3 KB free)

Blackfin L2 SRAM: 128 KB (128 KB free)

NET: Registered protocol family 16

Blackfin DMA Controller

ezkit_init(): registering device resources

bio: create slab <bio-0> at 0

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

ase@ffc00500, dma channel@16

Switching to clocksource bfin_cs_cycles

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

Setting up Blackfin MMR debugfs

msgmni has been set to 95

io scheduler noop registered (default)

bfin-dma: initialized

bfin-uart: Blackfin serial driver

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

brd: module loaded

i2c /dev entries driver

i2c-gpio i2c-gpio.0: using pins 1 (SDA) and 2 (SCL)

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

TCP cubic registered

NET: Registered protocol family 17

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

Freeing unused kernel memory: 6248k freed

 

And this is my test of the module:

root:/> modprobe bfin_adv7393fb

root:/>

root:/> lsmod

Module                  Size  Used by

bfin_adv7393fb          7553  0

cfbimgblt               1472  1 bfin_adv7393fb

cfbfillrect             2639  1 bfin_adv7393fb

fb                     23672  1 bfin_adv7393fb

cfbcopyarea             3027  1 bfin_adv7393fb

root:/> ls /dev

bfin-dma            network_latency     ram12               ram9

console             network_throughput  ram13               random

coreb               null                ram14               stderr

cpu_dma_latency     ppi0                ram15               stdin

fd                  ppi1                ram2                stdout

full                ptmx                ram3                tty

i2c-0               pts                 ram4                ttyBF0

kmsg                ram0                ram5                urandom

log                 ram1                ram6                watchdog

mdev.seq            ram10               ram7                zero

mem                 ram11               ram8

root:/>

 

I couldn't find the /dev/fb0 node! I don't know why.

QuoteReplyEditDelete

 

 

2011-04-02 04:19:53     Re: something wrongs with adv7393

Aaron Wu (CHINA)

Message: 99531   

 

From your log we did not see any output after you run "modprobe bfin_adv7393fb", are you sure this is the first time you modprobe this modue after power on and there is no any error output? To double confirm this please reset your target board, run "modprobe bfin_adv7393fb", some error output is expected in your case, following the error message to dig more. A wiki page for adv7393 is here:   docs.blackfin.uclinux.org/doku.php?id=linux-kernel:drivers:adv7393

QuoteReplyEditDelete

 

 

2011-04-02 12:43:29     Re: something wrongs with adv7393

Mike Frysinger (UNITED STATES)

Message: 99536   

 

you still need to do what i already told you to do -- adjust the board platform resources

QuoteReplyEditDelete

 

 

2011-04-04 07:05:37     Re: something wrongs with adv7393

jerry chen (CHINA)

Message: 99563   

 

I've already found the reason!  I forgot to changed the slave address of 7393 after i added the adv7393 messages in mach-bf561/ezkit.c. Now  i can probe the module and it seems working. Thank you for your advices!

QuoteReplyEditDelete

 

 

2011-04-04 07:14:58     Re: something wrongs with adv7393

jerry chen (CHINA)

Message: 99564   

 

From your log we did not see any output after you run "modprobe bfin_adv7393fb", are you sure this is the first time you modprobe this modue after power on and there is no any error output? To double confirm this please reset your target board, run "modprobe bfin_adv7393fb", some error output is expected in your case, following the error message to dig more. A wiki page for adv7393 is here:   docs.blackfin.uclinux.org/doku.php?id=linux-kernel:drivers:adv7393

 

---

 

Aaron, 你是中国人吧。之前那个问题我已经解决了,但出现新的问题啦。我尝试了半天不能用英语表达清楚,所以干脆用中文了!不好意思啦

我用一个DVR把我的板子和电脑连接,在电脑上看图像。挂载模块后,运行video_test测试程序,但屏幕上只显示一个单色的画面,无论我怎么改动videoz_test里面的数据,都没变化!!我猜是不是mmap函数没有把内存空间映射到内核空间啊?怎么感觉我的数据都没送到7393那里啊?到底是怎么回事?

Attachments

    Outcomes