yashsingh1/xdaforums huggingface dataset:
[Galaxy Tab 8.9 Android Development] jolinnard:
It works for me. What device do you have?
[Galaxy Tab 8.9 Android Development] j555:
The GT-P7310.
[Galaxy Tab 8.9 Android Development] jolinnard:
Weird... Can you post dmesg and logcat, please?
[Galaxy Tab 8.9 Android Development] L3R0N:
Works fine for me. Been using all day and WiFi is fine and no reboots whatsoever.
[Galaxy Tab 8.9 Android Development] j555:
Sorry it took so long never posted a logcat before. Hope I did it correctly.

https://www.dropbox.com/s/595vnhn25b6gmwr/android-l-v4-2015-02-06-01-54-11.txt?dl=0

Here is the dmesg from v4:

https://www.dropbox.com/s/l5lin6amm8p2sw0/dmesg v4.txt?dl=0

Let me know if you want me to get anything else for you.

Thanks for the help and I really appreciate all you are doing for this tablet.
[Galaxy Tab 8.9 Android Development] jolinnard:
I uploaded a new kernel today. Hyper is a mess and it breaks all system when it goes to sleep... So I disabled Intellidemand and Hyper in this kernel. Also, I fixed bluetooth tethering and disabled some other stuff in ramdisk (NTFS and EXFat modules for example, 2MB free RAM :P).

http://mirror.lnx.im/android/galaxy-tab/L-test/Figue-boot-v5.2-p5wifi-L.zip
[Galaxy Tab 8.9 Android Development] jolinnard:
Ok... IDK what's happening here. This is the log when wifi chips is starting:

<4>[ 401.059432] ## wifi_probe
<4>[ 401.059605] wifi_set_power = 1
<6>[ 401.059863] p3_wifi_power: start
<4>[ 401.464140] wifi_set_carddetect = 1
<6>[ 401.464312] p3_wifi_set_carddetect: start
<6>[ 402.790639] avp_init: Using AVP MMU to relocate AVP kernel
<6>[ 402.807477] avp_init: Loading AVP kernel at vaddr=e9a00000 paddr=34100000
<6>[ 402.837641] avp_reset: Resetting AVP: reset_addr=100000
<6>[ 402.856440] avp_node_try_connect: trying connect from RPC_AVP_PORT
<6>[ 402.856506] process_connect_locked: got connect (10e9a0)
<6>[ 402.856833] avp_svc_thread: got remote peer
<6>[ 402.857060] [AVP]: AVP kernel (May 4 2012 17:14:14)
<6>[ 402.864171] avp_node_try_connect: got conn ack 'RPC_AVP_PORT' (e39f8ec0 <-> 10e964)
<6>[ 402.864403] avp_init: avp init done
<6>[ 402.864560] avp_lib: loading library 'nvmm_manager.axf'
<6>[ 402.875186] avp_lib: Successfully loaded library nvmm_manager.axf (lib_id=115918)
<6>[ 402.875458] avp_node_try_connect: trying connect from NVMM_MANAGER_SRV
<6>[ 402.884209] avp_node_try_connect: got conn ack 'NVMM_MANAGER_SRV' (e3b6c2a0 <-> 116bd8)
<6>[ 403.231186] avp_lib: loading library 'nvmm_service.axf'
<6>[ 403.243707] avp_lib: Successfully loaded library nvmm_service.axf (lib_id=117748)
<6>[ 403.243992] avp_node_try_connect: trying connect from daaaaaaa+
<6>[ 403.254177] avp_node_try_connect: got conn ack 'daaaaaaa+' (e61383a0 <-> 118a88)
<6>[ 403.287265] avp_lib: loading library 'nvmm_mpeg4dec.axf'
<6>[ 403.337223] avp_lib: Successfully loaded library nvmm_mpeg4dec.axf (lib_id=1195f8)
<6>[ 403.337555] avp_node_try_connect: trying connect from caaaaaaa+
<6>[ 403.345632] avp_node_try_connect: got conn ack 'caaaaaaa+' (e61383c0 <-> 11aba8)
<6>[ 403.421597] process_disconnect_locked: got disconnect (e61383c0)
<6>[ 403.444180] avp_lib: Successfully unloaded 'nvmm_mpeg4dec.axf'
<6>[ 403.444375] avp_lib: unloaded 'nvmm_mpeg4dec.axf'
<6>[ 403.445839] avp_trpc_close: closing 'daaaaaaa+' (118a88)
<6>[ 403.454267] _send_disconnect: sent disconnect msg for 118a88
<4>[ 403.464167]
<4>[ 403.464171] failed to power up wifi chip, retry again (11 left) **
<4>[ 403.464175]
<4>[ 403.464967] ## wifi_remove
<4>[ 403.465132] wifi_set_power = 0

