<?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=3544&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Raspberry Pi 3B+ and botting from USB port]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=3544</link>
		<description><![CDATA[The most recent posts in Raspberry Pi 3B+ and botting from USB port.]]></description>
		<lastBuildDate>Sat, 06 Jun 2020 21:46:56 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Raspberry Pi 3B+ and botting from USB port]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=22433#p22433</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>Camtaf wrote:</cite><blockquote><div><p>... Devuan image doesn&#039;t have the USB drivers built in ....</p></div></blockquote></div><div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><p>Does this have a way around it?</p></div></blockquote></div><p>No one?</p><p>Thanks in advance,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Sat, 06 Jun 2020 21:46:56 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=22433#p22433</guid>
		</item>
		<item>
			<title><![CDATA[Re: Raspberry Pi 3B+ and botting from USB port]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=22162#p22162</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>Camtaf wrote:</cite><blockquote><div><p>... Devuan image doesn&#039;t have the USB drivers built in ....</p></div></blockquote></div><p>You were <span class="bbu">exactly</span> right ...&#160; &#160;=-)<br />Size or FAT16/32 does not matter.</p><p>I can <em>start</em> to boot with a 128Mb or 256Mb partition, either FAT16 or FAT32.</p><p>But it always stops here:<br />eg: 128Mb FAT16</p><div class="codebox"><pre><code>--- snip ---
[    ] sd 0:0:0:0  [sda] 3970048 512-byte logical blocks: (2.03GB/1.89GB) 
[    ] sd 0:0:0:0  [sda] Write Protect is off
[    ] sd 0:0:0:0  [sda] No Caching mode page found
[    ] sd 0:0:0:0  [sda] Assuming drive cache: write through
[    ] sda: sda1 sda2
[    ] sd 0:0:0:0  [sda] Attached SCSI removable disk
_</code></pre></div><p>Does this have a way around it?</p><p>Thanks in advance,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Thu, 28 May 2020 20:49:55 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=22162#p22162</guid>
		</item>
		<item>
			<title><![CDATA[Re: Raspberry Pi 3B+ and botting from USB port]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=22153#p22153</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>Camtaf wrote:</cite><blockquote><div><p>... Devuan image doesn&#039;t have the USB drivers built in ...</p></div></blockquote></div><p>I&#039;m not too clear on how the boot process in ARM64 works.<br />I&#039;ve always been on x86/x86_64 ie: w/BIOS booting&#160; &#160; &#160;</p><p>But like you, I don&#039;t think it is a size issue but cannot rule it out.</p><p>Found <a href="https://www.raspberrypi.org/blog/buster-the-new-version-of-raspbian/#comment-1510984" rel="nofollow">this</a>:</p><div class="quotebox"><cite>OP wrote:</cite><blockquote><div><p>I have upgraded three RPS 3B+ now and can tell, in all cases there were crashes during the installation process. Then I resized the boot partition to 240 GB and had no more problems.</p><p>Resizing the FAT partition with GParted is tricky: you must<br />1. backup the files in /boot<br />2. reformat the partition as ext4<br />3. resize and move both partitions<br />4. reformat the first partition to FAT32<br />5. relabel the partition to boot<br />6. restore the files from the backup</p><p>Sounds scary, but this worked for me.</p></div></blockquote></div><p>Here it is most probably a question of the size of the <em>partition</em> vs. the size of the <em>update</em>.<br />One would think that in a properly packaged upgrade, instead of a <em>crash</em>, some script would check that the update would actually <span class="bbu">fit the partition</span>.</p><p>But I digress.</p><p>Thinking that the problem is probably in the type of partition and not the size, I had a look at their main characteristics.<br />I burned different images for Raspberry Pi 3B + on an SDcard and did <span class="bbc">blkid</span>, <span class="bbc">parted -l</span> and <span class="bbc">fdisk-l</span> on each to compare the results:</p><p><span class="bbu">1. devuan_ascii_2.0.0_arm64_raspi3.img</span></p><p><span class="bbc">blkid</span></p><div class="codebox"><pre><code>/dev/sdf1: SEC_TYPE=&quot;msdos&quot; UUID=&quot;EEA4-304A&quot; TYPE=&quot;vfat&quot; PARTUUID=&quot;ac806f8a-01&quot;
/dev/sdf2: UUID=&quot;589c7999-62be-47ac-8847-32b62fd9fdc9&quot; TYPE=&quot;ext4&quot; PARTUUID=&quot;ac806f8a-02&quot;</code></pre></div><p><span class="bbc">parted -l</span></p><div class="codebox"><pre><code>Model: Generic Mass-Storage (scsi)
Disk /dev/sdf: 2033MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  135MB   134MB   primary  fat16        boot, lba
 2      135MB   1983MB  1848MB  primary  ext4</code></pre></div><p><span class="bbc">fdisk -l</span></p><div class="codebox"><pre><code>Disk /dev/sdf: 1.9 GiB, 2032664576 bytes, 3970048 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xac806f8a

Device     Boot  Start     End Sectors  Size Id Type
/dev/sdf1  *      2048  264191  262144  128M  c W95 FAT32 (LBA)
/dev/sdf2       264192 3872767 3608576  1.7G 83 Linux</code></pre></div><p><span class="bbu">2. 2020-02-13-raspbian-buster-lite.img</span></p><p><span class="bbc">blkid</span></p><div class="codebox"><pre><code>/dev/sdf1: LABEL=&quot;boot&quot; UUID=&quot;4BBD-D3E7&quot; TYPE=&quot;vfat&quot; PARTUUID=&quot;738a4d67-01&quot;
/dev/sdf2: LABEL=&quot;rootfs&quot; UUID=&quot;45e99191-771b-4e12-a526-0779148892cb&quot; TYPE=&quot;ext4&quot; PARTUUID=&quot;738a4d67-02&quot;</code></pre></div><p><span class="bbc">parted -l</span></p><div class="codebox"><pre><code>Model: Generic Mass-Storage (scsi)
Disk /dev/sdf: 2033MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type     File system  Flags
 1      4194kB  273MB   268MB   primary  fat32        lba
 2      273MB   1850MB  1577MB  primary  ext4</code></pre></div><p><span class="bbc">fdisk -l</span></p><div class="codebox"><pre><code>Disk /dev/sdf: 1.9 GiB, 2032664576 bytes, 3970048 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x738a4d67

Device     Boot  Start     End Sectors  Size Id Type
/dev/sdf1         8192  532479  524288  256M  c W95 FAT32 (LBA)
/dev/sdf2       532480 3612671 3080192  1.5G 83 Linux</code></pre></div><p><span class="bbu">3. LibreELEC-RPi2.arm-9.2.1.img</span></p><p><span class="bbc">blkid</span></p><div class="codebox"><pre><code>/dev/sdf1: LABEL=&quot;BOOT&quot; UUID=&quot;22BD-E464&quot; TYPE=&quot;vfat&quot; PARTUUID=&quot;08de5300-01&quot;
/dev/sdf2: LABEL=&quot;RECALBOX&quot; UUID=&quot;9c7b2218-a4be-431c-900c-733cb0382b28&quot; TYPE=&quot;ext4&quot; PARTUUID=&quot;08de5300-02&quot;
/dev/sdf3: LABEL=&quot;SHARE&quot; UUID=&quot;e5113429-80b8-4347-bd0d-802da4c4726e&quot; TYPE=&quot;ext4&quot; PARTUUID=&quot;08de5300-03&quot;</code></pre></div><p><span class="bbc">parted -l</span></p><div class="codebox"><pre><code>Model: Generic Mass-Storage (scsi)
Disk /dev/sdf: 31.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type     File system  Flags
 1      512B    67.1MB  67.1MB  primary  fat32        lba
 2      67.1MB  2215MB  2147MB  primary  ext4
 3      2215MB  31.9GB  29.7GB  primary  ext4</code></pre></div><p><span class="bbc">fdisk -l</span></p><div class="codebox"><pre><code>Disk /dev/sdf: 29.7 GiB, 31914983424 bytes, 62333952 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x08de5300

Device     Boot   Start      End  Sectors  Size Id Type
/dev/sdf1             1   131072   131072   64M  c W95 FAT32 (LBA)
/dev/sdf2        131073  4325376  4194304    2G 83 Linux
/dev/sdf3       4325377 62333951 58008575 27.7G 83 Linux</code></pre></div><p>It was <span class="bbc">parted -l</span> that showed me what the real difference was:</p><p><span class="bbu">1. Devuan ascii 2.0.0</span></p><div class="codebox"><pre><code>Disk Flags:
Number  Start   End     Size    Type     File system  Flags
 1      1049kB  135MB   134MB   primary  fat16        boot, lba</code></pre></div><p><span class="bbu">2. Raspbian Buster-lite</span></p><div class="codebox"><pre><code>Disk Flags:
Number  Start   End     Size    Type     File system  Flags
 1      4194kB  273MB   268MB   primary  fat32        lba</code></pre></div><p><span class="bbu">3. LibreElec 9.2.1</span></p><div class="codebox"><pre><code>Disk Flags:
Number  Start   End     Size    Type     File system  Flags
 1      512B    67.1MB  67.1MB  primary  fat32        lba</code></pre></div><p>In Devuan ascii the first partition is <span class="bbc">primary</span> <span class="bbc">fat16</span> <span class="bbc">boot, lba</span>.<br />But while in the other two Raspbian/Debian based images the first partition is <em>also</em> <span class="bbc">primary</span> and <span class="bbc">lba</span>, it is <span class="bbc">fat32</span> and does <span class="bbc">not</span> have the boot flag set.</p><p>Any one with more experience in these matters care to pitch in?</p><p>The RPi 3b+ with the OTP bit set (now by default) allows more flexibility in that instead of booting <em>only</em> from the SDCard slot, it will first try to boot from an SDCard and if there&#039;s no boot system there, from a USB slot.</p><p>It would be great if the Devuan ARM64 images could take advantage of this feature.</p><p>Thanks in advance,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Thu, 28 May 2020 13:30:34 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=22153#p22153</guid>
		</item>
		<item>
			<title><![CDATA[Re: Raspberry Pi 3B+ and botting from USB port]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=22151#p22151</link>
			<description><![CDATA[<p>Maybe the Devuan image doesn&#039;t have the USB drivers built in - I&#039;ve come across this with other distros, (&amp; BSD).</p><p>P.S. The larger first partition is for the RPi4, (but doesn&#039;t harm other Rpi).</p>]]></description>
			<author><![CDATA[dummy@example.com (Camtaf)]]></author>
			<pubDate>Thu, 28 May 2020 08:11:47 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=22151#p22151</guid>
		</item>
		<item>
			<title><![CDATA[Raspberry Pi 3B+ and botting from USB port]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=22133#p22133</link>
			<description><![CDATA[<p>Hello:</p><p>The Raspberry Pi 3B+ supports mass storage boot, unlike other models ( 2B v1.2, 3A+, 3B) which needed a one-time programming of the OTP bit via a line at the end of <span class="bbc">/boot/config.txt</span>.<br />I have checked my RPi and verified that the bit is set:</p><div class="codebox"><pre><code>root@rpidevuan:/home/pi# vcgencmd otp_dump | grep 17:
17:3020000a
root@rpidevuan:/home/pi# </code></pre></div><p>I have also been able to boot a Raspian image from a USB port using an SDCard reader and a standard size 2.0Gb card.<br />But if I want to boot the same SDCard with a Devuan image, it will not boot.</p><p>To compare how the images were burned to the cards, I did <span class="bbc">blkid</span> and <span class="bbc">fdisk -l</span> on each of the images after mounting:</p><p>Image: <span class="bbc">LibreELEC-RPi2.arm-9.2.1.img</span></p><div class="codebox"><pre><code># fdisk -l
--- snip ---
Disk /dev/sdf: 1.9 GiB, 2032664576 bytes, 3970048 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x11072f7d

Device     Boot   Start     End Sectors  Size Id Type
/dev/sdf1  *       8192 1056767 1048576  512M  c W95 FAT32 (LBA)
/dev/sdf2       1056768 1122303   65536   32M 83 Linux
--- snip ---</code></pre></div><p># blkid</p><div class="codebox"><pre><code>--- snip ---
/dev/sdf1: SEC_TYPE=&quot;msdos&quot; UUID=&quot;EEA4-304A&quot; TYPE=&quot;vfat&quot;
/dev/sdf2: UUID=&quot;589c7999-62be-47ac-8847-32b62fd9fdc9&quot; TYPE=&quot;ext4&quot;
--- snip ---</code></pre></div><p>Image: <span class="bbc">devuan_ascii_2.0.0_arm64_raspi3.img</span></p><div class="codebox"><pre><code>fdisk -l
--- snip ---
Disk /dev/sdf: 1.9 GiB, 2032664576 bytes, 3970048 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xac806f8a

Device     Boot  Start     End Sectors  Size Id Type
/dev/sdf1         2048  264191  262144  128M  c W95 FAT32 (LBA)
/dev/sdf2       264192 3872767 3608576  1.7G 83 Linux
--- snip ---</code></pre></div><p>blkid </p><div class="codebox"><pre><code>--- snip ---
/dev/sdf1: SEC_TYPE=&quot;msdos&quot; UUID=&quot;EEA4-304A&quot; TYPE=&quot;vfat&quot; PARTUUID=&quot;ac806f8a-01&quot;
/dev/sdf2: UUID=&quot;589c7999-62be-47ac-8847-32b62fd9fdc9&quot; TYPE=&quot;ext4&quot;
--- snip ---</code></pre></div><p>Besides the difference in size (512M vs 128M) the Raspbian image has the first partition with the boot flag set.</p><p>LibreELEC-RPi2.arm-9.2.1<br />---<br />/dev/sdf1&#160; *&#160; &#160; &#160; &#160;8192 1056767 1048576&#160; 512M&#160; c W95 FAT32 (LBA)<br />---</p><p>devuan_ascii_2.0.0_arm64_raspi3<br />---<br />/dev/sdf1&#160; &#160; &#160; &#160; &#160; 2048&#160; &#160;264191&#160; &#160;262144&#160; 128M&#160; c W95 FAT32 (LBA)<br />---</p><p>Now, if I set the boot flag on the SDCard with the devuan_ascii_2.0.0_arm64_raspi3 image, it still won&#039;t boot from the RPis USB port.</p><p>What am I missing?</p><p>Thanks in advance.</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Wed, 27 May 2020 00:05:52 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=22133#p22133</guid>
		</item>
	</channel>
</rss>
