public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* ppp on 2.6.18
@ 2008-06-16 12:36 mohammed shareef
  2008-06-16 12:53 ` James Chapman
  0 siblings, 1 reply; 8+ messages in thread
From: mohammed shareef @ 2008-06-16 12:36 UTC (permalink / raw)
  To: omap, linux-ppp

Dear all,

i have enabled ppp services when configuring the kernel 2.6.18.

the kernel bootup  of omap5912 osk says this:

PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered

but when i type "pppd -h" in the osk console i get:

# pppd -h
-sh: pppd: not found

please help me in configuring ppp.
thank you,
Shareef

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: ppp on 2.6.18
  2008-06-16 12:36 ppp on 2.6.18 mohammed shareef
@ 2008-06-16 12:53 ` James Chapman
  2008-06-16 14:13   ` James Carlson
  0 siblings, 1 reply; 8+ messages in thread
From: James Chapman @ 2008-06-16 12:53 UTC (permalink / raw)
  To: mohammed shareef; +Cc: omap, linux-ppp

mohammed shareef wrote:
> Dear all,
> 
> i have enabled ppp services when configuring the kernel 2.6.18.
> 
> the kernel bootup  of omap5912 osk says this:
> 
> PPP generic driver version 2.4.2
> PPP Deflate Compression module registered
> PPP BSD Compression module registered
> 
> but when i type "pppd -h" in the osk console i get:
> 
> # pppd -h
> -sh: pppd: not found

You don't have the userspace pppd installed.

-- 
James Chapman
Katalix Systems Ltd
http://www.katalix.com
Catalysts for your Embedded Linux software development


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: ppp on 2.6.18
  2008-06-16 12:53 ` James Chapman
@ 2008-06-16 14:13   ` James Carlson
  2008-06-16 14:19     ` mohammed shareef
  0 siblings, 1 reply; 8+ messages in thread
From: James Carlson @ 2008-06-16 14:13 UTC (permalink / raw)
  To: James Chapman; +Cc: mohammed shareef, omap, linux-ppp

James Chapman writes:
> mohammed shareef wrote:
> > Dear all,
> > 
> > i have enabled ppp services when configuring the kernel 2.6.18.
> > 
> > the kernel bootup  of omap5912 osk says this:
> > 
> > PPP generic driver version 2.4.2
> > PPP Deflate Compression module registered
> > PPP BSD Compression module registered
> > 
> > but when i type "pppd -h" in the osk console i get:
> > 
> > # pppd -h
> > -sh: pppd: not found
> 
> You don't have the userspace pppd installed.

Or your path is such that the shell cannot find it.

-- 
James Carlson         42.703N 71.076W         <carlsonj@workingcode.com>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: ppp on 2.6.18
  2008-06-16 14:13   ` James Carlson
@ 2008-06-16 14:19     ` mohammed shareef
  2008-06-16 14:23       ` James Carlson
  2008-06-16 14:38       ` James Chapman
  0 siblings, 2 replies; 8+ messages in thread
From: mohammed shareef @ 2008-06-16 14:19 UTC (permalink / raw)
  To: James Carlson; +Cc: James Chapman, omap, linux-ppp

I downloaded a 2.4.4 ppp package and did the following to compile it
for my omap-osk:

./configure --host=arm-linux --prefix=/root/Desktop/pppbuild
make
make install

then i copied the binaries to the filesystem of my omap. but when i
say: "pppd -h" the system hangs. i guess this is because my filessytem
files are not proper or i didnt compile them properly.
please help.
thank you,
regards

