Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.mrao.cam.ac.uk/projects/OAS/pmwiki/pmwiki.php/MROIDelayLine/TrolleySoftware?action=print
Дата изменения: Unknown Дата индексирования: Sat Mar 1 21:55:31 2014 Кодировка: Поисковые слова: п п п п п п п п п п п п п п п п п п п п п п п п п п п п |
The trolley computer uses a low-power ARM processor with limited resources. It does not have the resources to compile the trolley software, hence it is necessary to use a cross-compiler on a desktop PC to compile the code. This was fairly straightforward in 2005 when the COAST group started development for this board, but the computer world has moved on a very long way since then. Here is how EBS solved the problem.
The essence of the solution is to generate a virtual PC on your desktop PC and install an old Linux distribution, circa 2006, in that.
You can download old Debian network install CDs from here.
There are two major free virtual machines available for Linux, these are VirtualBox and KVM. EBS used KVM but there is no compelling reason to choose one over the other. Set up your virtual machine, ensuring that the resulting machine has:
This depends on your distribution. You want something with an early 2.6 Linux kernel. For Debian etch using a network install:
deb http://archive.debian.org/debian-archive/debian/ etch main deb-src http://archive.debian.org/debian-archive/debian/ etch main
apt-get update apt-get upgrade
apt-get install some-held-back-package.deb
apt-get install linux-image-2.6-686
perl [your CD mount point]/.install
export PATH="/opt/arcom/bin:$PATH"
This step is necessary to allow the compilation of the trolley kernel modules.
dpkg -i ./linux-source-2.6.11.11-arcom3_2.6.11.11-3_all.deb
tar -xvf /usr/src/linux-source-2.6.11.11-arcom3.tar.gz make ARCH=arm viper_defconfig ael-kernel-build --architecture=arm image
svn checkout http://appcs.ra.phy.cam.ac.uk:8080/svn/coast-repos/dl/commonlibs svn checkout http://appcs.ra.phy.cam.ac.uk:8080/svn/coast-repos/dl/trolley
make make install (as root) make clean make arch=arm make arch=arm install
make make package
That last command packages up the executables, to be sent to the trolley computer for later unpacking and installation using the included scripts.
Click here to upload file to attach to this page.