[LG Optimus 3D] samno:
Introduction

Hi guys, so im seeing a real lack of dev work going on in these forums so here i going to make a guide on making a custom rom and a custom kernel for the optimus 3d. XDA's about sharing so im going to tell you nearly everthing i know to get you started. This is no means the best/definative way as im still learning alot myself only starting this kind of stuff about 6 months ago. I dont call myself a dev so there could be things wrong but here is how ive made my stuff to share with you. Ill probably update these posts as time goes on too, to improve & answer questions. Plus ill probably forget something too. :) Plus it would be good if other dev types in this forum could maybe share a few of there words of advice, wisdom & tips. This will hopefully encourage people to use & create for the device.

Chapters/Posts

Post 1

- Getting Started

Part 1- Prequisites

Part 2- Getting Necessary Basic Stuff Done For Your Rom

Post 2

- Making The Rom Custom & Extra Mods

Part 1- Basic Mods

Part 2- Advanced & More Complex Mods

Post 3

- Making The Custom Kernel

Part 1- Getting Set-Up

Part 2- Compiling Your zImage

Part 3- Making Your RamDisk

Part 4- Making Your Boot.img

Post 4

- Changelog

Post 5

- Dev Bible!

Getting Started

Presquisites

This guide assumes you have some knowledge on how to use basic computer stuff, use other guides in the forum, know how to use a rooted phone & have some general common sense. If you dont what some of this stuff research it before you carry on reading.

Youll need a computer(dugh) with preferably a linux distro like ubuntu 10,11 or 12(for kernels) and windows, xp, vista, 7 & 8 should all be fine. These arent necessety, im sure you can probably complile stuff on windows and on other distro's and versions but this is how ive done my stuff. Again dont ask where to get these.

Youll also need a memeory card with enough room to hold a cwm backup & some mods so 1gb is/should be plenty and fully charged battery too, we wouldnt want the battery to go flat during a risky process would we.

I recommend you also have these apps/tools too, they will make the process alot easier and your gonna need some of them along the way.

For Windows

Kdz flasher or .bin flasher- http://xdaforums.com/showthread.php?t=1287236 Big Thanks To adixtra

Winrar (trial version is fine)- http://www.rarlab.com/download.htm

Or 7zip As Recommended By Pandaball- http://www.7-zip.org

Notepad+ From Here- http://notepad-plus-plus.org/

Megatron Root Method- http://vulnfactory.org/blog/2012/02/26/rooting-the-lg-thrill-optimus-3d/

CWR Flash Tool By Paki0402- http://xdaforums.com/showthread.php?t=1482713

For Ubuntu/Linux

LG's Source Code Page: http://www.lg.com/global/support/opensource/opensource.jsp

Kernel Build Tools- sudo apt-get install uboot-mkimage (In Terminal)

Ramdisk Compile/Decomplie Tool- http://xdaforums.com/attachment.php?attachmentid=1215193&d=1342992085

ARM Toolchain- https://sourcery.mentor.com/public/...-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 (Recommended)

disxda Kitchen- http://xdaforums.com/showthread.php?t=633246

For Yourself

Computer, Preferably Modern Otherwise Things Could Get Slow

Coffee- http://www.starbucks.com/coffee/reserve/galapagos-san-cristobal

Patience

Time (Definatly Dont Ask Me Where To Get This Since I Couldnt Find A Link)

Getting Necessary Basic Stuff Done For Your Rom

Firstly youll need a rom to modify for this you can either download a ready made rip of a rom like from fabio in this thread http://xdaforums.com/showthread.php?t=1155874 or you can make your own. For this youll need to have a fresh kdz flahed to you phone from here http://lg-phone-firmware.com/ or from another source if you prefer .bin. Once you have flashed i recommend just skipping all the setup stuff like market, wifi and accounts stuff since your not gonna need it yet.

Next we need to make a copy of your freshly flashed kdz if you going down this root(no pun intended) otherwise youll already have it in zip format & probably already rooted too. Talking about rooting this will be the next thing you need to do & since were running gingerbread youll need to root with megatron found here -insert link here- follow that guide & thanks to Dan for that breakthrough which without, this probably wouldnt be possible.

After your rooted youll need to get ClockWorkMod recovery. There are two ways you can get it either through rom manager in the Playstore or from this tool here -insert thread here-. Cheers paki for that very useful tool and koush for the recovery. For SU760 people use ibluemind version here http://xdaforums.com/showthread.php?t=1565412 thank you iblue too.

Now were all rooted and have recovery installed we can now make a copy of the entire system. This bit is easy youve all probably done it before too. You will need to boot into recovery either with the button command or through rom manager app. Then just simply make a backup of you rom, while your waiting put the kettle on make yourself a coffee ;) & enjoy a litttle break.

Ok so now we have a base for our custom rom based on whatever version kdz you flashed. Now we need to transfer this to our pc. So go to you backup & simply copy & paste the system.ext3, data.ext3 & boot.img to where you want to do your work, the rest you wont need unless something goes wrong later. The backup is located on the external memory card in the clockworkmod/backup directory.

So we have the necessary parts on your computer, youll need to decompress the system.ext3 and data.ext3 using winrar or other zip app. Then once you have your system and data folders set up you can start the modding but first thing to do is delete anything personal from the data folder so make sure only the app folder remains in the data partition like this data/app and no other folders like app-private, fota & data. If you want you can do away with the data part all together and just keep it simple.

We now have a basic stock rom in its raw form. So now youll need to package it up. For this ill provide a donate install script zip at the bottom of this post for which you can simply drap & drop your system folder and data folder if your including it. Youll also need to drag over the boot.img, this can be one you have made from the guide below, one from your backup folder which would be the stock kernel or one from a kind dev if they will let you use there's.

Thats it you should now have basic stock rom from which you can build upon, just flash it to your phone and test if it works. If you want to get creative i recommend you download and use disxda's Kitchen this will do the extraction part too.