yashsingh1/xdaforums huggingface dataset:
[Samsung Epic 4G Touch] dtm_stretch:
I am trying it now with the desperado github, I just added the lib/modules folder and copied the created modules to there. It is compiling now I'll let you know how it works.

Also I did a complete restart then tried again before it worked.

**Oh and did you unpack the toolchain?
[Samsung Epic 4G Touch] shanenielsen1234:
Are you using the tool chain linked on the guide or a differrent one? Double check that the path is correct to. Go to your homefolder look for the desktop folder then look for the toolchain.
[Samsung Epic 4G Touch] chris41g:
I just realised this, you are using a linux toolchain on a mac..

you need a mac toolchain..
[Samsung Epic 4G Touch] dtm_stretch:
nvm, I think chris41g just solved your problem.
[Samsung Epic 4G Touch] shanenielsen1234:
Wow! Didn't evan notice that good eye!
[Samsung Epic 4G Touch] MikeC84:
I am using the one you provided.
[Samsung Epic 4G Touch] MikeC84:
Yes i am on a mac but running ubuntu, does that still matter?
[Samsung Epic 4G Touch] shanenielsen1234:
Try redownloading the toolchain and using that one. When I compiled my first android kernel there was a lot of issues to, you well get this working though!
[Samsung Epic 4G Touch] shanenielsen1234:
No it does not, as long as you are running ubuntu. Try redownloading the toolcchain
[Samsung Epic 4G Touch] shanenielsen1234:
When you posted what your entire terminal section looked like I noticed you were missing the command: make c1_rev05_na_spr_defconfig

You might want to try it with that also, if you forgot to put it in...
[Samsung Epic 4G Touch] MikeC84:
Yea ill try it, I was going off what you posted.

I still get the same error uhhh...

michaelc@michaelc-iMac:~$ cd /home/michaelc/Desktop/SPH-D710_GB_Kernel

michaelc@michaelc-iMac:~/Desktop/SPH-D710_GB_Kernel$ export CROSS_COMPILE=/home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-

michaelc@michaelc-iMac:~/Desktop/SPH-D710_GB_Kernel$ sudo make clean

[sudo] password for michaelc:

make: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: Command not found

CLEAN .tmp_versions

michaelc@michaelc-iMac:~/Desktop/SPH-D710_GB_Kernel$ make c1_rev05_na_spr_defconfig

HOSTCC scripts/basic/fixdep

HOSTCC scripts/basic/docproc

HOSTCC scripts/basic/hash

HOSTCC scripts/kconfig/conf.o

scripts/kconfig/conf.c: In function ‘conf_sym’:

scripts/kconfig/conf.c:159:6: warning: variable ‘type’ set but not used [-Wunused-but-set-variable]

scripts/kconfig/conf.c: In function ‘conf_choice’:

scripts/kconfig/conf.c:231:6: warning: variable ‘type’ set but not used [-Wunused-but-set-variable]

scripts/kconfig/conf.c:307:9: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]

scripts/kconfig/conf.c: In function ‘conf_askvalue’:

scripts/kconfig/conf.c:105:8: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]

HOSTCC scripts/kconfig/kxgettext.o

HOSTCC scripts/kconfig/zconf.tab.o

HOSTLD scripts/kconfig/conf

#

# configuration written to .config

#

michaelc@michaelc-iMac:~/Desktop/SPH-D710_GB_Kernel$ make modules

make: /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-gcc: Command not found

scripts/kconfig/conf -s arch/arm/Kconfig

make: /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-gcc: Command not found

CHK include/linux/version.h

CHK include/generated/utsrelease.h

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

CC kernel/bounds.s

/bin/sh: /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-gcc: not found

make[1]: *** [kernel/bounds.s] Error 127

make: *** [prepare0] Error 2

michaelc@michaelc-iMac:~/Desktop/SPH-D710_GB_Kernel$
[Samsung Epic 4G Touch] dtm_stretch:
@Mike

Just a heads up using the initramfs that Team Rogue has posted on their github compiled and flashed fine but seems to have broken wifi. I am sure it is my mistake somewhere in there though. The only thing I did was add the lib/module folder to their initramfs then copy the newly created modules over to there. Then I compiled.

I am sure I have just gotten a head of myself but I am very stoked that I was able to figure this out in one day.

