yashsingh1/xdaforums huggingface dataset:
[Acer Iconia A500] Moscow Desire:
HA HA Mate, I spent half my life in the states! Eh.... will explain later.

OK, I still get reboot when plugging in my 1tb ntfs drive after 10 seconds. And maybe I know why.

I toggled the autogroup off, made sure I was on default noop, and still rebooted after the drive spun up and was attempted to read.

Civato didn't get this. And I know why. He has a 500. With the 501, the 3g is tied to the USB. I don't know the technical aspects about it, but it shares the USB. Waydownsouth discovered this a week or so ago, when we got 3g working on JB. Still need to get gps working on that one. I been busy lately.

Anyhow, I'll roll back to your original kernel to see if it reboots it with that one. Honestly I can't remember if I checked it or not as saturday nights are reserved to heavy drinking!!!!!. Might just be able to use drive mount.

I've got over 50Tb of data, and all are on ntfs. Most TB drives come pre-formatted to ntfs. When you have a full size usb, it's pretty important to have it built into the kernel. But thanks for hanging in there, and doing this. I like the kernel. (not too sure about all the controllers though, haven't had any time to play with them)

MD
[Acer Iconia A500] civato:
Well it crashed when and had to hardreboot.

second time I had to hardreboot after I inserted ntfs usb

But the module loaded

and also

ufsd 320396 - Live 0xbf00000 (P)

But still nothing shows in usbstorage when I insert ntfs storage.

See attachments , your latest kernel = dmsg and logcat while inserting ntfs usb.

I also added a dmsg and logcat with ezterry's kernel while inserting ntfs usb , this one always works.

Maybe you find something.
[Acer Iconia A500] linuxsociety:
Thanks a lot for sticking with me through all this testing, without you and the other guys helping debug the issues, I'd have absolutely no way to do any work at all for the A500, and honestly I am just doing it out of the goodness of my heart for you guys, aside from the fact that I enjoy it :D So what you are telling me is that the 3G and the USB could be conflicting for you on the 501 when you plug the USB drive in? I do know that ufsd.ko *should not* be needed for NTFS RW to be working, as I just had 2 A200 users to verify they had full functionality with their gm-kernel.zip they flashed - was stated that drive auto mounted fine on usb insert. I would naturally assume that both device's roms are based off a related device tree and would use similar Vold scripts. the picasso-e and picasso boards aren't that much different in terms of how USB operates, I wouldn't expect this to even be an issue.. I'm all for getting this to work for you guys though - including stock roms and custom ones - would love to see it work without the need for the ufsd.ko though, it would definitely open up many more options for how the kernel is configured and tweaked. I have great confidence that we'll get this resolved by working together. Glad we are getting some progress on it! Thanks again bud.
[Acer Iconia A500] Moscow Desire:
Hey, me and Civ want things to work the best. Never mistake that. And we'll hang in as long as we can.

I rolled back to the original. No re-boot when plugging in, although, I saw what I can say may have been a prelude to a re-boot (I see usb and debug icons go away). But it didn't reboot. I loaded Paragons NTFS, and was able to mount the drive ok. But, it didn't reboot with the initial kernel. So at this point, we need to regroup and stop chasing ghosts.

MD
[Acer Iconia A500] linuxsociety:
ok so you are saying that you loaded paragon's ntfs with my initial kernel and it worked? Are you saying if I just include paragon's driver with my initial kernel that it would be resolved? If thats the case it makes absolutely no sense at all lol. As the whole reason that this mess over ufsd began was because initially it couldn't load the driver due to bad version magic mismatch. So i doubt you meant that you loaded paragon's ntfs with my initial zip.

After comparing config from the initial kernel and the kernel now. The reason I want to blame for the lockup is nothing to do with ntfs or ufsd.. I think it is a conflict like you were mentioning with usb and 3G.. I'd say this issue would be resolved by disabling 3g temporarily -- then that just leads to another thing to fix ;)

Test Case to eliminate 3G as issue: new zImage w/o Psensor3G https://github.com/downloads/godmac...n-Custom-Kernel/a500-08192012-1322-signed.zip
[Acer Iconia A500] Moscow Desire:
I'm saying, with your initial kernel, I don't get the reboot. it acts like it (usb debugging icon goes away like in the previous kernels, but, it doesn't reboot. Even when going to root explorer. It just doesn't see the drive.)

After paragon, it sees it, and root explorer shows the directory and reads it, And, from root explorer it launches and plays.

As with the 3g, welcome to 501 hell ;)

