yashsingh1/xdaforums huggingface dataset:
[G Tablet Android Development] sargorn:
Hmm, was looking like it was going to work, but doesn't seem to have.

Edited device/nvidia/harmony/BoardConfig.mk:

BOARD_KERNEL_CMDLINE := mem=800M@0M nvmem=64M@800M vmalloc=192M video=tegrafb console=ttyS0,115200n8 usbcore.old_scheme_first=1 cpuid=200102 devicetype=1002 btmac=9c5ed6131a00 tegraboot=nand mtdparts=tegra_nand:16384K@12032K(misc),16384K@62208K(recovery),16384K@79104K(boot),204800K@96000K(system),222464K@301312K(cache),4096K@7424K(bootbmp),32768K@28928K(logodata) androidboot.hardware=harmony

and:

total
Mem: 446856

Had tried 960mb but it wouldn't boot.

Trying a make clean then recompile just in case.

Edit:

Just recompiled after a make clean and the 800mb change there doesn't boot either. (Doesn't go past the 'first' boot image. (on a gtab it'd be the viewsonic one).
[G Tablet Android Development] pershoot:
load up the big ideas rom.

cat /proc/cmdline

put that as the CMD value, but leave the end (if building CM7): androidboot.hardware=harmony
[G Tablet Android Development] sargorn:
That did the trick! Thanks!

For reference, the change to CMDLINE was:

BOARD_KERNEL_CMDLINE := mem=448M@0M nvmem=64M@448M mem=512M@512M vmalloc=192M
[G Tablet Android Development] :
are there any reference links available for optimizing the individual apks like with the fastest evo roms? aka rmoving all other langs except english from each, etc
[G Tablet Android Development] lordofazeroth:
I always get a timeout :(
[G Tablet Android Development] rajeevvp:
You'll have to be patient. Kernel.org was offline for more than a month because of a security breach. They're slowly restoring services.
[G Tablet Android Development] lordofazeroth:
Used the sources here:

http://gitorious.org/asac-android-platform
[G Tablet Android Development] lordofazeroth:
Hi.

I am compiling a kernel for a Hannspree Hannspad. It is similar to Gtab or Advent Vega, the kernels are compatible, except some things do not work (Buttons on the right side, etc.)

Now I am using a kernel from github.

This one:

https://github.com/ab73-hp-tab/ab73kernel-Hannspad-2632

I also have this kernel in a zip file, installable and properly coded by the developer.

I followed this tutorial and have zImage and modules on my harddisk.

But now I am stuck at step 4.

I simply replaced the zImage and module files in the already compiled kernel.

Is this the correct way?

I don't think I can use pershoots boot for my tablet, although Hardware is very much the same.

Can you give me a hint how to zip the kernel properly for my Tablet?
[G Tablet Android Development] rajeevvp:
Just replace the kernel (zImage) and modules (usually, only the wireless LAN module, bcm4329.ko) in the original kernel zip file with your newly compiled ones.

You may also have to sign the new zip file, depending on whether your recovery checks signatures by default or not. There are plenty of tutorials available, both on the web and on this site, with step by step instructions on how to sign a zip file.
[G Tablet Android Development] Thexfactor2011:
I was wondering what steps changed if you have a 1.2 bootloader vs. a 1.1 bootloader. Do I need to add any additional config lines or commands when building the image?

Putting on the learning cap and trying a project. ;)
[G Tablet Android Development] lordofazeroth:
Thank you for the reply.

When compiling the kernel I get a lot more modules than the normal kernel.

What to do with these?

there seems to be a ntfs module too after compilation. (thats the name of the folder)
[G Tablet Android Development] lordofazeroth:
One more problem:

After compiling (unchanged) a well working (no Sleep of Death) kernel I get a lot more Sleep of Death.

Does anybody have a clue where they come from?
[G Tablet Android Development] rajeevvp:
That's up to you, really. My suggestion is to do what pershoot does with his kernels. He has 2 files for download. The first is the flashable zip file which has the kernel image and the WLAN-related files (the kernel module and WiFi firmware blobs). The other is a tar gzipped file containing the rest of the compiled kernel modules.

Opinions are divided at the moment. Pershoot thinks its a Tegra 2 hardware bug for his kernels. Clemsyn thinks its related to the WiFi module and the CPU governor for his kernels. I think its badly coded nVidia/VS/Malata kernel source. There is a dedicated SOD thread on slatedroid.com where Clemsyn has trial kernels which seem to fix the SOD problem (for his kernel).

Try using the same compiler, compiler flags, optimization levels as the originally compiled kernel.

---------- Post added at 10:02 PM ---------- Previous post was at 09:55 PM ----------

Answered here.
[G Tablet Android Development] lordofazeroth:
Thank you for the answer :)

