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
- 1 Get Started
- 1.1 Create a chroot somewhere outside of the LinkStation system partition
- 1.2 Transfer entire Linkstation system to build directory
- 1.3 Unpack the system directories
- 1.4 Download jonli447's excellent arm-tools and copy them into /mnt/disk1/share/arm-tools/
- 1.5 Mount special files in chroot environment (thanks Zoolook)
- 1.6 Create /opt directory in chroot
- 1.7 Create symbolic link from chrooted /opt to system /opt
- 1.8 chroot into development environment.
- 2 That's it
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.|