Re: Newbie question - ZipEMC-02
Hi Pete
I'm trying to throw the same thing together but with Linux-2.2.19+RTAI-1.7 the
kernel patch and compile went well but the modules bailed out early on
HCFmodem or something ,I didnt worry about it this time (have to remember to
fix it later :-) tested fine with the rtai examples
if all the realtime modules got built and the examples work you should be OK
so far...
getting the rcslib and EMC running are the tough part :-)
the ZipSlack distro is cut to the bone to get it to fit on a 100MB Zip disk
and many of the standard packages were stripped down to almost nothing
(many libs were left out from the glibc package etc.)
so you will need to upgrade some of the ones that are already installed
and add some new ones in order to get EMC working
(I found all this out the hard way when I did the first ZipEMC install)
I did all the downloading from windoze ,I'll add the batch file I used at the
end of this post (dont want to make it an attachment ,windoze would try to
run it :-) I'll also add a script to upgrade the packages in linux ,some of
them need to be done in order or they wont stick
oh yea ,and the batch file I use to run loadlin from DOS
that 206 Meg. will start growing pretty fast ,by the time you get everything
its gona be BIG ,I added a lot of stuff to mine including most of KDE-2.2.2
and some other upgrades from Slackware-current and I'm sure there is
a bit of un-needed fluff in my setup
from my notes so far
first
run the updatedb command to build the file /var/spool/locate/locatedb
or you will get a bunch of warnings when building the rcslib
now we need to change some stuff in /usr/local/nist/rcslib/etc
create a new def file for this kernel with these commands
cat linux_2_2_18.def > linux_2_2_19.def
cat rtlinux_3_0.def > rtlinux_3_1.def
now open linux_2_2_19.def and edit line 44 to read
RTLINUX = /usr/src/rtlinux-3.1
and on line 61 change -Dlinux_2_2_18 to read -Dlinux_2_2_19
(its over in column 170 ,so slide right a bit)
there have been some bad reports on rtl-3.1 locking up so you may have to
go back to rtl-3.0 ,but you may as well give it a shot
now you can try to buildrcs and see if it works ,I use this command to
redirect the output and errors to a file
./buildrcs linux_2_2_19 &>buildrcs1.txt
and then
./buildrcs rtlinux_3_0.def &>buildrcs2.txt
I'm at about this stage on my system using RTAI
but its getting late so I'm calling it a day
(in other words I'm running into problems :-)
here are those other files I mentioned earlier
download.bat
update
linux.bat
heres the batch file to download all the stuff you need to
build a ZipEMC-02 distro.. at least I hope this is all of them :-)
(Pete ,you probably have some of these files already)
---------------cut with ax and save as download.bat----------------------
echo begin 200MB download
echo all of this expands to over a gig when installed!
rem now I am in control of your computer BuWaaHaHaHaHahaha.....
rem OK start somewhere sane
cd \
rem and build our download tree
mkdir \zip_dl
cd zip_dl
rem make a directory to download utilitys to
mkdir util
cd util
rem download and install some extra dos utilitys
rem ========infozip=========================
mkdir infozip
cd infozip
rem build an ftp script file
echo cd pub/infozip/WIN32> util.txt
echo binary>> util.txt
echo get unz542xN.exe>> util.txt
echo bye>> util.txt
rem using ftp download infozip and install it
rem create an ftp log
echo Start of infozip download>ftp.log
ftp -s:util.txt -A ftp.info-zip.org>>ftp.log
echo End of infozip download>>ftp.log
rem execute in place to extract the files
unz542xN.exe
rem copy them to a directory in the default path
copy unzip.txt c:\windows\command
copy unzipsfx.txt c:\windows\command
copy funzip.txt c:\windows\command
copy zipinfo.txt c:\windows\command
copy ziplimit.txt c:\windows\command
copy unzip.exe c:\windows\command
copy funzip.exe c:\windows\command
copy unzipsfx.exe c:\windows\command
copy SFXWiz32.exe c:\windows\command
copy unzipsfx-gcc.exe c:\windows\command
copy SFXWiz32-gcc.exe c:\windows\command
rem go back to download directory
cd ..
rem ===============wget============================
rem then download wget for windows ,unzip and install it
mkdir wget
cd wget
rem build an ftp script file
echo cd projects/wget/windows> util.txt
echo binary>> util.txt
echo get wget20011212-1.8pb.zip>> util.txt
echo bye>> util.txt
rem using ftp download wget
echo Start of wget download>>ftp.log
ftp -s:util.txt -A ftp.sunsite.dk>>ftp.log
echo End of wget download>>ftp.log
rem use unzip to install wget in the default path
unzip wget20011212-1.8pb.zip -x News -d c:\windows\command
rem go back to download directory
cd ..
rem ===============zip============================
mkdir zip
cd zip
rem get the zip utility
wget ftp://ftp.info-zip.org/pub/infozip/WIN32/zip23xN.zip -o log.txt
rem use unzip to install zip in the default path
unzip zip23xN.zip -x WHATSNEW LICENSE WHERE README -d c:\windows\command
rem go back to download directory
cd ..
rem ===============cvs============================
mkdir cvs
cd cvs
rem using wget download cvs (http)
wget http://ftp.cvshome.org/win32/cvs-1-10.zip -o log.txt
rem use unzip to install cvs in the default path
unzip cvs-1-10.zip -x FAQ NEWS README -d c:\windows\command
rem go back to download directory
cd ..
rem ===============ssh============================
mkdir ssh
cd ssh
rem using wget download ssh (ftp)
wget ftp://ftp.reportlab.com/tools/ssh-1.2.14-win32bin.zip -o log.txt
rem use unzip to install ssh in the default path
unzip ssh-1.2.14-win32bin.zip -d c:\windows\command
rem go back to download directory
cd ..
rem and back to the main directory
cd ..
rem ==============get EMC/RCSLib with cvs=================
mkdir nist
cd nist
set HOME=c:\zip_dl\nist
rem just hit enter at password prompt
cvs -d:pserver:anonymous-at-cvs.EMC.sourceforge.net:/cvsroot/emc login
rem you need to hit enter here
cvs -z3 -d:pserver:anonymous-at-cvs.EMC.sourceforge.net:/cvsroot/emc co -P emc
rcslib
rem up one
cd ..
rem ==============zip the EMC sources==================
rem we need to zip this to preserve the long filenames
zip -r nist nist
rem ============download RTLinux and RTAI======================
rem rtlinux-3.1 and 3.0 for Linux-2.2.19
wget ftp://ftp.fsmlabs.com/pub/rtlinux/v3/v3.0/rtlinux-3.0.tar.gz
zip rtl_30 rtlinux-3.0.tar.gz
wget ftp://ftp.fsmlabs.com/pub/rtlinux/v3/rtlinux-3.1.tar.gz
zip rtl_31 rtlinux-3.1.tar.gz
rem and rtai-1.7 with patch for Linux-2.2.19
wget http://www.aero.polimi.it/RTAI/rtai-1.7.tgz
zip rtai rtai-1.7.tgz
rem found out we dont need the other 2.2.19 patch
rem wget http://www.aero.polimi.it/RTAI/patch_2219.tgz
rem ============download two kernel monte======================
rem Two Kernel Monte (Linux loading Linux on x86)
rem not sure if I'm gona use this yet but it aint too big :-)
wget ftp://ftp.scyld.com/pub/monte/monte-0.3.0.tar.gz
zip monte_3 monte-0.3.0.tar.gz
rem ========now download the ZipEMC components=======
rem make homes for zipslack and extra packages
mkdir zipslack
mkdir packages
mkdir first
mkdir kde
rem build an ftp script file
rem start in pub/mirrors/slackware/slackware-8.0
echo cd pub/mirrors/slackware/slackware-8.0 >getslack.txt
echo binary >>getslack.txt
echo lcd zipslack >>getslack.txt
echo get zipslack/zipslack.zip >>getslack.txt
echo get zipslack/README.1st >>getslack.txt
echo get zipslack/NO_2_4.TXT >>getslack.txt
echo get zipslack/FAQ.TXT >>getslack.txt
echo get zipslack/CHANGES.TXT >>getslack.txt
echo get zipslack/RAWRITE13.EXE >>getslack.txt
echo get zipslack/RAWRITE12.EXE >>getslack.txt
echo get zipslack/RAWRITE12.DOC >>getslack.txt
echo lcd ..\packages >>getslack.txt
rem change to pub/mirrors/slackware/slackware-8.0/slakware
echo cd slakware >>getslack.txt
echo get k1/lx2219.tgz >>getslack.txt
echo get a1/tcsh.tgz >>getslack.txt
echo get d1/ncurses.tgz >>getslack.txt
echo get d1/cvs.tgz >>getslack.txt
echo get d1/rcs.tgz >>getslack.txt
echo get d1/svgalib.tgz >>getslack.txt
echo get tcl1/tcl.tgz >>getslack.txt
echo get tcl1/tclx.tgz >>getslack.txt
echo get tcl1/tix.tgz >>getslack.txt
echo get tcl1/tk.tgz >>getslack.txt
echo get tcl1/expect.tgz >>getslack.txt
echo get x1/xfree86.tgz >>getslack.txt
echo get x1/xfntslt2.tgz >>getslack.txt
echo get x1/xfntscal.tgz >>getslack.txt
echo get x1/xfnts100.tgz >>getslack.txt
echo get x1/xfnts.tgz >>getslack.txt
echo get x1/xf86prog.tgz >>getslack.txt
echo get x1/xaw3d.tgz >>getslack.txt
echo get ap1/mc.tgz >>getslack.txt
echo lcd ../kde >>getslack.txt
echo get kde1/qt2.tgz >>getslack.txt
echo lcd ../first >>getslack.txt
echo get d1/glibc.tgz >>getslack.txt
rem back up to slackware-8.0/
echo cd ../ >>getslack.txt
echo get patches/packages/tcpip1.tgz >>getslack.txt
rem up to pub/mirrors/slackware/
echo cd ../ >>getslack.txt
rem in to slackware-current
echo cd slackware-current >>getslack.txt
echo get openssh-3.0.1p1/packages/openssh-3.0.1p1-i386-1.tgz >>getslack.txt
echo get sysvinit-2.83/packages/sysvinit-2.83-i386-2.tgz >>getslack.txt
echo lcd ../packages >>getslack.txt
echo get e2fsprogs-1.25/packages/e2fsprogs-1.25-i386-1.tgz >>getslack.txt
echo get openssl-0.9.6b/packages/openssl-shlibs-0.9.6b-i386-1.tgz
>>getslack.txt
echo get openssl-0.9.6b/packages/openssl-0.9.6b-i386-1.tgz >>getslack.txt
echo lcd ../kde >>getslack.txt
echo get kde-2.2.2/packages/htdig-3.1.5-i386-2.tgz >>getslack.txt
echo get kde-2.2.2/packages/kdebase-2.2.2-i386-1.tgz >>getslack.txt
echo get kde-2.2.2/packages/kdelibs-2.2.2-i386-1.tgz >>getslack.txt
echo get kde-2.2.2/packages/kdenetwork-2.2.2-i386-1.tgz >>getslack.txt
echo get kde-2.2.2/packages/kdevelop-2.0.2-i386-1.tgz >>getslack.txt
echo get kde-2.2.2/packages/kdoc-2.2.2-i386-1.tgz >>getslack.txt
echo get kde-2.2.2/packages/kdeutils-2.2.2-i386-1.tgz >>getslack.txt
echo get kde-2.2.2/packages/kdesdk-2.2.2-i386-1.tgz >>getslack.txt
echo get kde-2.2.2/packages/kdegraphics-2.2.2-i386-1.tgz >>getslack.txt
echo get kde-2.2.2/packages/kdeadmin-2.2.2-i386-1.tgz >>getslack.txt
echo get kde-2.2.2/packages/kdeaddons-2.2.2-i386-1.tgz >>getslack.txt
echo get kde-2.2.2/packages/pcre-3.7-i386-1.tgz >>getslack.txt
echo get kde-2.2.2/packages/libxslt-1.0.7-i386-1.tgz >>getslack.txt
echo get kde-2.2.2/packages/libxml2-2.4.10-i386-1.tgz >>getslack.txt
rem local up to zip_dl for pkgtools
echo lcd .. >>getslack.txt
echo get pkgtools-8.0.2/packages/pkgtools-8.0.2-i386-3.tgz >>getslack.txt
echo bye >>getslack.txt
rem ============and get ZipSlack======================
echo Start of ZipSlack download>ftp.log
ftp -s:getslack.txt -A ftp.slackware.com>>ftp.log
echo End of ZipSlack download>>ftp.log
rem zip up the packages to preserve the long filenames
zip -r first first
zip -r packages packages
zip -r kde kde
rem and zip up pkgtools here
rem (we will need to install this first in Linux for the new package name
format)
zip pkgtools pkgtools-8.0.2-i386-3.tgz
---------------end of download.bat----------------------
and this one is the upgrade script for the linux side
you'll need to copy this to /root and chmod 755 on it
-----------cut with ax and save as upgrade-----------------
#! /bin/sh
# copy our zip files over to the Linux side
cp /DOS/zip_dl/*.zip /root
# and install them
# update pkgtools
unzip pkgtools
installpkg pkgtools-8.0.2-i386-3.tgz
# unzip the packages
unzip first
unzip packages
unzip kde
# upgrade pre-installed ones
cd first
upgradepkg *.tgz
# add some new ones
cd ../packages
installpkg *.tgz
# and add KDE
cd ../kde
installpkg *.tgz
cd ..
# now put EMC in its place
unzip nist -d /usr/local
# skip this if youve already got a working realtime kernel
# unzip the realtime patches
# unzip rtl_30 -d /usr/src
# unzip rtl_31 -d /usr/src
# unzip rtai -d /usr/src
unzip monte_3 -d /usr/src
-----------end of upgrade-----------------
and here is the version of linux.bat I use to boot diffrent kernels
on ZipEMC
because DOS only supports 8.3 filenames when reading from the
UMSDOS filesystem I had to name the kernel images vmlinuz ,vmlinuz2 ,etc.
-----------cut with ax and save as C:\windows\linux.bat-----------------
echo off
echo ZipSlack Start Menu
echo.
echo.
echo.
echo select the Linux kernel you want to boot
echo.
echo [1] ZipSlack Default (non-realtime)
echo.
echo [2] RealTimeLinux
echo.
echo [3] RTAI
echo.
echo [4] EXIT to DOS
echo.
echo.
choice Your choice: /c:1234
if errorlevel 4 goto end
if errorlevel 3 goto rtai
if errorlevel 2 goto rtl
if errorlevel 1 goto zip
:zip
echo booting default kernel
\linux\loadlin \linux\vmlinuz root=/dev/hda1 rw
:rtl
echo booting rtl kernel
\linux\loadlin \linux\vmlinuz2 root=/dev/hda1 rw
:rtai
echo booting rtai kernel
\linux\loadlin \linux\vmlinuz3 root=/dev/hda1 rw
:end
cls
-----------end of linux.bat-----------------
Date Index |
Thread Index |
Back to archive index |
Back to Mailing List Page
Problems or questions? Contact