天嵌 ARM开发社区

 找回密码
 注册
查看: 6045|回复: 4

no IRQ resource flags set 怎么改谢谢

[复制链接]
tkfly0324 发表于 2009-3-10 14:46:39 | 显示全部楼层 |阅读模式
网线接上了
网口的灯也亮了
可是还是这样
dm9000 dm9000.0: WARNING: no IRQ resource flags set.
eth0: link down
-/bin/sh: USER: not found
[root@YGX/]#cat proc/interrupts
           CPU0
30:      54368         s3c  S3C2410 Timer Tick
32:          0         s3c  s3c2410-lcd
42:          0         s3c  ohci_hcd:usb1
43:          0         s3c  s3c2440-i2c
51:          0     s3c-ext  eth0
70:         21   s3c-uart0  s3c2440-uart
71:         28   s3c-uart0  s3c2440-uart
83:          0           -  s3c2410-wdt
这是中断

no IRQ resource flags set
怎么改呀?谢谢
亚瑟王 发表于 2009-3-10 15:44:43 | 显示全部楼层
把你的启动信息全部贴出来。
信息太少了,
 楼主| tkfly0324 发表于 2009-3-10 15:49:24 | 显示全部楼层
##### EmbedSky BIOS for SKY2440 #####
Press any key to stop autoboot:  1
Booting Linux ...
Copy linux kernel from 0x0004c000 to 0x30008000, size = 0x00200000 ... Copy Kern
el to SDRAM done,NOW, Booting Linux......
Uncompressing Linux.............................................................
............................................ done, booting the kernel.
Linux version 2.6.25.8 (root@localhost.localdomain) (gcc version 3.4.5) #15 Tue
Mar 10 15:39:03 CST 2009
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
Machine: SMDK2440
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C244X: core 400.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz
S3C24XX Clocks, (c) 2004 Simtec Electronics
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: noinitrd console=ttySAC0 root=/dev/mtdblock2 rootfstype=yaf
fs
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
timer tcon=00500000, tcnt a2c1, tcfg 00000200,00000000, usec 00001eb8
Console: colour dummy device 80x30
console [ttySAC0] enabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 61440KB available (3020K code, 288K data, 124K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 152 bytes
NET: Registered protocol family 16
S3C2410 Power Management, (c) 2004 Simtec Electronics
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c4800000, irq 33
DMA channel 1 at c4800040, irq 34
DMA channel 2 at c4800080, irq 35
DMA channel 3 at c48000c0, irq 36
S3C244X: Clock Support, DVS off
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
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
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.
fuse init (API version 7.9)
yaffs Mar  6 2009 11:12:41 Installing.
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Console: switching to colour frame buffer device 30x40
fb0: s3c2410fb frame buffer device
lp: driver loaded but no devices found
ppdev: user-space parallel port driver
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
s3c2440-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
brd: module loaded
loop: module loaded
dm9000 Ethernet Driver, V1.30
dm9000 dm9000.0: eth%d: Invalid ethernet MAC address. Please set using ifconfig
eth0: dm9000 at c485e000,c4860004 IRQ 51 MAC: 00:00:00:00:00:00 (chip)
Uniform Multi-Platform E-IDE driver
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2440-nand s3c2440-nand: Tacls=2, 20ns Twrph0=3 30ns, Twrph1=2 20ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit
)
Scanning device for bad blocks
Bad eraseblock 2281 at 0x023a4000
Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00040000 : "TQ2440_uboot"
0x00040000-0x00240000 : "TQ2440_kernel"
0x0024c000-0x03ffc000 : "TQ_yaffs2"
usbmon: debugfs is not available
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2440-i2c s3c2440-i2c: slave address 0x10
s3c2440-i2c s3c2440-i2c: bus frequency set to 390 KHz
s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
TCP cubic registered
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs: block 2134 is marked bad
block 2135 is bad
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem).
Freeing init memory: 124K
dm9000 dm9000.0: WARNING: no IRQ resource flags set.
eth0: link down

Please press Enter to activate this console
亚瑟王 发表于 2009-3-10 15:55:04 | 显示全部楼层
根据你从QQ里面发给我的信息:
389341607 15:57:37
他的提示信息出现在
dm9000_open的代码是这样的.

dm9000_open(struct net_device *dev)
{
board_info_t *db = (board_info_t *) dev->priv;
unsigned long irqflags = db->irq_res->flags & IRQF_TRIGGER_MASK;

if (netif_msg_ifup(db))
dev_dbg(db->dev, "enabling %s\n", dev->name);

/* If there is no IRQ type specified, default to something that
* may work, and tell the user that this is a problem */

if (irqflags == IRQF_TRIGGER_NONE) { //irqflags总得不到正确的值,所以这里总有一个警告.
dev_warn(db->dev, "WARNING: no IRQ resource flags set.\n");
irqflags = DEFAULT_TRIGGER;
}
389341607 15:57:52
if (irqflags == IRQF_TRIGGER_NONE) { //irqflags总得不到正确的值,所以这里总有一个警告.
dev_warn(db->dev, "WARNING: no IRQ resource flags set.\n");
389341607 15:59:21
也就是说
db->irq_res->flags & IRQF_TRIGGER_MASK;
这两个东西不对
但是我不知道怎么改

根据以上信息,你应该是没有按照手册上面所讲,替换掉DM9000.c文件,因为2.6.25.8自带的那个DM9000的驱动是不行的,你需要用2.6.24以下的内核里面的dm9000.c文件来替换。
 楼主| tkfly0324 发表于 2009-3-10 16:10:17 | 显示全部楼层
是在不好意思,是我大意了,
非常感谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2024-6-29 16:39 , Processed in 1.062500 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表