chen gang | 13 Dec 15:14 2011

Network management in embedded

HI,


   We are working on a product with the following network management requirement
   1. dhcp enable/disable is dynamic
   2. if dhcp is enabled, and failed, a default ip/nm/gw should be used. if dhcp is disable, the default ip should be used instead.
   3. while re-plugin the network cable, if dhcp is enabled, then dhcp client should start discovering, if failed, then default network config is used. if dhcp is not enabled , then the default network config should be used instead.

   I am using ltib-20100708, I don't see how udhcpc will fullfill the requirement. Any hints? Thanks!

Br, Chen Gang
 


<div>
<p>HI,<br></p>
<div>
<div>
<br>&nbsp;&nbsp; We are working on a product with the following network management requirement<br>&nbsp;&nbsp; 1. dhcp enable/disable is dynamic<br>&nbsp;&nbsp; 2. if dhcp is enabled, and failed, a default ip/nm/gw should be used. if dhcp is disable, the default ip should be used instead.<br>&nbsp;&nbsp; 3. while re-plugin the network cable, if dhcp is enabled, then dhcp client should start discovering, if failed, then default network config is used. if dhcp is not enabled , then the default network config should be used instead.<br><br>&nbsp;&nbsp; I am using ltib-20100708, I don't see how udhcpc will fullfill the requirement. Any hints? Thanks!<br><br>Br, Chen Gang<br>
</div>
<div>&nbsp;</div>
<div>
<div><br></div>
<br>
</div>
</div>
</div>
Érico Porto | 13 Dec 18:39 2011
Picon

pkgs not from internet

Hello,

I have a beginners question. I want to build u-boot, and I already have the packages I need in /opt/freescale/pkgs and I want to build u-boot from those packages. I'm having an error that seems ltib is trying to download the packages from internet. How do I tell him to use those already in my computer? Do I need to edit something in the .spec file?

My lines are below:

./ltib -m prep -p u-boot-1.1.6-mpc832x_rdb.spec 

You should not be root when running ltib, do you really
want to continue ?  y|N

y

Processing platform: Freescale MPC832x RDB PowerPC board
==========================================================
using config/platform/mpc832x_rdb/.config

Processing: u-boot-1.1.6-mpc832x_rdb
======================================
Testing network connectivity
Testing proxy connection for GPP : FAIL
response was: 500 Can't connect to wwwgate0.freescale.net:1080 (Bad hostname)
Can't get gpp index, proxy forced off
FAILED PPP: : 500 Can't connect to auslxsc01.mtwk.freescale.net:80 (Bad hostname)
OK GPP: 

Try u-boot-1.1.6-83xx-clkpcimod.patch.md5 from the GPP
15:37:07 ERROR 404: Not Found.
Try u-boot-1.1.6-83xx-clkpcimod.patch from the GPP
15:37:08 ERROR 404: Not Found.
Can't get: u-boot-1.1.6-83xx-clkpcimod.patch at ./ltib line 621.
Died at ./ltib line 622.
Exiting on error or interrupt

Érico V. Porto
<div>
<div>Hello,</div>
<div><br></div>
<div>I have a&nbsp;beginners question. I want to build u-boot, and I already have the packages I need in /opt/freescale/pkgs and I want to build u-boot from those packages. I'm having an error that seems ltib is trying to download the packages from internet. How do I tell him to use those already in my computer? Do I need to edit something in the .spec file?</div>

<div><br></div>
<div>My lines are below:</div>
<div><br></div>
<div>
<div>./ltib -m prep -p u-boot-1.1.6-mpc832x_rdb.spec&nbsp;</div>
<div><br></div>
<div>You should not be root when running ltib, do you really</div>
<div>want to continue ? &nbsp;y|N</div>

<div><br></div>
<div>y</div>
<div><br></div>
<div>Processing platform: Freescale MPC832x RDB PowerPC board</div>
<div>==========================================================</div>

<div>using config/platform/mpc832x_rdb/.config</div>
<div><br></div>