I'd like to add:

It seems that using the newest gcc 4.6 cross compiler has solved the SoD problems. :)
[G Tablet Android Development] lordofazeroth:
Another problem:

When I enter lsmod in terminal it shows me, no modules are loaded.

That is odd, because my kernel has a bunch of modules, so some of them shoud be.
[G Tablet Android Development] rajeevvp:
lsmod is a very simple program. It just pretty-prints the contents of /proc/modules. What does this command output?

gTablet$ [B]cat /proc/modules[/B]
dhd 201239 0 - Live 0xbf046000
cifs 235816 3 - Live 0xbf000000

Did you enable modules support when you compiled the kernel? Did you build the drivers/filesystems/.../whatever as modules?
[G Tablet Android Development] lordofazeroth:
Answer is I didn't activate the module....

Another question for compilation:

When I compile the kernel I use

make -C <KernelSoucre> ARCH=arm CROSS_COMPILE=<Crosscompilerpath> zImage

make -C <KernelSoucre> ARCH=arm CROSS_COMPILE=<Crosscompilerpath> modules

Then I enter a directory in which is a Makefile.

then I enter just

make

Is the output compiled with crosscompiler or compiled against my linux (ubuntu) Kernel?
[G Tablet Android Development] rajeevvp:
I'll let you figure out the answer yourself. Compile again with a V=1 parameter added to the make command lines.
[G Tablet Android Development] adityadeva:
when I try to compile a cm7 kernel I get the following error message can you help me please

cannot make it out

solar1@solar-Compaq-Presario-CQ50-Notebook-PC:~/android/kernel/cm-kernel$ make ARCH=arm CROSS_COMPILE=$CCOMPILER -j`grep 'processor' /proc/cpuinfo | wc -l`

scripts/kconfig/conf --silentoldconfig Kconfig

CHK include/linux/version.h

UPD include/linux/version.h

CHK include/generated/utsrelease.h

UPD include/generated/utsrelease.h

HOSTCC scripts/genksyms/genksyms.o

SHIPPED scripts/genksyms/lex.c

SHIPPED scripts/genksyms/parse.h

SHIPPED scripts/genksyms/keywords.c

SHIPPED scripts/genksyms/parse.c

HOSTCC scripts/genksyms/lex.o

HOSTCC scripts/genksyms/parse.o

HOSTLD scripts/genksyms/genksyms

CC scripts/mod/empty.o

cc1: error: unrecognized command line option "-mlittle-endian"

cc1: error: unrecognized command line option "-mapcs"

cc1: error: unrecognized command line option "-mno-sched-prolog"

scripts/mod/empty.c:1:0: error: unknown ABI (apcs-gnu) for -mabi= switch

scripts/mod/empty.c:1:0: error: bad value (armv4t) for -march= switch

scripts/mod/empty.c:1:0: error: bad value (arm9tdmi) for -mtune= switch

make[2]: *** [scripts/mod/empty.o] Error 1

make[1]: *** [scripts/mod] Error 2

make: *** [scripts] Error 2

make: *** Waiting for unfinished jobs....
[G Tablet Android Development] rajeevvp:
Make sure the value of CCOMPILER is correct, or, explicitly set CROSS_COMPILE to the ARM cross compiler that's installed on your system--see first post for examples.