**Also just learned, if you reboot into the stock recovery..it will reinstall of sprint's apps.
[Samsung Epic 4G Touch] shanenielsen1234:
Great job! On getting it working
[Samsung Epic 4G Touch] MikeC84:
Still getting the error after re-downloading the toolchain..

michaelc@michaelc-iMac:~$ cd /home/michaelc/Desktop/SPH-D710_GB_Kernel

michaelc@michaelc-iMac:~/Desktop/SPH-D710_GB_Kernel$ export CROSS_COMPILE=/home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-

michaelc@michaelc-iMac:~/Desktop/SPH-D710_GB_Kernel$ sudo make clean

[sudo] password for michaelc:

make: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: Command not found

CLEAN .tmp_versions

michaelc@michaelc-iMac:~/Desktop/SPH-D710_GB_Kernel$ make c1_rev05_na_spr_defconfig

HOSTCC scripts/basic/fixdep

HOSTCC scripts/basic/docproc

HOSTCC scripts/basic/hash

HOSTCC scripts/kconfig/conf.o

scripts/kconfig/conf.c: In function ‘conf_sym’:

scripts/kconfig/conf.c:159:6: warning: variable ‘type’ set but not used [-Wunused-but-set-variable]

scripts/kconfig/conf.c: In function ‘conf_choice’:

scripts/kconfig/conf.c:231:6: warning: variable ‘type’ set but not used [-Wunused-but-set-variable]

scripts/kconfig/conf.c:307:9: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]

scripts/kconfig/conf.c: In function ‘conf_askvalue’:

scripts/kconfig/conf.c:105:8: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]

HOSTCC scripts/kconfig/kxgettext.o

HOSTCC scripts/kconfig/zconf.tab.o

HOSTLD scripts/kconfig/conf

#

# configuration written to .config

#

michaelc@michaelc-iMac:~/Desktop/SPH-D710_GB_Kernel$ make modules

make: /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-gcc: Command not found

scripts/kconfig/conf -s arch/arm/Kconfig

make: /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-gcc: Command not found

CHK include/linux/version.h

CHK include/generated/utsrelease.h

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

CC kernel/bounds.s

/bin/sh: /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-gcc: not found

make[1]: *** [kernel/bounds.s] Error 127

make: *** [prepare0] Error 2

michaelc@michaelc-iMac:~/Desktop/SPH-D710_GB_Kernel$
[Samsung Epic 4G Touch] shanenielsen1234:
WOW!, Try running all the commands again but run it as root, "sudo su" enter password. Then continue with the make clean, CROSS_COMPILE, and make initramfs commands.

I think this is a permissions issue.
[Samsung Epic 4G Touch] chris41g:
su will further complicate the issue...

what you need to do, is verify the existence of the cross_compile path

export CROSS_COMPILE="/whatever/"
ls -l $CROSS_COMPILE*

paste that, if it looks correct, then do this

sudo chmod 777 $CROSS_COMPILE*
[Samsung Epic 4G Touch] MikeC84:
Did this and still get the same error, fml, this seems so simple yet I can't get it.
[Samsung Epic 4G Touch] agat63:
Kernel compile went without errors. Phone boots to system.

But somewhere on the road I lost wifi.

I extracted initramfs from current kernel I'm using and compiled with it.

Still no go.

Wifi gives error.

Any suggestions or ideas?
[Samsung Epic 4G Touch] dtm_stretch:
This is the same issue I had with the initramfs posted on the team rogue git. Which kernel did you use? Also how did you extract the initramfs from a compiled kernel?
[Samsung Epic 4G Touch] MikeC84:
So it wasnt the makefile. I am going to re-download all the files again and re-try...
[Samsung Epic 4G Touch] chris41g:
paste the results of

ls -l $CROSS_COMPILE*
[Samsung Epic 4G Touch] MikeC84:
michaelc@michaelc-iMac:~$ ls -l $CROSS_COMPILE*
-rw-r--r-- 1 michaelc michaelc 179 2011-12-21 20:26 examples.desktop

