yashsingh1/xdaforums huggingface dataset:
[TouchPad Development] s7mx1:
It seems there is little information on the internet regarding how to compile the kernel and how to convert to the correct image format so the boot loader will recognise and how to transfer it over to the touchpad. I ended up spent a few hours and finally figured out. I hope this will be useful for someone. I will try to make it concise as this is mainly aimed for developers.

What you will need

A linux development machine with uboot mkimage tool installed.

Sourcery G++ Lite 2010q1-188 for ARM EABI cross compile tool chain

https://sourcery.mentor.com/sgpp/lite/arm/portal/release1294

Touchpad kernel source

https://github.com/CyanogenMod/hp-kernel-tenderloin

CM7 Alpha 3 image (zip file)

http://goo-inside.me/roms/cmtouchpad/alpha3/update-cm-7.1.0-tenderloin-a3-fullofbugs-signed.zip

Prepare

Download CM7 Alpha 3 image and extract the boot.img to a temporary place.

Download Sourcery G++ Lite and install it. Add the G++ Lite tool chain binaray path to the PATH env variable. Get the kernel source from git hub and extract to local disk and change directory to the kernel source.

Compile the kernel

Still in the kernel source directory run

make ARCH=arm CROSS_COMPILE=arm-none-eabi- tenderloin_android_defconfig
make ARCH=arm CROSS_COMPILE=arm-none-eabi- uImage

Prepare the initramfs U-boot image

Extract the initramfs from the boot.img saved in temporary folder and convert it to uboot-image format

dd if=boot.img bs=1 skip=3577748 of=img.gz
mkimage -A arm -O linux -T ramdisk -C none -a 0x60000000 -e 0x60000000 -n "Image" -d ./img.gz arch/arm/boot/uRamdisk

(The dd offset for alpha 2.1 image is 3561152)

Combine the kernel and initramfs into a single U-boot image

Create a combined U-boot image (kernel and initramfs)

mkimage -A arm -O linux -T multi -a 0x40208000 -e 0x40208000 -C none -n "multi image" -d arch/arm/boot/uImage:arch/arm/boot/uRamdisk uImage.CyanogenMod.new

Transfer it to the device

Boot your touchpad into recovery mode and run

adb shell mount /dev/block/mmcblk0p13 /boot
adb push uImage.CyanogenMod.new /boot/uImage.CyanogenMod.new
adb shell umount /boot
adb shell reboot

After it reboot you should be able to see a new CyanogenMod.new item from the boot menu.

That's it! :)

Optimisation

For those who wants to experiment with GCC build options you can update the entry "arch-$(CONFIG_CPU_32v7" in file arch/arm/Makefile and I set mine to

arch-$(CONFIG_CPU_32v7) :=-D__LINUX_ARM_ARCH__=7 -mtune=cortex-a8 -mfpu=neon -ftree-vectorize -mfloat-abi=softfp -O2 $(call cc-option,-march=armv7-a,-march=armv5t -Wa$(comma)-march=armv7-a)

Warning

Please be aware you are working on the bleeding edge kernel for touchpad and there is no guarantee that the latest git version will work for you. Please try an earlier version if that's the case.

As of 2011-11-23 you will need the latest kernel source to build kernel for alpha 3. Please do not mix the kernel with an initramfs from a different version, i.e. don't use initramfs extracted from alpha 2.1 and use it with alpha3.
[TouchPad Development] Leoisright:
Thanks for this. Last weekend spent a while trying to figure this out.
[TouchPad Development] myn:
x2. Huge thanks :)
[TouchPad Development] Divine_Madcat:
Thank you soooooo much for this guide. Quick question if you don't mind though.. I am using an mkimage that goes back to my nook kernel days. Is there anything newer out, or would this still be ok,?
[TouchPad Development] s7mx1:
As long as the mkimage can generate a standard U-boot image it should be fine.

You can always try it yourself. In worst case you have to hard reboot the touchpad by pressing the power button and home button at the same time for more than 10 minutes. As long as you keep the original image files (UImage.*) untouched I don't think you can brick it even if you want to. :)
[TouchPad Development] Divine_Madcat:
S7

I have been trying to compile the kernel for some time now, and was hopeful reading your guide (and this last post) However, still following the steps to merge the ramdisk, i cannot make a booting kernel. I can get it flashed, as i am using the update.zip method, but moboot always gives me a crc error when booting it.