<div>Processing: u-boot-1.1.6-mpc832x_rdb</div>
<div>======================================</div>

<div>Testing network connectivity</div>
<div>Testing proxy connection for GPP : FAIL</div>

<div>response was: 500 Can't connect to <a href="http://wwwgate0.freescale.net:1080">wwwgate0.freescale.net:1080</a> (Bad hostname)</div>
<div>

Can't get gpp index, proxy forced off</div>
<div>FAILED PPP: : 500 Can't connect to <a href="http://auslxsc01.mtwk.freescale.net:80">auslxsc01.mtwk.freescale.net:80</a> (Bad hostname)</div>

<div>OK GPP:&nbsp;</div>
<div><br></div>
<div>Try u-boot-1.1.6-83xx-clkpcimod.patch.md5 from the GPP</div>

<div>
<a href="http://bitshrine.org/gpp/u-boot-1.1.6-83xx-clkpcimod.patch.md5">http://bitshrine.org/gpp/u-boot-1.1.6-83xx-clkpcimod.patch.md5</a>:</div>

<div>15:37:07 ERROR 404: Not Found.</div>
<div>Try u-boot-1.1.6-83xx-clkpcimod.patch from the GPP</div>

<div>
<a href="http://bitshrine.org/gpp/u-boot-1.1.6-83xx-clkpcimod.patch">http://bitshrine.org/gpp/u-boot-1.1.6-83xx-clkpcimod.patch</a>:</div>

<div>15:37:08 ERROR 404: Not Found.</div>
<div>Can't get: u-boot-1.1.6-83xx-clkpcimod.patch at ./ltib line 621.</div>

<div>Died at ./ltib line 622.</div>
<div>Exiting on error or interrupt</div>

</div>
<div><br></div>&Eacute;rico V. Porto<br>
</div>
Peter Barada | 13 Dec 18:52 2011
Picon

Re: pkgs not from internet

On 12/13/2011 12:39 PM, Érico Porto wrote:
> Hello,
>
> I have a beginners question. I want to build u-boot, and I already
> have the packages I need in /opt/freescale/pkgs and I want to build
> u-boot from those packages. I'm having an error that seems ltib is
> trying to download the packages from internet. How do I tell him to
> use those already in my computer? Do I need to edit something in the
> .spec file?
>
1) Do not run LTIB as root (just as the message says).

2) Your .ltibrc is indicating theres a local package pool (%lpp) that
points to wwwgat0.freescale.net as well as aus1xc01.mtwk.freescale.net. 
You should remove them as you are not *inside* Motorola's network.

3) The u-boot spec file (u-boot-1.1.6-mpc832x_rdb.spec) does not exist
in the LTIB source on www.ltib.org - I assume this is a Freescale
specific LTIB world.  If so you need to contact Freescale for that
missing patch file.

--

-- 
Peter Barada
peter.barada <at> gmail.com

Érico Porto | 13 Dec 19:56 2011
Picon

Re: pkgs not from internet

Woah, solved! I made md5sum for the files by hand .. and used the correct names in the .spec file... Now, everything works.. sorry to bother! 

Érico V. Porto


On Tue, Dec 13, 2011 at 3:52 PM, Peter Barada <peter.barada <at> gmail.com> wrote:
On 12/13/2011 12:39 PM, Érico Porto wrote:
> Hello,
>
> I have a beginners question. I want to build u-boot, and I already
> have the packages I need in /opt/freescale/pkgs and I want to build
> u-boot from those packages. I'm having an error that seems ltib is
> trying to download the packages from internet. How do I tell him to
> use those already in my computer? Do I need to edit something in the
> .spec file?
>
1) Do not run LTIB as root (just as the message says).

2) Your .ltibrc is indicating theres a local package pool (%lpp) that
points to wwwgat0.freescale.net as well as aus1xc01.mtwk.freescale.net.
You should remove them as you are not *inside* Motorola's network.