Add the V=1 parameter to make to find out the actual compiler command line being used.
[G Tablet Android Development] adityadeva:
br,

Thanks a lot for the kind attention. as pointed out by you I downloaded the eabi tool chain compiler for arm. and am following the instructions as told in the very first post. the compiliation progressed much more before I got this error

solar1@solar-Compaq-Presario-CQ50-Notebook-PC:~/android/kernel/cm-kernel$ make -C ~/android/kernel/cm-kernel/ ARCH=arm CROSS_COMPILE=/home/solar1/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi- zImage

make: Entering directory `/home/solar1/android/kernel/cm-kernel'

CHK include/linux/version.h

CHK include/generated/utsrelease.h

make[1]: `include/generated/mach-types.h' is up to date.

CC kernel/bounds.s

GEN include/generated/bounds.h

CC arch/arm/kernel/asm-offsets.s

GEN include/generated/asm-offsets.h

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

...........................................................(dots show the progress in compile)

CC kernel/module.o

CC kernel/kallsyms.o

CC kernel/acct.o

CC kernel/kexec.o

CC kernel/cgroup.o

CC kernel/cgroup_freezer.o

CC kernel/cpuset.o

kernel/cpuset.c: In function 'cpuset_can_attach':

kernel/cpuset.c:1385: error: 'task' undeclared (first use in this function)

kernel/cpuset.c:1385: error: (Each undeclared identifier is reported only once

kernel/cpuset.c:1385: error: for each function it appears in.)

make[1]: *** [kernel/cpuset.o] Error 1

make: *** [kernel] Error 2

make: Leaving directory `/home/solar1/android/kernel/cm-kernel'

can you please help me out.

also I used v=1 option and found the following errors.

make ARCH=arm CROSS_COMPILE=$CCOMPILER -j`grep 'processor' /proc/cpuinfo | wc -l` v=1

CHK include/linux/version.h

CHK include/generated/utsrelease.h

make[1]: `include/generated/mach-types.h' is up to date.

CALL scripts/checksyscalls.sh

CHK include/generated/compile.h

CC mm/bootmem.o

CC kernel/cpuset.o

CC mm/filemap.o

kernel/cpuset.c: In function 'cpuset_can_attach':

kernel/cpuset.c:1385: error: 'task' undeclared (first use in this function)

kernel/cpuset.c:1385: error: (Each undeclared identifier is reported only once

kernel/cpuset.c:1385: error: for each function it appears in.)

make[1]: *** [kernel/cpuset.o] Error 1

make: *** [kernel] Error 2

make: *** Waiting for unfinished jobs....

CC mm/mempool.o

CC mm/oom_kill.o

CC mm/fadvise.o

CC mm/maccess.o

CC mm/page_alloc.o

CC mm/page-writeback.o

mm/page-writeback.c: In function 'write_cache_pages':

mm/page-writeback.c:860: internal compiler error: Segmentation fault

Please submit a full bug report,

with preprocessed source if appropriate.

See <http://gcc.gnu.org/bugs.html> for instructions.

make[1]: *** [mm/page-writeback.o] Error 1

make[1]: *** Waiting for unfinished jobs....

make: *** [mm] Error 2

sorry for the long post But I have no option left.
[G Tablet Android Development] rajeevvp:
This doesn't look like a pershoot kernel for the ViewSonic gTablet. Which device are you trying to compile the kernel for? If it is not the gTablet, then you should ask on the developer forum for your device.

The parameter is wrong. It should be V=1, not v=1.

An "internal compiler error" is, generally, an indication of overheating CPUs or bad RAM. If you're compiling on a desktop, run the compilation again with the metal enclosure off.
[G Tablet Android Development] GTabJosh:
I know this thread has been dormant for a long time, but it's exactly the information I need. Unfortunately, the structure of the prebuilt toolchain has changed. When I download the components, there is no /arm-eabi-4.4.0 directory. No problem, I think -- there is a /arm-eabi-4.4.3 directory, and I change the kernel compile command to reflect this change:

