yashsingh1/xdaforums huggingface dataset:
[Galaxy Tab 2 General] daavvis:
OK guys, sorry it took me all day, I had internet issues....

This will install and boot on a 3113, and should install on a 3110 as well

It boots, the power buttons turns the screen on and off, and will shut the tab off, but thatys all it does...

Its bloated, and needs a cleanup, I just thought I'd get it out there

All I did was combine the two zips, and modify the build prop and updater script...

I hope this helps... I'll keep working on it as well

https://docs.google.com/file/d/0B5DQomPUoVs_aWZaSkphSVVHTFk/edit

---------- Post added at 05:44 PM ---------- Previous post was at 05:24 PM ----------

Dear op:

Links are wrong, they say there is an error in drop box and your files are ok
[Galaxy Tab 2 General] fuzzylcv:
Installs ok but...

First of all thanks for your work man... Unfortunately, even if it does install ok the screen remains black :'( device shows on adb though, if you tell me how and what I'll perform some tests via adb if possible...

Edit:1

I was able to chroot into the device that seems to be active :) however it doesn't seem to be able to connect to the network using wifi :cry: ...do you have any hints on how to fix the display?
[Galaxy Tab 2 General] blacknikname:
congrats

not bad at all, this mod is made from stock rom 4.1.2 and skils
[Galaxy Tab 2 General] daavvis:
I'm not sure what you mean...

My steps, starting from cm10.1

Reboot into recovery

Backup everything

Data wipe

Dv cache wipe

Format system

Install Ubuntu generic zip from the op

Install my zip

Screen boots black for a min or two then the pic I posted pops up

The only adb command that I can think of to pull and info is a logcat..... I'm not gonna be able to dig into this till Tm, this was a straight up hodge podge, but I swear it works for me every time, except it does nothing after the screenshot except turn the screen on and off...

What device are you on? 3113 or 3110?
[Galaxy Tab 2 General] gingerbreadman222:
Okay idk anymore.

Ive dont the steps exactly how youve stated above and i still cant even install. ive tryed Davis version and V6 and all i get is the asset error getprop

why is this. why can some people install and other cant?

im on CM. 10.1 ver P3110 (even though i have p3113 there was no version for it, said to use p3110)

i have wiped everything except sd card i need to be able to boot back to cm.

ive tryed intalling generic first, same result, tryed installing device specific part, same result

why can others install and boot and i cant even install?

someone explain, please
[Galaxy Tab 2 General] ketut.kumajaya:
Wrong in CM 10.1 but working correctly in Ubuntu Touch camera app :good:

Maybe I'll upload the kernel with orientation and touchscreen fix (hack?) after back from the hospital. My little son was ill :(

Or you can do it by yourself:

1. Add a kernel config definition to disable pivot code in mms136.c

2. Change accelerometer type from 6 to 7 in kernel config

Don't forget to give me a proper credit if my above solution help you ;) Read touchscreen and orientation code line by line to understand how it works, add some code to check some default value, recompile, reflash etc, is not an easy task :D
[Galaxy Tab 2 General] fuzzylcv:
[/QUOTE]

mine remains black till reboot :( but i didn't format system partition :eek:, the device is active and running in some way 'cause I'm able to chroot into it I'll try to reinstall after performing a format of the /system partition and see what happens :D

Edit1:

same result after the reinstall with formatting /system :/

I'm on 3110 8gb

Edit 2:

logcat file
[Galaxy Tab 2 General] saintextreme97:
can i get a dummys guide

ok so it seems like no matter what i do i get error 7

ive read through about 70% of this form and still cant figure it out

its confuziling me and i dont really like it

i have a modoret level on development

but im still having issues is there suff i need to do or what .-.
[Galaxy Tab 2 General] Menelkir:
I think this one is a good ticket to be created in ubuntu. :)

Btw, I didn't understand the fix, I though was something in the cyanogenmod_p3100_defconfig.
[Galaxy Tab 2 General] ketut.kumajaya:
Touchscreen patch attached. Apply it and then you need to edit cyanogenmod_p3100_defconfig to change/add:

