yashsingh1/xdaforums huggingface dataset:
[Galaxy Tab Q&A, Help & Troubleshooting] elbogi:
Just bought a Galaxy Tab from a coworker whom had already rooted and installed a custom firmware (Overcome). However, I want to re-stock it to its original state but I´m having trouble finding the correct firmware for my region Norway (Nordic).

I have tried the re-stock option that Overcome has described but this stock rom does not include Norwegian as a language. Can anybody please help me?

Vegard
[Galaxy Tab Q&A, Help & Troubleshooting] bearnr1:
Hi, I'm actually having the same problem. And especially now when I've bought the nordic keyboard dock too, that doesn't work unless I have the original firmware. Anyone have any suggestions? Really need help, been working all day to fix this...still no luck :(
[Galaxy Tab Q&A, Help & Troubleshooting] skylt:
I'm giving it a try by spoofing FW with SpoofFW from market (but i got into trouble with the backup part of it)

discussed here:

http://xdaforums.com/showthread.php?t=959806
[Galaxy Tab Q&A, Help & Troubleshooting] skylt:
Now running stock gingerbread NEE firmware on my tab - weird thing though is that most of my old apps and accounts still work?

I'm not sure if I should do a factory reset or not, ppl seems to have had problems with it...
[Galaxy Tab Q&A, Help & Troubleshooting] Crunch77:
Had the same issue with not being able to get Danish samsung keyboard again after flashing custom rom. Some people even said, it was not possible to download a nordic rom.

Using the web version of Check Fus I was able to dowload a Nordic rom by selecting Sweden, and after installing it with Odin and the mr. pit file from samfirmware I finally managed to get a Nordic firmware with Danish keyboard working with the keyboard dock. :)

http://fus.nanzen.se/
[EVO 4G Q&A, Help & Troubleshooting] barleydude:
So a while back I rooted using the following method:

http://xdaforums.com/showthread.php?t=690762

http://xdaforums.com/showthread.php?t=701835

Some more info about my phones current state:

Firmware: 2.1-update1

Baseband: 1.36.00.04.02

Software: 1.32.651.1

PRI: 1.34_003

PRL: 60680

Running Amon-Ra v2.3 recovery.

I'm wanting to upgrade to gingerbread, and also stay stock with sense. I found the following thread with a gingerbread rooted rom and the radios:

http://xdaforums.com/showthread.php?t=1133379

Is this as simple as placing the Odexed/De-Odexed zip in the root folder, going into recovery, and selecting "flash zip from sdcard"?

Of course I'd do a nandroid backup prior and then wipe data/cache/dalvik. (Would I need to wipe data in my case?)

I'd also like to upgrade the radios too. The rooted gingerbread thread states that must be flashed through hBoot/Fastboot, and not recovery. In this case do I just place the radio zip on the root directory, then go into fastboot->bootloader, and have the phone flash that way?

It's seems pretty simple, that's why I'm questioning it. Thanks for any help!
[EVO 4G Q&A, Help & Troubleshooting] Jim M:
It is that simple. In your instance going from a stock sense ROM to another stock ROM, you won't need to wipe, sort of,

you need to flash the same type of ROM you are running (odexed or de-odexed) if you are not going to wipe.