Did it work for you with v1, v2, etc? Are you running Omnirom right?
[Galaxy Tab 8.9 Android Development] j555:
I am running omni 5.0.2 from this thread. Figue V2 WiFi works fine but I get random reboots. V3 and V4 will boot but I can't turn WiFi on.

---------- Post added at 12:54 PM ---------- Previous post was at 12:08 PM ----------

What recovery should I be using to flash the rom and kernel?
[Galaxy Tab 8.9 Android Development] L3R0N:
Thanks for this. It works OK as far as I can see. Thanks for all your hard work on this. Now if we had more devs like you we'd have a pile of ROMs and kernels to choose from. Speaking of ROMs, it would be nice if we could get decatf's Pure AOSP ROM to work on our tab since it has fewer issues than the Omni Build. But I doubt he'd bother to add in the rotation fix. :(
[Galaxy Tab 8.9 Android Development] jolinnard:
Sure... It will be great to have more people interested in keep our tab alive, like in p4... Did you meet decatf? Maybe if you ask him it will be easier. Maybe Omni commits can be cherry picked easily.

I will try add new features to kernel. Maybe lionheart governor and some schedulers. Also UKSM or some other little improvements.

It's a great surprise how it runs this ROM. Amazing.
[Galaxy Tab 8.9 Android Development] L3R0N:
No I didn't meet him but I remember back before Omni had a rotation fix I'd asked him about it in his thread and he went over that post like he didn't even see it which I'm sure he did since I did mention his name in the post. But nothing beats a trial so i will ask him in his thread again this time I'll be sure to point out the commits that needs adding to fix rotation. If all goes well and he does add in the rotation fix, will you do the porting? I go to school and I don't bother with going home during the week....so I stay at my Dad's house and the internet there is horrifyingly slow. I'd be happy to help with testing tho...:)

....................................................................................................................................................................................................................................................

Added features to the kernel would be mighty fine since lionheart is my favorite governor. And I'm also amazed at how fast this rom is with your latest kernel. Fastest I've ever seen on this Tab not nearly as fast as my Nexus 9 but still faster than stock. And oh the battery life is just great.:good:

EDIT: Just posted in his thread. Hopes up for the fix to be added.
[Galaxy Tab 8.9 Android Development] j555:
Just an update. I reflashed twrp, rebooted into recovery and then flashed figue v5.2. WiFi came right up and is working great now. Strange, I an not sure what did it but thank you for your help. This ROM has given new life to this tablet. Thank you again for this ROM.
[Galaxy Tab 8.9 Android Development] L3R0N:
Android 5.02 P5 3G

I managed to fix the 3G issue.
[MENTION=2002216]jolinnard[/MENTION] heres what I did:

Replaced system/bin/rild with the one from the January 1, 2015 build. Replaced system/framwork/telephony-common,jar with the one from the January 1 build. Replaced system/lib/libsec-ril.so and system/lib/libreference-ril.so with the one from the January 1 build. I carefully added them in one at a time starting with rild and 3g didnt work until they were all replaced. So I guess these were the buggy files in the new build that prevented 3g from working.
[Galaxy Tab 8.9 Android Development] jolinnard:
Great! If you can upload those files I can make a full ZIP. What kernel did you use? Because my kernels for p5wifi have disabled modem interface...
[Galaxy Tab 8.9 Android Development] L3R0N:
The entire ROM or just the files? The single files I can upload but the entire rom zip would take ages on this slow internet. I used a test kernel thats made up of a 5.0 ramdisk but a kk zImage. It works fine but after installing a few apps like before the reboot issue comes back. So we'd need a new kernel to prevent that. Files will be up in a bit...some patience is needed because as I said the internet is slow where I am presently.
[Galaxy Tab 8.9 Android Development] jolinnard:
Just the files. Or if you have the link to the 0501 ROM I can download it. Don't worry, I have a 100/10 Mbit fiber ;)