MD
[Acer Iconia A500] linuxsociety:
try that download with 3G disabled, also did you get paragon to load with my initial kernel? B/c thats confusing me, as the initial kernel I posted used SLUB which doesn't include malloc_sizes needed for ufsd.ko also the version magic hack to get the module to load on mismatch wasn't intact with that kernel, so sorry i'm a bit confused at what you mean by "after paragon"
[Acer Iconia A500] Moscow Desire:
Crappola... reboot after 10 seconds.

Oh 3g was still active

After paragon, means the app "paragon ntfs" from the market.
[Acer Iconia A500] linuxsociety:
I want to stop chasing ghosts here too man! lol. so that kernel reboots after 10 sec even without USB drive attached? If i knew what you meant about the "after paragon" if you meant that you got paragon to work with one of my kernels or what you meant exactly. And this device that you are having problems with it is the 501 and you have a sim card present?

*Edit: I see so you used paragon ntfs from the market with original and it worked, just doesn't work without it? So the fix would be switch back to original config and let users install the paragon app that mounts ntfs courtesy of FUSE? If this is what you mean, it sounds like a damn good solution to me! It would do 3 good things: Allow us switch back to SLUB, Get rid of SPINLOCK_SLEEP, and eliminate the need for ufsd!
[Acer Iconia A500] Moscow Desire:
Ok mate.

1. Your initial kernel does not reboot.

2. After plugging in NTFS 1tb drive, on initial kernel, it does not reboot.

3. Your initial kernel does not see NTFS drive

4. All kernels afterwards, cause reboots after plugging in NTFS drive.

Please note, that in all reboot cases, they were pre-ceeded by the USB debug icon going away, then 2 seconds later, re-boot

5. With initial kernel, I had no re-boot. Just "usb-debugging icon went away" after 10 seconds plugging in, but, tab does not re-boot.

6. Install paragon NTFS app from market, and can access NTFS drive normally.

As with your last kernel, to "rule out 3g". Didn't work. I still had 3g, and the tab rebooted after plugging in ntfs drive after 10 seconds.

MD
[Acer Iconia A500] Moscow Desire:
Go back to your initial kernel. I can make NTFS work with a market app. And I do not have reboots.

I think, maybe too may kernel builds, and we have lost sight.

I think the paragon ntfs app, has the right way to go. It does work. The issue, is to make the same changes to the kernel.

I'm not a kernel dev. But, the answer is in front of us.

MD
[Acer Iconia A500] linuxsociety:
This is all actually pretty good news to me, I need to check out the Psensor3G and Psensor code if you still had 3G in that last one, but what is good to me is that NTFS will work with paragon's app from the market with the original kernel without any issues. Imho i see no difference in the use of paragon's apk and the use of their .ko compiled by acer, I could package the a500 .zips with paragons apk from the market so that users can mount/read/write ntfs without needing to rely on ufsd.ko.

...much agreed.
[Acer Iconia A500] civato:
I use the gm-a500-v1.5-alpha-2-signed because you removed the interactivX governor in that one.

With Paragon NTFS I can mount my ntfs drives without problem so no real need to keep waisting time m8.

Would be nice if we don't need a extra app but that is not a deal breaker.

@ MD I understand why the beef is just no good , you spend to much time on your tablet that you forget to turn it.

It's not a BBQ but a BurnedBeefQuest.:laugh: with you behind the fire.
[Acer Iconia A500] linuxsociety:
lmao. Thanks for the good laugh man! I needed that!

This all sounds like a good deal. and the fact that paragon's app uses FUSE to mount the ntfs partition may be something that can be implemented into Vold and Android userland in future roms to prevent the need for both a proprietary driver AND an extra app! I had the idea earlier when research paragon's drivers, but I didn't think you guys would actually like the idea of using a 3rd party app, so I persisted on trying to keep compatibility with ezT20 kernels and stock. But in the end I think there is no difference - proprietary driver / 3rd party app. So, solution solved. Bump back configs to Alpha2 where interactiveX is removed, keep SLUB - keep everything same as alpha2- add in paragon's ntfs app - and mark it done!

