<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0"
 xmlns:blogChannel="http://backend.userland.com/blogChannelModule"
>

<channel>
<title><![CDATA[Dobrica Pavlinušić's random unstructured stuff: arm]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?action=weblog_display;category=arm</link>
<description></description>
<pubDate>Thu, 04 Sep 2025 09:26:35 -0000</pubDate>
<webMaster>root@saturn.ffzg.hr</webMaster>
<generator>Socialtext Workspace v2.19.0.2</generator>

<item>
<title><![CDATA[A95X F3 Air]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?a95x_f3_air</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: arm</div><hr/><div class="wiki">
<p>
Amlogic Quad-core A55<br />
RAM: 4GB<br />
ROM: 64GB<br />
WIFI: 2.4/5Ghz<br />
2A@5V DC</p>
<p>
F3X S905X3</p>
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#armbian">Dobrica Pavlinušić's random unstructured stuff (armbian)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] armbian} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#scdard">Dobrica Pavlinušić's random unstructured stuff (scdard)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] scdard} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#dead">Dobrica Pavlinušić's random unstructured stuff (dead)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] dead} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#led_display">Dobrica Pavlinušić's random unstructured stuff (LED display)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] LED display} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#led_strip">Dobrica Pavlinušić's random unstructured stuff (LED strip)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] LED strip} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#serial">Dobrica Pavlinušić's random unstructured stuff (serial)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] serial} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#u_boot">Dobrica Pavlinušić's random unstructured stuff (u-boot)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] u-=boot} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#usb_boot">Dobrica Pavlinušić's random unstructured stuff (usb boot)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] usb boot} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#soc_bypass">Dobrica Pavlinušić's random unstructured stuff (soc bypass)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] soc bypass} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#android_image_unpack_in_search_for_bootloader">Dobrica Pavlinušić's random unstructured stuff (android image unpack in search for bootloader)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] android image unpack in search for bootloader} --></span></li>
</ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br /><br /><p>
internal photos:</p>
<p>
<a target="_blank" title="(external link)" href="https://fccid.io/2AVBM-A95XF3AIR/Internal-Photos/Internal-photos-4583382.pdf">https://fccid.io/2AVBM-A95XF3AIR/Internal-Photos/Internal-photos-4583382.pdf</a></p>
<h1 id="armbian">armbian</h1>
<p>
<a target="_blank" title="(external link)" href="https://www.armbian.com/amlogic-s9xx-tv-box/">https://www.armbian.com/amlogic-s9xx-tv-box/</a></p>
<p>
boot from sd card doesn't work, button is hidden inside phone connector, and is very stiff.</p>
<h2 id="scdard">scdard</h2>
<pre>
dpavlin@nuc:~$ sudo fdisk -l /dev/mmcblk0
Disk /dev/mmcblk0: 14.88 GiB, 15978201088 bytes, 31207424 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: 0x2a327079

Device         Boot   Start     End Sectors  Size Id Type
/dev/mmcblk0p1         8192 1056767 1048576  512M ea Linux extended boot
/dev/mmcblk0p2      1056768 4218879 3162112  1.5G 83 Linux


dpavlin@nuc:~$ sudo mount /dev/mmcblk0p1 /tmp/a95x-boot/
[Tue Sep  2 19:53:40 2025] mmc0: cannot verify signal voltage switch
dpavlin@nuc:~$ cd /tmp/a95x-boot/
dpavlin@nuc:/tmp/a95x-boot$ [Tue Sep  2 19:53:50 2025] mmc0: cannot verify signal voltage switch

dpavlin@nuc:/tmp/a95x-boot$ ls
[Tue Sep  2 19:53:54 2025] mmc0: cannot verify signal voltage switch
aml_autoscript                  dtb              initrd.img-6.12.43-current-meson64  u-boot-s905x2-s922     uInitrd
boot.bmp                        emmc_autoscript  s905_autoscript                     u-boot-s905x3
build-u-boot                    extlinux         System.map-6.12.43-current-meson64  u-boot-s905x3-ugoosx3
config-6.12.43-current-meson64  Image            u-boot-s905                         u-boot-s905x-s912

root@nuc:/tmp/a95x-boot/extlinux# ls -al ../dtb/amlogic/*x3*
-rwxr-xr-x 1 root root 40278 Aug 22 05:10 ../dtb/amlogic/meson-gxl-s905w-tx3-mini.dtb
-rwxr-xr-x 1 root root 77285 Aug 22 05:10 ../dtb/amlogic/meson-sm1-ugoos-x3.dtb

root@nuc:/tmp/a95x-boot/extlinux# vi extlinux.conf

root@nuc:/tmp/a95x-boot# cp  u-boot-s905x3-ugoosx3 u-boot.ext


</pre>
<br /><h1 id="dead">dead</h1>
<p>
device draws only 70mA from 5.2V 2A power supply (verified using <a href="https://saturn.ffzg.hr/rot13/index.cgi?dps5005" title="(58 months)  toc OpenDPS https johan.kanflo.com hacking-the-dps5005 https johan.kanflo.com opendps-design https ...">DPS5005</a>).</p>
<p>
<a target="_blank" title="(external link)" href="https://photos.google.com/photo/AF1QipMGlbI49ukEsx0OgqaPwIROT3cjvUe-7qfEOt3">https://photos.google.com/photo/AF1QipMGlbI49ukEsx0OgqaPwIROT3cjvUe-7qfEOt3</a>-</p>
<h1 id="led_display">LED display</h1>
<p>
this device has interesting DVD-like LED display with HT1628 DVD driver chip and some transistors (maybe level shifters since chip is 5V ?)</p>
<p>
<a target="_blank" title="(external link)" href="https://photos.google.com/photo/AF1QipOfJtafYiOvS0QW2uX-rFwruJ3wCz7pZtsZ6qNq">https://photos.google.com/photo/AF1QipOfJtafYiOvS0QW2uX-rFwruJ3wCz7pZtsZ6qNq</a></p>
<h1 id="led_strip">LED strip</h1>
<p>
<a target="_blank" title="(external link)" href="https://photos.google.com/photo/AF1QipMqXN8R4eBN2uQCzwUvn2ZtoBKnsJgQAE1ctr9J">https://photos.google.com/photo/AF1QipMqXN8R4eBN2uQCzwUvn2ZtoBKnsJgQAE1ctr9J</a></p>
<p>
it has three wire led strip of 15 leds (ws2812 meybe?) with three wires and SOIC8 chip on it.</p>
<h1 id="serial">serial</h1>
<p>
4 pins on bottom of board</p>
<p>
1. GND (pin marked with square on board)<br />
2. TX<br />
3. RX<br />
4. 3V3 (?)</p>
<p>
serial output:</p>
<pre>
SM1:BL:511f6b:81ca2f;FEAT:B2F839B2:202B2060;POC:F;RCY:0;EMMC:0;READ:0;CHK:1F;READ:0;CHK:1F;READ:0;CHK:1F;SD?:20000;USB:8;
LOOP:1;EMMC:0;READ:0;CHK:1F;READ:0;CHK:1F;READ:0;CHK:1F;SD?:20000;USB:8;
LOOP:2;EMMC:0;READ:0;CHK:1F;READ:0;CHK:1F;READ:0;CHK:1F;SD?:20000;USB:8;
LOOP:3;EMMC:0;READ:0;CHK:1F;READ:0;CHK:1F;READ:0;CHK:1F;SD?:20000;USB:8;
LOOP:4;EMMC:0;READ:0;CHK:1F;READ:0;CHK:1F;READ:0;CHK:1F;SD?:20000;USB:8;
LOOP:5;EMMC:0;READ:0;CHK:1F;READ:0;CHK:1F;READ:0;CHK:1F;SD?:20000;USB:8;
LOOP:6;EMMC:0;READ:0;CHK:1F;READ:0;CHK:1F;READ:0;CHK:1F;SD?:20000;USB:8;
</pre>
<br /><p>
with sd card inserted</p>
<pre>
SM1:BL:511f6b:81ca2f;FEAT:B2F839B2:202B2060;POC:F;RCY:0;EMMC:0;READ:0;CHK:1F;READ:0;CHK:1F;READ:0;CHK:1F;SD?:0;SD:0;READ:0;CHK:1F;USB:8;
LOOP:1;EMMC:0;READ:0;CHK:1F;READ:0;CHK:1F;READ:0;CHK:1F;SD?:0;SD:0;READ:0;CHK:1F;USB:8;
LOOP:2;EMMC:0;READ:0;CHK:1F;READ:0;CHK:1F;READ:0;CHK:1F;SD?:0;SD:0;READ:0;CHK:1F;USB:8;
LOOP:3;EMMC:0;READ:0;CHK:1F;READ:0;CHK:1F;READ:0;CHK:1F;SD?:0;SD:0;READ:0;CHK:1F;USB:8;
LOOP:4;EMMC:0;READ:0;CHK:1F;READ:0;CHK:1F;READ:0;CHK:1F;SD?:0;SD:0;READ:0;CHK:1F;USB:8;
SM1:BL:511f6b:81ca2f;FEAT:B2F839B2:202B2060;POC:F;RCY:0;EMMC:0;READ:0;CHK:1F;READ:0;CHK:1F;READ:0;CHK:1F;SD?:0;SD:0;READ:0;CHK:1F;USB:8;
SM1:BL:511f6b:81ca2f;FEAT:B2F839B2:202B2060;POC:F;RCY:0;EMMC:0;READ:0;CHK:1F;READ:0;CHK:1F;READ:0;CHK:1F;SD?:0;SD:0;READ:0;CHK:1F;USB:8;
</pre>
<br /><h1 id="u_boot">u-boot</h1>
<p>
<a target="_blank" title="(external link)" href="https://github.com/hexdump0815/u-boot-misc/blob/master/readme.gxy">https://github.com/hexdump0815/u-boot-misc/blob/master/readme.gxy</a></p>
<h1 id="usb_boot">usb boot</h1>
<p>
<a target="_blank" title="(external link)" href="https://github.com/superna9999/pyamlboot/tree/master">https://github.com/superna9999/pyamlboot/tree/master</a></p>
<h1 id="soc_bypass">soc bypass</h1>
<p>
<a target="_blank" title="(external link)" href="https://fredericb.info/2016/10/amlogic-s905-soc-bypassing-not-so.html">https://fredericb.info/2016/10/amlogic-s905-soc-bypassing-not-so.html</a></p>
<h1 id="android_image_unpack_in_search_for_bootloader">android image unpack in search for bootloader</h1>
<pre>
dpavlin@nuc:/nuc/amlogic/utils$ git remote -v
origin	https://github.com/khadas/utils.git (fetch)
origin	https://github.com/khadas/utils.git (push)


dpavlin@nuc:/nuc/amlogic/utils$ ./aml_image_v2_packer -d ~/Downloads/a95x/A95X_F3_AIR_20191024senk.img A95X_F3_AIR_20191024senk
[Msg]Image package version 0x2
[Msg]Unpack item [USB         ,              DDR] to (A95X_F3_AIR_20191024senk/DDR.USB) size:1330032 bytes
[Msg]Unpack item [USB         ,          DDR_ENC] to (A95X_F3_AIR_20191024senk/DDR_ENC.USB) size:65536 bytes
[Msg]Backup item [USB         ,            UBOOT] backItemId[0][USB, DDR]
[Msg]Unpack item [USB         ,        UBOOT_ENC] to (A95X_F3_AIR_20191024senk/UBOOT_ENC.USB) size:1330176 bytes
[Msg]Unpack item [PARTITION   ,         _aml_dtb] to (A95X_F3_AIR_20191024senk/_aml_dtb.PARTITION) size:79872 bytes
[Msg]Unpack item [UBOOT       ,     aml_sdc_burn] to (A95X_F3_AIR_20191024senk/aml_sdc_burn.UBOOT) size:1330544 bytes
[Msg]Unpack item [UBOOT.ENC   ,     aml_sdc_burn] to (A95X_F3_AIR_20191024senk/aml_sdc_burn.UBOOT.ENC) size:1330688 bytes
[Msg]Unpack item [ini         ,     aml_sdc_burn] to (A95X_F3_AIR_20191024senk/aml_sdc_burn.ini) size:602 bytes
[Msg]Unpack item [PARTITION   ,             boot] to (A95X_F3_AIR_20191024senk/boot.PARTITION) size:9620480 bytes
[Msg]Unpack item [PARTITION   ,       bootloader] to (A95X_F3_AIR_20191024senk/bootloader.PARTITION) size:1330176 bytes
[Msg]Unpack item [PARTITION   ,             dtbo] to (A95X_F3_AIR_20191024senk/dtbo.PARTITION) size:438 bytes
[Msg]Unpack item [PARTITION   ,             logo] to (A95X_F3_AIR_20191024senk/logo.PARTITION) size:1020176 bytes
[Msg]Unpack item [dtb         ,           meson1] to (A95X_F3_AIR_20191024senk/meson1.dtb) size:78383 bytes
[Msg]Backup item [dtb         ,       meson1_ENC] backItemId[4][PARTITION, _aml_dtb]
[Msg]Unpack item [PARTITION   ,              odm] to (A95X_F3_AIR_20191024senk/odm.PARTITION) size:536652 bytes
[Msg]Unpack item [conf        ,         platform] to (A95X_F3_AIR_20191024senk/platform.conf) size:155 bytes
[Msg]Unpack item [PARTITION   ,          product] to (A95X_F3_AIR_20191024senk/product.PARTITION) size:14745676 bytes
[Msg]Unpack item [PARTITION   ,         recovery] to (A95X_F3_AIR_20191024senk/recovery.PARTITION) size:16307200 bytes
[Msg]Unpack item [PARTITION   ,           system] to (A95X_F3_AIR_20191024senk/system.PARTITION) size:1377898716 bytes
[Msg]Unpack item [PARTITION   ,           vbmeta] to (A95X_F3_AIR_20191024senk/vbmeta.PARTITION) size:4096 bytes
[Msg]Unpack item [PARTITION   ,           vendor] to (A95X_F3_AIR_20191024senk/vendor.PARTITION) size:204157052 bytes
[Msg]Write config file &quot;A95X_F3_AIR_20191024senk/image.cfg&quot; OK!
Image unpack OK!
</pre>
<br /><p>
let's write bootloader to sdcard</p>
<pre>
root@nuc:/nuc/amlogic/utils/A95X_F3_AIR_20191024senk# ~dpavlin/dd.sh aml_sdc_burn.UBOOT.ENC /dev/mmcblk0
+ dd iflag=fullblock oflag=direct conv=fsync status=progress bs=1M if=aml_sdc_burn.UBOOT.ENC of=/dev/mmcblk0
1+1 records in
1+1 records out
1330688 bytes (1.3 MB, 1.3 MiB) copied, 0.491506 s, 2.7 MB/s
</pre>
<br /><p>
power up, 230-300 mA power draw, leds are cyan with blue vertical strip, passing from right to left, and LCD screen has boot on it.</p>
</div>
]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>arm</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?a95x_f3_air</guid>
<pubDate>Thu, 04 Sep 2025 09:26:35 -0000</pubDate>
</item>
<item>
<title><![CDATA[LXD8541]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?lxd8541</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: arm</div><hr/><div class="wiki">
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#serial">Dobrica Pavlinušić's random unstructured stuff (serial)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] serial} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#kernel">Dobrica Pavlinušić's random unstructured stuff (kernel)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] kernel} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#video_output">Dobrica Pavlinušić's random unstructured stuff (video output)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] video output} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#u_boot_enviroment">Dobrica Pavlinušić's random unstructured stuff (u-boot enviroment)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] u-=boot enviroment} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#fw_printenv">Dobrica Pavlinušić's random unstructured stuff (fw_printenv)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] fw_printenv} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#setup_boot_from_usb">Dobrica Pavlinušić's random unstructured stuff (setup boot from usb)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] setup boot from usb} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#power_button">Dobrica Pavlinušić's random unstructured stuff (power button)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] power button} --></span></li>
</ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br /><br /><span class="nlw_phrase"><a href="https://saturn.ffzg.hr/rot13/index.cgi/dove-bootlog.txt?action=attachments_download;page_name=lxd8541;id=20231219155756-0-27683">dove-bootlog.txt</a><!-- wiki: {file: dove-=bootlog.txt} --></span><br /><br /><p>
Xtreme PC LXD8541</p>
<p>
Chip PC Linux-based Thinx OS</p>
<p>
Product Specifications Xtreme PC LXD8541</p>
<p>
Processor • Marvell Dove, Armada 510 800MHZ <a target="_blank" title="(external link)" href="https://www.kernel.org/doc/html/v5.14/arm/marvell.html#dove-family-application-processor">https://www.kernel.org/doc/html/v5.14/arm/marvell.html#dove-family-application-processor</a></p>
<p>
Memory • 1GB, DDR3 @ 800MHz</p>
<p>
Mass Storage • 2GB, High reliability eMMC NAND flash • Optional externally accessed MicroSD slot</p>
<p>
Display Support • One DVI-I port<br />
• Display Data Control (DDC) for automatic setting of resolution and refresh rate</p>
<p>
Resolutions • Single: Up to 1920x1200 Pixels @ true color (32 bit)<br />
• Dual: Up to 1920x1080 Pixels @ true color (24 bit)</p>
<p>
Video Player • Various video codecs, including: DivX HD, H.264 (MPEG4), WMV9/VC1<br />
• Up to 1080p local browser Flash support</p>
<p>
Audio Support • High Definition Audio Codec<br />
• Stereo Audio Output - 3 mm (1/8 inch) Audio-Out Jack; 16-bit Stereo, 96KHz</p>
<p>
sample rate<br />
• Microphone Input - 3 mm (1/8 inch), 8 bit<br />
• Software volume / mute control</p>
<p>
Input / Output ports • 6 x USB 2.0 ports (2 front, 4 back)</p>
<h1 id="serial">serial</h1>
<p>
<a target="_blank" title="(external link)" href="https://forum.doozan.com/read.php?2,67954,76099#msg-76099">https://forum.doozan.com/read.php?2,67954,76099#msg-76099</a></p>
<p>
&nbsp;Koen Re: Debian on Chip PC LXD8941 January 04, 2019 02:33PM</p>
<p>
Inside there is both a 4 pin and a 6 pin header. The 4 pin is the UART connection. With the power button towards you and the DVI connection away from you the connections are as follows: GND, TX, RX, VCC (from left to right).</p>
<h1 id="kernel">kernel</h1>
<p>
Linux Kernel 6.6.2 MVEBU package and Debian armhf rootfs</p>
<p>
<a target="_blank" title="(external link)" href="https://forum.doozan.com/read.php?2,32146">https://forum.doozan.com/read.php?2,32146</a></p>
<pre>
mkfs.ext3 -L rootfs /dev/sda1
mount /dev/sda1 /mnt/sda1/
cd /mnt/sda1/
tar xvf /nuc/armada/Debian-6.6.2-mvebu-tld-1-rootfs-bodhi.tar.bz2
</pre>
<br /><p>
3. Create uImage with DTB appended.</p>
<pre>
root@nuc:/mnt/sda1# cd boot/
root@nuc:/mnt/sda1/boot# cp -a uImage uImage.orig
root@nuc:/mnt/sda1/boot# cp -a zImage-6.6.2-mvebu-tld-1 zImage.fdt
root@nuc:/mnt/sda1/boot# cat dts/dove-chip-lxd8941.dtb &gt;&gt; zImage.fdt
root@nuc:/mnt/sda1/boot# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-6.6.2-mvebu-tld-1 -d zImage.fdt uImage
Image Name:   Linux-6.6.2-mvebu-tld-1
Created:      Tue Dec 19 18:00:34 2023
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    5193798 Bytes = 5072.07 KiB = 4.95 MiB
Load Address: 00008000
Entry Point:  00008000
</pre>
<br /><p>
insert usb stick into back 4 usb ports, front 2 won't find storage device on usb</p>
<p>
abort u-boot over serial and issue boot from usb:</p>
<pre>
setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial
usb start; ext2load usb 0:1 0x3000000 /boot/uImage; ext2load usb 0:1 0x4000000 /boot/uInitrd
bootm 0x3000000 0x4000000
</pre>
<br /><h1 id="video_output">video output</h1>
<p>
DRM and framebuffer are not currently (as of 6.6) supported in upstream kernel according to messages at<br />
forum, but dove-chip-lxd8941.dts doesn't include lcd power and dove-hp-t5335z.dts does.</p>
<p>
Let's try to boot with this dts but this does not work.</p>
<h1 id="u_boot_enviroment">u-boot enviroment</h1>
<h2 id="fw_printenv">fw_printenv</h2>
<pre>
root@dove:~# cat /etc/fw_env.config
# MTD device name       Device offset   Env. size       Flash sector size       Number of sectors
/dev/mtd1 0x000000 0x010000
</pre>
<br /><h2 id="setup_boot_from_usb">setup boot from usb</h2>
<pre>
root@dove:~# fw_setenv bootusb 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial ; usb start; ext2load usb 0:1 0x3000000 /boot/uImage; ext2load usb 0:1 0x4000000 /boot/uInitrd ; bootm 0x3000000 0x4000000'

root@dove:~# fw_printenv bootcmd
bootcmd=run bootmmc
root@dove:~# fw_setenv bootcmd bootusb
</pre>
<br /><p>
fw_setenv this doesn't work from booted debian system, re-try over serial on u-boot prompt:</p>
<pre>
MIC&gt;&gt; printenv usbboot
usbboot=usb start; sleep 3; ext2load usb 0:1 0x2000000 /boot/uImage; run usbargs;bootm 0x2000000
MIC&gt;&gt; setenv usbboot 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial ; usb start; ext2load usb 0:1 0x3000000 /boot/uImage; ext2load usb 0:1 0x4000000 /boot/uInitrd ; bootm 0x3000000 0x4000000'
MIC&gt;&gt; printenv usbboot
usbboot=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial ; usb start; ext2load usb 0:1 0x3000000 /boot/uImage; ext2load usb 0:1 0x4000000 /boot/uInitrd ; bootm 0x3000000 0x4000000
MIC&gt;&gt; saveenv
Saving Environment to SPI Flash...
Erasing 0xc0000 - 0xd0000:      [Done]
Writing to SPI flash:           [Done]

MIC&gt;&gt; setenv bootcmd run usbboot
MIC&gt;&gt; saveenv
Saving Environment to SPI Flash...
Erasing 0xc0000 - 0xd0000:      [Done]
Writing to SPI flash:           [Done]

</pre>
<br /><h1 id="power_button">power button</h1>
<p>
seemes like it's on gpio 25</p>
<pre>
apt install gpiod

root@dove:/home/dpavlin# gpioget 0 0 1 2 3 4 5 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
1 0 1 1 0 0 0 0 1 1 1 0 1 0 0 0 0 1 0 1 0 0 0 0 0 0
root@dove:/home/dpavlin# gpioget 0 0 1 2 3 4 5 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
1 0 1 1 0 0 0 0 1 1 1 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0

root@dove:/home/dpavlin# gpiomon 0 25
event: FALLING EDGE offset: 25 timestamp: [    1466.369262333]
event: FALLING EDGE offset: 25 timestamp: [    1466.632278096]
event:  RISING EDGE offset: 25 timestamp: [    1467.188375662]
event:  RISING EDGE offset: 25 timestamp: [    1468.390585489]
event: FALLING EDGE offset: 25 timestamp: [    1470.143645190]
event:  RISING EDGE offset: 25 timestamp: [    1471.752436499]
event: FALLING EDGE offset: 25 timestamp: [    1473.233499601]
event:  RISING EDGE offset: 25 timestamp: [    1474.560678725]
</pre>
</div>
<hr/><div>Attachments: dove-bootlog.txt</div>]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>arm</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?lxd8541</guid>
<pubDate>Sat, 23 Dec 2023 12:46:13 -0000</pubDate>
</item>
<item>
<title><![CDATA[M8S PRO]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?m8s_pro</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: arm</div><hr/><div class="wiki">
<p>
Board sticker: M8S PRO R4 S912 3G 32G DDR4 DQ</p>
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#android_info">Dobrica Pavlinušić's random unstructured stuff (Android info)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Android info} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#recovery_sd">Dobrica Pavlinušić's random unstructured stuff (recovery sd)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] recovery sd} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#amlogic_info">Dobrica Pavlinušić's random unstructured stuff (amlogic info)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] amlogic info} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#armbian">Dobrica Pavlinušić's random unstructured stuff (armbian)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] armbian} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#ath10k_wifi_sdio_firmware">Dobrica Pavlinušić's random unstructured stuff (ath10k wifi sdio firmware)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] ath10k wifi sdio firmware} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#kernel_source">Dobrica Pavlinušić's random unstructured stuff (kernel source)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] kernel source} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#u_boot_source">Dobrica Pavlinušić's random unstructured stuff (u-boot source)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] u-=boot source} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#balbes150_updates">Dobrica Pavlinušić's random unstructured stuff (balbes150 updates)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] balbes150 updates} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#gpiod">Dobrica Pavlinušić's random unstructured stuff (gpiod)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] gpiod} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#button_gpio_2">Dobrica Pavlinušić's random unstructured stuff (button - gpio 2)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] button -= gpio 2} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#led_gpio_9">Dobrica Pavlinušić's random unstructured stuff (led - gpio 9)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] led -= gpio 9} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#u_boot">Dobrica Pavlinušić's random unstructured stuff (u-boot)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] u-=boot} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#2020_10_status_for_amlogic">Dobrica Pavlinušić's random unstructured stuff (2020-10 status for amlogic)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] 2020-=10 status for amlogic} --></span></li>
</ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br /><br /><span class="nlw_phrase"><img alt="M8S-PRO.jpg" src="https://saturn.ffzg.hr/rot13/index.cgi/M8S-PRO.jpg?action=attachments_download;page_name=m8s_pro;id=20200910192403-0-17633" /><!-- wiki: {image: M8S-=PRO.jpg} --></span><br /><br /><p>
It doesn't have button soldered, it works like power button in android</p>
<p>
Serial port is marked on bottom of board (tx/rx are from cpu perspective)</p>
<p>
probably: <a target="_blank" title="(external link)" href="https://www.geekbuying.com/item/MECOOL-M8S-PRO-S912-KODI-17-0-4K-HDR10-3GB-DDR4-32GB-eMMC-TV-Box-380737.html">https://www.geekbuying.com/item/MECOOL-M8S-PRO-S912-KODI-17-0-4K-HDR10-3GB-DDR4-32GB-eMMC-TV-Box-380737.html</a></p>
<h1 id="android_info">Android info</h1>
<p>
Android 7.1 bootlog from serial: <span class="nlw_phrase"><a href="https://saturn.ffzg.hr/rot13/index.cgi/m8s-android-bootlog.txt.gz?action=attachments_download;page_name=m8s_pro;id=20200911192044-0-13804">m8s-android-bootlog.txt.gz</a><!-- wiki: {file: m8s-=android-=bootlog.txt.gz} --></span></p>
<pre>
U-Boot 2015.01-g9331ff1-dirty (Mar 15 2018 - 16:16:24)

DRAM:  3 GiB
...
        aml_dt soc: gxm platform: q20xrmii variant: 3g
        dtb 0 soc: gxm   plat: q20xrmii   vari: 2g
        dtb 1 soc: gxm   plat: q20xrmii   vari: 3g
      Find match dtb: 1
...
parts: 10
00:      logo	0000000002000000 1
01:  recovery	0000000002000000 1
02:       rsv	0000000000800000 1
03:       tee	0000000000800000 1
04:     crypt	0000000002000000 1
05:      misc	0000000002000000 1
06:      boot	0000000002000000 1
07:    system	0000000080000000 1
08:     cache	0000000020000000 2
09:      data	ffffffffffffffff 4

M8SPRO:/ # uname -a
Linux localhost 3.14.29 #46 SMP PREEMPT Thu Apr 12 19:43:12 CST 2018 armv8l

M8SPRO:/ # cat /proc/cmdline
rootfstype=ramfs init=/init console=ttyS0,115200 no_console_suspend earlyprintk=aml-uart,0xc81004c0 ramoops.pstore_en=1 ramoops.record_size=0x8000 ramoops.console_size=0x4000 androidboot.selinux=permissive logo=osd1,loaded,0x3d800000,1080p60hz maxcpus=8 vout=1080p60hz,enable hdmimode=1080p60hz cvbsmode=576cvbs hdmitx= cvbsdrv=0 pq= androidboot.firstboot=0 jtag=apao androidboot.hardware=amlogic mac=D0:76:58:0E:63:A3 androidboot.mac=D0:76:58:0E:63:A3 androidboot.slot_suffix=_a buildvariant=userdebug

M8SPRO:/ # cat /proc/cpuinfo
Processor	: AArch64 Processor rev 4 (aarch64)
processor	: 0
processor	: 1
processor	: 2
processor	: 3
processor	: 4
processor	: 5
processor	: 6
processor	: 7
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32 wp half thumb fastmult vfp edsp neon vfpv3 tlsi vfpv4 idiva idivt 
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 4

Hardware	: Amlogic
Serial		: 220a82006da41365fedf301742726826

M8SPRO:/ # free
		total        used        free      shared     buffers
Mem:       2876604416  2210639872   665964544           0    31326208
-/+ buffers/cache:     2179313664   697290752
Swap:       524283904           0   524283904

M8SPRO:/ # df
ilesystem        1K-blocks    Used Available Use% Mounted on
mpfs               1404592     504   1404088   1% /dev
tmpfs               1404592       0   1404592   0% /mnt
/dev/block/system   2031440  973788   1057652  48% /system
/dev/block/data    26969964 3050864  23919100  12% /data
/dev/block/cache     507848    2860    504988   1% /cache
/dev/block/tee         5115      45      5070   1% /tee
/dev/fuse          26969964 3050864  23919100  12% /mnt/runtime/default/emulated
/dev/fuse          26969964 3050864  23919100  12% /mnt/runtime/read/emulated
/dev/fuse          26969964 3050864  23919100  12% /mnt/runtime/write/emulated

</pre>
<br /><h1 id="recovery_sd">recovery sd</h1>
<p>
<a target="_blank" title="(external link)" href="https://www.cnx-software.com/2016/11/19/how-to-create-a-bootable-recovery-sd-card-for-amlogic-tv-boxes/">https://www.cnx-software.com/2016/11/19/how-to-create-a-bootable-recovery-sd-card-for-amlogic-tv-boxes/</a></p>
<h1 id="amlogic_info">amlogic info</h1>
<p>
<a target="_blank" title="(external link)" href="http://www.linux-meson.com/doku.php">http://www.linux-meson.com/doku.php</a></p>
<h1 id="armbian">armbian</h1>
<p>
<a target="_blank" title="(external link)" href="https://forum.armbian.com/topic/12162-single-armbian-image-for-rk-aml-aw-aarch64-armv8/">https://forum.armbian.com/topic/12162-single-armbian-image-for-rk-aml-aw-aarch64-armv8/</a></p>
<pre>
dpavlin@nuc:~/Downloads$ xzcat Armbian_20.09_Arm-64_bullseye_current_5.8.5.img.xz | dd iflag=fullblock oflag=direct conv=fsync status=progress bs=1M of=/dev/sdb
dpavlin@nuc:~/Downloads$ sudo mount /dev/sdb1 /mnt/sdb1/
dpavlin@nuc:~/Downloads$ cd /mnt/sdb1/

root@nuc:/mnt/sdb1# cp u-boot-s905x-s912 u-boot.ext

root@nuc:/mnt/sdb1# vi extlinux/extlinux.conf

root@nuc:/mnt/sdb1# grep -v '^#' extlinux/extlinux.conf
LABEL Armbian
LINUX /zImage
INITRD /uInitrd

FDT /dtb/amlogic/meson-gxm-q201.dtb
APPEND root=LABEL=ROOTFS rootflags=data=writeback rw console=ttyAML0,115200n8 console=tty0 no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0

</pre>
<br /><p>
Note that this board uses <strong>meson-gxm-q201.dtb</strong> which is internal rmii to make ethernet work!</p>
<p>
issue <tt>reboot update</tt> from android shell to boot from sdcard</p>
<h2 id="ath10k_wifi_sdio_firmware">ath10k wifi sdio firmware</h2>
<p>
After booting, you will get error message about missing firmware:</p>
<pre>
[    7.861827] ath10k_sdio mmc2:0001:1: Failed to find firmware-N.bin (N between 2 and 6) from ath10k/QCA9377/hw1.0: -2
[    7.861838] ath10k_sdio mmc2:0001:1: could not fetch firmware files (-2)
</pre>
<br /><p>
Package <tt>firmware-atheros</tt> is installed, so it's a bit puzzeling what file is missing, however, if we go to</p>
<p>
<a target="_blank" title="(external link)" href="https://github.com/kvalo/ath10k-firmware.git">https://github.com/kvalo/ath10k-firmware.git</a></p>
<p>
we can find sdio firmware at <a target="_blank" title="(external link)" href="https://github.com/kvalo/ath10k-firmware/tree/master/QCA9377/hw1.0/untested">https://github.com/kvalo/ath10k-firmware/tree/master/QCA9377/hw1.0/untested</a></p>
<pre>
dpavlin@m8s:~/ath10k-firmware$ git remote -v
origin	https://github.com/kvalo/ath10k-firmware.git (fetch)
origin	https://github.com/kvalo/ath10k-firmware.git (push)

dpavlin@m8s:~/ath10k-firmware$ sudo cp QCA9377/hw1.0/untested/firmware-sdio-5.bin_WLAN.TF.1.1.1-00061-QCATFSWPZ-1 /lib/firmware/ath10k/QCA9377/hw1.0/firmware-sdio-5.bin
</pre>
<br /><p>
After running <tt>nmtui</tt> and configuring wifi it's available but dies after a while under load.</p>
<h2 id="kernel_source">kernel source</h2>
<p>
<a target="_blank" title="(external link)" href="https://github.com/150balbes/Amlogic_s905-kernel">https://github.com/150balbes/Amlogic_s905-kernel</a></p>
<p>
currently, I'm using</p>
<pre>
dpavlin@m8s:~/linux$ git remote -v
origin	https://github.com/xdarklight/linux (fetch)
origin	https://github.com/xdarklight/linux (push)
dpavlin@m8s:~/linux$ git branch
  master
  meson-mx-integration-5.11-20210124
  meson-mx-integration-5.13-20210503
* meson-mx-integration-5.13-20210523
dpavlin@m8s:~/linux$ cat mason-build.sh
# https://github.com/SLAzurin/armbian-aml-s8xx-kernel-build-steps

# https://github.com/xdarklight/linux

make -j 8 Image dtbs modules &amp;&amp; sudo make modules_install dtbs_install install
</pre>
<br /><p>
Installing armbian kernel package doesn't work because /boot partition is vfat and not ext2/4</p>
<h2 id="u_boot_source">u-boot source</h2>
<p>
<a target="_blank" title="(external link)" href="https://github.com/150balbes/Amlogic_S905-u-boot">https://github.com/150balbes/Amlogic_S905-u-boot</a></p>
<h2 id="balbes150_updates">balbes150 updates</h2>
<p>
installing linux image and headers does return error, but works</p>
<p>
<a target="_blank" title="(external link)" href="https://users.armbian.com/balbes150/">https://users.armbian.com/balbes150/</a></p>
<h1 id="gpiod">gpiod</h1>
<pre>
sudo apt install gpiod
</pre>
<br /><h2 id="button_gpio_2">button - gpio 2</h2>
<pre>
root@arm-64:~# gpioget gpiochip0 2 # not pressed
1
root@arm-64:~# gpioget gpiochip0 2 # pressed
0
</pre>
<br /><h2 id="led_gpio_9">led - gpio 9</h2>
<pre>
root@arm-64:~# gpioset gpiochip0 9=0 # red

root@arm-64:~# gpioset gpiochip0 9=1 # blue (default)
</pre>
<br /><h1 id="u_boot">u-boot</h1>
<p>
old <a target="_blank" title="(external link)" href="https://github.com/endlessm/u-boot-meson">https://github.com/endlessm/u-boot-meson</a></p>
<p>
I wanted serial console which seems to be missing from armbian build above</p>
<p>
wiki seems to suggest repository</p>
<p>
<a target="_blank" title="(external link)" href="https://gitlab.denx.de/u-boot/custodians/u-boot-amlogic">https://gitlab.denx.de/u-boot/custodians/u-boot-amlogic</a></p>
<p>
but we are going to use upstream u-boot</p>
<pre>
dpavlin@m8s:~/u-boot-amlogic$ git remote -v
github	https://github.com/u-boot/u-boot (fetch)

dpavlin@m8s:~/u-boot-amlogic$ libretech-cc_defconfig
dpavlin@m8s:~/u-boot-amlogic$ make -j 8
dpavlin@m8s:~/u-boot-amlogic$ cp u-boot.bin /boot/
</pre>
<br /><p>
abort u-boot with key press and boot new one with</p>
<pre>
fatload mmc 1 0x1000000 u-boot.bin
go 0x1000000
</pre>
<br /><h1 id="2020_10_status_for_amlogic">2020-10 status for amlogic</h1>
<p>
U-Boot: Porting and Maintaining a Bootloader for a Multimedia SoC Family - Neil Armstrong, BayLibre SAS</p>
<p>
<a target="_blank" title="(external link)" href="https://youtu.be/u0-swEMDFp0">https://youtu.be/u0-swEMDFp0</a></p>
</div>
<hr/><div>Attachments: IMG_20200911_205538.jpg, m8s-android-bootlog.txt.gz, M8S-PRO.jpg</div>]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>arm</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?m8s_pro</guid>
<pubDate>Thu, 24 Jun 2021 19:02:32 -0000</pubDate>
</item>
<item>
<title><![CDATA[Lamobo R1]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?lamobo_r1</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: A20, arm</div><hr/><div class="wiki">
<span class="nlw_phrase"><img alt="GPIO 2.png" src="https://saturn.ffzg.hr/rot13/index.cgi/GPIO%202.png?action=attachments_download;page_name=lamobo_r1;id=20170917122241-0-32027" /><!-- wiki: {image: GPIO 2.png} --></span><br /><br /><p>
Lamobo/BananaPi R1</p>
<p>
<a target="_blank" title="(external link)" href="http://linux-sunxi.org/Lamobo_R1">http://linux-sunxi.org/Lamobo_R1</a></p>
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#upgrade_to_unsupported_armbian">Dobrica Pavlinušić's random unstructured stuff (upgrade to unsupported armbian)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] upgrade to unsupported armbian} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#u_boot">Dobrica Pavlinušić's random unstructured stuff (u-boot)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] u-=boot} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#distribution">Dobrica Pavlinušić's random unstructured stuff (distribution)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] distribution} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#kernel">Dobrica Pavlinušić's random unstructured stuff (kernel)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] kernel} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#configure_switch">Dobrica Pavlinušić's random unstructured stuff (configure switch)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] configure switch} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#switch_connects_all_ports_on_boot">Dobrica Pavlinušić's random unstructured stuff (switch connects all ports on boot)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] switch connects all ports on boot} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#dsa_config_on_armbian_for_r1">Dobrica Pavlinušić's random unstructured stuff (DSA config on armbian for r1)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] DSA config on armbian for r1} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#uart">Dobrica Pavlinušić's random unstructured stuff (uart)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] uart} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#switch">Dobrica Pavlinušić's random unstructured stuff (switch)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] switch} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#port_mirroring">Dobrica Pavlinušić's random unstructured stuff (port mirroring)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] port mirroring} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#usb_otg">Dobrica Pavlinušić's random unstructured stuff (usb otg)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] usb otg} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#usbproxy">Dobrica Pavlinušić's random unstructured stuff (usbproxy)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] usbproxy} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#mitm_usb_otg_machine">Dobrica Pavlinušić's random unstructured stuff (mitm usb otg machine)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] mitm usb otg machine} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#original_target_device">Dobrica Pavlinušić's random unstructured stuff (original target device)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] original target device} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#wiringpi">Dobrica Pavlinušić's random unstructured stuff (WiringPi)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] WiringPi} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#tmp75">Dobrica Pavlinušić's random unstructured stuff (TMP75)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] TMP75} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#userland">Dobrica Pavlinušić's random unstructured stuff (userland)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] userland} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#kernel_hwmomn_lm75_driver">Dobrica Pavlinušić's random unstructured stuff (kernel hwmomn lm75 driver)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] kernel hwmomn lm75 driver} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#network_performance">Dobrica Pavlinušić's random unstructured stuff (network performance)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] network performance} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#kernel_3_4">Dobrica Pavlinušić's random unstructured stuff (kernel 3.4)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] kernel 3.4} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#kernel_4_13">Dobrica Pavlinušić's random unstructured stuff (kernel 4.13)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] kernel 4.13} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#kernel_5_12_7">Dobrica Pavlinušić's random unstructured stuff (kernel 5.12.7)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] kernel 5.12.7} --></span></li>
</ul></ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br /><br /><h1 id="upgrade_to_unsupported_armbian">upgrade to unsupported armbian</h1>
<p>
This board was last supported on jessie, but it's fully supported in upstream so I did upgrade to latest Armbian as of 2021-05-29.</p>
<h2 id="u_boot">u-boot</h2>
<p>
sdcard already had u-boot installed, so I didn't have to touch this in first step. To update<br />
u-boot do following:</p>
<pre>
root@r1:/home/dpavlin# apt install u-boot-sunxi

root@r1:/home/dpavlin# dd conv=fsync,notrunc if=/usr/lib/u-boot/Lamobo_R1/u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1024 seek=8
449+1 records in
449+1 records out
460103 bytes (460 kB, 449 KiB) copied, 0.0449233 s, 10.2 MB/s
</pre>
<br /><h2 id="distribution">distribution</h2>
<p>
First, I did distribution update to stretch and buster and than added</p>
<pre>
root@r1:/home/dpavlin# cat /etc/apt/sources.list.d/armbian.list
deb http://beta.armbian.com buster main
</pre>
<br /><h2 id="kernel">kernel</h2>
<p>
and installed latest sunxi kernel image</p>
<pre>
apt install linux-image-edge-sunxi
</pre>
<br /><p>
After reboot I was greeted with new kernel</p>
<pre>
root@r1:/home/dpavlin# uname -a
Linux r1 5.12.7-sunxi #trunk.33 SMP Fri May 28 07:03:36 UTC 2021 armv7l GNU/Linux
</pre>
<br /><h2 id="configure_switch">configure switch</h2>
<p>
<a target="_blank" title="(external link)" href="https://www.kernel.org/doc/html/latest/networking/dsa/b53.html">https://www.kernel.org/doc/html/latest/networking/dsa/b53.html</a></p>
<pre>
root@r1:/home/dpavlin# cat /etc/network/interfaces.d/br0
auto br0
iface br0 inet dhcp
#iface br0 inet manual
#	address 192.168.1.1
#	netmask 255.255.255.0
	bridge_ports eth0 wan lan1 lan2 lan3 lan4
	post-up for i in `seq 0 4`; do ip link set up dev lan${i}; done ; ip link set up dev wlan
	bridge_stp off
        bridge_waitport 0
	bridge_fd 0
</pre>
<br /><p>
Ports are (left-to-right, looking from back of board starting at edge towards hdmi connector):</p>
<pre>
br0: port 3(lan1) entered disabled state
br0: port 4(lan2) entered blocking state
br0: port 4(lan2) entered forwarding state
br0: port 4(lan2) entered disabled state
br0: port 5(lan3) entered blocking state
br0: port 5(lan3) entered forwarding state
br0: port 5(lan3) entered disabled state
br0: port 6(lan4) entered blocking state
br0: port 6(lan4) entered forwarding state
br0: port 6(lan4) entered disabled state
br0: port 2(wan) entered blocking state
br0: port 2(wan) entered forwarding state
</pre>
<br /><h1 id="switch_connects_all_ports_on_boot">switch connects all ports on boot</h1>
<p>
<a target="_blank" title="(external link)" href="https://github.com/armbian/build/issues/511#issuecomment-258647387">https://github.com/armbian/build/issues/511#issuecomment-258647387</a></p>
<h2 id="dsa_config_on_armbian_for_r1">DSA config on armbian for r1</h2>
<ul>
<li><a target="_blank" title="(external link)" href="https://github.com/armbian/build/issues/511">https://github.com/armbian/build/issues/511</a></li>
</ul>
<h1 id="uart">uart</h1>
<p>
Connect your UART adapter here:</p>
<p>
UART0-RX: J13-P01<br />
UART0-TX: J13-P02<br />
GND: J12-P08</p>
<pre>
                          GND TX RX
             J12   o  o  o  o  o  o
{SD slot}          o  o  o  o

</pre>
<br /><h1 id="switch">switch</h1>
<p>
<a target="_blank" title="(external link)" href="https://www.mail-archive.com/netdev@vger.kernel.org/msg150526.html">https://www.mail-archive.com/netdev@vger.kernel.org/msg150526.html</a></p>
<h2 id="port_mirroring">port mirroring</h2>
<p>
<a target="_blank" title="(external link)" href="https://www.mail-archive.com/netdev@vger.kernel.org/msg150526.html">https://www.mail-archive.com/netdev@vger.kernel.org/msg150526.html</a></p>
<pre>
# ingress
      tc qdisc  add dev eth1 handle ffff: ingress
      tc filter add dev eth1 parent ffff:           \
               matchall skip_sw                      \
               action mirred egress mirror           \
               dev eth2
# egress
      tc qdisc add dev eth1 handle 1: root prio
      tc filter add dev eth1 parent 1:               \
               matchall skip_sw                       \
               action mirred egress mirror            \
               dev eth2
</pre>
<br /><h1 id="usb_otg">usb otg</h1>
<p>
<a target="_blank" title="(external link)" href="http://git.rot13.org/?p=usb-otg;a=summary">http://git.rot13.org/?p=usb-otg;a=summary</a></p>
<h1 id="usbproxy">usbproxy</h1>
<p>
make sure that there are no other usb modules loaded (libcomposite or g_*)</p>
<h2 id="mitm_usb_otg_machine">mitm usb otg machine</h2>
<pre>
dpavlin@r1:~/USBProxy$ git remote -v
origin  https://github.com/dominicgs/USBProxy (fetch)
origin  https://github.com/dominicgs/USBProxy (push)

dpavlin@r1:~/USBProxy/src/build$ sudo usb-mitm -l -v 058f -p 6387 -P PacketFilter_MassStorage
Loading plugins from /usr/local/lib/USBProxy/
vendorId=058f
productId=6387
cleaning up /tmp
removing 1
Made directory /tmp/gadget-SOOBVj for gadget
UnblockPassword=
Printing Config data
        Strings: 4
                DeviceProxy: DeviceProxy_LibUSB
                HostProxy: HostProxy_GadgetFS
                productId: 6387
                vendorId: 058f
        Vectors: 1
                Plugins:
                        PacketFilter_StreamLog
                        PacketFilter_MassStorage
Pointer: 1
                PacketFilter_StreamLog::file: 0xb6d779f0
Device: 12 01 00 02 00 00 00 40 8f 05 87 63 00 01 01 02 03 01
  Manufacturer: JetFlash
  Product:      Mass Storage Device
  Serial:       GUYOBHDU
        *Config(1): 09 02 20 00 01 01 00 80 32
                Interface(0):
                        *Alt(0): 09 04 00 00 02 08 06 50 00
                                EP(01): 07 05 01 02 00 02 00
                                EP(82): 07 05 82 02 00 02 00
HS Qualifier: 0a 06 00 02 00 00 00 40 01 00
         Config(1): 09 07 20 00 01 01 00 80 32
                Interface(0):
                        *Alt(0): 09 04 00 00 02 08 06 50 00
                                EP(01): 07 05 01 02 40 00 00
                                EP(82): 07 05 82 02 40 00 00
searching in [/tmp/gadget-SOOBVj]
Starting injector thread (14796) for [Injector].
Injector In FD[1/1]: 3
Starting setup writer thread (14799) for EP00.
Starting setup reader thread (14797) for EP00.
[80 06 00 03 00 00 ff 00]
[80 06 00 03 00 00 04 00]: 04 03 09 04
[80 06 02 03 09 04 ff 00]
[80 06 02 03 09 04 28 00]:
        28 03 4d 00 61 00 73 00 73 00 20 00 53 00 74 00 6f 00 72 00 61 00 67 00 65 00 20 00 44 00 65 00
        76 00 69 00 63 00 65 00
[80 06 01 03 09 04 ff 00]
[80 06 01 03 09 04 12 00]: 12 03 4a 00 65 00 74 00 46 00 6c 00 61 00 73 00 68 00
[80 06 03 03 09 04 ff 00]
[80 06 03 03 09 04 12 00]: 12 03 47 00 55 00 59 00 4f 00 42 00 48 00 44 00 55 00
[00 09 01 00 00 00 00 00]
Opened EP01
Opened EP82
Starting writer thread (14802) for EP01.
Starting reader thread (14803) for EP82.
Starting writer thread (14804) for EP82.
Starting reader thread (14801) for EP01.
[a1 fe 00 00 00 00 01 00]
[a1 fe 00 00 00 00 00 00]
01[31]: 55 53 42 43 01 00 00 00 24 00 00 00 80 00 06 12 00 00 00 24 00 00 00 00 00 00 00 00 00 00 00
CBW: (12), tag: 01 00 00 00

[80 06 03 03 09 04 ff 00]
[80 06 03 03 09 04 12 00]: 12 03 47 00 55 00 59 00 4f 00 42 00 48 00 44 00 55 00
[00 09 01 00 00 00 00 00]

</pre>
<br /><h2 id="original_target_device">original target device</h2>
<pre>
dpavlin@nuc:~$ journalctl -t kernel -f
Sep 01 11:10:04 nuc kernel: usb 2-4.4.2: new high-speed USB device number 45 using xhci_hcd
Sep 01 11:10:04 nuc kernel: usb 2-4.4.2: New USB device found, idVendor=058f, idProduct=6387
Sep 01 11:10:04 nuc kernel: usb 2-4.4.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Sep 01 11:10:04 nuc kernel: usb 2-4.4.2: Product: Mass Storage Device
Sep 01 11:10:04 nuc kernel: usb 2-4.4.2: Manufacturer: JetFlash
Sep 01 11:10:04 nuc kernel: usb 2-4.4.2: SerialNumber: GUYOBHDU
Sep 01 11:10:04 nuc kernel: usb-storage 2-4.4.2:1.0: USB Mass Storage device detected
Sep 01 11:10:04 nuc kernel: scsi host5: usb-storage 2-4.4.2:1.0

# BUT!

dpavlin@nuc:~$ sudo fdisk -l /dev/sdb
fdisk: cannot open /dev/sdb: No medium found

</pre>
<br /><h1 id="wiringpi">WiringPi</h1>
<pre>
dpavlin@r1:~/BPI-WiringPi2$ git remote -v
lanefu  https://github.com/lanefu/WiringOtherPi (fetch)
lanefu  https://github.com/lanefu/WiringOtherPi (push)
origin  https://github.com/BPI-SINOVOIP/BPI-WiringPi2 (fetch)
origin  https://github.com/BPI-SINOVOIP/BPI-WiringPi2 (push)

dpavlin@r1:~/BPI-WiringPi2$ gpio readall
 +-----+-----+----------+------+---+-Orange Pi+---+---+------+---------+-----+--+
 | BCM | wPi |   Name   | Mode | V | Physical | V | Mode | Name     | wPi | BCM |
 +-----+-----+----------+------+---+----++----+---+------+----------+-----+-----+
 |     |     |     3.3v |      |   |  1 || 2  |   |      | 5v       |     |     |
 |  12 |   8 |    SDA.0 |   IN | 0 |  3 || 4  |   |      | 5V       |     |     |
 |  11 |   9 |    SCL.0 |   IN | 0 |  5 || 6  |   |      | 0v       |     |     |
 |   6 |   7 |   GPIO.7 |   IN | 0 |  7 || 8  | 0 | IN   | TxD3     | 15  | 13  |
 |     |     |       0v |      |   |  9 || 10 | 0 | IN   | RxD3     | 16  | 14  |
 |   1 |   0 |     RxD2 |   IN | 0 | 11 || 12 | 0 | IN   | GPIO.1   | 1   | 110 |
 |   0 |   2 |     TxD2 |   IN | 0 | 13 || 14 |   |      | 0v       |     |     |
 |   3 |   3 |     CTS2 |   IN | 0 | 15 || 16 | 0 | IN   | GPIO.4   | 4   | 68  |
 |     |     |     3.3v |      |   | 17 || 18 | 0 | IN   | GPIO.5   | 5   | 71  |
 |  64 |  12 |     MOSI |   IN | 0 | 19 || 20 |   |      | 0v       |     |     |
 |  65 |  13 |     MISO |   IN | 0 | 21 || 22 | 0 | IN   | RTS2     | 6   | 2   |
 |  66 |  14 |     SCLK |   IN | 0 | 23 || 24 | 0 | IN   | CE0      | 10  | 67  |
 |     |     |       0v |      |   | 25 || 26 | 0 | IN   | GPIO.11  | 11  | 21  |
 |  19 |  30 |    SDA.1 |   IN | 0 | 27 || 28 | 0 | IN   | SCL.1    | 31  | 18  |
 |   7 |  21 |  GPIO.21 |   IN | 0 | 29 || 30 |   |      | 0v       |     |     |
 |   8 |  22 |  GPIO.22 |   IN | 0 | 31 || 32 | 0 | IN   | RTS1     | 26  | 200 |
 |   9 |  23 |  GPIO.23 |   IN | 0 | 33 || 34 |   |      | 0v       |     |     |
 |  10 |  24 |  GPIO.24 |   IN | 0 | 35 || 36 | 0 | IN   | CTS1     | 27  | 201 |
 |  20 |  25 |  GPIO.25 |   IN | 0 | 37 || 38 | 0 | IN   | TxD1     | 28  | 198 |
 |     |     |       0v |      |   | 39 || 40 | 0 | IN   | RxD1     | 29  | 199 |
 +-----+-----+----------+------+---+----++----+---+------+----------+-----+-----+
 | BCM | wPi |   Name   | Mode | V | Physical | V | Mode | Name     | wPi | BCM |
 +-----+-----+----------+------+---+-Orange Pi+---+------+----------+-----+-----+


</pre>
<br /><h1 id="tmp75">TMP75</h1>
<pre>
root@r1:/etc/telegraf# i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- 49 -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --                         

</pre>
<br /><h2 id="userland">userland</h2>
<ul>
<li><a target="_blank" title="(external link)" href="https://github.com/ManuelSchneid3r/RaspberryPi/blob/master/sensors/src/tmp.c">https://github.com/ManuelSchneid3r/RaspberryPi/blob/master/sensors/src/tmp.c</a></li>
</ul>
<pre>
dpavlin@r1:~$ cc tmp.c -o tmp -lm
dpavlin@r1:~$ sudo ./tmp /dev/i2c-1 0x49
21.5

</pre>
<br /><h2 id="kernel_hwmomn_lm75_driver">kernel hwmomn lm75 driver</h2>
<pre>
root@r1:~# echo lm75 0x49 &gt; /sys/bus/i2c/devices/i2c-1/new_device 

root@r1:~# dmesg | tail -2
[68352.599623] lm75 1-0049: hwmon1: sensor 'lm75'
[68352.599719] i2c i2c-1: new_device: Instantiated device lm75 at 0x49

root@r1:/sys/bus/i2c/devices/i2c-1# sensors
sun4i_ts-isa-0000
Adapter: ISA adapter
SoC temperature:  +44.4°C  

lm75-i2c-1-49
Adapter: mv64xxx_i2c adapter
temp1:        +22.0°C  (high = +80.0°C, hyst = +75.0°C)
</pre>
<br /><h1 id="network_performance">network performance</h1>
<h2 id="kernel_3_4">kernel 3.4</h2>
<pre>
root@r1:~# uname -a
Linux r1 3.4.113-sun7i #23 SMP PREEMPT Wed Jun 14 23:57:45 CEST 2017 armv7l GNU/Linux

root@r1:~# iperf3 --reverse --client nuc
Connecting to host nuc, port 5201
Reverse mode, remote host nuc is sending
[  4] local 192.168.3.238 port 58203 connected to 192.168.3.40 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec   107 MBytes   897 Mbits/sec                  
[  4]   1.00-2.00   sec   110 MBytes   923 Mbits/sec                  
[  4]   2.00-3.00   sec   111 MBytes   935 Mbits/sec                  
[  4]   3.00-4.00   sec   107 MBytes   894 Mbits/sec                  
[  4]   4.00-5.00   sec   111 MBytes   927 Mbits/sec                  
[  4]   5.00-6.00   sec   110 MBytes   922 Mbits/sec                  
[  4]   6.00-7.00   sec   111 MBytes   928 Mbits/sec                  
[  4]   7.00-8.00   sec   111 MBytes   935 Mbits/sec                  
[  4]   8.00-9.00   sec   111 MBytes   928 Mbits/sec                  
[  4]   9.00-10.00  sec   111 MBytes   931 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec  1.08 GBytes   924 Mbits/sec  147             sender
[  4]   0.00-10.00  sec  1.07 GBytes   922 Mbits/sec                  receiver

iperf Done.

root@r1:~# iperf3 --client nuc
Connecting to host nuc, port 5201
[  4] local 192.168.3.238 port 58205 connected to 192.168.3.40 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.00   sec  51.3 MBytes   428 Mbits/sec    0    239 KBytes       
[  4]   1.00-2.01   sec  52.5 MBytes   436 Mbits/sec    0    240 KBytes       
[  4]   2.01-3.02   sec  52.5 MBytes   436 Mbits/sec    0    245 KBytes       
[  4]   3.02-4.01   sec  50.0 MBytes   424 Mbits/sec    0    246 KBytes       
[  4]   4.01-5.02   sec  51.2 MBytes   429 Mbits/sec    0    247 KBytes       
[  4]   5.02-6.02   sec  52.5 MBytes   439 Mbits/sec    0    250 KBytes       
[  4]   6.02-7.03   sec  51.2 MBytes   427 Mbits/sec    0    253 KBytes       
[  4]   7.03-8.00   sec  48.8 MBytes   418 Mbits/sec    0    256 KBytes       
[  4]   8.00-9.02   sec  52.5 MBytes   432 Mbits/sec    0    256 KBytes       
[  4]   9.02-10.01  sec  51.2 MBytes   435 Mbits/sec    0    256 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.01  sec   514 MBytes   431 Mbits/sec    0             sender
[  4]   0.00-10.01  sec   514 MBytes   431 Mbits/sec                  receiver
</pre>
<br /><h2 id="kernel_4_13">kernel 4.13</h2>
<pre>
root@r1:~# uname -a
Linux r1 4.13.10-sunxi #57 SMP Mon Oct 30 00:08:27 CET 2017 armv7l GNU/Linux

root@r1:~# iperf3 --client nuc
Connecting to host nuc, port 5201
[  4] local 192.168.3.238 port 59520 connected to 192.168.3.40 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.00   sec  67.9 MBytes   567 Mbits/sec    0    765 KBytes       
[  4]   1.00-2.01   sec  82.1 MBytes   687 Mbits/sec    0    840 KBytes       
[  4]   2.01-3.01   sec  65.7 MBytes   547 Mbits/sec    0   1.13 MBytes       
[  4]   3.01-4.02   sec  80.0 MBytes   669 Mbits/sec    0   1.13 MBytes       
[  4]   4.02-5.00   sec  76.2 MBytes   648 Mbits/sec    0   1.24 MBytes       
[  4]   5.00-6.00   sec  81.2 MBytes   681 Mbits/sec    0   1.24 MBytes       
[  4]   6.00-7.06   sec  82.5 MBytes   656 Mbits/sec    0   1.33 MBytes       
[  4]   7.06-8.00   sec  80.0 MBytes   712 Mbits/sec    0   1.33 MBytes       
[  4]   8.00-9.00   sec  78.8 MBytes   659 Mbits/sec    0   1.61 MBytes       
[  4]   9.00-10.00  sec  83.8 MBytes   702 Mbits/sec    0   2.08 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec   778 MBytes   653 Mbits/sec    0             sender
[  4]   0.00-10.00  sec   775 MBytes   650 Mbits/sec                  receiver

iperf Done.

root@r1:~# iperf3 --reverse --client nuc
Connecting to host nuc, port 5201
Reverse mode, remote host nuc is sending
[  4] local 192.168.3.238 port 59524 connected to 192.168.3.40 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec  98.0 MBytes   822 Mbits/sec                  
[  4]   1.00-2.00   sec   112 MBytes   933 Mbits/sec                  
[  4]   2.00-3.00   sec   107 MBytes   904 Mbits/sec                  
[  4]   3.00-4.00   sec   107 MBytes   898 Mbits/sec                  
[  4]   4.00-5.00   sec   108 MBytes   904 Mbits/sec                  
[  4]   5.00-6.00   sec   108 MBytes   903 Mbits/sec                  
[  4]   6.00-7.00   sec   108 MBytes   904 Mbits/sec                  
[  4]   7.00-8.00   sec   108 MBytes   904 Mbits/sec                  
[  4]   8.00-9.00   sec   108 MBytes   904 Mbits/sec                  
[  4]   9.00-10.00  sec   107 MBytes   899 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec  1.05 GBytes   900 Mbits/sec   69             sender
[  4]   0.00-10.00  sec  1.05 GBytes   898 Mbits/sec                  receiver


</pre>
<br /><h2 id="kernel_5_12_7">kernel 5.12.7</h2>
<pre>
dpavlin@r1:~$ uname -a
Linux r1 5.12.7-sunxi #trunk.33 SMP Fri May 28 07:03:36 UTC 2021 armv7l GNU/Linux

dpavlin@r1:~$ iperf3 -c nuc
Connecting to host nuc, port 5201
[  5] local 192.168.3.238 port 50136 connected to 192.168.3.40 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.02   sec  41.9 MBytes   346 Mbits/sec    0    239 KBytes
[  5]   1.02-2.02   sec  53.8 MBytes   448 Mbits/sec    0    266 KBytes
[  5]   2.02-3.00   sec  42.5 MBytes   363 Mbits/sec    0    266 KBytes
[  5]   3.00-4.02   sec  53.8 MBytes   445 Mbits/sec    0    277 KBytes
[  5]   4.02-5.01   sec  53.8 MBytes   456 Mbits/sec    0    325 KBytes
[  5]   5.01-6.02   sec  48.1 MBytes   400 Mbits/sec    0    386 KBytes
[  5]   6.02-7.03   sec  48.8 MBytes   405 Mbits/sec    0    386 KBytes
[  5]   7.03-8.00   sec  46.2 MBytes   397 Mbits/sec    0    386 KBytes
[  5]   8.00-9.02   sec  53.8 MBytes   443 Mbits/sec    0    393 KBytes
[  5]   9.02-10.00  sec  51.2 MBytes   438 Mbits/sec    0    393 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   494 MBytes   414 Mbits/sec    0             sender
[  5]   0.00-10.01  sec   494 MBytes   414 Mbits/sec                  receiver

iperf Done.
dpavlin@r1:~$ iperf3 -R -c nuc
Connecting to host nuc, port 5201
Reverse mode, remote host nuc is sending
[  5] local 192.168.3.238 port 50140 connected to 192.168.3.40 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.01   sec  66.9 MBytes   559 Mbits/sec
[  5]   1.01-2.00   sec  69.8 MBytes   588 Mbits/sec
[  5]   2.00-3.00   sec  66.8 MBytes   560 Mbits/sec
[  5]   3.00-4.00   sec  67.6 MBytes   567 Mbits/sec
[  5]   4.00-5.00   sec  67.6 MBytes   568 Mbits/sec
[  5]   5.00-6.00   sec  65.3 MBytes   548 Mbits/sec
[  5]   6.00-7.00   sec  66.5 MBytes   558 Mbits/sec
[  5]   7.00-8.00   sec  65.4 MBytes   549 Mbits/sec
[  5]   8.00-9.00   sec  66.7 MBytes   560 Mbits/sec
[  5]   9.00-10.00  sec  65.2 MBytes   547 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.01  sec   672 MBytes   563 Mbits/sec   57             sender
[  5]   0.00-10.00  sec   668 MBytes   560 Mbits/sec                  receiver

iperf Done.
</pre>
</div>
<hr/><div>Attachments: GPIO 2.png</div>]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>A20, arm</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?lamobo_r1</guid>
<pubDate>Sat, 29 May 2021 09:32:18 -0000</pubDate>
</item>
<item>
<title><![CDATA[Orange Pi Plus 2]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?orange_pi_plus_2</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: arm</div><hr/><div class="wiki">
<span class="nlw_phrase"><a href="https://saturn.ffzg.hr/rot13/index.cgi/iio.conf?action=attachments_download;page_name=orange_pi_plus_2;id=20210102124137-0-5384">iio.conf</a><!-- wiki: {file: iio.conf} --></span><br /><br /><span class="nlw_phrase"><img alt="orangepiplus2_info.jpg" src="https://saturn.ffzg.hr/rot13/index.cgi/orangepiplus2_info.jpg?action=attachments_download;page_name=orange_pi_plus_2;id=20191209172612-5-13730" /><!-- wiki: {image: orangepiplus2_info.jpg} --></span><br /><br /><p>
<a target="_blank" title="(external link)" href="http://www.orangepi.org/orangepiplus2/">http://www.orangepi.org/orangepiplus2/</a></p>
<p>
<a target="_blank" title="(external link)" href="https://www.armbian.com/orange-pi-plus-2/">https://www.armbian.com/orange-pi-plus-2/</a></p>
<p>
SoC	H3 @ 1.2GHz[1]<br />
DRAM	2GiB DDR3 @ ?MHz (H5TC4G83AFR-PBA)<br />
NAND	16GB EMMC Flash (in 2016 KLMAG2GEND-B031 but now slower KLMAG2WEPD-B031)<br />
Power	DC 5V @ 2A (4.0mm/1.7mm barrel plug - centre positive)<br />
Features<br />
Video	HDMI (HDCP, CEC), CVBS<br />
Audio	3.5 mm Jack, HDMI, Microphone<br />
Network	10/100/1000Mbps Ethernet (Realtek RTL8211E), WiFi 802.11 b/g/n (Realtek RTL8189ETV)<br />
Storage	�SD (max 64GB), SATA 2.0 (via GL830 USB-to-SATA bridge, +5V power on JST XH 2.5mm connector)<br />
USB	4 USB 2.0 Host (via FE1.1s hub), 1 USB 2.0 OTG</p>
<h1 id="bme280_i2c_temperature_humidity_pressure">bme280 i2c temperature/humidity/pressure</h1>
<pre>
/home/dpavlin/linux-gpio-pinout/overlay-load.sh /boot/dtb-`uname -r`/overlay/*h3*i2c0*

root@opip:/home/dpavlin/linux-gpio-pinout# i2cdetect -y 2
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- 76 --
</pre>
<br /><p>
Check i2c address in datasheet</p>
<p>
Connecting SDO to GND results in slave<br />
address 1110110 (0x76); connection it to V DDIO results in slave address 1110111 (0x77)</p>
<pre>
root@opip:/home/dpavlin/linux-gpio-pinout# zgrep BMP280 /proc/config.gz
CONFIG_BMP280=m
CONFIG_BMP280_I2C=m
CONFIG_BMP280_SPI=m

root@opip:/home/dpavlin/linux-gpio-pinout# echo bmp280 0x76 &gt; /sys/bus/i2c/devices/i2c-2/new_device
root@opip:/home/dpavlin/linux-gpio-pinout# [Sat Jan  2 11:43:58 2021] i2c i2c-2: new_device: Instantiated device bmp280 at 0x76
[Sat Jan  2 11:43:58 2021] bmp280 2-0076: supply vddd not found, using dummy regulator
[Sat Jan  2 11:43:58 2021] bmp280 2-0076: supply vdda not found, using dummy regulator
[Sat Jan  2 11:43:58 2021] bmp280 2-0076: bad chip id: expected 58 got 60
[Sat Jan  2 11:43:58 2021] bmp280: probe of 2-0076 failed with error -22

</pre>
<br /><p>
So it's not BMP280, but BME280.</p>
<p>
Using <a target="_blank" title="(external link)" href="https://www.raspberrypi-spy.co.uk/2016/07/using-bme280-i2c-temperature-pressure-sensor-in-python/">https://www.raspberrypi-spy.co.uk/2016/07/using-bme280-i2c-temperature-pressure-sensor-in-python/</a><br />
I downloaded and modified for python3 <span class="nlw_phrase"><a href="https://saturn.ffzg.hr/rot13/index.cgi/bme280.py?action=attachments_download;page_name=orange_pi_plus_2;id=20210102122720-0-6473">bme280.py</a><!-- wiki: {file: bme280.py} --></span></p>
<pre>
root@opip:/home/dpavlin# ./bme280.py
Chip ID : 96
Version : 0
Temperature : 24.65 C
Pressure : 998.4304559219445 hPa
Humidity : 41.458674890198445 %e
</pre>
<br /><p>
So let's try with correct sensor name</p>
<pre>
root@opip:/sys/bus/i2c/devices/i2c-2# echo bme280 0x76 &gt; /sys/bus/i2c/devices/i2c-2/new_device
[Sat Jan  2 12:32:01 2021] bmp280 2-0076: supply vddd not found, using dummy regulator
[Sat Jan  2 12:32:01 2021] bmp280 2-0076: supply vdda not found, using dummy regulator
[Sat Jan  2 12:32:01 2021] i2c i2c-2: new_device: Instantiated device bme280 at 0x76

root@opip:~# apt install libiio-utils

root@opip:~# iio_info
Library version: 0.16 (git tag: v0.16)
Compiled with backends: local xml ip usb serial
IIO context created with local backend.
Backend version: 0.16 (git tag: v0.16)
Backend description string: Linux opip 5.10.0-rc7-sunxi #20.11.3 SMP Fri Dec 11 21:18:30 CET 2020 armv7l
IIO context has 1 attributes:
	local,kernel: 5.10.0-rc7-sunxi
IIO context has 1 devices:
	iio:device0: bme280
		3 channels found:
			humidityrelative:  (input)
			2 channel-specific attributes found:
				attr  0: input value: 40775
				attr  1: oversampling_ratio value: 16
			pressure:  (input)
			2 channel-specific attributes found:
				attr  0: input value: 99.809761718
				attr  1: oversampling_ratio value: 16
			temp:  (input)
			2 channel-specific attributes found:
				attr  0: input value: 25350
				attr  1: oversampling_ratio value: 2
</pre>
<br /><h2 id="collect_using_telegraf">collect using telegraf</h2>
<pre>
root@opip:/etc/telegraf/telegraf.d# ../telegraf --config iio.conf --test
2021-01-02T12:39:39Z I! Starting Telegraf
&gt; iio,host=opip,name=bme280 humidityrelative=39.934,pressure=99.801214843,temperature=25.66 1609591179000000000
</pre>
</div>
<hr/><div>Attachments: bme280.py, iio.conf, orangepiplus2_info.jpg</div>]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>arm</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?orange_pi_plus_2</guid>
<pubDate>Sat, 02 Jan 2021 12:41:37 -0000</pubDate>
</item>
<item>
<title><![CDATA[Pine64]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?pine64</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: arm</div><hr/><div class="wiki">
<span class="nlw_phrase"><a href="https://saturn.ffzg.hr/rot13/index.cgi/Pine64.txt?action=attachments_download;page_name=pine64;id=20171112123717-0-6095">Pine64.txt</a><!-- wiki: {file: Pine64.txt} --></span><br /><br /><div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#board_and_pinouts_info">Dobrica Pavlinušić's random unstructured stuff (board and pinouts info)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] board and pinouts info} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#armbian">Dobrica Pavlinušić's random unstructured stuff (armbian)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] armbian} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#links">Dobrica Pavlinušić's random unstructured stuff (Links)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Links} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#u_boot">Dobrica Pavlinušić's random unstructured stuff (u-boot)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] u-=boot} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#kernel">Dobrica Pavlinušić's random unstructured stuff (kernel)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] kernel} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#serial_ports">Dobrica Pavlinušić's random unstructured stuff (serial ports)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] serial ports} --></span></li>
</ul></ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br /><br /><h1 id="board_and_pinouts_info">board and pinouts info</h1>
<ul>
<li><a target="_blank" title="(external link)" href="http://synfare.com/599N105E/hwdocs/pine64/index.html">http://synfare.com/599N105E/hwdocs/pine64/index.html</a></li>
</ul>
<h1 id="armbian">armbian</h1>
<p>
After upgrade to armbian-next , it doesn't boot. Stop u-boot with space and boot manually:</p>
<pre>
# try to boot only from mmc
=&gt; setenv bootcmd run mmc_boot
=&gt; saveenv
Saving Environment to MMC...
Writing to MMC(0)... done

=&gt; run mmc_boot
# this will fail, but will set some enviroment variables needed

=&gt; setenv devtype mmc
=&gt; setenv prefix /boot/
=&gt; load ${devtype} 0 ${ramdisk_addr_r} ${prefix}uInitrd
4293052 bytes read in 676 ms (6.1 MiB/s)

=&gt; load ${devtype} 0 ${kernel_addr_r} ${prefix}Image 
12957704 bytes read in 1386 ms (8.9 MiB/s)

=&gt; load ${devtype} 0 ${fdt_addr_r} ${prefix}dtb/${fdtfile}
14505 bytes read in 397 ms (35.2 KiB/s)

=&gt; booti ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}

# fix load addresses in /boot/boot.cmd
=&gt; setenv fdt_addr ${fdt_addr_r}
=&gt; setenv kernel_addr ${kernel_addr_r}
=&gt; setenv ramdisk_addr ${ramdisk_addr_r}    
=&gt; saveenv


</pre>
<br /><p>
fixed: <span class="nlw_phrase"><a href="https://saturn.ffzg.hr/rot13/index.cgi/boot.cmd?action=attachments_download;page_name=pine64;id=20171120170400-0-7823">boot.cmd</a><!-- wiki: {file: boot.cmd} --></span></p>
<h1 id="links">Links</h1>
<p>
<a target="_blank" title="(external link)" href="http://wiki.pine64.org/index.php/Main_Page">http://wiki.pine64.org/index.php/Main_Page</a></p>
<p>
<a target="_blank" title="(external link)" href="http://linux-sunxi.org/Pine64">http://linux-sunxi.org/Pine64</a></p>
<p>
<a target="_blank" title="(external link)" href="https://github.com/apritzel/pine64">https://github.com/apritzel/pine64</a></p>
<p>
Debian rootfs: <a target="_blank" title="(external link)" href="https://github.com/umiddelb/z2d/tree/master/pine64">https://github.com/umiddelb/z2d/tree/master/pine64</a></p>
<h1 id="u_boot">u-boot</h1>
<p>
<a target="_blank" title="(external link)" href="https://github.com/longsleep/build-pine64-image">https://github.com/longsleep/build-pine64-image</a></p>
<p>
<a target="_blank" title="(external link)" href="http://forum.pine64.org/showthread.php?tid=99">http://forum.pine64.org/showthread.php?tid=99</a></p>
<p>
<a target="_blank" title="(external link)" href="https://www.stdin.xyz/downloads/people/longsleep/pine64-images/">https://www.stdin.xyz/downloads/people/longsleep/pine64-images/</a></p>
<h1 id="kernel">kernel</h1>
<p>
<a target="_blank" title="(external link)" href="http://forum.pine64.org/showthread.php?tid=293">http://forum.pine64.org/showthread.php?tid=293</a></p>
<h2 id="serial_ports">serial ports</h2>
<ul>
<li><a target="_blank" title="(external link)" href="https://github.com/longsleep/build-pine64-image/pull/11">https://github.com/longsleep/build-pine64-image/pull/11</a></li>
</ul>
<ul>
<li>update image: <a target="_blank" title="(external link)" href="http://forum.pine64.org/showthread.php?tid=99">http://forum.pine64.org/showthread.php?tid=99</a></li>
</ul>
<ul>
<li>from <a target="_blank" title="(external link)" href="http://linux-sunxi.org/Pine64#Serial_port_.2F_UART">http://linux-sunxi.org/Pine64#Serial_port_.2F_UART</a></li>
</ul>
<span class="nlw_phrase"><img alt="800px-Pine64_UART0.jpg" src="https://saturn.ffzg.hr/rot13/index.cgi/800px-Pine64_UART0.jpg?action=attachments_download;page_name=pine64;id=20171112103607-0-23169" /><!-- wiki: {image: 800px-=Pine64_UART0.jpg} --></span><br /></div>
<hr/><div>Attachments: 800px-Pine64_UART0.jpg, boot.cmd, Pine64.txt</div>]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>arm</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?pine64</guid>
<pubDate>Thu, 17 Jan 2019 17:41:56 -0000</pubDate>
</item>
<item>
<title><![CDATA[A33]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?a33</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: Android, arm</div><hr/><div class="wiki">
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#meanit_tablet_q70">Dobrica Pavlinušić's random unstructured stuff (meanIT tablet Q70)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] meanIT tablet Q70} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#adb_shell">Dobrica Pavlinušić's random unstructured stuff (adb shell)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] adb shell} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#board">Dobrica Pavlinušić's random unstructured stuff (board)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] board} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#usb_fel">Dobrica Pavlinušić's random unstructured stuff (USB FEL)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] USB FEL} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#device_info">Dobrica Pavlinušić's random unstructured stuff (device info)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] device info} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#extract_data_from_device">Dobrica Pavlinušić's random unstructured stuff (extract data from device)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] extract data from device} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#u_boot">Dobrica Pavlinušić's random unstructured stuff (u-boot)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] u-=boot} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#malware_pre_installed">Dobrica Pavlinušić's random unstructured stuff (malware pre-installed)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] malware pre-=installed} --></span></li>
</ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br /><br /><h1 id="meanit_tablet_q70">meanIT tablet Q70</h1>
<p>
7&quot; IPS Quad Core</p>
<p>
recovery: extdroid4.4.2_r2-a33-v2.0</p>
<h2 id="adb_shell">adb shell</h2>
<pre>
dpavlin@siobhan:~$ adb shell
root@astar-ococci:/ #

root@astar-ococci:/ # cat /proc/cmdline                                        
console=ttyS0,115200 root=/dev/nandd init=/init loglevel=4 specialstr= partitions=bootloader@nanda:env@nandb:boot@nandc:system@nandd:data@nande:misc@nandf:recovery@nandg:cache@nandh:metadata@nandi:private@nandj:UDISK@nandk boot_type=0 config_size=39716

root@astar-ococci:/ # cat /proc/cpuinfo                                        
Processor       : ARMv7 Processor rev 5 (v7l)
processor       : 0
BogoMIPS        : 5714.28

processor       : 1
BogoMIPS        : 4800.00

processor       : 3
BogoMIPS        : 4800.00

Features        : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt 
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xc07
CPU revision    : 5

Hardware        : sun8i
Revision        : 0000
Serial          : 1a884915

</pre>
<br /><h2 id="board">board</h2>
<p>
AL-AX3-751B-V1.0<br />
2015.03.26</p>
<p>
<a target="_blank" title="(external link)" href="http://linux-sunxi.org/Aoson_M751s">http://linux-sunxi.org/Aoson_M751s</a></p>
<p>
<a target="_blank" title="(external link)" href="https://github.com/Icenowy/linux-kernel-lichee-a33/tree/aoson-m751s">https://github.com/Icenowy/linux-kernel-lichee-a33/tree/aoson-m751s</a></p>
<h1 id="usb_fel">USB FEL</h1>
<p>
Vol+ to enter FEL mode</p>
<pre>
Bus 003 Device 004: ID 1f3a:efe8 Onda (unverified) V972 tablet in flashing mode

root@x230:~# sunxi-fel ver
AWUSBFEX soc=00001667(A33) 00000001 ver=0001 44 08 scratchpad=00007e00 00000000 00000000

# read SID
root@x230:~# sunxi-fel readl 0x01c23800
0x0461872a

root@x230:~# sunxi-fel sid
0461872a:033c50c3:1a884915:00000000

</pre>
<br /><h2 id="device_info">device info</h2>
<ul>
<li><a target="_blank" title="(external link)" href="http://linux-sunxi.org/Retrieving_device_information">http://linux-sunxi.org/Retrieving_device_information</a></li>
</ul>
<pre>
dpavlin@x230:~/a33$ sudo sunxi-fel read 0x42400000 0x82d0 boot1.header

# blocks and version doesn't work any more

root@x230:~# sunxi-fel -v read 0x43000000 0x20000 script.bin 

# also doesn't transfer anything and hangs


</pre>
<br /><h2 id="extract_data_from_device">extract data from device</h2>
<pre>
dpavlin@klin:/klin/armbian/sunxi-tools$ make CROSS_COMPILE=arm-linux-gnueabihf- sunxi-meminfo
arm-linux-gnueabihf-gcc -std=c99 -Wall -Wextra -Wno-unused-result -D_POSIX_C_SOURCE=200112L -D_BSD_SOURCE -D_DEFAULT_SOURCE -Iinclude/ -static  -o sunxi-meminfo meminfo.c
dpavlin@klin:/klin/armbian/sunxi-tools$ make CROSS_COMPILE=arm-linux-gnueabihf- sunxi-script_extractor
arm-linux-gnueabihf-gcc -std=c99 -Wall -Wextra -Wno-unused-result -D_POSIX_C_SOURCE=200112L -D_BSD_SOURCE -D_DEFAULT_SOURCE -Iinclude/ -static  -o sunxi-script_extractor script_extractor.c

# put files in /cache/ instead of /sdcard/ since /sdcard/ doesn't have executable permission
dpavlin@x230:/mnt/klin/klin/armbian/sunxi-tools$ adb push sunxi-script_extractor /cache/
[100%] /cache/sunxi-script_extractor
dpavlin@x230:/mnt/klin/klin/armbian/sunxi-tools$ adb push sunxi-meminfo /cache/
[100%] /cache/sunxi-meminfo

root@astar-ococci:/cache # ./sunxi-meminfo                                     
Error: unknown or unhandled Soc: 0x1667
255|
# urgh!

svroot@astar-ococci:/cache # ./sunxi-script_extractor &gt; a33.bin                  
root@astar-ococci:/cache # ls -al a33.bin                                      
-rw-rw-rw- root     root       131072 2017-10-18 17:57 a33.bin




</pre>
<br /><h2 id="u_boot">u-boot</h2>
<pre>
dpavlin@klin:/klin/u-boot$ git remote -v
sunxi   git://git.denx.de/u-boot-sunxi.git (fetch)
sunxi   git://git.denx.de/u-boot-sunxi.git (push)

dpavlin@klin:/klin/u-boot$ git checkout -b sunxi/next sunxi/next
Branch 'sunxi/next' set up to track remote branch 'next' from 'sunxi'.
Switched to a new branch 'sunxi/next'

dpavlin@klin:/klin/u-boot$ make CROSS_COMPILE=arm-linux-gnueabihf- q8_a33_tablet_1024x600_defconfig

dpavlin@klin:/klin/u-boot$ make CROSS_COMPILE=arm-linux-gnueabihf- -j4

</pre>
<br /><ul>
<li><a target="_blank" title="(external link)" href="http://linux-sunxi.org/FEL/USBBoot">http://linux-sunxi.org/FEL/USBBoot</a></li>
</ul>
<h1 id="malware_pre_installed">malware pre-installed</h1>
<ul>
<li>com.adups.fota</li>
</ul>
</div>
<hr/><div>Attachments: About_tablet_2016-02-03-14-14-59.png, board_20160203_185556.jpg</div>]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>Android, arm</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?a33</guid>
<pubDate>Thu, 28 Dec 2017 03:23:39 -0000</pubDate>
</item>
<item>
<title><![CDATA[GK802]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?gk802</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: arm, linux</div><hr/><div class="wiki">
<p>
<a target="_blank" title="(external link)" href="https://github.com/imx6-dongle">https://github.com/imx6-dongle</a><br />
<a target="_blank" title="(external link)" href="https://github.com/imx6-dongle/wiki/wiki">https://github.com/imx6-dongle/wiki/wiki</a><br />
<a target="_blank" title="(external link)" href="https://github.com/imx6-dongle/wiki/wiki/GK802-hardware">https://github.com/imx6-dongle/wiki/wiki/GK802-hardware</a></p>
<ul>
<li>kernel 4.4 <a target="_blank" title="(external link)" href="https://github.com/dpavlin/linux-udoo">https://github.com/dpavlin/linux-udoo</a></li>
<li>u-boot <a target="_blank" title="(external link)" href="https://github.com/dpavlin/uboot-imx6dongle">https://github.com/dpavlin/uboot-imx6dongle</a></li>
</ul>
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#chroot">Dobrica Pavlinušić's random unstructured stuff (chroot)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] chroot} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#u_boot">Dobrica Pavlinušić's random unstructured stuff (u-boot)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] u-=boot} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#compile">Dobrica Pavlinušić's random unstructured stuff (compile)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] compile} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#dut">Dobrica Pavlinušić's random unstructured stuff (dut)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] dut} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#boot">Dobrica Pavlinušić's random unstructured stuff (boot)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] boot} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#kernel">Dobrica Pavlinušić's random unstructured stuff (kernel)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] kernel} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#sources">Dobrica Pavlinušić's random unstructured stuff (sources)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] sources} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#compile_kernel_4_4">Dobrica Pavlinušić's random unstructured stuff (compile kernel 4.4)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] compile kernel 4.4} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#compile_3_0_x">Dobrica Pavlinušić's random unstructured stuff (compile 3.0.x)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] compile 3.0.x} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#pinout">Dobrica Pavlinušić's random unstructured stuff (pinout)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] pinout} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#serial">Dobrica Pavlinušić's random unstructured stuff (Serial)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Serial} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#xbmc">Dobrica Pavlinušić's random unstructured stuff (XBMC)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] XBMC} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#linux">Dobrica Pavlinušić's random unstructured stuff (Linux)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Linux} --></span></li>
</ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br /><br /><pre>
Bus 001 Device 045: ID 15a2:0054 Freescale Semiconductor, Inc. i.MX6Q SystemOnChip in RecoveryMode



</pre>
<br /><h1 id="chroot">chroot</h1>
<pre>
root@nuc:/tmp/n3# cp `which qemu-arm-static` usr/bin/
root@nuc:/tmp/n3# chroot .
root@nuc:/# uname -a
Linux nuc 4.4.0-1-amd64 #1 SMP Debian 4.4.4-1 (2016-03-07) armv7l GNU/Linux
root@nuc:/# file /bin/bash 
/bin/bash: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=1a8601b954c83a01d91298d0f2f8f61ca033ebdd, stripped



</pre>
<br /><h1 id="u_boot">u-boot</h1>
<h2 id="compile">compile</h2>
<p>
<a target="_blank" title="(external link)" href="https://github.com/imx6-dongle/wiki/wiki/U-Boot-basics">https://github.com/imx6-dongle/wiki/wiki/U-Boot-basics</a></p>
<pre>
dpavlin@nuc:/nuc/imx6/uboot-imx6dongle$


sudo apt-get install make gcc-arm-none-eabi libusb-1.0

export ARCH=arm
export CROSS_COMPILE=arm-none-eabi-

make gk802_config

make
</pre>
<br /><h2 id="dut">dut</h2>
<pre>
pi@rpi2 ~/imx6/uboot-imx6dongle $ git remote -v
origin  https://github.com/imx6-dongle/uboot-imx6dongle (fetch)
origin  https://github.com/imx6-dongle/uboot-imx6dongle (push)

pi@rpi2 ~/imx6/uboot-imx6dongle $ make gk802_config
Configuring for gk802 - Board: gk802, Options: IMX_CONFIG=board/freescale/imx/ddr/mx6q_4x_mt41j128.cfg

pi@rpi2 ~/imx6/uboot-imx6dongle $ sudo apt-get install libusb-1.0

make gk802_config tools

sudo ./tools/imxboot /nuc/imx6/uboot-imx6dongle/u-boot.imx

</pre>
<br /><h2 id="boot">boot</h2>
<pre>
CPU:   Freescale i.MX6Q rev1.1 at 792 MHz                                                         
CPU:   Temperature 12 C, calibration data: 0x5834de7d                                             
Reset cause: POR                                                                                  
Board: MX6Q-gk802                                                                                 
DRAM:  1 GiB                                                                                      
MMC:   FSL_SDHC: 0, FSL_SDHC: 1                                                                   
enable_hdmi: setup HDMI monitor                                                                   
Display: HDMI (1024x768)                                                                          
In:    serial                                                                                     
Out:   serial                                                                                     
Err:   serial                                                                                     
</pre>
<br /><h1 id="kernel">kernel</h1>
<h2 id="sources">sources</h2>
<ul>
<li><a target="_blank" title="(external link)" href="https://github.com/imx6-dongle/linux-imx">https://github.com/imx6-dongle/linux-imx</a></li>
<li><a target="_blank" title="(external link)" href="https://github.com/patrykk/linux-udoo">https://github.com/patrykk/linux-udoo</a></li>
<li><a target="_blank" title="(external link)" href="https://github.com/xobs/novena-linux">https://github.com/xobs/novena-linux</a></li>
</ul>
<h2 id="compile_kernel_4_4">compile kernel 4.4</h2>
<pre>
dpavlin@klin:/klin/imx6/linux-imx$ git remote -v
boundarydevices https://github.com/boundarydevices/linux-imx6 (fetch)
boundarydevices https://github.com/boundarydevices/linux-imx6 (push)
gk802   https://github.com/imx6-dongle/linux-imx.git (fetch)
gk802   https://github.com/imx6-dongle/linux-imx.git (push)
origin  https://github.com/xobs/novena-linux (fetch)
origin  https://github.com/xobs/novena-linux (push)
patrykk https://github.com/patrykk/linux-udoo (fetch)
patrykk https://github.com/patrykk/linux-udoo (push)

dpavlin@klin:/klin/imx6/linux-imx$ git checkout -b patrykk/4.4-5.0.11.p7.3 remotes/patrykk/4.4-5.0.11.p7.3

dpavlin@klin:/klin/imx6/linux-imx$ sudo apt-get install firmware-realtek



dpavlin@klin:/klin/imx6/linux-imx$ git checkout -b imx_3.10.17_1.0.0_ga remotes/gk802/imx_3.10.17_1.0.0_ga
Checking out files: 100% (34524/34524), done.
Branch imx_3.10.17_1.0.0_ga set up to track remote branch imx_3.10.17_1.0.0_ga from gk802.
Switched to a new branch 'imx_3.10.17_1.0.0_ga'

dpavlin@klin:/klin/imx6/linux-imx$ make gk802_defconfig

export ARCH=arm
export CROSS_COMPILE=arm-none-eabi-

LOADADDR=0x10800000 make uImage modules -j 4


#mkdir /tmp/boot
#INSTALL_PATH=/tmp/boot make install

mkdir /tmp/modules
INSTALL_MOD_PATH=/tmp/modules make modules_install
</pre>
<br /><h2 id="compile_3_0_x">compile 3.0.x</h2>
<p>
<a target="_blank" title="(external link)" href="https://github.com/imx6-dongle/wiki/wiki">https://github.com/imx6-dongle/wiki/wiki</a></p>
<p>
<a target="_blank" title="(external link)" href="http://releases.linaro.org/components/toolchain/binaries/4.9-2016.02/arm-linux-gnueabi/gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabi.tar.xz">http://releases.linaro.org/components/toolchain/binaries/4.9-2016.02/arm-linux-gnueabi/gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabi.tar.xz</a></p>
<h1 id="pinout">pinout</h1>
<span class="nlw_phrase"><img alt="gk802-pinout.jpg" src="https://saturn.ffzg.hr/rot13/index.cgi/gk802-pinout.jpg?action=attachments_download;page_name=gk802;id=20160307233735-0-27346" /><!-- wiki: {image: gk802-=pinout.jpg} --></span><br /><br /><p>
<strong>older stuff</strong></p>
<p>
Hi-802 is clone of this one</p>
<ul>
<li><a target="_blank" title="(external link)" href="http://www.geekbuying.com/item/Unii-GK802-Fresscale-i-MX6-Quad-Dure-Cortex-A9-DDR3-1GB-RAM-8GB-ROM-TV-Box-Dongle----Black-312807.html">http://www.geekbuying.com/item/Unii-GK802-Fresscale-i-MX6-Quad-Dure-Cortex-A9-DDR3-1GB-RAM-8GB-ROM-TV-Box-Dongle----Black-312807.html</a></li>
<li><a target="_blank" title="(external link)" href="http://forum.xda-developers.com/showthread.php?t=2044045">http://forum.xda-developers.com/showthread.php?t=2044045</a></li>
<li>FULL micro-sd images <a target="_blank" title="(external link)" href="http://www.armtvtech.com/armtvtechforum/viewtopic.php?f=51&amp;t=1113">http://www.armtvtech.com/armtvtechforum/viewtopic.php?f=51&amp;t=1113</a></li>
<li>root <a target="_blank" title="(external link)" href="http://www.armtvtech.com/armtvtechforum/viewtopic.php?f=50&amp;t=226&amp;start=80#p4516">http://www.armtvtech.com/armtvtechforum/viewtopic.php?f=50&amp;t=226&amp;start=80#p4516</a></li>
<li>production, motherboard pictures <a target="_blank" title="(external link)" href="http://www.hiapad.com/?p=1994">http://www.hiapad.com/?p=1994</a></li>
</ul>
<h1 id="serial">Serial</h1>
<p>
<a target="_blank" title="(external link)" href="http://www.armtvtech.com/armtvtechforum/viewtopic.php?f=50&amp;t=226&amp;start=210#p6651">http://www.armtvtech.com/armtvtechforum/viewtopic.php?f=50&amp;t=226&amp;start=210#p6651</a><br />
<img alt="http://www.junklet.net/test/gk802_serial.jpg" src="http://www.junklet.net/test/gk802_serial.jpg" border="0" /></p>
<h1 id="xbmc">XBMC</h1>
<p>
external player <a target="_blank" title="(external link)" href="http://www.xbmcandroid.com/2012/12/10/how-to-install-xbmc-nightly-with-external-player-on-the-mk802-stick-or-other-android-tv-devices/">http://www.xbmcandroid.com/2012/12/10/how-to-install-xbmc-nightly-with-external-player-on-the-mk802-stick-or-other-android-tv-devices/</a></p>
<h1 id="linux">Linux</h1>
<p>
<a target="_blank" title="(external link)" href="http://www.junklet.net/test/gk802_boot.txt">http://www.junklet.net/test/gk802_boot.txt</a><br />
<a target="_blank" title="(external link)" href="https://wiki.linaro.org/Boards/MX6QSabreLite">https://wiki.linaro.org/Boards/MX6QSabreLite</a><br />
<a target="_blank" title="(external link)" href="http://boundarydevices.com/linaro-12-09-for-i-mx6/">http://boundarydevices.com/linaro-12-09-for-i-mx6/</a></p>
</div>
<hr/><div>Attachments: gk802-pinout.jpg</div>]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>arm, linux</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?gk802</guid>
<pubDate>Thu, 07 Apr 2016 13:16:13 -0000</pubDate>
</item>
<item>
<title><![CDATA[mk808]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?mk808</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: arm, rk3066</div><hr/><div class="wiki">
<p>
<a target="_blank" title="(external link)" href="http://www.geekbuying.com/item/MK808-Dual-Core-Android-4-1-Jelly-Bean-TV-BOX-Rockchip-RK3066-Cortex-A9-Mini-PC-stick-307415.html">http://www.geekbuying.com/item/MK808-Dual-Core-Android-4-1-Jelly-Bean-TV-BOX-Rockchip-RK3066-Cortex-A9-Mini-PC-stick-307415.html</a></p>
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#device_info">Dobrica Pavlinušić's random unstructured stuff (Device info)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Device info} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#rockchip_rk3066_rk30xx_processors_documentation_source_code_and_tools">Dobrica Pavlinušić's random unstructured stuff (Rockchip RK3066/RK30xx Processors Documentation, Source Code and Tools)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Rockchip RK3066/RK30xx Processors Documentation, Source Code and Tools} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#kernel">Dobrica Pavlinušić's random unstructured stuff (Kernel)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Kernel} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#flashing">Dobrica Pavlinušić's random unstructured stuff (Flashing)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Flashing} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#ubuntu_linux_for_the_ug802">Dobrica Pavlinušić's random unstructured stuff (Ubuntu Linux for the UG802)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Ubuntu Linux for the UG802} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#cyanogenmod">Dobrica Pavlinušić's random unstructured stuff (CyanogenMod)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] CyanogenMod} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#flash_from_linux">Dobrica Pavlinušić's random unstructured stuff (Flash from Linux)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Flash from Linux} --></span></li>
</ul></ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br /><br /><h1 id="device_info">Device info</h1>
<pre>
root@android:/ # cat /proc/cmdline                                             
console=ttyFIQ0 androidboot.console=ttyFIQ0 init=/init initrd=0x62000000,0x00200000 mtdparts=rk29xxnand:0x00002000@0x00002000(misc),0x00004000@0x00004000(kernel),0x00008000@0x00008000(boot),0x00008000@0x00010000(recovery),0x000C0000@0x00018000(backup),0x00040000@0x000D8000(cache),0x00300000@0x00118000(userdata),0x00002000@0x00418000(kpanic),0x00100000@0x0041A000(system),-@0x0053A000(user) bootver=2012-08-08#1.14 firmware_ver=4.0.4

root@android:/ # cat /proc/mtd                                                 
dev:    size   erasesize  name
mtd0: 00400000 00004000 &quot;misc&quot;
mtd1: 00800000 00004000 &quot;kernel&quot;
mtd2: 01000000 00004000 &quot;boot&quot;
mtd3: 01000000 00004000 &quot;recovery&quot;
mtd4: 18000000 00004000 &quot;backup&quot;
mtd5: 08000000 00004000 &quot;cache&quot;
mtd6: 60000000 00004000 &quot;userdata&quot;
mtd7: 00400000 00004000 &quot;kpanic&quot;
mtd8: 20000000 00004000 &quot;system&quot;
mtd9: 131400000 00004000 &quot;user&quot;
</pre>
<br /><h1 id="rockchip_rk3066_rk30xx_processors_documentation_source_code_and_tools">Rockchip RK3066/RK30xx Processors Documentation, Source Code and Tools</h1>
<p>
<a target="_blank" title="(external link)" href="http://www.cnx-software.com/2012/11/04/rockchip-rk3066-rk30xx-processor-documentation-source-code-and-tools/">http://www.cnx-software.com/2012/11/04/rockchip-rk3066-rk30xx-processor-documentation-source-code-and-tools/</a></p>
<h2 id="kernel">Kernel</h2>
<p>
<a target="_blank" title="(external link)" href="https://github.com/omegamoon/rockchip-rk30xx-mk808">https://github.com/omegamoon/rockchip-rk30xx-mk808</a></p>
<h2 id="flashing">Flashing</h2>
<ul>
<li>Information about tool: <a target="_blank" title="(external link)" href="http://forum.xda-developers.com/showthread.php?t=1286305">http://forum.xda-developers.com/showthread.php?t=1286305</a></li>
<li>source code: <a target="_blank" title="(external link)" href="https://github.com/justgr/arnova-tools/tree/master/rkflashtool">https://github.com/justgr/arnova-tools/tree/master/rkflashtool</a></li>
<li>alternative: <a target="_blank" title="(external link)" href="https://github.com/naobsd/rkutils">https://github.com/naobsd/rkutils</a></li>
<li>rk3066 modifications: <a target="_blank" title="(external link)" href="http://valentijn.sessink.nl/?p=382">http://valentijn.sessink.nl/?p=382</a></li>
</ul>
<h1 id="ubuntu_linux_for_the_ug802">Ubuntu Linux for the UG802</h1>
<p>
<a target="_blank" title="(external link)" href="http://www.slatedroid.com/topic/40717-ubuntu-linux-for-the-ug802/">http://www.slatedroid.com/topic/40717-ubuntu-linux-for-the-ug802/</a></p>
<h1 id="cyanogenmod">CyanogenMod</h1>
<ul>
<li><a target="_blank" title="(external link)" href="http://www.armtvtech.com/armtvtechforum/viewtopic.php?f=13&amp;t=438">http://www.armtvtech.com/armtvtechforum/viewtopic.php?f=13&amp;t=438</a></li>
<li><a target="_blank" title="(external link)" href="https://bitbucket.org/cm3066">https://bitbucket.org/cm3066</a></li>
</ul>
<h2 id="flash_from_linux">Flash from Linux</h2>
<pre>
./rk-tools/img_unpack flash_20121106.img flash_20121106.unpacked
./rk-tools/afptool -unpack flash_20121106 flash_20121106.files


</pre>
</div>
]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>arm, rk3066</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?mk808</guid>
<pubDate>Sun, 16 Dec 2012 13:42:06 -0000</pubDate>
</item>
<item>
<title><![CDATA[mk802]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?mk802</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: A10, arm</div><hr/><div class="wiki">
<p>
This page documents various things about this nice A10 machine with 1Gb RAM</p>
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#serial_port">Dobrica Pavlinušić's random unstructured stuff (Serial port)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Serial port} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#boot">Dobrica Pavlinušić's random unstructured stuff (Boot)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Boot} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#u_boot">Dobrica Pavlinušić's random unstructured stuff (u-boot)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] u-=boot} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#kernel">Dobrica Pavlinušić's random unstructured stuff (Kernel)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Kernel} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#kernel_compilation">Dobrica Pavlinušić's random unstructured stuff (Kernel compilation)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Kernel compilation} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#debian">Dobrica Pavlinušić's random unstructured stuff (Debian)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Debian} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#android">Dobrica Pavlinušić's random unstructured stuff (Android)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Android} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#source">Dobrica Pavlinušić's random unstructured stuff (Source)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Source} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#cyanogenmod_10">Dobrica Pavlinušić's random unstructured stuff (CyanogenMod 10)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] CyanogenMod 10} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#building">Dobrica Pavlinušić's random unstructured stuff (Building)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Building} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#microsd_breakout">Dobrica Pavlinušić's random unstructured stuff (MicroSD breakout)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] MicroSD breakout} --></span></li>
</ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br /><br /><h1 id="serial_port">Serial port</h1>
<p>
<img alt="http://linux-sunxi.org/File:Mk802_uart.jpg" src="http://linux-sunxi.org/File:Mk802_uart.jpg" border="0" /></p>
<span class="nlw_phrase"><img alt="IMG_20121111_210843.jpg" src="https://saturn.ffzg.hr/rot13/index.cgi/IMG_20121111_210843.jpg?action=attachments_download;page_name=mk802;id=20121112135431-0-3294" /><!-- wiki: {image: IMG_20121111_210843.jpg} --></span><br /><br /><span class="nlw_phrase"><img alt="IMG_20121111_210759.jpg" src="https://saturn.ffzg.hr/rot13/index.cgi/IMG_20121111_210759.jpg?action=attachments_download;page_name=mk802;id=20121112135421-0-25742" /><!-- wiki: {image: IMG_20121111_210759.jpg} --></span><br /><br /><h1 id="boot">Boot</h1>
<ul>
<li>A10 boot overview - <a target="_blank" title="(external link)" href="http://rhombus-tech.net/allwinner_a10/a10_boot_process/">http://rhombus-tech.net/allwinner_a10/a10_boot_process/</a></li>
<li><a target="_blank" title="(external link)" href="https://github.com/hipboi/mksunxiboot">https://github.com/hipboi/mksunxiboot</a></li>
<li><a target="_blank" title="(external link)" href="https://github.com/linux-sunxi/u-boot-sunxi/wiki">https://github.com/linux-sunxi/u-boot-sunxi/wiki</a></li>
</ul>
<h2 id="u_boot">u-boot</h2>
<p>
<a target="_blank" title="(external link)" href="https://www.miniand.com/forums/forums/development--3/topics/uboot">https://www.miniand.com/forums/forums/development--3/topics/uboot</a></p>
<h1 id="kernel">Kernel</h1>
<p>
(not really needed if u-boot detects memory correctly)</p>
<p>
CONFIG_CMDLINE mem=1024M</p>
<h2 id="kernel_compilation">Kernel compilation</h2>
<p>
<a target="_blank" title="(external link)" href="http://linux-sunxi.org/Linux">http://linux-sunxi.org/Linux</a></p>
<pre>
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- sun4i_defconfig
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16 uImage modules
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_MOD_PATH=output modules_install
</pre>
<br /><h1 id="debian">Debian</h1>
<ul>
<li>512Mb <a target="_blank" title="(external link)" href="http://romanrm.ru/en/a10/debian">http://romanrm.ru/en/a10/debian</a></li>
<li>1Gb <a target="_blank" title="(external link)" href="http://jas-hacks.blogspot.co.uk/2012/10/hackberry-a10-debian-whezzy-headless.html">http://jas-hacks.blogspot.co.uk/2012/10/hackberry-a10-debian-whezzy-headless.html</a></li>
</ul>
<h1 id="android">Android</h1>
<h2 id="source">Source</h2>
<ul>
<li><a target="_blank" title="(external link)" href="https://github.com/oopsmonk/android_device_allwinner_mk802">https://github.com/oopsmonk/android_device_allwinner_mk802</a></li>
<li><a target="_blank" title="(external link)" href="https://github.com/oopsmonk/android/blob/jellybean/default.xml">https://github.com/oopsmonk/android/blob/jellybean/default.xml</a></li>
</ul>
<h2 id="cyanogenmod_10">CyanogenMod 10</h2>
<ul>
<li><a target="_blank" title="(external link)" href="https://www.miniand.com/forums/forums/development/topics/cyanogenmod-10-full-working-with-internal-storage">https://www.miniand.com/forums/forums/development/topics/cyanogenmod-10-full-working-with-internal-storage</a></li>
</ul>
<h1 id="building">Building</h1>
<p>
<a target="_blank" title="(external link)" href="https://github.com/linux-sunxi/sunxi-bsp">https://github.com/linux-sunxi/sunxi-bsp</a></p>
<p>
<a target="_blank" title="(external link)" href="https://github.com/cnxsoft/a10-config">https://github.com/cnxsoft/a10-config</a></p>
<h1 id="microsd_breakout">MicroSD breakout</h1>
<ul>
<li><a target="_blank" title="(external link)" href="http://linux-sunxi.org/MicroSD_Breakout">http://linux-sunxi.org/MicroSD_Breakout</a></li>
</ul>
<table style="border-collapse: collapse;" class="formatter_table">
<tr>
<td style="border: 1px solid black;padding: .2em;">Pin</td>
<td style="border: 1px solid black;padding: .2em;"><a target="_blank" title="(external link)" href="http://linux-sunxi.org/index.php?title=MMC&amp;action=edit&amp;redlink=1">MicroSD<!-- wiki-renamed-hyperlink "MicroSD"<http://linux=-sunxi.org/index.php?title=MMC&action=edit&redlink=1> --></a></td>
<td style="border: 1px solid black;padding: .2em;"><a target="_blank" title="(external link)" href="http://linux-sunxi.org/JTAG">JTAG<!-- wiki-renamed-hyperlink "JTAG"<http://linux=-sunxi.org/JTAG> --></a> Connection</td>
<td style="border: 1px solid black;padding: .2em;">14-pin ARM <a target="_blank" title="(external link)" href="http://linux-sunxi.org/JTAG">JTAG<!-- wiki-renamed-hyperlink "JTAG"<http://linux=-sunxi.org/JTAG> --></a> Header</td>
<td style="border: 1px solid black;padding: .2em;"><a target="_blank" title="(external link)" href="http://linux-sunxi.org/index.php?title=UART&amp;action=edit&amp;redlink=1">UART<!-- wiki-renamed-hyperlink "UART"<http://linux=-sunxi.org/index.php?title=UART&action=edit&redlink=1> --></a> Connection</td>
<td style="border: 1px solid black;padding: .2em;">5-pin <a target="_blank" title="(external link)" href="http://linux-sunxi.org/index.php?title=UART&amp;action=edit&amp;redlink=1">UART<!-- wiki-renamed-hyperlink "UART"<http://linux=-sunxi.org/index.php?title=UART&action=edit&redlink=1> --></a> Header</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">1</td>
<td style="border: 1px solid black;padding: .2em;">Data2</td>
<td style="border: 1px solid black;padding: .2em;">TCK</td>
<td style="border: 1px solid black;padding: .2em;">9</td>
<td style="border: 1px solid black;padding: .2em;"><em>nc</em></td>
<td style="border: 1px solid black;padding: .2em;"><em>nc</em></td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">2</td>
<td style="border: 1px solid black;padding: .2em;">CD/Data3</td>
<td style="border: 1px solid black;padding: .2em;"><em>nc</em></td>
<td style="border: 1px solid black;padding: .2em;"><em>nc</em></td>
<td style="border: 1px solid black;padding: .2em;">RX</td>
<td style="border: 1px solid black;padding: .2em;">2</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">3</td>
<td style="border: 1px solid black;padding: .2em;">Cmd</td>
<td style="border: 1px solid black;padding: .2em;">TDO</td>
<td style="border: 1px solid black;padding: .2em;">11</td>
<td style="border: 1px solid black;padding: .2em;"><em>nc</em></td>
<td style="border: 1px solid black;padding: .2em;"><em>nc</em></td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">4</td>
<td style="border: 1px solid black;padding: .2em;">VDD</td>
<td style="border: 1px solid black;padding: .2em;">VTG</td>
<td style="border: 1px solid black;padding: .2em;">1,13</td>
<td style="border: 1px solid black;padding: .2em;">VDD</td>
<td style="border: 1px solid black;padding: .2em;">3</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">5</td>
<td style="border: 1px solid black;padding: .2em;">CLK</td>
<td style="border: 1px solid black;padding: .2em;"><em>nc</em></td>
<td style="border: 1px solid black;padding: .2em;"><em>nc</em></td>
<td style="border: 1px solid black;padding: .2em;">TX</td>
<td style="border: 1px solid black;padding: .2em;">1</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">6</td>
<td style="border: 1px solid black;padding: .2em;">VSS</td>
<td style="border: 1px solid black;padding: .2em;">GND</td>
<td style="border: 1px solid black;padding: .2em;">2,4,6,8,10,14</td>
<td style="border: 1px solid black;padding: .2em;">GND</td>
<td style="border: 1px solid black;padding: .2em;">4, 5</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">7</td>
<td style="border: 1px solid black;padding: .2em;">Data0</td>
<td style="border: 1px solid black;padding: .2em;">TDI</td>
<td style="border: 1px solid black;padding: .2em;">5</td>
<td style="border: 1px solid black;padding: .2em;"><em>nc</em></td>
<td style="border: 1px solid black;padding: .2em;"><em>nc</em></td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">8</td>
<td style="border: 1px solid black;padding: .2em;">Data1</td>
<td style="border: 1px solid black;padding: .2em;">TMS</td>
<td style="border: 1px solid black;padding: .2em;">7</td>
<td style="border: 1px solid black;padding: .2em;"><em>nc</em></td>
<td style="border: 1px solid black;padding: .2em;"><em>nc</em></td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;"><em>nc</em></td>
<td style="border: 1px solid black;padding: .2em;"><em>nc</em></td>
<td style="border: 1px solid black;padding: .2em;">nTRST</td>
<td style="border: 1px solid black;padding: .2em;">3</td>
<td style="border: 1px solid black;padding: .2em;"><em>nc</em></td>
<td style="border: 1px solid black;padding: .2em;"><em>nc</em></td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;"><em>nc</em></td>
<td style="border: 1px solid black;padding: .2em;"><em>nc</em></td>
<td style="border: 1px solid black;padding: .2em;">nRESET</td>
<td style="border: 1px solid black;padding: .2em;">12</td>
<td style="border: 1px solid black;padding: .2em;"><em>nc</em></td>
<td style="border: 1px solid black;padding: .2em;"><em>nc</em></td>
</tr>
</table>
</div>
<hr/><div>Attachments: IMG_20121111_210759.jpg, IMG_20121111_210843.jpg</div>]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>A10, arm</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?mk802</guid>
<pubDate>Thu, 22 Nov 2012 10:04:39 -0000</pubDate>
</item>
</channel>
</rss>