I can build a new kernel enabling all modem stuff with AAcount sources.
[Galaxy Tab 8.9 Android Development] L3R0N:
Here you go. At home I have a High Speed connection to but I'm at my Dad's and he isn't concerned about speed so long as his whatsapp messages are sent and his youtube videos play fine.
[Galaxy Tab 8.9 Android Development] jolinnard:
All right. Another try: http://mirror.lnx.im/android/galaxy-tab/L-test/Figue-boot-v5.2-p5-L.zip

Check if it works with your current setup. If it boots, I will make the full ROM.
[Galaxy Tab 8.9 Android Development] L3R0N:
Thanks for the try but try as I may it wouldn't boot. I really don't get what's so different between the two that it'd not boot from a native p5 kernel but boots fine with a p5wifi kernel. Is there some log we can pull to see what's up with it? Tomorrow I shall try again with a fresh port of the ROM on a clean tab(full wipe including internal storage). Maybe something got messed up along the way. But the WiFi version of the kernel is awesome!!!!
[Galaxy Tab 8.9 Android Development] :
Is there a bug list? I want to try but I haven't had much luck with ROMs (I have always had to revert to the stock ROM for one reason or another, e.g. random reboot or system freezing). I just want to see the bugs for both 4.4.4 and 5.0.2. :)
[Galaxy Tab 8.9 Android Development] jolinnard:
In p5wifi, kernel has these options:

CONFIG_MACH_SAMSUNG_P5WIFI=y enabled

CONFIG_SEC_MODEM is not set

In 3G kernel, is enabled:

CONFIG_SEC_MODEM_P5=y

CONFIG_SEC_MODEM=y

CONFIG_UMTS_MODEM_XMM6260=y

CONFIG_LINK_DEVICE_HSIC=y

CONFIG_SIM_DETECT=y

CONFIG_MACH_SAMSUNG_P5WIFI is disabled.

The only difference between KK and this A1 kernel, is CONFIG_SIM_DETECT. I have disabled it in this new version: http://mirror.lnx.im/android/galaxy-tab/L-test/Figue-boot-v5.3-p5-L.zip

As a log, you can hard-reboot the tab into recovery and pull /proc/last_kmsg.
[Galaxy Tab 8.9 Android Development] L3R0N:
OK I will be trying this with a new build of the ROM. I did try pulling the last_kmsg log but it kept saying that the file or directory does not exist. Hopes up that this new kernel works.
[Galaxy Tab 8.9 Android Development] L3R0N:
[MENTION=2002216]jolinnard[/MENTION] the new kernel was also a no go. Boot failed miserably....it didn't even get to the boot animation. Attached is a kmsg log.
[Galaxy Tab 8.9 Android Development] jolinnard:
This kmsg comes from your last recovery boot. It seems something cause a panic before kernel could end the first boot.

