Creating a Working Raspberry Pi
For this we’re focusing on the Embedded Raspberry Pi (Compute Module). These are links on how to setup the Raspberry Pi compute module:
After setting up the Raspberry Pi, I was faced with the dilemma that at times I’ll need to work on the device while at home or any other place that does not have a display with HDMI output and a keyboard. At the office I could easily do this but how can I access the Rasp. Pi computing module via a laptop.
Using a Linux OS based machine (Ubuntu in my case), I connected it to the Pi using an Ethernet cable via the LAN9514 Evaluation Board. This board extends the Raspberry Pi computing module capability since this Pi type is bootstrapped (has no peripherals). The board has 4 USB ports and an Ethernet port. The board is connected to the CMIO (Compute Module Input Output) module via type-B upstream USB connector.
Hallo Mr. Laptop
I first had to configure the Ethernet settings on my Linux laptop. I edited the interfaces file (in /etc/network/interfaces) using gedit (you can use your preferred text editor) and added the following:
iface eth1 inet static address 192.168.10.2 netmask 255.255.255.0 gateway 192.168.10.1
The final content should look as follows:
iface eth1 inet static address 192.168.10.2 netmask 255.255.255.0 gateway 192.168.10.1 auto lo iface lo inet loopback
This configuration essentially makes the Ethernet network have a static IP address.
sudo /etc/init.d/networking restart to reload the configuration. For some reason that didn’t work for me so I just restarted the operating system and the settings took effect.
Onto the Raspberry Pi
For just this once, I had to use an LCD display with HDMI support and a keyboard to configure the Ethernet settings. I edited the
/boot/cmdline.txt (make a backup copy) and added the following IP address at the end (there should be a space before this IP setting):
I rebooted the Rasp. Pi and confirmed if the settings took into effect by running:
The output should be the IP inserted previously.
Can I see you Mr. Pi?
I disconnected the Pi from the display and connected it to the laptop via the LAN evaluation board. To test if the connection was active, I did a ping to
192.168.10.4. It was successful as there were packets being sent back and forth.
To access the Pi, all I had to do was ssh into it:
and start doing fun and exciting things (plus hard).
- The ssh password should be what one uses to log into the pi, this being raspberry
- To power the LAN evaluation board, use a 5V charger.
- Before switching on the Pi, ensure the evaluation board in on so that it can be detected during the Pi’s boot process.
- Are you receiving a “refused connection” error message when you ssh? Just restart both machines. Well it worked for me (just for now as I look for a better solution),
On the next post, we’ll be having fun with GPIOs and LEDs with the Raspberry Pi.
Brian Birir May 25, 2016
Posted In: Information Technology
Tags: raspberry pi