<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=7901&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] Struggle with making Devuan + LUKS setup boot on Orange Pi 3B v1.1]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=7901</link>
		<description><![CDATA[The most recent posts in [SOLVED] Struggle with making Devuan + LUKS setup boot on Orange Pi 3B v1.1.]]></description>
		<lastBuildDate>Thu, 16 Apr 2026 08:53:03 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] Struggle with making Devuan + LUKS setup boot on Orange Pi 3B v1.1]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=63237#p63237</link>
			<description><![CDATA[<p>I think the problem could be the .config file that the bootloader was compiled with,options that are required for luks support could be unchecked. I will mark this as solved if I compile,flash bootloader and it boots.</p><p>EDIT: failure;</p><p>I compiled TF-A from <a href="https://github.com/TrustedFirmware-A/trusted-firmware-a" rel="nofollow">https://github.com/TrustedFirmware-A/trusted-firmware-a</a> for BL31 and got ROCKCHIP_TPL from <a href="https://github.com/rockchip-linux/rkbin" rel="nofollow">https://github.com/rockchip-linux/rkbin</a>. </p><p>I compiled them and got a sort of warning-alike that OP-TEE is missing but I am not sure how to deal with it.</p><p>I have tried to compile it (I am not cross-compiling here) but I got error that I do not have GCC ARMHF compiler.</p><p>Nevertheless, the message after compilation that I wrote about sentence ago did also say that basic functionality still is there so I assumed it will boot at least something.</p><p>DietPi images have tools have option to flash boot loader to SPI, It uses files from <a href="https://dietpi.com/apt/dists/all/orangepi3b/binary-arm64/linux-u-boot-orangepi3b-edge_26.05.0-trunk-dietpi1.deb" rel="nofollow">https://dietpi.com/apt/dists/all/orange … ietpi1.deb</a> for that operation. </p><p>I moved those files from their original place somewhere else and copied ones I compiled with same name in their place.</p><p>I tried to flash it with that tool(not its fault since flashes from (*deb file mentioned above) files from have never failed), result is corrupted boot loader. Although this is not my first time.</p><p>So what I with to ask now as it is related to this process, how to update U-Boot boot loader correctly, preferably with &#039;dd&#039;? This topic confuses me, I am not very well-versed in it.</p>]]></description>
			<author><![CDATA[dummy@example.com (thes3pt3mb3r)]]></author>
			<pubDate>Thu, 16 Apr 2026 08:53:03 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=63237#p63237</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Struggle with making Devuan + LUKS setup boot on Orange Pi 3B v1.1]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=63194#p63194</link>
			<description><![CDATA[<p>Ok. DietPi_OrangePi3B-ARMv8-Trixie.img.xz is a good start point, although named badly since it&#039;s 7z compression rather than an xz compression.</p><p>That disk image file has 2 partitions:</p><div class="codebox"><pre><code>Device       Boot   Start     End Sectors  Size Id Type
/dev/loop0p1 *      32768 1875967 1843200  900M 83 Linux
/dev/loop0p2      1875968 1878015    2048    1M  c W95 FAT32 (LBA)</code></pre></div><p>The disk image file also has a u-boot bootloader in the first sectors, from 16 and up to where the Linux partition starts, plus of course the MBR first section.</p><p>So you copy over sectors 16-32767 onto your SD card so as to reuse that boot loader, like</p><div class="codebox"><pre><code>dd if=$IMGFILE skip=16 of=$SDCARD seek=16 count=32752 conv=notrunc</code></pre></div><p>Next you copy the content of the <span class="bbc">/boot</span> directory of the Linux partition filesystem into your boot partition at top level, plus set a link <span class="bbc">/boot -&gt; .</span> so that u-boot can find files with a <span class="bbc">/boot/</span> prefix, while you still may mount that partition as /boot in the target filesystem.</p><p>Next you need to change the <span class="bbc">rootdev</span> setting in <span class="bbc">boot.cmd</span> (and re-wrap it into <span class="bbc">boot.scr</span>) to be the <span class="bbu">decrypted filesystem device</span>, something like <span class="bbc">/dev/crypt_fs</span> perhaps. That device node will be created by initrd in its cryptsetup step.</p><p>That decrypted filesystem could well be a Devuan root filesystem. You would add a mounting of the boot partition on /boot to <span class="bbc">/etc/fstab</span> so it is ready for kernel and/or initrd upgrades.</p><p>Note that the <span class="bbc">Image</span> link and the <span class="bbc">initrd.img</span> link are used in <span class="bbc">boot.cmd</span> to be the applicable kernel and initrd to use during boot. Esp. if you want to use a different initrd you need to change that link.</p><p>You can change to use <span class="bbc">sysboot</span> instead of <span class="bbc">load+load+load+booti</span> and then refer to kernel and inird versions in <span class="bbc">extlinux.</span>conf, but you will then need to first determine which dtb is in use, and be sure that there is no overlay. Perhaps it&#039;s easier to stay with <span class="bbc">booti</span> while sorting out the decryption.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Tue, 14 Apr 2026 05:52:59 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=63194#p63194</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Struggle with making Devuan + LUKS setup boot on Orange Pi 3B v1.1]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=63189#p63189</link>
			<description><![CDATA[<p>One of the packages that I meant is <a href="https://dietpi.com/apt/dists/all/orangepi3b/binary-arm64/linux-u-boot-orangepi3b-edge_26.05.0-trunk-dietpi1.deb" rel="nofollow">https://dietpi.com/apt/dists/all/orange … ietpi1.deb</a> (more *.deb files with similar names at the bottom of <a href="https://dietpi.com/apt/dists/all/orangepi3b/binary-arm64/" rel="nofollow">https://dietpi.com/apt/dists/all/orange … ary-arm64/</a> ).</p><p>I have changed the boot partition&#039;s filesystem to ext4 (I am not sure how clear I am coming across, but just to be sure: [MMC] mmcblk0 --&gt; mmcblk0p1 (ext4), mmcblk0p2 (LUKS) with f2fs type underneath).</p><p>I do not possess a serial cable at the moment, but I also own an SD card on which I have flashed and succeeded with <a href="https://dietpi.com/downloads/images/DietPi_OrangePi3B-ARMv8-Trixie.img.xz" rel="nofollow">https://dietpi.com/downloads/images/Die … xie.img.xz</a> and <a href="https://github.com/manjaro-arm/opi-3b-images/releases" rel="nofollow">https://github.com/manjaro-arm/opi-3b-images/releases</a> .</p><p>Both make the system ext4-based, and it always makes them &#039;vanilla&#039; without any things like ZFS, LUKS, etc. (that means that there is only one partition that is both boot and root, marked as bootable). </p><p>The Manjaro image had only extlinux.conf as its boot option, and the DietPi image had only boot.scr as its boot method. I prefer extlinux; it seems simpler.</p><p>Is there anything else I could do?<br />EDIT:I also see option of doing U-Boot over UEFI...It would make things easier probably(?)</p><p>It would be helpfull to get recipe for <a href="https://dietpi.com/apt/dists/all/orangepi3b/binary-arm64/linux-u-boot-orangepi3b-edge_26.05.0-trunk-dietpi1.deb" rel="nofollow">https://dietpi.com/apt/dists/all/orange … ietpi1.deb</a> , there is also Armbian mirror with this mirror.sjtu.edu.cn/armbian/pool/main/l/linux-u-boot-orangepi3b-edge/</p>]]></description>
			<author><![CDATA[dummy@example.com (thes3pt3mb3r)]]></author>
			<pubDate>Mon, 13 Apr 2026 19:17:27 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=63189#p63189</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Struggle with making Devuan + LUKS setup boot on Orange Pi 3B v1.1]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=63165#p63165</link>
			<description><![CDATA[<p>A web search on linux-u-boot-orangepi3b didn&#039;t give me any exact match, so I can&#039;t verify that it makes the same assumptions about partitioning as you are. If u-boot doesn&#039;t find <span class="bbc">boot.scr</span> it won&#039;t boot.</p><p>Perhaps it assumes an initial type FAT boot partition, which wouldn&#039;t be unusual. That would at least have <span class="bbc">boot.scr</span> for booting, and usually that will also contain kernel and initrd. Or for example, if your u-boot supports the sysboot command you may use that for an extlinux boot from a differt, type ext partition, which then would contain the extlinux.conf configuration file as well as kernel, FDT and initrd.</p><p>(EDIT: added mentioning of FDT = Flat Device Tree, aka DTB = Device Tree Blob)</p><p>Ideally you get a serial cable for the box so you can see u-boot logging.</p><p>But my suggestion is that you first set up your box with an initial FAT partition for <span class="bbc">boot.scr</span>, The command to use in <span class="bbc">boot.cmd</span> would be like this</p><div class="codebox"><pre><code>sysboot mmc 0:2 ext4 0x7ffff000 /boot/extlinux.conf</code></pre></div><p>where <span class="bbc">mmc</span> is the drive type (for sdcard), <span class="bbc">0:2</span> identifies the boot sdcard, partition 2, <span class="bbc">ext4</span> indicates the partition type, and it&#039;s then followed by the pathname of the configuration file.<br />You&#039;ll then need to <span class="bbc">mkimage</span> that into <span class="bbc">boot.scr</span>.</p><p>EDIT: The argument <span class="bbc">0x7ffff000</span> is the load address for the extlinux.conf file, and you must choose a RAM address within your actual RAM. High up in your RAM is good.</p><p>The second partition can be a single partition for everything, i.e. boot and root filesystem. Note that I&#039;ve used ext4 rather than ext3, but that&#039;s only because I&#039;m incredibly modern <img src="https://dev1galaxy.org/img/smilies/wink.png" width="15" height="15" alt="wink" /> Though you might have better luck telling sysboot it&#039;s an ext2 even if it&#039;s an ext4, or perhaps use ext3... whichever.</p><p>EDIT: actually, you want rootfs to be encrypted, so then you&#039;ll need 3 partitions...</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Sat, 11 Apr 2026 14:01:10 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=63165#p63165</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Struggle with making Devuan + LUKS setup boot on Orange Pi 3B v1.1]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=63164#p63164</link>
			<description><![CDATA[<p>I have no experience with arm boards, but with x86 I always need to add cryptsetup-initramfs when I install cryptsetup.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Sat, 11 Apr 2026 12:34:25 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=63164#p63164</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] Struggle with making Devuan + LUKS setup boot on Orange Pi 3B v1.1]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=63162#p63162</link>
			<description><![CDATA[<p>I wanted Devuan to run on an SBC (I have an ARM64 SBC with an RK3566 RockChip SoC) which uses the U-Boot bootloader to boot with LUKS. There are two partitions: boot (ext3) marked as bootable, and cryptroot (LUKSv2).</p><p>What I did:</p><p>I used file from linux-u-boot-orangepi3b to update bootloader,factory one is from 2017.</p><p>I made a Devuan system with the help of debootstrap using the default variant, version ceres, and I added DietPi mirrors (because they have a kernel that fits my board). I installed cryptsetup, the kernel, Wi‑Fi-related packages, added firmware blobs to /lib/firmware, and compiled booster for the initramfs tool.</p><p>I wrote boot.cmd and compiled it to boot.scr, and also wrote extlinux.conf (because I had seen one of the Manjaro ARM images boot on my board; it didn&#039;t have the syslinux package but also no boot.scr).</p><p>The bootloader still doesn&#039;t recognize the partition; there was no blinking LED. Debian system from DietPi has no problem booting, I wish DietPi images had a LUKS option.</p><p>I also tried converting the fully LUKSv2 partition to LUKSv1 to see if this was a problem, since the first article I saw was <a href="https://u-boot.org/blog/unlocking-disks-earlier-basic-luks1-support-arrives-in-u-boot/?print=print" rel="nofollow">https://u-boot.org/blog/unlocking-disks … rint=print</a> ; but I later found <a href="https://u-boot.org/blog/unlocking-modern-storage-u-boot-adds-luksv2-support/" rel="nofollow">https://u-boot.org/blog/unlocking-moder … 2-support/</a> when digging through their blog, so this was not a problem by itself.</p>]]></description>
			<author><![CDATA[dummy@example.com (thes3pt3mb3r)]]></author>
			<pubDate>Sat, 11 Apr 2026 11:59:55 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=63162#p63162</guid>
		</item>
	</channel>
</rss>
