http://www.hackerspace-ffm.de/wiki/index.php?title=Raspberry_Pi_Crosscompilation&feed=atom&action=history
Raspberry Pi Crosscompilation - Versionsgeschichte
2024-03-29T13:41:09Z
Versionsgeschichte dieser Seite in Hackerspace Ffm
MediaWiki 1.25.3
http://www.hackerspace-ffm.de/wiki/index.php?title=Raspberry_Pi_Crosscompilation&diff=8297&oldid=prev
Hephaisto: /* Ordnerstruktur in lokales Filesystem kopieren */
2015-11-02T21:19:54Z
<p><span dir="auto"><span class="autocomment">Ordnerstruktur in lokales Filesystem kopieren</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Nächstältere Version</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Version vom 2. November 2015, 21:19 Uhr</td>
</tr><tr><td colspan="2" class="diff-lineno" id="L22" >Zeile 22:</td>
<td colspan="2" class="diff-lineno">Zeile 22:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>  sudo mount -v -o offset='''62914560''' 2015-09-24-raspbian-jessie.img mnt</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>  sudo mount -v -o offset='''62914560''' 2015-09-24-raspbian-jessie.img mnt</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>  mkdir raspbian</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>  mkdir raspbian</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>  sudo cp -<del class="diffchange diffchange-inline">r </del>mnt/* raspbian/</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>  sudo cp -<ins class="diffchange diffchange-inline">a </ins>mnt/* raspbian/</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>  sudo umount mnt</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>  sudo umount mnt</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
</table>
Hephaisto
http://www.hackerspace-ffm.de/wiki/index.php?title=Raspberry_Pi_Crosscompilation&diff=8293&oldid=prev
Hephaisto am 2. November 2015 um 20:26 Uhr
2015-11-02T20:26:20Z
<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Nächstältere Version</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Version vom 2. November 2015, 20:26 Uhr</td>
</tr><tr><td colspan="2" class="diff-lineno" id="L40" >Zeile 40:</td>
<td colspan="2" class="diff-lineno">Zeile 40:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>http://proot.me/#examples</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>http://proot.me/#examples</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>[[Kategorie:Raspberry]]</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>[[Kategorie:Raspberry <ins class="diffchange diffchange-inline">Pi</ins>]]</div></td></tr>
</table>
Hephaisto
http://www.hackerspace-ffm.de/wiki/index.php?title=Raspberry_Pi_Crosscompilation&diff=8292&oldid=prev
Hephaisto: Kategorie
2015-11-02T20:25:39Z
<p>Kategorie</p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Nächstältere Version</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Version vom 2. November 2015, 20:25 Uhr</td>
</tr><tr><td colspan="2" class="diff-lineno" id="L39" >Zeile 39:</td>
<td colspan="2" class="diff-lineno">Zeile 39:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>== Links ==</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>== Links ==</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>http://proot.me/#examples</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>http://proot.me/#examples</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">[[Kategorie:Raspberry]]</ins></div></td></tr>
</table>
Hephaisto
http://www.hackerspace-ffm.de/wiki/index.php?title=Raspberry_Pi_Crosscompilation&diff=8291&oldid=prev
Hephaisto: Die Seite wurde neu angelegt: „Kurze Einführung, wie man am bequemsten für den Raspberry auf einem PC (unter Linux) kompiliert. Und zwar, ohne sich die große Mühe mit Crosscompilern und…“
2015-11-02T20:23:47Z
<p>Die Seite wurde neu angelegt: „Kurze Einführung, wie man am bequemsten für den Raspberry auf einem PC (unter Linux) kompiliert. Und zwar, ohne sich die große Mühe mit Crosscompilern und…“</p>
<p><b>Neue Seite</b></p><div>Kurze Einführung, wie man am bequemsten für den Raspberry auf einem PC (unter Linux) kompiliert. Und zwar, ohne sich die große Mühe mit Crosscompilern und dergleichen zu machen. Dazu verwenden wir einen architectural chroot, bei dem wir eine Art virtuellen ARM-Chip simulieren, aber ohne den ganzen Overhead einer VM.<br />
<br />
== Vorbereitung ==<br />
<br />
=== Packages installieren ===<br />
sudo apt-get install proot qemu-user<br />
<br />
=== Image herunterladen ===<br />
Image: https://downloads.raspberrypi.org/raspbian_latest<br />
unzip 2015-09-24-raspbian-jessie.img<br />
<br />
=== Ordnerstruktur in lokales Filesystem kopieren ===<br />
Position der root-partition im disk-image finden:<br />
file 2015-09-24-raspbian-jessie.img<br />
''2015-09-24-raspbian-jessie.img:''<br />
''DOS/MBR boot sector;''<br />
''partition 1 : ID=0xc, start-CHS (0x0,130,3), end-CHS (0x7,165,30), startsector 8192, 114688 sectors;''<br />
''partition 2 : ID=0x83, start-CHS (0x7,165,31), end-CHS (0x2d,220,15), startsector '''122880''', 8325120 sectors''<br />
<br />
Obige fette Zahl mit 512 (block size) multiplizieren und dann:<br />
mkdir mnt<br />
sudo mount -v -o offset='''62914560''' 2015-09-24-raspbian-jessie.img mnt<br />
mkdir raspbian<br />
sudo cp -r mnt/* raspbian/<br />
sudo umount mnt<br />
<br />
== Chroot ==<br />
Normale Nutzung (z.B. compilieren):<br />
proot -r raspbian -q qemu-arm [command]<br />
<br />
Root-Zugang:<br />
sudo proot -0 -r -q qemu-arm [command]<br />
<br />
Die Argumente -R bzw. -S binden spezielle Verzeichnisse ein, das machte bei mir allerdings mehr Probleme als dass es eine Hilfe war.<br />
<br />
== TODO ==<br />
* fakeroot-Zugriff ohne sudo<br />
<br />
== Links ==<br />
http://proot.me/#examples</div>
Hephaisto