LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 01-14-2014, 04:10 PM   #1
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Beagleboard Black static IPv4 connman difficulties


Background

I'm using the BBB with the provided Angstrom Linux.

Linux beaglebone 3.8.13 #1 SMP Tue Jun 18 02:11:09 EDT 2013 armv7l GNU/Linux

Supplied with that is connman, which for me is new over the /etc/network/interfaces method.

Further, I find is that the connman I have does not include connmanctl and there's a few email threads from about a year ago noting that the connman in Angstrom is very old.

I'm assigning a static IP address, using one of the connman scripts to do this; the intention is to make a distributable embedded product - by which I mean that the static IP will always be the same because it's internal to a larger architecture, I'll be making copies of the disk to establish the base disk and then have upgrade-able application code.

Using the script to set a static IP, the flow goes as following:
  1. Determine the cabled Ethernet resource by inspecting /var/lib/connman directory - there should be a sub-directory under there using the name convention: ethernet_<mac-addr-digits>_cable
  2. Invoke /usr/lib/connman/test/set-ipv4-method script with the arguments "manual 192.168.2.7 255.255.255.0" to select the address I desire for this and all similar systems.

My Problem(s)

My first tact was in my startup script to invoke the connman set-ipv4-method script with the correct arguments. Further, my script obtained the correct resource name by looking at the /var/lib/connman directory to see what resource was there, expecting only the one wired Ethernet.

The first problem came upon making my disk copy and placing it on another board. The fault was that the disk copy included the sub-directory with a matching MAC resource from the original board and also the discovered MAC resource directory from the new board it was now booting off of. Therefore the process failed.

I don't like things that are close to hacks; wasn't liking this whole connman script concept in the first place; I'd rather have a network configuration file. However to move ahead, a minor pain would be "erase the resource directory from /var/lib/connman and let the connman daemon create a new one for the first boot". Well, it does work, but something is not perfect, it pretty much always fails the first boot and even via the use of a sleep-retry once step I incorporated in my script. It works the second boot, telling me that the search and resolve resources has not fully been completed.

My Questions

Based on this, I find it hard to believe that connman is this great embedded board network utility. I haven't grown to like it at all, except that it does work, when it works. The problem is establishing a method to cause identical configuration for all systems, regardless of the physical resource. In short, when I had /etc/network/interfaces, I could configure eth0 to be static and that worked no matter what CPU board I plugged my flash card into. So I'm wondering if there are any suggestions to the tunes of:
  1. Give it up and here's an Angstrom way to go back to /etc/network conventions
  2. Here's a way to upgrade to the most recent connman and here are some connman suggestions to streamline the complicated way you're doing this
  3. Use another Linux distribution

Final Note

Sorry for the length. I just realized that we did a Raspberry Pi project, recently; we stayed with DHCP, but I just checked one of those systems, arm v6, Linux is 3.6, and it uses the /etc/network convention.

Anyways, if there are suggestions, I'm happy to hear them.
 
Old 01-14-2014, 04:38 PM   #2
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 385Reputation: 385Reputation: 385Reputation: 385
Short answer: Use another distro.

Preferably one that have a larger community and is well mainteined. Also one that doesn't need anything like connman, but just use what works, why have the hasle of such tools that works when they want(is it some sort of AI with own will)?

How about this, Debian Arm ?
Debian is rock solid and works! What else you need ?

Regards
 
1 members found this post helpful.
Old 01-15-2014, 07:22 AM   #3
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882

Original Poster
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Thanks for the opinion ukiuki. When I see the whole underpinnings replaced, not just the top level app/daemon; I do wonder if I'm missing a core Linux trend. Somehow I suspected I hadn't. I'll give the debian arm a try once we move beyond our first proto stage, thanks for the suggestion.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] BeagleBoard Black and Slackware ARM TonyRuss56 Slackware - ARM 5 12-31-2013 02:27 AM
LXer: Review: Beagleboard Beaglebone Black LXer Syndicated Linux News 0 06-13-2013 05:11 PM
IPv4 static ip prefix problem happyg13 Fedora 2 10-23-2006 02:17 PM
static ipv4 linuxtesting2 Solaris / OpenSolaris 2 09-02-2006 10:31 AM
How do you set up a static IPv4-in-IPv6 tunnel? daveman Linux - Networking 1 11-16-2004 02:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 11:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration