11---
2- title : " Using Brickstrap to Cross-Compile"
2+ title : " Using Brickstrap to Cross-Compile (obsolete) "
33subject : " Cross-Compiling"
44author : " @dlech"
55---
@@ -13,72 +13,17 @@ the EV3!
1313{: .lead .clearfix}
1414
1515{% include icon.html type="danger" %}
16- This method of cross-compiling is being phased out. Please try [ Docker] {: .alert-link}
17- instead.
16+ This method of cross-compiling is no longer supported. Please use [ Docker] {: .alert-link}
17+ instead. Brickstrap still exists, but starting with v0.6.0, it only creates
18+ disk images from Docker images. If you * really* want to keep using the old
19+ brickstrap, you can use the [ 0.5.x branch] [ legacy branch ] {: .alert-link}
20+ or download the [ legacy Debian package] [ legacy package ] {: .alert-link}
21+ and install it manually.
1822{: .alert .alert-danger}
1923
2024[ Docker ] : /docs/tutorials/using-docker-to-cross-compile
21-
22- ## Getting Brickstrap
23-
24- <div class =" panel panel-info " >
25- <div class="panel-heading">
26- <h2 class="panel-title">Official OS Support</h2>
27- </div>
28- <div class =" panel-body " markdown =" 1 " >
29- To help preserve our sanity, we are only going to officially
30- support using brickstrap on one OS, namely Ubuntu trusty. Also, we only
31- support 64-bit host machines (there are some unresolved issues that prevent
32- brickstrap from working correctly on 32-bit). So, if you are not already
33- running [ trusty] ( http://www.ubuntu.com/download/server ) {: .alert-link},
34- you will need to install it in a
35- [ virtual machine] ( https://www.virtualbox.org/wiki/Downloads ) {: .alert-link}.
36- We recommend installing the server version because it requires less memory
37- and you don't need a graphical desktop for what we are doing.
38-
39- TODO: Need to create a page for setting up a VM and move this info there
40- because it applies to more than just brickstrap. For now, there is plenty
41- of documentation on setting up a VM floating around the web - just do a search.
42-
43- Also, you will find it easier to ssh into the VM so that you can have multiple
44- terminals open at once rather than trying to use the console in VirtualBox.
45- To do this, you will want to change the network adapter from NAT (default)
46- to bridged in the VirtualBox settings before starting the VM.
47- </div >
48- </div >
49-
50- Brickstrap is available as a .deb package from the ev3dev.org package repository.
51- Once you have trusty up and running, run the following commands to install the
52- ` brickstrap ` package.
53-
54- sudo apt-key adv --keyserver pgp.mit.edu --recv-keys 2B210565
55- sudo apt-add-repository "deb http://archive.ev3dev.org/ubuntu trusty main"
56- sudo apt-get update
57- sudo apt-get install brickstrap
58-
59- Next, there are a few things we need to take care of. ` brickstrap ` uses a
60- library called ` libguestfs ` to build the disk image. There is some setup
61- required to use this.
62-
63- # create a supermin appliance
64- sudo update-guestfs-appliance
65- # add yourself to the kvm group
66- # need to log out and back in for this to take effect
67- sudo usermod -a -G kvm <username>
68- # fix permissions on /boot/vmlinuz*
69- sudo chmod +r /boot/vmlinuz*
70-
71- And you need to add yourself to ` /etc/subuid ` and ` /etc/subgid ` to be able to
72- use uid/gid mapping.
73-
74- sudo usermod --add-subuids 200000-265534 --add-subgids 200000-265534 $USER
75-
76- {% include icon.html type="info" %}
77- Check out the [ brickstrap Github page] {: .alert-link}
78- for the most up-to-date information on brickstrap.
79- {: .alert .alert-info}
80-
81- [ brickstrap Github page ] : https://github.com/ev3dev/brickstrap
25+ [ legacy branch ] : https://github.com/ev3dev/brickstrap/tree/0.5.x
26+ [ legacy package ] : https://github.com/ev3dev/brickstrap/releases/tag/0.5.1
8227
8328## Creating a Virtual Environment
8429
0 commit comments