android-sdk-linux:
total 40
drwxr-x--- 2 michaelc michaelc 4096 2011-12-07 14:44 add-ons
drwxrwxr-x 16 michaelc michaelc 4096 2012-01-08 00:59 docs
drwxr-x--- 3 michaelc michaelc 4096 2012-01-08 01:00 platforms
drwxrwxr-x 4 michaelc michaelc 4096 2012-01-08 00:56 platform-tools
drwxrwxr-x 3 michaelc michaelc 4096 2012-01-08 01:00 samples
-rw-r----- 1 michaelc michaelc 1158 2011-12-07 14:44 SDK Readme.txt
drwxrwxr-x 3 michaelc michaelc 4096 2012-01-08 01:01 sources
drwxrwxr-x 3 michaelc michaelc 4096 2012-01-08 01:02 system-images
drwxrwxr-x 2 michaelc michaelc 4096 2012-01-08 01:02 temp
drwxr-x--- 6 michaelc michaelc 4096 2011-12-07 14:44 tools

Desktop:
total 2120
drwxrwxr-x 7 michaelc michaelc 4096 2012-01-06 16:21 arm-2009q3
drwx------ 6 michaelc michaelc 4096 2012-01-14 08:52 initramfs
-rw-rw-r-- 1 michaelc michaelc 2150766 2012-01-13 11:13 initramfs.tar.gz
-rwxr-xr-x 1 michaelc michaelc 387 2011-12-21 21:51 nautilus-home.desktop
drwx------ 6 michaelc michaelc 4096 2012-01-14 08:53 TDR-Epic4GTouch-Initramfs-cca14f2

Documents:
total 0

Downloads:
total 453168
-rw-rw-r-- 1 michaelc michaelc 36794815 2012-01-14 08:49 arm-2009q3 (1).tar.gz
-rw-rw-r-- 1 michaelc michaelc 36794815 2012-01-13 15:37 arm-2009q3.tar.gz
-rw-rw-r-- 1 michaelc michaelc 294910089 2011-12-21 23:00 Calkulin's_E4GT_ROM_v2.0.1a.zip
-rw-rw-r-- 1 michaelc michaelc 1204296 2012-01-08 21:30 Colors_v3.mtz
-rw-rw-r-- 1 michaelc michaelc 12297858 2011-12-21 22:04 opera_11.60.1185_amd64.deb
-rw-rw-r-- 1 michaelc michaelc 70232688 2012-01-14 08:54 SPH-D710_GB_Opensource.zip.crdownload
-rw-rw-r-- 1 michaelc michaelc 6430698 2012-01-13 12:07 StockACS5-EL26.zip
-rw-rw-r-- 1 michaelc michaelc 2678299 2012-01-14 08:51 TDR-Epic4GTouch-Initramfs-cca14f2 (1).zip
-rw-rw-r-- 1 michaelc michaelc 2678299 2012-01-13 11:15 TDR-Epic4GTouch-Initramfs-cca14f2.zip

Music:
total 41752
-rw-rw-r-- 1 michaelc michaelc 6530103 2012-01-08 14:30 Ave Maria.mp3
-rw-rw-r-- 1 michaelc michaelc 4175862 2012-01-08 15:22 Don't Sweat the Technique.mp3
-rw-rw-r-- 1 michaelc michaelc 5810262 2012-01-08 15:47 I Am The Bullgod.mp3
-rw-rw-r-- 1 michaelc michaelc 4486048 2012-01-08 15:29 It's All Abut the Benjamins.mp3
-rw-rw-r-- 1 michaelc michaelc 3673328 2012-01-08 15:20 Paid in Full.mp3
-rw-rw-r-- 1 michaelc michaelc 7282435 2012-01-08 15:09 Passin' Me By.mp3
-rw-rw-r-- 1 michaelc michaelc 7003533 2012-01-08 15:26 Runnin'.mp3
-rw-rw-r-- 1 michaelc michaelc 3780022 2012-01-08 15:32 Still Not a Player.mp3

Pictures:
total 2100
-rw-rw-r-- 1 michaelc michaelc 2146358 2012-01-13 15:19 Screenshot at 2012-01-13 15:19:49.png

Public:
total 0

Templates:
total 0