Last try: http://mirror.lnx.im/android/galaxy-tab/L-test/Figue-boot-v5.4-p5-L.zip (CONFIG_MACH_SAMSUNG_P5WIFI=y)
[Galaxy Tab 8.9 Android Development] L3R0N:
I'll test and report back. The kernel I have works fine but yours doesn't for some reason. BTW for the 3G issue in the p5 ROM is caused by telephony-common.jar . I'd really like to see this kernel work with the p5 tab.
[Galaxy Tab 8.9 Android Development] L3R0N:
Sorry to say but the kernel doesn't work either. Right now I'm starting to think that this is it for this ole girl(p5) but I may be wrong. I just don't get why the p5wifi kernel works fine but the p5 one doesn't. Anyways, there is a new build up on the p4 thread with some minor changes including the 3g fix(useless for us since the 3g kernel won't boot) and the ability to change music tracks with the volume keys.
[Galaxy Tab 8.9 Android Development] jolinnard:
Ok. Sorry for that. Maybe AAcount merged some code that breaks p5 modem. I will try to compare the code and report back :)
[Galaxy Tab 8.9 Android Development] L3R0N:
OK cool. With your latest kernel it does get to the bootanimation but gets stuck there. I left it that way for over an hour but it didn't go past that screen. When I flashed in my test kernel I made it boots in about 10mins. So there is indeed something wrong with your kernel that prevents boot. I'll be happy to do the testing for you when you've built another trial kernel. BTW, maybe you should pm me the links to your trial kernel for me to test instead of posting them here directly then if they work you could post it here also. :) Just a suggestion, you may think differently.
[Galaxy Tab 8.9 Android Development] jolinnard:
Ok. If you see bootanimation with latest kernel, does adb logcat show something?
[Galaxy Tab 8.9 Android Development] L3R0N:
It gives the device unauthorized error. However I forgot to mention it went ahead and created another 0 folder within the one that was already there not, sure its kernel related but probably a sign of progress? As I said before, I'm willing to use my tab as the guinea pig for our testing. :)
[Galaxy Tab 8.9 Android Development] L3R0N:
Our request on the Pure AOSP thread has been heard and the fix has been added. It will show in the next build whenever he uploads it. :) Finally the Tab 8.9 forum is alive again.
[Galaxy Tab 8.9 Android Development] sbdop:
This is the good news for our tab 8.9.
[Galaxy Tab 8.9 Android Development] L3R0N:
More good news...the rotation fix works so now we only have to wait for [MENTION=2002216]jolinnard[/MENTION] to port and upload the ROM. It does seem a bit more smooth than the OmniROM however there is no performance control in the settings menu which means we'll have to use the likes of SetCPU or No-Frills CPU.
[Galaxy Tab 8.9 Android Development] jolinnard:
Good news indeed :) Thank you

Edit: decatf's ROM ready to test. Instructions as always:

- Do all backups you need (Titanium, Parcel, Nandroid, TWRP........)

- Wipe factory reset (and wipe cache partition if you did Titanium)

- ROM: http://mirror.lnx.im/android/galaxy-tab/ROMs/Lollipop-AOSP/p5wifi-lollipop-20150208.zip

- GAPPS: http://mirror.lnx.im/android/galaxy-tab/ROMs/Lollipop-AOSP/gapps-minimal-lp-20141109-p75xx.zip (optional)

- Kernel: http://mirror.lnx.im/android/galaxy-tab/L-test/Figue-boot-v5.2-p5wifi-L.zip (optional, already included in ROM zip)

- SuperSU: http://download.chainfire.eu/695/SuperSU/UPDATE-SuperSU-v2.45.zip (optional, but this ROM is not rooted)

Please, read carefully decatf's thread. ROM is exactly the same, except for kernel, modules and HW rotation fix.
[Galaxy Tab 8.9 Android Development] L3R0N:
Awesome....I'm gonna be using this ROM as a daily driver because IMO its smoother than Omni. Thanks to you. BTW, will there be a p5 build? Also can you please clean up the OP? Its quite a mess.....I think you should just have links to your last nameless 4.4 build and figue kernel for KK and remove all previous versions. Also add links to the latest Omni and Pure AOSP builds and latest figue 5.02 kernels to the OP. That'll help visitors of this thread find things faster. As it is, it takes some searching to find stuff. :) Keep up the good work.

Regards,

L3R0N
[Galaxy Tab 8.9 Android Development] sbdop:
I am waiting to test for P5 build.

:)
[Galaxy Tab 8.9 Android Development] jolinnard:
I need to fix the kernel first... Until that, p5 will not be released. But you can use p5wifi in the meantime.
[Galaxy Tab 8.9 Android Development] jolinnard:
OP cleaned.
[Galaxy Tab 8.9 Android Development] L3R0N:
Thanks it looks much better now and a lot easier to find stuff. P5wifi build works just fine on the p5 just no 3G because we're using awifi only ROM. Battery life does seem better with the p5wifi ROM since we're not making use of the 3G radio. :)
[Galaxy Tab 8.9 Android Development] jolinnard:
Kernel update:

Just a fresh sync of latest commits in AAcount's repo.

http://mirror.lnx.im/android/galaxy-tab/kernels/lollipop/Figue-boot-v6-p5wifi-L.zip
[Galaxy Tab 8.9 Android Development] jolinnard:
New experiment for p5 devices

Let's try a new kernel for p5 devices... Code comes from decaft's repo. I'm not sure if I changed all options in p4 config to fit in our tab... So, please, don't flash this if you are not sure.

