<?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=3155&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [ ARMHF ] build for Olimex OlinuXino Lime2]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=3155</link>
		<description><![CDATA[The most recent posts in [ ARMHF ] build for Olimex OlinuXino Lime2.]]></description>
		<lastBuildDate>Wed, 20 May 2020 04:33:56 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [ ARMHF ] build for Olimex OlinuXino Lime2]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=21939#p21939</link>
			<description><![CDATA[<p>The &#039;<strong>/etc/update-motd.d/20-monitor</strong>&#039;, for OLime2<br />This piece of the puzzle was still missing <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />Yeah UPS Monitoring working..</p><div class="codebox"><pre><code>~# ls -l /etc/update-motd.d/20-monitor
lrwxrwxrwx 1 root root 22 May 21 14:37 /etc/update-motd.d/20-monitor -&gt; /usr/local/bin/monitor
~# which monitor
/usr/local/bin/monitor</code></pre></div><p>Discharging:<br /><span class="postimg"><img src="https://cld.pt/dl/download/0fe833d7-bb08-420e-a12f-34b707ba8dff/monitor.png?download=true" alt="monitor.png" /></span><br />Charging:<br /><span class="postimg"><img src="https://cld.pt/dl/download/97394c39-9f8e-401d-a464-661defcf771d/monitor1.png?download=true" alt="monitor1.png" /></span><br />Full:<br /><span class="postimg"><img src="https://cld.pt/dl/download/f6137181-f94e-4909-ac12-9622200fcc42/monitor2.png?download=true" alt="monitor2.png" /></span><br />Battery Disconnected:<br /><span class="postimg"><img src="https://cld.pt/dl/download/3238345d-69b8-4e5a-bab8-823dad5b40de/monitor3.png?download=true" alt="monitor3.png" /></span></p>]]></description>
			<author><![CDATA[dummy@example.com (tuxd3v)]]></author>
			<pubDate>Wed, 20 May 2020 04:33:56 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=21939#p21939</guid>
		</item>
		<item>
			<title><![CDATA[[ ARMHF ] build for Olimex OlinuXino Lime2]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=18519#p18519</link>
			<description><![CDATA[<p>Hello All,<br />This is the aarch32( armhf ) counterpart, for Linux Sunxi, Allwinner A20 Hardware.. <br />In the next Iterations, will be also there&#160; a &#039;Desktop&#039; build type..<br />In this case, there is a <strong>v0.5beta Server</strong> build.</p><p><strong>Features &amp; Versions</strong>:</p><p>1) - <em>Arm Trusted Firmware&#160; - <strong>Mainline </strong>( built for armhf )<br />&#160; &#160; &#160; U-boot boot-loader&#160; &#160; &#160; &#160;- <strong>v201910</strong> ( built for armhf )<br />2) - Linux Kernel&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; - <strong>Stable 5.7.0 + Lima driver + Cedrus driver</strong> ( built for armhf )<br />3) - UserSpace&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; - <strong>Devuan Beowulf</strong> ( for armhf )</em><br />4) - Changelog&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;- Kernel Update, HDMI Audio driver, UPS Monitoring, WireGuard VPN Kernel Driver<br />5) - Known Problems&#160; &#160; &#160; &#160; &#160;- Activating Zram, doesn&#039;t hapen automatically, but it should need more investigation..</p><p>1)&#160; <strong>BootLoader( aarch32.. only u-boot )</strong></p><p>Disk Partitioning scheme:</p><div class="codebox"><pre><code># parted /dev/mmcblk0
(...)
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  101MB   99.6MB  primary  ext2
 2      101MB   1500MB  1399MB  primary  ext4</code></pre></div><p>a)&#160; &#160;- Bootloader( Arm Trusted Firmware + U-Boot ), is between [ beginning - 1st partition ]( starting at sector 16( 8KiB ), til 1MiB )<br />&#160; a1) - The Bootloader will search for a file called <strong>&#039;boot.scr&#039;</strong>, and after initialise the u-boot environment, <span class="bbu">will execute that script</span>..<br />&#160; a2) - In&#160; <strong>&#039;boot.scr&#039;</strong>,<span class="bbu"> for this image</span>, it will point to &#039;Olimex Olinuxino Lime2&#039; Device Tree Binary File by default( was tested there.. )..<br />&#160; a3) - <span class="bbu">IF you have other board than&#160; &#039;Olimex Olinuxino Lime2&#039;</span>, please Read Bellow in the &#039;Notes Section&#039;..&#160; &#160; <br />b)&#160; &#160;- 1st Partition( after BootLoader ) is mounted as&#160; <strong>&#039;/boot&#039;</strong><br />c)&#160; &#160;- 2nd Partition is mounted as rootfs <strong>&#039;/&#039;</strong></p><p>NOTA!<br />The Bootloader in a) usually takes ~600KiB..<br />Each time a bootloader is built, all area [ 8KiB - 1MiB ], <span class="bbu">needs to be clean first</span>( so that you can flash the new bootloader.. because could still be there any bits of the previous one.. which could lead to unpredictable consequences.. ).</p><p><strong>If you have Other Board than &#039;Olimex Olinuxino Lime2&#039;</strong>, situation described in <strong>a3)</strong>:<br />The &#039;boot.cmd&#039; script( format, Human Readable ):</p><div class="codebox"><pre><code># Send debug info to uart, and also display
setenv stdout serial,vga
setenv stderr serial,vga
setenv bootargs debug=on console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait fsck.repair=yes panic=15
setenv fdtfile sun7i-a20-olinuxino-lime2.dtb
load mmc 0:2 0x43000000 usr/lib/linux-image-5.7.0/${fdtfile}
load mmc 0:1 0x42000000 vmlinuz
bootz 0x42000000 - 0x43000000</code></pre></div><p>Write this Image, to a sd-card.<br />Mount 1st Partition in &#039;/mnt&#039;,</p><div class="codebox"><pre><code>mount /dev/sdb1 /mnt</code></pre></div><p>Then change the &#039;boot.cmd&#039; script to point to your board..<br /># You can find a list of supported boards &#039;dtb&#039; files in: &#039;/usr/lib/linux-image-5.4.6&#039;<br /># Edit the file &#039;boot.cmd&#039;, with &#039;vi&#039; for example.<br /># change the line:</p><div class="codebox"><pre><code>setenv fdtfile sun7i-a20-olinuxino-lime2.dtb</code></pre></div><p>to</p><div class="codebox"><pre><code>setenv fdtfile your_board.dtb</code></pre></div><p>Save the file,<br /># Generate the <span class="bbu">real script</span> file( binary ),<strong> &#039;boot.scr&#039;</strong></p><div class="codebox"><pre><code>mkimage -C none -A arm -T script -d /mnt/boot.cmd /mnt/boot.scr</code></pre></div><p>Done!</p><p>2)&#160; <strong>Linux Kernel</strong></p><p>Packages:<br />There are 3 packages installed( in the future will be at least the graphics drivers more.. ):</p><div class="codebox"><pre><code># dpkg -l |grep -E &quot;(linux-.*(headers|image|libc-dev))&quot;
ii  linux-headers-5.7.0          5.7.0-5                      armhf        Linux kernel headers for 5.7.0 on armhf
ii  linux-image-5.7.0            5.7.0-5                      armhf        Linux kernel, version 5.7.0
ii  linux-libc-dev:armhf         5.7.0-5                      armhf        Linux support headers for userspace development</code></pre></div><p>The target will be to reach, at least the Linux kernel 5.{7,8}( since there still are few things that need support, but <a href="https://linux-sunxi.org/Linux_mainlining_effort#Status_Matrix" rel="nofollow">not much</a>.. ), and of course.. work improve the Device Tree Bindings, for each board, when possible.. most important things missing <del>HDMI Audio Codec</del>( see 5.d), included now ), and keypad driver..</p><p>3)&#160; <strong>UserSpace -Users &amp; Passwords</strong>:</p><p>a) <strong>root</strong>&#160; &#160; &#160; - password &#039;<strong>toor</strong>&#039;<br />b) <strong>devuan</strong> - password &#039;<strong>devuan</strong>&#039;</p><p>NOTA!<br />SSH is enabled, so that you can login, but <span class="bbu">root login, is disabled</span>, you should login as <strong>&#039;devuan&#039;</strong>, only then switch to &#039;root&#039;, if you want to.. for that,<br />After Login as &#039;devuan&#039;, issue:</p><div class="codebox"><pre><code>sudo su -</code></pre></div><p>And type your <strong>&#039;devuan&#039;</strong> password, that&#039;s it..</p><p>4)&#160; <strong>ChangeLog</strong></p><p>a) -&#160; Migration to Devuan Beowulf<br />b) - <strong>sun4i_ss prng </strong>driver( no more need to use /dev/urandom in rng-tools config.. )<br />c) - Realtek Network Driver( not generic one.. )<br />d) - Micrel Network Driver( Newer Boards come with it.. )<br />e) - Audio <strong>sun4i_codec</strong> Driver.. see Section 5d)<br />f)&#160; - Kernel Update to 5.7.0<br />g) - <strong>sun4i-csi</strong> - Camera{ BT656, Parallel }, activated<br />h) - Hardware VPU Decode Acceleration, now supports( MJPEG, MPEG2, H.264, <span class="bbu"><a href="https://linux-sunxi.org/Linux_mainlining_effort#Merged_into_5.5" rel="nofollow">HEVC/H.265</a></span> )<br />i) - 3d Graphics Kernel Driver( Lima )<br />j) - UPS Monitoring Script<br />k) - <a href="https://www.wireguard.com" rel="nofollow">WireGuard VPN</a> Kernel Driver( present in Linux since 5.6 kernel )</p><p>5)&#160; <strong>Known Problems or Things to test</strong></p><p>a) - Activating Zram, doesn&#039;t happen automatically( but it should.. need more investigation.. ).<br />b) - Testing is needed, on camera interfaces { BT656, Parallel } merged in Kernel 5.5.0 for Allwinner A20 drivers <strong>sun4i-csi</strong> ..<br />c) - Compile <a href="https://linux-sunxi.org/Cedrus/libvdpau_integration_matrix" rel="nofollow">V4l2 Cedrus driver</a>, test it via libvdpau..<br />d) - HDMI Audio Codec, <a href="https://olimex.wordpress.com/2019/12/20/the-a20-driver-for-hdmi-audio-is-almost-done/" rel="nofollow">was submitted in January 2020</a>, Included here as a V3 patch!Tested and Working OK!<br />e) - Lima Kernel Driver, needs the Userspace Kernel Side( Lima Mesa Driver )<br />f) - Tests on UPS monitoring Script, shows it his working OK!<br />g) - <a href="https://www.wireguard.com" rel="nofollow">WireGuard VPN</a>, needs Compilation of Userspace tools, and testing..</p><p>For this image, to reach more Supported Hardware and Users, your help is also needed <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />Testing <a href="https://cld.pt/dl/download/8a7e55aa-8cb2-4b8d-a90d-ed26572bbd3e/devuan-beowulf-sunxi-armhf-0.4-beta.img.xz?download=true" rel="nofollow">this image</a>, posting your feedback, and improvements..<br />SHA256sum:</p><div class="codebox"><pre><code>$ sha256sum devuan_beowulf_3.0.0_armhf_olinuxino_lime2_0.5.img.xz 
9ca1c9293ac6a0edea431d04b4face2fbbe914c1422eb5704da4864c706a4ae9  devuan_beowulf_3.0.0_armhf_olinuxino_lime2_0.5.img.xz</code></pre></div><p>Best Regards,<br />tux</p>]]></description>
			<author><![CDATA[dummy@example.com (tuxd3v)]]></author>
			<pubDate>Sun, 17 Nov 2019 03:22:22 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=18519#p18519</guid>
		</item>
	</channel>
</rss>
