Altera_Forum
Honored Contributor
15 years agoIGOR MAC with DP83848C in uClinux
I have a DE3 with the multimedia HSMC board that contains the National Semiconductor DP83848C. This setup is very similar to the NEEK. I'm trying to get the Ethernet to work in order to transfer files. I copied the Ethernet setup from
neek_ocm_spi_mmu.zip (http://www.nioswiki.com/@api/deki/files/345/=neek_ocm_spi_mmu.zip), which uses the IGOR MAC after several unsuccessful TSE attempts. I follow the instructions here: http://www.nioswiki.com/operatingsystems/uclinux/ethernet and select [*] Network device support [*] Ethernet (10 or 100Mbit) [*] Opencores (Igor) Emac support Device Drivers -->Network device support ─> [*] Network device support [*] PHY Device support and infrastructure ---> [*] Drivers for National Semiconductor PHYs Network Applications ---> [*] mii-tool (in --- Net-tools section) I hook the ethernet into an isolated hub, which also contains another PC with IP = 192.168.1.254 (any IP.. they all do the same thing). it ends up with kernel panic when I try to ping: Linux/Nios II-MMU init_bootmem_node(?,0x10459, 0x10000, 0x20000) free_bootmem(0x10459000, 0xfba7000) reserve_bootmem(0x10459000, 0x2000) Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024 Kernel command line: NR_IRQS:32 PID hash table entries: 1024 (order: 10, 4096 bytes) Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) We have 131072 pages of RAM Memory available: 255232k/4451k RAM, 0k/0k ROM (1851k kernel code, 2600k data) Calibrating delay loop... 65.94 BogoMIPS (lpj=329728) Mount-cache hash table entries: 512 net_namespace: 520 bytes NET: Registered protocol family 16 init_BSP(): registering device resources bio: create slab <bio-0> at 0 SCSI subsystem initialized NET: Registered protocol family 2 IP route cache hash table entries: 8192 (order: 3, 32768 bytes) TCP established hash table entries: 32768 (order: 6, 262144 bytes) TCP bind hash table entries: 32768 (order: 5, 131072 bytes) TCP: Hash tables configured (established 32768 bind 32768) TCP reno registered NET: Registered protocol family 1 msgmni has been set to 498 io scheduler noop registered io scheduler deadline registered (default) fb0: Altera FB frame buffer device ttyJ0 at MMIO 0x2003480 (irq = 1) is a Altera JTAG UART console handover: boot [early0] -> real [ttyJ0] ttyS0 at MMIO 0x1001900 (irq = 7) is a Altera UART ttyS1 at MMIO 0x10018c0 (irq = 6) is a Altera UART Driver 'sd' needs updating - please use bus_type methods eth0: Open Ethernet Core Version 1.0 ads7846 spi1.0: touchscreen, irq 4 input: ADS784x Touchscreen as /devices/platform/altspi.1/spi1.0/input/input0 i2c /dev entries driver mmc_spi spi2.0: ASSUMING SPI bus stays unshared! mmc_spi spi2.0: ASSUMING 3.2-3.4 V slot power mmc_spi spi2.0: SD/MMC host mmc0, no DMA, no WP, no poweroff TCP cubic registered Initializing XFRM netlink socket NET: Registered protocol family 17 NET: Registered protocol family 15 mmc0: host does not support reading read-only switch. assuming write-enable. mmc0: new SD card on SPI mmcblk0: mmc0:0000 00000 974 MiB mmcblk0: p1 Welcome to ____ _ _ / __| ||_| _ _| | | | _ ____ _ _ _ _ | | | | | | || | _ \| | | |\ \/ / | |_| | |__| || | | | | |_| |/ | ___\____|_||_|_| |_|\____|\_/\_/ | | |_| For further information check: http://www.uclinux.org/ BusyBox v1.15.1 (2010-07-23 16:04:31 PDT) hush - the humble shell Enter 'help' for a list of built-in commands. /# ifconfig eth0 hw ether 00:07:ed:0a:03:29 /# ifconfig eth0 192.168.1.10 oeth_phymac_synch:eth0 MR1: 0x0000786D Autoneg'd Link OK: MODER: 0x0000A040 FullD 100BASE-TX /# ifconfig eth0 hw ether 00:07:ed:0a:03:29 /# mii-tool SIOCGMIIPHY on 'eth0' failed: Operation not supported no MII interfaces found /# ifconfig eth0 up /# cat /proc/net/route Iface Destination Gateway Flags RefCnt Use Metric MaskMTUW indow IRTT eth0 0001A8C0 00000000 0001 0 0 0 00FFFFFF 0 0 0 /# ping -c 4 192.168.1.10 PING 192.168.1.10 (192.168.1.10): 56 data bytes 64 bytes from 192.168.1.10: seq=0 ttl=64 time=1.466 ms 64 bytes from 192.168.1.10: seq=1 ttl=64 time=0.909 ms 64 bytes from 192.168.1.10: seq=2 ttl=64 time=0.880 ms 64 bytes from 192.168.1.10: seq=3 ttl=64 time=0.878 ms --- 192.168.1.10 ping statistics --- 4 packets transmitted, 4 packets received, 0% packet loss round-trip min/avg/max = 0.878/1.033/1.466 ms /# ping -c 4 192.168.1.254 PING 192.168.1.254 (192.168.1.254): 56 data bytesCPU 0 Unable to handle kernel p aging request at virtual address 1f2db000, epc == d00f11cc, ra == d012d544 Kernel panic - not syncing: Oops I've also enable [*] Generic Media Independent Interface device support to get mii-tool to compile into the kernel image and tested [*]OpenCores 10/100 Mbps Ethernet MAC support but neither make it work. Any ideas?