Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Download to toolchain and kernel sources
- # Please follow and do step by step
- # Kernel sources size about 1Gb (kernel 3.0.31+ for omap4470), for android JB 4.2.2
- git clone https://github.com/DenZxd/android_kernel_sd_x7 -b omap-mr1
- # Toolchain size 218 Mb
- git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6
- # For zImage packing lzop and uImage package needed:
- sudo apt-get install lzop
- sudo apt-get install uboot-mkimage
- ________________________________________
- # command for compilation and next
- # go to parent of kernel folder
- export ARCH=arm
- export SUBARCH=arm
- export CROSS_COMPILE=/home/XXXXXXXXX/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-
- # XXXXXXXXX - your path to toolchain
- make panda_X7_defconfig
- make menuconfig
- # inside config set INITRAMFS_SOURCE to initramfs (folder "initramfs" without quotes must be in parent folder of kernel sources)
- # CONFIG_INITRAMFS_SOURCE="initramfs"
- # and save config settings
- make uImage 2>&1 |tee log
- !!!!!!!
- if after start compilation the warnings appear and log different from log there ("old good compiled kernel log" on pastebin - is successfully work kernel log )
- http://pastebin.com/neGWt2UF
- kernel builds successful, but with warnings
- its will not work after flash on device
- ________________________________________
- # clear all if compilation is not successfull
- make dep
- make clean
- make mrproper
- The main task:
- 1. Successful build uImage without any warnings. (ready for test it)
- 2. Build new uImage and uImage_recovery for СМ 12.1 (ramdisks are compiled and ready now). СМ12.1 rom is compiled, but not tested because boot and recovery is absent.
- 3. partition size on device:
- boot (uImage) - 6,3 mb
- recovery (uImage_recovery) - 8,4 mb
- 4. the structure of my image (for example on uImage)
- initramfs without packing injected in Image
- Image packed with lzop and injected in zImage
- zImage wrapped to uImage
- Сonclusion: Due to the fact packing in image is only ones (only for image, ramdisk not packed) ramdisk size is very critical!!!!!
- on my pastebin:
- http://pastebin.com/u/DenZpb
- present all logs from compiling, start, and stop kernel:
- dmesg.log
- event.log
- last_kmsg.log
- logcat.log
- and etc.
- for questions and suggestions please email me:
- maildenz_mail.ru
- _ change to @ (sign at)
Add Comment
Please, Sign In to add comment