Hello Everyone
I have a kernel source linux-2.6.25-android-1.0_r1.tar.gz downloaded
from http://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 at http://www.techmahindra.com/Disclaimer.html externally and
http://tim.techmahindra.com/Disclaimer.html internally within Tech Mahindra.
============================================================================================================================
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-kernel
-~----------~----~----~----~------~----~------~--~---