yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Compact Android Development] munjeni:
What is need for building Ubuntu touch? You need:

1. Ubuntu machive, I sugesting Utopic 14.04 or 14.10

2. you need gcc 4.8 since you will get error at start of compilation, so install gcc 4.8 first:

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.8

3. update the rest:

sudo apt-get install git gnupg flex bison gperf build-essential \
zip bzr curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib mingw32 tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386 schedtool g++-4.8-multilib

4. sudo add-apt-repository ppa:ubuntu-sdk-team/ppa && apt-get update

5. sudo apt-get install ubuntu-device-flash

6. sudo apt-get install phablet-tools

7. download main repository:

mkdir -p /path/to/phablet; cd /path/to/phablet
repo init -u https://code-review.phablet.ubuntu.com/p/aosp/platform/manifest.git -b phablet-4.4.2_r1
repo sync -j 8

after this go to devices/lge/mako and look what need to be implemented or removed

8. since our device never had ubuntu touch port we probably can use things from nexus 4 (mako) which is very similar to our phone

9. modify mako source and add/remove all things needed for our device (of corse using and comparing working device tree source code from AOSP for our phone)

10. build

I tried but only tried, nothing more, to build mako and it was sucesfully built! I am lazy to start doing modification for z1c but hope somebody do this and make things initialy ported and booted, after that I will try to get more, I am lazy by now sorry :D
[Xperia Z1 Compact Android Development] Casserole:
Isn't it easier to use nexus 5 (hammerhead) sources? It has same CPU and GPU.
[Xperia Z1 Compact Android Development] munjeni:
Probably yes, but not sure about screen resolution. If we use mako Ubuntu touch prebuilt, it have the same screen resolution. I don't know realy what is a best choice :(
[Xperia Z1 Compact Android Development] Casserole:
Nope. Z1c has 720x1280 rersolution and nexus 4 has 768x1280.
[Xperia Z1 Compact Android Development] Toz1k:
Are there any chances for us to get an Ubuntu Touch build with working cellular-Parts?
[Xperia Z1 Compact Android Development] munjeni:
In short, if you expect that from me than no since I have no free time and I am lazy to start working on device tree based on mako, if you realy want ubuntu touch you must do an initial port and I will continue on your initial port, by now I don't see interesents for ubuntu touch here. Maybe I am wrong but I think here nobody is interesting for ubuntu?
[Xperia Z1 Compact Android Development] PinG91:
0090

this thread already have 900 views. I think there's interest in ubuntu touch, but the real thing is that aren't much developers in this community except for u and OmarEinea as i can tell. i really like ur work and i'm very grateful for it, so i hope that u can keep contributing to this community. :good: :highfive: (i'm not asking for anything)

Greetings from Chile.
[Xperia Z1 Compact Android Development] munjeni:
Thats realy sad. I lost my will on everything on this device and I am now totaly lazy for everything :) probably I will buy ubuntu phone like old nexus 4 :p Not only z1c, booth z2 and z3 line have low development and team development activity, stil have no idea why its happening. Today I have played with kernel, wanted to enable framebufer console, enabled them and was not suprised, it was not working. Googled and found that there is nothing about mdss_fb device related to sucesfully enabled framebufer console, seems mdss devices have no luck getting them working. So my idea for having native ubuntu on our device disapointed me since I don't know how to debug initial port when it won't boot. Having working framebufer console and realtime dmesg on screen will be of main help in making initial port, without them I no want to waste my time, so if anybody realy want to contribute and help than I am here and waiting
[Xperia Z1 Compact Android Development] munjeni:
Definitely something strange happening on fb0, I can blank them but can not display anything on screen by writing to fb0, seems an wakelock happening here?
[Xperia Z1 Compact Android Development] munjeni:
Testing "cat /dev/urandom > /dev/graphics/fb0" on android not working, but in recovery mode its working sometimes :eek:
[Xperia Z1 Compact Android Development] Rekoil:
Why are you writing random to the framebuffer? Lol.
[Xperia Z1 Compact Android Development] munjeni:
I am using urandom, not random, just for seeing random data on screen, its working now and I want to let you know guys that I have done initial port built from source code! ;)

