Bernhard
Kuhn (kuhn@batian.lpr.e-technik.tu-muenchen.de)
Sun,
22 Aug 1999 23:19:29 +0200
I spent a little time on how it is possible to install uclinux in a reproducable way. The result is a brief installation instruction. Maybe usefull for new readers on this list ... Brief uClinux installation instruction for (XCopilot) #################################################### Downloading all files: ====================== DOWNLOAD_PATH=/var/tmp #(1) cd $DOWNLOAD_PATH wget http://xcopilot.cuspy.com/build/xcopilot-0.6.6.tar.gz wget http://www.rcs.ei.tum.de/~kuhn/uclinux/xcopilot-0.6.6_display.c_diff wget ftp://ftp.gnu.org/gnu/binutils/binutils-2.9.1.tar.gz wget ftp://ftp.gnu.org/gnu/gcc/gcc-2.7.2.3.tar.gz wget ftp://ryeham.ee.ryerson.ca/pub/uClinux/uclinuxgcc-kit-160899.tar.gz wget ftp://ftp.kernel.org/pub/linux/kernel/v2.0/linux-2.0.33.tar.gz wget ftp://ryeham.ee.ryerson.ca/pub/uClinux/patch2.0.33-170199.diff.gz wget http://www.rcs.ei.tum.de/~kuhn/uclinux/linux-2.0.33_gcc-2.7.2.3.patch wget ftp://ryeham.ee.ryerson.ca/pub/uClinux/pilot-160899.tar.gz wget ftp://ryeham.ee.ryerson.ca/pub/uClinux/genromfs-0.3.tar.bz2 wget http://www.rcs.ei.tum.de/~kuhn/uclinux/genromfs-0.3.patch wget ftp://ryeham.ee.ryerson.ca/pub/uClinux/coff2flt-0.3.tar.bz2 wget ftp://ryeham.ee.ryerson.ca/pub/uClinux/uC-libc-160899.tar.gz wget ftp://ryeham.ee.ryerson.ca/pub/uClinux/uC-libm-060199.tar.bz2 Installing xcopilot: ==================== DOWNLOAD_PATH=/var/tmp #(1) cd /tmp #(2) tar -xzf $DOWNLOAD_PATH/xcopilot-0.6.6.tar.gz cd xcopilot-0.6.6 patch display.c < $DOWNLOAD_PATH/xcopilot-0.6.6_display.c_diff #(3) ./configure ; make cp xcopilot /usr/local/bin #(4) cd .. ; rm -rf xcopilot-0.6.6 (1) or whereever you have downloaded your files (2) or whereever you have spare disk space (who has such?) (3) only needed if you want to emulate the buttons (power, phonebook, etc.) of the PalmPilot by keyboard. (4) usualy, you will have to be root to do this. Installing gcc: =============== DOWNLOAD_PATH=/var/tmp #(1) cd /tmp mkdir m68knommu-gcc cd m68knommu-gcc cp $DOWNLOAD_PATH/binutils-2.9.1.tar.gz . cp $DOWNLOAD_PATH/gcc-2.7.2.3.tar.gz . tar -xzf $DOWNLOAD_PATH/uclinuxgcc-kit-160899.tar.gz cd uclinuxgcc-kit-160899 make #(2) cd ../.. rm -rf m68knommu-gcc echo export PATH=/usr/local/gnu/bin:\$PATH > /usr/local/bin/init68k chmod a+x /usr/local/bin/init68k (1) or whereever you have downloaded your files (2) be logged in as root Installing (uC)linux-sources: ============================= DOWNLOAD_PATH=/var/tmp #(1) UCLINUX_PATH=/opt/src/uclinux #(2) install -d $UCLINUX_PATH cd $UCLINUX_PATH tar -xzf $DOWNLOAD_PATH/linux-2.0.33.tar.gz cd linux gunzip -cd $DOWNLOAD_PATH/patch2.0.33-170199.diff.gz | patch -p1 patch arch/m68knommu/Makefile < $DOWNLOAD_PATH/linux-2.0.33_gcc-2.7.2.3.patch make menuconfig #(3) ln -s ../pilot/romdisk/romdisk.img romfs.img cd include/net ln -s ../../../pilot/pppd/linux/if.h . cd ../../.. tar -xzf $DOWNLOAD_PATH/pilot-160899.tar.gz #(4) bzip2 -cd $DOWNLOAD_PATH/genromfs-0.3.tar.bz2 | tar -x bzip2 -cd $DOWNLOAD_PATH/coff2flt-0.3.tar.bz2 | tar -x gunzip -cd $DOWNLOAD_PATH/uC-libc-160899.tar.gz | tar -x bzip2 -cd $DOWNLOAD_PATH/uC-libm-060199.tar.bz2 | tar -x cd genromfs-0.3 patch genromfs.c < $DOWNLOAD_PATH/genromfs-0.3.patch cd .. (1) or whereever you have downloaded your files (2) or whereever you have spare disk space (who has such?). ensure that the directory already exists. (3) exit and save (4) you will have to be root to unpack this, because of dev/* Compiling (uC)linux-sources: ============================ . init68k #(1) make -C genromfs-0.3 #(2) make -C coff2flt-0.3 #(3) make -C uC-libc make -C uC-libm make -C pilot #(4) make -C linux updateromfs #(4) xcopilot -romfile $UCLINUX_PATH/linux/vmlinux.rom (1) from here on, we need m68k-gcc-stuff (2) romfs-generator; ignore warnings (3) converter for coff fileformat to flat fileformat; ignore warnings (4) repeat this to steps whenever you change the source code Login with telnet: ================== xcopilot -serial -romfile $UCLINUX_PATH/linux/vmlinux.rom & /usr/sbin/pppd 192.168.1.1:192.168.1.2 connect \ '/usr/sbin/chat -vf /tmp/pilot_ppp' /dev/ttyqe mtu 296 ping 192.168.1.2 telnet 192.168.1.2 B. Kuhn, 08/22/1999
This archive was generated by hypermail 2.0b3 on Sun Aug 22 1999 - 19:13:55 EDT