Update with serial gadget

This commit is contained in:
crondog 2014-04-11 16:09:15 +10:00
parent 1c353bec21
commit 419082bbc7
2 changed files with 10 additions and 2 deletions

View file

@ -82,6 +82,13 @@ You can use the kernel from here https://github.com/crondog/kernel_msm
## To get Touchscreen working ## To get Touchscreen working
Apply 0001-make-ektf3k-driver-report-non-MT-events-too.patch 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 ## Kernel configs
I used the following additional configs to get this working. Some might not be I used the following additional configs to get this working. Some might not be
necessary but it helps with debugging necessary but it helps with debugging

View file

@ -1,6 +1,7 @@
#!/bin/bash #!/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 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