Quantcast
Channel: EngineerZone: Message List
Viewing all articles
Browse latest Browse all 36216

Re: Re: Re: network works on uboot but failure in uclinux

$
0
0

Hi Aaronwu,

     I turned on the debug option and made a test ,it failed in drivers/net/ethernet/smsc/smsc911x.c at line 2475 :

retval = request_irq(dev->irq, smsc911x_irqhandler,

                 irq_flags | IRQF_SHARED, dev->name, dev);

    if (retval) {

        SMSC_WARN(pdata, probe,

              "Unable to claim requested irq: %d", dev->irq);//---------------------------

        goto out_disable_resources;

    }

and the kernel dmesg information is:

root:/> dmesg

Linux version 3.10.10-ADI-2013R1 (avec@Lunar) (gcc version 4.3.5 (ADI-2013R1-RC1) ) #13 Mon Jul 21 15:59:10 CST 2014

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-0x001c6b88

  rodata    = 0x001c6b88-0x002667f0

  bss       = 0x00267000-0x0027cea8

  data      = 0x0027cec0-0x002a4000

    stack   = 0x002a2000-0x002a4000

  init      = 0x002a4000-0x0067c000

  available = 0x0067c000-0x03e00000

  DMA Zone  = 0x03e00000-0x04000000

Hardware Trace active and enabled

Boot Mode: 3

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

Compiled for ADSP-BF548 Rev 0.2

Warning: Compiled for Rev 2, but running on Rev 4

Warning: Unsupported Chip Revision ADSP-BF548 Rev 0.4 detected

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

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

boot memmap: 000000000067c000 - 0000000003e00000 (usable)

On node 0 totalpages: 15872

free_area_init_node: node 0, pgdat 002a01d0, node_mem_map 0067e000

  DMA zone: 124 pages used for memmap

  DMA zone: 0 pages reserved

  DMA zone: 15872 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        : uncacheable in data cache

pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768

pcpu-alloc: [0] 0

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

Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart1,115200 console=ttyBF1,115200

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)

Sorting __ex_table...

Kernel managed physical pages: 15872

Memory available: 56240k/65536k RAM, (3936k init code, 1814k kernel code, 886k data, 2048k dma, 612k reserved)

NR_IRQS:295

Configuring Blackfin Priority Driven Interrupts

Console: colour dummy device 80x25

Calibrating delay loop... 1044.48 BogoMIPS (lpj=2088960)

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

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

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

Blackfin L2 SRAM: 128 KB (128 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

bfin-spi bfin-spi.0: master is unqueued, this is deprecated

bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs@ffc00500, dma channel@4

bfin-spi bfin-spi.1: master is unqueued, this is deprecated

bfin-spi bfin-spi.1: Blackfin on-chip SPI Controller Driver, Version 1.0, regs@ffc02300, dma channel@5

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

NET: Registered protocol family 2

TCP established hash table entries: 512 (order: 0, 4096 bytes)

TCP bind hash table entries: 512 (order: -1, 2048 bytes)

TCP: Hash tables configured (established 512 bind 512)

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

debug-mmrs: setting up Blackfin MMR debugfs

msgmni has been set to 109

Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)

io scheduler noop registered

io scheduler deadline registered

io scheduler cfq registered (default)

bfin-uart: Blackfin serial driver

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

console [ttyBF1] enabled, bootconsole disabled

bfin-uart.2: ttyBF2 at MMIO 0xffc02100 (irq = 40) is a BFIN-UART

bfin-uart.3: ttyBF3 at MMIO 0xffc03100 (irq = 42) is a BFIN-UART

bfin-otp: initialized

physmap platform flash device: 02000000 at 20000000

physmap-flash physmap-flash.0: map_probe failed

m25p80 spi0.76: found s25fl512s, expected m25p16

m25p80 spi0.76: s25fl512s (65536 Kbytes)

Creating 2 MTD partitions on "m25p80":

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

0x000000080000-0x000004000000 : "linux kernel(spi)"

smsc911x: Driver version 2008-10-21

smsc911x smsc911x.0 (unregistered net_device): Driver Parameters:

smsc911x smsc911x.0 (unregistered net_device): LAN base: 0x24000000

smsc911x smsc911x.0 (unregistered net_device): IRQ: 220

smsc911x smsc911x.0 (unregistered net_device): PHY will be autodetected.

smsc911x smsc911x.0 (unregistered net_device): BYTE_TEST: 0x87654321

smsc911x smsc911x.0 (unregistered net_device): LAN911x identified, idrev: 0x118A0000, generation: 3

smsc911x smsc911x.0 (unregistered net_device): smsc911x_drv_probe: Unable to claim requested irq: 220

smsc911x: probe of smsc911x.0 failed with error -38

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

bfin_wdt: initialized: timeout=20 sec (nowayout=0)

dma_alloc_init: dma_page @ 0x026ae000 - 512 pages at 0x03e00000

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

rtc-bfin rtc-bfin: setting system clock to 2014-11-24 23:53:02 UTC (1416873182)

Freeing unused kernel memory: 3936K (2a4000 - 67c000)

 

And from the debug inforamtion, I can see the irq request problem ,but i also check the irq usage information in proc/irq ,it shows no collision . 

 

QQ图片20140727143517.jpg

Thanks!


Viewing all articles
Browse latest Browse all 36216

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>