加入DM9000A的驱动

5、修改:
(1)arch/blackfin/mach-bf533/boards/stamp.c, line 411

//#if defined(CONFIG_DM9000)
        &DM9000_02_device,
        &DM9000_01_device,
//#endif
line 56://#if defined(CONFIG_DM9000)
line 124://#endif
(2)drivers/net/Makefile, line 197
obj-y+= dm9000.o
原来的为:obj-$(CONFIG_DM9000) += dm9000.o
(3)另一种方法:也可以修改/drivers/net/Kconfig,将CONFIG_DM9000的选项加进去。
修改之后可以正常工作了。
Linux version 2.6.16.27-ADI-2006R2 (franky@franky.sict) (gcc 版本 4.1.1 (ADI 06R2)) #15 Thu Oct 23 12:46:42 CST 2008
Blackfin support (C) 2004-2006 Analog Devices, Inc.
Compiled for ADSP-BF533 Rev. 0.5
Blackfin uClinux support by http://blackfin.uclinux.org/
Processor Speed: 564 MHz core clock and 80 Mhz System Clock
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
  text      = 0x00001000-0x001b6a30
  init      = 0x001b7000-0x001c8ed0
  data      = 0x001c951c-0x0020a008
  stack     = 0x001ca000-0x001cc000
  bss       = 0x0020a010-0x00221480
  available = 0x00221480-0x03f00000
  rootfs    = 0x03f00000-0x03f00000
  DMA Zone  = 0x03f00000-0x04000000
Instruction Cache Enabled
Data Cache Enabled (write-back)
Hardware Trace Enabled
Built 1 zonelists
Kernel command line: root=/dev/mtdblock2 rw rootfstype=jffs2
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 4096 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Physical pages: 3f00
Memory available: 61696k/63706k RAM, (71k init code, 1750k kernel code, 93k data, 1024k dma)
Blackfin Scratchpad data SRAM: 4 KB
Blackfin DATA_A SRAM: 16 KB
Blackfin DATA_B SRAM: 16 KB
Blackfin Instruction SRAM: 64 KB
Mount-cache hash table entries: 512
NET: Registered protocol family 16
Blackfin DMA Controller
stamp_init(): registering device resources
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
NTFS driver 2.1.26 [Flags: R/W DEBUG].
JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
yaffs Oct 23 2008 12:26:35 Installing.
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler cfq registered
Blackfin Watchdog Timer: 0.01 initialized. wd_action_code=0 cnt_sec=20 sec (nowayout= 0)
Real Time Clock Driver v1.10e
Blackfin BF5xx serial driver version 2.00 (DMA mode)
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
nbd: registered device at major 43
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP MPPE Compression module registered
NET: Registered protocol family 24
dm9000 Ethernet Driver
eth0: dm9000 at 20320300,20320304 IRQ 39 MAC: ca:51:50:1c:57:f9
eth1: dm9000 at 20300300,20300304 IRQ 38 MAC: ea:25:75:c7:60:b5
BF5xx flash: probing 16-bit flash bus
BF5xx flash: Probing for STM MW320D compatible flash...
BF5xx flash: Found 1 x 4MiB EN29LV320AB at 0x00000000
mfr id 0x20, dev_id 0x57
Using static partition definition
Creating 3 MTD partitions on "BF5xx flash":
0x00000000-0x00020000 : "Bootloader"
0x00020000-0x00180000 : "Kernel"
0x00180000-0x00400000 : "JFFS2"
NAND device: Manufacturer ID: 0x20, Chip ID: 0x76 (ST Micro NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 2827 at 0x02c2c000
Bad eraseblock 2861 at 0x02cb4000
Bad eraseblock 2881 at 0x02d04000
Bad eraseblock 2884 at 0x02d10000
Bad eraseblock 2912 at 0x02d80000
Bad eraseblock 2937 at 0x02de4000
Bad eraseblock 2953 at 0x02e24000
Bad eraseblock 2974 at 0x02e78000
Bad eraseblock 2976 at 0x02e80000
Bad eraseblock 2999 at 0x02edc000
Bad eraseblock 3344 at 0x03440000
Bad eraseblock 3437 at 0x035b4000
Creating 1 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x04000000 : "file system"
sl811: driver sl811-hcd, 19 May 2005
Blackfin GPIO interrupt setup: DEMUX_GPIO irq 26
sl811-hcd sl811-hcd.0: SL811HS v1.5
sl811-hcd sl811-hcd.0: new USB bus registered, assigned bus number 1
sl811-hcd sl811-hcd.0: irq 26, io mem 0x20000000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
NET: Registered protocol family 2
IP route cache hash table entries: 512 (order: -1, 2048 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
IPv4 over IPv4 tunneling driver
ip_conntrack version 2.4 (504 buckets, 4032 max) - 212 bytes per conntrack
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (jffs2 filesystem).
Freeing unused kernel memory: 68k freed (0x1b7000 - 0x1c7000)
dma_alloc_init: dma_page @ 0x001c5000 - 256 pages at 0x03f00000
eth0: link down
Welcome to:
       ____ _  _
      /  __| ||_|             _  _
 _   _| |  | | _ ____  _   _ / // /
| | | | |  | || |  _ /| | | | /  /
| |_| | |__| || | | | | |_| | /  /
|  ___/____|_||_|_| |_|/____|/_//_/
|_|
 
BusyBox v1.00 (2008.10.22-01:28+0000) Built-in shell (msh)
Enter 'help' for a list of built-in commands.
root:~> eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
root:~>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值