On Mon, Jun 16, 2008 at 7:43 PM, James Carlson <carlsonj@workingcode.com> wrote:
> James Chapman writes:
>> mohammed shareef wrote:
>> > Dear all,
>> >
>> > i have enabled ppp services when configuring the kernel 2.6.18.
>> >
>> > the kernel bootup  of omap5912 osk says this:
>> >
>> > PPP generic driver version 2.4.2
>> > PPP Deflate Compression module registered
>> > PPP BSD Compression module registered
>> >
>> > but when i type "pppd -h" in the osk console i get:
>> >
>> > # pppd -h
>> > -sh: pppd: not found
>>
>> You don't have the userspace pppd installed.
>
> Or your path is such that the shell cannot find it.
>
> --
> James Carlson         42.703N 71.076W         <carlsonj@workingcode.com>
>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: ppp on 2.6.18
  2008-06-16 14:19     ` mohammed shareef
@ 2008-06-16 14:23       ` James Carlson
  2008-06-16 14:38       ` James Chapman
  1 sibling, 0 replies; 8+ messages in thread
From: James Carlson @ 2008-06-16 14:23 UTC (permalink / raw)
  To: mohammed shareef; +Cc: James Chapman, omap, linux-ppp

mohammed shareef writes:
> I downloaded a 2.4.4 ppp package and did the following to compile it
> for my omap-osk:
> 
> ./configure --host=arm-linux --prefix=/root/Desktop/pppbuild
> make
> make install
> 
> then i copied the binaries to the filesystem of my omap. but when i
> say: "pppd -h" the system hangs. i guess this is because my filessytem
> files are not proper or i didnt compile them properly.

That sounds like a fairly basic problem with your platform.  The '-h'
option just prints out some simple explanatory text and exits.  It's
the pppd equivalent of a "hello, world" program.  It doesn't do much
at all.

If that doesn't work, then I'd expect that either your cross-compiler
is misconfigured, or there are serious problems in the platform
itself.  Either way, I don't think I can help.

-- 
James Carlson         42.703N 71.076W         <carlsonj@workingcode.com>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: ppp on 2.6.18
  2008-06-16 14:19     ` mohammed shareef
  2008-06-16 14:23       ` James Carlson
@ 2008-06-16 14:38       ` James Chapman
  2008-06-16 15:10         ` mohammed shareef
  1 sibling, 1 reply; 8+ messages in thread
From: James Chapman @ 2008-06-16 14:38 UTC (permalink / raw)
  To: mohammed shareef; +Cc: James Carlson, omap, linux-ppp

mohammed shareef wrote:
> I downloaded a 2.4.4 ppp package and did the following to compile it
> for my omap-osk:
> 
> ./configure --host=arm-linux --prefix=/root/Desktop/pppbuild
> make
> make install

The configure script isn't one that supports cross compilation, 
unfortunately. So it is likely that you built files for your native 
desktop system.

To cross compile, do
make CC=arm-linux-gcc LD=arm-linux-ld

but make sure that your compiler uses its own version of the system 
headers, not your desktop versions.


-- 
James Chapman
Katalix Systems Ltd
http://www.katalix.com
Catalysts for your Embedded Linux software development


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: ppp on 2.6.18
  2008-06-16 14:38       ` James Chapman
@ 2008-06-16 15:10         ` mohammed shareef
  2008-06-16 15:22           ` James Chapman
  0 siblings, 1 reply; 8+ messages in thread
From: mohammed shareef @ 2008-06-16 15:10 UTC (permalink / raw)
  To: James Chapman; +Cc: James Carlson, omap, linux-ppp

Dear James,

i did the following as u said:

./configure --target=arm-linux --enable-arm --prefix=/root/Desktop/pppbuild

make CC=arm-linux-gcc LD=arm-linux-ld

it compiles without any error;

but when i do:
make install i get the following error:

