yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] jerrystake:
Why in the heck didn't you just hit reset with the VOL+ button pressed like I suggested? If that method doesn't work then nothing will work. You could have saved lots of time and trouble.

---------- Post added at 12:32 PM ---------- Previous post was at 11:37 AM ----------

I can not get this device to init the hynix POP Nand in any way except running it as a small block device. A read page sequence of 00h 4 address cycles without the 30h confirm byte works and I can even read partition, but when I allow the driver to use the correct command sequence for lg pg blocks it locks up. Acts like the nand controller has two modes. Same for chip reset ffh. Same kind of issue with dram as I can't reserve memory for the ram console or the emmc will not mount correctly.

I have come to the conclusion that our little LePan is using a secure omap chip and a kernel upgrade is not going to happen without Innocomm help. I reasoned even if the chip is signed, by using their bootstrap and bootloader, we would be okay however, it looks like the kernel may need to be configured for security as well ie why is boot loader sending serial number through command line.

I hope someone will prove me wrong but maybe if enough of us send Innocomm some e-mails they will see fit to give us some guidance. Have not heard from cas_xp, maybe he is having better luck. Hopefully some of the more eloquent writers among us will shoot off some e-mails. Any ideas folks?
[Android Software/Hacking General [Developers Only]] jessieca:
black screen freezing problem

i just notice that it frequents freeze well of course the original firmware is having like that... and rest button is the solution..

but then i found something a bit similar to it...

i experienced too often the it freezes in black screen especially when im going to an application example fb thats the most common i used.

its looked like on the screenshot but what i is mean the whole screen is totally black then when i press the side buttons (back, search, home and menu) its still respond with the lights on it.. but the screen is stuck in black until i cant press anymore coz it totaly freeze already even the side buttons..

another is.. when the backlight is automatic turned off or when i press the on /off button to stand by its works with animation like turning off the tv... yeah thats great.. but its often also that when im going to press again the on/off button what i can see in the screen is whole black so i have to press it again twice so that the home screen will appear...

is there a solution for that? the last issue for me is ok

but then the freezing with black screen to often.. and needs to rest it often really annoys me a lot

is there who can help me??

.
[Android Software/Hacking General [Developers Only]] jerrystake:
You need to upgrade all the way to last update to fix charging issue. If already having done that you can try wipe all cache and battery file. The kernel will rewrite the default battery ADC info on next boot.

For those still interested, I have finally got new kernel to work with ICS ADB, mount and boot system partition from sdcard up to idle where kernel panics due to wake lock problem and wi-fi and bluetooth init. I had to write a script to mount using write back feature as kernel will not mount rw ext4 with ordered data on mmc, without failing. Write back was only way could get it to work. The last piece is the display. If I can get it to work then we can boot ICS from sdcard or possibly emmc.

I have not pushed anything to git yet until I cleanup some errant test routines from code.

Cas, if you are still working on kernel let me know and I will write up steps for config and commit patches for usb and mtd drivers. If not, I won't bother with git as I hate using it.
[Android Software/Hacking General [Developers Only]] GnatGoSplat:
That's fantastic news, Jerry! Every time I use my TC970 (which is pretty much only when I let my HP Touchpad battery die), I always think, "this would be such a nice tablet if it had ICS or JB on it".
[Android Software/Hacking General [Developers Only]] jerrystake:
I have to say,it is a battle as every feature, on this device, I attempt to implement wants to fight me. It still looms large in the back of my mind that there is security implemented on this chip set. Though I am using the lepan original xloader, which is where security is setup for the most part, I hope this is not an issue. To me, getting adb to work and also able to boot into recovery is huge. Still, no display .... no use. I am going to try to hook out of the Lepan boot loader and dump all the DSS and DISP registers with the hope of getting to bottom of display setup.

Do me a favor and click me a thanks to get me off of unlucky 13 thank you's... That has been bugging me and who knows, maybe bring me some luck today... LOL You have a good day.
[Android Software/Hacking General [Developers Only]] D4747:
I just sold my lepan for the lepan S (ICS) for a very specific cifs.ko feature that ICS might include, and see today that ICS might get put on the lepan! Oy.. Good luck though.
[Android Software/Hacking General [Developers Only]] jerrystake:
You see! That's the reason Lepan will not release source info on Lepan 1. ha
[Android Software/Hacking General [Developers Only]] chuck864:
Probably feels like you are fighting a losing battle but keep up the good work. Our tablets depend on you. ;)

Lurking... Hoping... Cheering...