Got everything basically back to alpha2 -added in the HID device support that was originally gone (as not needed with the a100 based config). You all are awesome!
[Acer Iconia A500] Moscow Desire:
@Civ. You, my dearest friend, have never tasted my beef... (many girls have :laugh::laugh::laugh: and they come back for more ;) )

The App really isn't a deal breaker. Yeah, would be nice to not have it, but hey, it works. And us users, are well accustomed to Drive Mount in the HC days.

But, it's going to take a month of testing to find which controllers are the best. Personally, so far, I like savagezen. But haven't tried the others yet.

MD
[Acer Iconia A500] linuxsociety:
Hey they aren't there to keep switching between them! LOL, nah they are there to give you the option to use one for a while, and see how you like it, then you may pick one and stick with it. Sorry for confusing you with so many of them, just like to give you many options for different uses cases. Thanks for all the testing you guys!
[Acer Iconia A500] civato:
alpha 2
[Acer Iconia A500] Moscow Desire:
Hey, we all want the same thing. And it's great to see some more kernel dev's. As I see, EZTerry got involved also. He's a great guy, and I am thankful he is in the forums. Bailed my arse on an occassion.

It's about time we see dev's in here again, like the old days. Just wish some chef's would join in, as frankly, as Civ will say, we're tired. And we need a rest. As for me, it's been a long time since I have just simply, enjoyed my tab.

But, I love kernels............

MD
[Acer Iconia A500] Moscow Desire:
Hey, you don't like us switching, then don't give the options :laugh::laugh::laugh::laugh::laugh::laugh:

MD
[Acer Iconia A500] linuxsociety:
Oh you didn't have to do that man, I was just wanting the config from the one you guys liked so I could know that one last time I had everything just right. I ended up having it. just added in some support for HID devices that you all might need on the A500. I made sure my working tree was in exact same state as when I built alpha2 and config is all identical with exception of the added HID device support. Will get the paragon ntfs app added in the zip to flash to /data/app Or would you all rather have it installed to /system/app ? Or not include at all?
[Acer Iconia A500] civato:
data/app.

Side note I use alpha 4 because that one loads cif module without problem. But all is up to you I can add it in modules
[Acer Iconia A500] linuxsociety:
What is up with cifs? CIFS is built in with the Alpha 2; why is it that Android is having such a hard time interacting with static drivers? Is it needing to pass certain arguments pre-load or what?
[Acer Iconia A500] Moscow Desire:
Poor me. Still doesn't show, unless I use Paragon...

MD
[Acer Iconia A500] civato:
I added insmod lines in ramdisk so it loads them on boot but if the module isn't there it can't load it :D

So for me seperate modules is fine , no need to put them in kernel.
[Acer Iconia A500] linuxsociety:
Thought that was the plan anyway? I haven't even made a new zip yet lol.

But if I have them already built in is it a problem? Would eliminate the need to insmod them, unless there is for some reason a problem with CIFS being static.
[Acer Iconia A500] Moscow Desire:
I'm active tonight ;) Flashing everything.

However, it's about bedtime for me. Pretty satisfied with todays results. Like how it should be,

MD
[Acer Iconia A500] linuxsociety:
yep i am very happy with the results myself! Im testing my paragon stuff with my a100 although I wont be able to test an actual NTFS USB drive attached, just want to see what the user should expect by flashing my zip with the paragon ntfs app included. If it looks ok ill put this new zip up and fix up the OP. Glad you are happy with our results today too! Without teamwork we have nothing!
[Acer Iconia A500] linuxsociety:
Geeze.. Maybe we should just put a note for users to install Paragon NTFS from the market manually - this more than doubles the size of the zip... I'm uploading it now btw don't pay much attention to the updater-script I didn't put an if statement in to check the file existence before copying, so it WILL overwrite the existing /data/app/com.paragon-mounter-1.apk in this file - shouldn't cause a problem for you guys, however it may mess up market updating with the app if you originally installed from the market. Whats your guys ideas on a good way to handle it? just let users manually install it if they need ntfs support? keep it in the 8mb zip and allow it to overwrite an existing one? include if -f statement to check existence of the apk before copying? It's up to you all really, I personally just like to know what the required user interaction is to mount a drive via usb ntfs when you use the paragon ntfs apk after flashing this kernel. Does the app have to be ran every time before mounting a drive, or does it run as a system service at boot? I know its not going to run on first boot after flash of this kernel if it wasn't already installed, but I'm wondering about after the first launch, does it work in the background requiring no user interaction?

