Ref. http://bootloader.wikidot.com/android:kgdb
mach sc6410, android kernel ver 2.6.36

my files
http://www.mediafire.com/download/k431b3e4jy83mj6/kgdb-android.zip

****_org.c is original file in kernel before modify

I use make menuconfig , enable follows
1. make menuconfig
(1) enable ACM
Device Drivers        --->  USB support     ---> 
<*> USB Gadget Support  ---> 
a.
USB Peripheral Controller (S3C HS/OtG USB Device controller)  ---> 
[X] S3C HS/OtG USB Device controller
b.
<*> USB Gadget Drivers (Android Gadget) ---> 
[X] Android gadget
c.
<*> USB Gadget Drivers (Android Gadget) ---> 
[X] Android gadget ACM serial function

(2) enable follows for breakpoint
Kernel hacking    ---> Debug Filesystem Kernel debugging Debug preemptible 
kernel Spinlock and rw-lock debugging: basic checks Spinlock debugging: 
sleep-inside-spinlock checking Compile the kernel with debug info Debug 
page memory allocation Enable stack utilization instrumentation

(3) enable kgdb
Kernel hacking        --->
KGDB: kernel debugger    ---> KGDB: use kgdb over the serial console 
KGDB_KDB: include kdb frontend for kgdb

(4) enable device
Device Drivers        --->
Generic Driver Options    ---> Driver Core verbose debug messages

my question:

1.
how to add usb_loop_poll_hw(struct usb_ep *_ept, int is_rx) of msm72k_udc.c 
to 
s3c-hsotg.c 
I don't know how to port usb_loop_poll_hw to fit with s3c-hsotg.c

here is s3c-hsotg.c 
http://lxr.free-electrons.com/source/drivers/usb/gadget/s3c-hsotg.c

2.
how to modify kernel command line
is it in  /proc/cmdline or anyway to change

3.
why kernel kgdb not stop to wait gdb on boot

-- 
-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-kernel
--- 
You received this message because you are subscribed to the Google Groups 
"Android Linux Kernel Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to