Affichage des articles dont le libellé est compiling. Afficher tous les articles
Affichage des articles dont le libellé est compiling. Afficher tous les articles

vendredi 27 février 2015

[R&B] Compiling CWM & CM for the Galaxy Core LTE SM-G386F topic






In this post we will gather information to build a custom recovery for the Galaxy Core LTE.

Basic Informations

Quote:










Originally Posted by midoriiroo



Code:


code name        : afyonlte
vendor code        : samsung       

ro.product.device        : afyonlte
ro.product.manufacturer        : samsung
ro.product.model        : SM-G386F
ro.product.name        : afyonltexx
ro.product.board        : mp523x
ro.product.cpu.abi        : armeabi-v7a
ro.product.cpu.abi2        : armeabi

ro.board.platform        : u2
ro.chipname        : mp523x

cpu.name        : SoC: Renesas MP5232 (Cortex A9 - ARMv7)
cpu.type        : ARMv7 Processor rev 0 (v7l)
cpu.hardware        : u2evm
cpu.architecture        : armv7l

gpu.name        : Imagination Technologies PowerVR SGX 544MP (single core)

usbiManufacturer        : samsung
usbiProduct : SM-G386F
usbidProduct        : 6860
usbidVendor        : 04e8

RAM        : 1 GiB
ROM        : 7.5 GiB
os        : Android 4.2.2 Jelly Bean







Shell Partition Table :

Quote:










Originally Posted by midoriiroo
(Post 59099983)


Code:


shell@android:/dev/block/platform/renesas_mmcif.0/by-name $ ll
lrwxrwxrwx root    root              2015-02-26 15:56 BOTA0 -> /dev/block/mmcblk0p6
lrwxrwxrwx root    root              2015-02-26 15:56 BOTA1 -> /dev/block/mmcblk0p7
lrwxrwxrwx root    root              2015-02-26 15:56 CSC -> /dev/block/mmcblk0p18
lrwxrwxrwx root    root              2015-02-26 15:56 FOTA -> /dev/block/mmcblk0p16
lrwxrwxrwx root    root              2015-02-26 15:56 HIDDEN -> /dev/block/mmcblk0p20
lrwxrwxrwx root    root              2015-02-26 15:56 KERNEL -> /dev/block/mmcblk0p9
lrwxrwxrwx root    root              2015-02-26 15:56 PARAM -> /dev/block/mmcblk0p8
lrwxrwxrwx root    root              2015-02-26 15:56 RECOVERY -> /dev/block/mmcblk0p10
lrwxrwxrwx root    root              2015-02-26 15:56 cal -> /dev/block/mmcblk0p1
lrwxrwxrwx root    root              2015-02-26 15:56 efs -> /dev/block/mmcblk0p2
lrwxrwxrwx root    root              2015-02-26 15:56 modem -> /dev/block/mmcblk0p13
lrwxrwxrwx root    root              2015-02-26 15:56 modemfsro -> /dev/block/mmcblk0p3
lrwxrwxrwx root    root              2015-02-26 15:56 modemfsrw -> /dev/block/mmcblk0p12
lrwxrwxrwx root    root              2015-02-26 15:56 modemlog -> /dev/block/mmcblk0p14
lrwxrwxrwx root    root              2015-02-26 15:56 reserved1 -> /dev/block/mmcblk0p11
lrwxrwxrwx root    root              2015-02-26 15:56 reserved2 -> /dev/block/mmcblk0p17
lrwxrwxrwx root    root              2015-02-26 15:56 securityro -> /dev/block/mmcblk0p5
lrwxrwxrwx root    root              2015-02-26 15:56 securityrw -> /dev/block/mmcblk0p15
lrwxrwxrwx root    root              2015-02-26 15:56 system -> /dev/block/mmcblk0p19
lrwxrwxrwx root    root              2015-02-26 15:56 userdata -> /dev/block/mmcblk0p21







/cache/recovery/last_log

Code:


[collecting table information]
recovery filesystem table
=========================
  0 '/tmp' 'ramdisk' '(null)' '(null)' 0
  1 '/efs' 'ext4' '/dev/block/mmcblk0p2' '(null)' 0
  2 '/boot' 'emmc' '/dev/block/mmcblk0p9' '(null)' 0
  3 '/recovery' 'emmc' '/dev/block/mmcblk0p10' '(null)' 0
  4 '/cache' 'ext4' '/dev/block/mmcblk0p18' '(null)' 0
  5 '/system' 'ext4' '/dev/block/mmcblk0p19' '(null)' 0
  6 '/data' 'ext4' '/dev/block/mmcblk0p21' '(null)' -16384
  7 '/preload' 'ext4' '/dev/block/mmcblk0p20' '(null)' 0
  8 '/sdcard' 'vfat' '/dev/block/mmcblk1p1' '/dev/block/mmcblk1' 0
  9 '/modem' 'ext4' '/dev/block/mmcblk0p13' '(null)' 0








