1. Install standard Debian 5 without X-Windows
2. Install gcc library
#apt-get install gcc
#apt-get install make
3. Update kernel to 2.6.27.7
download kernel source code 2.6.27.7 to /usr/src/2.6.27.7
#apt-get install ncurses*
#make mrproper
#make menuconfig
#make clean
#make bzImage
#make modules
#make modules_install
#cp arch/x86/boot/bzImage /boot/vmlinuz-2.6.27.7
#cp .config /boot/config-2.6.27.7
#mkinitramfs -o /boot/initrd-imge.2.6.27.7 2.6.27.7
modify /boot/grub/menu.lst
-> add title , root , kernel , initrd
-> at kernel line , add vga=0x312 to set framebuffer resolution 640 * 480
reboot
4. install lan card driver
-> rmmod r8169
-> download r8101 newest driver
-> build r8101.ko
#make all
#depmod -a
#modprobe r8101
#vi /etc/network/interfaces
add 3 lines
#auto eth0
#iface eth0 inet dhcp
#ifup eth0
reboot
5. Build IO Card
->cp IO Card source code to /usr/mod_test
#make all
#cp testmod.ko /lib/modules/kernel/2.6.27.7/kernel/driver/pci/testmod.ko
-> set auto load modules when booting
-> add one line "testmod" in /etc/modules
-> add script to execute when booting
#vi /etc/init.d/UserSH
->add one line
->mknod /dev/GPIO c major_num 0
->major_num is dmesg to get testmod initial major number
->make link to /etc/rc2.d
#ln -s /etc/init.d/UserSH S99UserSH
#reboot
6. add apt source.list
/etc/apt/sources.list
deb http://ftp.tw.debian.org/debian/ lenny main
deb-src http://ftp.tw.debian.org/debian/ lenny main
deb ftp://opensource.nchc.org.tw/debian/ lenny main
deb-src ftp://opensource.nchc.org.tw/debian/ lenny main
7. apt-get update
8. install sdl library and sound card
#apt-get install build-essential libsdl1.2-dev
libsdl-mixer1.2-dev libsdl-image1.2-dev alsa-utils mpg123-alsa
#alsaconf
#wget http://www.libsdl.org/projects/aliens/src/aliens-1.0.2.tar.gz
#tar zxvf aliens-1.0.2.tar.gz
#cd aliens-1.0.2
#./configure
#make
9. install PCIIO card
build source code to make testmod.ko
10. install splashy
留言列表