Friday, January 31, 2014

beaglebone black debian-post installation (USB multifunction Gadget configuration)



After installing the debian image into the beaglebone black as recommended by the armhf website I found that the usb functions did not work.

This post documents a few steps needed to enable the usb host storage and the usb network.








/etc/modules


g_multi file=/home/shared.disk

Create a /home/shared.disk block file (such as "dd if=/dev/zero of=shared.disk bs=1M count=32" or whichever size you want).  Later on partition this disk using fdisk or mount in another desktop and partition from there.  One thing I did find out is that my windows desktop did not want to mount the disk unless there is a partition in the block file so definitely do an fdisk /home/shared.disk and create software partitions in there.

USB Network

This is as close to the original factory usb network setup as I can.  This configures the beaglebone black as 192.168.7.2 on the usb network, and gives the desktop an IP of 192.168.7.1 (via dhcp).


/etc/network/interfaces

# JondZ Thu Jan 30 15:04:27 UTC 2014 added usb0
auto usb0
iface usb0 inet static
      address 192.168.7.2
      netmask 255.255.255.252
/etc/udhcpd.conf
# JondZ Thu Jan 30 15:25:13 UTC 2014 dhcp server for usb0
start      192.168.7.1
end        192.168.7.1
interface  usb0
max_leases 1
options subnet 255.255.255.252


The package udhcpd ( a dhcp server) needed to be installed, of course.


JondZ




No comments:

Creating ipip tunnels in RedHat 8 that is compatible with LVS/TUN. Every few seasons I built a virtual LVS (Linux Virtual Server) mock up ju...