Though, before i totally go nuts, i think i need to try the source forgery toolchain, as i am using the Android ndk r6b...
[TouchPad Development] s7mx1:
Could you check the md5sum of the u-boot image crated on disk and the one installed by update.zip file? Do they match? If they do then you probably will need to upgrade your mkimage tool.
[TouchPad Development] Divine_Madcat:
I will give it a check; just in case, know where to get a newer mkimage?
[TouchPad Development] decalex:
Thanks so much for this guide

It feels like 10 mins.. doesn't it ;)
[TouchPad Development] Divine_Madcat:
WEll, i checked the MD5 sums, and it looks good. So, i guess it is time to try again with the toolchain listed here, and perhaps a new mkimage (if there is a "modern" one i should using, please point me to it...)

edit: Never mind.. in all my looking, i never saw that ubuntu had a nice one waiting for me.... doh

edit2: Woo! After getting the probably correct mkimage, and the CS toolchain, looks like i finally got it to pass the crc check. Now, lets see if it finishes booting. Thanks again for the guide!

Nope.. no boot. I get a dmesg with this:

<3>[ 69.978716] init: untracked pid 224 exited

<6>[ 70.086076] android_usb gadget: high speed config #1: android

<6>[ 70.086209] gadget_event: schedule host_connected

<6>[ 70.096953] max8903b_current_setup: CURRENT_500MA

<6>[ 70.097040] gadget_event: source=bus mA=500 (no change)

<4>[ 70.910953] UDC-CHG (2-2-2): usb_multi_chg_detect (591) : USB host Adaptor

(500mA)!

<6>[ 70.912805] gadget_event: schedule host_disconnected

<6>[ 70.925482] max8903b_current_setup: CURRENT_ZERO

<6>[ 71.164066] android_usb gadget: high speed config #1: android

<6>[ 71.164220] gadget_event: schedule host_connected

<6>[ 71.173640] max8903b_current_setup: CURRENT_500MA

<6>[ 71.178212] gadget_event: source=bus mA=500 (no change)

<6>[ 72.160955] gadget_event: host_connected=1 (no change)

<6>[ 74.142224] request_suspend_state: wakeup (0->0) at 74121495501 (2011-11-1

1 22:49:33.378031648 UTC)

<3>[ 74.143675] init: untracked pid 266 exited

<3>[ 74.155217] init: untracked pid 273 exited

<6>[ 79.285016] request_suspend_state: wakeup (0->0) at 79264287462 (2011-11-1

1 22:49:38.520824942 UTC)

The last three lines repeat alot, with different pid's .

Alrighty.. figured this one out - You cannot use the latest repository commits with the 2.1 alpha build. However, i was able to build commit fd70bb7aae, and it builds and actually boots. Now, i can actually play around and tweak it. Thank you again for the guide, and sorry for the edit spamming.. heh.
[TouchPad Development] vinscuzzy:
Myn, do you have a touchpad???!!!? God I hope so!
[TouchPad Development] Leoisright:
He does
[TouchPad Development] s7mx1:
That's because dalingrin has updated the default configuration to use the HIGHMEM which seems to kill all the apps. The latest git actually works if you disable all the HIGHMEM related stuff.
[TouchPad Development] s7mx1:
Absolutely:D

I just hope there is a rest button as the touchscreen occasionally will not respond at all after wake up and I have to reboot to webos and then reboot back to get the touchscreen back.
[TouchPad Development] crimsonredmk:
Great guide and I got the kernel all built, but how do you change the kernel arguments for booting? e.g. where does moboot get its whole root=/dev/ram0 ro fb...stuff, and how does the CyanogenMod kernel know where to look for the rootfs partition?
[TouchPad Development] s7mx1:
The root parameter (root=/dev/ram0) that passed to kernel is not useful to you. The root / is mere extracted initramfs in memory. I assume you are looking for system, data partitions etc. With TP we have LVM partitions which you can do really fancy stuff with. The actual mount device and mount point is defined (hard coded) in file init.tenderloin.rc which you can find in the initramfs (i.e. the img.gz which is a gzipped cpio file). You can extract all the contents out from img.gz and modify init.tenderloin.rc to suit your need and then create an updated initramfs file to go with the kernel.

Since Android (at least CM7 on TP) does not use pivot_root any changes made to the initramfs will appear automatically when you boot up the device.

You can google if you are not sure how to work with initramfs file.
[Motorola Atrix 2] Pirateghost:
I think this thread needs to come about because of my pure hatred for people not understanding what root actually is. We have a nice clean forum and I would like to start a trend. I want people to know what ROOTING is and why when something 'doesnt work' its not because of 'root'

some of the complaints i have read across the boards:

said by people that are already running a custom rom. rooting had nothing to do with it

