Menu

#259 kernel built with video encoder adv7343 now boot up fails

master head
closed
None
low
fixed
BF609-EZKIT
2014-12-14
2014-09-04
panmingquan
No

kernel built with video encoder adv7343 now boot up fails. It starts from Aug 21th when CONFIG_GPIO_MCP23S08=y.

Booting kernel from Legacy Image at 01000000 ...

Image Name: bf609-0.0-3.16.0-ADI-2014R1-pre-
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 4850601 Bytes = 4.6 MiB
Load Address: 00001000
Entry Point: 002ffa7c
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 002ffa7c
Linux version 3.16.0-ADI-2014R1-pre-00405-g5a8f310-dirty (test@linux88-bf609-flat) (gcc version 4.3.5 (ADI-master4
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-0x00203108
rodata = 0x00203108-0x002b6574
bss = 0x002b7000-0x002d0018
data = 0x002d0020-0x002fc000
stack = 0x002fa000-0x002fc000
init = 0x002fc000-0x0061e000
available = 0x0061e000-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 ipf
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: 91128K/98304K available (2056K kernel code, 175K rwdata, 717K rodata, 3208K init, 100K bss, 7176K reserve)
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: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
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
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 177
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=125000)
stmmaceth stmmaceth.0: no reset control found
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 POLL (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
adv7343 0-002b: chip found @ 0x56 (i2c-bfin-twi)
i2c i2c-0: Failed to register i2c client dummy at 0x25 (-16)
NULL pointer access
Kernel OOPS in progress
Deferred Exception context
CURRENT PROCESS:
COMM=swapper PID=1 CPU=0
invalid mm
return address: [0x00150a9c]; contents of:
0x00150a70: fd0f e479 ffee 0c80 e801 0000 0601 0538
0x00150a80: 0010 0000 0578 e800 0010 4349 3210 b131
0x00150a90: 6011 b171 304f 66e1 e6ba ffdc [a457] b1b1
0x00150aa0: cc00 c61b a190 0000 b0f3 ce82 c207 9512

CPU: 0 PID: 1 Comm: swapper Not tainted 3.16.0-ADI-2014R1-pre-00405-g5a8f310-dirty #4
task: 04025a20 ti: 04026000 task.ti: 04026000
Compiled for cpu family 0x27fe (Rev 0), but running on:0x0000 (Rev 0)
ADSP-BF609-0.0 500(MHz CCLK) 125(MHz SCLK) (mpu off)
Linux version 3.16.0-ADI-2014R1-pre-00405-g5a8f310-dirty (test@linux88-bf609-flat) (gcc version 4.3.5 (ADI-master4

SEQUENCER STATUS: Not tainted
SEQSTAT: 00000027 IPEND: 8008 IMASK: ffff SYSCFG: 2806
EXCAUSE : 0x27
physical IVG3 asserted : <0xffa00744> { _trap + 0x0 }
physical IVG15 asserted : <0xffa00d68> { _evt_system_call + 0x0 }
logical irq 6 mapped : <0xffa003bc> { _bfin_coretmr_interrupt + 0x0 }
logical irq 7 mapped : <0x00008898> { _bfin_fault_routine + 0x0 }
logical irq 11 mapped : <0x00007794> { _l2_ecc_err + 0x0 }
logical irq 13 mapped : <0x00008898> { _bfin_fault_routine + 0x0 }
logical irq 34 mapped : <0x0014edd8> { _bfin_rotary_isr + 0x0 }
logical irq 39 mapped : <0x00151848> { _bfin_twi_interrupt_entry + 0x0 }
logical irq 40 mapped : <0x00151848> { _bfin_twi_interrupt_entry + 0x0 }
logical irq 62 mapped : <0x0011f264> { _adi_spi_tx_dma_isr + 0x0 }
logical irq 63 mapped : <0x0011f594> { _adi_spi_rx_dma_isr + 0x0 }
logical irq 64 mapped : <0x0011f638> { _spi_irq_err + 0x0 }
logical irq 65 mapped : <0x0011f264> { _adi_spi_tx_dma_isr + 0x0 }
logical irq 66 mapped : <0x0011f594> { _adi_spi_rx_dma_isr + 0x0 }
logical irq 67 mapped : <0x0011f638> { _spi_irq_err + 0x0 }
RETE: <0x00000000> / Maybe null pointer? /
RETN: <0x04027a38> / kernel dynamic memory (maybe user-space) /
RETX: <0x00000480> / Maybe fixed code section /
RETS: <0x00152904> { _adv7343_probe + 0x64 }
PC : <0x00150a9c> { _i2c_smbus_write_byte_data + 0x18 }
DCPLB_FAULT_ADDR: <0x00000002> / Maybe null pointer? /
ICPLB_FAULT_ADDR: <0x00150a9c> { _i2c_smbus_write_byte_data + 0x18 }
PROCESSOR STATE:
R0 : 00000000 R1 : 04027a54 R2 : 000000af R3 : 00000000
R4 : 00000001 R5 : 002c75a8 R6 : 00000000 R7 : 00000000
P0 : 002d6ff0 P1 : 04007414 P2 : 00000000 P3 : 001528a0
P4 : 046dec04 P5 : 046dec00 FP : 04027a78 SP : 0402795c
LB0: ffa016d2 LT0: ffa016d2 LC0: 00000000
LB1: 000cfa52 LT1: 000cfa46 LC1: 00000000
B0 : 0000256c L0 : 00000000 M0 : ffffffff I0 : 002d6ff0
B1 : 0000000e L1 : 00000000 M1 : 00000001 I1 : 002bf944
B2 : 00000020 L2 : 00000000 M2 : 00000000 I2 : 002db874
B3 : 002183f0 L3 : 00000000 M3 : 00000000 I3 : 00000063
A0.w: 003abc63 A0.x: 00000000 A1.w: 00000063 A1.x: 00000000
USP : 00000000 ASTAT: 02003004

Hardware Trace:
0 Target : <0x00004028> { _trap_c + 0x0 }
Source : <0xffa006d8> { _exception_to_level5 + 0xa0 } JUMP.L
1 Target : <0xffa00638> { _exception_to_level5 + 0x0 }
Source : <0xffa004f2> { _bfin_return_from_exception + 0x6 } RTX
2 Target : <0xffa004ec> { _bfin_return_from_exception + 0x0 }
Source : <0xffa00590> { _ex_trap_c + 0x70 } JUMP.S
3 Target : <0xffa00520> { _ex_trap_c + 0x0 }
Source : <0xffa0076e> { _trap + 0x2a } JUMP (P4)
4 Target : <0xffa00744> { _trap + 0x0 }
FAULT : <0x00150a9c> { _i2c_smbus_write_byte_data + 0x18 } P7 = [P2 + 1]
Source : <0x00150a98> { _i2c_smbus_write_byte_data + 0x14 } B[P7 + 0x70]= R2
5 Target : <0x00150a84> { _i2c_smbus_write_byte_data + 0x0 }
Source : <0x00152900> { _adv7343_probe + 0x60 } JUMP.L
6 Target : <0x001528f8> { _adv7343_probe + 0x58 }
Source : <0x0015036c> { _i2c_new_dummy + 0x38 } RTS
7 Target : <0x00150368> { _i2c_new_dummy + 0x34 }
Source : <0x0014fd84> { _i2c_new_device + 0xfc } RTS
8 Target : <0x0014fd7a> { _i2c_new_device + 0xf2 }
Source : <0x0005650a> { _kfree + 0xf6 } RTS
9 Target : <0x000564f8> { _kfree + 0xe4 }
Source : <0x000564ee> { _kfree + 0xda } IF !CC JUMP pcrel (BP)
10 Target : <0x000564e2> { _kfree + 0xce }
Source : <0x000564b0> { _kfree + 0x9c } IF CC JUMP pcrel
11 Target : <0x000564a4> { _kfree + 0x90 }
Source : <0x00056450> { _kfree + 0x3c } IF CC JUMP pcrel (BP)
12 Target : <0x00056414> { _kfree + 0x0 }
Source : <0x0014fd76> { _i2c_new_device + 0xee } CALL pcrel
13 Target : <0x0014fd74> { _i2c_new_device + 0xec }
Source : <0x000fd08a> { _dev_err + 0x2e } RTS
14 Target : <0x000fd086> { _dev_err + 0x2a }
Source : <0x000fcf9c> { devprintk + 0x4c } RTS
15 Target : <0x000fcf98> {
_dev_printk + 0x48 }
Source : <0x000fcf4e> { _dev_printk_emit + 0x12 } RTS
Kernel Stack
Stack info:
SP: [0x04027954] <0x04027954> / kernel dynamic memory (maybe user-space) /
Memory from 0x04027950 to 04028000
04027950: 002db240 [04026000] 040249e0 00000480 00008008 00000027 00000000 04027a38
04027970: 00000480 00150a9c 00152904 00000000 02003004 000cfa52 ffa016d2 000cfa46
04027990: ffa016d2 00000000 00000000 00000063 00000000 003abc63 00000000 002183f0
040279b0: 00000020 0000000e 0000256c 00000000 00000000 00000000 00000000 00000000
040279d0: 00000000 00000001 ffffffff 00000063 002db874 002bf944 002d6ff0 00000000
040279f0: 04027a78 046dec00 046dec04 001528a0 00000000 04007414 002d6ff0 00000000
04027a10: 00000000 002c75a8 00000001 00000000 000000af 04027a54 00000000 00000000
04027a30: 002d6ff0 00002806 046dec00 00000000 002c75a8 00202daa 00000014 00000002
04027a50: 6d6d7564 000000af 00000000 00000000 00000000 00250000 00000000 00000000
04027a70: 00000000 00000000 04027aa0 00152904 00000000 048508f0 00281380 00000000
04027a90: 0000002b 00000056 040cd334 04027ab8 04027ad0 <0014f4ce> 0021da18 046dec04
04027ab0: 001528a0 046dec00 00000000 002c75a8 00000001 000ffec4 04027b00 00029b50
04027ad0: 04027af8 <000fffce> 046dec1c 002f0ce0 002c75ac 00000000 0027154c 002e7a40
04027af0: 0027154c 00056df6 04027b24 001001b0 002f0ce0 002f0a9c 046dec1c 046dec1c
04027b10: 04027b40 046dec1c 00000000 04027b6c 04027b48 04027b48 <000fed90> 00100184
04027b30: 00000000 00000129 002e7a40 0027154c 04065dfc 0436da34 04027b70 00100252
04027b50: 046dec1c 00000000 046dec50 040cd250 00000000 0028100c 04059a00 00100184
04027b70: 04027b90 000fefac 046dec1c 00000000 046dec24 046dec24 040cd250 00000001
04027b90: 04027bc4 000fe50e 046dec1c 00000000 002f0b00 0436faa0 04027bc0 00106c8e
04027bb0: 00000000 002d948c 040cd22c 00000021 04027bdc 04027bf4 000fe73e 046dec00
04027bd0: 002d948c 040cd22c 046dec1c 046dec04 040cd250 00000001 046dec04 0014fcfc
04027bf0: 046dec00 04027c18 0014fd54 046dec1c 04027c34 000d1566 00000000 0000002b
04027c10: 046dc80c 0000002b 04027c48 0015fc2c 002d948c 002d9478 046dc80c 00000000
04027c30: 040cd22c 046dc80c 00000001 04027c54 002d948c 0014f5d0 04027d08 00165ede
04027c50: 046dcc84 00000000 00000000 046dcc78 00092e16 04027c78 00092e28 00000000
04027c70: 04850938 046dc86c 040cd22c 00092ef4 00000000 04850938 040718a8 00000000
04027c90: 002d8c6c 040718a8 002d8c6c 04027cb4 000930aa 0406c94c 0436fbb4 ffa02eec
04027cb0: 04027cd4 00094a5e 04850938 048509c8 048509c8 002e7d10 04027cf8 00095384
04027cd0: 002d8c64 002f1714 002c75ac 048509c8 04850938 040718a8 0027a964 00000000
04027cf0: 0436fbc0 04027d20 04027d20 00095416 00000000 002d8c6c 04027d38 <001013f0>
04027d10: 002f1700 002d8c64 002c75ac 00000000 00000000 002c75a8 002fc310 0436d9a0
04027d30: 0436d9a0 04027d58 04027d58 <000fffce> 002d8c64 002f1714 00000000 04027d7c
04027d50: 000cc274 0436d9a0 04027d84 00100180 002d8c64 002f1714 002eb958 002d8c98
04027d70: 04027da4 002f1714 002fc310 04027da8 000cc5a8 04027dac <000fee1c> 00100118
04027d90: 002f1714 00000000 00000000 00150dcc 04027dec 040225ac 0406ca30 04027dd4
04027db0: 000ffe66 0436d9a0 0436fc80 002b7018 00000000 04027df0 04027dec 04027df0
04027dd0: 00100118 04027df0 000ff41c 04027dfc 001005a4 002f1714 00267fbc 00260f24
04027df0: 04027e14 00100686 002f1714 002d6134 0030948c 0436fc80 04027e54 00262584
04027e10: 0436fc80 04027e30 00101376 002d6134 0436fc80 000d3376 04027ea0 0000105a
04027e30: 04027e44 0030949e 0030948c 0436fc80 002b7018 04027ea0 <0000106a> 00000007
04027e50: 00000000 0030948c 00000007 00000007 04027e00 002fc322 04027e98 0002ba90
04027e70: 003154d8 04027e9c <0001d832> 00000050 006e053a 002db20c 002042fc 00000000
04027e90: 00000000 00000006 00000006 04027edc 04027edc 002fc28e 00315754 0030f5a8
04027eb0: 0030f588 00000007 002b7018 00000050 00280664 00000000 002b606c 00000050
04027ed0: 00000006 00000006 002fc310 04027f0c 00201cfa 002042fc 04025a20 040256e0
04027ef0: 040258c4 002db160 002db20c 002042fc ffa00006 002042fc 040258c4 0402feb0
04027f10:<ffa00014> 002042fc 00000008 00201cf0 00000000 00000000 00008000 00000000
04027f30: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
04027f50: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
04027f70: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
04027f90: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
04027fb0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
04027fd0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
04027ff0: 00000000 00000000 ffffffff 00002806
Return addresses in stack:
address : <0x0014f4ce> { _i2c_device_probe + 0x86 }
address : <0x000fffce> { _driver_probe_device + 0x7e }
address : <0x000fed90> { _bus_for_each_drv + 0x4c }
address : <0x001013f0> { _platform_drv_probe + 0x18 }
address : <0x000fffce> { _driver_probe_device + 0x7e }
address : <0x000fee1c> { _bus_for_each_dev + 0x5c }
address : <0x0000106a> { _do_one_initcall + 0x6a }
address : <0x0001d832> { _parse_args + 0x12e }
address : <0xffa00014> { _ret_from_fork + 0x14 }
Modules linked in:
Kernel panic - not syncing: Kernel exception
---[ end Kernel panic - not syncing: Kernel exception</ffa00014>

test@linux88-bf609-flat:~/workspace/logs$ diff -urN 2014-08-19_22-19-40/config.kernel.video_encoder_adv7343 2014-08-21_00-38-16/config.kernel.video_encoder_adv7343
--- 2014-08-19_22-19-40/config.kernel.video_encoder_adv7343 2014-08-20 11:18:45.950556280 +0800
+++ 2014-08-21_00-38-16/config.kernel.video_encoder_adv7343 2014-08-21 13:42:06.778082216 +0800
@@ -1140,6 +1140,7 @@
# SPI GPIO expanders:
#
# CONFIG_GPIO_MAX7301 is not set
+CONFIG_GPIO_MCP23S08=y
# CONFIG_GPIO_MC33880 is not set

Discussion

  • Sonic Zhang

    Sonic Zhang - 2014-09-05
    • assigned_to: Scott Jiang
     
  • Scott Jiang

    Scott Jiang - 2014-10-16
    • Resolution: none --> fixed
     
  • panmingquan

    panmingquan - 2014-10-17
    • status: open --> closed
     
  • panmingquan

    panmingquan - 2014-10-17

    uImage built with adv7343 boots up now.
    close.

     

Log in to post a comment.