After you flash your new ROM, place the update PC36IMG on the SD card and then load into recovery, it will see the file and ask if you want to update. That's it, just take the PC36IMG off the SD card (or rename it) after it installs.
[EVO 4G Q&A, Help & Troubleshooting] barleydude:
Thanks for the reply! I'm guessing the rom I loaded was odexed (it doesnt state in that thread). So I could load the de-odexed version, I'd just have to wipe data/cache/dalvik.
[EVO 4G Q&A, Help & Troubleshooting] barleydude:
So I was able to flash the rooted gingerbread rom. I was going to then flash the radio, but can no longer enter the bootloader by holding volume down + power. Any ideas? Am I in fastboot mode?
[EVO 4G Q&A, Help & Troubleshooting] teh roxxorz:
Seems like it; boot into the os, go to setting > applications > development, then uncheck fastboot.
[EVO 4G Q&A, Help & Troubleshooting] barleydude:
Haha, I just read that here [http://xdaforums.com/showthread.php?t=722075] after posting that. I'll give that a shot. Thanks!!

EDIT: That did the trick! Now to flash the radio!
[EVO 4G Q&A, Help & Troubleshooting] barleydude:
Awesome, all updated! I ended up having to wipe data/cache/dalvik (was in a 4G screen reboot). Oh well, I don't mind starting with a fresh install. Time to crack open a beer and enjoy the "new" phone!
[EVO 4G Q&A, Help & Troubleshooting] teh roxxorz:
Ha ha, remember, no drunk flashing. :p
[EVO 4G Q&A, Help & Troubleshooting] barleydude:
Whoops, too late! HAHA :D
[Xperia Play General] sfex3best:
I was trying to get my dreambox working on my xperia play but I get this error. Any ideas on how to fix this?

http://imageshack.us/photo/my-images/705/screenshot3bg.png/
[LG Optimus 2x] pastime1971:
this thread is a short how to compile lge_star_kernel for cm7. as i am a noobie, if there is mistake, wrong, etc. please correct me.

there is cm kernel how to at http://wiki.cyanogenmod.com/wiki/Building_Kernel_from_source. i will make a few change from there for p990 (shown in bold)

benee in vorkKernel project posted how to compile vorkKernel at https://github.com/VorkTeam/vorkKernel-Scripts/wiki

git tutorial at http://gitref.org/creating/

lge-kernel-star is at http://github.com/CyanogenMod/lge-kernel-star/

# how to #

0. install required development support package : (see cm kernel how to)

0. assuming that cm rom source in ~/android/system and kernel source in ~/android/kernel for 1A and 1B or ~/android/system/kernel for 1C

1A. download kernel source : (first time only. you can use git for deltas only. see post #4 and follow step 1B instead)

> mkdir -p ~/android/kernel

> cd ~/android/kernel

> git clone git://github.com/CyanogenMod/lge-kernel-star.git

> cd lge-kernel-star

1B. update kernel source by git for new commits

> cd ~/android/kernel/lge-kernel-star

> git pull

1C. alternatively, set up git for cm repo

> cp local_manifest.xml ~/android/system/.repo/local_manifest.xml

> cd ~/android/system

> repo sync -j16 kernel/lge-kernel-star

> cd ~/android/system/kernel/lge-kernel-star

2. set up compiler prefix : we need "ARM EABI Toolchain" from prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/ in CM ROM source tree (4.4.3 also works, and i'm using it)

> export CCOMPILER=${HOME}/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-

3. copy config

> cp arch/arm/configs/star_cyanogenmod_defconfig .config

4. run configuration

> make ARCH=arm CROSS_COMPILE=$CCOMPILER oldconfig

5. build

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

6. copy kernel and modules to cm source device folder (zImage is renamed as kernel)

> cp arch/arm/boot/zImage ~/android/system/device/lge/p990/kernel

> cp drivers/net/wireless/bcm4329/wireless.ko ~/android/system/device/lge/p990/prebuilt/wireless.ko

7. build CM ROM using the compiled kernel and modules

p.s. i use a bash script that does 2 to 6 automatically.
[LG Optimus 2x] pastime1971:
kernel source mod

# version : the current versioning that shows up in Settings > About phone > kernel version is a bit hard to follow if everybody compiles his/her own kernel. i customize lge-kernel-star/scripts/mkcompile_h and use date as version

46: DATETODAY=`date +"%Y%m%d"`

47: UTS_VERSION="$DATETODAY#$VERSION"

# compiled by : since i have a different username on linux system that i use, force it to show the name you want on it.

67: echo \#define LINUX_COMPILE_BY \"YOUR_NAME\"

68: echo \#define LINUX_COMPILE_HOST \"YOUR_MACHINE\"
[LG Optimus 2x] pastime1971:
here is my (simplified) shell script to compile kernel

#!/bin/sh
export CCOMPILER=${HOME}/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
cd ${HOME}/android/kernel/lge-kernel-star || exit
${CCOMPILER}gcc --verbose || exit # show the cross compiler
\cp arch/arm/configs/star_cyanogenmod_defconfig .config
make ARCH=arm CROSS_COMPILE=$CCOMPILER oldconfig
make ARCH=arm CROSS_COMPILE=$CCOMPILER -j`grep 'processor' /proc/cpuinfo | wc -l`

edit: added a printout of manual checking of compiler in line 4
[LG Optimus 2x] pastime1971:
Following is from myfluxi
[LG Optimus 2x] temasek:
Thanks for sharing. I suppose that's the next fun thing to learn. :)

Oh btw how do u add/remove kernel or init.rc commits?
[LG Optimus 2x] sibbor:
Exactly what I looked for the other day. Thanks a lot pastime1971!!

This time I won't fail ;-)

EDIT: but I did... I guess it's the export that made me fail?

sibbor@ubuntu:~/android/kernel/lge-kernel-star$ make ARCH=arm CROSS_COMPILE=$CCOMPILER -j`grep 'processor' /proc/cpuinfo | wc -l`
scripts/kconfig/conf -s arch/arm/Kconfig
CHK include/linux/version.h
SYMLINK include/asm -> include/asm-arm
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
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"
cc1: error: unrecognized command line option "-mno-thumb-interwork"
scripts/mod/empty.c:1:0: error: unknown ABI (aapcs-linux) for -mabi= switch
scripts/mod/empty.c:1:0: error: bad value (armv5t) for -march= switch
make[2]: *** [scripts/mod/empty.o] Error 1
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
[LG Optimus 2x] pastime1971:
the way i understand it is that boot.img is built w/ kernel (as prebuilt) and init ram disk when you brunch.

there are several init.rc involved. (see out/target/product/p990/root/)

for example w/ secure clock commit, init.p990.rc is from device/lge/p990/init.p990.rc

so, i build (brunch) cyanogen w/ kernel (zImage goes to device/lge/p990/kernel and modules go to device/lge/p990/prebuilt/) compiled as above and init.rc's changed in cm (you could cherry pick them, i suppose)

for kernel itself, i don't know if you can cherry pick them or not. typically, i just apply diff patches. (if someone know how to cherry pick kernel commits, please let us know.)
[LG Optimus 2x] temasek:
Thanks.

I'll have a go and it when I'm free. Good to have u onboard. :)
[LG Optimus 2x] pastime1971:
can you "echo $CCOMPILER" or "env | grep CCOMPILER" before make to ensure that it is exported correctly ?

it re-defines to use those arm-eabi-gcc and others. see lge-kernel-star/Makefile, line 309 : CC = $(CROSS_COMPILE)gcc

without it, you would be calling gcc which doesn't understand -mlittle-endian or other options in that log

edit: i commented out the line of export from my shell script, and i get the exact same error message. it must be export issue.

edit: you should get the following when you do "${CCOMPILER}gcc --verbose"

> ${CCOMPILER}gcc --verbose

Using built-in specs.

Target: arm-eabi

Configured with: /home/jingyu/projects/gcc/android-toolchainsrc/build/../gcc/gcc-4.4.3/configure --prefix=/usr/local --target=arm-eabi --host=x86_64-linux-gnu --build=x86_64-linux-gnu --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --with-gmp=/home/jingyu/projects/gcc/toolchain_build/gingerbreadobj/temp-install --with-mpfr=/home/jingyu/projects/gcc/toolchain_build/gingerbreadobj/temp-install --disable-libssp --enable-threads --disable-nls --disable-libmudflap --disable-libgomp --disable-libstdc__-v3 --disable-sjlj-exceptions --disable-shared --disable-tls --with-float=soft --with-fpu=vfp --with-arch=armv5te --enable-target-optspace --with-abi=aapcs --with-gcc-version=4.4.3 --with-binutils-version=2.19 --with-gmp-version=4.2.4 --with-mpfr-version=2.4.1 --with-gdb-version=7.1.x --with-arch=armv5te --with-multilib-list=mandroid --with-sysroot=/usr/local/google/home/android/cupcake_rel_root --enable-gold=both/gold --program-transform-name='s&^&arm-eabi-&'

Thread model: single
[LG Optimus 2x] pastime1971:
thanks for your advice. i updated the first post accordingly.

edit: w/ today's commit, i tried "git fetch", and nothing happens. tried "git pull" and it downloads new commits. updated the first post. comment welcome if you know the difference between fetch and pull.
[LG Optimus 2x] sibbor:
Managed to build the kernel now. Will see if my freshly compiled Kang include it or not. If it's included I think it's magic... because I had to create the folders manually where I copied the zImage. Feels like it should already have been there, no?

Hey, pastime, you've got an error in point #6:

cp arch/arm/boot/zImage ~/andoid/system/device/lge/p990/kernel

should be

cp arch/arm/boot/zImage ~/and[B]r[/B]oid/system/device/lge/p990/kernel
[LG Optimus 2x] pastime1971:
omg, sorry about the typo.... i manually typed those... :p

glad it is working for you now :)

when your kernel is included in your kang, you would see your name and host in "About phone"

edit: typo corrected

edit: i just read your comment on the folder... it should be there already, isn't it ? it is under YOUR_CYANOGEN_ROM_SOURCE_FOLDER/device/lge/p990/

edit: device/lge/p990/kernel is a file, not a folder. "zImage" is renamed to "kernel" in that folder (p990). wireless.ko is the same name in p990/prebuilt/
[LG Optimus 2x] sibbor:
Ah, yeah. Thanks!

Sure, it's working for me. sibbor@ubuntu. Sweet stuff! Thanks for the brilliant guide pastime.

Making my own shell scripts now I learn the whole process a bit better too, from A to Z ;-)
[LG Optimus 2x] pastime1971:
you are welcome.