CONFIG_INPUT_YAS_ACCELEROMETER_POSITION=7

TOUCHSCREEN_MELFAS_MMS136_DISABLE_PIVOT=y
[Galaxy Tab 2 General] daavvis:
Hey could you give a detailed explanation step by step for everyone including exactly which files your using? This thread is getting jumbled, and you seem to be the closest....
[Galaxy Tab 2 General] Menelkir:
I'll build a new zip with your patch, thanks.

It's kind of a regular patch system, if you don't know how to use it, just wait for me or someone else compile. If you still wants to learn, you must first learn about compile things, editing files in kernel source, and then learn how diff works.
[Galaxy Tab 2 General] daavvis:
I understand compiling and all that... I'm wondering which files he used as a base for his fixes...

Either way, I fixed v6 updater script and I'm uploading it to my g drive if u wanna mirror it :)

Edit

OP here is a link to the updater script, I just fixed some permissions :)

http://db.tt/QHjo7ww1
[Galaxy Tab 2 General] Menelkir:
Did you see the contents of the patch?
[Galaxy Tab 2 General] daavvis:
No I havnt had time yet I just tested installing it, ran into a status 7 at setting permissions, fixed them, tried to install it and it worked...

Later today I'll dig in and see what I can fix, I honestly just didn't know who was working with who on this thread but I got it now :)
[Galaxy Tab 2 General] Menelkir:
In meantime, here's the last zip with ketut's fixes, I didn't test it (I'll do it in the next few hours).

Download

---------- Post added at 12:20 PM ---------- Previous post was at 12:20 PM ----------

Diff is a txt, if you open it with a regular editor, you'll understand better.
[Galaxy Tab 2 General] daavvis:
Right on I'll dig in in a bit

On a side note I can confirm v6 from the op, even with the updater script fixed, will not boot past galaxy screen, I'll try the one on the above post in a few

---------- Post added at 11:04 AM ---------- Previous post was at 10:34 AM ----------

ignore this I mixed up zips...
[Galaxy Tab 2 General] Menelkir:
Yeah I see this right now. The touchscreen is working normal now, but the resolution is still messed up. I'll try to figure out and report back in some minutes.
[Galaxy Tab 2 General] ketut.kumajaya:
We can follow Starcarr's guide to configure screen resolution and WiFi. For me, GRID_UNIT_PX=8 look better than 10.
[Galaxy Tab 2 General] Menelkir:
Modifying GRID_UNIT_PX and comenting ro.sfw.hwrotation looks exactly as i want for ubuntu in my p3100 (the same way as ubuntu touch for nexus10), unfortunatelly the touch doesn't work.

Without commenting ro.sfw.hwrotation, the screen is still a bit weird, but working properly as you said.
[Galaxy Tab 2 General] ketut.kumajaya:
By commenting ro.sf.hwrotation, Ubuntu will start in landscape mode and kernel with patched touchscreen driver will fix the touchscreen issue :confused:
[Galaxy Tab 2 General] Menelkir:
Btw, I've added this to the ubuntu-session, after the echo "Device=$device" and after the first part of the if (Manta one):

elif [ "$device" == "Espresso" ]; then
services="/etc/tablet-services"
grep -q GRID_UNIT_PX /home/phablet/.bashrc
[ $? -ne 0 ] && echo "export GRID_UNIT_PX=8" >> /home/phablet/.bashrc
export GRID_UNIT_PX=8
grep -q QTWEBKIT_DPR /home/phablet/.bashrc
[ $? -ne 0 ] && echo "export QTWEBKIT_DPR=1.5" >> /home/phablet/.bashrc
export QTWEBKIT_DPR=1.5
export FORM_FACTOR="tablet"

But I can't login cause the touchscreen is acting weird again. :eek:
[Galaxy Tab 2 General] daavvis:
guys i tried your latest zip and had the same problem as the picture i posted a few pages back... if i did something wrong, correct me...

