<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Problem porting to Moto E 2015 4G (surnia)]]></title><description><![CDATA[<p dir="auto">Hi everyone,</p>
<p dir="auto">I am currently trying to port our recently dead OS to my phone (surnia).<br />
It has a CM/LineageOS 12.1 port which makes it quite straightforward, but I am stuck with a situation close to the bullhead port.<br />
My build boots, but not graphically, ADB does not start, RNDIS does and I can look around the running system.</p>
<p dir="auto">But the thing is, I don't know what to look for!</p>
<p dir="auto">I checked common places I know of, here is <a href="http://paste.ubuntu.com/24371041/" target="_blank" rel="noopener noreferrer nofollow ugc">my dmesg</a>, and <a href="http://paste.ubuntu.com/24371054/" target="_blank" rel="noopener noreferrer nofollow ugc">some random commands</a>.<br />
What bothers me most is:</p>
<ul>
<li>[  111.491674] systemd-hostnamed[881]: Failed to run event loop: Connection timed out</li>
<li>root@ubuntu-phablet:/# systemctl status<br />
Failed to get D-Bus connection: Operation not permitted</li>
</ul>
<p dir="auto">But I don't know what to think about it… Nor how to fix it…</p>
<p dir="auto">What do you think? Thanks</p>
<p dir="auto">PS: really looking forward a LineageOS 14.1 rebase, any way to help?</p>
]]></description><link>https://forums.ubports.com/topic/186/problem-porting-to-moto-e-2015-4g-surnia</link><generator>RSS for Node</generator><lastBuildDate>Thu, 21 May 2026 20:33:32 GMT</lastBuildDate><atom:link href="https://forums.ubports.com/topic/186.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 13 Apr 2017 00:45:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem porting to Moto E 2015 4G (surnia) on Sat, 10 Jun 2017 18:54:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nic264" aria-label="Profile: Nic264">@<bdi>Nic264</bdi></a> Hi,</p>
<p dir="auto">no problem. If you got any meaningful changes or improvements in the code, consider forking the repos and pushing your changes into those new repos.</p>
<p dir="auto">BR</p>
]]></description><link>https://forums.ubports.com/post/1961</link><guid isPermaLink="true">https://forums.ubports.com/post/1961</guid><dc:creator><![CDATA[flohack]]></dc:creator><pubDate>Sat, 10 Jun 2017 18:54:35 GMT</pubDate></item><item><title><![CDATA[Reply to Problem porting to Moto E 2015 4G (surnia) on Sat, 10 Jun 2017 11:40:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/flohack" aria-label="Profile: Flohack">@<bdi>Flohack</bdi></a> Hi, sorry for the lengthy follow-up, I've been busy with competitive exams…</p>
<p dir="auto">I am sorry to say that I won't be able to try and port this anymore: probably because of a power surge, my phone USB port is dead and I can't transmit anymore data to the phone…</p>
<p dir="auto">Thanks for the help, I'll try to contribute some other way (but after the oral part of my exams).</p>
]]></description><link>https://forums.ubports.com/post/1954</link><guid isPermaLink="true">https://forums.ubports.com/post/1954</guid><dc:creator><![CDATA[Nic264]]></dc:creator><pubDate>Sat, 10 Jun 2017 11:40:07 GMT</pubDate></item><item><title><![CDATA[Reply to Problem porting to Moto E 2015 4G (surnia) on Sat, 15 Apr 2017 18:46:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nic264" aria-label="Profile: Nic264">@<bdi>Nic264</bdi></a> Hi,</p>
<p dir="auto">yes debug fills up the log with udev messages, but I think this is a good sign, seems udev is really busy creating all necessary entries <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=bc7965752a7" class="not-responsive emoji emoji-android emoji--wink" style="height:23px;width:auto;vertical-align:middle" title=";)" alt="😉" /> - you can switch it off again, it has no better use now.</p>
<p dir="auto">Ok so basically on what CM versions did you base your device Kernel and vendor tree?</p>
<p dir="auto">BR</p>
]]></description><link>https://forums.ubports.com/post/891</link><guid isPermaLink="true">https://forums.ubports.com/post/891</guid><dc:creator><![CDATA[flohack]]></dc:creator><pubDate>Sat, 15 Apr 2017 18:46:06 GMT</pubDate></item><item><title><![CDATA[Reply to Problem porting to Moto E 2015 4G (surnia) on Sat, 15 Apr 2017 17:50:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/flohack" aria-label="Profile: Flohack">@<bdi>Flohack</bdi></a> Hi,<br />
I don't really have the required knowledge, but I'm learning <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61b.png?v=bc7965752a7" class="not-responsive emoji emoji-android emoji--stuck_out_tongue" style="height:23px;width:auto;vertical-align:middle" title=":-P" alt="😛" /></p>
<p dir="auto">This is <a href="http://paste.ubuntu.com/24386839/" target="_blank" rel="noopener noreferrer nofollow ugc">the mess debug gives me</a>, this line fills my buffer:</p>
<pre><code>[ growing time ] systemd-udevd[237]: maximum number (16) of children reached
</code></pre>
<p dir="auto">Original android version was 5.0.2, upgraded to 5.1.1 then 6.0 by Motorola then 7.1 by the CM/LineageOS team.</p>
<p dir="auto">I updated my initrd in order to use a F2FS data partition so I don't have to reformat every time I switch back to Lineage (this is my only phone), would that be a problem?</p>
<p dir="auto">I'm trying to build libhybris right now (on the device since cross-compiling gives me trouble)…</p>
]]></description><link>https://forums.ubports.com/post/889</link><guid isPermaLink="true">https://forums.ubports.com/post/889</guid><dc:creator><![CDATA[Nic264]]></dc:creator><pubDate>Sat, 15 Apr 2017 17:50:09 GMT</pubDate></item><item><title><![CDATA[Reply to Problem porting to Moto E 2015 4G (surnia) on Sat, 15 Apr 2017 07:06:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nic264" aria-label="Profile: Nic264">@<bdi>Nic264</bdi></a> HI,<br />
well basically you are on a good path. You seem to have the knowledge and the motivation to analyze the things in detail <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=bc7965752a7" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /><br />
Basically I did not expect that the issue with the fb device goes away just by adding udev rules and setting the device id. It was just part of the procedure. Kernel config might have helped, and its not bad to have it in place already.<br />
The kernel cmdline seems fine, if it reacts on debug you dont need the patch. however, remember that the bootloader cmdline might get appended to yours and will overwrite settings if they appear twice.<br />
For AppArmor: Yes 3.10 might indeed contain already the correct apparmor version. Which was actually the original Android version for this device?</p>
<p dir="auto">BR</p>
]]></description><link>https://forums.ubports.com/post/882</link><guid isPermaLink="true">https://forums.ubports.com/post/882</guid><dc:creator><![CDATA[flohack]]></dc:creator><pubDate>Sat, 15 Apr 2017 07:06:31 GMT</pubDate></item><item><title><![CDATA[Reply to Problem porting to Moto E 2015 4G (surnia) on Sat, 15 Apr 2017 01:13:33 GMT]]></title><description><![CDATA[<p dir="auto">OK so the property ro.product.device used by Ubuntu's init to determine the device was set by Android's init too late (this is an unified device tree). It is now fixed (hardcoded in my system.prop).</p>
<pre><code>[   19.324825] initrd: device is surnia_umts
...
[   28.163553] init: Found radio id: 0x4 setting build properties for surnia_umts device
</code></pre>
<p dir="auto">I have dumped my <a href="http://paste.ubuntu.com/24383942/" target="_blank" rel="noopener noreferrer nofollow ugc">udev rules</a> and placed them in <code>/etc/udev/rules.d/70-surnia_umts.rules</code>. I haven't noticed any change so far (except for udev complaining about unknown users and groups).</p>
<p dir="auto">You were right, the <code>debug</code> boot option broke the boot, causing a boot loop <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f615.png?v=bc7965752a7" class="not-responsive emoji emoji-android emoji--confused" style="height:23px;width:auto;vertical-align:middle" title=":-\" alt="😕" /> I'll check in the <code>console-ramoops</code> when I have the time.</p>
<p dir="auto">Will I really need to patch AppArmor? I already run Linux 3.10.49…</p>
]]></description><link>https://forums.ubports.com/post/881</link><guid isPermaLink="true">https://forums.ubports.com/post/881</guid><dc:creator><![CDATA[Nic264]]></dc:creator><pubDate>Sat, 15 Apr 2017 01:13:33 GMT</pubDate></item><item><title><![CDATA[Reply to Problem porting to Moto E 2015 4G (surnia) on Fri, 14 Apr 2017 21:52:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/flohack" aria-label="Profile: Flohack">@<bdi>Flohack</bdi></a><br />
After reading the initrd code, device is determined by reading ro.product.device in the build.prop, but in my case it is set in ro.cm.device, I'll correct this and rebuild.<br />
I didn't dump the udev rules for now, going to do this now too.</p>
<p dir="auto">I updated the kernel config with that script then had to patch a couple of problems in regard of uid_t becoming kuid_t etc… I already managed to change my kernel cmdline and I don't think what my bootloader appends can cause any problem: (does it?)</p>
<pre><code>androidboot.emmc=true
androidboot.serialno=TA36406M0E
androidboot.baseband=msm
androidboot.mode=charger
androidboot.device=surnia
androidboot.hwrev=0x8300
androidboot.radio=0x4
androidboot.powerup_reason=0x00000100
androidboot.bootreason=charger
androidboot.write_protect=0
msm_poweroff.download_mode=0
androidboot.fsg-id=
androidboot.secure_hardware=1
androidboot.cid=0x7
androidboot.wifimacaddr=E8:91:20:79:04:53,E8:91:20:79:04:54
mdss_mdp.panel=1:dsi:0:qcom,mdss_dsi_mot_boe_450_qhd_video_v3
androidboot.bootloader=0x8020
androidboot.carrier=retfr
androidboot.hardware.sku=XT1524
androidboot.bl_state=2
</code></pre>
<p dir="auto">Thanks for you help <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=bc7965752a7" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://forums.ubports.com/post/880</link><guid isPermaLink="true">https://forums.ubports.com/post/880</guid><dc:creator><![CDATA[Nic264]]></dc:creator><pubDate>Fri, 14 Apr 2017 21:52:08 GMT</pubDate></item><item><title><![CDATA[Reply to Problem porting to Moto E 2015 4G (surnia) on Fri, 14 Apr 2017 21:02:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nic264" aria-label="Profile: Nic264">@<bdi>Nic264</bdi></a> Ok so the good thing is, the LXC container is running. What I currently do not like from dmesg is this:</p>
<pre><code class="language-[">[   47.167516] initrd: mounting system.img (user mode)
[   47.192790] init (308) used greatest stack depth: 5248 bytes left
[   47.205913] initrd: mounting device image as ro
...
[   47.267907] initrd: device is unknown
</code></pre>
<p dir="auto">Device is unknown means that somehow initrd does not detect the device correctly. This needs to be fixed. But tbh I forgot the logic there, need to take a look again.<br />
Also, did you already dump the udev rules? See <a href="https://developer.ubuntu.com/en/phone/devices/porting-new-device/" target="_blank" rel="noopener noreferrer nofollow ugc">https://developer.ubuntu.com/en/phone/devices/porting-new-device/</a> and also this page can be helpful to understand whats going on at the beginning: <a href="https://wiki.ubuntu.com/Touch/ContainerArchitecture" target="_blank" rel="noopener noreferrer nofollow ugc">https://wiki.ubuntu.com/Touch/ContainerArchitecture</a> - udev rules need to be placed inside the image (mount - o remount,rw /)</p>
<p dir="auto">That said, its normal to have exactly these issues at the beginning. Every device is different, so its hard to tell you exactly whats going on.</p>
<p dir="auto">You can try to enable debug (but it might break the boot since it dumps too much udev debug into the logs xD), for this add "debug" to the kernel cmdline. But read this first: <a href="https://wiki.ubports.com/wiki/When-the-Bootloader-Decides-to-Override-your-Command-Line" target="_blank" rel="noopener noreferrer nofollow ugc">https://wiki.ubports.com/wiki/When-the-Bootloader-Decides-to-Override-your-Command-Line</a> - probably you need to patch the kernel for this.</p>
<p dir="auto">Did you BTW update the kernel config with the script from here: <a href="https://github.com/janimo/phablet-porting-scripts/blob/master/kernel/check-config" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/janimo/phablet-porting-scripts/blob/master/kernel/check-config</a>, and also you need to patch apparmor3 inside (but this is not needed now)</p>
]]></description><link>https://forums.ubports.com/post/879</link><guid isPermaLink="true">https://forums.ubports.com/post/879</guid><dc:creator><![CDATA[flohack]]></dc:creator><pubDate>Fri, 14 Apr 2017 21:02:55 GMT</pubDate></item><item><title><![CDATA[Reply to Problem porting to Moto E 2015 4G (surnia) on Fri, 14 Apr 2017 19:47:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/flohack" aria-label="Profile: Flohack">@<bdi>Flohack</bdi></a> This was already in my <a href="http://paste.ubuntu.com/24371054/" target="_blank" rel="noopener noreferrer nofollow ugc">random commands</a> (OP), but here it is:</p>
<pre><code>root@ubuntu-phablet:/# lxc-info -n android
Name:           android
State:          RUNNING
PID:            591
IP:             192.168.2.15
CPU use:        3.44 seconds
</code></pre>
]]></description><link>https://forums.ubports.com/post/878</link><guid isPermaLink="true">https://forums.ubports.com/post/878</guid><dc:creator><![CDATA[Nic264]]></dc:creator><pubDate>Fri, 14 Apr 2017 19:47:55 GMT</pubDate></item><item><title><![CDATA[Reply to Problem porting to Moto E 2015 4G (surnia) on Fri, 14 Apr 2017 19:45:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nic264" aria-label="Profile: Nic264">@<bdi>Nic264</bdi></a> Ah Cool I take a look <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=bc7965752a7" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /><br />
One thing, I messed up the lxc cmd, it should be lxc-info -n android</p>
<p dir="auto">BR Florian</p>
]]></description><link>https://forums.ubports.com/post/877</link><guid isPermaLink="true">https://forums.ubports.com/post/877</guid><dc:creator><![CDATA[flohack]]></dc:creator><pubDate>Fri, 14 Apr 2017 19:45:07 GMT</pubDate></item><item><title><![CDATA[Reply to Problem porting to Moto E 2015 4G (surnia) on Fri, 14 Apr 2017 19:42:52 GMT]]></title><description><![CDATA[<p dir="auto">Hi, I'm back</p>
<p dir="auto">Here is my <a href="http://paste.ubuntu.com/24382130/" target="_blank" rel="noopener noreferrer nofollow ugc">logcat</a>, during <a href="http://paste.ubuntu.com/24382114/" target="_blank" rel="noopener noreferrer nofollow ugc">test_egl or test_gles</a> and <a href="http://paste.ubuntu.com/24382101/" target="_blank" rel="noopener noreferrer nofollow ugc">test_hwcomposer</a>.<br />
Here is my complete <a href="http://paste.ubuntu.com/24382170/" target="_blank" rel="noopener noreferrer nofollow ugc">dmesg</a> (I didn't know how to dump it to a file so I added <code>log_buf_len=4M</code> to my cmdline).<br />
And <code>lxc-monitor -n android</code> does nothing (until I Ctrl+C).<br />
<code>lxc-console -n android</code> tells me I'm "Connected to tty 1" and how to exit but nothing else (until I exit).</p>
<p dir="auto">I also tried to access the fb devices directly (they both do exist, why two of them?):</p>
<pre><code>root@ubuntu-phablet:/# cat /dev/fb0
cat: /dev/fb0: No such device
root@ubuntu-phablet:/# cat /dev/fb1
cat: /dev/fb1: No such device
</code></pre>
<p dir="auto">First one does nothing.<br />
Second one makes my screen flicker and appends <a href="http://paste.ubuntu.com/24382273/" target="_blank" rel="noopener noreferrer nofollow ugc">some lines</a> to my dmesg.</p>
<p dir="auto">And another strange thing: <code>/sys/class/graphics/fb1/modes</code> reads <code>U:1280x720p-14</code> while my screen is 960x540… (fb0/modes is coherent)</p>
<p dir="auto">I hope this makes sense to you…</p>
]]></description><link>https://forums.ubports.com/post/876</link><guid isPermaLink="true">https://forums.ubports.com/post/876</guid><dc:creator><![CDATA[Nic264]]></dc:creator><pubDate>Fri, 14 Apr 2017 19:42:52 GMT</pubDate></item><item><title><![CDATA[Reply to Problem porting to Moto E 2015 4G (surnia) on Thu, 13 Apr 2017 16:52:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nic264" aria-label="Profile: Nic264">@<bdi>Nic264</bdi></a> Hi!</p>
<p dir="auto">Ok that does not sound good. Lets see the following:</p>
<ul>
<li>dmesg output redirected to a file</li>
<li>/system/bin/logcat - what does it show?</li>
<li>lcx-monitor -n android</li>
</ul>
<p dir="auto">BR Florian</p>
]]></description><link>https://forums.ubports.com/post/853</link><guid isPermaLink="true">https://forums.ubports.com/post/853</guid><dc:creator><![CDATA[flohack]]></dc:creator><pubDate>Thu, 13 Apr 2017 16:52:50 GMT</pubDate></item><item><title><![CDATA[Reply to Problem porting to Moto E 2015 4G (surnia) on Thu, 13 Apr 2017 14:37:28 GMT]]></title><description><![CDATA[<p dir="auto">I don't see anything related to Unity in top, <a href="http://paste.ubuntu.com/24373919/" target="_blank" rel="noopener noreferrer nofollow ugc">here is my output</a>.</p>
<p dir="auto">The tests are there too, they all crash… <a href="http://paste.ubuntu.com/24374311/" target="_blank" rel="noopener noreferrer nofollow ugc">test_egl</a> and <a href="http://paste.ubuntu.com/24374326/" target="_blank" rel="noopener noreferrer nofollow ugc">test_glesv2</a> complain that they <code>couldn't open framebuffer HAL</code>, <a href="http://paste.ubuntu.com/24374334/" target="_blank" rel="noopener noreferrer nofollow ugc">test_hwcomposer</a> makes my screen go blank.<br />
I can set my screen brightness back up through <code>/sys/class/leds/wled:backlight/brightness</code> and <code>EGL_PLATFORM=hwcomposer test_hwcomposer</code> makes my screen flicker and my dmesg go mad with this repeated <strong>a lot</strong>:</p>
<pre><code>[  417.696026] mdss_mdp_get_img: error on ion_import_fd
[  417.696052] mdss_mdp_data_get: failed to get buf p=0 flags=0
[  417.696068] get_user_node: error getting buffer info
[  417.696092] mdss_mdp_wb_queue: memory not registered
[  417.696896] mdss_mdp_wb_kickoff: unable to get writeback buf ctl=1
[  417.698026] mdss_wb_check_params: Invalid resolutions
[  417.698633] mdss_mdp_overlay_req_check: invalid vertical destination: y=0, h=960
</code></pre>
<p dir="auto">I don't know what to do… Try another libhybris maybe? But I thought the libhybris problem was caused by Android 6.</p>
]]></description><link>https://forums.ubports.com/post/851</link><guid isPermaLink="true">https://forums.ubports.com/post/851</guid><dc:creator><![CDATA[Nic264]]></dc:creator><pubDate>Thu, 13 Apr 2017 14:37:28 GMT</pubDate></item><item><title><![CDATA[Reply to Problem porting to Moto E 2015 4G (surnia) on Thu, 13 Apr 2017 07:32:27 GMT]]></title><description><![CDATA[<p dir="auto">Hi,<br />
you seem to have the same trouble like most of the people when porting: The libhybris is not calling in the right way to the GPU layer. So basically you might have a working system, but without GUI. Can you check with top command if your unity process is constantly respawning? And post your output from top here, so that we can see how far it has booted.</p>
<p dir="auto">Try to execute service stop lightdm. Then you basically have a phone without GUI, no fun. You will need to install/execute libhybris tests, to see if there are errors. Like test_egl, test_glesv2, test_hwcomposer</p>
<p dir="auto">BR</p>
]]></description><link>https://forums.ubports.com/post/840</link><guid isPermaLink="true">https://forums.ubports.com/post/840</guid><dc:creator><![CDATA[flohack]]></dc:creator><pubDate>Thu, 13 Apr 2017 07:32:27 GMT</pubDate></item></channel></rss>