Videos:
total 0
michaelc@michaelc-iMac:~$
[Samsung Epic 4G Touch] chris41g:
you have to export CROSS_COMPILE first.. that reading was just a listing of *
[Samsung Epic 4G Touch] MikeC84:
michaelc@michaelc-iMac:~$ ls -l $CROSS_COMPILE*
-rwxr-xr-x 1 michaelc michaelc 547548 2009-10-16 09:56 /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-addr2line
-rwxr-xr-x 2 michaelc michaelc 572276 2009-10-16 09:56 /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-ar
-rwxr-xr-x 2 michaelc michaelc 954492 2009-10-16 09:56 /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-as
-rwxr-xr-x 2 michaelc michaelc 208012 2009-10-16 09:56 /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-c++
-rwxr-xr-x 1 michaelc michaelc 547324 2009-10-16 09:56 /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-c++filt
-rwxr-xr-x 1 michaelc michaelc 206956 2009-10-16 09:56 /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-cpp
-rwxr-xr-x 2 michaelc michaelc 208012 2009-10-16 09:56 /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-g++
-rwxr-xr-x 2 michaelc michaelc 205388 2009-10-16 09:56 /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-gcc
-rwxr-xr-x 2 michaelc michaelc 205388 2009-10-16 09:56 /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-gcc-4.4.1
-rwxr-xr-x 1 michaelc michaelc 26760 2009-10-16 09:56 /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-gcov
-rwxr-xr-x 1 michaelc michaelc 3036208 2009-10-16 09:56 /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-gdb
-rwxr-xr-x 1 michaelc michaelc 3036208 2009-10-16 09:56 /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-gdbtui
-rwxr-xr-x 1 michaelc michaelc 607136 2009-10-16 09:56 /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-gprof
-rwxr-xr-x 2 michaelc michaelc 818880 2009-10-16 09:56 /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-ld
-rwxr-xr-x 2 michaelc michaelc 555612 2009-10-16 09:56 /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-nm
-rwxr-xr-x 2 michaelc michaelc 703284 2009-10-16 09:56 /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-objcopy
-rwxr-xr-x 2 michaelc michaelc 833532 2009-10-16 09:56 /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-objdump
-rwxr-xr-x 2 michaelc michaelc 572308 2009-10-16 09:56 /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-ranlib
-rwxr-xr-x 1 michaelc michaelc 307848 2009-10-16 09:56 /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-readelf
-rwxr-xr-x 1 michaelc michaelc 750864 2009-10-16 09:56 /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-run
-rwxr-xr-x 1 michaelc michaelc 547584 2009-10-16 09:56 /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-size
-rwxr-xr-x 1 michaelc michaelc 342540 2009-10-16 09:56 /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-sprite
-rwxr-xr-x 1 michaelc michaelc 547516 2009-10-16 09:56 /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-strings
-rwxr-xr-x 2 michaelc michaelc 703284 2009-10-16 09:56 /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-strip
[Samsung Epic 4G Touch] chris41g:
try a compile again, and pastebin the terminal results...
[Samsung Epic 4G Touch] MikeC84:
michaelc@michaelc-iMac:~$ cd /home/michaelc/Desktop/SPH-D710_GB_Kernel
michaelc@michaelc-iMac:~/Desktop/SPH-D710_GB_Kernel$ export CROSS_COMPILE=/home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-
michaelc@michaelc-iMac:~/Desktop/SPH-D710_GB_Kernel$ sudo make clean
[sudo] password for michaelc:
make: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: Command not found
michaelc@michaelc-iMac:~/Desktop/SPH-D710_GB_Kernel$ make c1_rev05_na_spr_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/basic/hash
HOSTCC scripts/kconfig/conf.o
scripts/kconfig/conf.c: In function ‘conf_sym’:
scripts/kconfig/conf.c:159:6: warning: variable ‘type’ set but not used [-Wunused-but-set-variable]
scripts/kconfig/conf.c: In function ‘conf_choice’:
scripts/kconfig/conf.c:231:6: warning: variable ‘type’ set but not used [-Wunused-but-set-variable]
scripts/kconfig/conf.c:307:9: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
scripts/kconfig/conf.c: In function ‘conf_askvalue’:
scripts/kconfig/conf.c:105:8: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
HOSTCC scripts/kconfig/kxgettext.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
#
# configuration written to .config
#
michaelc@michaelc-iMac:~/Desktop/SPH-D710_GB_Kernel$ make modules
make: /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-gcc: Command not found
scripts/kconfig/conf -s arch/arm/Kconfig
make: /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-gcc: Command not found
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
Generating include/generated/mach-types.h
CC kernel/bounds.s
/bin/sh: /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
michaelc@michaelc-iMac:~/Desktop/SPH-D710_GB_Kernel$

http://pastebin.com/0nEqmpyN
[Samsung Epic 4G Touch] agat63:
I'm running Calkulin's bare EL29 rom with whatever kernel he has in it.

