Forum Discussion
Altera_Forum
Honored Contributor
16 years agoDE3 with 88E1111 and TSE error
I'm trying to get the GigE network working on my DE3 with Marvell PHY. I'm using the SLS driver. Here's the error. If I remove the MMU in SOPC Builder and run SSS, it works fine. Any ideas?
Linux version 2.6.30 (akoski@wsip-24-234-74-196) (gcc version 4.1.2)# 66 Tue Jul 6 15:37:14 PDT 2010 console [early0] enabled Early printk initialized Linux/Nios II-MMU init_bootmem_node(?,0x31d, 0x0, 0x10000) free_bootmem(0x31d000, 0xfce3000) reserve_bootmem(0x31d000, 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 65536 pages of RAM Memory available: 256512k/3187k RAM, 0k/0k ROM (1876k kernel code, 1310k data) Calibrating delay loop... 49.35 BogoMIPS (lpj=246784) Mount-cache hash table entries: 512 net_namespace: 716 bytes NET: Registered protocol family 16 init_BSP(): registering device resources altera_tse_mdio.0: failed to claim resource 2 ------------[ cut here ]------------ WARNING: at /home/akoski/aek/vhdl/uClinux-working1/nios2-linux/linux-2.6/drivers /base/core.c:123 device_release+0x80/0x84() Device 'altspi.2' does not have a release() function, it is broken and must be f ixed. Stack from cf820e18:<0> <0> cf820e3c<0> c000f8fc<0> cf81dd20<0> c02245c4<0> fffffff0<0> 00000000< 0> c000f980<0> c0211a68<0> <0> cf820e44<0> 00000000<0> c00fb384<0> cf82d800<0> c022028c<0> c00d4dc8< 0> c02202a8<0> c00d4d84<0> <0> 00000004<0> c00d5758<0> c022028c<0> c022027c<0> c00d4cb0<0> c023f3e8< 0> c023f3e8<0> c00fa1bc<0> <0> c00fee30<0> c00fef08<0> 00000001<0> c00fef8c<0> 00000001<0> 00000000< 0> c023fe84<0> c022f998<0> <0> c030d020<0> c022f9f4<0> 00000000<0> c0000210<0> 00000000<0> deadbe00< 0> 00000000<0> c00d3de0<0> <0> c00939c8<0> c0222944<0> 0000004d<0> cf81a0e0<0> c03173e0<0> 0000001f< 0> c0093c6c<0> cf81a140<0> Call Trace:<0> <0> [<c0036684>]<0> [<c0090000>]<0> [<c000252c>]<0> [<c000c1d4>]<0> <0> [<c0002490>]<0> [<c000104c>]<0> [<c0002520>]<0> ---[ end trace 4eaa2a86a8e2da22 ]--- ------------[ cut here ]------------ WARNING: at /home/akoski/aek/vhdl/uClinux-working1/nios2-linux/linux-2.6/drivers /base/core.c:123 device_release+0x80/0x84() Device 'altspi.1' does not have a release() function, it is broken and must be f ixed. Stack from cf820e18:<0> <0> cf820e3c<0> c000f8fc<0> cf81dd80<0> c02245c4<0> fffffff0<0> 00000000< 0> c000f980<0> c0211a68<0> <0> cf820e44<0> 00000000<0> c00fb384<0> cf82d880<0> c02201d8<0> c00d4dc8< 0> c02201f4<0> c00d4d84<0> <0> 00000004<0> c00d5758<0> c02201d8<0> c02201c8<0> c00d4cb0<0> c023f3e4< 0> c023f3e4<0> c00fa1bc<0> <0> c00fee30<0> c00fef08<0> 00000002<0> c00fef8c<0> 00000001<0> 00000000< 0> c023fe84<0> c022f998<0> <0> c030d020<0> c022f9f4<0> 00000000<0> c0000210<0> 00000000<0> deadbe00< 0> 00000000<0> c00d3de0<0> <0> c00939c8<0> c0222944<0> 0000004d<0> cf81a0e0<0> c03173e0<0> 0000001f< 0> c0093c6c<0> cf81a140<0> Call Trace:<0> <0> [<c0036684>]<0> [<c0090000>]<0> [<c000252c>]<0> [<c000c1d4>]<0> <0> [<c0002490>]<0> [<c000104c>]<0> [<c0002520>]<0> ---[ end trace 4eaa2a86a8e2da23 ]--- ------------[ cut here ]------------ WARNING: at /home/akoski/aek/vhdl/uClinux-working1/nios2-linux/linux-2.6/drivers /base/core.c:123 device_release+0x80/0x84() Device 'altera_uart.0' does not have a release() function, it is broken and must be fixed. Stack from cf820e18:<0> <0> cf820e3c<0> c000f8fc<0> cf81dde0<0> c02245c4<0> fffffff0<0> 00000000< 0> c000f980<0> c0211a68<0> <0> cf820e44<0> 00000000<0> c00fb384<0> cf82d900<0> c0220124<0> c00d4dc8< 0> c0220140<0> c00d4d84<0> <0> 00000004<0> c00d5758<0> c0220124<0> c0220114<0> c00d4cb0<0> c023f3e0< 0> c023f3e0<0> c00fa1bc<0> <0> c00fee30<0> c00fef08<0> 00000003<0> c00fef8c<0> 00000001<0> 00000000< 0> c023fe84<0> c022f998<0> <0> c030d020<0> c022f9f4<0> 00000000<0> c0000210<0> 00000000<0> deadbe00< 0> 00000000<0> c00d3de0<0> <0> c00939c8<0> c0222944<0> 0000004d<0> cf81a0e0<0> c03173e0<0> 0000001f< 0> c0093c6c<0> cf81a140<0> Call Trace:<0> <0> [<c0036684>]<0> [<c0090000>]<0> [<c000252c>]<0> [<c000c1d4>]<0> <0> [<c0002490>]<0> [<c000104c>]<0> [<c0002520>]<0> ---[ end trace 4eaa2a86a8e2da24 ]--- ------------[ cut here ]------------ WARNING: at /home/akoski/aek/vhdl/uClinux-working1/nios2-linux/linux-2.6/drivers /base/core.c:123 device_release+0x80/0x84() Device 'altera_jtaguart.0' does not have a release() function, it is broken and must be fixed. Stack from cf820e18:<0> <0> cf820e3c<0> c000f8fc<0> cf81de40<0> c02245c4<0> fffffff0<0> 00000000< 0> c000f980<0> c0211a68<0> <0> cf820e44<0> 00000000<0> c00fb384<0> cf801b20<0> c0220070<0> c00d4dc8< 0> c022008c<0> c00d4d84<0> <0> 00000004<0> c00d5758<0> c0220070<0> c0220060<0> c00d4cb0<0> c023f3dc< 0> c023f3dc<0> c00fa1bc<0> <0> c00fee30<0> c00fef08<0> 00000004<0> c00fef8c<0> 00000001<0> 00000000< 0> c023fe84<0> c022f998<0> <0> c030d020<0> c022f9f4<0> 00000000<0> c0000210<0> 00000000<0> deadbe00< 0> 00000000<0> c00d3de0<0> <0> c00939c8<0> c0222944<0> 0000004d<0> cf81a0e0<0> c03173e0<0> 0000001f< 0> c0093c6c<0> cf81a140<0> Call Trace:<0> <0> [<c0036684>]<0> [<c0090000>]<0> [<c000252c>]<0> [<c000c1d4>]<0> <0> [<c0002490>]<0> [<c000104c>]<0> [<c0002520>]<0> ---[ end trace 4eaa2a86a8e2da25 ]--- bio: create slab <bio-0> at 0 NET: Registered protocol family 2 IP route cache hash table entries: 2048 (order: 1, 8192 bytes) TCP established hash table entries: 8192 (order: 4, 65536 bytes) TCP bind hash table entries: 8192 (order: 3, 32768 bytes) TCP: Hash tables configured (established 8192 bind 8192) TCP reno registered NET: Registered protocol family 1 Altera example PIO driver io scheduler noop registered io scheduler deadline registered (default) fb0: Altera FB frame buffer device loop: module loaded i2c /dev entries driver TCP cubic registered NET: Registered protocol family 10 IPv6 over IPv4 tunneling driver NET: Registered protocol family 17 NET: Registered protocol family 15 turn off boot console early03 Replies
- Altera_Forum
Honored Contributor
I added some printk statements to better understand "resource 2"
atse.0: claiming resource (0 of 5) p:C01CE8D4 bus:platform rtype:mem rname:atse_resource_desc_mem atse.0: claiming resource (1 of 5) p:C01CE8D4 bus:platform rtype:mem rname:atse_resource_sgdma_rx_mem atse.0: claiming resource (2 of 5) p:C01CE8D4 bus:platform rtype:mem rname:atse_resource_sgdma_tx_mem atse.0: failed to claim resource 2 resource 2 is "atse_resource_sgdma_tx_mem".. that's a clue. - Altera_Forum
Honored Contributor
additional printk shows the start and end addresses:
atse.0: claiming resource (0 of 5) p:C01CE8D4 bus:platform rtype:mem rname:atse_resource_desc_mem rstart:0x11 800000 rend:0x11801FFF atse.0: claiming resource (1 of 5) p:C01CE8D4 bus:platform rtype:mem rname:atse_resource_sgdma_rx_mem rstart: 0x11803C40 rend:0x1180403F atse.0: claiming resource (2 of 5) p:C01CE8D4 bus:platform rtype:mem rname:atse_resource_sgdma_tx_mem rstart: 0x11803C00 rend:0x11803FFF atse.0: failed to claim resource 2 of the failed resource. matching these addresses with what is expected in from custom_fpga.h (SOPC Builder) shows a mismatch. it turns out that config.c had hardcoded the size of the SGDMA RX and TX to 0x400! (line: .end = nasgdma_rx_csr + 0x400 - 1) I changed this to use the SGDMA_RX_END and SGDMA_TX_END instead defined in custom_fpga.h in config.c and it works. - Altera_Forum
Honored Contributor
Hi,aekoski!I hava a DE3 board(EP3SL150).I want to transplant uClinux to my board.But I do not know what to do.Can you give me some instructions?Thank you very much.