Menu

#144 build kernel with video encoder adv7511 fails for no media/v4l2-chip-ident.h

master head
closed
None
middle
fixed
BF609-EZKIT
2014-12-26
2014-01-29
panmingquan
No

build kernel with video encoder adv7511 fails for no media/v4l2-chip-ident.h.

LD drivers/media/i2c/soc_camera/built-in.o
CC drivers/media/i2c/adv7511.o
CC lib/dynamic_queue_limits.o
CC lib/net_utils.o
/home/test/workspace/src/kernel/label/BF609-EZKIT-FLAT/linux/linux-kernel/drivers/media/i2c/adv7511.c:31:35: error: media/v4l2-chip-ident.h: No such file or directory
/home/test/workspace/src/kernel/label/BF609-EZKIT-FLAT/linux/linux-kernel/drivers/media/i2c/adv7511.c:492: warning: ‘struct v4l2_dbg_chip_ident’ declared inside parameter list
/home/test/workspace/src/kernel/label/BF609-EZKIT-FLAT/linux/linux-kernel/drivers/media/i2c/adv7511.c:492: warning: its scope is only this definition or declaration, which is probably not what you want
/home/test/workspace/src/kernel/label/BF609-EZKIT-FLAT/linux/linux-kernel/drivers/media/i2c/adv7511.c: In function ‘adv7511_g_chip_ident’:
/home/test/workspace/src/kernel/label/BF609-EZKIT-FLAT/linux/linux-kernel/drivers/media/i2c/adv7511.c:496: error: implicit declaration of function ‘v4l2_chip_ident_i2c_client’
/home/test/workspace/src/kernel/label/BF609-EZKIT-FLAT/linux/linux-kernel/drivers/media/i2c/adv7511.c:496: error: ‘V4L2_IDENT_ADV7511’ undeclared (first use in this function)
/home/test/workspace/src/kernel/label/BF609-EZKIT-FLAT/linux/linux-kernel/drivers/media/i2c/adv7511.c:496: error: (Each undeclared identifier is reported only once
/home/test/workspace/src/kernel/label/BF609-EZKIT-FLAT/linux/linux-kernel/drivers/media/i2c/adv7511.c:496: error: for each function it appears in.)
/home/test/workspace/src/kernel/label/BF609-EZKIT-FLAT/linux/linux-kernel/drivers/media/i2c/adv7511.c: At top level:
/home/test/workspace/src/kernel/label/BF609-EZKIT-FLAT/linux/linux-kernel/drivers/media/i2c/adv7511.c:708: error: unknown field ‘g_chip_ident’ specified in initializer
/home/test/workspace/src/kernel/label/BF609-EZKIT-FLAT/linux/linux-kernel/drivers/media/i2c/adv7511.c:708: warning: initialization from incompatible pointer type
/home/test/workspace/src/kernel/label/BF609-EZKIT-FLAT/linux/linux-kernel/drivers/media/i2c/adv7511.c: In function ‘adv7511_s_dv_timings’:
/home/test/workspace/src/kernel/label/BF609-EZKIT-FLAT/linux/linux-kernel/drivers/media/i2c/adv7511.c:863: error: implicit declaration of function ‘v4l_match_dv_timings’
/home/test/workspace/src/kernel/label/BF609-EZKIT-FLAT/linux/linux-kernel/drivers/media/i2c/adv7511.c: At top level:
/home/test/workspace/src/kernel/label/BF609-EZKIT-FLAT/linux/linux-kernel/drivers/media/i2c/adv7511.c:1496: error: ‘V4L2_IDENT_ADV7511’ undeclared here (not in a function)
make[5]: *** [drivers/media/i2c/adv7511.o] Error 1
make[4]: *** [drivers/media/i2c] Error 2
make[3]: *** [drivers/media] Error 2
make[2]: *** [drivers] Error 2
make[2]: *** Waiting for unfinished jobs....
CC lib/argv_split.o
CC lib/bug.o
CC net/core/utils.o
CC lib/cmdline.o
CC lib/ctype.o
CC lib/dec_and_lock.o
CC lib/decompress.o
CC lib/decompress_inflate.o
CC lib/dump_stack.o
CC lib/earlycpio.o