JERRY!! JERRY!! JERRY!!
[Android Software/Hacking General [Developers Only]] D4747:
I may not have bought it then had i known lol.. if lps doesn't get root or cifs doesn't work, and cm9 is successful on lp1 (which it likely is i hear because 'cm9 and after contain the correct modules built into kernal'), i may actually end up switching back.
[Android Software/Hacking General [Developers Only]] jerrystake:
If your cifs module is not compile against the kernel you are installing to chance are it will not work. The kernel mod I did for you is signed version magic '3.0.8-g6a74032-dirty preempt where for our kernel it should be '2.6.32.9-4749 preempt mod_unload ARMv7 .

I need you to copy cifs.ko to system/modules/cifs.ko ie: adb remount, adb push cifs.ko /system/modules/cifs.ko then adb shell, and

insmod /system/modules/cifs.ko ... after doing that prob will get a error so from shell type cat /proc/kmsg and let me know what magic signature the kernel expects.

I can probably fool the kernel by changing header in make system....
[Android Software/Hacking General [Developers Only]] D4747:
Note, I used system/lib/modules instead of system/modules, but trying with system/modules produced the same errors.

in adb shell, insmod does not work, says 'operation not permitted'

255|shell@android:/ $ insmod /system/lib/modules/cifs.ko

insmod /system/lib/modules/cifs.ko

insmod: init_module '/system/lib/modules/cifs.ko' failed (Operation not permitted)

with a made up file, it says can't open:

shell@android:/ $ insmod /system/lib/modules/cifsNoSuchFile.ko

insmod /system/lib/modules/cifsNoSuchFile.ko

insmod: can't open '/system/lib/modules/cifsNoSuchFile.ko'

