[B2G][DEV-ONLY]Nigel meets the Fox - Samsung Epic 4G Touch

Project EpicB2G presents...
Nigel Meets the Fox (Boot 2 Gecko Kernel)
This is not an Android kernel. If that's what you're looking for, move along.
​
What is Boot 2 Gecko? If you have to ask yourself what is Boot 2 Gecko, then read up on it HERE. If you still don't understand, then this thread isn't for you.
About Boot 2 Gecko:
Firefox OS (project name: Boot to Gecko also known as B2G) is an open source operating system for smartphones and tablet computers being developed by Mozilla. It is an implementation of letting HTML5 applications integrate the device's hardware directly by using JavaScript. It has been demonstrated on Android-compatible smartphones. Boot 2 Gecko is HTML5 based and runs on top of a Android base system, BUT the kernel will not be able to boot android, just Boot 2 Gecko. ONLY USE WHEN A BOOT 2 GECKO ROM IS AVAILABLE!
This kernel was made available so future developers of Boot 2 Gecko can have a pre-compiled kernel for the operating system. For compiling instructions, see post #2.
WARNING!
This is a BOOT 2 GECKO KERNEL. DO NOT USE ON ANY ANDROID ROMS.​
Want to help contribute to the development of Boot 2 Gecko? Checkout the source HERE!
Download Nigel meets Fox (Boot 2 Gecko Kernel):
By clicking the link below you agree that you are flashing this kernel at your own risk. Neither myself, Project EpicB2G, nor anyone but yourself are responsible for any problems that may occur before, during or after flashing this kernel. You also agree that this kernel is to be flashed ONLY on the Sprint Galaxy S II Epic 4G Touch!
I agree to the terms and conditions set forth by XDA and Nigel...

# Boot to Gecko (B2G)
Boot to Gecko aims to create a complete, standalone operating system for the open web.
You can read more about B2G here:
http://wiki.mozilla.org/B2G
and talk to us on IRC:
#B2G on irc.mozilla.org
## Prerequisites
### Linux
* A 64 bit linux distro
* See http://source.android.com/source/initializing.html on configuring USB access.
* 20GB of free disk space
* autoconf-2.13
* git
* ccache
* gcc/g++ __4.6.3 or older__
* bison
* flex
* 32bit ncurses
* 32bit zlib
* make
Additionally, if you're building the emulator, you probably need the the Mesa
implementation of OpenGL. On Ubuntu, this is the __libgl1-mesa-dev__ package.
Ubuntu 12.10 ships with gcc 4.7 by default, which causes build errors pretty
early in the process. To use gcc 4.6, edit .userconfig and add
export CC=gcc-4.6
export CXX=g++-4.6
Of course, you'll need the g++-4.6 package installed.
### OSX
* XCode
* 20GB of free space
* homebrew
* git (if not using XCode 4)
* gpg
* ccache
* autoconf-2.13 - brew install https://raw.github.com/Homebrew/homebrew-versions/master/autoconf213.rb
## Fetch the source code
To build Boot 2 Gecko for the D710, you will have to fetch a custom source code from Nigel's GitHub, or your own if you forked it.
To begin type:
mkdir -p firefoxos
cd firefoxos
git clone git://github.com/EpicB2G/B2G.git
Once the source is present on your drive, make sure you have the B2G folder and type:
cd B2G
Now you're ready for part two!
## Configure
Run config.sh to get a list of supported devices:
./config.sh
And then run config.sh for the device you want to build for:
./config.sh d710
### Udev Permissions
If you get "error: insufficient permissions for device"...
Obtain ID of device manufacturer (first 4 hexidecimal digits before colon):
$ lsusb
Add a line to /etc/udev/rules.d/android.rules (replacing XXXX with 4 digit ID):
SUBSYSTEM=="usb", ATTRS{idVendor}=="XXXX", MODE="0666"
Restart udev before re-plugging your device for it to be detected:
$ sudo service udev restart
Re-run configure:
./config.sh d710
### Building against a custom Gecko
It can sometimes be useful to build against a different Gecko than the one specified in the manifest, e.g. a mozilla-central checkout that has some patches applied. To do so, edit .userconfig:
GECKO_PATH=/path/to/mozilla-central
GECKO_OBJDIR=/path/to/mozilla-central/objdir-gonk
## Build
Run build.sh or bld.sh to build B2G.
./build.sh
If you want to just build gecko or some other project, just specify it:
./build.sh gecko
## Flash/Install
Make sure your phone is plugged in with usb debugging enabled.
To flash everything on your phone:
./flash.sh
Please note that heimdall should be installed on your linux box.
To update gecko:
./flash.sh gecko
To update gaia:
./flash.sh gaia
## Update Repos
To update all repos:
git pull
./repo sync
To update a specific repo (eg, gaia):
./repo sync gaia
## Debug
To restart B2G and run B2G under gdb:
./run-gdb.sh
To attach gdb to a running B2G process:
./run-gdb.sh attach
## Test
To run the Marionette test suite on the emulator:
./test.sh
To run specific tests (individual files, directories, or ini files):
./test.sh gecko/dom/sms gecko/dom/battery/test/marionette/test_battery.py
Specify the full path if you're using a different Gecko repo:
./test.sh /path/to/mozilla-central/dom/battery/test/marionette/test_battery.py

Thanks, will give it a try.

Looks very interesting
Sent from my SPH-D710 using xda premium

My only question is...
Does this need the B2G ROM or does the kernel boot into a user interface?
The Mozilla website confused me.
Sent from my SPH-D710 using xda premium

Very interesting. I hope this goes better than the last OS port.

So do we still have to build b2g to install the os? Or will this ever be a flashable rom zip?
This is just quite different from everything I've come across so far.
*wearing flame retardant suit*
Sent from my SPH-D710 using xda premium

Anyone try this yet? I don't understand what it is but don't want to ask questions because that doesn't really seem accepted lol..
Sent from my SPH-D710 using Tapatalk 2

