DM&P xLinux |
Home : Products | Technical Support | 2002/12/31 |
DM&P xLinux is a reduced Linux package for our user to test and use Linux easily. It is small and fast boot. We can add programs or components our user want.
Software | Version | Path |
Linux Kernel | 2.4.17 | /boot/linux |
Loader | LILO 21.4-4 | /sbin |
Shell | BusyBox 0.60.2 | /bin/busybox |
FTP Server | WU-FTPD 2.6.2 | /usr/sbin/ftpd |
TELNET Server | netkit-telnet-0.17 | /usr/sbin/telnetd |
HTTP Server | WN Server 2.2.11 | /usr/httpd |
DHCP Client | udhcp Client 0.9.6 | /usr/dhcpcd |
Share Library | glibc 2.2.4 | /lib |
PPP Daemon/Client | pppd 2.4.1 | /sbin |
Web Pages | /usr/www | |
Size Requirement | 6 MB |
/boot/linux.img | Linux kernel. |
/usr/www | Our web pages are here. |
/etc/init.d/rcS | It will be ran first and you can add your initial programs into it. We add statement assign our IP in this file. |
User name and password file for PPP dial-up. | |
This file makes it possible to automate the mounting of certain file systems, especially at system start-up. | |
This file controls who gets into the FTP server and how. | |
This is the default configuration file for the inetd (super-server) daemon. | |
/etc/inittab | This file plays a crucial role in the boot sequence. |
This file is used by lilo to determine which operating system or kernel to start, as well as to know where to install itself. | |
/etc/profile | It work as autoexec.bat under DOS and will be run automatically. We start inetd on /etc/profile. |
This file allows you to specify which TTY devices the root user is allowed to login on. | |
This file contains information regarding the known services available in the DARPA Internet. |
Command | Path | Description |
insmod | /sbin | Insert module into kernel. |
ppp-on | /sbin | Start a ppp connection. |
ppp-off | /sbin | Stop a ppp connection. |
httpd | /sbin | Start a HTTP server. |
dhcpcd | /sbin | Get IP address from DHCP server. |
ifconfig | /sbin | Configure a network interface. |
fsck.ext2 | /sbin | Check and repair a Linux EXT2 file system |
lilo | /sbin | Install boot loader. |
setserial | /bin | Get/set Linux serial port information. |
TinyLogin commands: (refer to http://tinylogin.busybox.net/TinyLogin.html)
Path | Command |
/bin | adduser, addgroup, deluser, delgroup, login, su |
/sbin | sulogin |
/usr/sbin | passwd |
Commands listed below are implemented by BusyBox: (You can go to http://www.busybox.net/downloads/BusyBox.html to get more information.)
Path | Command |
/bin | cat, chgrp, chmod, chown, cp, date, dd, df, dmesg, echo, false, grep, gunzip, gzip, kill, ln, ls, mkdir, mknod, more, mount, msh, mv, pidof, ping, ps, pwd, rm, rmdir, sed, sh, sleep, sync, tar, touch, true, umount, uname, vi, zcat |
/sbin | chat, halt, init, klogd, lsmod, mkswap, modprobe, poweroff, reboot, swapoff, swapon, syslogd |
/usr/bin | [, basename, chvt, clear, cut, deallocvt, dirname, du, env, find, free, head, id, killall, logger, reset, sort, tail, telnet, tty, uniq, uptime, wc, which, whoami, xargs, yes |
/usr/sbin | chroot |
We put FTP server on our Linux DOC/MDM that you can use FTP to upload your program .The user name is "dmp" and password is "dmp".We recommend you to install Linux(RedHat, Mandrake, SuSE...) on a PC to develop your application. Write and compile your program then upload it to Mity-Mite/Tiny module via FTP to test. You can kill the process if program is not correct .Repeat those steps until program is okay. There is a example:
#!/bin/sh./lcd& sleep 5 ./lcd_time& |
chmod +x ./lcd chmod +x ./lcd_time chmod +x ./demo |
# ps PID Uid Stat Command 1 0 S init 2 0 S [keventd] 3 0 S [ksoftirqd_CPU0] 4 0 S [kswapd] 5 0 S [bdflush] 6 0 S [kupdated] 11 0 S -sh 14 0 S ./ftpd 17 0 S /usr/httpd/wnsd -p 80 19 0 S ./lcd 21 0 S ./lcd_time 22 0 R ps # kill 21 # kill 22 |
Also, you can lunch "demo" script at /etc/profile to run it automatically when program is okay.
[root@/root/grlcd]# ldd lcd libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 (0x4002c000) libm.so.6 = > /lib/libm.so.6 (0x4006e000) libc.so.6 = > /lib/libc.so.6 (0x40090000) /lib/ld-linux.so.2 = > /lib/ld-linux.so.2 (0x40000000) [root@/root/grlcd]# |
1. /etc/ppp/pap-secrets
This file contain user's account, you can see only one line:
my_username ppp0 my_password |
"my_username" is your dial-up account user name, "my_password" is password. You should change them with yours.
2. /usr/sbin/ppp-on
There are two lines.
#!/bin/sh pppd nodetach lock modem crtscts /dev/ttyS0 38400 noipdefault defaultroute noauth \ name my_username connect "chat -v '' ATDT123456789 CONNECT" & |
You should replace "my_username" with your user name as "/etc/ppp/pap-secrets". \ "ATDT123456789" is AT command to dial to ISP. You should reaplce "123456789" with your ISP's phone number.
Now, you can type "ppp-on" to dial-up to your ISP and "ppp-off" to hang-up. Type "ifconfig" to display network configuration, you can find device "eth0" and "ppp0". Any problem, mail us to help you to dial-up.
#dd if=/tmp/xLinuxR3.dd of=/dev/hdb count=15944 bs=1024 #sync |
Linux Kernel | http://www.kernel.org/ |
BusyBox | http://www.busybox.net/ |
TinyLogin | http://tinylogin.busybox.net/ |
Linux NetKit | ftp://ftp.uk.linux.org/pub/linux/Networking |
WU-FTPD | http://www.wu-ftpd.org/ |
FTP4ALL | http://www.ftp4all.de/v3/noframes/index_v3.html |
WN Server | http://hopf.math.nwu.edu/ |
udhcp | http://udhcp.busybox.net/ |
DMP Electronics Inc. All rights reserved. | Email us: info@dmp.com.tw |