with SU (typed su in the shell, changes to #) insmod does not work, says no such file or directory:

shell@android:/ # insmod /system/modules/cifs.ko

insmod /system/modules/cifs.ko

insmod: init_module '/system/modules/cifs.ko' failed (No such file or directory)

with a made up file, it says can't open.:

255|shell@android:/ # insmod /system/lib/modules/cifs.ko

insmod /system/lib/modules/cifs.ko

insmod: init_module '/system/lib/modules/cifs.ko' failed (No such file or directory)

So i would say super user is needed for me (since remount command does not work, adb root does not work) to try to mount the module.

In trying to mount, there is a no such file or directory error, which is not related to finding the cifs file because that would create a can't open error instead.

I found these cifs related entries for another cifs I tried in /proc/last_kmsg

cifs: version magic '3.0.8+ SMP preempt mod_unload ARMv7' should be '3.0.8-2040 SMP preempt mod_unload ARMv7'

Again, this message might be related to a different cifs file i tried (highly likely), but it is the only version magic error I could find. So maybe the version magic stuff is correct for this cifs.ko?

For the cat /proc/kmsg output, i found these cifs related entries:

<4>[56154.770690] cifs: Unknown symbol __aeabi_unwind_cpp_pr0 (err 0)

<4>[56154.777069] cifs: Unknown symbol add_preempt_count (err 0)

<4>[56154.782867] cifs: Unknown symbol sub_preempt_count (err 0)

<4>[56154.788757] cifs: Unknown symbol malloc_sizes (err 0)

<4>[56154.794128] cifs: Unknown symbol unregister_key_type (err 0)

<4>[56154.800140] cifs: Unknown symbol register_key_type (err 0)

<4>[56154.806518] cifs: Unknown symbol __aeabi_unwind_cpp_pr1 (err 0)

<4>[56154.813171] cifs: Unknown symbol key_revoke (err 0)

<4>[56154.818328] cifs: Unknown symbol key_put (err 0)

<4>[56154.823394] cifs: Unknown symbol request_key (err 0)

<4>[56154.828643] cifs: Unknown symbol user_match (err 0)

<4>[56154.834014] cifs: Unknown symbol user_describe (err 0)

<4>[56154.839569] cifs: Unknown symbol dns_query (err 0)
[Android Software/Hacking General [Developers Only]] jerrystake:
Nope, the one I gave you will error with wrong signature also. The one which generated the messages in kmsg is close to what you need and looks like it mounted at some point. Anyway, change permissions on cifs.ko to 666 and it will get rid of no file found etc. Thats chmod 666 /path to file/cifs.ko.

Now we know what Lepan S signs their modules so maybe I can compile you one with right signature. I think it is just a matter of changing a script file somewhere in make system. I will look at but I am feeling poor and need to go to VA tomorrow but I will try in morning. Okay... Also, you do need root and send me the cifs you have used before
[Android Software/Hacking General [Developers Only]] D4747:
chmod 666 was successful but did not rid the no such file error. ref: https://groups.google.com/d/msg/android-kernel/Gk88monimR0/_Miyi3Y7lg8J

"it did find your file, except somehow either your module_init function didn't return 0 (for correct initialization) instead it returned -ENOENT, which was why insmod printed out that "not found" message, or are you sure you have cross-compiled your module with proper toolchain?"

This link contains the cifs.ko file and md4.ko that produced the signature mismatch - http://blog.lugru.com/2012/10/cube-u30gt-shogun-rk3066-cifs-ko-md4-ko/

Jerry, your cifs.ko produced the Unknown symbol __aeabi_unwind_cpp_pr0 errors i believe through multiple tests, so that means your cifs was close. I'll do some more research on what those errors mean.

tablet is rooted, but adb root does not work, says cannot run as root in production builds, but i read that this is fine if su is working, which it is.
[Android Software/Hacking General [Developers Only]] D4747:
From what I could understand after reviewing this thread and others: http://xdaforums.com/showthread.php?p=16796725#post16796725

I'd suggest perhaps the it is a compiler issue, a config issue, and/or a dependency issue. That thread has a solution for their seemingly similar problem.
[Android Software/Hacking General [Developers Only]] jerrystake:
what toolchain is you kernel compiled with? look at dmsg to find... I used prebuilt prebuilt/linux-x86/toolchain/arm-eabi-4.4.3. I have most all and will try to compile a generic 3.0.8
[Android Software/Hacking General [Developers Only]] jerrystake:
Okay, I was able to compile with what I believe is correct signature for you device here is signed:

Linux version 3.0.8-2040+ (jerry@sjp) (gcc version 4.4.3 (GCC) ) #2 PREEMPT Fri Dec 14 14:01:36 EST 2012

Try attached. I don't know why it wants to append the + after 2040 but try and if it doesn't work I will troubleshoot future. I turned of some features in driver to keep simple to start with... good luck Also, I changed permissions and owner to root:root so not certain that is right so play with mode ownership if problems loading
[Android Software/Hacking General [Developers Only]] D4747:
I think the attachment was forgotten
[Android Software/Hacking General [Developers Only]] jerrystake:
let me try again else I e-mailed raw file to you but not in zip so try this
[Android Software/Hacking General [Developers Only]] D4747:
The original cifs.ko produced 12 errors. After sending jerry a config.gz file I found on me Le Pan S, his lastest cifs.ko only produced 6 errors, so I believe this is progress. Errors below from in kmsg:

<4>[ 4387.213043] cifs: Unknown symbol __aeabi_unwind_cpp_pr0 (err 0)

<4>[ 4387.219512] cifs: Unknown symbol add_preempt_count (err 0)

<4>[ 4387.225555] cifs: Unknown symbol sub_preempt_count (err 0)

<4>[ 4387.231567] cifs: Unknown symbol malloc_sizes (err 0)

<4>[ 4387.236999] cifs: Unknown symbol __aeabi_unwind_cpp_pr1 (err 0)

<4>[ 4387.243652] cifs: Unknown symbol dns_query (err 0)

I'm not sure about the toolchain (or what that is). using dmesg in adb shell did not produce any info mentioning a toolchain, but it is likely I don't know how to use the command to find out. i did adb shell, su, dmesg

Is the strategy now to eliminate the remaining errors? If so, this thread mentions how the first error, unwind, is a debug feature of the eabi toolchain. http://xdaforums.com/showthread.php?t=752856&page=34

Their solution was to edit the config file or add some arguments somewhere, I don't understand the technicality.

If these symbol errors are somewhat analogous to javascipt or php programming, could the unwind 'function' possibly be unnecessary? Can the cifs.ko source be edited so that it is not called at all?

The LPS's (this is the new lepan, not 1 or 2, but S) config file has some lines related to unwind and preempt and malloc, but I don't see anything related to dns or query. These are the related lines i could find from config if it is useful:

# CONFIG_ARM_UNWIND is not set

CONFIG_TREE_PREEMPT_RCU=y

CONFIG_PREEMPT_RCU=y

# CONFIG_PREEMPT_NONE is not set

# CONFIG_PREEMPT_VOLUNTARY is not set

CONFIG_PREEMPT=y

# CONFIG_DEBUG_PREEMPT is not set

# CONFIG_PREEMPT_TRACER is not set

CONFIG_PERF_USE_VMALLOC=y

# CONFIG_XVMALLOC is not set
[Android Software/Hacking General [Developers Only]] jerrystake:
I already compile this against a newer tool chain try it anyway while I set up your toolchain

Here is the signature from the compile

Linux version 3.0.8-2040 (jerry@sjp) (gcc version 4.4.3 (GCC) ) #4 PREEMPT Fri Dec 14 22:54:

50 EST 2012

see attached if it will load

FORGET PREVIOUS: here is new module stats

jerry@sjp:~/kernels/omap-griffin-3.0.8$ modinfo cifs.ko

filename: cifs.ko

version: 1.74

description: VFS to access servers complying with the SNIA CIFS Specification e.g. Samba and Windows

license: GPL

author: Steve French <sfrench@us.ibm.com>

srcversion: 837CF18A7381268F2E50538

depends:

vermagic: 3.0.8-2040 SMP preempt mod_unload ARMv7

parm: CIFSMaxBufSize:Network buffer size (not including header). Default: 16384 Range: 8192 to 130048 (int)

parm: cifs_min_rcv:Network buffers in pool. Default: 4 Range: 1 to 64 (int)

parm: cifs_min_small:Small network buffers in pool. Default: 30 Range: 2 to 256 (int)

parm: cifs_max_pending:Simultaneous requests to server. Default: 50 Range: 2 to 256 (int)

parm: echo_retries:Number of echo attempts before giving up and reconnecting server. Default: 5. 0 means never reconnect. (ushort)

and new is attached below dis regard previuos if you already downloaded sorry but I had to enable SMP so you should be good to go. I will also e-mail the resent cifs.ko to be sure you get right one
[Android Software/Hacking General [Developers Only]] zskullz:
Cas - was that the right cable?

After you get this cable what is required to get it wired to the lepan cable and what does it allow you to do that the factory cable doesn't?

I'd really like to contribute to this project, I am just getting in to development so I may not be much help but would like to try.

Is the kernel in C++?
[Android Software/Hacking General [Developers Only]] jerrystake:
I hope cas isn't mad at me or us because we haven't heard from him in long time. He may be upset I haven't posted on git. If so he should say something and I will make it right.
[Android Software/Hacking General [Developers Only]] zskullz:
I was hoping to get his attention since he hasn't posted for a while. I am sure you could answer all of my questions except maybe if he got the right cable. I've got three of these le pan tc-970's lying around my house now and I'd really like to see ICS on them.

Is the kernel panic leaving a dump file or did you get a dump of the DSS or DISP registers? I just went through a debugging class at work and could take a look at them.

Ignore my newb question about C++, a simple Google search answered my question. I'd like to look at the code too if you have time to put it on git. Again, I'm just getting started in programming but I have to start somewhere and think this can give me a good direction and hopefully we get ICS working. My wife just got a phone with it and it's so much better.(I hadn't seen it before)