i modified the updater sctipt to install on my 3113

booted into recovery

wiped data, dv cache, formated system

installed ubuntu generic

installed your zip

booted but still looks like first picture

---------- Post added at 01:17 PM ---------- Previous post was at 12:47 PM ----------

op

v7 once again has updater script errors

once fixed again it does not boot past galaxy screen

why is there no changelog, and why are you uploading zips that you have not tested? they should at least flash.....
[Galaxy Tab 2 General] Menelkir:
That's something I was thinking about it: Creating a thread for p3100, since my builds are from the official ubuntu git and not based on zip from OP. :P

Btw, how about an irc channel?
[Galaxy Tab 2 General] daavvis:
How big is the sync from the official git? Is it about the same as for cm? I'm really tempted to build my own for the 3113....
[Galaxy Tab 2 General] Menelkir:
menelkir@RataSum:~/Development/p3100$ du -sh

17G	.

The size for p3113 will be almost the same.
[Galaxy Tab 2 General] daavvis:
Damn that'll take me a week to sync at the internet speed we got here... I guess scratch that lol
[Galaxy Tab 2 General] blacknikname:
v7 once again has updater script errors

once fixed again it does not boot past galaxy screen

SCRIP was changed with worked reported #82 , by the way - reported by YOU
[Galaxy Tab 2 General] daavvis:
I'm sorry I'll check my upload

---------- Post added at 02:11 PM ---------- Previous post was at 02:06 PM ----------

I have to apologise I uploaded the wrong one, I had like5 I had been messing with... Here is the correct one...

http://db.tt/PtN9z8O4

I have to say tho a changelog would be cool cause then I would have known immediately it was my fault it wouldn't flash... Again sorry for tearing you a new buttocks hole I will tear myself one immediately in reparation ;)
[Galaxy Tab 2 General] blacknikname:
I have to say tho a changelog would be cool cause then I would have known immediately it was my fault it wouldn't flash... Again sorry for tearing you a new buttocks hole I will tear myself one immediately in reparation ;)

You could certainly try to do an install from stock ROM
[Galaxy Tab 2 General] daavvis:
You could certainly try to do an install from stock ROM[/QUOTE]

Does it work from a stock ROM?
[Galaxy Tab 2 General] blacknikname:
Does it work from a stock ROM?

why not, stock ROM + busybox
[Galaxy Tab 2 General] daavvis:
why not, stock ROM + busybox[/QUOTE]

I'm just asking cause if your deleting the system and Ubuntu is based on the cm10.1 platform I'm not sure how it could be an issue... I'm downloading a stock system, I'll flash it, install busy box, and give her a one time but I have to say I'm not convinced...

But like you said, why not :)
[Galaxy Tab 2 General] daavvis:
No good... Doesn't make a difference... I suspect your boot.IMG is culprit, but either way, stuck at the galaxy screen...
[Galaxy Tab 2 General] saintextreme97:
Well I'm downloading now as soon as it's done I'm flashing I think I understand it

I'm going to have some fun if this works
[Galaxy Tab 2 General] Duskye:
So I have a quick few questions here:

Am I able to go back into CWR after I install this? Do I Just do a full wipe of everything again before I reinstall another rom? (Like Going from this back to Cm 10.1).
[Galaxy Tab 2 General] shinobisoft:
Yes
[Galaxy Tab 2 General] ketut.kumajaya:
$ java -jar screenshot.jar -d screenshot.png

The screenshot app taken from http://www.roman10.net/a-program-for-taking-screenshot-for-android-device-from-command-line/
[Galaxy Tab 2 General] Menelkir:
Now I envy you
[Galaxy Tab 2 General] saintextreme97:
Well from what I see v7 failed
[Galaxy Tab 2 General] saintextreme97:
Explain your self
[Galaxy Tab 2 General] shinobisoft:
From the assert failed statement in your screen shot, if you are trying to install on a 3110, it won't work according to that updater-script. Also,

