https://wiki.pine64.org/index.php?title=ROCKPro64_Installing_Arch_Linux_ARM&feed=atom&action=history
ROCKPro64 Installing Arch Linux ARM - Revision history
2024-03-29T05:25:53Z
Revision history for this page on the wiki
MediaWiki 1.37.1
https://wiki.pine64.org/index.php?title=ROCKPro64_Installing_Arch_Linux_ARM&diff=19666&oldid=prev
Ianfoss: Reflect that there may be some unmet dependencies that users need to deal with when compiling u-boot.
2023-05-25T02:52:54Z
<p>Reflect that there may be some unmet dependencies that users need to deal with when compiling u-boot.</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 02:52, 25 May 2023</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l25">Line 25:</td>
<td colspan="2" class="diff-lineno">Line 25:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> $ export BL31=/path/to/arm-trusted-firmware/build/rk3399/release/bl31/bl31.elf</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> $ export BL31=/path/to/arm-trusted-firmware/build/rk3399/release/bl31/bl31.elf</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; 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>Build U-Boot:</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; 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>Build U-Boot <ins style="font-weight: bold; text-decoration: none;">(you may need to install additional packages to successfully compile, such as <tt>bc</tt>, <tt>python-pyelftools</tt>, or <tt>swig</tt>)</ins>:</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> $ make mrproper</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> $ make mrproper</div></td></tr>
</table>
Ianfoss
https://wiki.pine64.org/index.php?title=ROCKPro64_Installing_Arch_Linux_ARM&diff=18191&oldid=prev
CounterPillow: /* Flashing U-Boot */ correct u-boot binary name
2023-02-24T11:00:26Z
<p><span dir="auto"><span class="autocomment">Flashing U-Boot: </span> correct u-boot binary name</span></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 11:00, 24 February 2023</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l69">Line 69:</td>
<td colspan="2" class="diff-lineno">Line 69:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> # dd if=idbloader.img of=/dev/sdX1</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> # dd if=idbloader.img of=/dev/sdX1</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; 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> # dd if=<del style="font-weight: bold; text-decoration: none;">uboot</del>.<del style="font-weight: bold; text-decoration: none;">img </del>of=/dev/sdX2</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; 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> # dd if=<ins style="font-weight: bold; text-decoration: none;">u-boot</ins>.<ins style="font-weight: bold; text-decoration: none;">itb </ins>of=/dev/sdX2</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Fetching The Root File System Tarball ==</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Fetching The Root File System Tarball ==</div></td></tr>
</table>
CounterPillow
https://wiki.pine64.org/index.php?title=ROCKPro64_Installing_Arch_Linux_ARM&diff=17733&oldid=prev
Fxc at 16:42, 20 February 2023
2023-02-20T16:42:31Z
<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 16:42, 20 February 2023</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l135">Line 135:</td>
<td colspan="2" class="diff-lineno">Line 135:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> # pacman-key --init</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> # pacman-key --init</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> # pacman-key --populate archlinuxarm</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> # pacman-key --populate archlinuxarm</div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; 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" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; 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;">[[Category:ROCKPro64]]</ins></div></td></tr>
</table>
Fxc
https://wiki.pine64.org/index.php?title=ROCKPro64_Installing_Arch_Linux_ARM&diff=13289&oldid=prev
CounterPillow: /* Writing extlinux.conf */
2022-07-13T18:32:03Z
<p><span dir="auto"><span class="autocomment">Writing extlinux.conf</span></span></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 18:32, 13 July 2022</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l119">Line 119:</td>
<td colspan="2" class="diff-lineno">Line 119:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> </div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> label l0</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> label l0</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; 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> menu label Boot Arch Kernel <del style="font-weight: bold; text-decoration: none;">SDMMC</del></div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; 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> menu label Boot Arch Kernel</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> linux /Image</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> linux /Image</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> fdt /dtbs/rockchip/rk3399-rockpro64.dtb</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> fdt /dtbs/rockchip/rk3399-rockpro64.dtb</div></td></tr>
</table>
CounterPillow
https://wiki.pine64.org/index.php?title=ROCKPro64_Installing_Arch_Linux_ARM&diff=13288&oldid=prev
CounterPillow: change explicit block device name to searching by label
2022-07-13T18:31:13Z
<p>change explicit block device name to searching by label</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 18:31, 13 July 2022</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l110">Line 110:</td>
<td colspan="2" class="diff-lineno">Line 110:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=== Writing extlinux.conf ===</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=== Writing extlinux.conf ===</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; 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><del style="font-weight: bold; text-decoration: none;"></del></div></td><td colspan="2" class="diff-side-added"></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; 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><del style="font-weight: bold; text-decoration: none;">{{warning|I haven't verified that mmcblk0 is the right one here, might be mmcblk1 or mmcblk2}}</del></div></td><td colspan="2" class="diff-side-added"></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Create a <tt>/mnt/alarm-root/boot/extlinux/extlinux.conf</tt> with these contents:</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Create a <tt>/mnt/alarm-root/boot/extlinux/extlinux.conf</tt> with these contents:</div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l124">Line 124:</td>
<td colspan="2" class="diff-lineno">Line 122:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> linux /Image</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> linux /Image</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> fdt /dtbs/rockchip/rk3399-rockpro64.dtb</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> fdt /dtbs/rockchip/rk3399-rockpro64.dtb</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; 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> append initrd=/initramfs-linux.img earlycon=uart8250,mmio32,0xff1a0000 console=ttyS2,1500000n8 root=<del style="font-weight: bold; text-decoration: none;">/dev/mmcblk0p5 </del>rw rootwait</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; 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> append initrd=/initramfs-linux.img earlycon=uart8250,mmio32,0xff1a0000 console=ttyS2,1500000n8 root=<ins style="font-weight: bold; text-decoration: none;">LABEL=rootfs </ins>rw rootwait</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; 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> </div></td><td colspan="2" class="diff-side-added"></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; 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><del style="font-weight: bold; text-decoration: none;">For eMMC instead of SD, replace <code>/dev/mmcblk0p5</code> with <code>/dev/mmcblk1p5</code>.</del></div></td><td colspan="2" class="diff-side-added"></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Once done, unmount the partitions:</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Once done, unmount the partitions:</div></td></tr>
</table>
CounterPillow
https://wiki.pine64.org/index.php?title=ROCKPro64_Installing_Arch_Linux_ARM&diff=13287&oldid=prev
CounterPillow: wip page
2022-07-13T18:27:39Z
<p>wip page</p>
<p><b>New page</b></p><div>{{warning|This page is a work in progress, use at your own risk}}<br />
<br />
Commands to be run as a normal user are prefixed with <code>$</code>, commands to be run as root are prefixed with <code>#</code>. We assume your target device is <tt>/dev/sdX</tt>, adjust accordingly.<br />
<br />
== Obtaining and Building U-Boot And TF-A ==<br />
<br />
The first step is to compile the open firmware (TF-A) and the open bootloader (u-boot).<br />
<br />
Clone u-boot git repository:<br />
<br />
$ git clone https://source.denx.de/u-boot/u-boot.git<br />
<br />
Clone TF-A git repository:<br />
<br />
$ git clone https://github.com/ARM-software/arm-trusted-firmware.git<br />
<br />
Build TF-A (you will need <tt>aarch64-linux-gnu-gcc</tt> and <tt>arm-none-eabi-gcc</tt> for this)<br />
<br />
$ cd arm-trusted-firmware<br />
$ make realclean<br />
$ make CROSS_COMPILE=aarch64-linux-gnu- PLAT=rk3399<br />
<br />
Next, export the path to your compiled BL31 in the shell you'll build u-boot in. Adjust the path as necessary.<br />
<br />
$ export BL31=/path/to/arm-trusted-firmware/build/rk3399/release/bl31/bl31.elf<br />
<br />
Build U-Boot:<br />
<br />
$ make mrproper<br />
$ make rockpro64-rk3399_defconfig<br />
$ make CROSS_COMPILE=aarch64-linux-gnu- -j$(nproc)<br />
<br />
== Preparing The Block Device ==<br />
<br />
Here we assume your block device is <tt>/dev/sdX</tt>, adjust as needed.<br />
<br />
Create a new partition table:<br />
<br />
# parted -s /dev/sdX mklabel gpt<br />
<br />
Create the partitions for loader and u-boot:<br />
<br />
# parted -s /dev/sdX mkpart loader 64s 8MiB<br />
# parted -s /dev/sdX mkpart uboot 8MiB 16MiB<br />
<br />
Create the partition for u-boot's environment (optional, but you'll have to adjust the following offsets if you don't do it):<br />
<br />
# parted -s /dev/sdX mkpart env 16MiB 32MiB<br />
<br />
Create the "efi" boot partition and mark it as bootable:<br />
<br />
# parted -s /dev/sdX mkpart efi fat32 32MiB 544MiB<br />
# parted -s /dev/sdX set 4 boot on<br />
<br />
Create the root partition:<br />
<br />
# parted -s /dev/sdX mkpart root ext4 544MiB 100%<br />
<br />
=== Creating The File Systems ===<br />
<br />
Now create the file systems for boot and root:<br />
<br />
# mkfs.vfat -n "efi" /dev/sdX4<br />
# mkfs.ext4 -L "rootfs" /dev/sdX5<br />
<br />
=== Flashing U-Boot ===<br />
<br />
Flash idbloader.img and uboot.img:<br />
<br />
# dd if=idbloader.img of=/dev/sdX1<br />
# dd if=uboot.img of=/dev/sdX2<br />
<br />
== Fetching The Root File System Tarball ==<br />
<br />
Fetch the root filesystem tarball and the PGP signature<br />
<br />
<nowiki>$ wget -N http://os.archlinuxarm.org/os/ArchLinuxARM-aarch64-latest.tar.gz{,.sig}</nowiki><br />
<br />
Fetch the gpg keys:<br />
<br />
<nowiki>$ curl 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x68b3537f39a313b3e574d06777193f152bdbe6a6' | gpg --import=-</nowiki><br />
<br />
Compare the key ID provided in the above command with the one listed here: https://archlinuxarm.org/about/package-signing (Take good note of the domain and HTTPS)<br />
<br />
Verify the tarball's authenticity<br />
<br />
$ gpg --verify ArchLinuxARM-aarch64-latest.tar.gz.sig<br />
<br />
{{note|Do not skip verifying the authenticity. This is important. It also protects you from prematurely aborted transfers giving you a corrupt archive.}}<br />
<br />
== Installing The Root File System ==<br />
<br />
# mount /dev/sdX5 /mnt/alarm-root<br />
# mkdir /mnt/alarm-root/boot<br />
# mount /dev/sdX4 /mnt/alarm-root/boot<br />
# bsdtar -xpf ArchLinuxARM-aarch64-latest.tar.gz -C /mnt/alarm-root<br />
<br />
=== Editing fstab ===<br />
<br />
Find your partition UUIDs for both partitions using <code>lsblk</code>:<br />
<br />
$ lsblk -o NAME,SIZE,MOUNTPOINTS,PARTUUID<br />
<br />
In <tt>/mnt/alarm-root/etc/fstab</tt>, put the lines<br />
<br />
PARTUUID=''root-uuid-here'' / ext4 defaults 0 1<br />
PARTUUID=''boot-uuid-here'' /boot vfat defaults 0 2<br />
<br />
with your UUIDs in place of the placeholder.<br />
<br />
=== Writing extlinux.conf ===<br />
<br />
{{warning|I haven't verified that mmcblk0 is the right one here, might be mmcblk1 or mmcblk2}}<br />
<br />
Create a <tt>/mnt/alarm-root/boot/extlinux/extlinux.conf</tt> with these contents:<br />
<br />
default l0<br />
menu title ROCKPro64 Boot Menu<br />
prompt 0<br />
timeout 50<br />
<br />
label l0<br />
menu label Boot Arch Kernel SDMMC<br />
linux /Image<br />
fdt /dtbs/rockchip/rk3399-rockpro64.dtb<br />
append initrd=/initramfs-linux.img earlycon=uart8250,mmio32,0xff1a0000 console=ttyS2,1500000n8 root=/dev/mmcblk0p5 rw rootwait<br />
<br />
For eMMC instead of SD, replace <code>/dev/mmcblk0p5</code> with <code>/dev/mmcblk1p5</code>.<br />
<br />
Once done, unmount the partitions:<br />
<br />
# umount /mnt/alarm-root/boot<br />
# umount /mnt/alarm-root<br />
<br />
== Finishing Setup ==<br />
<br />
SSH in as <tt>root</tt> with password <tt>root</tt> and run<br />
<br />
# pacman-key --init<br />
# pacman-key --populate archlinuxarm</div>
CounterPillow