Oh and btw here is a recompiled kernel back from the alpha2 state, shouldn't no longer reboot on ntfs/usb connect - back to the SLUB allocator etc etc .. Download *THIS WILL FLASH PARAGON NTFS*

**edit: (just now seen that you had said you was going to bed MD.. was waiting here thinking something BAD happened.)

*This should have worked with the paragon ntfs method! Not sure why everyone just left out on me :( When you all get back to testing, I need to know exactly what ROM you are using because after talking to a few users of a500 on irc I can verify that ntfs built-in statically works with Vold on CM for them and ufsd.ko does not. I have also had a CM dev to verify that Vold has been modified on certain roms to not work with ntfs, and others to not work with ufsd. So in other words regardless of the kernel there isn't a win-all situation here that works on ALL ROMS with the a500 - unless it was the ntfs-3g fuse/method Paragon NTFS implements (correct me if I am wrong), this would explain why the users of the A200 kernel I made have been trouble free in the area of ntfs, as they are practically all using the same ROM with the same Vold that supports native ntfs.

With this being said I'll most likely be leaving Paragon NTFS out of the flashable zip, not include ufsd.ko, and build ntfs as a module for those who want to load it manually with init script there is the option, then there is the option for other users to download Paragon NTFS, and then those who want to use ntfs-3g may also do so with a supporting Vold. I appreciate everyone's patience here and appreciate all of the testing, but what works for one just doesn't always work for everyone and sadly the way things are put together with Vold and Android I can't think of any other ways to make it just work for EVERYONE.
[Acer Iconia A500] 10507:
It work fine on my CM10 by WDS. I am using the cwm your gm-a500rc1
[Acer Iconia A500] linuxsociety:
Good deal! I appreciate your response, been curious all day today, you could imagine all that headache with ntfs and finally came to a compromise then nobody is around to test :(

Did you happen to test attaching usb storage with an ntfs partition? If so did it require anything in particular to mount or did it just auto mount?

With NTFS built into the kernel, it *should* auto mount properly with CM's Vold.

2 People on IRC have verified this is working with CM (you make the third) - stock roms seem to be the main issue with ntfs; due to the proprietary ufsd being required for the stock rom's Vold(which is only configured to work with ufsd) - So at this point, I would recommend those on stock ROMS to either patch Vold to work with ntfs or ntfs-3g or to use ezT20 kernel since it is compiled with the configuration to suit ufsd.

Due to the purpose of this kernel (which is to give users control over system behavior at the kernel level via cpu governors, task schedulers, disk scheduler, etc..) the configuration will remain as is unless there is a major issue that is yet to be discovered. NTFS, I know is a very important thing for some users, however there are several ways to get NTFS to work with this kernel other than the stock ufsd module. I have came to the conclusion that the PROs of the current configuration much outweigh the CON of one proprietary kernel module not being supported. I hope this is a fair decision for everyone and hope you guys enjoy the options I brought to you. Have fun and enjoy
[Acer Iconia A500] 10507:
I don't need any other app to mount usb ntfs after flashing your kernel you posted on post #92. The kernel auto mount the ntfs usb.

Btw, what is a good governor to use on the a500?
[Acer Iconia A500] civato:
Oh it was sleepy time m8, you did a supurb job and love your kernel.but for me native ntfs support is needed as I use it very often.

And I use a in init.d script to tweak lulzactive governor with ezterry kernel so it runs even smoother.

I also made one for your kernel to use with smartassV2 and it comes so close in benchmark scores , your kernel and ezterrys give me the same score.

I like that you got more options on your kernel so people that don't need ntfs or don't use it often have a supurb alternative with your kernel.

Keep up the great work.

And I will try to edit Vold and see what happens.
[Acer Iconia A500] linuxsociety:
What I am working on now is actually something that I KNOW would work, if I could get it to actually cross_compile that is. I have the paragon sources for ufsd and I'm making attempts at getting it to compile against my exact kernel source - not 100% sure it is going to be successful, but if I can get a .ko out of this - it is about a 99.9% chance it is going to solve the entire ntfs issue. This configuration for ufsd is crazy though - the configure and install scripts do not want to work too well with code sourcery tool chain nor the tool chain ezTerry has linked in one of his commits. It's just a pain. but i'm trying to get it sorted out.
[Acer Iconia A500] Moscow Desire:
Ok, install went great, Paragon still works so ntfs mounts as it should. Of course if you unplug the drive, you have to run paragon again when you plug it back in.

Info: The ntfs remounter app doesn't work, so it can be removed from the install. I think I tried it the other day, and it didn't work then either. So you can ditch it.

For myself, the native ntfs is not a show stopper. I only connect to transfer video. Other than that, it seems pretty solid, but have to play around with it for a few days.

Had an SOD this morning when waking, but had left the USB tb drive connected all night, Not sure if that had any bearing. Will keep an eye on it though. Not going to flash anything for a few days. Even with the stock acer kernel, an SOD happens every now and then. Acer never has fixed that issue with the 501. Although if the SOD becomes an issue, you might have to bump the system board voltage up a notch. Usually another issue is display freeze when on 3g only in the browser. Haven't seen this yet ;)

Great work Mate! It's good to see some more kernels here. It's been awhile.

MD
[Acer Iconia A500] civato:
Got ntfs working on my RE-FLEXxx acer based rom

Got it working on Acer based rom , I took the vold.fstab and vold from cm and installed it , now it loads ntfs just fine , i will check if it works on ezterry's kernel this way and if so I will update my roms so you don't need to keep messing with it.
[Acer Iconia A500] linuxsociety:
Sounds like it isn't doing too bad for you, I assume you meant the SOD this morning was with the most recent build - marked rc1 <time zone differences mess with me>

Anyway i may have to take a break from the ntfs stuff for a day or so, believe my woman is about to take off on me! lmao nah she wouldn't do that, but after I get rested up I'll be able to get something figured out here. Thanks for everything and hope you know how much I appreciate you helping out with this and everyone else that has been participating too!
[Acer Iconia A500] linuxsociety:
Heck Yea! That is great man. I kinda knew that it was the Vold being hard coded to ufsd the whole time, but I was mainly trying to keep things from needing to change in your preferred roms to get it to work, but on the bright side of things -when we can eliminate a 3rd party proprietary driver from the system and make it more pure native userland + kernel we have a much easier product to work with plus users end up with less issues in the end too. This actually makes my day! Thanks a bunch dude

PS Something I need to do - In the RC1 kernel I had NTFS Read-only just for troubleshooting and debugging the issues - I will build back NTFS with write support now and upload the new zip when I awake. So after the Vold gets updated users shouldn't have any issues at all with NTFS. I will build as module instead of static in case some people decide to use NTFS-3G instead of the native ntfs drivers. That sound good to you all?
[Acer Iconia A500] civato:
I can confirm it also works on ezterry's kernel so no need to keep messing with ufsd.ko , I will update my roms and I will provide a flasable cwm zip to update to the correct vold (bin file) so it works with your kernel.

I will upload it here so you can mention it or pack it with your kernel zip , people on custom Acer based roms will need to flash this NTFS-fixer so they get full ntfs support with your kernel and it doesn't mess up support on ezterry's kernel.

Only people using stock kernels will have trouble but that is not our problem :laugh: , but I will provide acer stock vold wth ufsd.ko module support flasable zip.

report back after some more tests.
[Acer Iconia A500] linuxsociety:
Sounds good to me, actually I think the defconfig has NTFS enabled (however no write) So they'd at least still get to access their drives. Before I hit enter here, did you have a problem with CIFS being built in? Or was it just a personal preference to unload/load by init script instead? If it is going to load every time at init why not just leave it built in? Or is it conflicting with something else?
[Acer Iconia A500] civato:
No problems here with cifs but I never use it so maybe in the future users will mention it. But I don't see any problem.

As promised here the stuff Acer based custom ICS users need to make ntfs work and again it doesn't mess up ezterry's kernel ntfs support so if user wants to use that one again it will give no problems.

Added also back to Acer stock setup

I will also update my future rom release so this is not needed .

Oh and zip files are installed with cwm so it is easy.

removed the attachments till I get it fixed
[Acer Iconia A500] linuxsociety:
Great deal - I will add those to the OP in the morning and get some fresh zips ready too. Would their be a good reason not to just include your patch for Vold with the kernel in the same zip?