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

[microblaze-uclinux] Please help tune PPP



Hi,
Because image size no smal to download via UART (Ehernet not have), I'm trying tuning PPP connect from host PC to uClinux board.
I find next example:
inittab:
s3:respawn:/sbin/agetty -iLn -l /etc/ppp/nullppplogin 115200 ttyS2 vt100 
/etc/ppp/nullppplogin:
#!/bin/sh
mesg n
stty -echo
while true
do
chat -t 3600 CLIENT CLIENTSERVER
case "$?" in
0) exec /usr/sbin/pppd;;
3) continue;;
*) break;;
esac
done 
/etc/ppp/options.ttyS2 :
-detach
silent
xonxoff
asyncmap 0xffffffff
local
lock
noauth
proxyarp
:192.168.5.254
lcp-echo-interval 20
lcp-echo-failure 2
I correct ttyS2 to ttyS0
Have next result:
Linux version 2.4.27-uc1 (root@localhost) (gcc version 2.95.3-4 Xilinx EDK 6.3 Build EDK_Gmm.12.2) #69 ¦?Te¦- ¦?¦¦Te 13 01:37:31 SAMST 2005
On node 0 totalpages: 8192
zone(0): 8192 pages.
zone(1): 0 pages.
zone(2): 0 pages.
CPU: MICROBLAZE
Console: xmbserial on UARTLite
Kernel command line: -
Calibrating delay loop... 24.21 BogoMIPS
Memory: 32MB = 32MB total
Memory: 29644KB available (1063K code, 1700K data, 44K init)
Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Microblaze UARTlite serial driver version 1.00
ttyS0 at 0x20600000 (irq = 1) is a Microblaze UARTlite
Starting kswapd
xgpio #0 at 0x31000000 mapped to 0x31000000
Xilinx GPIO registered
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
uclinux[mtd]: RAM probe address=0x40143088 size=0x170000
uclinux[mtd]: root filesystem index=0
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 2048)
VFS: Mounted root (romfs filesystem) readonly.
Freeing init memory: 44K
Mounting proc:
Mounting var:
Populating /var:
Running local start scripts.
Mounting /etc/config:
Populating /etc/config:
flatfsd: Nonexistent or bad flatfs (-43), creating new one...
flatfsd: Failed to write flatfs (-43): No such device
flatfsd: Created 3 configuration files (295 bytes)
Setting hostname:
Setting up interface lo:
Starting DHCP client:
Starting inetd:
Starting thttpd:
Jan  1 00:00:34 dhcpcd[33]: dhcpStart: ioctl SIOCGIFHWADDR: No such device
 
mesg: /dev/ttyS0: Read-only file system
After I trying direct start pppd in init
inittab:
s3:respawn:/bin/pppd file /etc/ppp/options.ttyS0
/etc/ppp/options.ttyS0:
/dev/ttyS0
115200
noauth
mru 1500
192.168.0.100:192.168.99.2
natmask 255.255.255.0
bsdcomp 0
chap-interval 15
silent
local
lock
xonxoff
asyncmap 0xffffffff
defaultroute
 
Show final part of log:
Populating /etc/config:
flatfsd: Nonexistent or bad flatfs (-43), creating new one...
flatfsd: Failed to write flatfs (-43): No such device
flatfsd: Created 3 configuration files (295 bytes)
Setting hostname:
Setting up interface lo:
Starting DHCP client:
Starting inetd:
Starting thttpd:
Jan  1 00:00:34 dhcpcd[33]: dhcpStart: ioctl SIOCGIFHWADDR: No such device
 
init: /bin/pppd respawning too fast
 
If I change "respawn" to "unknown" not have effect.
 
 
 
How have ideas?
Pavel.