make -C /usr/src/tegratab/gtab-2632/ ARCH=arm CROSS_COMPILE=/usr/src/tegratab/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- zImage.

Well, it looks like a file it needs is missing from the path. Here is the error I get:

/usr/src/tegratab/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/as: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

The only libz.so.1 file I can find in the toolchain is in /usr/src/tegratab/prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/sysroot/usr/lib

I'm pretty sure I don't want to use anything from a "i686" directory for the Gtab. I'd greatly appreciate some guidance here; I'm just a novice and I've run out of ideas.

Thanks!

Josh
[G Tablet Android Development] Deadly:
@gtabjosh... which os are you using.. is it a 32/64 bit?

[optional] Install lib32stdc++ (if your development machine is running a x64 variant of linux). This is a necessary step to use the prebuilt android toolchain as it is compiled for a 32 bit machine.

sudo apt-get install git-core libncurses-dev lib32stdc++6

Did you do that? Or there is one more option.. try ia32-libs

http://www.debian-administration.org/articles/534

Sent from the MUST have app!
[G Tablet Android Development] labsin:
Extra info:

To use make menuconfig (for configuring kernels) in Ubuntu 12.04+ you also need lib32ncurses5-dev.
[G Tablet Android Development] Deadly:
Well you need that if you want to use make menuconfig.

Otherwise its not needed.. I don't use it and I still make 2 kernels for 2 devices..

He has some other issue..

Sent from the MUST have app!
[G Tablet Android Development] GTabJosh:
I'm running Linux Mint 13 (on a virtual machine using VMware). It won't tell me the corresponding Ubuntu version, but the kernel is 3.2.0-23, for x64. I installed ncurses-dev and lib32stdc++. I'm also using make ... menuconfig. I'll check out the options you two have suggested. Thanks again for your help.

Josh

Edit: This problem solved. I just had to install another lib: sudo apt-get install lib32z1. I'm glad I got your brains spun up tho. I'm sure I'll trip on every step I have left :/
[myTouch 4G Q&A, Help & Troubleshooting] EmceeGeek:
I've searched XDA/AndroidForums/AndroidCentral for the MT4G stock rom and I can't find it. I did a nandroid backup of it, but I guess along the way it got deleted. I tried to unroot the phone to see if that puts it back on stock but it doesn't. If you know of any other way, or know where I can get the stock rom please let me know. Closest I've gotten to it is Ice Glacier and thats not cutting it if I have to do a warranty exchange.
[myTouch 4G Q&A, Help & Troubleshooting] RavenWulf:
look in Development section for thread titled Resource Bible, scroll down until you find Stock Restore

Stock Nandroid Restore and the completely stock ota update that will break root
[HD2 Android Themes and Apps] MartyLK:
Would this work to replace a launcher? Suppose I have a normal FroYo Nexus One ROM with the 5 page Launcher2 installed and want to install the 7 page G2 Launcher2, would I be able to simply delete the current Launcher2 and paste the new Launcher2?

Also, what does it mean if files and folders won't delete? I've tried to change kernels using DE but I select to delete the zImage and associated modules but they don't delete.
[HD2 Android Themes and Apps] patmorris:
I'm not sure if it is as simple as that, but maybe. I suppose it couldn't hurt to try. I'm really kind of new to all of this but I can say I've had a bit of trouble with Droid Explorer. The first time I used it I screwed something up and had to reflash. Also, for some reason sometimes when I connect it only shows maybe a third of the files in any given folder. Usually if I disconnect and reconnect a few times it connects properly and then I can see everything in there. I'm certainly no expert on the subject of Droid Explorer, I've only started using it recently.
[HD2 Android Themes and Apps] MartyLK:
I have the same experience with showing files and folders. I usually have to disconnect and exit DE 2 or 3 times before it will work normally.