rooting has no bearing on actual settings for data, apps, or configuration.

you never installed the application to do that, or you never TOLD your phone to do that. some of this stuff requires a little bit of EFFORT to make it do what you want. rooting isnt some magical voodoo that takes care of itself.

rooting does NOT install a new OS for you. hell, installing a new OS doesnt even require ROOT on most phones. once you have an unlocked bootloader, you put a recovery on it, and do all your flashing through recovery. with a stock phone, unlocked bootloader, you can literally never even boot to the OS to flash a new rom on it.

typical response from another user:

ROOT has absolutely NOTHING to do with anything outside of the actual booted up OS. CWM happens before the OS loads, which means that debugging means F All as well.

why did you root? rooting your phone should be done only because you have a PURPOSE for doing so. some application that you want to use that requires root, de-bloating, access to /system to poke around, etc. if you have to ask what to do after rooting, you never should have rooted.

This is a pretty good article covering many aspects of rooting

The first paragraph of that article sums it up pretty well:

The article is mainly geared toward using SuperOneClick to root, but that method doesnt work on 2.3.5+ as of yet. There is a pretty good list of applications there though.

rooting only applies WITHIN the OS itself. rooting only affects the OS. rooting does NOT make the phone self-aware. rooting doesnt awaken some hidden demon that will make your phone do magical things. its simply a way to get access to the 'administrator' account of the OS and utilize things that are locked out by manufacturers/carriers.

Sorry for the rant, folks. I just have a few pet peeves and people talking about root like its the 'root' of all their problems is one of them. it proves they have no idea what they are doing on their expensive toys. hacking a phone isnt childs play and people that dont want to understand it, have no business here. if you dont understand what you are doing to your phone, READ, UNDERSTAND, COMPREHEND. if you dont want to do those things, then STOP. STAY STOCK and move along, nothing to see here.
[Motorola Atrix 2] Pirateghost:
I forgot to mention that the entire rooting process only adds 2 files (really only one is NEEDED, the other you can get from the market)

/system/bin/su is added

/system/app/Superuser.apk is added (can be downloaded in market)

thats the root. ONE binary and ONE apk. nothing magical there.

the exploit that is needed is simply to allow a 'temporary' root so that the /system may be mounted as read/write and those 2 apps can be added. the exploit is the magical part.....lol
[Motorola Atrix 2] Gadgetz:
Thanks for posting this, should be stickied. Good read for the noobs.
[HTC EVO 3D] greg.dassing:
Does Sprint have the white 3VO housing yet? I know Best Buy had the white OG EVO before Sprint but Sprint eventually got it. The reason I am asking is that I have been meaning to bring my 3VO in for repair because I ****ed it up when I dropped it on fresh concrete 2 days after launch. I have insurance and Sprint, over time, replaced EVERYTHING on my OG except the motherboard and battery...screen, mid-board, camera lens, battery door, kickstand, etc! I was wondering if I could request the white housing get put on instead of the black (even at an extra fee). To repair it, it will need a new battery door and screen surround...which (almost) exactly makes up the white housing swap. I mean, if I had bought the white 3VO from Radio Shack and it needed the same repair as my black one, Sprint would have to have white housings on hand, right? Please correct me if I'm wrong. Any and all help would be greatly appreciated. I know theres a few Sprint reps on XDA so your input would be MOST appreciated! Thanks!
[HTC EVO 3D] ReddMOA:
Radio Shack has them
[HTC EVO 3D] greg.dassing:
I know RS has the white 3VO but I'm looking for the white housing specifically. Are they selling the white housing or offer in-house repairs on the white 3VO's? I was hoping Sprint had the white housings on hand to repair the white 3VO's that RS is selling. That way, I might be able to persuade a rep to hook me up with the white housing in order to repair my black 3VO...thanks for the input
[HTC EVO 3D] housry23:
I thought we made fun of people that say 3VO enough that it was no longer being used. I guess we have a few stragglers still saying the stupidest phone moniker of all time.
[HTC EVO 3D] greg.dassing:
Yeah, because I	totally use internet nerds like you as a base for what's cool...unless you have something helpful and/or constructive to add, **** off!

Does anybody have any HELPFUL info on this subject? Thanks!

Swyped from the third dimension
[HTC EVO 3D] joehunni:
Lol, Internet nerds? You're a member on a forum that is a giant community of mobile device hackers, I think that qualifies as nerd as well...
[HTC EVO 3D] greg.dassing:
Oh, I'm totally a nerd when it comes to XDA! HAHAHA! I just don't think I'd be cooler than somebody that doesn't keep up with the hip internet lingo...I thought this was a community...not a popularity contest...I'm just trying to find out some info if somebody has it...

