<?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=3871&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / unofficial SD card images and their builder for RPi series (inc. RPi4)]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=3871</link>
		<description><![CDATA[The most recent posts in unofficial SD card images and their builder for RPi series (inc. RPi4).]]></description>
		<lastBuildDate>Thu, 03 Dec 2020 19:54:40 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: unofficial SD card images and their builder for RPi series (inc. RPi4)]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=26074#p26074</link>
			<description><![CDATA[<p>I must correct my own post. That was a false alarm. The actual problem was a wrongly written SD card.</p>]]></description>
			<author><![CDATA[dummy@example.com (csillag)]]></author>
			<pubDate>Thu, 03 Dec 2020 19:54:40 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=26074#p26074</guid>
		</item>
		<item>
			<title><![CDATA[Re: unofficial SD card images and their builder for RPi series (inc. RPi4)]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=26062#p26062</link>
			<description><![CDATA[<p>The referenced GitHub repo has a link to a google drive folder, with a bunch of pre-built images.<br />From that folder, I picked Raspberry_Pi_Devuan_beowulf_arm64_ext4_root_password_is_root.img.xz (built on the 16th of October), and booted in on a rPi 4b board.</p><p>It does boot, but wired networking doesn&#039;t work. As far as I can tell, no eth0 device is being created.</p><p>Is that a known issue? Thanks.</p>]]></description>
			<author><![CDATA[dummy@example.com (csillag)]]></author>
			<pubDate>Thu, 03 Dec 2020 15:05:32 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=26062#p26062</guid>
		</item>
		<item>
			<title><![CDATA[Re: unofficial SD card images and their builder for RPi series (inc. RPi4)]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=25136#p25136</link>
			<description><![CDATA[<p>I forgot to include isc-dhcp-client package in my above script. A corrected one is available at <a href="https://github.com/emojifreak/debian-rpi-image-script" rel="nofollow">https://github.com/emojifreak/debian-rpi-image-script</a></p>]]></description>
			<author><![CDATA[dummy@example.com (emojifreak)]]></author>
			<pubDate>Wed, 07 Oct 2020 07:50:45 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=25136#p25136</guid>
		</item>
		<item>
			<title><![CDATA[Re: unofficial SD card images and their builder for RPi series (inc. RPi4)]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=25134#p25134</link>
			<description><![CDATA[<p>I have no experience with ARM 32-bit computers, but Devuan Chimaera (arm64) seems to work fine on RPi 4B 8GB model.</p>]]></description>
			<author><![CDATA[dummy@example.com (emojifreak)]]></author>
			<pubDate>Wed, 07 Oct 2020 05:37:39 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=25134#p25134</guid>
		</item>
		<item>
			<title><![CDATA[Re: unofficial SD card images and their builder for RPi series (inc. RPi4)]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=25132#p25132</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>I mean, if you are on x86, debootstraping for lets say arm64?</p></div></blockquote></div><p>Thanks for your interest. Yes. mmdebstrap can handle different host and target architectures.<br />I am using an Intel laptop, and I can build a bootable filesystem of arm64 (and armhf, armeb etc...).<br />It is similar to qemu-debootstrap.</p><p>mmdebstrap can also install 64-bit kernel linux-image-arm64 and 32-bit armhf binaries by<br />giving --arcitectures=armhf,arm64. But due to the bug (?) in raspi-firmware<br /><a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=971748" rel="nofollow">https://bugs.debian.org/cgi-bin/bugrepo … bug=971748</a><br />the resulting SD card does not boot (manual fix required to the SD card).</p><p>On the other hand, armhf emulation on Intel had been a bit buggy. One might<br />need a newer versions of qemu-user-static for armhf emulation.<br />Devuan qemu-user-static 5.1 or later are fine.</p>]]></description>
			<author><![CDATA[dummy@example.com (emojifreak)]]></author>
			<pubDate>Tue, 06 Oct 2020 23:35:41 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=25132#p25132</guid>
		</item>
		<item>
			<title><![CDATA[Re: unofficial SD card images and their builder for RPi series (inc. RPi4)]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=25115#p25115</link>
			<description><![CDATA[<p>hello emojifreak,<br />I am using crossdebootstrap on Edev1, how does mmdebstrap achieves the same?<br />I mean, if you are on x86, debootstraping for lets say arm64?</p><p>Thanks for your work <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (tuxd3v)]]></author>
			<pubDate>Tue, 06 Oct 2020 14:10:27 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=25115#p25115</guid>
		</item>
		<item>
			<title><![CDATA[unofficial SD card images and their builder for RPi series (inc. RPi4)]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=25113#p25113</link>
			<description><![CDATA[<p>Edit: A bug-fixed version is available at <a href="https://github.com/emojifreak/debian-rpi-image-script" rel="nofollow">https://github.com/emojifreak/debian-rpi-image-script</a><br />Edit: Built images are available at <a href="https://drive.google.com/drive/folders/1-L5pT4tn7wfxp9urjnIDL2SvAbxO8Vl6?usp=sharing" rel="nofollow">https://drive.google.com/drive/folders/ … sp=sharing</a></p><p>Hi everyone,</p><p>I made an automated shell script for building an SD card image<br />of <strong>pure</strong> Devuan Chimaera for Raspberry Pi 4 (and maybe 0, 1, 2, and 3)<br />as follows. It runs on a (Intel/AMD) computer with an SD card slot running Devuan<br />(or Debian or Ubuntu) with recent versions of qemu-user-static and<br />mmdebstrap packages. I tested it only on Raspberry Pi 4B (8GB model).<br />Created SD card does not have GUI, and it can be installed by tasksel etc.</p><p>An SD card should be accessible as /dev/mmcblk0, otherwise change the script.<br />The following script should be run as root.</p><div class="codebox"><pre class="vscroll"><code>#!/bin/bash

apt-get -q -y install mmdebstrap qemu-user-static binfmt-support
mkdir /mnt /mnt2 2&gt;/dev/null

echo -n &quot;Swap partition size in GB, 0 means no swap partition: &quot;
read SWAPGB

DEVFILE=/dev/mmcblk0
#DEVFILE=/dev/loop2
#rm $IMGFILE
#dd if=/dev/zero of=$IMGFILE count=1 seek=`expr 4096 \* 1024 - 1`
#losetup -P $DEVFILE $IMGFILE
#losetup -l
fdisk $DEVFILE &lt;&lt;EOF
o
n
p
1

+256M
a
t
c
n
p
2

-${SWAPGB}GiB
p
w
EOF
partx $DEVFILE
if [ $SWAPGB -gt 0 ]; then
  fdisk $DEVFILE &lt;&lt;EOF
n
p
3

t
3
82
p
w
EOF
partx $DEVFILE
  mkswap -f -L RASPISWAP ${DEVFILE}p3
fi
   
echo -n &quot;Filesystem type of the root partition (ext4 or btrfs): &quot;
read FSTYPE
eval mkfs.${FSTYPE} -L RASPIROOT ${DEVFILE}p2

echo -n &quot;Variant of mmdebstrap (apt, required, important, or standard): &quot;
read MMVARIANT
cat &lt;&lt;EOF
Explanation of architectures:
armeb for Raspberry Pi Zero, Zero W and 1,
armhf for Raspberry Pi 2,
arm64 for Raspberry Pi 3 and 4.
32-bit kernel is unsupported on 64-bit ARM CPUs.
EOF
#echo -n &#039;Architecture (&quot;armeb&quot;, &quot;armhf&quot;, &quot;arm64&quot;, or &quot;armhf,arm64&quot;):&#039;
echo -n &#039;Architecture (&quot;armeb&quot;, &quot;armhf&quot;, or &quot;arm64&quot;):&#039;
read MMDEBARCH
if [ $MMDEBARCH == armeb ]; then
    KERNELPKG=linux-image-rpi
elif [ $MMDEBARCH == armhf ]; then
    KERNELPKG=linux-image-armmp-lpae
else
    KERNELPKG=linux-image-arm64
fi
echo &quot;Selected kernel package is $KERNELPKG.&quot;
    
mount -o async,lazytime,discard,noatime ${DEVFILE}p2 /mnt
mmdebstrap --architectures=$MMDEBARCH --variant=$MMVARIANT --components=&quot;main contrib non-free&quot; --include=${KERNELPKG},eudev,kmod,e2fsprogs,btrfs-progs,sysvinit-core,locales,tzdata,apt-utils,whiptail,ifupdown,wpasupplicant,crda,raspi-firmware,firmware-brcm80211,firmware-linux-free,firmware-misc-nonfree,keyboard-configuration,console-setup chimaera /mnt http://deb.devuan.org/merged/

mkfs.vfat -v -F 32 -n RASPIFIRM ${DEVFILE}p1
mount -o async,discard,lazytime,noatime ${DEVFILE}p1 /mnt2
cp -Rp /mnt/boot/firmware/* /mnt2
rm -rf /mnt/boot/firmware/*
umount /mnt2
mount -o async,discard,lazytime,noatime ${DEVFILE}p1 /mnt/boot/firmware

echo -n &quot;Choose hostname: &quot;
read YOURHOSTNAME
echo &quot;$YOURHOSTNAME&quot; &gt;/mnt/etc/hostname
cat &gt;/mnt/etc/fstab &lt;&lt;EOF
LABEL=RASPIROOT / ${FSTYPE} rw,async,lazytime,discard 0 1
LABEL=RASPIFIRM /boot/firmware vfat rw,async,lazytime,discard 0 2
EOF
if [ $SWAPGB -gt 0 ]; then
  echo &#039;LABEL=RASPISWAP none swap sw,discard 0 0&#039; &gt;&gt;/mnt/etc/fstab
fi

echo &quot;IPv4 DHCP is assumed. Otherwise edit /etc/network/interfaces&quot;
echo -n &quot;Name of the primary network interface (eth0, wlan0, none): &quot;
read NETIF

if [ $NETIF != none ]; then
  cat &gt;&gt;/mnt/etc/network/interfaces &lt;&lt;EOF
auto $NETIF
iface $NETIF inet dhcp
EOF
  if [ $NETIF == wlan0 ]; then
    echo -n &quot;Your Wireless LAN SSID: &quot;
    read SSID
    echo -n &quot;Your Wireless LAN passphrease: &quot;
    read PSK
    cat &gt;&gt;/mnt/etc/network/interfaces &lt;&lt;EOF
    wpa-ssid $SSID
    wpa-psk $PSK
EOF
  fi
fi

set -x
#chroot /mnt pam-auth-update
chroot /mnt passwd root
chroot /mnt dpkg-reconfigure tzdata
chroot /mnt dpkg-reconfigure locales
chroot /mnt dpkg-reconfigure keyboard-configuration

#chroot /mnt apt-get -y --purge --autoremove purge python2.7-minimal

echo &#039;console=tty0 console=ttyS1,115200 root=LABEL=RASPIROOT rw fsck.repair=yes net.ifnames=0 rootwait&#039; &gt;/mnt/boot/firmware/cmdline.txt

umount /mnt/boot/firmware/
umount /mnt</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (emojifreak)]]></author>
			<pubDate>Tue, 06 Oct 2020 08:25:57 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=25113#p25113</guid>
		</item>
	</channel>
</rss>