I'm thinking we need the ROM to go with this...
Sent from my SPH-D710 using xda premium

Mattix724 said:
I'm thinking we need the ROM to go with this...
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Do a data and cache wipe and flash as a kernel.
Sent from my SPH-D710 using xda app-developers app

Some quick research. I had tried Firefox os on my PC.
Firefox OS is a new mobile operating system developed by Mozilla's Boot to Gecko (B2G) project. It uses a Linux kernel and boots into a Gecko-based runtime engine, which lets users run applications developed entirely using HTML, JavaScript, and other open web application APIs.
Click to expand...
Click to collapse
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS
How to install. https://developer.mozilla.org/en-US...o/Installing_Boot_to_Gecko_on_a_mobile_device
There is only 1 step which I am sure doesn't apply here. We already have boot.img from the op.
Am I correct op? We don't need to do anything such as
Code:
flash.sh
? And after we flash the boot.img in mobile Odin does phone boot into Firefox os?
Or this is just the kernel which allows one to flash Firefox os? But then where is the Firefox os? Lol so confused now.
Sent from my SPH-D710 using xda app-developers app

HTML5
I am assuming this is in response to Adobe not supporting android 4.0+ and the future platforms integrating html5. Just a guess...please tell me if I mis-interpreted.....

BluesRulez said:
Some quick research. I had tried Firefox os on my PC.
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS
How to install. https://developer.mozilla.org/en-US...o/Installing_Boot_to_Gecko_on_a_mobile_device
There is only 1 step which I am sure doesn't apply here. We already have boot.img from the op.
Am I correct op? We don't need to do anything such as
Code:
flash.sh
? And after we flash the boot.img in mobile Odin does phone boot into Firefox os?
Or this is just the kernel which allows one to flash Firefox os? But then where is the Firefox os? Lol so confused now.
Sent from my SPH-D710 using xda app-developers app
Click to expand...
Click to collapse
Exactly my thoughts. Normally flashing a kernel does just that... Flashes a kernel. We would still need a compatible ROM.
I'm just not willing to be all brave with my phone since my laptop got stolen :/
Sent from my SPH-D710 using xda app-developers app

themisterwilson said:
Exactly my thoughts. Normally flashing a kernel does just that... Flashes a kernel. We would still need a compatible ROM.
I'm just not willing to be all brave with my phone since my laptop got stolen :/
Sent from my SPH-D710 using xda app-developers app
Click to expand...
Click to collapse
True, I had mobile Odin loaded with boot.Img and was about to tap flash firmware and then I was like let me really look into this.
Sent from my SPH-D710 using xda app-developers app

Alright folks, a few things here...
I am going to close this up for a bit until the OP can come up with a better description for what this actually is as there is a ton of misinformation about it and it is as vague as it comes.
Removing the download link as well for the reasons stated above. I don't want people bricking their devices over this.
Last but not least, not having source makes this kernel non-GPL compliant as per GPL regulations on xda-developers.
OP, please contact this area's moderators (jayharper08) and let him know when things are ready from your end, so that the thread can be re-opened.
Thanks and thread closed.

I have spoken with Nigel (OP) and he will be updating the OP with more info on what exactly this is with better instructions. Link to source will be posted also.
Please keep it on topic.

The modified B2G repo is available here: https://github.com/EpicB2G/B2G . This is what is to be used, and I'll be updating the op.

Hmm, the OP should be GPL compliant now, and I think I've set enough warnings.
Nigel's back.

BluesRulez said:
Bump bump guy..
I get you are excited but that's just wrong.
Sent from my SPH-D710 using xda app-developers app
Click to expand...
Click to collapse
And against the rules. Please don't do that.
Sent from mALL GLORY TO THE HYPNOTOAD!!

jayharper08 said:
Please keep it on topic.
Click to expand...
Click to collapse
I don't believe "bumps" are on topic............. I've already asked once. Next time there won't be a "please" in front of my statement.

Related

Android Dev. How-To Guide: Compiling the Android/Linux kernel for the Epic Touch 4G

