The Giant Board uses u-boot overlays to load the device configurations at boot. This makes it easy to enable and disable hardware being used with Linux drivers instead of CircuitPython.
The easiest way to change the overlay options its to edit the uEnv.txt text file using this command
sudo nano /boot/uboot/uEnv.txt
When the file opens, it should look like this
You’ll want to uncomment the enable_uboot_overlays as well as the line containing GB-ETHERNET-FEATHERWING.dtbo and it should look something like this.
After that you can exit and save using ctrl + x and hit Y to accept to write the file. Before we reboot, lets edit one other file so when your Giant Board reboots, it will be connected to the internet. We need to edit network interfaces file using the command
sudo nano /etc/network/interfaces
You’ll then want to add these lines just under the lines that are already in the file. This setups up the device in DHCP mode so it will automatically get an IP address from your router. This may not be desired as the IP address can change, making it difficult to access the device without knowing the IP. Below the DHCP setting are some commented out static IP settings. If you are a little familiar with networking, you can edit these settings to match your network and pick a desired static IP.
auto eth0 iface eth0 inet dhcp #iface eth0 inet static # address 192.168.1.100 # netmask 255.255.255.0 # gateway 192.168.1.1
After changing this you will then need to power off the device and use a jumper wire to connect the interrupt pin on the Ethernet FeatherWing to a pin on the Giant Board before it will work. You need to connect the IRQ pin on the end of the Ethernet FeatherWing to the pin PD31 on the Giant Board.
After you have the IRQ line connected to the Giant Board, you can now reboot! Once rebooted The u-boot overlay and Linux driver for the Ethernet FeatherWing should now load on boot. You should be able to test your internet connection by pinging google using this command:
ping -c 4 220.127.116.11
If everything is setup correctly you should be receiving responses back from the google servers.
That’s it! You should now be all setup and online using the adafruit Ethernet FeatherWing!