http://mirror.lnx.im/android/galaxy-tab/kernels/lollipop/maybe_broken/Figue-boot-v6-p5-L.zip
[Galaxy Tab 8.9 Android Development] L3R0N:
Tried it but same result....it wouldn't boot. How about you try this; compile a kernel with no fancy features...just a normal kernel like Omar would do with his. If we flash it and it works fine then you could add in your tweaks one at a time to see how it goes. If it does get to a point where it doesn't boot then it'll be easier to figure out the cause. I'll be more than happy to do the testing. :)
[Galaxy Tab 8.9 Android Development] jolinnard:
All Lollipop kernels (even p5wifi) start with default configuration. When I know they work, I start to play with kernel features and patches. Until now, p5 only had ramdisk needed modifications to boot in Lollipop. Nothing else.

Tonight, I will try to start from scratch... It doesn't have any sense.
[Galaxy Tab 8.9 Android Development] decky006:
The ROM is very good. Except my time and date isn't changing. Tried automatic and manual setting.
[Galaxy Tab 8.9 Android Development] _strauch_:
Thank you very much for the lollipop rom, it runs for a beta very good but I missed some cm features ;). Nice to see my tab is alive.This weekend i will test a few thinks and report bugs, if i find them.
[Galaxy Tab 8.9 Android Development] decky006:
Just flashed your v6 kernel and the time is now working.
[Galaxy Tab 8.9 Android Development] graug:
Smooth Upgrade

[MENTION=2002216]jolinnard[/MENTION] just wanted to report another smooth upgrade to lollipop on my p5wifi. Scrolling bigger pages in chrome seems smoother than ever before. No hickups or problem so far. Thanx again for keeping our table alive and current!!!
[Galaxy Tab 8.9 Android Development] jolinnard:
Please, 3G users, try this kernel: http://mirror.lnx.im/android/galaxy-tab/kernels/lollipop/maybe_broken/Figue-boot-v6.0-p5-L.zip

It boots fine in my p5wifi... Modem part is included in kernel, but modem is not initialized automatically in ramdisk. Let me know if it boots and, then, we can continue to fix data connectivity.
[Galaxy Tab 8.9 Android Development] L3R0N:
I tried it and no it wouldn't boot. Flashed over my current ROM and it didn't boot. Included it in a new ROM and flashed and it wouldn't boot either. The bootanimation shows after a while but doesn't display smoothly...I remember seeing this once when trying to get the 3.1 kernel to work on cm9. Maybe our tab doesn't bode well with the Linaro 4.6.4 toolchain. Can you try with Linaro 4.6.2? Nothing beats a trial. BTW, can someone else try it out? Just to confirm that it doesn't work.
[Galaxy Tab 8.9 Android Development] jolinnard:
Ok... So, here is a version with 4.6.2: http://mirror.lnx.im/android/galaxy-tab/kernels/lollipop/maybe_broken/Figue-boot-v6.1-p5-L.zip

As far as I can see, there isn't any changes in modem's code that could cause this...
[Galaxy Tab 8.9 Android Development] L3R0N:
It didn't work either :( . Maybe we missed something....maybe there is some bad config somewhere. If only it would boot then we could figure it out from there....:(
[Galaxy Tab 8.9 Android Development] jolinnard:
Yes... But think about it. Those 3G versions boot fine my p5wifi. I spent a few hours trying to find some differences between KK and LP sources... But they are equal. Some new merges for Lollipop (maybe all the network stack or Selinux part) are causing a complete failure when kernel starts modem... That's only my opinion because I don't have any evidence of that.