Swyped from the third dimension
[HTC EVO 3D] fady.k:
so heres the deal, as far as i know, sprint isn't supposed to repair phones in store any for cracked screens or things of that nature, but some stores still do those repairs. at the store that i work at we arent supposed to those repairs in store and are supposed to send the customer through Asurion. however, we still do those repairs in store but we make customers buy a certain amount in accessories. some reps wont even bother fixing your phone and will just order you a new one. the white evo's are available to order so just become friends with ur local rep and get him to order you a new phone. hope this helps you out a bit. if you need a white housing pm me and i can see what i can do for you.
[HTC EVO 3D] greg.dassing:
This is EXACTLY the kind of info I was looking for! Thank you VERY much! PM sent
[HTC EVO 3D] SolsticeZero:
They still pop up from time to time. Keep fighting the good fight!
[HTC EVO 3D] guyandhisdog:
What's a 3vo?
[HTC EVO 3D] greg.dassing:
Apparently, its a word that gives hip pretentious internet douchebags an excuse to be hip pretentious internet douchebags...I'm such a loser for using it...arming nerds with keyboards and monitors really gives them confidence to be who they could never be in person...community forums are no place for roll playing...I'm just looking for information and I got a bunch of asshole comments...very sad
[Android Q&A, Help & Troubleshooting] GIGN1987:
Hello,

i just flash Oxygen 2.3.1 rom to my desire with oxygen r2 hboot. I am using spb shell 3D as launcher. everything is working fine but android market version 3.1.5 after some minutes or some apps installed get FC. Any Solution ?

Thanks

edit:// seems to solved i unistall market update and freeze updater
[Samsung Galaxy SL i9003] vijaypalmanit:
dude just use superoneclick for this......
[T-Mobile LG G2x] jcbofkc:
http://www.tmonews.com/2011/11/occupy-protesters-and-communication-workers-to-march-on-new-york-t-mobile-store/

HA ha. Maybe they should spend their time working on their resume. The useful idiots of the socialist movement lead around by their noses by ACORN now want to protest T-Mobile. Silly socialists. Life is not easy. Try a little harder.

Putting on my flame resistant suit. :D
[T-Mobile LG G2x] Private Pyle:
Of all the wireless companies, OWS decided to go after T-Mobile? And why? "Anti-worker union busting". I know three people who work at T-Mobile call centers and LOVE it there. The pay is great they all said. They got 6 months of training and they got paid while they were in training. T-Mobile is almost always hiring where I am.

T-Mobile is the best as far as I'm concerned in customer service. They even have an iPhone support group and T-Mobile doesn't even sell iPhones nor can they. I could send all of the people who have never used a cell phone before to a T-Mobile store and recommend any phone and the clerk would go out of his or her way to make sure that the referred person knows how to use the phone.

T-Mobile has some of the lowest subscription prices for US consumers on the market. I see no reason for union workers or employees to demand higher wages and benefits. If they do and get they what they want, they will most likely cause an increase in price or a downgrade of service to the consumer. T-Mobile owes Deutsche Telekom a lot of money as it is right now. I don't think there is any way T-Mobile could maintain the great pricing and give in to unions. If the unions succeed, the cost will be paid for by the customer, like it always is with every situation like this. The consumer loses.

I also must add that AT&T and Verizon are both unionized. Look at their customer service. Look at their pricing. Neither company even offers an unlimited data plan. I've dealt with both before, it's not pretty.

You know what other company offers an unlimited data plan and is only a little bit behind T-Mobile in pricing? It's Sprint Mobile. Are they unionized? No.
[T-Mobile LG G2x] dkb218:
No sure what your feelings about these protesters has to do with what we do here. Can we get this thread close or deleted?
[T-Mobile LG G2x] dvan13578:
ut oh..you just got the twinkle fingers lol
[T-Mobile LG G2x] jcbofkc:
Well my opinion is not that important. The protest is relevant because they have made a decision to target my cell phone company. Are you the new thread police? Don't like the topic, don't post.

The "protesters" have damaged many small private business by their "activities". I hope they at least have the good sense make sure it is not a franchise store, but I doubt it. They do not appear particularly bright.
[T-Mobile LG G2x] tombaker1:
Because the occupation's army is comprised of Anarchist first, and socialists 2nd. A big hint is no clear agenda other than promotion of chaos. These are serious anarchists, the European Anarchists. And T-Mobile parent company is where? Deutsche Telekom.