3) The u-boot spec file (u-boot-1.1.6-mpc832x_rdb.spec) does not exist
in the LTIB source on www.ltib.org - I assume this is a Freescale
specific LTIB world.  If so you need to contact Freescale for that
missing patch file.

--
Peter Barada
peter.barada <at> gmail.com


_______________________________________________
LTIB home page: http://ltib.org

Ltib mailing list
Ltib <at> nongnu.org
https://lists.nongnu.org/mailman/listinfo/ltib

<div>
<div>Woah, solved! I made md5sum for the files by hand .. and used the correct names in the .spec file... Now, everything works.. sorry to bother!&nbsp;</div>
<br clear="all">&Eacute;rico V. Porto<br><br><br><div class="gmail_quote">On Tue, Dec 13, 2011 at 3:52 PM, Peter Barada <span dir="ltr">&lt;<a href="mailto:peter.barada <at> gmail.com">peter.barada <at> gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">

<div class="im">On 12/13/2011 12:39 PM, &Eacute;rico Porto wrote:<br>
&gt; Hello,<br>
&gt;<br>
&gt; I have a beginners question. I want to build u-boot, and I already<br>
&gt; have the packages I need in /opt/freescale/pkgs and I want to build<br>
&gt; u-boot from those packages. I'm having an error that seems ltib is<br>
&gt; trying to download the packages from internet. How do I tell him to<br>
&gt; use those already in my computer? Do I need to edit something in the<br>
&gt; .spec file?<br>
&gt;<br>
</div>1) Do not run LTIB as root (just as the message says).<br><br>
2) Your .ltibrc is indicating theres a local package pool (%lpp) that<br>
points to <a href="http://wwwgat0.freescale.net" target="_blank">wwwgat0.freescale.net</a> as well as <a href="http://aus1xc01.mtwk.freescale.net" target="_blank">aus1xc01.mtwk.freescale.net</a>.<br>
You should remove them as you are not *inside* Motorola's network.<br><br>
3) The u-boot spec file (u-boot-1.1.6-mpc832x_rdb.spec) does not exist<br>
in the LTIB source on <a href="http://www.ltib.org" target="_blank">www.ltib.org</a> - I assume this is a Freescale<br>
specific LTIB world. &nbsp;If so you need to contact Freescale for that<br>
missing patch file.<br><span class="HOEnZb"><br>
--<br>
Peter Barada<br><a href="mailto:peter.barada <at> gmail.com">peter.barada <at> gmail.com</a><br><br><br>
_______________________________________________<br>
LTIB home page: <a href="http://ltib.org" target="_blank">http://ltib.org</a><br><br>
Ltib mailing list<br><a href="mailto:Ltib <at> nongnu.org">Ltib <at> nongnu.org</a><br><a href="https://lists.nongnu.org/mailman/listinfo/ltib" target="_blank">https://lists.nongnu.org/mailman/listinfo/ltib</a><br></span>
</blockquote>
</div>
<br>
</div>
Rajaram Ghosh | 14 Dec 18:43 2011

Add Device Nodes in device_table.txt doesn't Work

Hi,
I am Using a Ltib BSP from Freescale (ltib-mpc8308erdb-20100413.iso). I have
Created a Device Node Entry in the /bin/device_table.txt File as 

mydev	c	644	0	0	41	0	-	-	-

and Followed the Description in Ltib FAQs
http://ltib.org/documentation-LtibFaq#ref_106 and Force Rebuild as 

$ ./ltib -p dev -f 

After this I can See the Entry for 'mydev' in rootfs/dev Directory in the
Host System.

But Once I Load this Image in the Target System, the /dev Directory there
don't have the Entry for 'mydev' Device.

Any Clue Why this is Not Working?

Regards
Rajaram

Peter Barada | 14 Dec 19:34 2011
Picon

Re: Add Device Nodes in device_table.txt doesn't Work

