Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Lawrie Griffiths
    @lawrie
    @emard we will probably also want an RMII board mapped to one of the Pmod positions.
    emard
    @emard
    At cortex linux, we have some simple i2c controller that has two 32-bit R/W registers and all i2c traffic is done with them. LAN8720 RMII is gp/gn[9-13] directly plugged. gn[12] is 50MHz clock that must be taken from RMII and used as data clock domain
            alias rmii_tx_en : std_logic is gn(10);
            alias rmii_tx0   : std_logic is gp(10);
            alias rmii_tx1   : std_logic is gn(9);
            alias rmii_rx0   : std_logic is gn(11);
            alias rmii_rx1   : std_logic is gp(11);
            alias rmii_crs   : std_logic is gp(12);
            alias rmii_nint  : std_logic is gn(12); -- clock is here 50MHz
            alias rmii_mdio  : std_logic is gn(13);
            alias rmii_mdc   : std_logic is gp(13);
    constraints lpf file
    FREQUENCY PORT "gn[12]" 50.00 MHZ;
    emard
    @emard
    You can't plug RMII anywhere else directly because clock input capable pin of FPGA wont match RMII clock output
    Lawrie Griffiths
    @lawrie
    I have ordered one of those boards, but I don't know if it one that @Dolu1990's RMII implementation can support.
    Dolu1990
    @Dolu1990
    so there is a RMII phy implementation
    that should work out of the box
    Lawrie Griffiths
    @lawrie
    I have the enc28j60 running now, so I do have network access via that. @Dolu1990 has also added a flash memory test, so we should be able to see if flash memory is a problem with certain boards.
    Dolu1990
    @Dolu1990
    With a ethernet phy, i guess we could hope about 20 Mbits/s in TCP
    Lawrie Griffiths
    @lawrie
    @emard So I now have network access to and from SaxonSoc via dropbear and dbclient. So I can answer your question: screen fails the same way when you login via ssh.
    Dolu1990
    @Dolu1990
    ?
    you can't connect from your PC via SSH to the board ?
    Ahh sorry
    I readed it the wrong way XD
    emard
    @emard
    Ooooh so screen is because of something still refusing to work... OK I will boot and try . Can you maybe build RMII version, I have RMII module and cable to PC
    Dolu1990
    @Dolu1990
    I got screen to work
    emard
    @emard
    what's the trick?
    Dolu1990
    @Dolu1990
    I don't know, i builded buildroot with the BR_PACKAGE_SCREEN + CONFIG_UNIX, and that was i
    it
    but when building it i flushed some buildroot caches, so maybe when lawrie tried the same, he got a incomplet build
    emard
    @emard
    Possible! So still unix domain sockets were missing
    Dolu1990
    @Dolu1990
    For RMII, yes, can do it, but then come the issue of having SoC forks XD
    So should it be standard to have that RMII ?
    emard
    @emard
    The LAN8270 module comes wired so that it doesnt need any initialization. It starts as 100mbit half duplex mode and raw packets start immediately arriving at 2-bit interface
    Dolu1990
    @Dolu1990
    Also, about RMII
    MDIO MDC CRS COL aren't realy required
    which could make it fit on standard PMOD
    emard
    @emard
    Id say so! Some are not even present at module
    It doesnt fit to standard pmod because it has 1 line too much
    Dolu1990
    @Dolu1990
    ohh sorry, i was looking at MII XD
    emard
    @emard
    this lines are I think not needed
            rmii_mdc  <= 'Z';
            rmii_mdio <= 'Z';
    Dolu1990
    @Dolu1990
    right
    unless you want to have full controle of the ethernet mode
    emard
    @emard
    But they could make module different, those lines moved to 5th data row and then it would fit to standard PMOD
    Dolu1990
    @Dolu1990
    but if you have 100 base tx => no need as far i know
    emard
    @emard
    It is possible to make adapter to stnardard with flat cable and crimp connectors. Split unneeded wires from flat cable and swap with others, crimp it cross-over and then it should fit PMOD
    Those LAN8270 are great and cheap solution to ethernet. They have even green and orange LED at RJ45 connector that show link state and blink at packet traffic
    emard
    @emard
    When cable is unplugged, green is on. when cable is pluggedd, orange is on and green blinks ON at packet transmission in/out
    Module is 3.3V only. I connected to 5V side of ulx3s accidentaly and module was instatnly fried. all LEDs OFF. I threw it directly into trash can :)
    Now Im careful :)
    Dolu1990
    @Dolu1990
    XD
    Is that the correct one?
    emard
    @emard
    Yes mine looks identical!
    I'm currently testing it with hdl4fpga, but so far only ARP reqest/reply works, no ping yet. Module itself is ok, but core is developed
    https://github.com/emard/ulx3s-misc/tree/master/examples/eth/rmii/proj I started here but only elementary signals are wired. CLK works, RX data valid works also (LCD counts number of 2-bit packets received by module). Just for some quick testing
    Lawrie Griffiths
    @lawrie
    There are new versions of roottfs.tar.gz and uImage in Smp/images with a working version of screen. I don't know why my build didn't work before.
    Lawrie Griffiths
    @lawrie
    I have also update bitstreams/ulx33_85f_blue_4core_saxonsoc.bit as it now contains a flash memory check in the bootloader.
    I will produce an updated 2-core bitstream for a green 85f with 32MB.