From 419082bbc7815a59c3d8be7b67eb9dcbaec14fb0 Mon Sep 17 00:00:00 2001 From: crondog Date: Fri, 11 Apr 2014 16:09:15 +1000 Subject: [PATCH] Update with serial gadget --- README.md | 7 +++++++ makebootimage.sh | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index dae4875..55e3f61 100644 --- a/README.md +++ b/README.md @@ -82,6 +82,13 @@ You can use the kernel from here https://github.com/crondog/kernel_msm ## To get Touchscreen working Apply 0001-make-ektf3k-driver-report-non-MT-events-too.patch +## Debugging +USB serial works. I had some problems connecting with the Android Composite +Gadget however just using USB_G_SERIAL seems to work. To enable run systemctl +enable serial-getty@ttyGS0.service and then you will be able to connect to the +device via minicom or similar on /dev/ttyACM0. Getting kernel console boot +messages is still a no go as the device is registered too late to work + ## Kernel configs I used the following additional configs to get this working. Some might not be necessary but it helps with debugging diff --git a/makebootimage.sh b/makebootimage.sh index 66f34d7..0dc7c1a 100755 --- a/makebootimage.sh +++ b/makebootimage.sh @@ -1,6 +1,7 @@ #!/bin/bash -KERNEL=~/android/system/out/target/product/flo/kernel +#KERNEL=~/android/system/out/target/product/flo/kernel +KERNEL=~/android/kernel_msm/arch/arm/boot/zImage INITRAMFS=minimal.initramfs -~/android/system/out/host/linux-x86/bin/mkbootimg --kernel $KERNEL --cmdline "console=ttyHSL0,115200,n8 console=tty1 androidboot.hardware=flo user_debug=31 msm_rtb.filter=0x3F ehci-hcd.park=3 selinux=0" --base 0x80200000 --pagesize 2048 --ramdisk_offset 0x02000000 --ramdisk $INITRAMFS --output newboot +~/android/system/out/host/linux-x86/bin/mkbootimg --kernel $KERNEL --cmdline "console=ttyHSL0,115200,n8 g_serial.n_ports=2 console=tty1 androidboot.hardware=flo user_debug=31 msm_rtb.filter=0x3F ehci-hcd.park=3 selinux=0 fbcon=map:10 fbcon=font:VGA8x8" --base 0x80200000 --pagesize 2048 --ramdisk_offset 0x02000000 --ramdisk $INITRAMFS --output newboot