enlighten us if you find a way to improve it, too.

i moved on to using "git pull", thanks to myfluxi
[LG Optimus 2x] pastime1971:
I did another "pull request" on kernel regarding touch screen.

Not sure if I did it right this time, it seems somehow different from last.

Let say you have a old pull request.

How do I withdraw it, update to the latest, and make a new pull request? (Assuming that is a right procedure.) I had to delete the old one, and started from the scratch. Doesn't feel right.
[LG Optimus 2x] Rusty!:
If you're only interested in the kernel, you can build just the boot image if you like:

make -j4 bootimage

Only takes a few seconds really.
[LG Optimus 2x] pastime1971:
i imagined that something like that would be possible.

never knew how...

thanks, rusty
[LG Optimus 2x] temasek:
Could u be a little more specific? I tried that command but it builds generic one... Am I missing something here? I think I am....

Insights pls?
[LG Optimus 2x] Rusty!:
make clean

. build/envsetup.sh

lunch p990-eng

make -j4 bootimage
[LG Optimus 2x] temasek:
Cool.

The boot.img created in a blaze. But this method is only applicable if the kernel is committed? What if it is just committed in the star kernel git but yet to be merged to cm, then we do we have to create a zImage and then compile CM ?

Thanks..... :)
[LG Optimus 2x] Rusty!:
If it's in the kernel git but not merged, you have to compile it yourself, overwrite the prebuilt one then build your bootimage.

