Hi Mike,

I tried on "Android Dev Phone 1" it does not seems to have support for
gadgetfs. I can not see gadgetfs in /proc/filesystems also below are
the list of devices it supports. I don't know which of them is usb.

# cat /proc/devices
Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 29 fb
 90 mtd
108 ppp
128 ptm
136 pts
216 rfcomm
250 ttyMSM
251 adsp
252 msm_perf
253 oncrpc
254 smd

Block devices:
  7 loop
 31 mtdblock
179 mmc

How to put newly compiled kernel on the device and if something goes
wrong how to revert it back. It would be great if  you could point me
to some URLs that gives this information.

Thanks
Ashutosh

On Mar 4, 9:43 am, Ashutosh Malviya <as...@techmahindra.com> wrote:
> Hi Mike,
>
> Does the kernel at "Android Dev Phone 1" has support for USB as well as
> gadgetfs?
>
> Will "mount -t gadgetfs gadgetfs /dev/gadget" work on Development Phone?
>
> Ashutosh
>
>
>
> On Tue, 2009-03-03 at 09:26 -0500, Mike Lockwood wrote:
> > Hi Ashutosh,
>
> > There is no USB support in the emulator, so that won't work.  You will
> > need to work on hardware to do android USB development for now.
>
> > Mike
>
> > On Tue, Mar 3, 2009 at 7:24 AM, Ashutosh Malviya <as...@techmahindra.com> 
> > wrote:
> > > Hello Everyone
>
> > > I have a kernel source linux-2.6.25-android-1.0_r1.tar.gz downloaded
> > > fromhttp://code.google.com/p/android/downloads/list. I uncompressed it
> > > and pulled config.gz from android emulator.
>
> > > adb pull /proc/config.gz .
> > > 64 KB/s (5898 bytes in 0.089s)
>
> > > gunzipped and copied to kernel source as .config
> > > gunzip config.gz
> > > cp config kernel.git/.config
>
> > > Modified line "# CONFIG_USB_GADGET is not set" to CONFIG_USB_GADGET=y in
> > > file .config.
>
> > > Compiled kernel.
>
> > > Below is initial part of kernel compilation --
>
> > > =============<Android Kernel Compilation>=====================
> > >   HOSTCC  scripts/basic/fixdep
> > >   HOSTCC  scripts/basic/docproc
> > >   HOSTCC  scripts/kconfig/conf.o
> > >   HOSTCC  scripts/kconfig/kxgettext.o
> > >   HOSTCC  scripts/kconfig/zconf.tab.o
> > >   HOSTLD  scripts/kconfig/conf
> > > scripts/kconfig/conf -s arch/arm/Kconfig
> > > drivers/video/Kconfig:1897:warning: multi-line strings not supported
> > > *
> > > * Restart config...
> > > *
> > > *
> > > * USB Gadget Support
> > > *
> > > USB Gadget Support (USB_GADGET) [Y/n/?] y
> > >   Debugging messages (USB_GADGET_DEBUG) [N/y/?] (NEW) y
> > >   Debugging information files (USB_GADGET_DEBUG_FILES) [N/y/?] (NEW) y
> > >   USB Peripheral Controller
> > >   > 1. Renesas M66592 USB Peripheral Controller (USB_GADGET_M66592)
> > > (NEW)
> > >   choice[1]: 1
> > >   USB Gadget Drivers
> > >     1. Gadget Zero (DEVELOPMENT) (USB_ZERO) (NEW)
> > >   > 2. Ethernet Gadget (with CDC Ethernet support) (USB_ETH) (NEW)
> > >     3. Gadget Filesystem (EXPERIMENTAL) (USB_GADGETFS) (NEW)
> > >     4. File-backed Storage Gadget (USB_FILE_STORAGE) (NEW)
> > >     5. Serial Gadget (with CDC ACM support) (USB_G_SERIAL) (NEW)
> > >     6. Printer Gadget (USB_G_PRINTER) (NEW)
> > >   choice[1-6?]: 3
> > > #
> > > # configuration written to .config
> > > #
> > >   CHK     include/linux/version.h
> > >   SYMLINK include/asm-arm/arch -> include/asm-arm/arch-goldfish
> > >   Generating include/asm-arm/mach-types.h
> > >   CHK     include/linux/utsrelease.h
> > >   CC      arch/arm/kernel/asm-offsets.s
> > >   GEN     include/asm-arm/asm-offsets.h
> > >   CALL    scripts/checksyscalls.sh
> > > <stdin>:1097:2: warning: #warning syscall fadvise64 not implemented
> > > <stdin>:1265:2: warning: #warning syscall migrate_pages not implemented
> > > <stdin>:1321:2: warning: #warning syscall pselect6 not implemented
> > > <stdin>:1325:2: warning: #warning syscall ppoll not implemented
> > > <stdin>:1365:2: warning: #warning syscall epoll_pwait not implemented
> > > <stdin>:1377:2: warning: #warning syscall timerfd_create not implemented
> > > <stdin>:1389:2: warning: #warning syscall timerfd_settime not
> > > implemented
> > > <stdin>:1393:2: warning: #warning syscall timerfd_gettime not
> > > implemented
> > >   CC      scripts/mod/empty.o
> > >   HOSTCC  scripts/mod/mk_elfconfig
> > >   MKELF   scripts/mod/elfconfig.h
> > >   HOSTCC  scripts/mod/file2alias.o
> > >   HOSTCC  scripts/mod/modpost.o
> > >   HOSTCC  scripts/mod/sumversion.o
> > >   HOSTLD  scripts/mod/modpost
> > > =============<Android Kernel Compilation>=====================
>
> > > Ran emulator for this kernel --
> > > emulator -kernel arch/arm/boot/zImage
>
> > > Now I go to Emulator's shell
> > > adb shell
> > > # cat /proc/devices
> > > Character devices:
> > >   1 mem
> > >   4 /dev/vc/0
> > >   4 tty
> > >   5 /dev/tty
> > >   5 /dev/console
> > >   5 /dev/ptmx
> > >   7 vcs
> > >  10 misc
> > >  13 input
> > >  29 fb
> > >  90 mtd
> > > 128 ptm
> > > 136 pts
> > > 253 ttyS
> > > 254 rtc
>
> > > Block devices:
> > >   1 ramdisk
> > >   7 loop
> > >  31 mtdblock
> > >  43 nbd
> > > 179 mmc
>
> > > # cat /proc/filesystems
> > > nodev   sysfs
> > > nodev   rootfs
> > > nodev   bdev
> > > nodev   proc
> > > nodev   binfmt_misc
> > > nodev   sockfs
> > > nodev   pipefs
> > > nodev   anon_inodefs
> > > nodev   futexfs
> > > nodev   tmpfs
> > > nodev   inotifyfs
> > > nodev   devpts
> > > nodev   ramfs
> > >         msdos
> > >         vfat
> > > nodev   nfsd
> > > nodev   smbfs
> > >         yaffs
> > >         yaffs2
> > > nodev   gadgetfs
> > > nodev   rpc_pipefs
>
> > > # mount -t gadgetfs gadgetfs /dev/gadget
> > > mount: No such device
>
> > > Would any one please let me know, what do I need to do to mount
> > > gadgetfs?
>
> > > Thanks
> > > Ashutosh
>
> > > > ============================================================================================================================
>
> > > Disclaimer:
>
> > > This message and the information contained herein is proprietary and
> > > confidential and subject to the Tech Mahindra policy statement, you may
> > > review the policy athttp://www.techmahindra.com/Disclaimer.htmlexternally
> > > andhttp://tim.techmahindra.com/Disclaimer.htmlinternally within Tech
> > > Mahindra.
>
> > > ============================================================================================================================
>
> ============================================================================================================================
>
> Disclaimer:
>
> This message and the information contained herein is proprietary and 
> confidential and subject to the Tech Mahindra policy statement, you may 
> review the policy athttp://www.techmahindra.com/Disclaimer.htmlexternally 
> andhttp://tim.techmahindra.com/Disclaimer.htmlinternally within Tech Mahindra.
>
> ============================================================================================================================
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-kernel
-~----------~----~----~----~------~----~------~--~---

Reply via email to