Android Development How-To: Compiling the Android/Linux kernel for the Epic Touch 4G.
NOW INCLUDES ROOT!!!
Introduction: This guide is meant for people who want to get started with android development and don't know where to start. This thread can also be used as a reference place for android development on the et4g. This guide well first be on compiling the android kernel and flashing it to your phone and, I well update it on a regular basis for more complex mods and such to get you familiar with the android platform. If at anytime anyone would like to add more to this, pm me with what you would like to add or fix. Android is an open-source wonderland and I feel like more people should experience the fun of android development. Just remember I am not responsible if you do something stupid and break your phone!
First, we are going to get familiar with the android kernel by compiling a stock build and flashing it with Odin to your et4g.
What you need to download to compile the kernel:
Samsung open-source kernel and platform files. Available at: Samsung Open Source
Type in: Sph-d710 in the search bar in the link and download latest source.
initramfs files (More on this later) (includes cwm, busy box, and of course root! Thanks to chris41g for his help.) Files available at: Initramfs Files
Tool chain for compiling: Available at: Arm-toolchain
Preferably Ubuntu or another Distro. Of Linux running on a partition or Virtual machine.
Step 1: Were going to unzip the source you got from Samsung and take a short look around.
unzip the source and unzip the file that says, “SPH-D710_GB_Kernel.tar.gz” and, open it up. You are now looking at the kernel source for the Epic touch 4g! Okay I well not go over to much whats is here but, I well add a more in depth look in the kernel soon.
Scroll to the bottom of the source and you should see a document that says, "makefile". We are just going to add a name for your stock compile of the kernel, to make it a little more special. Open it and go to where it says Extra version and add your last name ,just make it all lower case letters or it wont compile correctly. When you flash it to your phone, the about phone panel in setting well say: Kernel version: 2.6 [last name you chose] now.
Step 2: Lets get started!
Open terminal in Linux and change your directory to the kernel. You do this by putting,
“cd” and then typing where your kernel source is then hit enter. My terminal looked like this:
cd /home/shane/Desktop/SPH-D710_GB_Kernel
Click to expand...
Click to collapse
Step 3: Tell terminal where your tool chains you downloaded are located.
The kernel is compiled using a tool chain, and the terminal needs to know where the tool chain is to compile. (The tool chain is the folder called “arm-2009q3” )Start by typing this in the terminal:
export CROSS_COMPILE=
Click to expand...
Click to collapse
Then after that put where your tool chain is located. Also when you are entering where it is at, you need to put a “/bin/arm-none-eabi-” at the end of the directory. This shows the terminal that the compiling tools are under the folder bin and starts with arm-none-eabi- and the android compilation adds the last word for the compiler program it needs. (you can see this if you go into the bin folder under the “arm-2009q3 folder.) For adding the tool chain I entered this:
export CROSS_COMPILE=/home/shane/Desktop/arm-2009q3/bin/arm-none-eabi-
Click to expand...
Click to collapse
Then hit enter.
Step 4: Clean the kernel, enter configuration files and make the modules.
Enter this command:
sudo make clean
Click to expand...
Click to collapse
Then enter password and hit enter.
Then it well say something like:
make: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: Command not found
Click to expand...
Click to collapse
IGNORE THIS! It is just a fragment in a configuration file that says the toolchain is not in the default location. But, we changed the tool chain location in step 3 so it well compile correctly.
This cleans up and organizes the kernel for compilation.
Now enter this command in terminal:
make c1_rev05_na_spr_defconfig
Click to expand...
Click to collapse
This is the configuration files for the epic touch 4g and well compile the kernel based off what is in these files.
Now were going to compile all the modules so wifi,vibration... work.
Enter this in terminal:
make modules
Click to expand...
Click to collapse
Step 5: Moving the newly compiled modules to the initramfs/lib/modules folder.
We are now going to move the modules from the newly compiled modules to the initramfs files. So that wifi and vibration well be working in our kernel.
*Initramfs files are the root filesystem of the kernel and does processes the kernel can't do itself while its booting.
You can do this by terminal or by hand. We are just moving the modules to the initramfs to be used when compiling the kernel.
You can type this into terminal (Where it says “Path to initramfs” you need to replace with your own path to the initramfs folder + /lib/modules) :
cp drivers/samsung/j4fs/j4fs.ko Path to initramfs/lib/modules
cp drivers/scsi/scsi_wait_scan.ko Path to initramfs/lib/modules
cp drivers/bluetooth/bthid/bthid.ko Path to initramfs/lib/modules
cp drivers/net/wireless/bcm4330/dhd.ko Path to initramfs/lib/modules
cp drivers/samsung/vibetonz/vibrator.ko Path to initramfs/lib/modules
cp drivers/staging/westbridge/astoria/switch/cyasswitch.ko Path to initramfs/lib/modules
Click to expand...
Click to collapse
This copies the new modules out of the kernel source and puts them in the initramfs/lib/modules folder to be used later.
Now once you enter that press enter.
Step 7: Compiling the android kernel with initramfs.
Type this in terminal:
make -j5 CONFIG_INITRAMFS_SOURCE=Path to initramfs file
Click to expand...
Click to collapse
*Remember to replace the “path to initramfs file” with the path to the initramfs file.
Okay this well take anywhere from 5-15 mins. to compile depending on your system.
Step 8: Were done compiling, lets make something flashable for Odin!
Just type in terminal:
cd arch/arm/boot/
Click to expand...
Click to collapse
Then type:
tar cvf MyKernel.tar zImage
Click to expand...
Click to collapse
This well zip up the zimage (the kernel) you just compiled to something flashable in odin.
If you open up the kernel source file and go to arch/arm/boot you well see the zimage you compiled and, the Mykernel.tar file for Odin. Double check and right click on the zimage and make sure it is around 5-6 MB before flashing.
Step 9: Flashing to your phone.
Go to a windows computer and download Odin.(if you have rooted your phone using zedomax's method you should have it installed already)
Okay now open it up and place the Mykernel.tar file in the PDA section of Odin. Now download the drivers for your phone if you haven't.(I assume you already have.) Then put your phone in download mode (hold volume down button and power button on start up and push volume up button when the warning pops up) Now plug your phone into the computer and make sure “auto-reboot” is the only box checked in Odin. Hit start and your phone well be flashed with a kernel you compiled yourself! If you did this right your phone should start up. If it is stuck in a boot loop, immediately put back in download mode and flash to stock. Link available here to stock files:
http://forum.xda-developers.com/showthread.php?t=1409634
and, try to figure out what you did wrong while compiling and try again!
Good job you have finished!
Step 10: The future and your new phone!
I would like to include more android kernel mods and stuff in the future but, wanted to get this out there to get people familiar with the android compiling process. I want this guide to be something people reference as they start to develop, by using the methods here along with kernel and U.I mods on the platform being implemented in the future. My ultimate goal is to at least know I helped at least one person get into android development so, if I helped you please leave a reply or say thanks. If anyone has ideas to add to the post, please pm me.
Have fun developing!
I'll take this...
and this...
One more...
Awesome!!!! I have been patiently awaiting this. THANK YOU SOOO MUCH!!!!
Sent from my SPH-D710 using xda premium
Thank you! Definitely will be referring to this during my free time. Can't wait to see what else gets added
Sent from my SPH-D710 using xda premium
Awesome!! tyvm!!
Wow... How awesome is this? I have been looking for something like this for a long time. I will be watching for updates. Thank you very much.
all u need now is a video tutorial
My man!!! Thank you for this!!
Sent from this phone
Awesome guide, I am looking forward to giving this a go soon. Just curious but how difficult is the process to include a custom recovery?
dtm_stretch said:
Awesome guide, I am looking forward to giving this a go soon. Just curious but how difficult is the process to include a custom recovery?
Click to expand...
Click to collapse
It all depends if you wanted to flash a already made custom recovery (cwm) then we would just haved to root the kernel then build and flash the recovery. If you were to make a fully custom recovery with custom functions made by you then it could get a little more tricky but, I am guessing you just mean flashing a custom recovery like cwm. Which is not terribly hard but, not neccesary easy eather depending on how hard it is to obtain root.
I might update the guide in the future. Showing how to do something like this but, I have a few more ideas for the guide before I include this.
You nailed it, I was curious about adding root and CWM(or a variation of it). I am more than content with figuring out what you have posted so far.
Thank you so much. This is absolutely great!
Sent from my SPH-D710 using XDA App
Awesome guide. Thank u so much for this. Hope for many more.
Sent from my Nexus S 4G using xda premium
Very awesome thanks for the share!!
Sent from my SPH-D710 using XDA App
Great Guide!
Very informative and well put, Thank You.
thank you very much for this! Gives me something new to try out. Thanks again!!!
Sent from my SPH-D710 using Tapatalk
Thanks for this effort. Unfortunately I don't have anything to contribute to your work. I consider myself a budding developer and have been diligently teaching myself to program with the use of some great texts over the last 2 weeks. While I have much to learn this guide and hopefully any additions you make will help me dive nose first into Android development like I've been hoping to for the last couple of years.
I hope you continue to add more into this guide and it becomes a great resource for others like me.
Great Job!
obelisk79 said:
Thanks for this effort. Unfortunately I don't have anything to contribute to your work. I consider myself a budding developer and have been diligently teaching myself to program with the use of some great texts over the last 2 weeks. While I have much to learn this guide and hopefully any additions you make will help me dive nose first into Android development like I've been hoping to for the last couple of years.
I hope you continue to add more into this guide and it becomes a great resource for others like me.
Great Job!
Click to expand...
Click to collapse
I hope it helps!

[DEV/ROM][I957]Compiled ICS For i957[3/24/12]

Please keep in mind this is a work in progress and is currently intended for devs only. Do not flash if you don't know what you're doing.
Ok, after making some progress towards getting this thing ready for user-space, I've decided to finally start a thread on it just to see if I can get anyone interested or willing to help... This ROM is currently in below Alpha status (if there is such a thing) and does not boot, but I believe I can get it booting in about a week barring a system crash or a zombie apocalypse. Again, this is only meant for a jumping off point towards getting AOSP ICS on our I957s, so don't blame me if you flash this and your tab becomes bricked...
Source
Link to source ------> Here
Github
Link to Github ------> Here
Want to Help?
Code:
Downloading and Building from Source
Edit
Follow the Repo instructions to download and install Repo.
Download the Android source tree by specifying the branch and manifest for a specific Code Aurora release. In this example the download the carrot.cupcake branch using manifest ''M7201JSDCBALYA6380.xml''
$ repo init -u git://codeaurora.org/platform/manifest.git -b ics -m M8260AAABQNLZA30120.xml --repo-url=git://codeaurora.org/tools/repo.git
$ repo sync
Build the source tree
$ source build/envsetup.sh
$ choosecombo 1 1 msm8660_surf eng
$ make -j4
Running choosecombo with no arguments will prompt for Android build options and target.
Downloads
Link to ROM------> Here
Thanks to Da_g for the kernel base, and thanks to the people at Code Aurora for the msm8660 source.
Great stuff jo
Sent from my SAMSUNG-SGH-I727 using xda premium
Sweet, Thank you for start a build for i957 and Finally about time!
great start, thank you!!!!
MaX
Great news, keep up the good work.
Yes thank you very much for this start!
ICS for i957?
I'm ready to test when you have a bootable ROM! Where are you getting ICS-compatible hardware drivers for the i957?
Thanks
phil_white99 said:
I'm ready to test when you have a bootable ROM! Where are you getting ICS-compatible hardware drivers for the i957?
Thanks
Click to expand...
Click to collapse
Base drivers can be used from the msm8660 ics source code provided by Code Aurora, and proprietary can be used from the stock Honeycomb firmware. Hopefully.
1. THANKS JO!
2. In order to boot, what is needed?
I'm assuming this is a CWM zip, not an odin package, right>
With ics for the skyrocket leak hopefully things will get easier
Sent from my SAMSUNG-SGH-I727 using xda premium
Thank You. Hell yeah! You guys rock. I'll help out if I can.
I'm willing to test too.
hey Jo there are some ICS CWM roms starting to come out for the skyrocket (ICSMOD5 is what I was looking at). Do you think with some script edits this could be flashed to the i957?
thanks to OP for attempting this. there are enough of us i957 users out there I think !
orlandoxpolice said:
hey Jo there are some ICS CWM roms starting to come out for the skyrocket (ICSMOD5 is what I was looking at). Do you think with some script edits this could be flashed to the i957?
Click to expand...
Click to collapse
Yes, but the problem is we would probably need our own ICS kernel to get most of the stuff working. I'll try my hand at ICSMOD5, but I'm not sure if anything will work without a dedicated kernel.
jomeister15 said:
Yes, but the problem is we would probably need our own ICS kernel to get most of the stuff working. I'll try my hand at ICSMOD5, but I'm not sure if anything will work without a dedicated kernel.
Click to expand...
Click to collapse
yes you are right about that, but i think the tmobile guys got ics running with the skyrocket kernel but they are having issues with data.
orlandoxpolice said:
yes you are right about that, but i think the tmobile guys got ics running with the skyrocket kernel but they are having issues with data.
Click to expand...
Click to collapse
Ok, I'm not really going to be able to use my tab for dev purposes this weekends, but if you want to try a port here's what you need to do.
1) Setup a build enviornment in dsixda's kitchen with ICSMOD5.
2) You'll need to look at the updater-script and change the partition blocks according to the Tab (e.g system needs to be 25 instead of 24).
3) Two ways to do 3. One: grab the kernel from this thread and put it in ICSMOD, or Two: You could just leave the kernel as is. I'm wary of option Two.
4) Flash it. If it doesn't boot, try to get a logcat and send it my way. If it does, then yay ICS.
jomeister15 said:
Ok, I'm not really going to be able to use my tab for dev purposes this weekends, but if you want to try a port here's what you need to do.
1) Setup a build enviornment in dsixda's kitchen with ICSMOD5.
2) You'll need to look at the updater-script and change the partition blocks according to the Tab (e.g system needs to be 25 instead of 24).
3) Two ways to do 3. One: grab the kernel from this thread and put it in ICSMOD, or Two: You could just leave the kernel as is. I'm wary of option Two.
4) Flash it. If it doesn't boot, try to get a logcat and send it my way. If it does, then yay ICS.
Click to expand...
Click to collapse
OK I have followed these instructions; downloaded ICSMOD5, set up the kitchen, grabbed the kernel (assuming that's boot.img) from your zipfile in the first post of this thread and copied it to the working folder, overwriting the Skyrocket kernel.
Then I looked at the updater script to see if partitions need changing. Per this post the layout looks OK. Example: /system is p24 and /boot is p08 already.
So far so good? Planning a test for later today.
Exciting let me know how it goes
Sent from my SAMSUNG-SGH-I727 using xda premium
Also don't use the default generated kitchen updater script
Sent from my SAMSUNG-SGH-I727 using xda premium

How to compile the GS3 kernel from source

Prerequisites:
A (preferably 64 bit) BSD/Linux distro, I use LMDE but most prefer Ubuntu
The setup (only have to do once)
1. Install some binaries for compiling android. Not all of these are needed but get them all to be safe...
"sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.6-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev sun-java6-jdk pngcrush schedtool
g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline5-dev gcc-4.3-multilib g++-4.3 multilib"
2. Clone the prebuilt toolchains
"git clone git://github.com/cyanogenmod/android_prebuilt.git ~/prebuilt/"
3. Clone the GS3 kernel source
"git clone git://github.com/EpicCM/SPH-L710_NA_Kernel.git ~/GS3Kernel"
Compiling
1. Enter your kernel directory
"cd ~/GS3Kernel"
2. Add the toolchain to path
"export PATH=$PATH:/home/{your username}/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/"
3. Clean the kernel source
"make ARCH=arm clean"
4. Set the config for the Sprint GS3
"make ARCH=arm m2_spr_defconfig"
5. Compile the kernel
"make -j4 ARCH=arm CROSS_COMPILE=arm-eabi-"
Would you know a working method to modify the kernel? Say to add init.d, boot animation and root? I found a guide on here from another section. It appeared to have worked just fine, but when someone flashed one of their own from the guide it bricked their device :s
Tsudeily said:
Would you know a working method to modify the kernel? Say to add init.d, boot animation and root? I found a guide on here from another section. It appeared to have worked just fine, but when someone flashed one of their own from the guide it bricked their device :s
Click to expand...
Click to collapse
Dude I don't think its possible to make a kernel yet since the device source is incomplete and the kernel source won't give you a complete boot image. Maybe I am wrong though, what device source did you use? And did it compile as a zimage? I'm pretty sure you would either need a pre existing boot.img or to build with the device source as well, but that doesn't have the right files yet.
Sent from my GT-P7510 using Tapatalk 2
Sprint GS3 source code is up
Sent from my SPH-D700 using XDA Premium App
I will try this with my T-Mo version when I get home. With the tmo kernel of course
while this is a decent guide to get you up and running, its not all that is needed to make a hopefully booting kernel.
1) https://github.com/Shabbypenguin/SPH-L710_Ramdisk enjoy
2) mkbootimg --cmdline "console=null androidboot.hardware=qcom user_debug=31" --kernel /zImage --ramdisk /ramdisk.gz --base 0x80200000 --ramdiskaddr 0x81500000 -o /Boot.img
that should be the command to pack the zimage with the ramdisk.gz and end up with a boot.img format. i know a lot of the samsung devs are prolly more used to the traditional kernel setup. that command line and base address i have yet to test, but if i find out its wrong ill come back and edit it for the purposes of knowledge
edit: also here is a fancy little kernel script i used, edit the spots you need to to make it work etc. youll notice CROSS_COMPILE isnt there, its because i edited the makefile to reflect my toolchain
http://pastebin.com/hkZ0aetR
shabbypenguin said:
while this is a decent guide to get you up and running, its not all that is needed to make a hopefully booting kernel.
1) https://github.com/Shabbypenguin/SPH-L710_Ramdisk enjoy
2) mkbootimg --kernel zImage --ramdisk ramdisk.gz --cmdline "console=null androidboot.hardware=qcom user_debug=31" -o Boot.img --base 0x80200000
that should be the command to pack the zimage with the ramdisk.gz and end up with a boot.img format. i know a lot of the samsung devs are prolly more used to the traditional kernel setup. that command line and base address i have yet to test, but if i find out its wrong ill come back and edit it for the purposes of knowledge
edit: also here is a fancy little kernel script i used, edit the spots you need to to make it work etc. youll notice CROSS_COMPILE isnt there, its because i edited the makefile to reflect my toolchain
http://pastebin.com/hkZ0aetR
Click to expand...
Click to collapse
Or you could make the zimage then use anykernel updater
Sent from my SPH-L710 using xda app-developers app
jamcar said:
Or you could make the zimage then use anykernel updater
Sent from my SPH-L710 using xda app-developers app
Click to expand...
Click to collapse
the anykernel updater is fine, however it unpacks someones current kernel takes their ramdisk and puts it in yours, ergo if you enable bootanimations and init.d by using that on a stock user you will lose all that.
edit: i need to upload my newest kernel script for everyone but working towards OC/UV right now
shabbypenguin said:
the anykernel updater is fine, however it unpacks someones current kernel takes their ramdisk and puts it in yours, ergo if you enable bootanimations and init.d by using that on a stock user you will lose all that.
edit: i need to upload my newest kernel script for everyone but working towards OC/UV right now
Click to expand...
Click to collapse
Talk to the dev (Romanbb) over in T-Mobile development, they have an OC kernel up and running - http://forum.xda-developers.com/showthread.php?t=1741684
EDIT: Even more relevant, his github: https://github.com/romanbb/kernel_sgh-t999
good to see the epic community in these parts great job merchant... hoping for aosp soon and let the ports begin..
Bfitz26 said:
good to see the epic community in these parts great job merchant... hoping for aosp soon and let the ports begin..
Click to expand...
Click to collapse
Well will that be you?
You know there are CM9 nightlies available for sprint's gs3 and others
Sent from my SPH-D700 using XDA Premium App
yes i just got mine and i did see nightlies maybe i could start working on somethings but i was hoping for a official cm9 before jumping on board
Any chance of a marcusant ROM
Sent from my SPH-D710 using XDA
RaydenEris said:
Any chance of a marcusant ROM a fan of the og epic work you put in
Sent from my SPH-D710 using XDA
Click to expand...
Click to collapse
Sent from my Nexus 7 using xda premium
Where do you place the modules with this process? I dont see them listed anywhere in the ramdisk? Also if you decompile a stock kernel the modules dont show up anywhere in the ramdisk? Im used to the old samsung way zImage style with initramfs.... Im confused can someone unconfuse me?
Any post from marcusant in my new phone's dev section gets a thanks from me
Sent from my SPH-L710 using xda app-developers app
...
DrKaotica said:
Any post from marcusant in my new phone's dev section gets a thanks from me
Sent from my SPH-L710 using xda app-developers app
Click to expand...
Click to collapse
Bet he's got a girlfriend now.
Sent from my SPH-L710 using xda app-developers app
Compiling is a pan in the arose
Sent from my SPH-L710 using xda app-developers app
Marcusant whats up bud! Any chance on getting some marcusant rom love?
Sent from my SPH-L710 using Tapatalk 2