Discussion

  • panmingquan

    panmingquan - 2014-01-29
    • Evaluation Board: ALL --> BF609-EZKIT
     
  • Sonic Zhang

    Sonic Zhang - 2014-02-18
    • assigned_to: Scott Jiang
    • Resolution: none --> assigned
     
  • Scott Jiang

    Scott Jiang - 2014-02-21

    Remove chip ident since the core now handles this.

     
  • Scott Jiang

    Scott Jiang - 2014-02-21
    • Resolution: assigned --> fixed
     
  • panmingquan

    panmingquan - 2014-03-03
    • status: open --> closed
     
  • panmingquan

    panmingquan - 2014-03-03

    Yes, it passes now.

    Booting kernel from Legacy Image at 02000000 ...

    Image Name: bf609-0.0-3.13.0-ADI-2014R1-pre
    Image Type: Blackfin Linux Kernel Image (gzip compressed)
    Data Size: 3973768 Bytes = 3.8 MiB
    Load Address: 00001000
    Entry Point: 002e595c
    Verifying Checksum ... OK
    Uncompressing Kernel Image ... OK
    Starting Kernel at = 002e595c
    Linux version 3.13.0-ADI-2014R1-pre (test@linux88-bf609-flat) (gcc version 4.3.5 (ADI-master/git-a2bfd7b) ) #4 Wed Feb 26 12:32:35 CST 2014
    register early platform devices
    bootconsole [early_shadow0] enabled
    ERROR: Not running on ADSP-BF609: unknown CPUID 0x0000 Rev 0.0
    bootconsole [early_BFuart0] enabled
    early printk enabled on early_BFuart0
    Board Memory: 128MB
    Kernel Managed Memory: 128MB
    Memory map:
    fixedcode = 0x00000400-0x00000490
    text = 0x00001000-0x001ef908
    rodata = 0x001ef908-0x0029f460
    bss = 0x002a0000-0x002b6f38
    data = 0x002b6f40-0x002e2000
    stack = 0x002e0000-0x002e2000
    init = 0x002e2000-0x0053b000
    available = 0x0053b000-0x06000000
    DMA Zone = 0x06000000-0x08000000
    Hardware Trace active and enabled
    Blackfin support (C) 2004-2010 Analog Devices, Inc.
    Compiled for ADSP-BF609 Rev 0.0
    Blackfin Linux support by http://blackfin.uclinux.org/
    Processor Speed: 500 MHz core clock, 250 MHz SCLk, 125 MHz SCLK0, 125 MHz SCLK1 and 250 MHz DCLK
    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-back) in data cache
    L2 SRAM : uncacheable in data cache
    Built 1 zonelists in Zone order, mobility grouping off. Total pages: 24384
    Kernel command line: root=/dev/mtdblock0 rw ip=10.100.4.50 earlyprintk=serial,uart0,57600 console=ttyBF0,57600 ip=10.100.4.50:10.100.4.174:192.168.0.1:255.255.255.0:"bf609-ezkit":eth0:off
    PID hash table entries: 512 (order: -1, 2048 bytes)
    Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
    Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
    Memory: 92036K/98304K available (1978K kernel code, 172K rwdata, 702K rodata, 2404K init, 91K bss, 6268K reserved, 32768K DMA)
    NR_IRQS:291
    Configuring Blackfin Priority Driven Interrupts
    Console: colour dummy device 80x25
    Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
    pid_max: default: 32768 minimum: 301
    Mount-cache hash table entries: 512
    devtmpfs: initialized
    Blackfin Scratchpad data SRAM: 4 KB
    Blackfin L1 Data A SRAM: 16 KB (9 KB free)
    Blackfin L1 Data B SRAM: 16 KB (16 KB free)
    Blackfin L1 Instruction SRAM: 64 KB (48 KB free)
    Blackfin L2 SRAM: 256 KB (256 KB free)
    pinctrl core: initialized pinctrl subsystem
    NET: Registered protocol family 16
    Blackfin DMA Controller
    ezkit_init(): registering device resources
    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
    i2c-bfin-twi i2c-bfin-twi.0: Blackfin on-chip I2C TWI Contoller, regs_base@ffc01e00
    i2c-bfin-twi i2c-bfin-twi.1: Blackfin on-chip I2C TWI Contoller, regs_base@ffc01f00
    media: Linux media interface: v0.10
    Linux video capture interface: v2.00
    pps_core: LinuxPPS API ver. 1 registered
    pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it
    PTP clock support registered
    NET: Registered protocol family 23
    Switched to clocksource bfin_cs_cycles
    NET: Registered protocol family 2
    TCP established hash table entries: 1024 (order: 0, 4096 bytes)
    TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
    TCP: Hash tables configured (established 1024 bind 1024)
    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 179
    io scheduler noop registered (default)
    bfin-uart: Blackfin serial driver
    bfin-uart.0: ttyBF0 at MMIO 0xffc02000 (irq = 88, base_baud = 7812500) is a BFIN-UART
    console [ttyBF0] enabled
    console [ttyBF0] enabled
    bootconsole [early_BFuart0] disabled
    bootconsole [early_BFuart0] disabled
    bootconsole [early_shadow0] disabled
    CAN device driver interface
    bfin_can bfin_can.0: bfin_can device registered(&reg_base=ffc00a00, rx_irq=47, tx_irq=48, err_irq=49, sclk=125000000)
    stmmac - user ID: 0x10, Synopsys ID: 0x36
    Ring mode enabled
    DMA HW capability register supported
    Enhanced/Alternate descriptors
    Enabled extended descriptors
    RX Checksum Offload Engine supported (type 2)
    Wake-Up On Lan supported
    Enable RX Mitigation via HW Watchdog Timer
    libphy: stmmac: probed
    eth0: PHY ID 20005c90 at 1 IRQ 0 (stmmac-0:01) active
    usbcore: registered new interface driver usb-storage
    input: bfin-rotary as /devices/platform/bfin-rotary/input/input0
    i2c /dev entries driver
    ppi probe success
    adv7511 0-0039: adv7511 found @ 0x72 (i2c-bfin-twi)
    bfin_display bfin_display.0: video device registered as: video0
    bfin_wdt: initialized: timeout=20 sec (nowayout=0)
    usbcore: registered new interface driver usbhid
    usbhid: USB HID core driver
    TCP: cubic registered
    NET: Registered protocol family 17
    can: controller area network core (rev 20120528 abi 9)
    NET: Registered protocol family 29
    can: raw protocol (rev 20120528)
    can: broadcast manager protocol (rev 20120528 t)
    can: netlink gateway (rev 20130117) max_hops=1
    eth0: device MAC address 02:80:ad:20:31:e8
    dma_alloc_init: dma_page @ 0x0462d000 - 8192 pages at 0x06000000
    IP-Config: Gateway not on directly connected network
    Freeing unused kernel memory: 2404K (002e2000 - 0053b000)</bio-0>

    BusyBox v1.21.1 (2014-02-25 23:28:40 CST) hush - the humble shell

    root:/>successful boot attempt ifconfiglibphy: stmmac-0:01 - Link is Up - 100/Full
    eth0 10.100.4.50
    root:/> Ethernet may has been activated already!
    version
    kernel: Linux release 3.13.0-ADI-2014R1-pre, build #4 Wed Feb 26 12:32:35 CST 2014
    toolchain: /home/test/workspace/src/kernel/label/BF609-EZKIT-FLAT/output/host/usr/bin/bfin-uclinux-gcc release gcc version 4.3.5 (ADI-master/git-a2bfd7b)
    user-dist: release git-ce7c544, build #1 Tue Feb 25 23:32:09 CST 2014
    root:/>
    Linux version: 3.13.0-ADI-2014R1-pre
    GCC version: 4.3.5 (ADI-master/git-a2bfd7b)
    user-dist version: git-ce7c544

    root:/>
    ** STEP 3: Start testing

    PASS: rcp test file to target
    PASS: rcp test file to target
    v4l2_video_display -h
    v4l2_video_display: option requires an argument -- h
    Usage: v4l2_video_display [-DOFsdwh]
    -D --device device to use (default /dev/video0)
    -O --output select output (default 0)
    -F --file file name (default /1.yuv)
    -s --std video standard pal/ntsc (default pal)
    -d --dv dv timings 720p60/720p50 (default 720p60)
    -w --width image width (default 640)
    -h --height image height (default 480)

    root:/> v4l2_video_display -F /adv7842.yuv
    enum outputs
    output[0]: HDMI
    set output to 0: support dv_timings
    dv_timings: progressive,width=1280,height=720
    hfrontporch=110,hsync=40,hbackporch=220,vfrontporch=5,vsync=5,vbackporch=20
    enum formats
    format[0]: UYVY 4:2:2 16bits
    negotiated formats: 1280x720
    field order: progressive
    size = 1843200
    bytesperline = 2560
    pixelformat: UYVY
    request 3 buffers
    open image file '/adv7842.yuv' success
    stream on success

    Case 1 ...PASS

    Case 1 ...PASS
    ^C
    root:/>
    Case 2 ...PASS

    Case 2 ...PASS

    VIDEO ENCODER TEST (adv7511) ............[PASS]
    Test Period is: 63 seconds.
    Ending ./video_encoder_test.exp

    close.

     

Log in to post a comment.

MongoDB Logo MongoDB