Honestly I think this is still a commonly purchased tablet since they are pretty cheap, my father in law just bought 4 of them a few months ago from HSN(three of which are now at my house) and I still see them for sale.
[Android Software/Hacking General [Developers Only]] jerrystake:
Hey, Sorry I missed this post last night. I already have a version up on git that will compile and boot to mounting sdcard. The trick is you have to setup sdcard by moding an ics or gb update to write the file system to sdcard instead of MTD Nand. I did it by modifing cas GB beta 5 edify script to mount sdcard partitions instead of pop nand partitions. I also had to modify init.rc to get adb to work. My git is at: https://github.com/sjpadgett/lepan-griffin-kernel if you want to get lay of the land. I warn you, it is not as easy as I thought as I have 30 plus years in system engineering but hardly any linux experience. I kick myself for not paying closer attention to unix when I had opportunities. So, if you are pretty good with linux, you stand a pretty good chance of catching up quickly. I suppose here pretty soon I need to write up the pitfalls I ran into so far. Oh, you may be able to re-direct uart3 to usb thru kernel instead of using serial converter but either way you need to see kernel messages.
[Android Software/Hacking General [Developers Only]] jerrystake:
Here is the stripped version. If this does not work then I don't know unless my toolchain is some how different. I leave it to you to decide where the right chain can be had. Good luck..
[Android Software/Hacking General [Developers Only]] cas_xp:
Busy :(

Hi guys

I was extrame busy recently and I will be busy till next year I think. I even don't have time to look at what you have posted it.

Maybe next year I can put some effors on ICS/new kernel.

Good luck.
[Android Software/Hacking General [Developers Only]] D4747:
Development log notes: cifs.ko seems to mount without error after jerry made some changes with the toolchain, signature related things, and turning off and on some features according to my LPS's config file i believe. using lsmod in adb shell listed cifs.ko, so we assume it's mounted. On trying to connect to a share via cifsmanager after mounting cifs.ko, the tablet reboots. This is similar to the issue that happened in this thread as well, http://xdaforums.com/showthread.php?t=752856&page=34, where after version mismatches were fixed and toolchain things, the user's phone reboot on trying to connect wifi.

CifsManager causes a reboot when trying to connect.

searching last_kmsg for 'exception', i find:

[ 228.981262] Kernel panic - not syncing: Fatal exception

...

[ 228.981445] Exception stack(0xc4d33c08 to 0xc4d33c50)

looking for 'cifs', there are many entires, for example:

[ 228.981811] [<bf113b80>] (cifs_do_mount+0x0/0x494 [cifs]) from [<c0125730>] (

mount_fs+0x1c/0xe0)

[ 228.981842] [<c0125714>] (mount_fs+0x0/0xe0) from [<c0142518>] (vfs_kern_moun

t+0x58/0x90)

[ 228.981842] r9:c4f37000 r8:c4f37000 r6:c4c9cf20 r5:bf147540 r4:c4782c80

[ 228.981842] [<c01424c0>] (vfs_kern_mount+0x0/0x90) from [<c01425ac>] (do_kern

_mount+0x3c/0xd4)

[ 228.981872] r8:00008000 r7:c4c9cf20 r6:c4f37000 r5:c4c9c9c0 r4:bf147540

[ 228.981872] r3:c4f37000

[ 228.981872] [<c0142570>] (do_kern_mount+0x0/0xd4) from [<c014279c>] (do_mount

+0x158/0x774)

[ 228.981903] r8:00008000 r7:c4c9c9c0 r6:c4c9cf20 r5:00000000 r4:00000020

[ 228.981903] r3:c4f37000

[ 228.981903] [<c0142644>] (do_mount+0x0/0x774) from [<c0142e44>] (sys_mount+0x

8c/0xcc)

[ 228.981933] [<c0142db8>] (sys_mount+0x0/0xcc) from [<c004ef00>] (ret_fast_sys

call+0x0/0x30)

[ 228.981933] r7:00000015 r6:00000000 r5:00000000 r4:0161c008

[ 230.120452] SMP: failed to stop secondary CPUs

[ 230.120452] Rebooting in 5 seconds..

[ 230.467407] CPU0: stopping

[ 230.470428] Backtrace:

[ 230.473022] [<c0053224>] (dump_backtrace+0x0/0x110) from [<c058cc24>] (dump_s

tack+0x18/0x1c)

[ 230.481933] r6:c782a000 r5:c0046eb0 r4:c075c280 r3:c782a000

[ 230.487945] [<c058cc0c>] (dump_stack+0x0/0x1c) from [<c00483dc>] (do_IPI+0x18

0/0x198)

[ 230.496215] [<c004825c>] (do_IPI+0x0/0x198) from [<c004e9c8>] (__irq_svc+0x48

/0xe0)

[ 230.504272] Exception stack(0xc782bd28 to 0xc782bd70)

Does this mean it's mounted correctly, but theres some error? I suppose these types of errors above are too difficult to debug? They seem very foreign and non-specific.
[Android Software/Hacking General [Developers Only]] jerrystake:
I did not turn on all features available for the driver so it may be missing a feature. Find a cifs.ko that worked for someone else'e devices and download it your computer and do a modinfo cifs.ko and post results. If you are not on linux then post for me and I will do it. I will try again with all other featrures turn on in driver. I know you are frustrated and hope I can help you get this figured out so I will do my best,

jerry

---------- Post added at 11:00 AM ---------- Previous post was at 10:55 AM ----------

[/COLOR]

CAS_XP>>>Did the cable you bought work so others know who want to do the same thing? Busy or not, a little curiousness toward those whose donated to get you equipment for your help would be appropriate. But you just disappeared, which to me, seems rude. I appreciate all the work you put into cm7 but am disappointed you decided to leave folks hanging. Not like a Canadian at all....
[Android Software/Hacking General [Developers Only]] jerrystake:
here is new cifs compile from code sourcery toolchain. I did a dist clean and compiled from your config. You could require other modules but not sure hope this one works.. I need a new keyboard or thinner fingers..lol

EDIT Looks like these may be required for cifs the md4.o was compiled with original kernel according to .config from your device but the nls_utf8.ko was not. May be your issue so try mounting the utf8 then cifs. as last resort md4 may be needed anway. I attached the other two drivers.