On 12/14/2011 12:43 PM, Rajaram Ghosh wrote:
> Hi,
> I am Using a Ltib BSP from Freescale (ltib-mpc8308erdb-20100413.iso). I have
> Created a Device Node Entry in the /bin/device_table.txt File as 
>
> mydev	c	644	0	0	41	0	-	-	-
>
> and Followed the Description in Ltib FAQs
> http://ltib.org/documentation-LtibFaq#ref_106 and Force Rebuild as 
>
> $ ./ltib -p dev -f 
>
> After this I can See the Entry for 'mydev' in rootfs/dev Directory in the
> Host System.
>
> But Once I Load this Image in the Target System, the /dev Directory there
> don't have the Entry for 'mydev' Device.
>
> Any Clue Why this is Not Working?
Possibly because you are using udev to manage your devices - startup
scripts for udev create and empty /dev and then udevd populates it based
on device kobject events from the kernel.

--

-- 
Peter Barada
peter.barada <at> gmail.com

Ricardo Ungerer | 15 Dec 13:00 2011
Picon

Problem including external libraries

Hello list,

I'm trying to build a very very simple c program:

========= main.cpp
#include <stdio.h>
#include <boost/filesystem.hpp>

int main( int argc, char* argv[] )
{
    printf("Hello world \n" );
    return 0;
}
=========

with this makefile:

========== Makefile
CROSS=arm-none-linux-gnueabi-

all: link_test
link_test: main.cpp
	$(CROSS)g++ -lboost_filesystem -o link_test main.cpp
===========

the error reported i got is:

$ make ARCH=arm CROSS_COMPILER=arm-none-linux-gnueabi- KERNELDIR=../linux
main.cpp:6:32: error: boost/filesystem.hpp: No such file or directory

My objetive is to successfully include and link the link_test with
boost_filesystem. I included the boost package with "ltib
--configure"->package list->boost.

What i'm not catching here?
And how would i do the same with cmake?

--

-- 
Ricardo Ungerer Garcia Simoes

Stuart Hughes | 15 Dec 14:30 2011

Re: Problem including external libraries

Hi Ricardo,

Take a look at the example helloworld package, which has c/cpp examples.

You can try this with:

./ltib -p helloworld -m prep           # unpack for inspection in rpm/BUILD/
./ltib -p helloworld                         # build it

Look in dist/lfs-5.1/helloworld/helloworld.spec for the build instructions.

The problem you have is that you don't need to use CROSS in ltib as 
within the build environment gcc etc is already spoofed to the cross 
compiler.

Regards, Stuart

On 15/12/11 12:00, Ricardo Ungerer wrote:
> Hello list,
>
> I'm trying to build a very very simple c program:
>
> ========= main.cpp
> #include<stdio.h>
> #include<boost/filesystem.hpp>
>
> int main( int argc, char* argv[] )
> {
>      printf("Hello world \n" );
>      return 0;
> }
> =========
>
>
> with this makefile:
>
> ========== Makefile
> CROSS=arm-none-linux-gnueabi-
>
> all: link_test
> link_test: main.cpp
> 	$(CROSS)g++ -lboost_filesystem -o link_test main.cpp
> ===========
>
> the error reported i got is:
>
> $ make ARCH=arm CROSS_COMPILER=arm-none-linux-gnueabi- KERNELDIR=../linux
> main.cpp:6:32: error: boost/filesystem.hpp: No such file or directory
>
> My objetive is to successfully include and link the link_test with
> boost_filesystem. I included the boost package with "ltib
> --configure"->package list->boost.
>
> What i'm not catching here?
> And how would i do the same with cmake?
>

Ricardo Ungerer | 15 Dec 18:33 2011
Picon

Re: Problem including external libraries