Screenshoots:
[Xperia Z1 Compact Android Development] Rekoil:
Whoah, good job mate! Is it running smoothly? Did you get freedreno working?
[Xperia Z1 Compact Android Development] munjeni:
Its working ok but I need to create good udev rules since nothing is working by now, no audio, no camera, no network, no wifi, nothing, just got it booted and got first screen :) Freedreno I not tried since I am on ubuntu touch right now, but I will try things on native ubuntu when I get more free time, just learning now :)
[Xperia Z1 Compact Android Development] Rekoil:
Adreno blobs are probably more capable anyway.
[Xperia Z1 Compact Android Development] AllAboutTech:
hi,

sry for asking, but i downloaded the for_boot.img.zip and now i just flash it normally from recovery.

did i understood correctly?

thank you in advance.
[Xperia Z1 Compact Android Development] Szczepancio:
Good job man, waiting for first build's for z1c :) I want to use it as second/third OS, even as main if it will be stable and good enough.
[Xperia Z1 Compact Android Development] munjeni:
stat -c '%F ACTION=="add", KERNEL=="%n", OWNER="%U", GROUP="%G", MODE="0%a"' /dev/* | grep "character" | cut -d' ' -f 4- | sed 's/\/dev\///g' >/data/local/tmp/stat.log

for TT in `stat -c "%F %n" /dev/* | grep "directory" | cut -d' ' -f 2-`; do stat -c '%F ACTION=="add", KERNEL=="%n", OWNER="%U", GROUP="%G", MODE="0%a"' $TT/* | grep "character" | cut -d' ' -f 4- | sed 's/\/dev\///g'; done >>/data/local/tmp/stat.log

Than "adb pull /data/local/tmp/stat.log" and rename them to 70-amami.rules which looking like this -> http://pastebin.com/1CSZpkcE

With this I can create complete udev rules easily from an working android, but I don't know how to add sysfs devices to the udev! Do you have idea how it can be added? For example, how we can add /sys/class/input/blabla to the udev rules??
[Xperia Z1 Compact Android Development] haky 86:
I think in your ramdisk .rc file, btw, did you build a .deb kernel for sony or not necessary?
[Xperia Z1 Compact Android Development] munjeni:
Yes I have post kernel deb package and kernel headers
[Xperia Z1 Compact Android Development] munjeni:
Guys, I will not play with this anymore, try to fix it byself, I have done some things without luck getting wifi to work on boot, but executing pre hw config script , hwconfig script, wifi script...etc all these scripts is inside /system/etc folder (I don't understand why it is not executed trought ramdisk but I have included them in ramdisk, but without executing these script you can not get wifi working! When you execute them than you need command "modprobe wlan" to get wifi working which start working after all these things! If you want to play with test build you can download from here -> https://mega.co.nz/#!Bd5CXITZ!TUYIpPbqk7YqWnNO5vSJ-GNnAfQeYRwjahJF9Cg0w-0

When you get wifi working you can use putty to connect to the sshd on your device, just do start ssh trought adb shell "service ssh start", than change password with command "passwd", than you can connect and play trought putty...

Installing ubuntu from our zip package will wipe everything on your device including complete internal storage, so make sure save your private data to the an safe place before you gona install this! Unlocked bootloader is required! Nothing is working on our port, so not working: bluetooth, audio, video, gps, mobile, aplications...etc, so nothing :(, but want to wish you GOOD luck fixing remaing bugs, it need a lot of work, happy hacking, bye! :)
[Xperia Z1 Compact Android Development] Casserole:
Can I install it via MultiROM?
[Xperia Z1 Compact Android Development] Keshukas:
U

Yes you can. I heave installed but only booting and stopped in the middle . I'll check when I come back to home in the multirom heave some init for ubuntu touch need to see what's up
[Xperia Z1 Compact Android Development] munjeni:
I don't know if you can boot it with multirom since ubuntu rootfs lives in userdata partition. I have used AOSP amami from googlesource as a base but I have noticed that ramdisk and the whole android have a lot of things missing, so is AOSP uncomplete for rhine/amami anybody know ???
[Xperia Z1 Compact Android Development] rakieta:
just tried in multirom, ---bootloop :silly:
[Xperia Z1 Compact Android Development] munjeni:
I am so close to get freedreno working on real ubuntu (nothing related to the ubuntu touch), still have some problems by now, mmap failed :) In dmesg I allso can see some errors like IOMMU FAILURE ...etc, if you have idea what might be need for get things working please let me know! :) Curent status:
[Xperia Z1 Compact Android Development] reellamer:
Nice work, I nearly gave up my hope on Ubuntu for Z1C!

Hope this will be finished, looking forward to it. ;)
[Xperia Z1 Compact Android Development] munjeni:
Stil waiting freexperia latest kernel port 3.10 working, curenly his kernel not boot since his kernel is in merging procedure hope we see them booting soon, than I will continue playing with freedreno since in 3.4.0 kernel its hard getting latest freedreno working, so I will need to port kgsl and dri from kernel 3.12 to the freexperia kernel 3.10, than probably it will work.
[Xperia Z1 Compact Android Development] Szczepancio:
Can I ask you what is needed in Z1C kernel config to enable framebuffer?

I want to run chrooted linux with access through framebuffer, not ssh/vnc/xserver or so, all under Android.

I want to use stock kernel source for compiling, I think there are needed few lines in config to modify...
[Xperia Z1 Compact Android Development] munjeni:
Needed thing is not in any of the configs in current kernel, you need to port a lot of things for this, I am lazy and stopped on this since nobody interestig in this
[Xperia Z1 Compact Android Development] jdcrispe95:
oh man I'm excited for this! I'm downloading the v1 version now, I'll see if there's anything I can do. massive thank you for working on this dude. Hopefully a developer will come along and give this project a boost in a right direction!
[Xperia Z1 Compact Android Development] Szczepancio:
I'm interested in it, but I think my help can be only little - I'm lazy and I am not developer, just something beetwen beginner and script kiddie.
[Xperia Z1 Compact Android Development] munjeni:
Main things lives in kernel, we need to port kgsl from ubuntu kernel 3.10 into our new kernel 3.10 (@jerpelea kernel), but I am realy lazy for that :o Its possible of course on 3.10 kernel from jerpelea but it need some more time, skills in c and some luck ;) I will do it but not promising when it will be or not will be, just need some more free time and clean brain :p I will be realy happy having true ubuntu desktop on my phone. And allso we are so lucky since we have freedreno which support our msm8974, we just need to port some kernel features to get things compatible with freedreno (not easy but possible) !
[Xperia Z1 Compact Android Development] DrGit:
Try this

The following may or may not be sufficient to get Freedreno working. Compile tested only (applies over https://github.com/sonyxperiadev/kernel) - I haven't been able to get a 3.10 kernel to boot on my Z Ultra GPE, but that's likely because I refuse to switch from CyanogenMod to an AOSP-based ROM. Ramdisk as well as system changes are required to use the newer kernel on CyanogenMod, and I'm too lazy to port them from Sony's AOSP tree. Since it looks like you're bypassing all that to boot directly into Ubuntu, none of that should matter.

Here's the link to a patch I threw together: http://pastebin.com/raw.php?i=wbQYdE2S.

I repeat, this has NOT been tested, other than "it compiles", but it should get you started.

After applying this patch, you should be able to enable the following kernel config options:

CONFIG_DEVTMPFS=y

CONFIG_VT=y

CONFIG_DRM=y

CONFIG_MSM_KGSL_DRM=y

Good luck!
[Xperia Z1 Compact Android Development] munjeni:
Yes, freexperia kernel can not boot (it booted from a specific git commit last time when I tried but I forgot which one commit), probably need to contact jerpelea. I'm lazy too getting back to this :o In anyway thanks, hope somebody get interested for this
[Xperia Z1 Compact Android Development] munjeni:
Probably this 6 patches can be enought for working freedreno? http://www.spinics.net/lists/linux-arm-msm/msg06695.html
[Xperia Z1 Compact Android Development] munjeni:
Sorry, boot.img privided in ubuntu_z1c_v1.zip failed to boot ubuntu touch, instead of boot.img from these zip use this one http://xdaforums.com/showpost.php?p=65378591&postcount=48 it will bootup ubuntu touch! Enjoy!
[Xperia Z1 Compact Android Development] Casserole:
Are you kidding? I've downloaded the file and there was nothing than the crack for Windows 7.
[Xperia Z1 Compact Android Development] templeka:
[MENTION=4120742]munjeni[/MENTION] might want to rectify that [emoji5]
[Xperia Z1 Compact Android Development] munjeni:
WTH! Its not archive uploaded by me, somebody hacked these site or probably somebody uploaded file with the same name (if you look more into url you can notice that there is no hashed urls for example something like http://www.filedropper.com/boot_545dfdhgs34563dgdm instead it is so simple like http://www.filedropper.com/boot so probably uploading another file to these site for example another boot.zip gives the same download link like http://www.filedropper.com/boot) which probably is nothing than an site bug, so these free file host is B.S. don't use it for sharing anything! I am sorry if it was a virus, it is not file which I have uploaded, somebody hacked my upload!

Try this one from attachment
[Xperia Z1 Compact Android Development] lapor:
So this port of Ubuntu really works on Z1 compact? I'm really interested in flashing my phone with Ubuntu.
[Xperia Z1 Compact Android Development] CmDaRkShAdOw:
I received about Ubuntu touch for Z1(honami) so it's will be ported to amami

Wysłane z mojego D5503 przy użyciu Tapatalka
[Xperia Z1 Compact Android Development] levone1:
I couldn't get zip to flash. I got errors in recovery - 'can't open /data/... Not a directory'. About 25 errors. Any ideas?
[Xperia Z1 Compact Android Development] lovalim:
hi munjeni, today i read this thread completely. thank u so very much. i m so so so very excited to see ubuntu on my xperia z1 compact. please carry on the good work and i would request other dev. to help him achieving his goal. good luck. from were i can download the image and how can i install it on my device. i will love to be a tester for you

thank you
[Xperia Z1 Compact Android Development] lovalim:
https://devices.ubports.com/#/FP2
[Xperia Z1 Compact Android Development] lovalim:
Great News

Sony Xperia Z1, OnePlus One Can Now Run Ubuntu Phone

http://www.omgubuntu.co.uk/2016/02/ubuntu-phone-sony-xperia-oneplus-one
[Xperia Z1 Compact Android Development] levone1:
Maybe that will open the door for us...
[Xperia Z1 Compact Android Development] munjeni:
Its great news but not usefull for desktop ubuntu since desktop ubuntu need freedreno! Touch ubuntu is diferent and working on android container, we can't use it for real ubuntu.
[Xperia Z1 Compact Android Development] lovalim:
its ubuntu touch. check this link

https://wiki.ubuntu.com/Touch/Devices/minato

---------- Post added at 08:09 PM ---------- Previous post was at 08:08 PM ----------

http://www.omgubuntu.co.uk/2016/02/ubuntu-phone-sony-xperia-oneplus-one

---------- Post added at 08:09 PM ---------- Previous post was at 08:09 PM ----------

http://www.omgubuntu.co.uk/2016/02/ubuntu-phone-sony-xperia-oneplus-one
[Xperia Z1 Compact Android Development] munjeni:
Compiled one allready for amami, its totaly new version in comparation with my first build from this thread. When I get more free time I will upload! But sadly many things not working on these early ports :( I am more interesting for real Ubuntu than touch Ubuntu, curenly I can get only without desktop :( Anyway latest touch ports is realy great!
[Xperia Z1 Compact Android Development] levone1:
Looking forward to it...
[Xperia Z1 Compact Android Development] munjeni:
Ubuntu Touch for Xperia Z1 Compact (Amami)

Here is my self compiled Ubuntu Touch following Ubuntu wiki, ported to amami. If fastboot fail to install big userdata.img than probably you may need to download latest fastboot which have working -S parameter! Find it byself. I'm using fastboot on Linux machine and these parameter is working, not tried on Windows machine so can't tell which one is working on Windows.

How to install:

1. unlock bootloader

2. extract 7z archive https://mega.nz/#!YEpCHLoS!tRxZpJHUSKL_cZz9wisGZvWl7igYAlYJRjwbcT_s868

3. fastboot -S 256M flash boot boot.img

4. fastboot -S 256M flash userdata userdata.img

5. fastboot reboot

6. enjoy :laugh:

Status of the port https://wiki.ubuntu.com/Touch/Devices/minato
[Xperia Z1 Compact Android Development] levone1:
I'll test with windows tonight. Flashing wipes all data, including storage right?
[Xperia Z1 Compact Android Development] munjeni:
I am sure yes!
[Xperia Z1 Compact Android Development] levone1:
Fastboot working on windows with the exact commands you posted. Rom boots and looks great - however, I can't get a browser to work. Built in browser closes as soon as it opens. I installed Duck Duck Go and Liri from app store. DDG same as built in, and Liri opens, but doesn't do anything. WiFi and mobile data show connected. Other apps open and run fine. Any ideas?

Thanks
[Xperia Z1 Compact Android Development] munjeni:
Realy have no idea and realy no want to waste time with Ubuntu touch since it is not open source, hope Ubuntu mauntainers get something for us in future. I am more interested in freedreno for Ubuntu desktop edition on z1c, but since [MENTION=359497]jerpelea[/MENTION] aosp kernel don't boot on my phone (apsolutly have no idea why, jerpelea also have no idea why), I am disappointed with any development here. As you can see I am very low active on xda since all my ideas waiting working kernel, without that I can do nothing, have another hobby by now. If I am not wrong I have read something about Ubuntu desktop in near future for z1 and htc one?
[Xperia Z1 Compact Android Development] levone1:
OK. I'll be looking forward to that. Meanwhile, I like the Ubuntu touch you built. I don't know much, but do you think there might be anything I could try, (for working browser)? Its strange BC obviously connection is good if installation from app store happens. Do you think it might have something to do with the Unity issue explained in 'known issues' on project status page?
[Xperia Z1 Compact Android Development] munjeni:
Didn't tested anything, just installed, tried and gone back to android :) Don't have knownledge about unity, what is unity?
[Xperia Z1 Compact Android Development] levone1:
Dont really know for sure either - something to do with Linux os i guess. This is from the 'project status' page linked in your post:

Known Issues

When a cellular data connection is established, unity dies. As cellular data is on by default, if you want to try SMS, you need to insert a SIM, start the phone (you will probably see unity crashing eventually), and do from the command line:

$ adb shell /usr/share/ofono/scripts/disable-gprs

After that, you can reboot the phone and will get a working radio.
[Xperia Z1 Compact Android Development] SpiritCroc:
Unity is the default Ubuntu user interface/desktop environment, similar to KDE or gnome on other Linux distributions
[Xperia Z1 Compact Android Development] munjeni:
I found that Ubuntu is working on android 5.1.1 aosp container, probably many things like audio, video...etc is missing on these aosp 5.1.1 too? Or probably maintainers forgot to implement some things into container? And that's probably reason why it not working on Ubuntu?! Realy have no idea about status of the AOSP 5.1.1 for amami. I am lazy to experiment with that since maintainers of the UT promising UT for z1 and htc one, instead I will wait, hope we get full working port for z1 than simple backport it to z1c. I am not optimistic but only hope...
[Xperia Z1 Compact Android Development] Casserole:
AFAIK, in Sony's AOSP everything works except cellular (calls, SMS, mobile data) and camera.
[Xperia Z1 Compact Android Development] lovalim:
Good to see activity. hope will soon will get working ubuntu for z1c. i will be try the img soon on friday
[Xperia Z1 Compact Android Development] munjeni:
Did you mean aosp 5.1.1 or you mean marchmallow?? If you mean aosp 5.1.1 that for sure UT have no working things related to cellular things since UT working on its aosp 5.1.1 container which have these things not working. To get things working we must have first working aosp 5.1.1 source code and later port it to the Ubuntu branch!
[Xperia Z1 Compact Android Development] Casserole:
I mean every AOSP by Sony, even 4.4 and 5.0.
[Xperia Z1 Compact Android Development] levone1:
Dev in Ubuntu touch forum said to check logs in ~/cache/upstart for errors to figure out the issue with browser. There's definitely some errors, but have no idea what they mean. Anyone else?
[Xperia Z1 Compact Android Development] munjeni:
Sorry I have no idea but I can see this thing:

loadExtendedAttributes: menu item does not contain 'x-canonical-secondary-action'

have no idea what it mean.

And allso for this:

"file:///usr/share/webbrowser-app/webbrowser/webbrowser-app.qml:41 Type Browser unavailable
[Xperia Z1 Compact Android Development] CmDaRkShAdOw:
But nothing about z1c.
[Xperia Z1 Compact Android Development] munjeni:
I ended with black screen with latest ubuntu which cause disapoint at start. Allso can't get any recovery to boot with that jerpelea kernel 3.10 so another disapoint happening with it.
[Xperia Z1 Compact Android Development] levone1:
Hope you don't give up. I would love a stable Ubuntu build. Your last one was so close - but I can't figure out the problem with browser.
[Xperia Z1 Compact Android Development] CmDaRkShAdOw:
This is very nice os, and your build is also nice, and we hope you don't give up :/
[Xperia Z1 Compact Android Development] munjeni:
Next 2 years I have no plan to buy new phone, just when I go back to android hobby I will do something, bussy now and have no will for android stufs
[Xperia Z1 Compact Android Development] alex aus bz:
Do somebody knows how to update ubuntu touch on z1 compact?OTA fail...

my system:

OS-Build-Nummer : r382

Ubuntu-Abbild-Teil : 20160305

Ubuntu-Build-Beschreibung: Ubuntu 15.04 armhf (20160305-020304)

Geräte-Abbild-Teil :20160304.2

Geräte Build Beschreibung :

aosp_d5503-userdebug 5.1.1 LYZ28E

eng.root.20160307.193540 test keys

Anpassung-Abbild-Teil: 20160305

Sorry for my bad english

#Umi Emax Mini convertet TCL MG3 CM12.1

#Ssg Galaxy S4 i9505
[LG Optimus G Pro] Proz00:
http://www.phonearena.com/news/LG-updates-the-Optimus-G-Pro-to-Android-5.0-Lollipop-in-Korea_id66500

http://lg-phone-firmware.com/index.php?id_mod=25

might be this

95 KTF/KTF(KOREA)	V30d	LGF240K	1.2 GiB
[LG Optimus G Pro] t3chwizard:
Does that mean we could get a working quickremote apk and related files from this stock ROM from LG that could possibly work on the E980?
[LG Optimus G Pro] Proz00:
on lolipop with the right framework

its should work