I will give the launcher a try and see if I can get it to work when I flash the specific ROM I desire to use it with. But I didn't know if there was something else I needed to do to make DE delete files. In SUFSB, you have to tap the little "s" to make it red, which puts the system into read/write, before it will delete or replace files in SD builds. Whether there's some specific button or such to enable in DE, I do not know and can't get anyone in the other section to answer.

Thanks for the reply.
[HD2 Android Themes and Apps] patmorris:
I think I just highlighted the file and pressed delete in DE. I didn't do anything special I don't think.
[HD2 Android Themes and Apps] galapogos01:
FYI, I couldn't get the UOL kitchen to work work with the stock Desire framework from the DFT "Stock" ROM so modified it by hand. You can find a link here inc. install instructions:

http://xdaforums.com/showpost.php?p=10253074&postcount=2004
[HD2 Android Themes and Apps] Ramidalf:
Thank You. It's working.

I dont know why but Droid Explorer showed root folder as an empty folder

So I just used UOT Kitchen to create zip file and updated like any update by using MAGLDR.

Usefull Info

I like your battery style. very convenient.

Thank you.
[HD2 Android Themes and Apps] Ramidalf:
How did you change time theme. For example, I have a timer in the left upper corner with NO pm/am. But you have it on the picture. Where is that folder which contains clock design?
[HD2 Android Themes and Apps] patmorris:
It's not part of framework-res.apk. I think you need to go into Android settings for the clock. Date & time. Mine is set to use network provided values, and not to use 24 hour time.
[HD2 Android Themes and Apps] Ramidalf:
I did the way you told me. That's right there are two options but am/pm doesn't show up anyway. I'm running Gingerbread so i think that am/pm sign was excluded.

Its not important. I just was curious.

Thank you for reply
[HD2 Android Themes and Apps] patmorris:
yes, the ever wonderful bootloop. It has become my friend... I was using droid explorer just now and I got as far as deleting framework-res.apk but got stuck trying to put the new one in there. The phone started to bootloop on its own and amazingly somehow I was able to put the new framework-res.apk in there while it was bootlooping. Probably a freak occurence. I thought for sure I'd have to reflash.

I wonder if you just copy and paste all the .png's and battery .xml's from the framework-res.apk I've provided into the gingerbread one it would work? I think I changed the framework-res.apk around on MDJ's SD card gingerbread build like that, but I haven't tried the NAND build at all.
[HD2 Android Themes and Apps] iwin2000:
My root folder is empty, what do I do?
[HD2 Android Themes and Apps] patmorris:
Just hit the connect to device button a bunch of times until it connects properly and shows everything as being there like it should. I've really been having trouble with Droid explorer today. It wouldn't delete files or put them back like usual. I used root explorer to delete framework-res.apk from within Android. Then I had to let it start bootlooping and then Droid explorer was able to copy my new framework-res.apk into the system. It worked but I'm not realy happy with that sort of performance.
[HD2 Android Themes and Apps] pr0x2:
wow that is ALLOT of work lol.
[HD2 Android Themes and Apps] Nirvana Rules:
Works like a charm

Thanks man.

Your guide is awesome I'm using MT4G running Ice Glacier 1.1.6 Themed with Red Glacier and all it needed were animations. I have been trying for days to get it working. Thanks a lot.:D
[HD2 Android Themes and Apps] mattfmartin:
If anybody can make this work on the JDMS 1.7 NAND build, it would be awesome if you could upload a framework-res. Don't care what it looks like as long as it's got % numbers. I couldn't get it to work.
[HD2 Android Themes and Apps] patmorris:
Is that build squashed? If not post your framework-res.apk and I'll try and mess with it later tonight or tomorrow. The hardest part for me lately has been getting the file on the phone. Droid explorer has not been treating me well.
[HD2 Android Themes and Apps] mattfmartin:
Hey Pat Morris, yea the build is not squashed Thanks again for your effort, I really appreciate it. Here is the framework-res.apk:D
[HD2 Android Themes and Apps] patmorris:
I hope this works.