the following should be appended to the assert() for the P3113 ::

|| getprop("ro.build.product") == "expressowifi" || getprop("ro.product.device") == "expressowifi"

Edit:

Type in the code. Forgot a ")".
[Galaxy Tab 2 General] saintextreme97:
and how does one change this with out ubuntu desktop
[Galaxy Tab 2 General] shinobisoft:
Umm, it's in the zip you just tried to flash. You do realize this is a developers only thread, right? The updater-script is located in the device specific zip file in the META-INF/com/google/android folder. Use a zip editor like JZip that will allow you to view/edit then update files in a zip file. Line endings must be UNIX style "\n". After editing, update the zip with it and close the editor. Copy to sdcard and flash again.

Or, wait until some posts a bootable working version. ;)
[Galaxy Tab 2 General] saintextreme97:
Yes i do know that but i really want this also if u need a tester im up for it
[Galaxy Tab 2 General] saintextreme97:
Well im here what line do i change
[Galaxy Tab 2 General] ketut.kumajaya:
I envy you, I have no chance to build Android from source because my internet connection is bad.

Your compilation is working properly on my P3100 but I have made some modifications in system/build.prop, add system/etc/sound/espressowifi (for P311x compatibility), add system/lib/hw/power.espresso.so (for adapting overclocked kernel), add system/etc/init.d/01boot (overclock CPU @1.2GHz, GPU @384MHz by default), and change the kernel (using myself compilation overclock kernel). Also change updater-script to force it can be installed on all P31xx variants. Let Menelkir analyzed first before downloading: http://www.mediafire.com/?n0nb3yhq634akj0
[Galaxy Tab 2 General] shinobisoft:
Thanks ketut. It installs and boots just fine on the P3113. It seems a little slow to respond at first but it improves. Very good mock up. Ro bad we can't do anything with it yet.

EDIT:

And thanks to Menelkir too ;)
[Galaxy Tab 2 General] saintextreme97:
It works but something is off its like kts to big for the screen (pictures later)
[Galaxy Tab 2 General] ketut.kumajaya:
You can configure the resolution: http://xdaforums.com/showthread.php?t=2165390

For P31xx, GRID_UNIT_PX=8 look better.
[Galaxy Tab 2 General] saintextreme97:
Alright ill run it when i get home from class tomorrow
[Galaxy Tab 2 General] daavvis:
They are on 3100 using a different device spesific zip... The one for the 3113 is still borked....

Edit: missed a page
[Galaxy Tab 2 General] fuzzylcv:
This zip works for me

This zip works for me :D thanks to all for all the great work :)

Just one question, is there any fix for accelerometer sensor to pass from landscape to portrait mode yet?
[Galaxy Tab 2 General] Menelkir:
It's working perfect now. :D

This zip is the same of yours but with wifi and GRID_UNIT_PX fix. I can't test right now, but since is just a bunch of lines in update-script, it'll works.

If someone is testing and something goes wrong (I can't test right now), just use the ketut's one. I'll be back in some hours.

Download

Btw, for people that want to try in p3100, I suggest always getting the last nightly of quantal-preinstalled-phablet-armhf.zip in http://cdimage.ubuntu.com/ubuntu-touch-preview/daily-preinstalled/

Hey ketut, how about it if we put these build there? https://wiki.ubuntu.com/Touch/Devices
[Galaxy Tab 2 General] robimarko:
Can it be used on P3110 too?
[Galaxy Tab 2 General] Menelkir:
Nope
[Galaxy Tab 2 General] hokamp:
How long takes the first boot?

I just see the galaxy logo on my p3110...
[Galaxy Tab 2 General] ketut.kumajaya:
@Menelkir

It's good, I agree.

@all

I will redownload codeworkx's CyanogenMod kernel tomorrow (it's seem I have messed it up with some manual editing) and will prepare a good patch for Ubuntu. I would like to clarify a few things:

