The packages used while developing ARM BSPs












Article on

Recently i wrote an article on This article is about to track trends of dynamic memory.

I would be like thank to Mr Saurabh Gandhi for his support in writting this article.


how fork() works in linux

fork in linux

./your_binary: not found

often we get an error

/mnt $ ./your_binary
/bin/ash: ./your_binary: not found

even if the binary exist in the same directory. the reason is the binary may be compiled for other architecture.i.e.,is compiled using differant toolchain or  the loader doesn’t found the shared libraries required by the binary.

you can know the dependencies of the binary as
/mnt $ ldd your_binary
checking sub-depends for ‘not found’ => not found (0x00000000)
/lib/ => /lib/ (0x00000000)

if the loader able to resolve the dependancies then it shows as

/mnt $ ldd your_binary =>  found (0x0abcdef00)
/lib/ => /lib/ (0x0abcdef00)


ramfs, rootfs and initramfs
What is ramfs?
Ramfs is a very simple filesystem that exports Linux's disk caching
mechanisms (the page cache and dentry cache) as a dynamically resizable
RAM-based filesystem.
Normally all files are cached in memory by Linux.  Pages of data read from
backing store (usually the block device the filesystem is mounted on) are kept
around in case it's needed again, but marked as clean (freeable) in case the
Virtual Memory system needs the memory for something else.  Similarly, data
written to files is marked clean as soon as it has been written to backing
store, but kept around for caching purposes until the VM reallocates the
memory.  A similar mechanism (the dentry cache) greatly speeds up access to
With ramfs, there is no backing store.  Files written into ramfs allocate
dentries and page cache as usual, but there's nowhere to write them to.
This means the pages are never marked clean, so they can't be freed by the
VM when it's looking to recycle memory.
The amount of code required to implement ramfs is tiny, because all the
work is done by the existing Linux caching infrastructure.  Basically,
you're mounting the disk cache as a filesystem.  Because of this, ramfs is not
an optional component removable via menuconfig, since there would be negligible
space savings.
ramfs and ramdisk:
The older "ram disk" mechanism created a synthetic block device out of
an area of RAM and used it as backing store for a filesystem.  This block
device was of fixed size, so the filesystem mounted on it was of fixed
size.  Using a ram disk also required unnecessarily copying memory from the
fake block device into the page cache (and copying changes back out), as well
as creating and destroying dentries.  Plus it needed a filesystem driver
(such as ext2) to format and interpret this data.
Compared to ramfs, this wastes memory (and memory bus bandwidth), creates
unnecessary work for the CPU, and pollutes the CPU caches.  (There are tricks
to avoid this copying by playing with the page tables, but they're unpleasantly
complicated and turn out to be about as expensive as the copying anyway.)
More to the point, all the work ramfs is doing has to happen _anyway_,
since all file access goes through the page and dentry caches.  The RAM
disk is simply unnecessary; ramfs is internally much simpler.
Another reason ramdisks are semi-obsolete is that the introduction of
loopback devices offered a more flexible and convenient way to create
synthetic block devices, now from files instead of from chunks of memory.
See losetup (8) for details.
ramfs and tmpfs:
One downside of ramfs is you can keep writing data into it until you fill
up all memory, and the VM can't free it because the VM thinks that files
should get written to backing store (rather than swap space), but ramfs hasn't
got any backing store.  Because of this, only root (or a trusted user) should
be allowed write access to a ramfs mount.
A ramfs derivative called tmpfs was created to add size limits, and the ability
to write the data to swap space.  Normal users can be allowed write access to
tmpfs mounts.  See Documentation/filesystems/tmpfs.txt for more information.
What is rootfs?
Rootfs is a special instance of ramfs (or tmpfs, if that's enabled), which is
always present in 2.6 systems.  You can't unmount rootfs for approximately the
same reason you can't kill the init process; rather than having special code
to check for and handle an empty list, it's smaller and simpler for the kernel
to just make sure certain lists can't become empty.
Most systems just mount another filesystem over rootfs and ignore it.  The
amount of space an empty instance of ramfs takes up is tiny.
What is initramfs?
All 2.6 Linux kernels contain a gzipped "cpio" format archive, which is
extracted into rootfs when the kernel boots up.  After extracting, the kernel
checks to see if rootfs contains a file "init", and if so it executes it as PID
1.  If found, this init process is responsible for bringing the system the
rest of the way up, including locating and mounting the real root device (if
any).  If rootfs does not contain an init program after the embedded cpio
archive is extracted into it, the kernel will fall through to the older code
to locate and mount a root partition, then exec some variant of /sbin/init
out of that.
All this differs from the old initrd in several ways:
  - The old initrd was always a separate file, while the initramfs archive is
    linked into the linux kernel image.  (The directory linux-*/usr is devoted
    to generating this archive during the build.)
  - The old initrd file was a gzipped filesystem image (in some file format,
    such as ext2, that needed a driver built into the kernel), while the new
    initramfs archive is a gzipped cpio archive (like tar only simpler,
    see cpio(1) and Documentation/early-userspace/buffer-format.txt).  The
    kernel's cpio extraction code is not only extremely small, it's also
    __init text and data that can be discarded during the boot process.
  - The program run by the old initrd (which was called /initrd, not /init) did
    some setup and then returned to the kernel, while the init program from
    initramfs is not expected to return to the kernel.  (If /init needs to hand
    off control it can overmount / with a new root device and exec another init
    program.  See the switch_root utility, below.)
  - When switching another root device, initrd would pivot_root and then
    umount the ramdisk.  But initramfs is rootfs: you can neither pivot_root
    rootfs, nor unmount it.  Instead delete everything out of rootfs to
    free up the space (find -xdev / -exec rm '{}' ';'), overmount rootfs
    with the new root (cd /newmount; mount --move . /; chroot .), attach
    stdin/stdout/stderr to the new /dev/console, and exec the new init.
    Since this is a remarkably persnickety process (and involves deleting
    commands before you can run them), the klibc package introduced a helper
    program (utils/run_init.c) to do all this for you.  Most other packages
    (such as busybox) have named this command "switch_root".
Populating initramfs:
The 2.6 kernel build process always creates a gzipped cpio format initramfs
archive and links it into the resulting kernel binary.  By default, this
archive is empty (consuming 134 bytes on x86).
The config option CONFIG_INITRAMFS_SOURCE (in General Setup in menuconfig,
and living in usr/Kconfig) can be used to specify a source for the
initramfs archive, which will automatically be incorporated into the
resulting binary.  This option can point to an existing gzipped cpio
archive, a directory containing files to be archived, or a text file
specification such as the following example:
  dir /dev 755 0 0
  nod /dev/console 644 0 0 c 5 1
  nod /dev/loop0 644 0 0 b 7 0
  dir /bin 755 1000 1000
  slink /bin/sh busybox 777 0 0
  file /bin/busybox initramfs/busybox 755 0 0
  dir /proc 755 0 0
  dir /sys 755 0 0
  dir /mnt 755 0 0
  file /init initramfs/ 755 0 0
Run "usr/gen_init_cpio" (after the kernel build) to get a usage message
documenting the above file format.
One advantage of the configuration file is that root access is not required to
set permissions or create device nodes in the new archive.  (Note that those
two example "file" entries expect to find files named "" and "busybox" in
a directory called "initramfs", under the linux-2.6.* directory.  See
Documentation/early-userspace/README for more details.)
The kernel does not depend on external cpio tools.  If you specify a
directory instead of a configuration file, the kernel's build infrastructure
creates a configuration file from that directory (usr/Makefile calls
scripts/, and proceeds to package up that directory
using the config file (by feeding it to usr/gen_init_cpio, which is created
from usr/gen_init_cpio.c).  The kernel's build-time cpio creation code is
entirely self-contained, and the kernel's boot-time extractor is also
(obviously) self-contained.
The one thing you might need external cpio utilities installed for is creating
or extracting your own preprepared cpio files to feed to the kernel build
(instead of a config file or directory).
The following command line can extract a cpio image (either by the above script
or by the kernel build) back into its component files:
  cpio -i -d -H newc -F initramfs_data.cpio --no-absolute-filenames
The following shell script can create a prebuilt cpio archive you can
use in place of the above config file:
  # Copyright 2006 Rob Landley <> and TimeSys Corporation.
  # Licensed under GPL version 2
  if [ $# -ne 2 ]
    echo "usage: mkinitramfs directory imagename.cpio.gz"
    exit 1
  if [ -d "$1" ]
    echo "creating $2 from $1"
    (cd "$1"; find . | cpio -o -H newc | gzip) > "$2"
    echo "First argument must be a directory"
    exit 1
Note: The cpio man page contains some bad advice that will break your initramfs
archive if you follow it.  It says "A typical way to generate the list
of filenames is with the find command; you should give find the -depth option
to minimize problems with permissions on directories that are unwritable or not
searchable."  Don't do this when creating initramfs.cpio.gz images, it won't
work.  The Linux kernel cpio extractor won't create files in a directory that
doesn't exist, so the directory entries must go before the files that go in
those directories.  The above script gets them in the right order.
External initramfs images:
If the kernel has initrd support enabled, an external cpio.gz archive can also
be passed into a 2.6 kernel in place of an initrd.  In this case, the kernel
will autodetect the type (initramfs, not initrd) and extract the external cpio
archive into rootfs before trying to run /init.
This has the memory efficiency advantages of initramfs (no ramdisk block
device) but the separate packaging of initrd (which is nice if you have
non-GPL code you'd like to run from initramfs, without conflating it with
the GPL licensed Linux kernel binary).
It can also be used to supplement the kernel's built-in initramfs image.  The
files in the external archive will overwrite any conflicting files in
the built-in initramfs archive.  Some distributors also prefer to customize
a single kernel image with task-specific initramfs images, without recompiling.
Contents of initramfs:
An initramfs archive is a complete self-contained root filesystem for Linux.
If you don't already understand what shared libraries, devices, and paths
you need to get a minimal root filesystem up and running, here are some
The "klibc" package ( is
designed to be a tiny C library to statically link early userspace
code against, along with some related utilities.  It is BSD licensed.
I use uClibc ( and busybox (
myself.  These are LGPL and GPL, respectively.  (A self-contained initramfs
package is planned for the busybox 1.3 release.)
In theory you could use glibc, but that's not well suited for small embedded
uses like this.  (A "hello world" program statically linked against glibc is
over 400k.  With uClibc it's 7k.  Also note that glibc dlopens libnss to do
name lookups, even when otherwise statically linked.)
A good first step is to get initramfs to run a statically linked "hello world"
program as init, and test it under an emulator like qemu ( or
User Mode Linux, like so:
  cat > hello.c << EOF
  #include <stdio.h>
  #include <unistd.h>
  int main(int argc, char *argv[])
    printf("Hello world!\n");
  gcc -static hello.c -o init
  echo init | cpio -o -H newc | gzip > test.cpio.gz
  # Testing external initramfs using the initrd loading mechanism.
  qemu -kernel /boot/vmlinuz -initrd test.cpio.gz /dev/zero
When debugging a normal root filesystem, it's nice to be able to boot with
"init=/bin/sh".  The initramfs equivalent is "rdinit=/bin/sh", and it's
just as useful.
Why cpio rather than tar?
This decision was made back in December, 2001.  The discussion started here:
And spawned a second thread (specifically on tar vs cpio), starting here:
The quick and dirty summary version (which is no substitute for reading
the above threads) is:
1) cpio is a standard.  It's decades old (from the AT&T days), and already
   widely used on Linux (inside RPM, Red Hat's device driver disks).  Here's
   a Linux Journal article about it from 1996:
   It's not as popular as tar because the traditional cpio command line tools
   require _truly_hideous_ command line arguments.  But that says nothing
   either way about the archive format, and there are alternative tools,
   such as:
2) The cpio archive format chosen by the kernel is simpler and cleaner (and
   thus easier to create and parse) than any of the (literally dozens of)
   various tar archive formats.  The complete initramfs archive format is
   explained in buffer-format.txt, created in usr/gen_init_cpio.c, and
   extracted in init/initramfs.c.  All three together come to less than 26k
   total of human-readable text.
3) The GNU project standardizing on tar is approximately as relevant as
   Windows standardizing on zip.  Linux is not part of either, and is free
   to make its own technical decisions.
4) Since this is a kernel internal format, it could easily have been
   something brand new.  The kernel provides its own tools to create and
   extract this format anyway.  Using an existing standard was preferable,
   but not essential.
5) Al Viro made the decision (quote: "tar is ugly as hell and not going to be
   supported on the kernel side"):
   explained his reasoning:
   and, most importantly, designed and implemented the initramfs code.
Future directions:
Today (2.6.16), initramfs is always compiled in, but not always used.  The
kernel falls back to legacy boot code that is reached only if initramfs does
not contain an /init program.  The fallback is legacy code, there to ensure a
smooth transition and allowing early boot functionality to gradually move to
"early userspace" (I.E. initramfs).
The move to early userspace is necessary because finding and mounting the real
root device is complex.  Root partitions can span multiple devices (raid or
separate journal).  They can be out on the network (requiring dhcp, setting a
specific MAC address, logging into a server, etc).  They can live on removable
media, with dynamically allocated major/minor numbers and persistent naming
issues requiring a full udev implementation to sort out.  They can be
compressed, encrypted, copy-on-write, loopback mounted, strangely partitioned,
and so on.
This kind of complexity (which inevitably includes policy) is rightly handled
in userspace.  Both klibc and busybox/uClibc are working on simple initramfs
packages to drop into a kernel build.
The klibc package has now been accepted into Andrew Morton's 2.6.17-mm tree.
The kernel's current early boot code (partition detection, etc) will probably
be migrated into a default initramfs, automatically created and used by the
kernel build.

compiling custom kernel modules

To make your own module ( after changing the functionality of existing driver from any stable kernel source )

follow the steps.

1. download the kernel source

2. and place it at /

3. download headers and install headers

4. go to /usr/src/linux-headers-2.6.xx-yy

( if you changed some sources of drivers/usb/. then you want to create the your own modified usb module then)

5 then make sudo make M=/linux-2.6.27/drivers/usb/ modules


amarender@amarender-desktop:/usr/src/linux-headers-2.6.27-10-generic$ sudo make M=/linux-2.6.27/drivers/usb/ modules
CC [M]  /linux-2.6.27/drivers/usb/atm/cxacru.o
CC [M]  /linux-2.6.27/drivers/usb/atm/speedtch.o
CC [M]  /linux-2.6.27/drivers/usb/atm/ueagle-atm.o
CC [M]  /linux-2.6.27/drivers/usb/atm/usbatm.o
/linux-2.6.27/drivers/usb/atm/usbatm.c: In function ‘usbatm_heavy_init’:
/linux-2.6.27/drivers/usb/atm/usbatm.c:1038: warning: format not a string literal and no format arguments
/linux-2.6.27/drivers/usb/atm/usbatm.c: In function ‘usbatm_usb_probe’:
/linux-2.6.27/drivers/usb/atm/usbatm.c:1093: warning: format not a string literal and no format arguments
CC [M]  /linux-2.6.27/drivers/usb/atm/xusbatm.o
CC [M]  /linux-2.6.27/drivers/usb/c67×00/c67×00-drv.o
CC [M]  /linux-2.6.27/drivers/usb/c67×00/c67×00-ll-hpi.o
CC [M]  /linux-2.6.27/drivers/usb/c67×00/c67×00-hcd.o
CC [M]  /linux-2.6.27/drivers/usb/c67×00/c67×00-sched.o
LD [M]  /linux-2.6.27/drivers/usb/c67×00/c67×00.o
CC [M]  /linux-2.6.27/drivers/usb/class/cdc-acm.o
CC [M]  /linux-2.6.27/drivers/usb/class/usblp.o
CC [M]  /linux-2.6.27/drivers/usb/class/cdc-wdm.o
CC [M]  /linux-2.6.27/drivers/usb/core/usb.o
CC [M]  /linux-2.6.27/drivers/usb/core/hub.o
CC [M]  /linux-2.6.27/drivers/usb/core/hcd.o
CC [M]  /linux-2.6.27/drivers/usb/core/urb.o
CC [M]  /linux-2.6.27/drivers/usb/core/message.o
CC [M]  /linux-2.6.27/drivers/usb/core/driver.o
CC [M]  /linux-2.6.27/drivers/usb/core/config.o
CC [M]  /linux-2.6.27/drivers/usb/core/file.o
CC [M]  /linux-2.6.27/drivers/usb/core/buffer.o
CC [M]  /linux-2.6.27/drivers/usb/core/sysfs.o
CC [M]  /linux-2.6.27/drivers/usb/core/endpoint.o
CC [M]  /linux-2.6.27/drivers/usb/core/devio.o
CC [M]  /linux-2.6.27/drivers/usb/core/notify.o
CC [M]  /linux-2.6.27/drivers/usb/core/generic.o
CC [M]  /linux-2.6.27/drivers/usb/core/quirks.o
CC [M]  /linux-2.6.27/drivers/usb/core/hcd-pci.o
CC [M]  /linux-2.6.27/drivers/usb/core/inode.o
CC [M]  /linux-2.6.27/drivers/usb/core/devices.o
LD [M]  /linux-2.6.27/drivers/usb/core/usbcore.o
CC [M]  /linux-2.6.27/drivers/usb/host/ehci-hcd.o
CC [M]  /linux-2.6.27/drivers/usb/host/isp116x-hcd.o
CC [M]  /linux-2.6.27/drivers/usb/host/ohci-hcd.o
CC [M]  /linux-2.6.27/drivers/usb/host/uhci-hcd.o
CC [M]  /linux-2.6.27/drivers/usb/host/sl811-hcd.o
CC [M]  /linux-2.6.27/drivers/usb/host/sl811_cs.o
CC [M]  /linux-2.6.27/drivers/usb/host/u132-hcd.o
CC [M]  /linux-2.6.27/drivers/usb/host/r8a66597-hcd.o
CC [M]  /linux-2.6.27/drivers/usb/host/isp1760-hcd.o
CC [M]  /linux-2.6.27/drivers/usb/host/isp1760-if.o
LD [M]  /linux-2.6.27/drivers/usb/host/isp1760.o
CC [M]  /linux-2.6.27/drivers/usb/image/mdc800.o
CC [M]  /linux-2.6.27/drivers/usb/image/microtek.o
CC [M]  /linux-2.6.27/drivers/usb/misc/adutux.o
CC [M]  /linux-2.6.27/drivers/usb/misc/appledisplay.o
CC [M]  /linux-2.6.27/drivers/usb/misc/berry_charge.o
CC [M]  /linux-2.6.27/drivers/usb/misc/cypress_cy7c63.o
CC [M]  /linux-2.6.27/drivers/usb/misc/cytherm.o
CC [M]  /linux-2.6.27/drivers/usb/misc/emi26.o
CC [M]  /linux-2.6.27/drivers/usb/misc/emi62.o
CC [M]  /linux-2.6.27/drivers/usb/misc/ftdi-elan.o
CC [M]  /linux-2.6.27/drivers/usb/misc/idmouse.o
CC [M]  /linux-2.6.27/drivers/usb/misc/iowarrior.o
CC [M]  /linux-2.6.27/drivers/usb/misc/isight_firmware.o
CC [M]  /linux-2.6.27/drivers/usb/misc/usblcd.o
CC [M]  /linux-2.6.27/drivers/usb/misc/ldusb.o
CC [M]  /linux-2.6.27/drivers/usb/misc/usbled.o
CC [M]  /linux-2.6.27/drivers/usb/misc/legousbtower.o
CC [M]  /linux-2.6.27/drivers/usb/misc/phidget.o
CC [M]  /linux-2.6.27/drivers/usb/misc/phidgetkit.o
CC [M]  /linux-2.6.27/drivers/usb/misc/phidgetmotorcontrol.o
CC [M]  /linux-2.6.27/drivers/usb/misc/phidgetservo.o
CC [M]  /linux-2.6.27/drivers/usb/misc/rio500.o
CC [M]  /linux-2.6.27/drivers/usb/misc/trancevibrator.o
CC [M]  /linux-2.6.27/drivers/usb/misc/uss720.o
CC [M]  /linux-2.6.27/drivers/usb/misc/sisusbvga/sisusb.o
CC [M]  /linux-2.6.27/drivers/usb/misc/sisusbvga/sisusb_init.o
CC [M]  /linux-2.6.27/drivers/usb/misc/sisusbvga/sisusb_con.o
LD [M]  /linux-2.6.27/drivers/usb/misc/sisusbvga/sisusbvga.o
CC [M]  /linux-2.6.27/drivers/usb/mon/mon_main.o
CC [M]  /linux-2.6.27/drivers/usb/mon/mon_stat.o
CC [M]  /linux-2.6.27/drivers/usb/mon/mon_text.o
CC [M]  /linux-2.6.27/drivers/usb/mon/mon_bin.o
CC [M]  /linux-2.6.27/drivers/usb/mon/mon_dma.o
LD [M]  /linux-2.6.27/drivers/usb/mon/usbmon.o
CC [M]  /linux-2.6.27/drivers/usb/serial/usb-serial.o
CC [M]  /linux-2.6.27/drivers/usb/serial/generic.o
CC [M]  /linux-2.6.27/drivers/usb/serial/bus.o
CC [M]  /linux-2.6.27/drivers/usb/serial/ezusb.o
LD [M]  /linux-2.6.27/drivers/usb/serial/usbserial.o
CC [M]  /linux-2.6.27/drivers/usb/serial/aircable.o
CC [M]  /linux-2.6.27/drivers/usb/serial/ark3116.o
CC [M]  /linux-2.6.27/drivers/usb/serial/belkin_sa.o
CC [M]  /linux-2.6.27/drivers/usb/serial/ch341.o
CC [M]  /linux-2.6.27/drivers/usb/serial/cp2101.o
CC [M]  /linux-2.6.27/drivers/usb/serial/cyberjack.o
CC [M]  /linux-2.6.27/drivers/usb/serial/cypress_m8.o
CC [M]  /linux-2.6.27/drivers/usb/serial/usb_debug.o
CC [M]  /linux-2.6.27/drivers/usb/serial/digi_acceleport.o
CC [M]  /linux-2.6.27/drivers/usb/serial/io_edgeport.o
CC [M]  /linux-2.6.27/drivers/usb/serial/io_ti.o
CC [M]  /linux-2.6.27/drivers/usb/serial/empeg.o
CC [M]  /linux-2.6.27/drivers/usb/serial/ftdi_sio.o
CC [M]  /linux-2.6.27/drivers/usb/serial/funsoft.o
CC [M]  /linux-2.6.27/drivers/usb/serial/garmin_gps.o
CC [M]  /linux-2.6.27/drivers/usb/serial/hp4x.o
CC [M]  /linux-2.6.27/drivers/usb/serial/ipaq.o
CC [M]  /linux-2.6.27/drivers/usb/serial/ipw.o
CC [M]  /linux-2.6.27/drivers/usb/serial/keyspan.o
CC [M]  /linux-2.6.27/drivers/usb/serial/keyspan_pda.o
CC [M]  /linux-2.6.27/drivers/usb/serial/kl5kusb105.o
CC [M]  /linux-2.6.27/drivers/usb/serial/kobil_sct.o
CC [M]  /linux-2.6.27/drivers/usb/serial/mct_u232.o
CC [M]  /linux-2.6.27/drivers/usb/serial/mos7720.o
CC [M]  /linux-2.6.27/drivers/usb/serial/mos7840.o
CC [M]  /linux-2.6.27/drivers/usb/serial/moto_modem.o
CC [M]  /linux-2.6.27/drivers/usb/serial/navman.o
CC [M]  /linux-2.6.27/drivers/usb/serial/omninet.o
CC [M]  /linux-2.6.27/drivers/usb/serial/option.o
CC [M]  /linux-2.6.27/drivers/usb/serial/oti6858.o
CC [M]  /linux-2.6.27/drivers/usb/serial/pl2303.o
CC [M]  /linux-2.6.27/drivers/usb/serial/safe_serial.o
CC [M]  /linux-2.6.27/drivers/usb/serial/sierra.o
CC [M]  /linux-2.6.27/drivers/usb/serial/spcp8×5.o
CC [M]  /linux-2.6.27/drivers/usb/serial/ti_usb_3410_5052.o
CC [M]  /linux-2.6.27/drivers/usb/serial/visor.o
CC [M]  /linux-2.6.27/drivers/usb/serial/whiteheat.o
CC [M]  /linux-2.6.27/drivers/usb/storage/scsiglue.o
CC [M]  /linux-2.6.27/drivers/usb/storage/protocol.o
CC [M]  /linux-2.6.27/drivers/usb/storage/transport.o
CC [M]  /linux-2.6.27/drivers/usb/storage/usb.o
CC [M]  /linux-2.6.27/drivers/usb/storage/initializers.o
CC [M]  /linux-2.6.27/drivers/usb/storage/sierra_ms.o
CC [M]  /linux-2.6.27/drivers/usb/storage/shuttle_usbat.o
CC [M]  /linux-2.6.27/drivers/usb/storage/sddr09.o
CC [M]  /linux-2.6.27/drivers/usb/storage/sddr55.o
CC [M]  /linux-2.6.27/drivers/usb/storage/freecom.o
CC [M]  /linux-2.6.27/drivers/usb/storage/dpcm.o
CC [M]  /linux-2.6.27/drivers/usb/storage/isd200.o
CC [M]  /linux-2.6.27/drivers/usb/storage/datafab.o
CC [M]  /linux-2.6.27/drivers/usb/storage/jumpshot.o
CC [M]  /linux-2.6.27/drivers/usb/storage/alauda.o
CC [M]  /linux-2.6.27/drivers/usb/storage/karma.o
LD [M]  /linux-2.6.27/drivers/usb/storage/usb-storage.o
CC [M]  /linux-2.6.27/drivers/usb/storage/libusual.o
/linux-2.6.27/drivers/usb/storage/libusual.c: In function ‘usu_probe_thread’:
/linux-2.6.27/drivers/usb/storage/libusual.c:183: warning: format not a string literal and no format arguments
Building modules, stage 2.
MODPOST 85 modules
CC      /linux-2.6.27/drivers/usb/atm/cxacru.mod.o
LD [M]  /linux-2.6.27/drivers/usb/atm/cxacru.ko
CC      /linux-2.6.27/drivers/usb/atm/speedtch.mod.o
LD [M]  /linux-2.6.27/drivers/usb/atm/speedtch.ko
CC      /linux-2.6.27/drivers/usb/atm/ueagle-atm.mod.o
LD [M]  /linux-2.6.27/drivers/usb/atm/ueagle-atm.ko
CC      /linux-2.6.27/drivers/usb/atm/usbatm.mod.o
LD [M]  /linux-2.6.27/drivers/usb/atm/usbatm.ko
CC      /linux-2.6.27/drivers/usb/atm/xusbatm.mod.o
LD [M]  /linux-2.6.27/drivers/usb/atm/xusbatm.ko
CC      /linux-2.6.27/drivers/usb/c67×00/c67×00.mod.o
LD [M]  /linux-2.6.27/drivers/usb/c67×00/c67×00.ko
CC      /linux-2.6.27/drivers/usb/class/cdc-acm.mod.o
LD [M]  /linux-2.6.27/drivers/usb/class/cdc-acm.ko
CC      /linux-2.6.27/drivers/usb/class/cdc-wdm.mod.o
LD [M]  /linux-2.6.27/drivers/usb/class/cdc-wdm.ko
CC      /linux-2.6.27/drivers/usb/class/usblp.mod.o
LD [M]  /linux-2.6.27/drivers/usb/class/usblp.ko
CC      /linux-2.6.27/drivers/usb/core/usbcore.mod.o
LD [M]  /linux-2.6.27/drivers/usb/core/usbcore.ko
CC      /linux-2.6.27/drivers/usb/host/ehci-hcd.mod.o
LD [M]  /linux-2.6.27/drivers/usb/host/ehci-hcd.ko
CC      /linux-2.6.27/drivers/usb/host/isp116x-hcd.mod.o
LD [M]  /linux-2.6.27/drivers/usb/host/isp116x-hcd.ko
CC      /linux-2.6.27/drivers/usb/host/isp1760.mod.o
LD [M]  /linux-2.6.27/drivers/usb/host/isp1760.ko
CC      /linux-2.6.27/drivers/usb/host/ohci-hcd.mod.o
LD [M]  /linux-2.6.27/drivers/usb/host/ohci-hcd.ko
CC      /linux-2.6.27/drivers/usb/host/r8a66597-hcd.mod.o
LD [M]  /linux-2.6.27/drivers/usb/host/r8a66597-hcd.ko
CC      /linux-2.6.27/drivers/usb/host/sl811-hcd.mod.o
LD [M]  /linux-2.6.27/drivers/usb/host/sl811-hcd.ko
CC      /linux-2.6.27/drivers/usb/host/sl811_cs.mod.o
LD [M]  /linux-2.6.27/drivers/usb/host/sl811_cs.ko
CC      /linux-2.6.27/drivers/usb/host/u132-hcd.mod.o
LD [M]  /linux-2.6.27/drivers/usb/host/u132-hcd.ko
CC      /linux-2.6.27/drivers/usb/host/uhci-hcd.mod.o
LD [M]  /linux-2.6.27/drivers/usb/host/uhci-hcd.ko
CC      /linux-2.6.27/drivers/usb/image/mdc800.mod.o
LD [M]  /linux-2.6.27/drivers/usb/image/mdc800.ko
CC      /linux-2.6.27/drivers/usb/image/microtek.mod.o
LD [M]  /linux-2.6.27/drivers/usb/image/microtek.ko
CC      /linux-2.6.27/drivers/usb/misc/adutux.mod.o
LD [M]  /linux-2.6.27/drivers/usb/misc/adutux.ko
CC      /linux-2.6.27/drivers/usb/misc/appledisplay.mod.o
LD [M]  /linux-2.6.27/drivers/usb/misc/appledisplay.ko
CC      /linux-2.6.27/drivers/usb/misc/berry_charge.mod.o
LD [M]  /linux-2.6.27/drivers/usb/misc/berry_charge.ko
CC      /linux-2.6.27/drivers/usb/misc/cypress_cy7c63.mod.o
LD [M]  /linux-2.6.27/drivers/usb/misc/cypress_cy7c63.ko
CC      /linux-2.6.27/drivers/usb/misc/cytherm.mod.o
LD [M]  /linux-2.6.27/drivers/usb/misc/cytherm.ko
CC      /linux-2.6.27/drivers/usb/misc/emi26.mod.o
LD [M]  /linux-2.6.27/drivers/usb/misc/emi26.ko
CC      /linux-2.6.27/drivers/usb/misc/emi62.mod.o
LD [M]  /linux-2.6.27/drivers/usb/misc/emi62.ko
CC      /linux-2.6.27/drivers/usb/misc/ftdi-elan.mod.o
LD [M]  /linux-2.6.27/drivers/usb/misc/ftdi-elan.ko
CC      /linux-2.6.27/drivers/usb/misc/idmouse.mod.o
LD [M]  /linux-2.6.27/drivers/usb/misc/idmouse.ko
CC      /linux-2.6.27/drivers/usb/misc/iowarrior.mod.o
LD [M]  /linux-2.6.27/drivers/usb/misc/iowarrior.ko
CC      /linux-2.6.27/drivers/usb/misc/isight_firmware.mod.o
LD [M]  /linux-2.6.27/drivers/usb/misc/isight_firmware.ko
CC      /linux-2.6.27/drivers/usb/misc/ldusb.mod.o
LD [M]  /linux-2.6.27/drivers/usb/misc/ldusb.ko
CC      /linux-2.6.27/drivers/usb/misc/legousbtower.mod.o
LD [M]  /linux-2.6.27/drivers/usb/misc/legousbtower.ko
CC      /linux-2.6.27/drivers/usb/misc/phidget.mod.o
LD [M]  /linux-2.6.27/drivers/usb/misc/phidget.ko
CC      /linux-2.6.27/drivers/usb/misc/phidgetkit.mod.o
LD [M]  /linux-2.6.27/drivers/usb/misc/phidgetkit.ko
CC      /linux-2.6.27/drivers/usb/misc/phidgetmotorcontrol.mod.o
LD [M]  /linux-2.6.27/drivers/usb/misc/phidgetmotorcontrol.ko
CC      /linux-2.6.27/drivers/usb/misc/phidgetservo.mod.o
LD [M]  /linux-2.6.27/drivers/usb/misc/phidgetservo.ko
CC      /linux-2.6.27/drivers/usb/misc/rio500.mod.o
LD [M]  /linux-2.6.27/drivers/usb/misc/rio500.ko
CC      /linux-2.6.27/drivers/usb/misc/sisusbvga/sisusbvga.mod.o
LD [M]  /linux-2.6.27/drivers/usb/misc/sisusbvga/sisusbvga.ko
CC      /linux-2.6.27/drivers/usb/misc/trancevibrator.mod.o
LD [M]  /linux-2.6.27/drivers/usb/misc/trancevibrator.ko
CC      /linux-2.6.27/drivers/usb/misc/usblcd.mod.o
LD [M]  /linux-2.6.27/drivers/usb/misc/usblcd.ko
CC      /linux-2.6.27/drivers/usb/misc/usbled.mod.o
LD [M]  /linux-2.6.27/drivers/usb/misc/usbled.ko
CC      /linux-2.6.27/drivers/usb/misc/uss720.mod.o
LD [M]  /linux-2.6.27/drivers/usb/misc/uss720.ko
CC      /linux-2.6.27/drivers/usb/mon/usbmon.mod.o
LD [M]  /linux-2.6.27/drivers/usb/mon/usbmon.ko
CC      /linux-2.6.27/drivers/usb/serial/aircable.mod.o
LD [M]  /linux-2.6.27/drivers/usb/serial/aircable.ko
CC      /linux-2.6.27/drivers/usb/serial/ark3116.mod.o
LD [M]  /linux-2.6.27/drivers/usb/serial/ark3116.ko
CC      /linux-2.6.27/drivers/usb/serial/belkin_sa.mod.o
LD [M]  /linux-2.6.27/drivers/usb/serial/belkin_sa.ko
CC      /linux-2.6.27/drivers/usb/serial/ch341.mod.o
LD [M]  /linux-2.6.27/drivers/usb/serial/ch341.ko
CC      /linux-2.6.27/drivers/usb/serial/cp2101.mod.o
LD [M]  /linux-2.6.27/drivers/usb/serial/cp2101.ko
CC      /linux-2.6.27/drivers/usb/serial/cyberjack.mod.o
LD [M]  /linux-2.6.27/drivers/usb/serial/cyberjack.ko
CC      /linux-2.6.27/drivers/usb/serial/cypress_m8.mod.o
LD [M]  /linux-2.6.27/drivers/usb/serial/cypress_m8.ko
CC      /linux-2.6.27/drivers/usb/serial/digi_acceleport.mod.o
LD [M]  /linux-2.6.27/drivers/usb/serial/digi_acceleport.ko
CC      /linux-2.6.27/drivers/usb/serial/empeg.mod.o
LD [M]  /linux-2.6.27/drivers/usb/serial/empeg.ko
CC      /linux-2.6.27/drivers/usb/serial/ftdi_sio.mod.o
LD [M]  /linux-2.6.27/drivers/usb/serial/ftdi_sio.ko
CC      /linux-2.6.27/drivers/usb/serial/funsoft.mod.o
LD [M]  /linux-2.6.27/drivers/usb/serial/funsoft.ko
CC      /linux-2.6.27/drivers/usb/serial/garmin_gps.mod.o
LD [M]  /linux-2.6.27/drivers/usb/serial/garmin_gps.ko
CC      /linux-2.6.27/drivers/usb/serial/hp4x.mod.o
LD [M]  /linux-2.6.27/drivers/usb/serial/hp4x.ko
CC      /linux-2.6.27/drivers/usb/serial/io_edgeport.mod.o
LD [M]  /linux-2.6.27/drivers/usb/serial/io_edgeport.ko
CC      /linux-2.6.27/drivers/usb/serial/io_ti.mod.o
LD [M]  /linux-2.6.27/drivers/usb/serial/io_ti.ko
CC      /linux-2.6.27/drivers/usb/serial/ipaq.mod.o
LD [M]  /linux-2.6.27/drivers/usb/serial/ipaq.ko
CC      /linux-2.6.27/drivers/usb/serial/ipw.mod.o
LD [M]  /linux-2.6.27/drivers/usb/serial/ipw.ko
CC      /linux-2.6.27/drivers/usb/serial/keyspan.mod.o
LD [M]  /linux-2.6.27/drivers/usb/serial/keyspan.ko
CC      /linux-2.6.27/drivers/usb/serial/keyspan_pda.mod.o
LD [M]  /linux-2.6.27/drivers/usb/serial/keyspan_pda.ko
CC      /linux-2.6.27/drivers/usb/serial/kl5kusb105.mod.o
LD [M]  /linux-2.6.27/drivers/usb/serial/kl5kusb105.ko
CC      /linux-2.6.27/drivers/usb/serial/kobil_sct.mod.o
LD [M]  /linux-2.6.27/drivers/usb/serial/kobil_sct.ko
CC      /linux-2.6.27/drivers/usb/serial/mct_u232.mod.o
LD [M]  /linux-2.6.27/drivers/usb/serial/mct_u232.ko
CC      /linux-2.6.27/drivers/usb/serial/mos7720.mod.o
LD [M]  /linux-2.6.27/drivers/usb/serial/mos7720.ko
CC      /linux-2.6.27/drivers/usb/serial/mos7840.mod.o
LD [M]  /linux-2.6.27/drivers/usb/serial/mos7840.ko
CC      /linux-2.6.27/drivers/usb/serial/moto_modem.mod.o
LD [M]  /linux-2.6.27/drivers/usb/serial/moto_modem.ko
CC      /linux-2.6.27/drivers/usb/serial/navman.mod.o
LD [M]  /linux-2.6.27/drivers/usb/serial/navman.ko
CC      /linux-2.6.27/drivers/usb/serial/omninet.mod.o
LD [M]  /linux-2.6.27/drivers/usb/serial/omninet.ko
CC      /linux-2.6.27/drivers/usb/serial/option.mod.o
LD [M]  /linux-2.6.27/drivers/usb/serial/option.ko
CC      /linux-2.6.27/drivers/usb/serial/oti6858.mod.o
LD [M]  /linux-2.6.27/drivers/usb/serial/oti6858.ko
CC      /linux-2.6.27/drivers/usb/serial/pl2303.mod.o
LD [M]  /linux-2.6.27/drivers/usb/serial/pl2303.ko
CC      /linux-2.6.27/drivers/usb/serial/safe_serial.mod.o
LD [M]  /linux-2.6.27/drivers/usb/serial/safe_serial.ko
CC      /linux-2.6.27/drivers/usb/serial/sierra.mod.o
LD [M]  /linux-2.6.27/drivers/usb/serial/sierra.ko
CC      /linux-2.6.27/drivers/usb/serial/spcp8×5.mod.o
LD [M]  /linux-2.6.27/drivers/usb/serial/spcp8×5.ko
CC      /linux-2.6.27/drivers/usb/serial/ti_usb_3410_5052.mod.o
LD [M]  /linux-2.6.27/drivers/usb/serial/ti_usb_3410_5052.ko
CC      /linux-2.6.27/drivers/usb/serial/usb_debug.mod.o
LD [M]  /linux-2.6.27/drivers/usb/serial/usb_debug.ko
CC      /linux-2.6.27/drivers/usb/serial/usbserial.mod.o
LD [M]  /linux-2.6.27/drivers/usb/serial/usbserial.ko
CC      /linux-2.6.27/drivers/usb/serial/visor.mod.o
LD [M]  /linux-2.6.27/drivers/usb/serial/visor.ko
CC      /linux-2.6.27/drivers/usb/serial/whiteheat.mod.o
LD [M]  /linux-2.6.27/drivers/usb/serial/whiteheat.ko
CC      /linux-2.6.27/drivers/usb/storage/libusual.mod.o
LD [M]  /linux-2.6.27/drivers/usb/storage/libusual.ko
CC      /linux-2.6.27/drivers/usb/storage/usb-storage.mod.o
LD [M]  /linux-2.6.27/drivers/usb/storage/usb-storage.ko

old webpage

from today i am moving the my old webpage contents to here.

my old page is


the uvccapure command line tool gives wrong result if you pass(/no parameters).so pass correct  resolution.

to do this first open cheese ( webcam viewer ) from there capture image and note the image resolution and pass the resolution to this tool like

amarender@amarender-desktop:~/Desktop/uvccapture-0.5$ sudo ./uvccapture -d/dev/video0 -x1600 -y1200 -t10 -q60 -w -v


run the uvccapture command line tool by executing

amarender@amarender-desktop:~/Desktop/uvccapture-0.5$ sudo ./uvccapture -d/dev/video0 -t10 -q60 -w

dmesg of usb based camera

after inserting usb based camera.

amarender@amarender-desktop:~$ dmesg
[ 2844.164046] usb 2-4: new high speed USB device using ehci_hcd and address 2
[ 2844.592047] usb 1-4: new full speed USB device using ohci_hcd and address 2
[ 2844.794066] usb 1-4: not running at top speed; connect to a high speed hub
[ 2844.874177] usb 1-4: configuration #1 chosen from 1 choice
[ 2845.266976] Linux video capture interface: v2.00
[ 2845.323351] uvcvideo: Found UVC 1.00 device Sirius USB2.0 Camera (0ac8:3340)
[ 2845.333956] input: Sirius USB2.0 Camera as /devices/pci0000:00/0000:00:02.0/usb1/1-4/1-4:1.0/input/input6
[ 2845.348302] usbcore: registered new interface driver uvcvideo
[ 2845.349311] USB Video Class driver (v0.1.0)