install -d -m 755 /root/Desktop/pppbuild/sbin
install -d -m 755 /root/Desktop/pppbuild/share/man/man8
cd chat; make  install
make[1]: Entering directory `/root/Desktop/ppp-2.4.4/chat'
mkdir -p /root/Desktop/pppbuild/sbin /root/Desktop/pppbuild/share/man/man8
install -s -c chat /root/Desktop/pppbuild/sbin
strip: Unable to recognise the format of the input file
`/root/Desktop/pppbuild/sbin/chat'
install: strip process terminated abnormally
make[1]: *** [install] Error 1
make[1]: Leaving directory `/root/Desktop/ppp-2.4.4/chat'
make: *** [install-progs] Error 2

thank you

On Mon, Jun 16, 2008 at 8:08 PM, James Chapman <jchapman@katalix.com> wrote:
> mohammed shareef wrote:
>>
>> I downloaded a 2.4.4 ppp package and did the following to compile it
>> for my omap-osk:
>>
>> ./configure --host=arm-linux --prefix=/root/Desktop/pppbuild
>> make
>> make install
>
> The configure script isn't one that supports cross compilation,
> unfortunately. So it is likely that you built files for your native desktop
> system.
>
> To cross compile, do
> make CC=arm-linux-gcc LD=arm-linux-ld
>
> but make sure that your compiler uses its own version of the system headers,
> not your desktop versions.
>
>
> --
> James Chapman
> Katalix Systems Ltd
> http://www.katalix.com
> Catalysts for your Embedded Linux software development
>
>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: ppp on 2.6.18
  2008-06-16 15:10         ` mohammed shareef
@ 2008-06-16 15:22           ` James Chapman
  0 siblings, 0 replies; 8+ messages in thread
From: James Chapman @ 2008-06-16 15:22 UTC (permalink / raw)
  To: mohammed shareef; +Cc: James Carlson, omap, linux-ppp

mohammed shareef wrote:
> Dear James,
> 
> i did the following as u said:
> 
> ./configure --target=arm-linux --enable-arm --prefix=/root/Desktop/pppbuild
> 
> make CC=arm-linux-gcc LD=arm-linux-ld
> 
> it compiles without any error;
> 
> but when i do:
> make install i get the following error:
> 
> install -d -m 755 /root/Desktop/pppbuild/sbin
> install -d -m 755 /root/Desktop/pppbuild/share/man/man8
> cd chat; make  install
> make[1]: Entering directory `/root/Desktop/ppp-2.4.4/chat'
> mkdir -p /root/Desktop/pppbuild/sbin /root/Desktop/pppbuild/share/man/man8
> install -s -c chat /root/Desktop/pppbuild/sbin
> strip: Unable to recognise the format of the input file

You need to add STRIP=arm-linux-strip and possibly 
INSTALL=arm-linux-install to the make install command line. If that 
fails, hack the -s out of the install command in chat/Makefile and strip 
the file by hand.

> `/root/Desktop/pppbuild/sbin/chat'
> install: strip process terminated abnormally
> make[1]: *** [install] Error 1
> make[1]: Leaving directory `/root/Desktop/ppp-2.4.4/chat'
> make: *** [install-progs] Error 2
> 
> thank you
> 
> On Mon, Jun 16, 2008 at 8:08 PM, James Chapman <jchapman@katalix.com> wrote:
>> mohammed shareef wrote:
>>> I downloaded a 2.4.4 ppp package and did the following to compile it
>>> for my omap-osk:
>>>
>>> ./configure --host=arm-linux --prefix=/root/Desktop/pppbuild
>>> make
>>> make install
>> The configure script isn't one that supports cross compilation,
>> unfortunately. So it is likely that you built files for your native desktop
>> system.
>>
>> To cross compile, do
>> make CC=arm-linux-gcc LD=arm-linux-ld
>>
>> but make sure that your compiler uses its own version of the system headers,
>> not your desktop versions.
>>
>>
>> --
>> James Chapman
>> Katalix Systems Ltd
>> http://www.katalix.com
>> Catalysts for your Embedded Linux software development
>>
>>
> 


-- 
James Chapman
Katalix Systems Ltd
http://www.katalix.com
Catalysts for your Embedded Linux software development


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-06-16 15:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-16 12:36 ppp on 2.6.18 mohammed shareef
2008-06-16 12:53 ` James Chapman
2008-06-16 14:13   ` James Carlson
2008-06-16 14:19     ` mohammed shareef
2008-06-16 14:23       ` James Carlson
2008-06-16 14:38       ` James Chapman
2008-06-16 15:10         ` mohammed shareef
2008-06-16 15:22           ` James Chapman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox