[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Linux 2.4.5 & PPP...



Hi!

I have got some emails about ppp and the lx-board. I am NOT a Linux hacker,
but after some help from axis it worked :-). If there are more non-Linux
hackers out there who like to know how I did it, read on. If you already
know everything about this, stop reading (or read on and reply with
corrections). If you chose to 

AND AS USUAL ;-) if you chose to try install ppp the same way that I did, I
can't guarantee that it will work for you, and I can't guarantee that it
will not destroy you computer and lx-board. 

If the mailing list don't accept attached files you may find the Makefile
files here:

http://www.algonet.se/~rafaelr/ftp/Makefile.ppp
http://www.algonet.se/~rafaelr/ftp/Makefile.chat

How I did it. Axis sent me the Makefile for ppp and the Makefile for chat is
from the old software (elinux) to devboard (not lx). And then:

1. Logged in as root
2. Downloaded cris compiler tools version 1.13 from
ftp://ftp.axis.com/pub/axis/tools/cris/compiler-kit/ to /root/
3. Installed cris.

rpm -ivh cris-dist-1.13-1.i386.rpm

4. Downloaded devboard_lxR2_0_0.tgz from
http://developer.axis.com/download/devboard_lx/latest/ to /root/
5. Downloaded linux-2.4.5.tar.gz from
ftp://ftp.kernel.org/pub/linux/kernel/v2.4/ to /root/ 
6. Unpacked:

cd ~
tar -zxvf devboard_lx-R2_0_0.tgz
cd ~/axis/devboard_lx/os
tar -zxvf /root/linux-2.4.5.tar.gz

7. Installed (default answers). If you get problems, try '. ./init_env' and
then './install' again:

cd ~/axis/devboard_lx/
./install         
. ./init_env
make kernel

8. Make the kerneln work with ppp (you may use 'make menuconfig' or 'make
xconfig')

cd ~/axis/devboard_lx/os/linux/
make menuconfig
- Select 'Network Device Support -->'
- Select 'PPP (point-to-point protocol) support'
- Select 'PPP support for async serial ports (NEW)'
- Exit and save

9. Open the file axis/developer_lx/packages/devices/standard/Makefile and
add under 'character devices':
	@$(MKNOD) -m 0444           $(DEV)/ppp       c   108 0

10. Compile the kernel

cd ~/axis/devboard_lx/
make kernel
make images

9. Download ppp-2.4.1.tar.gz from ftp://ftp.samba.org/pub/ppp to /root/
10. Unpack the files and copy them to ~/axis/devboard_lx/apps/ppp/

cd ~
tar -zxvf ppp-2.4.1.tar.gz
mkdir ~/axis/devboard_lx/apps/ppp
cp ~/ppp-2.4.1/* ~/axis/devboard_lx/apps/ppp/ -Rv

11. Copy Makefile.ppp to ~/axis/devboard_lx/apps/ppp/pppd/ and run

mv ~/axis/devboard_lx/apps/ppp/pppd/Makefile.ppp
~/axis/devboard_lx/apps/ppp/pppd/Makefile

12. Copy Makefile.chat to ~/axis/devboard_lx/apps/ppp/chat/ and run

mv ~/axis/devboard_lx/apps/ppp/chat/Makefile.chat
~/axis/devboard_lx/apps/ppp/chat/Makefile

12. Add between <subdirs> in the file ~/axis/devboard_lx/makespec (I added
right above </subdirs>):

apps/ppp/pppd -r R2_4_1
apps/ppp/chat

13. Compile and install ppp and chat:

cd ~/axis/devboard_lx/
make cris-axis-linux-gnu
make install

14. Build everything:

cd ~/axis/devboard_lx/
make kernel
make install
make images

15. Flash:

./flashit


To test (more info about ppp & chat in
~/axis/devboard_lx/apps/ppp/README.linux):

1. Login with telnet
2. Plug in a modem in the COM-port on the opposite side of the network port
3. Run:

pppd connect 'chat -v "" AT OK ATDT0858722222 ~' /dev/ttyS0 9600 crtscts
debug defaultroute

 / Best Regards

  /Rafael Reinoso


Makefile.ppp

Makefile.chat