1. system/build.prop modification:

a. updated the fingerprint but I am sure this nothing to do to Ubuntu but this is good for CM for software compatibility

b. removed ro.sf.hwrotation=270 to prevent Ubuntu start in portrait mode and need a patched kernel to fix the touchscreen orientation

c. added debug.sf.nobootanimation=1 to prevent bootanimation covering Ubuntu interface

2. system/etc/sound/espressorf and system/etc/sound/espressowifi: still do not understand how this is detected, from the bootloader or build.prop

3. system/lib/hw/power.espresso.so: this file taken from Samsung JB 4.1.2 because CM power module always try to set the CPU clock to maximum if needed, always change scaling_max_freq value to maximum scaling_available_freq. This is not good for overclock kernel

4. Not sure my script in init.espresso.rc applied. When I check the CPU governor it's on demand, I set it to interactive in init script.

---------- Post added at 09:21 PM ---------- Previous post was at 09:19 PM ----------

logcat and dmesg will help.

---------- Post added at 09:22 PM ---------- Previous post was at 09:21 PM ----------

Why not?

---------- Post added at 09:25 PM ---------- Previous post was at 09:22 PM ----------

The accelerometer works but Ubuntu ignored it.
[Galaxy Tab 2 General] Droidlover123:
OK buddy waiting eagerly for your work.... And pls try to upload full flashable zip for p3100( which I think u are developing for)....than a lot.....

And pls also post full step by step instructions....pls and thanxxxxxx a ton for your work..
[Galaxy Tab 2 General] ketut.kumajaya:
Menelkir built it for us, thanks him! It is not ready for daily use yet, no need step by step instructions ;) May still take 6 months or more depending on how much resources are involved.
[Galaxy Tab 2 General] Droidlover123:
Thanx a lot friend for

Buiding this awesome thing for us....

And pls whoever is developing pls upload whole ROM pls...I wanna experience it once....doesn't matters if fit for daily use or not...if its booting I am on:D:D:D

And I still need instructions:p:p:p:p:p:p:p:D:thumbup:

And like galaxy tab 2 5110 devs u must upload this on official Ubuntu website....

:thumbup::thumbup::thumbup::beer::beer::beer:
[Galaxy Tab 2 General] shinobisoft:
You can use the files from this post to "experience" Ubuntu on your tablet. It installs just like any other ROM basically.

Boot in to recovery

Make backup

Wipe data/factory reset

Wipe cache ( should have been done by previous step )

Wipe Dalvik-Cache

Format /system

Install zip in post I mentioned.

Then install the Ubuntu specific zip. This will take 3 or 4 minutes.

Reboot.

Wait a minute or so and you'll see the Ubuntu desktop. Touchscreen is a little slow to respond at first, at least on my P3113. This ROM does absolutely nothing at the moment other that look like Ubuntu. You've been warned.
[Galaxy Tab 2 General] Menelkir:
Oops. This package is broken. I'll fix it.
[Galaxy Tab 2 General] Droidlover123:
Take your time.waiting.

And any news of mobile networks on p3100????
[Galaxy Tab 2 General] Menelkir:
Not yet, but I think this is the next step.

Btw, I was trolled by commas in my update-script :eek:

I forgot the commas while set permission in new ubuntu-session and userinit.sh, fixed.

The updated package is here.

Update: I think it's time to create a thread in dev section, there's more to do in this device. The radio isn't working and I don't know why. RILs seems to be ok, the RIL's log show that modem is ready but I'm unable to make any calls.

How about it?
[Galaxy Tab 2 General] saintextreme97:
Im downloading this now im in class so ill test this when its finished
[Galaxy Tab 2 General] Menelkir:
Using the internet of the class to download things

Oh wait, I did that a ton of times too.
[Galaxy Tab 2 General] saintextreme97:
I had finished a 5 page research paper the night before so I would have the class off
[Galaxy Tab 2 General] Droidlover123:
Yes agreed.