I have a disgusting looking shell script that compiles the kernel, puts it where it needs to be, builds a boot image then creates an update.zip
[LG Optimus 2x] temasek:
Thanks.

All these are still "new" to me. Rather fun doing it.

EDIT: Don't mind sharing your script?
[LG Optimus 2x] Rusty!:
Course not, it's pretty dirty though:

export CCOMPILER=${HOME}/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
cp arch/arm/configs/star_cyanogenmod_defconfig .config
make ARCH=arm CROSS_COMPILE=$CCOMPILER oldconfig
make ARCH=arm CROSS_COMPILE=$CCOMPILER -j`grep 'processor' /proc/cpuinfo | wc -l`
cp arch/arm/boot/zImage ~/android/system/device/lge/p990/kernel
cp drivers/net/wireless/bcm4329/wireless.ko ~/android/kernel/KernelUpdate/system/lib/modules/wireless.ko
cp drivers/net/wireless/bcm4329/wireless.ko ~/android/system/device/lge/p990/prebuilt/wireless.ko
cd ../../system
make clean
. build/envsetup.sh
lunch p990-eng
make -j4 bootimage
cp out/target/product/p990/boot.img ~/android/kernel/KernelUpdate/boot.img
cd ~/android/kernel/KernelUpdate
rm ~/Desktop/kernel.zip
zip -r ~/Desktop/kernel.zip *
md5sum ~/Desktop/kernel.zip
cd ~/android/kernel/lge-kernel-star

