This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

arago build with mdev instead of udev

Hi all,

1. Please tell me the changes to make to build arago filesystem with mdev instead of udev. Also tell me the files to change. 

2. I would also like to know to replace initd with systemd. 

The intent is to achieve fast boot using either of the methods.

Regards,

Gangadhar

  • Moving this to the Linux forum.

  • Hi Gangadhar,

    If you want replace "initd" with "systemd" then udev is mandatory.

    busbox has the mdev support.

    arago-oe-dev/recipes/systemd/systemd_git.bb

    arago-oe-dev/recipes/busybox/busybox_1.18.3.bb

    arago-oe-dev/recipes/busybox/busybox_1.1x.inc

  • I'm not able to replace udev with mdev, what am I missing? xxxx refers to my layer name

    1. I'm using meta-arago layer as foundation for my layer. I was successful in building filesystem and using it on my board.

    2. To use mdev, in tisdk/build/arago-tmp-external-linaro-toolchain/work/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi/busybox/1.20.2-r8-arago12-xxxx/busybox-1.20.2, I did make menuconfig,

    a. unchecked "systemd",

    b. checked init, mdev

    and used the generated .config as defconfig in

    /tisdk/sources/meta-xxxx/recipes-core/busybox/busybox

    3. In conf/machine/xxx33x.inc,

    VIRTUAL-RUNTIME_dev_manager = "mdev"

    4. When I execute cmd - MACHINE=xxxx bitbake xxxx-image, I get

    Loading cache: 100% |####################################################################################################################################| ETA:  00:00:00
    Loaded 2003 entries from dependency cache.
    Parsing recipes: 100% |##################################################################################################################################| Time: 00:00:00
    Parsing of 1619 .bb files complete (1618 cached, 1 parsed). 2002 targets, 177 skipped, 0 masked, 0 errors.
    WARNING: No recipes available for:
      /home/gangadhar/tisdk/sources/meta-arago/meta-arago-distro/recipes-qt/qt5/qtwebkit_5.2.0.bbappend
      /home/gangadhar/tisdk/sources/meta-arago/meta-arago-distro/recipes-qt/qt5/qtbase_5.2.0.bbappend

    Build Configuration:
    BB_VERSION        = "1.18.0"
    BUILD_SYS         = "i686-linux"
    NATIVELSBSTRING   = "Ubuntu-12.04"
    TARGET_SYS        = "arm-oe-linux-gnueabi"
    MACHINE           = "xxxx"
    DISTRO            = "arago"
    DISTRO_VERSION    = "2013.12"
    TUNE_FEATURES     = "armv7a vfp thumb neon callconvention-hard cortexa8"
    TARGET_FPU        = "vfp-neon"
    meta-arago-distro
    meta-arago-extras = "dylan:370ed5e9f68afd0937e01f6cd69863e45ba19c1f"
    meta-qt5          = "master:9a4c0b393bf031acace5c2cc00d625a24c639d1c"
    toolchain-layer   
    meta-networking   
    meta-ruby         
    meta-oe           = "dylan:237daf836a700d55c95c095a90d249d1fa37b389"
    meta-ti           = "dylan:8beec1ca66c9d064cd0c81add74f3c199d9a0961"
    meta-linaro-toolchain = "dylan:c9f78d6eff14ada3f2bc960e81883b27a10afecc"
    meta              = "dylan:32e6864323cf2e4405b835cf474bcdf6fd572961"
    meta-xxxx      = "master:d5b77db97b1b942c8643ffd1333e87ee09eefb9e"

    NOTE: Resolving any missing task queue dependencies
    ERROR: Nothing RPROVIDES 'mdev' (but /home/gangadhar/tisdk/sources/oe-core/meta/recipes-core/packagegroups/packagegroup-core-boot.bb RDEPENDS on or otherwise requires it)
    NOTE: Runtime target 'mdev' is unbuildable, removing...
    Missing or unbuildable dependency chain was: ['mdev']
    NOTE: Runtime target 'packagegroup-core-boot' is unbuildable, removing...
    Missing or unbuildable dependency chain was: ['packagegroup-core-boot', 'mdev']
    ERROR: Required build target 'xxxx-image' has no buildable providers.
    Missing or unbuildable dependency chain was: ['xxxx-image', 'packagegroup-core-boot', 'mdev']

    Summary: There was 1 WARNING message shown.
    Summary: There were 2 ERROR messages shown, returning a non-zero exit code.


    Regards,

    Gangadhar

  • Used "busybox-mdev" instead of VIRTUAL-RUNTIME_dev_manager = "mdev". Build successful. But pendrive is not getting detected.

    Regards,

    Gangadhar

  • Hi Gangadhar,

    Thats good progress.

    You need to modify the "/dev/mdev.conf" file for USB auto mount.

    http://wiki.gentoo.org/wiki/Mdev/Automount_USB

    http://cross-lfs.org/view/clfs-embedded/x86/bootscripts/mdev.html

    https://wildanm.wordpress.com/2007/08/21/mdev-mini-udev-in-busybox/

  • Refer to the below documentation.

    http://git.busybox.net/busybox/plain/docs/mdev.txt

  • Hi All & Titu,

    Pendrive gets detected only if it is inserted before kernel boots. This response is the same with udev and mdev. I don't know where is the problem - kernel or filesystem. Once detected, it can be removed and inserted any number of times without any problem. I want pendrive to be detected whenever it is inserted. It should get detected if inserted after getting login prompt. I've attached mdev.conf, usb.sh(this script never gets executed based on rule in mdev.conf) and /etc/init.d/mdev. Below are the bootprints that I get when I boot the board.

    U-Boot 2013.10 (Oct 23 2014 - 17:02:42)                       [ 0.004  0.022 ]
                                                                  [ 0.000  0.022 ]
    DRAM:  256 MiB                                                [ 0.002  0.024 ]
    board_init.                                                   [ 0.053  0.077 ]
    ECS init function call                                        [ 0.005  0.082 ]
    Flash: 32 MiB                                                 [ 0.007  0.089 ]
    *** Warning - bad CRC, using default environment              [ 0.004  0.093 ]
                                                                  [ 0.000  0.093 ]
    Net:   usb_ether                                              [ 0.022  0.115 ]
    BSP3.7 17/09/2014                                             [ 0.002  0.117 ]
    +++++++++++ Debug is connected +++++++++                      [ 0.003  0.120 ]
    Autobooting in 5 seconds...                                   [ 0.003  0.123 ]
    Type <stop> to stop                                           [ 0.002  0.125 ]
    booting from nor, will use filesystem from NOR...             [ 5.000  5.125 ]
    #                                                             [ 0.000  5.125 ]
    #                                                             [ 0.000  5.125 ]
     Booting kernel from Legacy Image at 08a00000 ...             [ 0.005  5.130 ]
       Image Name:   Linux-                                       [ 0.002  5.132 ]
    3.12.10-ti2013.12.01                                          [ 0.002  5.134 ]
       Image Type:   ARM Linux Kernel Image (uncompressed)        [ 0.005  5.139 ]
       Data Size:    5109772 Bytes = 4.9 MiB                      [ 0.003  5.142 ]
       Load Address: 80008000                                     [ 0.003  5.145 ]
       Entry Point:  80008000                                     [ 0.002  5.147 ]
    #                                                             [ 0.000  5.147 ]
    #                                                             [ 0.000  5.147 ]
     Flattened Device Tree blob at 08ee7000                       [ 0.004  5.151 ]
       Booting using the fdt blob at 0x8ee7000                    [ 0.004  5.155 ]
       Loading Kernel Image ... OK                                [ 0.253  5.408 ]
       Loading Device Tree to 8fba4000, end 8fbaf6d3 ... OK       [ 0.016  5.424 ]
                                                                  [ 0.001  5.425 ]
    Starting kernel ...                                           [ 0.002  5.427 ]
                                                                  [ 0.000  5.427 ]
    platform 481ae000.gpio: Cannot lookup hwmod 'gpio4'           [ 0.159  5.586 ]
    ERROR: could not get clock /ocp/gpio@481ae000:dbclk(1)        [ 0.005  5.591 ]
    omap_gpio 481ae000.gpio: Could not get gpio dbck              [ 0.005  5.596 ]
    DSS not supported on this SoC                                 [ 0.003  5.599 ]
    matrix-keypad matrix_keypad.3: OF: linux,keymap property not  [ 0.137  5.736 ]
    matrix-keypad matrix_keypad.3: failed to build keymap         [ 0.005  5.741 ]
                                                                  [ 0.200  5.940 ]
    INIT: version 2.88 booting                                    [ 0.031  5.971 ]
                                                                  [ 0.000  5.972 ]
    Starting Bootlog daemon: bootlogd.                            [ 2.160  8.131 ]
                                                                  [ 0.000  8.131 ]
                                                                  [ 0.167  8.298 ]
    INIT: Entering runlevel: 5                                    [ 0.003  8.301 ]
                                                                  [ 0.000  8.301 ]
                                                                  [ 0.000  8.301 ]
    Starting Dropbear SSH server: dropbear.                       [ 0.109  8.410 ]
                                                                  [ 0.000  8.410 ]
    Starting telnet daemon.                                       [ 0.028  8.438 ]
                                                                  [ 0.000  8.438 ]
    Stopping Bootlog daemon: bootlogd.                            [ 0.029  8.467 ]
                                                                  [ 1.016  9.483 ]


    ----------------------------------------------------------------------------------------

    INIT: version 2.88 booting                                    [ 0.040  6.942 ]
                                                                  [ 0.000  6.942 ]
    mmc0: BKOPS_EN bit is not set                                 [ 0.267  7.209 ]
    mmc0: new high speed MMC card at address 0001                 [ 0.011  7.220 ]
    mmcblk0: mmc0:0001 MMC04G 3.66 GiB                            [ 0.011  7.231 ]
    mmcblk0boot0: mmc0:0001 MMC04G partition 1 1.00 MiB           [ 0.005  7.236 ]
    mmcblk0boot1: mmc0:0001 MMC04G partition 2 1.00 MiB           [ 0.011  7.247 ]
     mmcblk0: p1 p2 p3 p4 < p5 p6 p7 >                            [ 0.016  7.263 ]
     mmcblk0boot1: unknown partition table                        [ 0.015  7.278 ]
     mmcblk0boot0: unknown partition table                        [ 0.009  7.287 ]
    EXT2-fs (mmcblk0p1): warning: mounting unchecked fs, running  [ 0.060  7.347 ]
    EXT2-fs (mmcblk0p2): warning: mounting unchecked fs, running  [ 0.526  7.873 ]
    EXT2-fs (mmcblk0p3): warning: mounting unchecked fs, running  [ 0.042  7.915 ]
    kjournald starting.  Commit interval 5 seconds                [ 0.026  7.941 ]
    EXT3-fs (mmcblk0p6): using internal journal                   [ 0.025  7.966 ]
    EXT3-fs (mmcblk0p6): mounted filesystem with ordered data mo  [ 0.006  7.972 ]
    kjournald starting.  Commit interval 5 seconds                [ 0.015  7.987 ]
    EXT3-fs (mmcblk0p7): using internal journal                   [ 0.020  8.007 ]
    EXT3-fs (mmcblk0p7): mounted filesystem with ordered data mo  [ 0.006  8.013 ]
    kjournald starting.  Commit interval 5 seconds                [ 0.075  8.088 ]
    EXT3-fs (mmcblk0p5): using internal journal                   [ 0.035  8.123 ]
    EXT3-fs (mmcblk0p5): mounted filesystem with ordered data mo  [ 0.006  8.129 ]
    Initializing USB Mass Storage driver...                       [ 0.382  8.511 ]
    usbcore: registered new interface driver usb-storage          [ 0.015  8.526 ]
    USB Mass Storage support registered.                          [ 0.010  8.536 ]
    Starting Bootlog daemon: bootlogd.                            [ 0.048  8.584 ]
                                                                  [ 0.000  8.584 ]
                                                                  [ 0.156  8.740 ]
    INIT: Entering runlevel: 5                                    [ 0.002  8.742 ]
                                                                  [ 0.000  8.742 ]
                                                                  [ 0.000  8.742 ]
    Starting Dropbear SSH server: dropbear.                       [ 0.116  8.858 ]
                                                                  [ 0.000  8.858 ]
    Starting telnet daemon.                                       [ 0.030  8.888 ]
                                                                  [ 0.000  8.888 ]
    Stopping Bootlog daemon: bootlogd.                            [ 0.029  8.917 ]
                                                                  [ 1.020  9.937 ]
    8764.mdevfiles.zip

    Regards,

    Gangadhar

  • Hi Gangadhar,

    Could you attach the linux bootup log for with pendrive & without pendrive (before kernel boots) connected.

    Probably it is mainly due to USB auto mount or some other option supports are not enabled.

  • Hi Titu,

    Below are the logs,

    no penrive connected before kernel boot:

    DDR PLL settings done!!
    VP1 -> EMMCPWR_EN
    VP1 -> sdram_init()


    U-Boot 2013.10 (Nov 09 2014 - 21:37:40)

    DRAM:  256 MiB
    board_init.
    **************************
    ECS init function call  
    Flash: 32 MiB
    Net:   usb_ether
    BSP3.7 17/09/2014
    +++++++++++ Debug is connected +++++++++
    Autobooting in 5 seconds...
    Type <stop> to stop
    booting from nor, will use filesystem from NOR...
    ## Booting kernel from Legacy Image at 08a00000 ...
       Image Name:   Linux-3.12.10-ti2013.12.01
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    5109772 Bytes = 4.9 MiB
       Load Address: 80008000
       Entry Point:  80008000
    ## Flattened Device Tree blob at 08ee7000
       Booting using the fdt blob at 0x8ee7000
       Loading Kernel Image ... OK
       Loading Device Tree to 8fba4000, end 8fbaf6d3 ... OK

    Starting kernel ...

    Booting Linux on physical CPU 0x0
    BSP3.9
    Linux version 3.12.10-ti2013.12.01 (masta@PC160) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #4 PRE4
    CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
    CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    Machine: Generic AM33XX (Flattened Device Tree), model: DVP1 DRA608 J5 Echo
    cma: CMA: reserved 24 MiB at 8e000000
    Memory policy: ECC disabled, Data cache writeback
    CPU: All CPU(s) started in SVC mode.
    AM335X ES2.1 (sgx neon )
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 64512
    Kernel command line: console=ttyO3,115200n8 root=/dev/mtdblock7 ro rootfstype=ext2 lpj=2658304
    PID hash table entries: 1024 (order: 0, 4096 bytes)
    Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
    Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
    Memory: 227204K/260096K available (3810K kernel code, 334K rwdata, 640K rodata, 199K init, 325K bss, 32892K reserved)
    Virtual kernel memory layout:
        vector  : 0xffff0000 - 0xffff1000   (   4 kB)
        fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
        vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
        lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
        modules : 0xbf000000 - 0xc0000000   (  16 MB)
          .text : 0xc0008000 - 0xc0460cac   (4452 kB)
          .init : 0xc0461000 - 0xc0492d2c   ( 200 kB)
          .data : 0xc0494000 - 0xc04e7800   ( 334 kB)
           .bss : 0xc04e780c - 0xc0538e50   ( 326 kB)
    SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    Preemptible hierarchical RCU implementation.
    NR_IRQS:16 nr_irqs:16 16
    IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    Total of 128 interrupts on 1 active controller
    omap_dt_clocks_register: failed to lookup clock node gpio3_dbclk
    OMAP clockevent source: timer3 at 24000000 Hz
    sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
    OMAP clocksource: timer1 at 24000000 Hz
    Calibrating delay loop (skipped) preset value.. 531.66 BogoMIPS (lpj=2658304)
    pid_max: default: 32768 minimum: 301
    Mount-cache hash table entries: 512
    CPU: Testing write buffer coherency: ok
    Setting up static identity map for 0xc0398c48 - 0xc0398ca0
    devtmpfs: initialized
    VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    omap_hwmod: debugss: _wait_target_disable failed
    pinctrl core: initialized pinctrl subsystem
    regulator-dummy: no parameters
    NET: Registered protocol family 16
    DMA: preallocated 256 KiB pool for atomic coherent allocations
    OMAP GPIO hardware version 0.1
    platform 481ae000.gpio: Cannot lookup hwmod 'gpio4'
    ERROR: could not get clock /ocp/gpio@481ae000:dbclk(1)
    omap_gpio 481ae000.gpio: Could not get gpio dbck
    omap-gpmc 50000000.gpmc: could not find pctldev for node /pinmux@44e10800/pinmux_norflash_pins, deferring probe
    platform 50000000.gpmc: Driver omap-gpmc requests probe deferral
    DSS not supported on this SoC
    hw-breakpoint: debug architecture 0x4 unsupported.
    bio: create slab <bio-0> at 0
    edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
    vdd_mpu: 1260 mV
    vdd_core: 1100 mV
    dvp1_3v3_sw: 3300 mV
    SCSI subsystem initialized
    usbcore: registered new interface driver usbfs
    usbcore: registered new interface driver hub
    usbcore: registered new device driver usb
    omap_i2c 44e0b000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c0_pins, deferring probe
    platform 44e0b000.i2c: Driver omap_i2c requests probe deferral
    omap_i2c 4819c000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c2_pins, deferring probe
    platform 4819c000.i2c: Driver omap_i2c requests probe deferral
    pps_core: LinuxPPS API ver. 1 registered
    pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    PTP clock support registered
    Advanced Linux Sound Architecture Driver Initialized.
    Switched to clocksource timer1
    NET: Registered protocol family 2
    TCP established hash table entries: 2048 (order: 2, 16384 bytes)
    TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
    TCP: Hash tables configured (established 2048 bind 2048)
    TCP: reno registered
    UDP hash table entries: 256 (order: 0, 4096 bytes)
    UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    NET: Registered protocol family 1
    RPC: Registered named UNIX socket transport module.
    RPC: Registered udp transport module.
    RPC: Registered tcp transport module.
    RPC: Registered tcp NFSv4.1 backchannel transport module.
    PM: Loading am335x-pm-firmware.bin
    NFS: Registering the id_resolver key type
    Key type id_resolver registered
    Key type id_legacy registered
    NTFS driver 2.1.30 [Flags: R/O].
    fuse init (API version 7.22)
    msgmni has been set to 491
    io scheduler noop registered
    io scheduler deadline registered
    io scheduler cfq registered (default)
    pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 89, base_baud = 3000000) is a OMAP UART1
    48024000.serial: ttyO2 at MMIO 0x48024000 (irq = 90, base_baud = 3000000) is a OMAP UART2
    481a6000.serial: ttyO3 at MMIO 0x481a6000 (irq = 60, base_baud = 3000000) is a OMAP UART3
    console [ttyO3] enabled
    481aa000.serial: ttyO5 at MMIO 0x481aa000 (irq = 62, base_baud = 3000000) is a OMAP UART5
    omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    brd: module loaded
    loop: module loaded
    edma-dma-engine edma-dma-engine.0: allocated channel for 0:17
    edma-dma-engine edma-dma-engine.0: allocated channel for 0:16
    usbcore: registered new interface driver asix
    usbcore: registered new interface driver cdc_ether
    usbcore: registered new interface driver r815x
    usbcore: registered new interface driver net1080
    usbcore: registered new interface driver cdc_subset
    usbcore: registered new interface driver zaurus
    usbcore: registered new interface driver cdc_ncm
    ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    ehci-omap: OMAP-EHCI Host Controller driver
    musb-hdrc musb-hdrc.0.auto: Enabled SW babble control
    musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
    musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus number 1
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 1 port detected
    matrix-keypad matrix_keypad.3: OF: linux,keymap property not defined in /ocp/matrix_keypad@0
    matrix-keypad matrix_keypad.3: failed to build keymap
    matrix-keypad: probe of matrix_keypad.3 failed with error -2
    i2c /dev entries driver
    Driver for 1-wire Dallas network protocol.
    omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    edma-dma-engine edma-dma-engine.0: allocated channel for 0:13
    edma-dma-engine edma-dma-engine.0: allocated channel for 0:12
    edma-dma-engine edma-dma-engine.0: allocated channel for 0:36
    omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    edma-dma-engine edma-dma-engine.0: allocated channel for 0:5
    edma-dma-engine edma-dma-engine.0: allocated channel for 0:6
    hidraw: raw HID events driver (C) Jiri Kosina
    usbcore: registered new interface driver snd-usb-audio
    davinci-vp1-mcasp hero.9:  vp1-mcasp.0 <-> 48038000.mcasp mapping ok
    TCP: cubic registered
    NET: Registered protocol family 17
    Key type dns_resolver registered
    omap-gpmc 50000000.gpmc: GPMC revision 6.0
    gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    amd,s29gl256s: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000001 Chip ID 0x002201
    Amd/Fujitsu Extended Query Table at 0x0040
      Amd/Fujitsu Extended Query version 1.5.
      Advanced Sector Protection (PPB Locking) supported
    number of CFI chips: 1
    10 ofpart partitions found on MTD device amd,s29gl256s
    Creating 10 MTD partitions on "amd,s29gl256s":
    0x000000000000-0x000000080000 : "uboot"
    0x000000080000-0x0000000a0000 : "1st-copy-uboot-env"
    0x0000000a0000-0x0000000c0000 : "2nd-copy-uboot-env"
    0x0000000c0000-0x0000004a0000 : "fbl-kernel"
    0x0000004a0000-0x0000004c0000 : "fbl-variables"
    0x0000004c0000-0x000000a00000 : "fbl-filesystem"
    0x000000a00000-0x000000f00000 : "kernel+dtb"
    0x000000f00000-0x000001d80000 : "rootfs"
    0x000001d80000-0x000001f80000 : "startup"
    0x000001f80000-0x000002000000 : "CAN"
    omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 50 kHz
    omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
    ALSA device list:
      #0: davinci-vp1
    VFS: Mounted root (ext2 filesystem) readonly on device 31:7.
    devtmpfs: mounted
    Freeing unused kernel memory: 196K (c0461000 - c0492000)
    INIT: version 2.88 booting
    mmc0: BKOPS_EN bit is not set
    mmc0: new high speed MMC card at address 0001
    mmcblk0: mmc0:0001 MMC04G 3.66 GiB
    mmcblk0boot0: mmc0:0001 MMC04G partition 1 1.00 MiB
    mmcblk0boot1: mmc0:0001 MMC04G partition 2 1.00 MiB
     mmcblk0: p1 p2 p3 p4 < p5 p6 p7 >
     mmcblk0boot1: unknown partition table
     mmcblk0boot0: unknown partition table
    EXT2-fs (mmcblk0p1): warning: mounting unchecked fs, running e2fsck is recommended
    EXT2-fs (mmcblk0p2): warning: mounting unchecked fs, running e2fsck is recommended
    EXT2-fs (mmcblk0p3): warning: mounting unchecked fs, running e2fsck is recommended
    kjournald starting.  Commit interval 5 seconds
    EXT3-fs (mmcblk0p6): using internal journal
    EXT3-fs (mmcblk0p6): recovery complete
    EXT3-fs (mmcblk0p6): mounted filesystem with ordered data mode
    kjournald starting.  Commit interval 5 seconds
    EXT3-fs (mmcblk0p7): using internal journal
    EXT3-fs (mmcblk0p7): recovery complete
    EXT3-fs (mmcblk0p7): mounted filesystem with ordered data mode
    kjournald starting.  Commit interval 5 seconds
    EXT3-fs (mmcblk0p5): using internal journal
    EXT3-fs (mmcblk0p5): recovery complete
    EXT3-fs (mmcblk0p5): mounted filesystem with ordered data mode
    Initializing USB Mass Storage driver...
    usbcore: registered new interface driver usb-storage
    USB Mass Storage support registered.
    Starting Bootlog daemon: bootlogd.
    INIT: Entering runlevel: 5
    Starting Dropbear SSH server: dropbear.
    Starting telnet daemon.
    Stopping Bootlog daemon: bootlogd.

    login:

     

    pendrive connected before kernel boot:

     

    DDR PLL settings done!!
    VP1 -> EMMCPWR_EN
    VP1 -> sdram_init()


    U-Boot 2013.10 (Nov 09 2014 - 21:37:40)

    DRAM:  256 MiB
    board_init.
    **************************
    ECS init function call  
    Flash: 32 MiB
    Net:   usb_ether
    BSP3.7 17/09/2014
    +++++++++++ Debug is connected +++++++++
    Autobooting in 5 seconds...
    Type <stop> to stop
    booting from nor, will use filesystem from NOR...
    ## Booting kernel from Legacy Image at 08a00000 ...
       Image Name:   Linux-3.12.10-ti2013.12.01
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    5109772 Bytes = 4.9 MiB
       Load Address: 80008000
       Entry Point:  80008000
    ## Flattened Device Tree blob at 08ee7000
       Booting using the fdt blob at 0x8ee7000
       Loading Kernel Image ... OK
       Loading Device Tree to 8fba4000, end 8fbaf6d3 ... OK

    Starting kernel ...

    Booting Linux on physical CPU 0x0
    BSP3.9
    Linux version 3.12.10-ti2013.12.01 (masta@PC160) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #4 PRE4
    CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
    CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    Machine: Generic AM33XX (Flattened Device Tree), model: DVP1 DRA608 J5 Echo
    cma: CMA: reserved 24 MiB at 8e000000
    Memory policy: ECC disabled, Data cache writeback
    CPU: All CPU(s) started in SVC mode.
    AM335X ES2.1 (sgx neon )
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 64512
    Kernel command line: console=ttyO3,115200n8 root=/dev/mtdblock7 ro rootfstype=ext2 lpj=2658304
    PID hash table entries: 1024 (order: 0, 4096 bytes)
    Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
    Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
    Memory: 227204K/260096K available (3810K kernel code, 334K rwdata, 640K rodata, 199K init, 325K bss, 32892K reserved)
    Virtual kernel memory layout:
        vector  : 0xffff0000 - 0xffff1000   (   4 kB)
        fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
        vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
        lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
        modules : 0xbf000000 - 0xc0000000   (  16 MB)
          .text : 0xc0008000 - 0xc0460cac   (4452 kB)
          .init : 0xc0461000 - 0xc0492d2c   ( 200 kB)
          .data : 0xc0494000 - 0xc04e7800   ( 334 kB)
           .bss : 0xc04e780c - 0xc0538e50   ( 326 kB)
    SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    Preemptible hierarchical RCU implementation.
    NR_IRQS:16 nr_irqs:16 16
    IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    Total of 128 interrupts on 1 active controller
    omap_dt_clocks_register: failed to lookup clock node gpio3_dbclk
    OMAP clockevent source: timer3 at 24000000 Hz
    sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
    OMAP clocksource: timer1 at 24000000 Hz
    Calibrating delay loop (skipped) preset value.. 531.66 BogoMIPS (lpj=2658304)
    pid_max: default: 32768 minimum: 301
    Mount-cache hash table entries: 512
    CPU: Testing write buffer coherency: ok
    Setting up static identity map for 0xc0398c48 - 0xc0398ca0
    devtmpfs: initialized
    VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    omap_hwmod: debugss: _wait_target_disable failed
    pinctrl core: initialized pinctrl subsystem
    regulator-dummy: no parameters
    NET: Registered protocol family 16
    DMA: preallocated 256 KiB pool for atomic coherent allocations
    OMAP GPIO hardware version 0.1
    platform 481ae000.gpio: Cannot lookup hwmod 'gpio4'
    ERROR: could not get clock /ocp/gpio@481ae000:dbclk(1)
    omap_gpio 481ae000.gpio: Could not get gpio dbck
    omap-gpmc 50000000.gpmc: could not find pctldev for node /pinmux@44e10800/pinmux_norflash_pins, deferring probe
    platform 50000000.gpmc: Driver omap-gpmc requests probe deferral
    DSS not supported on this SoC
    hw-breakpoint: debug architecture 0x4 unsupported.
    bio: create slab <bio-0> at 0
    edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
    vdd_mpu: 1260 mV
    vdd_core: 1100 mV
    dvp1_3v3_sw: 3300 mV
    SCSI subsystem initialized
    usbcore: registered new interface driver usbfs
    usbcore: registered new interface driver hub
    usbcore: registered new device driver usb
    omap_i2c 44e0b000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c0_pins, deferring probe
    platform 44e0b000.i2c: Driver omap_i2c requests probe deferral
    omap_i2c 4819c000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c2_pins, deferring probe
    platform 4819c000.i2c: Driver omap_i2c requests probe deferral
    pps_core: LinuxPPS API ver. 1 registered
    pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    PTP clock support registered
    Advanced Linux Sound Architecture Driver Initialized.
    Switched to clocksource timer1
    NET: Registered protocol family 2
    TCP established hash table entries: 2048 (order: 2, 16384 bytes)
    TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
    TCP: Hash tables configured (established 2048 bind 2048)
    TCP: reno registered
    UDP hash table entries: 256 (order: 0, 4096 bytes)
    UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    NET: Registered protocol family 1
    RPC: Registered named UNIX socket transport module.
    RPC: Registered udp transport module.
    RPC: Registered tcp transport module.
    RPC: Registered tcp NFSv4.1 backchannel transport module.
    PM: Loading am335x-pm-firmware.bin
    NFS: Registering the id_resolver key type
    Key type id_resolver registered
    Key type id_legacy registered
    NTFS driver 2.1.30 [Flags: R/O].
    fuse init (API version 7.22)
    msgmni has been set to 491
    io scheduler noop registered
    io scheduler deadline registered
    io scheduler cfq registered (default)
    pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 89, base_baud = 3000000) is a OMAP UART1
    48024000.serial: ttyO2 at MMIO 0x48024000 (irq = 90, base_baud = 3000000) is a OMAP UART2
    481a6000.serial: ttyO3 at MMIO 0x481a6000 (irq = 60, base_baud = 3000000) is a OMAP UART3
    console [ttyO3] enabled
    481aa000.serial: ttyO5 at MMIO 0x481aa000 (irq = 62, base_baud = 3000000) is a OMAP UART5
    omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    brd: module loaded
    loop: module loaded
    edma-dma-engine edma-dma-engine.0: allocated channel for 0:17
    edma-dma-engine edma-dma-engine.0: allocated channel for 0:16
    usbcore: registered new interface driver asix
    usbcore: registered new interface driver cdc_ether
    usbcore: registered new interface driver r815x
    usbcore: registered new interface driver net1080
    usbcore: registered new interface driver cdc_subset
    usbcore: registered new interface driver zaurus
    usbcore: registered new interface driver cdc_ncm
    ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    ehci-omap: OMAP-EHCI Host Controller driver
    musb-hdrc musb-hdrc.0.auto: Enabled SW babble control
    musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
    musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus number 1
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 1 port detected
    matrix-keypad matrix_keypad.3: OF: linux,keymap property not defined in /ocp/matrix_keypad@0
    matrix-keypad matrix_keypad.3: failed to build keymap
    matrix-keypad: probe of matrix_keypad.3 failed with error -2
    i2c /dev entries driver
    Driver for 1-wire Dallas network protocol.
    omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    edma-dma-engine edma-dma-engine.0: allocated channel for 0:13
    edma-dma-engine edma-dma-engine.0: allocated channel for 0:12
    edma-dma-engine edma-dma-engine.0: allocated channel for 0:36
    omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    edma-dma-engine edma-dma-engine.0: allocated channel for 0:5
    edma-dma-engine edma-dma-engine.0: allocated channel for 0:6
    hidraw: raw HID events driver (C) Jiri Kosina
    usbcore: registered new interface driver snd-usb-audio
    davinci-vp1-mcasp hero.9:  vp1-mcasp.0 <-> 48038000.mcasp mapping ok
    TCP: cubic registered
    NET: Registered protocol family 17
    Key type dns_resolver registered
    omap-gpmc 50000000.gpmc: GPMC revision 6.0
    gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    amd,s29gl256s: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000001 Chip ID 0x002201
    Amd/Fujitsu Extended Query Table at 0x0040
      Amd/Fujitsu Extended Query version 1.5.
      Advanced Sector Protection (PPB Locking) supported
    number of CFI chips: 1
    10 ofpart partitions found on MTD device amd,s29gl256s
    Creating 10 MTD partitions on "amd,s29gl256s":
    0x000000000000-0x000000080000 : "uboot"
    0x000000080000-0x0000000a0000 : "1st-copy-uboot-env"
    0x0000000a0000-0x0000000c0000 : "2nd-copy-uboot-env"
    0x0000000c0000-0x0000004a0000 : "fbl-kernel"
    0x0000004a0000-0x0000004c0000 : "fbl-variables"
    0x0000004c0000-0x000000a00000 : "fbl-filesystem"
    0x000000a00000-0x000000f00000 : "kernel+dtb"
    0x000000f00000-0x000001d80000 : "rootfs"
    0x000001d80000-0x000001f80000 : "startup"
    0x000001f80000-0x000002000000 : "CAN"
    omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 50 kHz
    omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
    ALSA device list:
      #0: davinci-vp1
    VFS: Mounted root (ext2 filesystem) readonly on device 31:7.
    devtmpfs: mounted
    Freeing unused kernel memory: 196K (c0461000 - c0492000)
    INIT: usb 1-1: new high-speed USB device number 2 using musb-hdrc
    version 2.88 booting
    mmc0: BKOPS_EN bit is not set
    mmc0: new high speed MMC card at address 0001
    mmcblk0: mmc0:0001 MMC04G 3.66 GiB
    mmcblk0boot0: mmc0:0001 MMC04G partition 1 1.00 MiB
    mmcblk0boot1: mmc0:0001 MMC04G partition 2 1.00 MiB
     mmcblk0: p1 p2 p3 p4 < p5 p6 p7 >
     mmcblk0boot1: unknown partition table
     mmcblk0boot0: unknown partition table
    EXT2-fs (mmcblk0p1): warning: mounting unchecked fs, running e2fsck is recommended
    EXT2-fs (mmcblk0p2): warning: mounting unchecked fs, running e2fsck is recommended
    EXT2-fs (mmcblk0p3): warning: mounting unchecked fs, running e2fsck is recommended
    kjournald starting.  Commit interval 5 seconds
    EXT3-fs (mmcblk0p6): using internal journal
    EXT3-fs (mmcblk0p6): mounted filesystem with ordered data mode
    kjournald starting.  Commit interval 5 seconds
    EXT3-fs (mmcblk0p7): using internal journal
    EXT3-fs (mmcblk0p7): mounted filesystem with ordered data mode
    kjournald starting.  Commit interval 5 seconds
    EXT3-fs (mmcblk0p5): using internal journal
    EXT3-fs (mmcblk0p5): mounted filesystem with ordered data mode
    Initializing USB Mass Storage driver...
    usb-storage 1-1:1.0: USB Mass Storage device detected
    scsi0 : usb-storage 1-1:1.0
    usbcore: registered new interface driver usb-storage
    USB Mass Storage support registered.
    Starting Bootlog daemon: bootlogd.
    INIT: Entering runlevel: 5
    Starting Dropbear SSH server: dropbear.
    Starting telnet daemon.
    Stopping Bootlog daemon: bootlogd.
    scsi 0:0:0:0: Direct-Access     SanDisk  Cruzer Blade     2.01 PQ: 0 ANSI: 6
    sd 0:0:0:0: [sda] 7821312 512-byte logical blocks: (4.00 GB/3.72 GiB)
    sd 0:0:0:0: [sda] Write Protect is off
    sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
     sda: sda1
    sd 0:0:0:0: [sda] Attached SCSI disk

    login:


     

    Regards,

    Gangadhar

  • Hi Gangadhar,

    EXT3-fs (mmcblk0p5): mounted filesystem with ordered data mode
    Initializing USB Mass Storage driver...
    usbcore: registered new interface driver usb-storage
    USB Mass Storage support registered.
    Starting Bootlog daemon: bootlogd.

    Initializing USB Mass Storage driver...
    usb-storage 1-1:1.0: USB Mass Storage device detected
    scsi0 : usb-storage 1-1:1.0
    usbcore: registered new interface driver usb-storage
    USB Mass Storage support registered.
    Starting Bootlog daemon: bootlogd.

    Are you using "USB mass storage" driver as module ?

  • Hi Titu,

    Yes, I'm using USB mass storage driver has module. This problem was there with static linking as well.

    Regards,

    Gangadhar

  • Hi Gangadhar,

    From filesystem,

    Try to avoid running "udev" or "mdev" and check whether are you getting the same behavior.

    Like pendrive is not at all detecting if I didn't insert while booting.

    It means udev/mdev is not working.