I did extract initramfs from a compiled kernel.

Kinda hoped it all will be good.

I'll try to compiled completely stock kernel based on links provided in OP of this thread and see if it will fix WIFI error.
[Samsung Epic 4G Touch] tpike:
Nice work thanks!
[Samsung Epic 4G Touch] dtm_stretch:
How did you extract the initramfs?
[Samsung Epic 4G Touch] Shoulon:
this is my mini suggestion to those who get errors when making the modules. after pressing enter "make modules" dont touch anything. dont even move your mouse. I have 12 cores of processing power with 24gb of ram and no matter what i seem to get high chances of errors if i do other task when making the modules.

its my theory which works for me. try it?
[Samsung Epic 4G Touch] agat63:
There is a guide in wiki how to extract initramfs from compiled kernel.

I did it few times and it works.

I'm kinda new to this forum but I did a lot of development for my old Samsung Moment. I compiled and tweaked kernels, made roms, theme templates and themes.

So I'm not an absolute noob to this scene.

However the SGS2 is completely different from my moment and there is a lot I have to learn from scratch.

There is a script attached to that post in wiki about extracting initramfs from zimage.

Download script to you ubuntu.

Create a folder where you want to extract your zimage. Place that script file into that folder. I created a temp folder on my ubuntu desktop and an extract folder in it.

Placed the script and the zImage file into that extract folder.

Open terminal and cd to that /desktop/temp/extract folder (or whatever you want to name it)

Drag and drop the script file into terminal and then zImage file as well. Hit enter.

The script will extract the initramfs into temp folder and it will be a new folder named initramfs_root.

Pretty simple I think.

Give it a try. If you have more questions let me know. I'll help if I can.
[Samsung Epic 4G Touch] roth.7:
Thanks for posting this, I've been looking for something along these lines for a while! I have a tmobile galaxy s2, is it the same basic process?
[Samsung Epic 4G Touch] Faryaab:
Awesome Guide!:D Suggestion: ClockworkMod Recovery integration, init.d support and implementation of root.

Thanks,

Faryaab
[Samsung Epic 4G Touch] agat63:
Well.

Compiled kernel with source and initramfs provided in OP.

Still have WIFI error.

Wifi doesn't work. Do we miss something here? May be more modules should be placed into initramfs/lib/modules folder?

Any one has compiled a fully working kernel?
[Samsung Epic 4G Touch] dtm_stretch:
Mine compiled correctly. I didn't use the commands to move over the modules I manually moved them over. I also noticed moving them that there were already modules in that folder, so I made sure to overwrite the modules that were in the folder with the newly created modules.
[Samsung Epic 4G Touch] agat63:
Thanks for suggestion. Will try it now.

Will report with results later.

P.S. Did you try Wifi? Does it work?
[Samsung Epic 4G Touch] dtm_stretch:
Yup, completely stock source compiled kernel using only the files posted in the OP. I quoted the screen shot I posted earlier in the thread to show the working wifi.

Also, is this the wiki article you were referencing in regard to extracting the initramfs? http://xdaforums.com/wiki/Extract_initramfs_from_zImage
[Samsung Epic 4G Touch] agat63:
What file did you edit you add your name to Kernel version?
[Samsung Epic 4G Touch] dtm_stretch:
The make file in the SPH-D710_GB_Kernel folder.
[Samsung Epic 4G Touch] agat63:
Thanks.

I'm moving module files into initramfs right now to try your method.

Hope it will work for me as well.

Fingers crossed.
[Samsung Epic 4G Touch] dtm_stretch:
When I hit enter after dropping the script and zimage into terminal I get the following error:

-E- Compressed kernel image not found

I pulled the zimage out of the Team Rogue Desperado Kernel, do I need to do anything else with the zimage?
[Samsung Epic 4G Touch] agat63:
Just drag it into terminal window after you drug the script into it.

Just make sure when you hit enter your active window is terminal window
[Samsung Epic 4G Touch] dtm_stretch:
Alright well here are my steps:

Copy and paste the the first script from this page http://xdaforums.com/wiki/Extract_initramfs_from_zImage into a text editor and made the script executable

Created the Temp folder and placed the zimage and the script inside

Open up terminal and drag and drop both and this is my result:

derek@ubuntu:~$ cd /home/derek/Desktop/Temp

