Requirements:
- -Either serial cable or micro HDMI so you can boot into arch initially to make configuration changes.
-BB Black
-Mini-USB to USB connected to the PC you would like to remote from.
BeagleBone Black:
Boot into the BeagleBone Black and login.
First thing we need to do is load the kernel module for OTG network traffic at every boot. This is done by creating a configuration file in the '/etc/modules-load.d/' directory.
- Code: Select all
echo g_ether > /etc/modules-load.d/g_ether.conf
Now that the kernel knows to pass traffic via usb (interface usb0); you will have to create a profile for netctl to use at boot to start the networking. You will need to make a new profile called 'usb0' and use your favorite text editor (such as: vi, vim, or nano) to add the quoted information to the file.
- Code: Select all
vim /etc/netctl/usb0
Add the following text the 'usb0 netctl profile'.
Connection=ethernet
Description='Connection via USB'
Interface=usb0
IP=static
Address=('192.168.7.2/30')
Enable the profile to launch at boot so that you don't have to manually start it every time you reboot your BBB.
- Code: Select all
netctl enable usb0
As a safety step (mainly because I have had conflicting issues) I disabled the DHCP service at startup. In the past this has had issues with my netctl profiles starting on my ArchLinux laptop.
- Code: Select all
systemctl disable dhcpcd.service
Poweroff and plug into your PC for the next steps. The setup for the BBB is complete!
PC
I do not currently have my ArchLinux laptop (as mentioned) with me to set this up via linux -> BBB but I have a Windows XP (yuck) desktop to work with. You will need to navigate to your network interfaces (start>control panel>network connections.) Plug your BBB in into a USB port on your laptop or desktop and allow it to boot. When the BBB gets to loading the kernel module for OTG, the interface should appear on Windows computer. Right-Click the interface and select 'Properties.' Double-Click "Internet Protocol (TCP/IP)" and select 'static' to add the following information:
IP: 192.168.7.1
Subnet Mask: 255.255.255.252
Press 'OK' then 'Close' and you should be able to remote in via puTTY or your choice of SSHing program from Windows to your BBB as if it was Angstrom.
This may not solve everyone's issues but this was a working configuration that I made to mimic the same network as the default OS that is shipped with the BBB. If it works for some people then I am glad it helped. Have a great night everyone!
Supporting forum topic utilizing netcfg:
viewtopic.php?f=48&t=5504