BeagleBone Black Rev B + C Ethernet DHCP

63 views
Skip to first unread message

Justin Schneck

unread,
Oct 12, 2014, 8:52:51 PM10/12/14
to nerves-...@googlegroups.com
Hello,

I just started to get nerves-sed and the nerves-demo up and running on my bbb. I have both a Rev B and a Rev C.

I think I am encountering a newbie problem, but I am having trouble getting it to resolve an ip address. Is there a configuration that I need to set?

Thanks!

Frank Hunleth

unread,
Oct 13, 2014, 9:36:15 AM10/13/14
to nerves-...@googlegroups.com
Hi Justin,

By default, nerves doesn't help with IP setup. This is something that
I've wanted to address, but just haven't had time. If you want to just
assign an IP address, you can do something like:

os:cmd("/sbin/ip link set eth0 up"),
os:cmd("/sbin/ip addr add 192.168.1.40/24 dev eth0"),
os:cmd("/sbin/ip route add default via 192.168.1.1"),

If you use Elixir, I have some work-in-progress code that may be of
interest. (I haven't had time this past month to work on it, but there
might be something helpful in it.) See the following repositories:

https://github.com/fhunleth/net_basic.ex
https://github.com/fhunleth/wpa_supplicant.ex

Hope this helps,
Frank
> --
> You received this message because you are subscribed to the Google Groups
> "nerves-project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to nerves-projec...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Frank Hunleth
Troodon Software LLC
Embedded Software Development
http://troodon-software.com/

Justin Schneck

unread,
Oct 13, 2014, 10:45:26 AM10/13/14
to nerves-...@googlegroups.com
Thanks Frank,
shortly after posting I re-watched your video on the getting started page, this time with the sound turned up. :)
I started a new elixir project and called out to the erlang code you referenced below in the application start. Everything seems to be working. Thanks for the response and for your work on the nerves project, there is nothing more exciting than having some minimal erlang on my beaglebone black.

Justin 
Reply all
Reply to author
Forward
0 new messages