Forum Discussion
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- Hi I read the below article but i'm not successful in implementing TSE in uClinux http://www.alterawiki.com/wiki/ethernet I actually don't know where the problem is, the Quartus project or the uClinux Configuration Could you please provide tutorial how to add TSE to uclinux or Upload your Quartus Project? Thank you --- Quote End --- THIS IS WHAT I DID FOR THE DE2-115 EVALUATION BOARD: O.K. -- First there is a very good post titled "TSE (Triple Speed Ethernet) MAC on uClinux with MMU" Of course it is on the "unstable-nios2mmu" 1. Make sure you are working in the new "nios2" branch 2. My *.sopcinfo file was generated with 10.1 - I'm assuming that later versions don't have bugs. 3. I created a *.dts file with sopc2dts gui (I did not have to do ANY modifications to the tse entry) Here it is below (of course your values will depend on your design) tse_mac: ethernet@0x9002000 { compatible = "ALTR,tse-10.1", "ALTR,tse-1.0"; reg = < 0x09002000 0x00000400 0x09002440 0x00000040 0x09002400 0x00000040 0x09006000 0x00001000 >; interrupt-parent = < &cpu >; interrupts = < 11 10 >; ALTR,rx-fifo-depth = < 2048 >; /* embeddedsw.CMacro.RECEIVE_FIFO_DEPTH type NUMBER */ ALTR,tx-fifo-depth = < 2048 >; /* embeddedsw.CMacro.TRANSMIT_FIFO_DEPTH type NUMBER */ address-bits = < 48 >; max-frame-size = < 1518 >; local-mac-address = [ 00 00 00 00 00 00 ]; phy-mode = "rgmii"; ALTR,mii-id = < 0 >; }; //end ethernet@0x9002000 (tse_mac) 4. In uClinux -- First I would see if your design boots without changing anything for the ethernet. Just use the default settings. This will verify that your console is working properly, etc. 5. change your uClinux to use the correct device driver: Customize Kernel Settings Device Drivers - Network Device Support - Ethernet Driver Support - Altera Devices - Altera Triple Speed Ethernet MAC Marvell devices --- not sure I need this but it is checked now FORGOT - You have to have PHY support PHY Device support and infrastructure --> <*> Drivers for Marvell PHYs 5. save and make 6. Try it Let me know I'm not at my computer to give anymore details and show boot messages.