DenZpb

The main task

Nov 29th, 2016
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.33 KB | None | 0 0
  1. # Download to toolchain and kernel sources
  2. # Please follow and do step by step
  3.  
  4. # Kernel sources size about 1Gb (kernel 3.0.31+ for omap4470), for android JB 4.2.2
  5. git clone https://github.com/DenZxd/android_kernel_sd_x7 -b omap-mr1
  6.  
  7. # Toolchain size 218 Mb
  8. git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6
  9.  
  10. # For zImage packing lzop and uImage package needed:
  11. sudo apt-get install lzop
  12. sudo apt-get install uboot-mkimage
  13.  
  14. ________________________________________
  15. # command for compilation and next
  16.  
  17. # go to parent of kernel folder
  18.  
  19. export ARCH=arm
  20. export SUBARCH=arm
  21. export CROSS_COMPILE=/home/XXXXXXXXX/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-
  22.  
  23. # XXXXXXXXX - your path to toolchain
  24.  
  25. make panda_X7_defconfig
  26. make menuconfig
  27.  
  28. # inside config set INITRAMFS_SOURCE to initramfs (folder "initramfs" without quotes must be in parent folder of kernel sources)
  29. # CONFIG_INITRAMFS_SOURCE="initramfs"
  30. # and save config settings
  31.  
  32. make uImage 2>&1 |tee log
  33.  
  34. !!!!!!!
  35. 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 )
  36. http://pastebin.com/neGWt2UF
  37. kernel builds successful, but with warnings
  38. its will not work after flash on device
  39. ________________________________________
  40. # clear all if compilation is not successfull
  41. make dep
  42. make clean
  43. make mrproper
  44.  
  45.  
  46. The main task:
  47.  
  48. 1. Successful build uImage without any warnings. (ready for test it)
  49. 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.
  50. 3. partition size on device:
  51. boot (uImage) - 6,3 mb
  52. recovery (uImage_recovery) - 8,4 mb
  53. 4. the structure of my image (for example on uImage)
  54. initramfs without packing injected in Image
  55. Image packed with lzop and injected in zImage
  56. zImage wrapped to uImage
  57. Сonclusion: Due to the fact packing in image is only ones (only for image, ramdisk not packed) ramdisk size is very critical!!!!!
  58.  
  59. on my pastebin:
  60. http://pastebin.com/u/DenZpb
  61. present all logs from compiling, start, and stop kernel:
  62. dmesg.log
  63. event.log
  64. last_kmsg.log
  65. logcat.log
  66. and etc.
  67.  
  68. for questions and suggestions please email me:
  69. maildenz_mail.ru
  70. _ change to @ (sign at)
Add Comment
Please, Sign In to add comment