Sorry guys, but I've run out of ideas...
[Galaxy Tab 8.9 Android Development] L3R0N:
Its OK for now we'll stick to using the p5wifi ROM and kernel since they work fine on p5. Maybe [MENTION=4800636]OmarEinea[/MENTION] can help since he's been dealing with this tab for a while.
[Galaxy Tab 8.9 Android Development] jolinnard:
Yep... And if I had a p5 it will be easier for me too ;)
[Galaxy Tab 8.9 Android Development] L3R0N:
Yeah...a fix will eventually turn up, they always do. Meanwhile I think I'll PM Omar and ask for his help. Maybe he knows a lot more than we do cause he ported ROMs for our tab for a while. Maybe he can give us a clue as to what might cause our problem(p5). BTW has anyone tried porting ROMs from the Tab 2 over to our tab? I did try once with the IzerHD ROM and it worked great albeit some audio issues that I couldn't fix. Porting isn't as easy to do as with ROMs from the p4 tho IMO that is. Maybe someone here can try?!!
[Galaxy Tab 8.9 Android Development] jolinnard:
It's a good idea. I think our Voodoo sound card needs some specific libraries... or something like that.
[Galaxy Tab 8.9 Android Development] L3R0N:
I didn't think of that...LoL. They do have a nice collection of Lollipop ROMs. I think I'll have a go at SlimLP to see if it can work. SlimLP is nice and fast....its my current ROM on my Nexus 6 so it'd be nice if we could have it run on this tab too.
[Galaxy Tab 8.9 Android Development] jolinnard:
I was talking about sound. Lollipop works fine, but maybe P5100 has a different sound card and some libs might be built... But I don't know.... Let me know if you can port it.
[Galaxy Tab 8.9 Android Development] L3R0N:
I know. When I tried IzerHD ROM audio did work however it didn't sound as it should've sounded especially given that there were sound mods added in there. Besides, audio is the least of my worries...if we can get the ROM to boot then we can worry about audio later. I'll check it out tomorrow and post the results here. We don't have to worry about rotation since the tab 2 makes use of the ro.sf.hwrotation=270 line in its build.prop so we only need to change that to 90 and we'd be good to go.
[Galaxy Tab 8.9 Android Development] L3R0N:
[MENTION=2002216]jolinnard[/MENTION], I think the ROMs can be ported with some doing. I did a quick test but didn't get past the slim boot animation. Couldn't take logs since adb said unauthorized. However I think if we try hard enough we can get it to boot. In case you want to have a try note that the Tab 2 ROMs make use of the new .dat extensions introduced with Lollipop. To decompile them follow these steps if you don't already know how to

1. Download this file.

2. Create a new folder and place the downloaded sdat2img file in there.

3. Extract the ROM you are working with and copy system.new.dat and system.transfer.list over to the folder with the sdat2img file.

4. Open terminal and cd into the folder that contains your files to be extracted.

5. Run this command

./sdat2img system.transfer.list system.new.dat system.img

You should now have a new file created in your folder called system.IMG

6. Create a new folder and name it output then run this command to extract the files from it

sudo mount -t ext4 -o loop system.img output/

The files should now be extracted into the folder named output. Change what needs to be changed and delete what has to be deleted. Hope you can get further than I did since you obviously know more about these things than I do. :)
[Galaxy Tab 8.9 Android Development] d0p3d:
Do I understand correctly that you guys are porting Lollipop to the P7300?
[Galaxy Tab 8.9 Android Development] L3R0N:
Yes you got that right. There are already two working ROMs for our tab that were ported over from the P4 (GT-P7500) thanks to [MENTION=2002216]jolinnard[/MENTION]. I'm currently trying to port Tab 2 ROMs to our Tab 8.9 but so far I haven't been able to get it to boot. I tried SlimLP but it didn't boot so right now I'm trying out CM12. If I can't then hopefully [MENTION=2002216]jolinnard[/MENTION] can since he's much more knowledgeable on the whole ROM/Kernel thing.
[Galaxy Tab 8.9 Android Development] d0p3d:
Super! This tablet is still worth an update. Thanks guys, will keep my eye on this
[Galaxy Tab 8.9 Android Development] :
I might flash this when Xposed is ready for Lollipop, but I have a question. On some ROMs when I flash something, e.g. Xposed, SuperSU or GApps, the WiFi and Bluetooth stops working. Why is that? That is the main reason I am sticking with ICS.
[Galaxy Tab 8.9 Android Development] dumpy83:
I have the Samsung dock/keyboard and I would like to remap some of the buttons if someone could point me in the right direction I'd appreciate it
[Galaxy Tab 8.9 Android Development] d0p3d:
Xposed for Lollipop been available for a couple of days now
[Galaxy Tab 8.9 Android Development] jolinnard:
Hi! I don't know why is that... Xposed could be the cause, because I was using Nameless, Onmi or now AOSP and bluetooth is working fine always and I flashed gapps and SuperSU always. But never Xposed.

I don't have a dock and I never read nothing about it. Is there some Samsung app to do this? Or it was a hack in previous ROMs?
[Galaxy Tab 8.9 Android Development] :
By "ready" I meant "stable".