Difference between revisions of "LS-Pro - chroot Arm Build Environment"
m (New page: ==Get Started== by armstation Why: To not fill up LinkStation's system partition & To test toolchains and building programs without risk of breaking anything ===Create a chroot somew...)
|Line 1:||Line 1:|
Revision as of 10:08, 11 September 2007
Why: To not fill up LinkStation's system partition & To test toolchains and building programs without risk of breaking anything
Create a chroot somewhere outside of the LinkStation system partition
Transfer entire Linkstation system to build directory
cd / for d in `ls |grep -v dev |grep -v proc|grep -v mnt` do tar -cvf /mnt/disk1/share/arm-tools/$d.tar $d done
Unpack the system directories
cd /mnt/disk1/share/arm-tools for f in *.tar do tar -xvf $f done
then Gunzip & Untar the arm tool
tar -xvzf arm-tools-0_16-3.tgz
Mount special files in chroot environment (thanks Zoolook)
mount -t proc none /mnt/disk1/share/arm-tools/proc mount -o bind /dev /mnt/disk1/share/arm-tools/dev
Create /opt directory in chroot
ln -s /mnt/disk1/share/arm-tools/opt /opt
chroot into development environment.
chroot /mnt/disk1/share/arm-tools /bin/sh
That's it, now everyting compiled and installed to /opt from chroot will be available from the main Linkstation system without adding any files to the system partition besides 1 symbolic link.
|This article is currently a stub. You can help this Wiki by . This template will categorize articles that include it into Category:Stubs.|