Home › Forums › snickerdoodle Baseboards › • piSmasher › PiSmasher Ethernet Use

Viewing 9 reply threads
  • Author
    Posts
    • smithrb
      Participant
      Post count: 17

      Curious if one of the ethernet ports is configured by default for elan use? If not, what to do to make is usable for connection to lan for development use?

      Thanks

    • Markus
      Participant
      Post count: 50

      Ethernet is configured by config.txt

    • smithrb
      Participant
      Post count: 17

      Got that part pretty fast from the README. Added IP for eth0 settings of:

      # Ethernet IP configuration. Can be ‘dhcp’, ‘static’ or ‘disabled’.
      eth0_mode=static

      # Ethernet IP address (if mode is set to ‘static’).
      eth0_address=192.168.1.130

      # Ethernet netmask (if not specified uses 255.255.255.0)
      eth0_netmask=255.255.255.0

      to the lan settings in config.txt.
      Uncommented those lines, rebooted, only to see during boot:

      [FAILED] Failed to start Raise network interfaces.

      then, the below after checking the interface status.

      A little more than just config.txt it seems.

      Any other suggestions?

      Thanks…

      admin@snickerdoodle:~$ systemctl status networking.service
      ● networking.service – Raise network interfaces
      Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
      Drop-In: /run/systemd/generator/networking.service.d
      └─50-insserv.conf-$network.conf
      Active: failed (Result: exit-code) since Thu 2016-02-11 16:28:08 UTC; 1min 11s ago
      Docs: man:interfaces(5)
      Process: 1352 ExecStart=/sbin/ifup -a –read-environment (code=exited, status=1/FAILURE)
      Process: 1306 ExecStartPre=/bin/sh -c [ “$CONFIGURE_INTERFACES” != “no” ] && [ -n “$(ifquery –read-environment –list –exclude=l
      Main PID: 1352 (code=exited, status=1/FAILURE)

      admin@snickerdoodle:~$ ifconfig
      lo Link encap:Local Loopback
      inet addr:127.0.0.1 Mask:255.0.0.0
      inet6 addr: ::1/128 Scope:Host
      UP LOOPBACK RUNNING MTU:65536 Metric:1
      RX packets:162 errors:0 dropped:0 overruns:0 frame:0
      TX packets:162 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000
      RX bytes:11918 (11.9 KB) TX bytes:11918 (11.9 KB)

      wlan0 Link encap:Ethernet HWaddr 90:70:65:01:77:93
      inet6 addr: fe80::9270:65ff:fe01:7793/64 Scope:Link
      UP BROADCAST MULTICAST MTU:1500 Metric:1
      RX packets:4 errors:0 dropped:0 overruns:0 frame:0
      TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000
      RX bytes:452 (452.0 B) TX bytes:620 (620.0 B)

    • smithrb
      Participant
      Post count: 17

      No eth* devices are detected.

      admin@snickerdoodle:/proc$ sudo ifup -a
      Cannot find device “eth0”
      Failed to bring up eth0.
      Cannot find device “eth1”
      Failed to bring up eth1.

    • Bush
      Moderator
      Post count: 125

      You’ll need to follow the instructions in the BOOT directory README file for copying the piSmasher boot.bin, devicetree and system.bit (bitstream) to the BOOT directory top level. The boot.bin will initialize the ethernet peripherals for connection on the EMIO and to the ethernet hardware on the baseboard. As Markus pointed out, you can use the config.txt for configuring the ethernet for your network (DHCP, static, MAC, etc.).

      • smithrb
        Participant
        Post count: 17

        So, BUSH

        I have a doodle one and I’m awaiting a black “any time now”. I initially shy’d away from the piSmasher folder since it’s named for doodle back. Tried anyway given your advice (moving boot.bin, *.dtb, and system.bit to /) and booting freezes at FSBL. So I replaced boot.bin from the doodle one folder (leaving others the same) and it now boots. ifconfig shows all the interfaces now with ip addressed I’ve specified. However, I’m now trying to sort out gateway and nameservers since ping produces no response within the lan it’s attached to.

        ifup -a returns nada

        Thanks for the assist.

    • Markus
      Participant
      Post count: 50

      I was able to bring up the Ethernet ports on the piSmasher but not the Wifi connections.

      I followed the instructions for the Ubuntu image, then moved on to the wiki pages but haven’t been able to bring up Wifi yet.

    • smithrb
      Participant
      Post count: 17

      A few other tidbits. No joy on bring the either eth* link up yet. Also curious that link speeds are shown as 10Mb/s?

      admin@snickerdoodle:~$ ifconfig
      eth0 Link encap:Ethernet HWaddr 00:0a:35:00:01:22
      inet addr:192.168.1.130 Bcast:192.168.1.255 Mask:255.255.255.0
      UP BROADCAST MULTICAST MTU:1500 Metric:1
      RX packets:0 errors:0 dropped:0 overruns:0 frame:0
      TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000
      RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
      Interrupt:29 Base address:0xb000

      eth1 Link encap:Ethernet HWaddr e2:7c:44:c9:46:28
      inet addr:192.168.1.131 Bcast:192.168.1.255 Mask:255.255.255.0
      UP BROADCAST MULTICAST MTU:1500 Metric:1
      RX packets:0 errors:0 dropped:0 overruns:0 frame:0
      TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000
      RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
      Interrupt:30 Base address:0xc000

      lo Link encap:Local Loopback
      inet addr:127.0.0.1 Mask:255.0.0.0
      inet6 addr: ::1/128 Scope:Host
      UP LOOPBACK RUNNING MTU:65536 Metric:1
      RX packets:882 errors:0 dropped:0 overruns:0 frame:0
      TX packets:882 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000
      RX bytes:65198 (65.1 KB) TX bytes:65198 (65.1 KB)

      wlan0 Link encap:Ethernet HWaddr 90:70:65:01:77:93
      UP BROADCAST MULTICAST MTU:1500 Metric:1
      RX packets:0 errors:0 dropped:0 overruns:0 frame:0
      TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000
      RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

      wlan1 Link encap:Ethernet HWaddr 90:70:65:01:77:94
      inet addr:10.0.110.2 Bcast:10.0.110.255 Mask:255.255.255.0
      inet6 addr: fe80::9270:65ff:fe01:7794/64 Scope:Link
      UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
      RX packets:0 errors:0 dropped:0 overruns:0 frame:0
      TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000
      RX bytes:0 (0.0 B) TX bytes:1064 (1.0 KB)

      admin@snickerdoodle:~$ ip route show
      default via 192.168.1.1 dev eth0 onlink linkdown
      10.0.110.0/24 dev wlan1 proto kernel scope link src 10.0.110.2
      192.168.1.0/24 dev eth1 proto kernel scope link src 192.168.1.131 linkdown
      192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.130 linkdown
      admin@snickerdoodle:~$ sudo ethtool eth0
      Settings for eth0:
      Supported ports: [ TP MII ]
      Supported link modes: Not reported
      Supported pause frame use: No
      Supports auto-negotiation: No
      Advertised link modes: Not reported
      Advertised pause frame use: No
      Advertised auto-negotiation: No
      Speed: 10Mb/s
      Duplex: Half
      Port: MII
      PHYAD: 0
      Transceiver: external
      Auto-negotiation: on
      Link detected: no
      admin@snickerdoodle:~$ sudo ethtool eth1
      Settings for eth1:
      Supported ports: [ TP MII ]
      Supported link modes: Not reported
      Supported pause frame use: No
      Supports auto-negotiation: No
      Advertised link modes: Not reported
      Advertised pause frame use: No
      Advertised auto-negotiation: No
      Speed: 10Mb/s
      Duplex: Half
      Port: MII
      PHYAD: 0
      Transceiver: external
      Auto-negotiation: on
      Link detected: no

    • smithrb
      Participant
      Post count: 17

      Update:

      So, just a guess without more reading and ciphering.

      Looks like the smasher binaries and doodle binaries need to be built accordingly. doodle black with matching smasher. doodle one with matching smasher, etc…

      My setup now to get visible enets (though not working) is using doodle one boot.bin with the smasher devicetree.dtb and system.bit. Here’s boot time messages during when system.bit is to be loaded (clearly indicating doodle type mismatch).

      …
      reading system.bit
      4045674 bytes read in 239 ms (16.1 MiB/s)
      design filename = “base_wrapper;UserID=0XFFFFFFFF;Version=2018.2.1”
      fpga_loadbitstream: Wrong bitstream ID for this device
      fpga_loadbitstream: Bitstream ID 7z020clg400, current device ID 0/7z010
      fpga – loadable FPGA image support

      Usage:
      fpga [operation type] [device number] [image address] [image size]
      fpga operations:
      dump [dev] [address] [size] Load device to memory buffer
      info [dev] list known device information
      load [dev] [address] [size] Load device from memory buffer
      loadb [dev] [address] [size] Load device from bitstream buffer (Xilinx only)

      reading uImage
      …

      So my take from this is that SD install image needs to include the smasher binary necessities for each board type – not just the doodle black. Assuming of course that the smasher is intended to work with all doodle boards.

      On another thread, I’m working to get a build_script(s) that will build all from sources (in effect the script(s) and sources needed to build the distribution SD image), but I’m not quite there yet as they do not included smasher build pieces and possible others.

      Thanks…

      • Markus
        Participant
        Post count: 50

        Do you have a white blinking LED with a bit file for Z7020 on a Z7010? I don’t think you should be able to.

        • smithrb
          Participant
          Post count: 17

          I have the doodle one – the 7010.  No blinking light – the system.bit file won’t load, see boot output above.  The 7020 just shipped fm crowdsupply yesterday. I’ll confirm my theory once received.

        • Markus
          Participant
          Post count: 50

          don’t load any weired bitfiles on your snickerdoodle. There are 150+ pins connected to sensitive hardware. :(

    • Bush
      Moderator
      Post count: 125

      This .zip file has a bootloader, bitstream and devicetree that you can use for piSmasher with the snickerdoodle one

      https://drive.google.com/open?id=11hrFUGbe4MbAaMuy_Fn_FwRafkbRPMVd

      Let me know if this system works for you and you are able to get the ethernet working.

    • smithrb
      Participant
      Post count: 17

      Bush,

      Those files got me up and running with a functioning network – thanks!

      Had muck around until I specified the dns nameserver and gateway properly, but working now.

      So, what resources need to be added to github to allow this all to be built from sources for any of the board types? The current build_script doesn’t include anything for piSmasher nor the necessities to make system.bit.

      Really need to be able build from sources for any combination of boards / piSmasher.

      Thanks…

Viewing 9 reply threads
  • You must be logged in to reply to this topic.