derek@ubuntu:~/Desktop/Temp$ '/home/derek/Desktop/Temp/Initramfs extractor' '/home/derek/Desktop/Temp/zImage'

-I- Extracting kernel image from /home/derek/Desktop/Temp/zImage (start = )

dd: invalid number `'

gzip: stdin: unexpected end of file

-I- Already uncompressed cpio.img, not decompressing

-I- Extracting initramfs image from /tmp/kernel.img (start = , end = 11)

dd: invalid number `'

When I open up the Temp folder there is a initramfs.cpio archive but it is empty.
[Samsung Epic 4G Touch] agat63:
try to used this script:

https://github.com/mistadman/Extract-Kernel-Initramfs

No need to do anything with it. This is executable script already.

I'm using it and didn't have problems yet.
[Samsung Epic 4G Touch] dtm_stretch:
Results:

-I- Extracting gzip'd kernel image from file: /home/derek/Desktop/Temp/zImage (start = )

-E- Compressed kernel image not found

derek@ubuntu:~/Desktop/Temp$

***I just tried Chris41g's EK02 stock repack with CWM and it worked.
[Samsung Epic 4G Touch] agat63:
that's very strange.

I'm using that script for sometime now.

Never had problems.

Don't know what to say.
[Samsung Epic 4G Touch] dtm_stretch:
The issue wasn't the script, it was the kernel zimage. I don't know why I can't extract team rogue's desperado initramfs.
[Samsung Epic 4G Touch] agat63:
Were you able to extract initramfs from another zImage?
[Samsung Epic 4G Touch] dtm_stretch:
Yup, I used the initramfs from chris41g's EK02 CWM stock repack. I am compiling now.
[Samsung Epic 4G Touch] agat63:
Cool.

Good luck.

I'm still compiling. The damn VM is too slow. Even though I've allocated 4GB of ram to it.
[Samsung Epic 4G Touch] dtm_stretch:
Ugh, didn't work. The kernel boots just find and everything seems to work except for wifi. I am getting logcats now. It looks like I can only get the stock initramfs to work.
[Samsung Epic 4G Touch] agat63:
If you can get stock initramfs working you can try to add busybox, su and other tweaks to it and see if it will work.
[Samsung Epic 4G Touch] dtm_stretch:
Well, that is the next step in the tutorial I need. I am not so concerned about getting SU added because it is built into most roms but I would like to learn how to add CWM and some tweaks next.

Here is the logcats regarding the wifi not working:

17:21:11.841 Debug WifiService 2743 setWifiEnabled: true

17:21:11.841 Debug WifiService 2743 ****************setWifiEnabled(), allowWifi****************true

17:21:11.842 Error WifiSettingButton 2844 onReceive()-S:2

17:21:11.842 Info WifiHW 2743 [WIFI] Load Driver

17:21:11.843 Error WifiHW 2743 Cannot open "/data/.cid.info": No such file or directory

17:21:11.843 Info WifiHW 2743 [WiFi.c] insmod() Start!!

17:21:11.843 Info WifiHW 2743 [WiFi.c] start init_module() Start!!

17:21:11.844 Error WifiHW 2743 return of insmod (args:firmware_path=/system/etc/wifi/bcm4330_sta.bin nvram_path=/system/etc/wifi/nvram_net.txt) : ret = -1, Exec format error

17:21:11.844 Error WifiService 2743 Failed to load Wi-Fi driver.

17:21:11.844 Verbose WifiSettings 3564 resetRetryDialogVariable

17:21:11.845 Debug GlassLockScreenMusicWidget 2743 handleStopMarquee()

17:21:11.845 Error WifiSettingButton 2844 onReceive()-S:4

17:21:11.952 Error powersaving modewidget provider 3564 getBrightness brightness= 30

17:21:11.952 Error powersaving modewidget provider 3564 getBrightness brightness= 30

17:21:11.953 Debug Beautiful Widgets 3544 WIFI_STATE_CHANGED_ACTION

I think the issue is pretty obvious and it is with the module and the failure to load the drivers. Anyone have any ideas on why this module is failing? I added the created modules to the initramfs(extracted from Chris41g's EK02 repacked kernel) in the initramfs/lib/modules folder.
[Samsung Epic 4G Touch] agat63:
That's next on my to do list.

Stock initramfs compiled correctly and everything is ok including WiFi.

Now I'll try to add some tweaks one at the time and see how it works.