Ls970-zvc kernal tar

Here ya go some goodies for u ....
Kernal tar text :
1. Android Build
- Download original android source code ( jelly bean 4.1.2 ) from http://source.android.com
- Unzip opensource packages of LS970_OptimusG_Android_JB_LS970ZVC_Android.tar.gz into downloaded android source directory
- And, merge the source into the android source code
- Run following scripts to build android
a) source build/envsetup.sh
b) choosecombo 1 geehrc4g_spr_us 1
c) m -j4
- When you compile the android source code, you have to add google original prebuilt source(toolchain)
into the android folder
- After build, you can find output at out-geehrc4g_spr_us/target/product/geehrc4g
2. Kernel Build
- Untar using following command at the android folder
tar zxvf LS970_OptimusG_Android_JB_LS970ZVC_kernel.tar.gz
- When you compile the kernel source code, you have to add google original prebuilt source(toolchain)
into the android folder.
- cd kernel
- make j1sp-perf_defconfig ARCH=arm
- make ARCH=arm CROSS_COMPILE=../prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
3. After build, you can find the build image(zImage) at arch/arm/boot/
New upload of Kernal zvc :
https://docs.google.com/file/d/0B1DGsUzId7AHdXl1RWNNYXFGcHc/edit?usp=docslist_api
Lg ls970_zvc license link : https://docs.google.com/file/d/0B1DGsUzId7AHN2NuUXBnd3c1SnM/edit?usp=docslist_api
Sent from my LG-LS970 using Tapatalk 4
Built date submit * Fri Jul 13 2013 Crutcher Dunnavant * - changed to provide snprintf and vsnprintf functions
Sent from my LG-LS970 using Tapatalk 4
bigfdaddy2 said:
Built date submit * Fri Jul 13 2013 Crutcher Dunnavant * - changed to provide snprintf and vsnprintf functions
Sent from my LG-LS970 using Tapatalk 4
Click to expand...
Click to collapse
Is this what the guy was talking about in the post about the Optimus G software update?
Sent from my LG-LS970 using xda premium
This is the kernal for that software update coming ...
Sent from my LG-LS970 using Tapatalk 4
Sent from my LG-LS970 using Tapatalk 4
bigfdaddy2 said:
This is the kernal for that software update coming ...
Sent from my LG-LS970 using Tapatalk 4
Click to expand...
Click to collapse
Ok. That's what I thought, I was just too lazy to read.
Sent from my LG-LS970 using xda premium
_dannyboy said:
Ok. That's what I thought, I was just too lazy to read.
Sent from my LG-LS970 using xda premium
Click to expand...
Click to collapse
Lol it all good
Sent from my LG-LS970 using Tapatalk 4
Phone appman is set at test server and so is the bau server .... hopefully lets me get a lil sooner ... unsure whether appman and bau needs to be test server or staging server ....
Sent from my LG-LS970 using Tapatalk 4
bigfdaddy2 said:
Here ya go some goodies for u ....
Kernal tar text :
1. Android Build
- Download original android source code ( jelly bean 4.1.2 ) from http://source.android.com
- Unzip opensource packages of LS970_OptimusG_Android_JB_LS970ZVC_Android.tar.gz into downloaded android source directory
- And, merge the source into the android source code
- Run following scripts to build android
a) source build/envsetup.sh
b) choosecombo 1 geehrc4g_spr_us 1
c) m -j4
- When you compile the android source code, you have to add google original prebuilt source(toolchain)
into the android folder
- After build, you can find output at out-geehrc4g_spr_us/target/product/geehrc4g
2. Kernel Build
- Untar using following command at the android folder
tar zxvf LS970_OptimusG_Android_JB_LS970ZVC_kernel.tar.gz
- When you compile the kernel source code, you have to add google original prebuilt source(toolchain)
into the android folder.
- cd kernel
- make j1sp-perf_defconfig ARCH=arm
- make ARCH=arm CROSS_COMPILE=../prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
3. After build, you can find the build image(zImage) at arch/arm/boot/
Kernal DL : https://docs.google.com/file/d/0B1DGsUzId7AHVXlVN2tBWXRYUE0/edit?usp=docslist_api
Lg ls970_zvc license link : https://docs.google.com/file/d/0B1DGsUzId7AHN2NuUXBnd3c1SnM/edit?usp=docslist_api
Sent from my LG-LS970 using Tapatalk 4
Click to expand...
Click to collapse
Nicely done, did you see anything new building the kernel from source.
Sent from my LG-LS970 using xda app-developers app
I haven't done any building with it to test ....I just was able to pull the kernal from the new update heading our way .... I know evoloutionmods,neighborhood hacker have put it into some builds and are testing it out ....
Sent from my LG-LS970 using Tapatalk 4
bigfdaddy2 said:
I haven't done any building with it to test ....I just was able to pull the kernal from the new update heading our way .... I know evoloutionmods,neighborhood hacker have put it into some builds and are testing it out ....
Sent from my LG-LS970 using Tapatalk 4
Click to expand...
Click to collapse
Nice, Hopefully this will fix the bug issues, I think they are doing this too prepare the phone at the end of year for android 4.3
tommyjoesanders said:
Nice, Hopefully this will fix the bug issues, I think they are doing this too prepare the phone at the end of year for android 4.3
Click to expand...
Click to collapse
I don't believe we will receive 4.3 I know we will get 4.2 but they say it will be by end of year .... Lg seems to usually do 4-5 updates to their top tier phones .. We have had two major updates and know this minor update thats coming and the first minor update for ICS equals our 4 updates lol...
Sent from my LG-LS970 using Tapatalk 4
Posted new upload of zvc kernal ... I messed up last night while uploading ....
Sent from my LG-LS970 using Tapatalk 4
bigfdaddy2 said:
I don't believe we will receive 4.3 I know we will get 4.2 but they say it will be by end of year .... Lg seems to usually do 4-5 updates to their top tier phones .. We have had two major updates and know this minor update thats coming and the first minor update for ICS equals our 4 updates lol...
Sent from my LG-LS970 using Tapatalk 4
Click to expand...
Click to collapse
We've had one major update. 4.1.2. We started with zv7, zv8 and 9 were bug fixes. ZVB is the only major one I can think of. Zvc seems fairly minor.
Sent from my LG-LS970 using xda app-developers app
Sorry to resurrect a dead thread but this is the only one that I saw that talks about compiling from LG kernel source.
I think I did everything like your instructions say but the output folder for my kernel doesn't have a zImage file. The closest name is Image but it's 14.4MB (way bigger than viper kernel, for instance) and it doesn't boot via fastboot boot Image. I'd appreciate it if anyone could give me some pointers.
EDIT: looks like I hadn't installed lzop, never mind.
VoluntaryMan said:
Sorry to resurrect a dead thread but this is the only one that I saw that talks about compiling from LG kernel source.
I think I did everything like your instructions say but the output folder for my kernel doesn't have a zImage file. The closest name is Image but it's 14.4MB (way bigger than viper kernel, for instance) and it doesn't boot via fastboot boot Image. I'd appreciate it if anyone could give me some pointers.
EDIT: looks like I hadn't installed lzop, never mind.
Click to expand...
Click to collapse
I tried it using toolchain 4.6.3, among many others, and at best, the error was with the tsp.drv. When I removed it it compiled fine. But no boot.
How did you get past that error? Also, I have issues getting the modules to compile. How'd you fix that?
I'm trying to learn in my spare time so that's probably my problem. TIA
Sent from my LG-LS970 using XDA Premium 4 mobile app
engine95 said:
I tried it using toolchain 4.6.3, among many others, and at best, the error was with the tsp.drv. When I removed it it compiled fine. But no boot.
How did you get past that error? Also, I have issues getting the modules to compile. How'd you fix that?
I'm trying to learn in my spare time so that's probably my problem. TIA
Click to expand...
Click to collapse
I just started with the source of Viper Kernel, it's ZVC based and already have some good fixes.
You can also see the source I'm working on at bmos/JB_LS970ZVC_Adder, although mine isn't booting right now (although I'm about to try toolchain 4.7 which it says it is optimised for)

[Q&A] fhd kernel ( ZE551 ) with KVM & Bridge compiled. *need help*

Q&A for fhd kernel ( ZE551 ) with KVM & Bridge compiled. *need help*
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for fhd kernel ( ZE551 ) with KVM & Bridge compiled. *need help*. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
Hi there.
Possibly unrelated question, but where did you get the binary blobs from? I plan on buying the device soon (in early August) and develop on it, so I would appreciate a bit of help if you could.
Cheers!
Well.. here's how I set up the development environment:
1. Install Root
2. Install Linux Deploy app from the market
3. Install Aparted from the market
4. Get a microSD card w/ at least 64 gigs & partition it to have at least 50 gigs ext4 using Aparted
5. Install Arch Linux ( i686 ) using Linux Deploy to that 50 gig ext4 partition
6. Convert Arch Linux from i686 to x86_64 ( google it ), you don't need to compile a new kernel because our kernel is already x86_64
7. Set up the basic build environment for AOSP in Arch ( google it )
8. Set up a link to python-2.7 as /opt/android-build/python
9. Make a bin directory in your home directory
10. Download repo from git archives to ~/bin directory
11. Make a working directory, ie ~/android
12. cd ~/android
13. export PATH=/opt/android-build:~/bin:$PATH
14. use repo to initialize the android-5.0.0_r7 branch
15. Delete all references for OMA-DM in ~/android/.repo/manifest.xml & ~/android/.repo/packages
16. repo sync
17. Download the latest source from Asus's website ( currently, 2.18 source has issues, so download both 2.12 & 2.18 )
18. un-tar the source(s) in ~/android
19. cd ~/android
20. source build/env.sh
21. lunch aosp_x86-eng
22. make minigzip openssl
23. make -f KernelMakefile TARGET_DEVICE=fhd build_kernel
If the kernel compiles fine, then you know you have a proper build environment.
Quick question about this kernel... Does this allow us to run a full x86 Windows build on our devices as a VM?
That's the idea if you're brave enough to try it.
To get the best performance, you need virtualization and that's what the kvm modules set up.
Afterwards, you need an emulation layer that supports virtualization, like qemu-kvm to define the virtual machine. Unlike pure emulation, kvm sends the instructions directly to the processor(s) so the virtual machine runs at near native speeds.
Sent from my ASUS_Z00AD using XDA Free mobile app
ycavan said:
That's the idea if you're brave enough to try it.
To get the best performance, you need virtualization and that's what the kvm modules set up.
Afterwards, you need an emulation layer that supports virtualization, like qemu-kvm to define the virtual machine. Unlike pure emulation, kvm sends the instructions directly to the processor(s) so the virtual machine runs at near native speeds.
Sent from my ASUS_Z00AD using XDA Free mobile app
Click to expand...
Click to collapse
Has anyone tried this and gotten it to work? If so, please share the steps to get it working along with screenshots. Thanks in advance!
Sent from my ASUS_Z00AD using XDA Free mobile app
Techronico said:
Has anyone tried this and gotten it to work? If so, please share the steps to get it working along with screenshots. Thanks in advance!
Sent from my ASUS_Z00AD using XDA Free mobile app
Click to expand...
Click to collapse
We're getting much closer here are some screenshots ( I know screenshots don't really show the performance ).
All in all, all 3 methods of connection are pretty smooth: SDL ( using XServer-XSDL as the X Server ), vnc ( using any vnc client ) & SPICE ( VMWare style display adapter, this also provides sound with the aspice app in the Play store ).
Edit: Added a screenshot of Epsxe starting up Suikoden 2, forgot I had sound on so had to shut it off pretty quickly since I'm still at work. haha
Edit2: Please go to this Post to see the video http://forum.xda-developers.com/zenfone2/general/zf2-running-windows-7-using-kvm-t3153299
Flashing Kernal
ycavan said:
We're getting much closer here are some screenshots ( I know screenshots don't really show the performance ).
All in all, all 3 methods of connection are pretty smooth: SDL ( using XServer-XSDL as the X Server ), vnc ( using any vnc client ) & SPICE ( VMWare style display adapter, this also provides sound with the aspice app in the Play store ).
Edit: Added a screenshot of Epsxe starting up Suikoden 2, forgot I had sound on so had to shut it off pretty quickly since I'm still at work. haha
Edit2: Please go to this Post to see the video http://forum.xda-developers.com/zenfone2/general/zf2-running-windows-7-using-kvm-t3153299
Click to expand...
Click to collapse
Thanks for your wonderful work. I am really stuck at flashing your kernel. I see you mentioned you setup the files in .tar. However, I'm still trying to understand if I should be converting the file to a .img or if I should be extracting and compressing to some other format. Please try to clarify this. Thank you.
sivasagaru said:
Thanks for your wonderful work. I am really stuck at flashing your kernel. I see you mentioned you setup the files in .tar. However, I'm still trying to understand if I should be converting the file to a .img or if I should be extracting and compressing to some other format. Please try to clarify this. Thank you.
Click to expand...
Click to collapse
un-tar it into an img. XDA doesn't allow very large .img files, so I had to tar the img to attach it.
Thanx for this
Plz how i can install this kernal in my phone .. Sorry iam begnner
---------- Post added at 12:19 AM ---------- Previous post was at 12:06 AM ----------
How to install kernal in my phone please .. Thanx alot
You will need to unlock your boot loader first.
Next, download the newest kernel from the original link in the original development section. ( fhd kernel ... )
If you have a ZE551, get the fhd kernel; if you have a ZE550, get the hd kernel.
The file you want will end in .img.tar
Untar the img file.
Either backup your boot partition or make sure you have the stock boot.img around in case of problems.
Reboot your phone in Fastboot
Fastboot flash boot ( kernel img name )
Reboot phone and pray that it boots up.
If it doesn't, reboot into Fastboot and flash the backup/stock boot.img.
But if you are really really new to this game, I would recommend reading around the forums for a bit before trying this.
Sent from my ASUS_Z00AD using XDA Free mobile app
help to install Zenfone 2 custom kernel KVM enabled
If it is possible for any one please describe how to install this kernel step by step
I have my device rooted and unlocked but there is no explanation how to flash/install this new kernel
Please help me
help to install Zenfone 2 custom kernel KVM enabled on 551 Z00A_WW_2.19.40.22
I used Z00A_WW_2.19.40.22_system_w_root rom and unlock my kernel or I think so then flash KVM enabled rom using fastboot flash boot boot.img (boot_fhd_2.19_kvm_bridge_20150710.img for 551) but what ever I do it wont boot up and enter to a dead android screen and under android icon there is only “error” and page flickers any one can help me
I don't think you can unlock your boot loader with .22; I believe Asus patched that. You will probably need to flash .18 and unlock your boot loader, then update. I've also heard that .22 is flaky so I'm still on .20
Sent from my ASUS_Z00AD using XDA Free mobile app
it is working ?
Unplug the phone, hit the power button and hope it boots up
Sent from my ASUS_Z00AD using XDA Free mobile app
ycavan said:
Unplug the phone, hit the power button and hope it boots up
Sent from my ASUS_Z00AD using XDA Free mobile app
Click to expand...
Click to collapse
i do that and its ok >>> its working now ???
After you reboot your phone, you will need to load the kvm related modules. I uploaded a script to the OP to make it easier. As root, copy it to data our system and execute it after a reboot.
Now you have a kvm enabled kernel
Sent from my ASUS_Z00AD using XDA Free mobile app
no sdxc with this kernel( Sandisk 64Gb ultra SDSDQUA-064G
Weird, I use a 128 gb sdxc card w/ my kernel.
Sent from my ASUS_Z00AD using XDA Free mobile app

Categories

Resources