[Android Q&A, Help & Troubleshooting] Brucey8:
Hello guys!

I have a bit specific problem with my Young 2s running Android 4.4.2. I intend to use a couple of those for a project which involves constant USB communication with a custom circuit board through a FTDI chip. I've already made an Android app which opens a USB Accessory, then sends and receives data constantly. It works, but only for a couple of hours, then the connection breaks down. After that, the only things that help are either rebooting the phone (even that doesn't always work) or re-plugging the USB cable. Anyways, after days of googling, I managed to trace the problem down to a bug that has been fixed "recently" (March 06, 2017):

issuetracker.google.com/issues/36981924

android-review.googlesource.com/#/c/256441/

"Awesome!" I said to myself, and downloaded the most recent ROM (May 01, 17) from updato , flashed the phone with Odin, only to find out that the Kernel version is from November 2016. I didn't let that ruin my day, so I downloaded the latest open source Kernel from Samsung, not really knowing what I'm doing (I started using Ubuntu 4-5 months ago):

opensource.samsung.com/reception/receptionSub.do?method=sub&sub=F&searchValue=g130HN

I checked the f_accessory file to make sure the fix for the bug from earlier was inside, followed the simple readme and ended up with a zImage. There was an error while compiling though, I'll post the output at the end of the post. I took the boot.img from the ROM I downloaded earlier, unpacked it with Android Image Kitchen v2.8, replaced the boot.img-zImage file with my zImage and renamed it accordingly, repacked it, flashed it with TWRP, but sadly the phone hangs at the splash screen, even before the animated Samsung screen shows. I'm kinda at the end of my wits here, since there is so much I could have gotten wrong, so I don't know where to start.

So I'm hoping some of you guys could help me out with some advice.

Thanks in advance!

P.S. The compile output:

....
CC arch/arm/boot/compressed/misc.o
CC arch/arm/boot/compressed/decompress.o
CC arch/arm/boot/compressed/string.o
SHIPPED arch/arm/boot/compressed/hyp-stub.S
AS arch/arm/boot/compressed/hyp-stub.o
SHIPPED arch/arm/boot/compressed/lib1funcs.S
AS arch/arm/boot/compressed/lib1funcs.o
SHIPPED arch/arm/boot/compressed/ashldi3.S
AS arch/arm/boot/compressed/ashldi3.o
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready <----------------------------------- zImage!
Building modules, stage 2.
MODPOST 8 modules
CC arch/arm/oprofile/oprofile.mod.o
LD [M] arch/arm/oprofile/oprofile.ko
CC crypto/ansi_cprng.mod.o
LD [M] crypto/ansi_cprng.ko
CC drivers/media/platform/soc_camera/soc_camera.mod.o
LD [M] drivers/media/platform/soc_camera/soc_camera.ko
CC drivers/media/platform/soc_camera/soc_camera_platform.mod.o
LD [M] drivers/media/platform/soc_camera/soc_camera_platform.ko
CC drivers/media/platform/soc_camera/soc_mediabus.mod.o
LD [M] drivers/media/platform/soc_camera/soc_mediabus.ko
CC drivers/media/v4l2-core/videobuf2-core.mod.o
LD [M] drivers/media/v4l2-core/videobuf2-core.ko
CC drivers/mmc/card/mmc_test.mod.o
LD [M] drivers/mmc/card/mmc_test.ko
CC drivers/w1/wire.mod.o
LD [M] drivers/w1/wire.ko
make[1]: Leaving directory '/home/vladich/G130HN/Kernel/common'
[2017-07-25 10:22:40] kernel [young2nfc3g-native_hw03_defconfig] done
[2017-07-25 10:43:30] making mali...
make[1]: Entering directory '/home/vladich/G130HN/Kernel/mali'
Makefile:83: ../kernel/.config: No such file or directory
Makefile:111: CONFIG_TRACEPOINTS required for profiling
make[1]: *** No rule to make target '../kernel/.config'. Stop.
make[1]: Leaving directory '/home/vladich/G130HN/Kernel/mali'
Makefile:27: recipe for target 'mali' failed
make: *** [mali] Error 2

P.P.S. Since I'm a newbie at xda, I'm currently not allowed to post full links, so you need to add a https prefix before every link, and I'm only allowed to post into Q&A, I'm not sure this thread belongs here :laugh: