Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

Ethernet won't work

Altera_Forum
Honored Contributor II
942 Views

Hi people 

 

I'm using a SMC9113 chip for my ethernet. 

My problem is that it seems it won't work properly. It looks like the init of the chip is OK but take a look below to see the error msg. 

 

Linux version 2.6.11-uc0 (mse@ECT-MSE) (gcc version 3.4.1 (Altera Nios II 5.0 b7 3))# 49 Fri Jul 29 08:58:56 WEDT 2005 uClinux/Nios II Altera Nios II support (C) 2004 Microtronix Datacom Ltd. setup_arch: No persistant network settings signature at 003F0000 Built 1 zonelists Kernel command line: root=/dev/mtdblock0 ro PID hash table entries: 64 (order: 6, 1024 bytes) Dentry cache hash table entries: 2048 (order: 1, 8192 bytes) Inode-cache hash table entries: 1024 (order: 0, 4096 bytes) Memory available: 6348k/8192k RAM, 0k/0k ROM (1433k kernel code, 293k data) Mount-cache hash table entries: 512 (order: 0, 4096 bytes) NET: Registered protocol family 16 Serial: JTAG UART driver $Revision: 1.4 $ ttyJ0 at MMIO 0x804028e0 (irq = 0) is a jtag_uart io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize Now entering smc_init() Lets do some smc_probing 4 counter=0 smc_probe: 100000 Khz Nios BB_MODI activated 4 BB_MODI bank 3303; ioaddr(410300) + BANK_SELECT = 41030e SMSC LAN91C111 Driver (v2.1), (Linux Kernel 2.6) IRQ 4 eth0: SMC91C11xFD(rev:1) at 0x410300 IRQ:4 MEMSIZE:8192b NOWAIT:0 ADDR: 00:07:ed :00:00:00 Yeehaa we grabbed the IRQ successfully Something caused us to break - smc_probe returned 0 but has IRQ: 4 on address: 4 10300 Now returning dev from sub-function .....this ought to be the end of it! Now entering smc_init() Lets do some smc_probing 4 counter=0 smc_probe: 100000 Khz Nios BB_MODI activated 4 Oh bugger ....something is wrong IRQ=0 smc91111.c goto out (1) cfi_probe.c:: cfi_probe_init microtronix.c::init_microtronix_map start MSE __ioremap chipreg.c::do_map_probe for: cfi_probe chipreg.c::get_mtd_chip_driver cfi_probe.c:: cfi_probe cfi_probe.c:: base=0; cfi.h::cfi_build_cmd chip_mode 1; chips_per_word 1 cfi.h::cfi_build_cmd chip_mode 1; chips_per_word 1 cfi.h::cfi_build_cmd chip_mode 1; chips_per_word 1 cfi_probe.c:: qry_present base=0; osf=1 cfi.h::cfi_build_cmd chip_mode 1; chips_per_word 1 cfi.h::cfi_build_cmd chip_mode 1; chips_per_word 1 cfi.h::cfi_build_cmd chip_mode 1; chips_per_word 1 CFI_PROBE.c MSE qry failed! cfi_probe.c:: !qry_present cfi_probe.c:: base=0; cfi.h::cfi_build_cmd chip_mode 1; chips_per_word 1 cfi.h::cfi_build_cmd chip_mode 1; chips_per_word 1 cfi.h::cfi_build_cmd chip_mode 1; chips_per_word 1 cfi_probe.c:: qry_present base=0; osf=2 cfi.h::cfi_build_cmd chip_mode 1; chips_per_word 1 cfi.h::cfi_build_cmd chip_mode 1; chips_per_word 1 cfi.h::cfi_build_cmd chip_mode 1; chips_per_word 1 CFI_PROBE.c MSE qry failed! cfi_probe.c:: !qry_present cfi_probe.c:: base=0; cfi.h::cfi_build_cmd chip_mode 1; chips_per_word 1 cfi.h::cfi_build_cmd chip_mode 1; chips_per_word 1 cfi.h::cfi_build_cmd chip_mode 1; chips_per_word 1 cfi_probe.c:: qry_present base=0; osf=4 cfi.h::cfi_build_cmd chip_mode 1; chips_per_word 1 cfi.h::cfi_build_cmd chip_mode 1; chips_per_word 1 cfi.h::cfi_build_cmd chip_mode 1; chips_per_word 1 CFI_PROBE.c MSE qry failed! cfi_probe.c:: !qry_present do_map_probe:: return NULL(2) chipreg.c::do_map_probe for: jedec_probe chipreg.c::get_mtd_chip_driver do_map_probe:: return NULL microtronix.c::init_microtronix_map device NOT added Linux version 2.6.11-uc0 (mse@ECT-MSE) (gcc version 3.4.1 (Altera Nios II 5.0 b7 3))# 46 Mon Jul 25 15:27:47 WEDT 2005 uClinux/Nios II Altera Nios II support (C) 2004 Microtronix Datacom Ltd. Built 1 zonelists Kernel command line: root=/dev/mtdblock0 ro PID hash table entries: 64 (order: 6, 1024 bytes) Dentry cache hash table entries: 2048 (order: 1, 8192 bytes) Inode-cache hash table entries: 1024 (order: 0, 4096 bytes) Memory available: 7040k/8192k RAM, 0k/0k ROM (842k kernel code, 210k data) Mount-cache hash table entries: 512 (order: 0, 4096 bytes) Linux NoNET1.0 for Linux 2.6 Serial: JTAG UART driver $Revision: 1.4 $ ttyJ0 at MMIO 0x804028e0 (irq = 0) is a jtag_uart io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize cfi_probe.c:: cfi_probe_init MSE microtronix.c 1 BUSWIDTH 1;WINDOW_ADDR 0;WINDOW_SIZE 400000 MSE __ioremap MSE microtronix.c 2 cfi_probe.c:: cfi_probe cfi_probe.c:: cfi_probe_chip cfi_probe.c:: qry_present cfi_probe.c:: cfi_probe_chip cfi_probe.c:: qry_present cfi_probe.c:: cfi_chip_setup Microtronix map: Found 1 x16 devices at 0x0 in 8-bit bank Amd/Fujitsu Extended Query Table at 0x0040 number of CFI chips: 1 cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness. cmdlinepart partition parsing not available RedBoot partition parsing not available MSE microtronix.c 3 Using Microtronix development partition definition Creating 2 MTD partitions on "Microtronix map": 0x00200000-0x00300000 : "romfs" 0x00000000-0x00200000 : "loader/kernel" VFS: Mounted root (romfs filesystem) readonly. Freeing unused kernel memory: 52k freed (0x10f0000 - 0x10fc000) # ls ls bin        dev        etc        home       mnt        proc       ramfs.img   sbin       sys        tmp        usr        var        # cd sbin cd sbin# ls ls# cd .. cd ..# ifconfig ifconfig No usable address families found. socket: Function not implemented# ifconfig eth0 10.0.0.199 netmask 255.255.0.0 broadcast 10.0.0.255 ifconfig eth0 10.0.0.199 netmask 255.255.0.0 broadcast 10.0.0.255 No usable address families found. socket: Function not implemented 

 

Anyone know what the problem could be??? 

 

Regards 

Michael E
0 Kudos
0 Replies
Reply