[Galaxy Note 3 Q&A, Help & Troubleshooting] Monkichi57:
Hi.

In my pursuit in customizing my N9002 Dual Sim Note 3, I wanted to have a permissive kernel for my phone. I've been trying to compile the kernel source from opensource.samsung.com, and followed the README in the download the but have been getting errors when trying to compile. Here's the readme, make.sh script that was in the download, and my output when trying to build my kernel. It did output a zImage and zImage-dtb. I tried to flash it to my phone, but it would say boot failed and bring me back to download mode. Please help.

README_Kernel.txt from kernel source

################################################################################
1. How to Build
- get Toolchain
From Android Source Download site( http://source.android.com/source/downloading.html )
Toolchain is included in Android source code.
- arm-eabi-4.7

- edit Makefile
edit "CROSS_COMPILE" to right toolchain path(You downloaded).
Ex) CROSS_COMPILE=/opt/toolchains/arm-eabi-4.7/bin/arm-eabi- // check the location of toolchain

- execute Kernel script
$ ./make_kernel_N9002_CHN-CUDUOS.sh

2. Output files
- Kernel : arch/arm/boot/zImage
- module : drivers/*/*.ko

3. How to Clean
$ make clean
################################################################################

Just the warnings and errors in output (Full output is in Output.txt):

KCONFIG_VARIANT(arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig)
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:4:warning: override: reassigning to symbol NET_KEY
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:5:warning: override: reassigning to symbol IP_MULTICAST
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:6:warning: override: reassigning to symbol INET_XFRM_MODE_TRANSPORT
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:7:warning: override: reassigning to symbol INET_XFRM_MODE_TUNNEL
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:13:warning: override: reassigning to symbol NETFILTER_XT_TARGET_TCPMSS
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:15:warning: override: reassigning to symbol UHID
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:16:warning: override: reassigning to symbol HID
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:17:warning: override: reassigning to symbol HIDRAW
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:21:warning: override: reassigning to symbol PPP
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:22:warning: override: reassigning to symbol PPP_BSDCOMP
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:23:warning: override: reassigning to symbol PPP_DEFLATE
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:24:warning: override: reassigning to symbol PPP_MPPE
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:25:warning: override: reassigning to symbol PPPOLAC
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:26:warning: override: reassigning to symbol PPPOPNS
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:36:warning: override: reassigning to symbol SND_SOC_MSM_HDMI_CODEC_RX
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:38:warning: override: reassigning to symbol LCD_CLASS_DEVICE
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:39:warning: override: reassigning to symbol BACKLIGHT_LCD_SUPPORT
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:40:warning: override: reassigning to symbol BACKLIGHT_CLASS_DEVICE
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:42:warning: override: reassigning to symbol HID_PID
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:43:warning: override: reassigning to symbol USB_HIDDEV
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:44:warning: override: reassigning to symbol HID_A4TECH
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:45:warning: override: reassigning to symbol HID_ACRUX
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:46:warning: override: reassigning to symbol HID_ACRUX_FF
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:47:warning: override: reassigning to symbol HID_BELKIN
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:48:warning: override: reassigning to symbol HID_CHERRY
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:49:warning: override: reassigning to symbol HID_CHICONY
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:50:warning: override: reassigning to symbol HID_PRODIKEYS
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:51:warning: override: reassigning to symbol HID_CYPRESS
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:52:warning: override: reassigning to symbol HID_DRAGONRISE
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:53:warning: override: reassigning to symbol HID_EMS_FF
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:54:warning: override: reassigning to symbol HID_ELECOM
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:55:warning: override: reassigning to symbol HID_EZKEY
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:56:warning: override: reassigning to symbol HID_KEYTOUCH
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:57:warning: override: reassigning to symbol HID_KYE
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:58:warning: override: reassigning to symbol HID_UCLOGIC
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:59:warning: override: reassigning to symbol HID_WALTOP
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:60:warning: override: reassigning to symbol HID_GYRATION
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:61:warning: override: reassigning to symbol HID_TWINHAN
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:62:warning: override: reassigning to symbol HID_KENSINGTON
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:63:warning: override: reassigning to symbol HID_LCPOWER
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:64:warning: override: reassigning to symbol HID_LOGITECH
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:65:warning: override: reassigning to symbol HID_MONTEREY
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:66:warning: override: reassigning to symbol HID_MULTITOUCH
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:67:warning: override: reassigning to symbol HID_NTRIG
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:68:warning: override: reassigning to symbol HID_ORTEK
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:69:warning: override: reassigning to symbol HID_PANTHERLORD
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:70:warning: override: reassigning to symbol HID_PETALYNX
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:71:warning: override: reassigning to symbol HID_PICOLCD
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:72:warning: override: reassigning to symbol HID_PICOLCD_FB
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:73:warning: override: reassigning to symbol HID_PICOLCD_BACKLIGHT
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:74:warning: override: reassigning to symbol HID_PICOLCD_LCD
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:75:warning: override: reassigning to symbol HID_PICOLCD_LEDS
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:77:warning: override: reassigning to symbol HID_ROCCAT
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:84:warning: override: reassigning to symbol HID_SAMSUNG
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:85:warning: override: reassigning to symbol HID_SONY
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:86:warning: override: reassigning to symbol HID_SUNPLUS
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:87:warning: override: reassigning to symbol HID_GREENASIA
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:88:warning: override: reassigning to symbol HID_SMARTJOYPLUS
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:89:warning: override: reassigning to symbol HID_TOPSEED
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:90:warning: override: reassigning to symbol HID_THRUSTMASTER
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:91:warning: override: reassigning to symbol HID_WACOM
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:92:warning: override: reassigning to symbol HID_WACOM_POWER_SUPPLY
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:93:warning: override: reassigning to symbol HID_ZEROPLUS
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:94:warning: override: reassigning to symbol HID_ZYDACRON
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:120:warning: override: reassigning to symbol I2C_GPIO
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:151:warning: override: reassigning to symbol BATTERY_BQ28400
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:157:warning: override: reassigning to symbol QPNP_CHARGER
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:158:warning: override: reassigning to symbol QPNP_BMS
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:181:warning: override: reassigning to symbol MSM_PIL_PRONTO
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:182:warning: override: reassigning to symbol WCNSS_CORE
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:183:warning: override: reassigning to symbol WCNSS_CORE_PRONTO
arch/arm/configs/msm8974_sec_h3g_chnduos_defconfig:192:warning: override: reassigning to symbol CFG80211
KCONFIG_DEBUG((null))
#
# configuration written to .config
#
scripts/kconfig/conf --silentoldconfig Kconfig
sound/soc/codecs/audience/Kconfig:40:warning: type of 'SND_SOC_ES_SLIM' redefined from 'boolean' to 'tristate'
sound/soc/codecs/audience/Kconfig:43:warning: type of 'SND_SOC_ES_I2C' redefined from 'boolean' to 'tristate'
sound/soc/codecs/audience/Kconfig:44:warning: choice value used outside its choice group
sound/soc/codecs/audience/Kconfig:41:warning: choice value used outside its choice group
...
CC arch/arm/kernel/return_address.o
arch/arm/kernel/return_address.c:62:2: warning: #warning "TODO: return_address should use unwind tables" [-Wcpp]
...
CC arch/arm/mach-msm/remote_spinlock.o
/tmp/ccDo6NOF.s: Assembler messages:
/tmp/ccDo6NOF.s:167: Warning: swp{b} use is deprecated for this architecture
/tmp/ccDo6NOF.s:193: Warning: swp{b} use is deprecated for this architecture
...
Warning (reg_format): "reg" property in /soc/i2c@22/barcode_emul_ice4@19 has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
Warning (reg_format): "reg" property in /soc/qcom,actuator@36 has invalid length (4 bytes) (#address-cells == 1, #size-cells == 1)
Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/i2c@22/barcode_emul_ice4@19
Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc/i2c@22/barcode_emul_ice4@19
DTC arch/arm/boot/msm8974-sec-h3gchnduos-r04.dtb
Warning (reg_format): "reg" property in /soc/i2c@22/barcode_emul_ice4@19 has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/i2c@22/barcode_emul_ice4@19
Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc/i2c@22/barcode_emul_ice4@19
DTC arch/arm/boot/msm8974-sec-h3gchnduos-r05.dtb
Warning (reg_format): "reg" property in /soc/i2c@22/barcode_emul_ice4@19 has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/i2c@22/barcode_emul_ice4@19
Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc/i2c@22/barcode_emul_ice4@19
DTC arch/arm/boot/msm8974-sec-h3gchnduos-r06.dtb
Warning (reg_format): "reg" property in /soc/i2c@22/barcode_emul_ice4@19 has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/i2c@22/barcode_emul_ice4@19
Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc/i2c@22/barcode_emul_ice4@19
DTC arch/arm/boot/msm8974-sec-h3gchnduos-r07.dtb
Warning (reg_format): "reg" property in /soc/i2c@22/barcode_emul_ice4@19 has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/i2c@22/barcode_emul_ice4@19
Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc/i2c@22/barcode_emul_ice4@19
DTC arch/arm/boot/msm8974-sec-h3gchnduos-r09.dtb
Warning (reg_format): "reg" property in /soc/i2c@22/barcode_emul_ice4@19 has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/i2c@22/barcode_emul_ice4@19
Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc/i2c@22/barcode_emul_ice4@19
CAT arch/arm/boot/zImage-dtb
Kernel: arch/arm/boot/zImage-dtb is ready
make[1]: Nothing to be done for `arch/arm/boot/dtbs'.

Please help. I can't figure out what to fix.