If it was an American based uprising it would be against ATT as it trys to eat the little guy. I wish I had a trust fund big enough to be part of OWS
[T-Mobile LG G2x] dkb218:
It is a franchise store. I work 4 blocks from it. Pay my bills there.

Let me get this straight. Your small business in KC is being harmed by a bunch of kids in Manhattan.

No I'm not the new thread police. Just didn't think this was the place to preach political views. But since you started it.

I think anyone who speaks against this protest is a traitor to the Constitution. Protesting is a RIGHT we have in the United States. If you have a problem with people practicing their rights as Americans maybe you should try a communist country. I hear the food is good.

And Fox News is not news. That stuff will rot your brains.
[T-Mobile LG G2x] tombaker1:
Instead of trying to get a thread closed by complaining to those reading the thread, why not just send the moderators a note and see if trying to stifle conversation works out for you.

Your opinion of TMOnews is very important, others talking about a flash mob communication to take over our phone's network offices....that is not worthy....according to who?
[T-Mobile LG G2x] dkb218:
..take over our phone networks offices? Flash mob? You're right. I shouldn't try to hinder conversation. We have a right to free speech also and If I'm gonna back the right to protest, I have to back the right to peoples opinions on a given subject.

------------------------------

While I'll back the right to protest to my dying breath, these kids have been taken over by who knows who. Wanna protest over jobs being sent overseas? Fine. Wanna protest over the price of education? Fine. Wanna protest police brutality? I'm with ya.

But there are about 6 employees at a T-Mobile store who will soon look out the window and wonder what the **** is going on.

Protest until you can't protest anymore. Just stick to the subject. Whatever the subject maybe.

[Anarchist - Don't you think you went overboard with that definition of the protesters?]
[T-Mobile LG G2x] tombaker1:
So you support and don't speak out against any protest, because protesters have the right to do so. Under your logic, anyone speaking against a KKK rally is a traitor because the KKK has a right as American to protest.

You see dkb218, content does make a difference. If people have the right to speak out and demonstrate, anyone with common sense, (yourself seemingly absent) should understand that others have the right to speak against the concepts being promoted.

The anarchists who call themselves the occupation army, or OWS, don't have any demands. Goobers like yourself think that they need to be nurtured and supported no matter anything. I am sure you think that Chris Matthew's the speech writer for Jimmy Carter, and chief of staff to the Democratic Speaker of the House Tip O'Neill is just a non-biased journalist too.

These idiots are about to mob rush some clerks selling phones, and you support that. I don't mind that you are a lemming, just don't involve others in your insight of the need to run towards the cliff.

The right to say something is NOT the right to not being criticized and mocked for being a twit.
[T-Mobile LG G2x] dkb218:
Point taken. I stand corrected.
[T-Mobile LG G2x] truckerdewd:
I feel a Rodney King statement coming on

Sent from my awesome mixer themed Weapon G2x using my fingers. Duh!!!
[T-Mobile LG G2x] shovelhead83:
And Fox News is not news. That stuff will rot your brains.[/QUOTE]

I smell a liberal.
[T-Mobile LG G2x] the_scotsman:
To quote rule #2.4

It always ends bad, so I'm closing this now before it starts going downhill.
[HTC Sensation] Ryanrenesis:
Hello,

I was wondering how my system data settings should be configured if I'm using a battery saver such as Green Power Premium or JuiceDefender Ultimate. Specifically, will my data be automatically sync'd if I set it ON 1 min per hour. Does "always-on mobile data" need to be enabled? What if apps are set to sync every 3 hrs? Are all apps controlled by the battery saver? How does the app know when to sync, does it sync by itself when it detects connectivity?

Please enlighten me guys.

Sent from my Sensation running Revolution HD v3.6.4
[T-Mobile Samsung Galaxy S II SGH-T989] samomamo:
I thought I'll share.

http://m.androidcentral.com/t-mobile-galaxy-s-ii-overclocked-18ghz
[T-Mobile Samsung Galaxy S II SGH-T989] safeplayer22:
way too slow to the party...didn't you read where the source was coming from?

http://xdaforums.com/showthread.php?t=1331056
[T-Mobile Samsung Galaxy S II SGH-T989] mettleh3d:
Now now, we're all friends here. Thanks for the post op.
[T-Mobile Samsung Galaxy S II SGH-T989] AllGamer:
+1

i agree

people don't give enough credit to XDA devs
[T-Mobile Samsung Galaxy S II SGH-T989] TheJanitor07:
Can anyone help me on how to upload this new kernal to my phone?