Go and make one ubuntu thread for 7" variants.

And will you post it on ubuntu official website????:
[Galaxy Tab 2 General] ketut.kumajaya:
Yes, open a new thread in dev section. I have a lot of screenshots :D
[Galaxy Tab 2 General] prince147:
I don't think it'd be correct, as it's the android dev section, and ubuntu is not so much android!
[Galaxy Tab 2 General] Droidlover123:
Why,whats the problem????....android dev section means development for android and which this is thread about....
[Galaxy Tab 2 General] ketut.kumajaya:
This is Ubuntu Touch, Ubuntu + Touch. This Ubuntu version running on top of Android. Reuse Android kernel, Android graphic subsystem (2D, 3D, camera), including hardware accelerated media, sensors, modem, etc. We can adapt quickly because it is built on top CyanogenMod 10.1 source code, thanks CM team and codeworkx for us. http://en.m.wikipedia.org/wiki/Ubuntu_Touch, yea I love it because I use Android because of frustration waiting for MeeGo, damn Nokia. Qt will be successful at Digia, because Ubuntu and BlackBerry 10 also adopted it. In the future will very likely both platforms share application without any modification, because of QML.
[Galaxy Tab 2 General] fuzzylcv:
How to preserve the modification done after flashing daily image?

in your opinion is there a way to preserve the settings and the modification done to the tablet in the current installation and save them in the following installation of the current daily image?:confused:
[Galaxy Tab 2 General] prince147:
Yes, I understand that!

what i ment to say was that it'd rather belong in a original development subforum than a android development subforum!!

But by all means, we shall create a thread in dev section!!!
[Galaxy Tab 2 General] thatguruguy:
Although this works, I can't seem to get wireless working on my P3113. Is there another step that I need to take?
[Galaxy Tab 2 General] shinobisoft:
Not yet that I know of. It didn't work on my P3113 either.
[Galaxy Tab 2 General] Mavrikmeercat:
got it working!! gt-p3113

thanks for the preview!! cant wait until they release a full working os.. big ubuntu fan here. linux in general for that matter. samsung gt-p3113. posted using ubuntu touch browser inside this build
[Galaxy Tab 2 General] Menelkir:
Did you guys tried the fix for wifi in p5110 for p3113?
[Galaxy Tab 2 General] shinobisoft:
No. Haven't been following that thread. Thanks.
[Galaxy Tab 2 General] Mavrikmeercat:
yes. thats how i got my wifi and resolution working.
[Galaxy Tab 2 General] Starcarr:
Hi Menelkir,

In the first post of my P5110 thread are the steps.
[Galaxy Tab 2 General] Mavrikmeercat:
yes thats where i went and found them. Thanks Starcarr!!

for us 7" users I have found this to be the best resolution settings:

not sure if someone else mentioned it already.. if so I will thank them :)
[Galaxy Tab 2 General] Menelkir:
Yeah I put this fix and the wifi fix in the last build for p3100.
[Galaxy Tab 2 General] Mavrikmeercat:
guess i havent been following the last few pages of the thread. you guys post fast.. thanks to menelkir for your work in this. i didn't use your files. I just took the original files from the op and tested and did my own thing. when i checked back yesterday I saw that your findings and files for the 3100 are just about identical to what I have.(gt-p3113 owner). I know things pertaining to framework, resolution and touch shouldn't matter wich 7" varrient but i just like to try things on my own when i have spare time and share if i actually get anywhere ;) I know it says new member but im not new to android dev. I usually share most of my stuff in a different forum.
[Galaxy Tab 2 General] Menelkir:
Thank ketut too, without his work, this will not be possible. :)
[Galaxy Tab 2 General] shinobisoft:
Check out this post. If Menklir has posted an update it will be between that post and this last one, sorry can't be more specific.
[Galaxy Tab 2 General] Mavrikmeercat:
Your right, sorry ketut.kumajaya.. I see that you have put a lot of time in this as well.. officially thanked twice