On Thu, Dec 15, 2011 at 11:30 AM, Stuart Hughes <seh <at> zee2.com> wrote:
> Hi Ricardo,
>
> Take a look at the example helloworld package, which has c/cpp examples.
>
> You can try this with:
>
> ./ltib -p helloworld -m prep           # unpack for inspection in rpm/BUILD/
> ./ltib -p helloworld                         # build it
>
> Look in dist/lfs-5.1/helloworld/helloworld.spec for the build instructions.
>
> The problem you have is that you don't need to use CROSS in ltib as within
> the build environment gcc etc is already spoofed to the cross compiler.
>
> Regards, Stuart
>
>
>
>
> On 15/12/11 12:00, Ricardo Ungerer wrote:
>>
>> Hello list,
>>
>> I'm trying to build a very very simple c program:
>>
>> ========= main.cpp
>> #include<stdio.h>
>> #include<boost/filesystem.hpp>
>>
>> int main( int argc, char* argv[] )
>> {
>>     printf("Hello world \n" );
>>     return 0;
>> }
>> =========
>>
>>
>> with this makefile:
>>
>> ========== Makefile
>> CROSS=arm-none-linux-gnueabi-
>>
>> all: link_test
>> link_test: main.cpp
>>        $(CROSS)g++ -lboost_filesystem -o link_test main.cpp
>> ===========
>>
>> the error reported i got is:
>>
>> $ make ARCH=arm CROSS_COMPILER=arm-none-linux-gnueabi- KERNELDIR=../linux
>> main.cpp:6:32: error: boost/filesystem.hpp: No such file or directory
>>
>> My objetive is to successfully include and link the link_test with
>> boost_filesystem. I included the boost package with "ltib
>> --configure"->package list->boost.
>>
>> What i'm not catching here?
>> And how would i do the same with cmake?
>>
>

Hi Stewart,

Removing the variable CROSS on the makefile and compiling it through
ltib *did* work.

Thanks!

--

-- 
Ricardo Ungerer Garcia Simoes

Stuart Hughes | 17 Dec 10:02 2011

Re: pkgs not from internet

Hi Érico,

Just as a note, you don't have to make the md5sum files, if they are
missing, ltib will warn you but will continue.

Regards, Stuart

On 13/12/11 18:56, Érico Porto wrote:
> Woah, solved! I made md5sum for the files by hand .. and used the
> correct names in the .spec file... Now, everything works.. sorry to bother! 
> 
> Érico V. Porto
> 
> 
> On Tue, Dec 13, 2011 at 3:52 PM, Peter Barada <peter.barada <at> gmail.com
> <mailto:peter.barada <at> gmail.com>> wrote:
> 
>     On 12/13/2011 12:39 PM, Érico Porto wrote:
>     > Hello,
>     >
>     > I have a beginners question. I want to build u-boot, and I already
>     > have the packages I need in /opt/freescale/pkgs and I want to build
>     > u-boot from those packages. I'm having an error that seems ltib is
>     > trying to download the packages from internet. How do I tell him to
>     > use those already in my computer? Do I need to edit something in the
>     > .spec file?
>     >
>     1) Do not run LTIB as root (just as the message says).
> 
>     2) Your .ltibrc is indicating theres a local package pool (%lpp) that
>     points to wwwgat0.freescale.net <http://wwwgat0.freescale.net> as
>     well as aus1xc01.mtwk.freescale.net
>     <http://aus1xc01.mtwk.freescale.net>.
>     You should remove them as you are not *inside* Motorola's network.
> 
>     3) The u-boot spec file (u-boot-1.1.6-mpc832x_rdb.spec) does not exist
>     in the LTIB source on www.ltib.org <http://www.ltib.org> - I assume
>     this is a Freescale
>     specific LTIB world.  If so you need to contact Freescale for that
>     missing patch file.
> 
>     --
>     Peter Barada
>     peter.barada <at> gmail.com <mailto:peter.barada <at> gmail.com>
> 
> 
>     _______________________________________________
>     LTIB home page: http://ltib.org
> 
>     Ltib mailing list
>     Ltib <at> nongnu.org <mailto:Ltib <at> nongnu.org>
>     https://lists.nongnu.org/mailman/listinfo/ltib
> 
> 
> 
> 
> _______________________________________________
> LTIB home page: http://ltib.org
> 
> Ltib mailing list
> Ltib <at> nongnu.org
> https://lists.nongnu.org/mailman/listinfo/ltib


Gmane