I beg of you please back up everything first cause if you don't you will most likely have to reflash. I don't know if you use clockwork, but if you do here it is in flashable zip. I don't use clockwork so I can't tell you if the flashable zip method works, but it should. Otherwise just extract the zip. Droid Explorer is the only way I've found to get the new framework-res.apk put in framework folder properly. there are probably other ways. they didn't work for me at least.
[HD2 Android Themes and Apps] mattfmartin:
Thank you Pat Morris I really appreciate it my friend:):):)
[HD2 Android Themes and Apps] patmorris:
no problem. Let me know if it works or not.
[HD2 Android Themes and Apps] mattfmartin:
It didnt flash with clockwork, It just aborted it. Also a no go with Droid Explorer. What is the command to ADB push it back if the framework res.apk is on my sd card. Is it this?

adb remount

adb push framework-res.apk/system/framework

adb remount

Ive only adb pulled things, never pushed. That might work but dont know the right commands.
[HD2 Android Themes and Apps] patmorris:
That stinks. I'm not really sure what the exact commands are but I tried something similar the other day and it kept telling me something like adb not found. The only way droid explorer works for me now is to start the bootloop and then connect. I changed the op a little. Kinda wierd but its been working for me.
[HD2 Android Themes and Apps] mattfmartin:
Well thanks for trying;p
[HD2 Android Themes and Apps] patmorris:
hey check this out

http://www.youtube.com/watch?v=Z3SpI7m7mFI

I pushed an app to system/app no problem.

But framework-res.apk was deleted by this command (I was monitoring with Root Explorer):

adb push ./framework-res.apk /system/framework/framework-res.apk

So I tried again and it told me out of memory on disk blah blah can not copy framework-res.apk

I held power button and started bootloop on my phone and gave it again the command during bootlooping:

adb push ./framework-res.apk /system/framework/framework-res.apk

and, framework-res.apk was pushed. Bootloop stopped and my phone booted. try the bootloop. its scary but thats like 5th time its worked for me.
[HD2 Android Themes and Apps] mattfmartin:
How do I force my phone into bootloop if the files aren't corrupted?
[HD2 Android Themes and Apps] patmorris:
Delete framework-res.apk from android system first. When I delete framework-res.apk, and then press the power/end hardkey as if to bring up the power menu it just starts bootlooping. Then while its bootlooping I can connect properly Droid Explorer and copy the file over or push with adb.
[HD2 Android Themes and Apps] mattfmartin:
cool, will try thanks

When you put that command in, was the apk on your sd card, or in tools folder of android-sdk-windows?
[HD2 Android Themes and Apps] patmorris:
I think i created a new folder in tools called "push" so I wouldn't get all confused about where my files are but you don't have to. Just make sure to enter:

cd C:\whereveryourframework-res.apkis

mine was:

C:\adnroid-sdk-windows\tools\push

I did it just like the you tube video. But the push didn't work right until the phone was bootlooping. Hope it works for you. Pushing this file seems to be a major pain in the butt for some reason.
[HD2 Android Themes and Apps] mattfmartin:
Holy SH### it worked, dont know how, or why but that bootlooping action was the only the only way it took it. I better back this bad boy up now before something goes wrong. Finally after beating my brain for like 3 days:) Thanks again. Yea i adb pull things all the time. Just never pushed them back with adb. Always used droid explorer, or root explorer.

Upadate:

Whenever i reboot, it reverts back to the original one. Very weird. Guess I'll just have to do it manually every time I reboot my phone. Damn just when everything was working.
[HD2 Android Themes and Apps] wrecless:
Here Is Much easier way to do this Just place your framework-res.apk into the attached folder. Plug your phone into the computer with USB debug on and Charge only selected then click change framework. Your phone will reboot and you will have to re-enter your Google and Htc accounts
[HD2 Android Themes and Apps] demonmagic:
hahahahaha this is funny