Sunteți pe pagina 1din 25

Linux Installation and Driver

Support

Paul Yang
Application Engineer
Applied Computing Group
Advantech Co. LTD.
Agenda
How come we choose Linux?
Fundamental
Linux installation
Linux Driver installation
Linux Testing
Live-demo (PPC-153T)
How come we choose Linux??
1.Stability

2. Availability

3. Server Capability

4. GNU License

5. Customizable GUI
Fundamental

Linux Distributor Overview


Red Hat
Red Hat Linux 9.0
Mandrake
Mandrake Linux 9.0
Slackware

GNU Debian
Fundamental

H/W Compatible
Going to Linux distributor website to
download the H/W compatible list,
http://hardware.redhat.com/hcl/

In ADVATECH, you can go here..


http://172.16.8.114/phpbb2/index.php
Fundamental
Where i can find the driver?

Going to chips vendor website.


www.intel.com , www.nvidia.com

Using research engine


Google

Going to ADVATECH Support zone


172.16.8.114/phpbb2/index.php
Fundamental

A Linux installation
Not provided as a standard package
Customizable
Component Based
Components can be
added optionally
Fundamental
Linux Kernel Chart:
Fundamental
Modules mean.?

In Linux, we used to call the driver as Modules


The modules feature is that even system has been in operation, we also can
add the new function (program code) combining with Kernel without system
shutdown
Modules is existed by object code , so can easily link into kernel
Fundamental
Basically, modules divide 3 parts in Linux

Character Device
Ex: /dev/console; /dev/ttys0

Block Device
Ex: /dev/hda1

Network Interface
Ex: /dev/eth0
Fundamental
The Linux System Directories

/bin /sbin Stores User Commands


/etc Contains Configuration
/lib Libraries + /bin /sbin
/dev Stores device files
/scr Source Code for
applications and drivers
Fundamental
General Linux driver or AP format on the internet

1. RPM (Redhat)
which platform Un-compile source
version
code
Ex: zsh-3.05-15.i386.rpm ; zsh-3.05-15.src.rpm
Release count

2. Tarball (Slackware) Already compiled binary file

Ex: zip-2.3-3.tar.gz ; xmecd.bin.tar.gz


version

3. Deb (GNU Debian)


Release count

Ex: tkpgp_1.11-2.deb
Fundamental
General Linux command for installation
1. GZIP
#gunzip r xxxx.gz recursive

2. BZIP2
#bzip2 d xxxx.bz2

3.COMPRESS
#compress -d xxxx.z

4. UNZIP
#unzip -d xxxx.zip
Fundamental
General Linux command for installation

5. RPM
#rpm -ivh xxxx.rpm install
#rpm -Uvh xxxx.rpm upgrade
#rpm -ql xxxx.rpm question
#rpm -e xxxx.rpm erase
#rpm --rebuild xxxx.src.rpm install for SRC

6. Tar
#tar zxvf xxxx.tar.gz
#./configure create Makefile
#make compile and link
#make install install to corresponding folder
Fundamental
General Linux command for installation

7. lsmod
#lsmod

8. Insmod
#insmod <path> 8139too.o

9.Rmmod
#rmmod <path> 8139too.o
10. Modprobe
# modprobe c list all modules
# modprobe c | grep scsi list the modules used by SCSI
# modprobe 8139too.o load modules
Linux Installation (Redhat)
Disk Space Requirements
Use CD-Rom boot
Installation UI
Text mode
Graph mode
Disk partition
Support software RAID
Install components
Disk Space Requirements
Personal Desktop
1.5GB~1.8GB
Workstation
2.0GB~2.3GB
Server
1.3GB~2.1GB
Custom
400MB~4.5GB
Disk partition
Linux operation mode
0 Halt (Dont set initdefault to this)
1 Single user mode
2 Multiuser. without NFS (same as 3, if you
dont have networking)
3 Full multiuser mode
4 Unused
5 X windows
6 Reboot (Dont set initdefault to this)
Operation mode setting
In text mode
Use startx into X windows
Modify /etc/inittab
In X windows mode
Modify /etc/inittab
Use hot key Ctrl + Alt + F1~F7
Linux Driver installation
How to install? (Intel 82545GM Gigabit Ethernet Controller )

1. Download the driver from Intel


2. tar zxvf e1000-x.x.x.tar.gz
3. Check out README very important step
4. cd e1000-x.x.x/src/
5. make install
6. Modules Will be Installed to
/lib/modules/<KERNEL_VERSION>/kernel/drivers/net/e1000.o
7. modprobe /lib/modules/<KERNEL_VERSION>/kernel/drivers/net/e1000.o
8. Add alias eth0 e1000.o into /etc/modules.conf
9. Add your internet info such as ip, netmask, gateway into /etc/sysconfig/network-
scripts/ifcfg-eth0
10. Add DNS info into /etc/resolve.conf
11. cd /etc/rc.d/init.d/network restart restart your network configuration
12. Ifconfig ; ping www.yahoo.com to verify your network is setup correctly
13. You can use setup to replace step 9,10 command
Linux Driver installation
Notice
Check out your H/W whether its listed in distributor compatible list

Study README before you do any stupid thing

Figure out your kernel, library and X-window version


#uname r ; ls l libc.so.*(lib6~?)

Using the latest Linux version in order to avoid an awkward situation that
cant find out the driver

Using ghost to backup your Linux before you try to compile the kernel
http://service1.symantec.com/SUPPORT/ghost.nsf/docid/1999021909463125
==>Ghost compatibility with Linux
Linux Testing
Perform ping, ifconfig to monitor the status
(Network )
Test by devicemouse/keyboard/compact disk (USB, COM,
Parallel)
Perform cat /dev/ttyS0 then move your serial mouse
Perform cat /dev/sndstat or sndconfig to know the status
(Audio)
Linux support policy
Binary file package
Download the free evaluation support package
from Design-in Zone if they need Linux
version
Source code package
When customers wants to do their own
customization or modification, they can buy
the Linux Source Code CD. The ITP for each
model is USD $3000. Please use NRE-ESCO
to order or inquiry to RSM.
Live-demo (PPC-127)

S-ar putea să vă placă și