It lives in ~/android/kernel/lge-kernel-star, and the ~/android/kernel/KernelUpdate folder is just an extracted CMW zip
[LG Optimus 2x] temasek:
Erm.....today I think gonna use up my thanks on u. LOLz :D

Quite similar to mine. I was thinking of making all-in-1 script with options because I am lazy nowadays.

Thanks again Rusty!
[LG Optimus 2x] Rusty!:
Small mistake there actually, it should be lunch p990-eng, else you end up with ro.secure=1
[LG Optimus 2x] temasek:
Ok noted. Thanks!
[LG Optimus 2x] pastime1971:
is "make clean" necessary ?

i always built my cm without it, and it seems fine.

i haven't tried with "lunch" yet though, so not 100% sure.
[LG Optimus 2x] temasek:
Brunch, now lunch ....next dinner and supper...lmao:)

Joke aside. .. I suppose w/o make clean is definitely workable. If u don't cherry picks, then I suppose no need to make clean (or maybe good to have a clean build once awhile).

I always make clean though b4 I build.
[LG Optimus 2x] Rusty!:
I use it because I have USE_CCACHE=1 set
[LG Optimus 2x] temasek:
Wah! Whats that ....?

Good learning topic ...
[LG Optimus 2x] Rusty!:
Tells the compiler to use it's cache, can reduce build time.

Make clean gets rid of that cached stuff.
[LG Optimus 2x] temasek:
Oh....

I must start reading up such topics, way more interesting than I thought. Hehe ...

Btw any good place for such read ups to recommend?
[LG Optimus 2x] Rusty!:
I just Google them :D

This looks useful though: http://wiki.cyanogenmod.com/wiki/Howto:_Speed_up_building
[LG Optimus 2x] temasek:
Slap my own face ....omg.

I read the wiki cyanogen many times but apparently didn't come to this page.

Great! Thanks for sharing.
[LG Optimus 2x] pastime1971:
thanks, rusty. now i follow yours. much faster...

btw, since i don't "make clean", i get message as follows:

*** Build configuration changed: "cyanogen_p990-eng-{...}" -> "p990-eng-{...}"

*** Forcing "make installclean"...

*** rm -rf out/...

*** Done with the cleaning, now starting the real build.

so, i changed to "lunch cyanogen_p990-eng", and it doesn't complain about configuration change any more.

edit: corrected rusty's "lunch p990-eng". boldified differences
[LG Optimus 2x] temasek:
I use "lunch p990-eng"
[LG Optimus 2x] Rusty!:
I must have forgotten to edit that one, it should have been what TS says.
[LG Optimus 2x] pastime1971:
yeah, i got that. used "lunch p990-eng" (edited the post above)

what i was asking was adding "cyanogen_" or not.

if i "lunch p990-eng" in kang folder, it complains about configuration change, and deletes out folder (as i build kang by "brunch cyanogen_p990-eng")

if i "lunch cyanogen_p990-eng", it doesn't delete out folder any more.

edit: unless you guys build cyanogen by "brunch p990-eng"
[LG Optimus 2x] Rusty!:
I use "brunch p990"
[LG Optimus 2x] temasek:
Same. ........
[LG Optimus 2x] pastime1971:
got ya... thanks, guys, for clarification.

i don't remember why i did "brunch cyanogen_p990-eng". when i was figuring it out, it worked, and i just put it in a script, i guess.
[LG Optimus 2x] :
The approach described I guess uses the full Android build setup.I have a kernel only build setup with no Android codebase.I will post it tomorrow from a desktop.
[LG Optimus 2x] pastime1971:
cool. it sounds very thorough...