mardi 24 février 2015

[Q] Help needed with compiling an A31 kernel topic






So, I kinda' figured out on how to cobble up a kernel for the A31s, but upon attempting to build one based on the source taken from http://dl.linux-sunxi.org/SDK/A31/a3..._kfb_0k.tar.gz

While I managed to load up the default config and stuff, building it using the command make ARCH=arm CROSS_COMPILE=/root/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi- results in this:

Code:


In file included from drivers/media/video/sunxi-vfe/camera_detector/camera_detector.h:4:0,
                from drivers/media/video/sunxi-vfe/config.c:10:
drivers/media/video/sunxi-vfe/camera_detector/camera_includes.h:41:25: error: redefinition of typedef '__hdle'
drivers/media/video/sunxi-vfe/flash_light/../vfe_os.h:29:22: note: previous declaration of '__hdle' was here
make[4]: *** [drivers/media/video/sunxi-vfe/config.o] Error 1
make[3]: *** [drivers/media/video/sunxi-vfe] Error 2
make[2]: *** [drivers/media/video] Error 2
make[1]: *** [drivers/media] Error 2
make: *** [drivers] Error 2


ANy thoughts or advice on how to make this work, let alone boot?






mercredi 11 février 2015

I tried compiling my own kernel, but it doesn't boot topic






I tried compiling the original kernel I have running on my Nexus 7 2013.

So I did


Quote:









git clone https://android.googlesource.com/kernel/msm -b android-msm-flo-3.4-kitkat-mr2
git checkout -f ac9222cf61b2646a1862fb222365e52a0d1c498d
export ARCH=arm flo_defconfig
export SUBARCH=arm
export CROSS_COMPILE/home/armtoolchain-prebuilt-4.8/bin:$PATH
make -j2




that last checkout of commit ac9222cf61b2646a1862fb222365e52a0d1c498d is the one my Nexus 7 2013 Wi-Fi originally came with. Now since I used the prebuilt binaries of GCC 4.8, it has some stricter rules for compilation so I had to remove some flags like -Wall from the main Makefile so my compile would continue, furthermore I had to edit a Makefile in arch/arm/boot/compressed so that -Wa,-march=armv7-a instead of -march=all otherwise again I could not compile due to some errors.

After this I get a nice zImage, then I do fastboot boot zImage and my tablet hangs on the bootloader menu, nothing happens at all, I have to hold down power to fix it. Basically my kernel does NOT work in the least and I am unsure what the problem is. I am hoping somebody with experience here could help me.

The reason I posted in this subforum is because more devs would see it, however if Moderators are against it, please move the thread to the appropriate forum rather than deleting it, thank you!






mardi 10 février 2015

help kernel compiling topic






i was trying to compile kernel every thing was going well like this.


Code:


  LD      drivers/platform/msm/sps/built-in.o
  CC      drivers/platform/msm/qpnp-pwm.o
  CC      drivers/platform/msm/qpnp-power-on.o
  CC      drivers/platform/msm/qpnp-vibrator.o
  CC      drivers/platform/msm/qpnp-revid.o
  LD      drivers/platform/msm/built-in.o
  LD      drivers/platform/built-in.o
  CC      drivers/power/power_supply_core.o
  CC      drivers/power/power_supply_sysfs.o
  CC      drivers/power/power_supply_leds.o
  LD      drivers/power/power_supply.o
  CC      drivers/power/qpnp-bms.o
  CC      drivers/power/qpnp-charger.o


but after some time i got this error


Code:


drivers/power/qpnp-charger.c: In function 'qpnp_chg_tchg_max_set':
drivers/power/qpnp-charger.c:3504:10: error: 'struct qpnp_chg_chip' has no member named 'bat_is_cold'
drivers/power/qpnp-charger.c:3504:52: error: 'struct qpnp_chg_chip' has no member named 'bat_is_hot'
drivers/power/qpnp-charger.c:3506:15: error: 'struct qpnp_chg_chip' has no member named 'is_during_call'
make[2]: *** [drivers/power/qpnp-charger.o] Error 1
make[1]: *** [drivers/power] Error 2
make: *** [drivers] Error 2


i was making kernel from source without modding anything.
and this was my first attempt so i don,t know why i got this error.:confused: