What I found,
Take the initramfs.cpio.gz and unpack it (assuming it is compressed). Take initramfs and extract it from the .cpio. You now have the folder with your files in it. I named mine "cpio". Put it in the "kernel_imx folder. Open a terminal follow the procedure to build a kernel:
$ export PATH=~/mydroid/jb/bootable/bootloader/uboot-imx/tools:$PATH
$ cd ~/myandroid/kernel_imx
$ export ARCH=arm
$ export CROSS_COMPILE=~/mydroid/jb/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-
$ echo $ARCH && echo $CROSS_COMPILE
$ make distclean
$ make imx6_android_defconfig
Now type:
$ make menuconfig
A menu will come up. Select "General Setup" then select "Initramfs source files". Type in the full path to folder; an example of this:
/home/base/myandroid/kernel_imx/cpio (assuming the folder is named "cpio")
select "ok" then "exit" then "exit" again. You will get this in the terminal:
*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.
Type:
$ make uImage
With a successful build, the generated kernel image is ~/myandroid/kernel_imx/arch/arm/boot/uImage.
Every time the "make distclean" is used, the configuration will be cleared. So, it will have to be reset if you want to use it again.
What I found,
Take the initramfs.cpio.gz and unpack it (assuming it is compressed). Take initramfs and extract it from the .cpio. You now have the folder with your files in it. I named mine "cpio". Put it in the "kernel_imx folder. Open a terminal follow the procedure to build a kernel:
$ export PATH=~/mydroid/jb/bootable/bootloader/uboot-imx/tools:$PATH
$ cd ~/myandroid/kernel_imx
$ export ARCH=arm
$ export CROSS_COMPILE=~/mydroid/jb/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-
$ echo $ARCH && echo $CROSS_COMPILE
$ make distclean
$ make imx6_android_defconfig
Now type:
$ make menuconfig
A menu will come up. Select "General Setup" then select "Initramfs source files". Type in the full path to folder; an example of this:
/home/base/myandroid/kernel_imx/cpio (assuming the folder is named "cpio")
select "ok" then "exit" then "exit" again. You will get this in the terminal:
*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.
Type:
$ make uImage
With a successful build, the generated kernel image is ~/myandroid/kernel_imx/arch/arm/boot/uImage.
Every time the "make distclean" is used, the configuration will be cleared. So, it will have to be reset if you want to use it again.