thanks for sharing...

edit: unfortunately, i can't get gcc-arm-* nor abootimg from fedora 14 yum repos, which is my platform... :(

btw, any benefit using ubutu gcc-arm instead of one in cyanogenmod repo ?
[LG Optimus 2x] pastime1971:
the following also seems to work (and probably regardless of filesystem, but it may depends on recovery.fstab.)

run_program("/sbin/busybox", "mount", "/system");

well, nevertheless, ext3 can be mounted as ext4, so just change it to ext4 above and you are done, i guess.

i have a question also. is set_perm_recursive(0, 0, 0755, 0644, "/system/lib/modules"); necessary ? cm updater doesn't have it.

btw, what is $ACTION you define there ?
[LG Optimus 2x] :
Your mounting solution is good but requires busybox. I kept it minimalist.

The set perm is more a paranoid view of ensuring the right permission and may not be necessary

The $ACTION is used to emulate "make -n" or a dry run. For ex:

$ ACTION=echo buildkernel

It will only echo the commands for debugging
[LG Optimus 2x] pastime1971:
right, of course.
[LG Optimus 2x] Imperticus:
anyone tried AnyKernel by koush to make a .zip file and flash the kernel?

https://github.com/vork/AnyKernel
[LG Optimus 2x] Rusty!:
I have and it doesn't get on with EMMC devices it seems.

I found a modified version that was supposed to be for EMMC devices, and that didn't work either, so I made my own (not as good) system.

Edit: Wait a sec, that one's been updated to work, nicely found. Will have to try that in the future. The one I used before was from Koush's git, and the modified one was a random download somewhere.
[LG Optimus 2x] Rusty!:
Got round to trying that version of AnyKernel just now, it doesn't work :(

Edit: Sweet, fixed it :D

Edit 2: https://github.com/rustyu/AnyKernel
[LG Optimus 2x] pastime1971:
why don't you make a pull request ?

edit: forgot what /tmp partition is, but don't we need to clean up temporary files from it after finished ?
[LG Optimus 2x] Rusty!:
Because I am new to git, and frankly don't know how yet.

/tmp is on the RAM disc and emptied on reboot.
[LG Optimus 2x] pastime1971:
i'm not too familiar with it yet either, but i think it's probably simply clicking "Pull request" button.

and thanks for the info on /tmp, r.
[LG Optimus 2x] Rusty!:
Yes you're right, it is that simple; request submitted.
[LG Optimus 2x] pastime1971:
in C90, variable declaration must be before any other codes. (relaxed in C99)

how serious is "warning: ISO C90 forbids mixed declarations and code" ?

can we ignore it in lge-kernel-star ?
[LG Optimus 2x] pastime1971:
drivers/star/ts0710mux/ts0710_mux.c

shouldn't there be "kfree(framebuf);" around line 506 in function mux_send_frame in drivers/star/ts0710mux/ts0710_mux.c ?

#ifdef LGE_KERNEL_MUX
res = node_put_to_send( dlci, framebuf, pos);
[COLOR="Red"]kfree(framebuf);[/COLOR]
if(res == -ENOMEM){
return res;
}
#else
res = ipc_tty->ops->write(ipc_tty, framebuf, pos);
kfree(framebuf);
#endif

edit: it looks like framebuf is freed from node_put_to_send when the task is successful.
[LG Optimus 2x] :
The code path in node_put_to_send() returning '-ENOMEM' frees the memory. In the caller function mux_send_frame(), it returns with out freeing only on -ENOMEM which is safe. You have figured it out yourself seeing your edit.
[LG Optimus 2x] pastime1971:
to me it looks like there are a few kernel related issues on p990:

1. BSOD after charging w/ wall charger

2. BSOD after a long phone call

3. BSOD/Torch app crashes upon phone goes into sleep

4. volume key wake up not working when phone is asleep

5. headset play button not working when phone is asleep

all seem to be related to not being able to wake up.

edit: could it be governor ? G2x uses performance governor as default while O2x uses conservative.

edit: can we test it by setting performance governor in Settings > CM > Performance > CPU > Governor ?