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.

Booting problem In AM335x EVM using SDKv7.00 using SD card.

Other Parts Discussed in Thread: TPS65910

Hello friends,

      I am new for this platform. Working from last 2 weeks on this but fail to boot the board.

      I am using base board version 1.2A and sdkv7.00.

      Booting my board using SD Card. Using "create_sdcard.sh" script I prepared SD card.

      Coping all images from ti-sdk/board_support/Prebuild-images/ which are given by TI only.

     

below output I am getting.

U-Boot SPL 2013.10-g78d8ebd (Mar 30 2014 - 20:46:34)
reading args
spl: error reading image args, err - -1
reading u-boot.img
reading u-boot.img


U-Boot 2013.10-g78d8ebd (Mar 30 2014 - 20:46:34)

I2C:   ready
DRAM:  512 MiB
NAND:  256 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Net:   <ethaddr> not set. Validating first E-fuse MAC
cpsw, usb_ether
Hit any key to stop autoboot:  0
mmc0 is current device
Scanning mmc 0...
4117616 bytes read in 314 ms (12.5 MiB/s)
41564 bytes read in 59 ms (687.5 KiB/s)
mmc0 is current device
SD/MMC found on device 0
reading uEnv.txt
** Unable to read file uEnv.txt **
4117616 bytes read in 313 ms (12.5 MiB/s)
41564 bytes read in 59 ms (687.5 KiB/s)
Kernel image @ 0x80200000 [ 0x000000 - 0x3ed470 ]
## Flattened Device Tree blob at 80f80000
   Booting using the fdt blob at 0x80f80000
   Loading Device Tree to 9f31f000, end 9f32c25b ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 3.12.10-ti2013.12.01 (jenkins@sdit-build02) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.
7-2013.03-20130313 - Linaro GCC 2013.03) ) #1 Sun Mar 30 20:55:31 CDT 2014
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: Generic AM33XX (Flattened Device Tree), model: TI AM335x EVM
[    0.000000] cma: CMA: reserved 24 MiB at 9d800000
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] AM335X ES1.0 (sgx neon )
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 129280
[    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 483332K/521216K available (5555K kernel code, 559K rwdata, 1876K rodata, 345K init, 225K bss, 37884K reserved, 0K highmem
)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc074a04c   (7433 kB)
[    0.000000]       .init : 0xc074b000 - 0xc07a15f0   ( 346 kB)
[    0.000000]       .data : 0xc07a2000 - 0xc082ddd8   ( 560 kB)
[    0.000000]        .bss : 0xc082ddd8 - 0xc0866400   ( 226 kB)
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[    0.000000] Total of 128 interrupts on 1 active controller
[    0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[    0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[    0.000000] OMAP clocksource: timer1 at 24000000 Hz
[    0.000000] Console: colour dummy device 80x30
[    0.000319] Calibrating delay loop... 479.23 BogoMIPS (lpj=2396160)
[    0.119719] pid_max: default: 32768 minimum: 301
[    0.119826] Security Framework initialized
[    0.119879] Mount-cache hash table entries: 512
[    0.129089] CPU: Testing write buffer coherency: ok
[    0.129508] Setting up static identity map for 0xc0572e68 - 0xc0572ed8
[    0.130488] devtmpfs: initialized
[    0.132225] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    0.194642] omap_hwmod: debugss: _wait_target_disable failed
[    0.195382] pinctrl core: initialized pinctrl subsystem
[    0.196263] regulator-dummy: no parameters
[    0.198749] NET: Registered protocol family 16
[    0.201162] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.203852] cpuidle: using governor ladder
[    0.203870] cpuidle: using governor menu
[    0.212654] platform mpu.1: FIXME: clock-name 'fck' DOES NOT exist in dt!
[    0.213766] platform 49000000.edma: FIXME: clock-name 'fck' DOES NOT exist in dt!
[    0.215038] OMAP GPIO hardware version 0.1
[    0.224558] omap-gpmc 50000000.gpmc: could not find pctldev for node /pinmux@44e10800/nandflash_pins_default, deferring probe
[    0.224589] platform 50000000.gpmc: Driver omap-gpmc requests probe deferral
[    0.224978] platform 56000000.sgx: FIXME: clock-name 'fck' DOES NOT exist in dt!
[    0.229022] DSS not supported on this SoC
[    0.229040] No ATAGs?
[    0.229051] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.253427] bio: create slab <bio-0> at 0
[    0.268325] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
[    0.269227] vbat: 5000 mV
[    0.269634] lis3_reg: no parameters
[    0.270155] wlan-en-regulator: 1800 mV
[    0.273433] vgaarb: loaded
[    0.274743] SCSI subsystem initialized
[    0.276119] usbcore: registered new interface driver usbfs
[    0.276303] usbcore: registered new interface driver hub
[    0.276516] usbcore: registered new device driver usb
[    0.277506] omap_i2c 44e0b000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c0_pins, deferring probe
[    0.277535] platform 44e0b000.i2c: Driver omap_i2c requests probe deferral
[    0.277562] omap_i2c 4802a000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c1_pins, deferring probe
[    0.277578] platform 4802a000.i2c: Driver omap_i2c requests probe deferral
[    0.277824] media: Linux media interface: v0.10
[    0.278005] Linux video capture interface: v2.00
[    0.278277] pps_core: LinuxPPS API ver. 1 registered
[    0.278288] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.278418] PTP clock support registered
[    0.281088] Switched to clocksource timer1
[    0.300012] NET: Registered protocol family 2
[    0.300681] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    0.300774] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.300826] TCP: Hash tables configured (established 4096 bind 4096)
[    0.300904] TCP: reno registered
[    0.300919] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.300940] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.301226] NET: Registered protocol family 1
[    0.301634] RPC: Registered named UNIX socket transport module.
[    0.301647] RPC: Registered udp transport module.
[    0.301653] RPC: Registered tcp transport module.
[    0.301660] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.302630] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.303315] PM: Loading am335x-pm-firmware.bin
[    0.459763] VFS: Disk quotas dquot_6.5.2
[    0.459838] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.460471] NFS: Registering the id_resolver key type
[    0.460562] Key type id_resolver registered
[    0.460572] Key type id_legacy registered
[    0.460620] jffs2: version 2.2. (NAND) (SUMMARY)  �© 2001-2006 Red Hat, Inc.
[    0.460800] msgmni has been set to 992
[    0.462505] NET: Registered protocol family 38
[    0.462549] io scheduler noop registered
[    0.462559] io scheduler deadline registered
[    0.462605] io scheduler cfq registered (default)
[    0.464823] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[    0.518660] Console: switching to colour frame buffer device 100x30
[    0.526185] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.529139] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 88, base_baud = 3000000) is a OMAP UART0
[    1.177124] console [ttyO0] enabled
[    1.181756] 48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 89, base_baud = 3000000) is a OMAP UART1
[    1.192956] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
[    1.210231] brd: module loaded
[    1.218815] loop: module loaded
[    1.222616] (stk) :sysfs entries created
[    1.226794] (stk) : debugfs entries created
[    1.235889] mtdoops: mtd device (mtddev=name/number) must be supplied
[    1.246975] usbcore: registered new interface driver asix
[    1.252950] usbcore: registered new interface driver ax88179_178a
[    1.259593] usbcore: registered new interface driver cdc_ether
[    1.265921] usbcore: registered new interface driver r815x
[    1.271929] usbcore: registered new interface driver smsc95xx
[    1.278185] usbcore: registered new interface driver net1080
[    1.284319] usbcore: registered new interface driver cdc_subset
[    1.290769] usbcore: registered new interface driver zaurus
[    1.296888] usbcore: registered new interface driver cdc_ncm
[    1.303441] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.310344] ehci-pci: EHCI PCI platform driver
[    1.315291] ehci-omap: OMAP-EHCI Host Controller driver
[    1.321832] usbcore: registered new interface driver cdc_wdm
[    1.328045] usbcore: registered new interface driver usb-storage
[    1.335542] mousedev: PS/2 mouse device common for all mice
[    1.342722] input: matrix_keypad.7 as /devices/matrix_keypad.7/input/input0
[    1.352230] input: ti-tsc as /devices/ocp.2/44e0d000.tscadc/TI-am335x-tsc/input/input1
[    1.362793] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
[    1.371205] i2c /dev entries driver
[    1.375522] Driver for 1-wire Dallas network protocol.
[    1.383322] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[    1.392653] edma-dma-engine edma-dma-engine.0: allocated channel for 0:25
[    1.399870] edma-dma-engine edma-dma-engine.0: allocated channel for 0:24
[    1.407234] omap_hsmmc 48060000.mmc: unable to get vmmc regulator -517
[    1.414190] edma-dma-engine edma-dma-engine.0: freeing channel for 24
[    1.421012] edma-dma-engine edma-dma-engine.0: freeing channel for 25
[    1.427961] platform 48060000.mmc: Driver omap_hsmmc requests probe deferral
[    1.435715] edma-dma-engine edma-dma-engine.0: allocated channel for 0:13
[    1.442938] edma-dma-engine edma-dma-engine.0: allocated channel for 0:12
[    1.523923] omap_hwmod: gpio1: _wait_target_disable failed
[    1.552114] ledtrig-cpu: registered to indicate activity on CPUs
[    1.561980] edma-dma-engine edma-dma-engine.0: allocated channel for 0:36
[    1.569277] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
[    1.575393] mmc0: card claims to support voltages below the defined range. These will be ignored.
[    1.586155] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
[    1.592388] edma-dma-engine edma-dma-engine.0: allocated channel for 0:5
[    1.599520] edma-dma-engine edma-dma-engine.0: allocated channel for 0:6
[    1.608204] usbcore: registered new interface driver usbhid
[    1.614139] usbhid: USB HID core driver
[    1.620800] oprofile: no performance counters
[    1.625945] oprofile: using timer interrupt.
[    1.630856] TCP: cubic registered
[    1.634402] Initializing XFRM netlink socket
[    1.638943] NET: Registered protocol family 17
[    1.643729] NET: Registered protocol family 15
[    1.648496] 8021q: 802.1Q VLAN Support v1.8
[    1.653072] Key type dns_resolver registered
[    1.658306] cpu cpu0: cpu0 regulator not ready, retry
[    1.663812] platform cpufreq-cpu0.0: Driver cpufreq-cpu0 requests probe deferral
[    1.672767] ThumbEE CPU extension supported.
[    1.679581] omap-gpmc 50000000.gpmc: GPMC revision 6.0
[    1.685087] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
[    1.691717] mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
[    1.698699] ONFI param page 0 valid
[    1.702444] ONFI flash detected
[    1.705772] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron MT29F2G08ABAEAWP), 256MiB, page size: 2048, OOB size: 64
[    1.717841] omap2-nand: detected x8 NAND flash
[    1.722549] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
[    1.728197] omap2-nand: using custom ecc layout
[    1.733259] 10 ofpart partitions found on MTD device omap2-nand.0
[    1.739703] Creating 10 MTD partitions on "omap2-nand.0":
[    1.745454] 0x000000000000-0x000000020000 : "NAND.SPL"
[    1.752795] 0x000000020000-0x000000040000 : "NAND.SPL.backup1"
[    1.759927] mmc0: new SDIO card at address 0001
[    1.767391] 0x000000040000-0x000000060000 : "NAND.SPL.backup2"
[    1.775466] 0x000000060000-0x000000080000 : "NAND.SPL.backup3"
[    1.783150] 0x000000080000-0x0000000c0000 : "NAND.u-boot-spl-os"
[    1.791079] 0x0000000c0000-0x0000001c0000 : "NAND.u-boot"
[    1.798928] 0x0000001c0000-0x0000001e0000 : "NAND.u-boot-env"
[    1.806388] 0x0000001e0000-0x000000200000 : "NAND.u-boot-env.backup1"
[    1.814627] 0x000000200000-0x000000a00000 : "NAND.kernel"
[    1.828275] 0x000000a00000-0x000010000000 : "NAND.file-system"
[    2.041662] tps65910 0-002d: No interrupt support, no core IRQ
[    2.049945] vrtc: 1800 mV
[    2.053134] vrtc: supplied by vbat
[    2.058005] vio: at 1800 mV
[    2.061166] vio: supplied by vbat
[    2.066056] vdd_mpu: 912 <--> 1375 mV at 1137 mV
[    2.071120] vdd_mpu: supplied by vbat
[    2.076340] vdd_core: 912 <--> 1150 mV at 1137 mV
[    2.081494] vdd_core: supplied by vbat
[    2.086601] vdd3: 5000 mV
[    2.090602] vdig1: at 1800 mV
[    2.093917] vdig1: supplied by vbat
[    2.098776] vdig2: at 1800 mV
[    2.102091] vdig2: supplied by vbat
[    2.106915] vpll: at 1800 mV
[    2.110114] vpll: supplied by vbat
[    2.114977] vdac: at 1800 mV
[    2.118183] vdac: supplied by vbat
[    2.122978] vaux1: at 1800 mV
[    2.126278] vaux1: supplied by vbat
[    2.131145] vaux2: at 3300 mV
[    2.134437] vaux2: supplied by vbat
[    2.139285] vaux33: at 3300 mV
[    2.142697] vaux33: supplied by vbat
[    2.147670] vmmc: 1800 <--> 3300 mV at 3300 mV
[    2.152550] vmmc: supplied by vbat
[    2.156998] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    2.166007] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz
[    2.172950] edma-dma-engine edma-dma-engine.0: allocated channel for 0:25
[    2.180164] edma-dma-engine edma-dma-engine.0: allocated channel for 0:24
[    2.281137] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[    2.287596] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
[    2.294861] libphy: 4a101000.mdio: probed
[    2.299113] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver Atheros 8031 ethernet
[    2.309671] Detected MACID = 00:18:31:e0:8d:4a
[    2.316926] input: volume_keys.8 as /devices/volume_keys.8/input/input2
[    2.324847] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[    2.337766] Waiting for root device /dev/mmcblk0p2...
[   60.321532] PM: request_firmware failed

   Please guide me to resolve this issue.

   by default zImage is there in prebuild-image folder.

 regards

 Vishal

  • Hi Vishal,

    The system can't find your SD card's root partition.

    Please post the sd card creation log. It should be run with sudo from inside the <sdk>/bin/ folder.

    Do you use the filesystem that comes with SDK 07.00.00.00? The zImage should be located on the /root partition inside /boot folder.

    Best regards,
    Miroslav

  • Hi Miroslav,

          SD Card creation log means ?? I didn’t get what exactly . I run "create_sdcard.sh" script.

          ti-sdk/bin sudo ./create-sdcard.sh 

          Yes, I am using same filesystem which I got with SDKv7. zImage is in /rootfs/boot .

           inside rootfs/boot  other .dtb files are also present. eg :devicetree-zImage-    .dtb and am335x-evm.dtb etc

     

          Regards

          Vishal

  • Vishal 118 said:
    SD Card creation log means ?? I didn’t get what exactly .

    I meant the log messages in your Terminal during the execution of the create-sdcard.sh script.

    Best regards,
    Miroslav

  • Hi,

       I am getting similar logs while running "create-sdcard.sh" which are mention in wiki Page.

        please find the log below-

      [sudo] password for vishal:


    ################################################################################

    This script will create a bootable SD card from custom or pre-built binaries.

    The script must be run with root permissions and from the bin directory of
    the SDK

    Example:
     $ sudo ./create-sdcard.sh

    Formatting can be skipped if the SD card is already formatted and
    partitioned properly.

    ################################################################################


    Availible Drives to write images to:

    #  major   minor    size   name
    1:   8       32    1955840 sdc
     
    Enter Device Number or n to exit: 1
     
    sdc was selected

    /dev/sdc is an sdx device
    Unmounting the sdc drives
     unmounted /dev/sdc1
     unmounted /dev/sdc2
    Current size of sdc1 72261 bytes
    Current size of sdc2 1871572 bytes

    ################################################################################

       Detected device has 2 partitions already

       Re-partitioning will allow the choice of 2 or 3 partitions

    ################################################################################

    Would you like to re-partition the drive anyways [y/n] : y

     
    Now partitioning sdc ...


    ################################################################################

        Select 2 partitions if only need boot and rootfs (most users)
        Select 3 partitions if need SDK & CCS on SD card.  This is usually used
            by device manufacturers with access to partition tarballs.

        ****WARNING**** continuing will erase all data on sdc

    ################################################################################

    Number of partitions needed [2/3] : 2

     
    Now partitioning sdc with 2 partitions...
     

    ################################################################################

            Now making 2 partitions

    ################################################################################

    1024+0 records in
    1024+0 records out
    1048576 bytes (1.0 MB) copied, 0.427558 s, 2.5 MB/s
    Disk /dev/sdc doesn't contain a valid partition table
    DISK SIZE - 2002780160 bytes
    Checking that no-one is using this disk right now ...
    OK

    Disk /dev/sdc: 243 cylinders, 255 heads, 63 sectors/track

    sfdisk: ERROR: sector 0 does not have an msdos signature
     /dev/sdc: unrecognized partition table type
    Old situation:
    No partitions found
    New situation:
    Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

       Device Boot Start     End   #cyls    #blocks   Id  System
    /dev/sdc1   *      0+      8       9-     72261    c  W95 FAT32 (LBA)
    /dev/sdc2         10     242     233    1871572+  83  Linux
    /dev/sdc3          0       -       0          0    0  Empty
    /dev/sdc4          0       -       0          0    0  Empty
    Successfully wrote the new partition table

    Re-reading the partition table ...

    If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
    to zero the first 512 bytes:  dd if=/dev/zero of=/dev/foo7 bs=512 count=1
    (See fdisk(8).)

    ################################################################################

            Partitioning Boot

    ################################################################################
    mkfs.vfat 3.0.12 (29 Oct 2011)

    ################################################################################

            Partitioning rootfs

    ################################################################################
    mke2fs 1.42 (29-Nov-2011)
    Filesystem label=rootfs
    OS type: Linux
    Block size=4096 (log=2)
    Fragment size=4096 (log=2)
    Stride=0 blocks, Stripe width=0 blocks
    117120 inodes, 467893 blocks
    23394 blocks (5.00%) reserved for the super user
    First data block=0
    Maximum filesystem blocks=482344960
    15 block groups
    32768 blocks per group, 32768 fragments per group
    7808 inodes per group
    Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912

    Allocating group tables: done                            
    Writing inode tables: done                            
    Creating journal (8192 blocks): done
    Writing superblocks and filesystem accounting information: done



    ################################################################################

       Partitioning is now done
       Continue to install filesystem or select 'n' to safe exit

       **Warning** Continuing will erase files any files in the partitions

    ################################################################################


    Would you like to continue? [y/n] : y

     
     
    Mount the partitions
     
    Emptying partitions
     

    Syncing....

    ################################################################################

        Choose file path to install from

        1 ) Install pre-built images from SDK
        2 ) Enter in custom boot and rootfs file paths

    ################################################################################

    Choose now [1/2] : 1

     
    Will now install from SDK pre-built images
    now installing:  ti-sdk-am335x-evm-07.00.00.00
    ################################################################################

        Copying files now... will take minutes

    ################################################################################

    Copying boot partition

    MLO copied


    u-boot.img copied


    Copying rootfs System partition
    Written 100%  

    Syncing...
     
    Un-mount the partitions
     
    Remove created temp directories
     
    Operation Finished


    Regards

    Vishal

  • Vishal,

    Everything seems correct during the SD card creation. Can you try a different SD card and see if the system will detect and mount the root partition?

    Best regards,
    Miroslav

  • Hello Miroslav,

        I try with 3 SD cards. With 2 different SDK versions SDKv7, SDKv5.3 (this I get with EVM-KIT ).

        Every time with every combination of SD card and SDK  booting process get stuck at same point.

        Regards

        Vishal Rana

  • hi Miroslav,

         While running "setup.sh" script in starting we get some messages.

    ////////  part of setup.sh script log /////////////////////////////////////////////////////////////////////////////

    This step will set up the SDK to install binaries in to:
        /home/vishal/ti-sdk-am335x-evm-07.00.00.00/targetNFS/home/root/am335x-evm

    The files will be available from /home/root/am335x-evm on the target.

    This setting can be changed later by editing Rules.make and changing the
    EXEC_DIR or DESTDIR variable (depending on your SDK).
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    In above message " EXEC_DIR or DESTDIR variable " when we have to change these variables??

    Presently I am not making changes. Why changes are required??

    Regards

    Vishal

  • Vishal,

    You don't need to modify any variables in order to boot our EVMs with the pre-built binaries that come with our SDK.

    I reproduced your issue with the following steps:

    1) Boot from SD card.

    2) After kernel is loaded and starts booting remove the SD card.

    3) The system is stuck on the following boot message: "Waiting for root device /dev/mmcblk0p2..."

    4) If I reinsert the SD card, the system continues to boot.

    This leads me to believe that you may have a hardware issue, e.g. a bad contact. Try to remove and insert the SD card when your system is stuck to see if it will be detected.

    Best regards,
    Miroslav

  • Hi Miroslav,

        Thanks for helping me.

         Please check this link

         http://processors.wiki.ti.com/index.php/Sitara_Linux_SDK_Release_Notes.

          Supported Devices

    • AM335x EVM PG 2.1
    • AM335x EVM-SK PG 2.1
    • BeagleBone and Beaglebone Black

           I am using AM335x EVM PG 1.2A with SDKv7.

           But also trying with SDKv5.3. Not working with any one.

         I will check Hardware.

      Thanks

      Vishal Rana

     

  • Hello Guys,

    I'm having the exact same problem - where the boot process stops after "Waiting for root device /dev/mmcblk0p2...". I'm thinking this is more to do with software than hardware. 

    Do you guys have any thoughts on this one? I've attached my log file for reference.

    Thanks a lot for your help.

    Regards

    Santhosh

    =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2014.06.11 14:37:56 =~=~=~=~=~=~=~=~=~=~=~=
    
    
    U-Boot SPL 2013.10-00189-g78d8ebd-dirty (Jun 11 2014 - 12:06:04)
    *** SR: I2C initialization is complete ***
    *** SR: get_dpll_ddr_params is complete ***
    *** SR: Setup MMC0 pin mux ***
    *** SR: Setup NAND pin mux ***
    *** SR: Setup MII1 (ethernet) pin mux ***
    *** SR: set_mux_conf_regs is complete ***
    *** AA: DDR Frequency is 166 Mhz ***
    
    *** SR: Entering am33xx_spl_board_init ***
    *** SR: DCDC1 - 1.8V ***
    *** SR: DCDC2 - 3.3V ***
    *** SR: DCDC3 - 1.1V ***
    *** SR: LDO1  - 1.8V ***
    *** SR: LDO2  - 3.3V ***
    *** AA: Operating Performance Point is OPP100  ***
    *** AA: MPU Frequency is 300 Mhz ***
    *** SR: am33xx_spl_board_init is complete ***
    reading u-boot.img
    reading u-boot.img
    
    
    U-Boot 2013.10-00189-g78d8ebd-dirty (Jun 11 2014 - 12:06:04)
    
    I2C:   ready
    DRAM:  128 MiB
    NAND:  256 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    *** Warning - bad CRC, using default environment
    
    Net:   <ethaddr> not set. Validating first E-fuse MAC
    
    *** SR: board_eth_init is complete ***
    cpsw
    Hit any key to stop autoboot:  3  2  1  0 
    mmc0 is current device
    Scanning mmc 0...
    
    Running Script boot...
    3512936 bytes read in 354 ms (9.5 MiB/s)
    FDT Filename aa-hcc.dtb
    37189 bytes read in 23 ms (1.5 MiB/s)
    mmc0 is current device
    
    Starting mmc boot ...
    SD/MMC found on device 0
    reading uEnv.txt
    ** Unable to read file uEnv.txt **
    3512936 bytes read in 353 ms (9.5 MiB/s)
    37189 bytes read in 23 ms (1.5 MiB/s)
    Kernel image @ 0x80200000 [ 0x000000 - 0x359a68 ]
    ## Flattened Device Tree blob at 80f80000
       Booting using the fdt blob at 0x80f80000
       Loading Device Tree to 87b2e000, end 87b3a144 ... OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 3.12.10-ti2013.12.01 (sramani@sr) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #2 Wed Jun 11 12:15:34 CDT 2014
    [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] Machine: Generic AM33XX (Flattened Device Tree), model: AA Home Comfort Control
    [    0.000000] cma: CMA: reserved 24 MiB at 86000000
    [    0.000000] Memory policy: ECC disabled, Data cache writeback
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM335X ES2.1 (neon )
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 31744
    [    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait
    [    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
    [    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
    [    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.000000] Memory: 94900K/128000K available (4715K kernel code, 418K rwdata, 1556K rodata, 269K init, 201K bss, 33100K reserved, 0K highmem)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    [    0.000000]     vmalloc : 0xc8800000 - 0xff000000   ( 872 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc0628004   (6273 kB)
    [    0.000000]       .init : 0xc0629000 - 0xc066c464   ( 270 kB)
    [    0.000000]       .data : 0xc066e000 - 0xc06d6958   ( 419 kB)
    [    0.000000]        .bss : 0xc06d6958 - 0xc0708e80   ( 202 kB)
    [    0.000000] NR_IRQS:16 nr_irqs:16 16
    [    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [    0.000000] Total of 128 interrupts on 1 active controller
    [    0.000000] OMAP clockevent source: timer2 at 25000000 Hz
    [    0.000000] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 171798ms
    [    0.000000] OMAP clocksource: timer1 at 25000000 Hz
    [    0.000000] Console: colour dummy device 80x30
    [    0.000639] Calibrating delay loop... 199.06 BogoMIPS (lpj=995328)
    [    0.069364] pid_max: default: 32768 minimum: 301
    [    0.069562] Security Framework initialized
    [    0.069737] Mount-cache hash table entries: 512
    [    0.088380] CPU: Testing write buffer coherency: ok
    [    0.089102] Setting up static identity map for 0xc04a10a8 - 0xc04a1118
    [    0.096320] devtmpfs: initialized
    [    0.100391] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.174613] omap_hwmod: debugss: _wait_target_disable failed
    [    0.175987] pinctrl core: initialized pinctrl subsystem
    [    0.177861] regulator-dummy: no parameters
    [    0.182508] NET: Registered protocol family 16
    [    0.187424] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.192613] cpuidle: using governor ladder
    [    0.192647] cpuidle: using governor menu
    [    0.213342] platform mpu.1: FIXME: clock-name 'fck' DOES NOT exist in dt!
    [    0.215911] platform 49000000.edma: FIXME: clock-name 'fck' DOES NOT exist in dt!
    [    0.218701] OMAP GPIO hardware version 0.1
    [    0.240635] omap-gpmc 50000000.gpmc: could not find pctldev for node /pinmux@44e10800/nandflash_pins_default, deferring probe
    [    0.240695] platform 50000000.gpmc: Driver omap-gpmc requests probe deferral
    [    0.241657] platform 56000000.sgx: FIXME: clock-name 'fck' DOES NOT exist in dt!
    [    0.246839] DSS not supported on this SoC
    [    0.246875] No ATAGs?
    [    0.246899] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.297220] bio: create slab <bio-0> at 0
    [    0.333474] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
    [    0.335368] vmmcsd_fixed: 3300 mV 
    [    0.341281] SCSI subsystem initialized
    [    0.343154] usbcore: registered new interface driver usbfs
    [    0.343601] usbcore: registered new interface driver hub
    [    0.344080] usbcore: registered new device driver usb
    [    0.346111] omap_i2c 44e0b000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c0_pins, deferring probe
    [    0.346171] platform 44e0b000.i2c: Driver omap_i2c requests probe deferral
    [    0.346233] omap_i2c 4819c000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c2_pins, deferring probe
    [    0.346270] platform 4819c000.i2c: Driver omap_i2c requests probe deferral
    [    0.347082] pps_core: LinuxPPS API ver. 1 registered
    [    0.347107] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.347423] PTP clock support registered
    [    0.352494] Switched to clocksource timer1
    [    0.398980] NET: Registered protocol family 2
    [    0.400388] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
    [    0.400471] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.400520] TCP: Hash tables configured (established 1024 bind 1024)
    [    0.400687] TCP: reno registered
    [    0.400722] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.400769] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.401212] NET: Registered protocol family 1
    [    0.401970] RPC: Registered named UNIX socket transport module.
    [    0.401998] RPC: Registered udp transport module.
    [    0.402014] RPC: Registered tcp transport module.
    [    0.402030] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.403907] NetWinder Floating Point Emulator V0.97 (double precision)
    [    0.405192] PM: Loading am335x-pm-firmware.bin
    [    0.710453] VFS: Disk quotas dquot_6.5.2
    [    0.710593] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.711792] NFS: Registering the id_resolver key type
    [    0.711944] Key type id_resolver registered
    [    0.711965] Key type id_legacy registered
    [    0.712089] msgmni has been set to 233
    [    0.715828] NET: Registered protocol family 38
    [    0.715914] io scheduler noop registered
    [    0.715935] io scheduler deadline registered
    [    0.715981] io scheduler cfq registered (default)
    [    0.719980] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [    0.793190] Console: switching to colour frame buffer device 100x30
    [    0.808951] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 88, base_baud = 3000000) is a OMAP UART0
    [    1.426416] console [ttyO0] enabled
    [    1.431995] 48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 89, base_baud = 3000000) is a OMAP UART1
    [    1.444922] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [    1.476875] brd: module loaded
    [    1.493229] loop: module loaded
    [    1.504041] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    1.516086] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [    1.523237] ehci-omap: OMAP-EHCI Host Controller driver
    [    1.529818] usbcore: registered new interface driver usb-storage
    [    1.539286] mousedev: PS/2 mouse device common for all mice
    [    1.547366] input: ti-tsc as /devices/ocp.2/44e0d000.tscadc/TI-am335x-tsc/input/input0
    [    1.558996] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
    [    1.566781] 44e3e000.rtc: already running
    [    1.572028] i2c /dev entries driver
    [    1.579335] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    1.590221] edma-dma-engine edma-dma-engine.0: allocated channel for 0:25
    [    1.597852] edma-dma-engine edma-dma-engine.0: allocated channel for 0:24
    [    1.644923] edma-dma-engine edma-dma-engine.0: allocated channel for 0:36
    [    1.652289] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [    1.661175] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [    1.667570] edma-dma-engine edma-dma-engine.0: allocated channel for 0:5
    [    1.674783] edma-dma-engine edma-dma-engine.0: allocated channel for 0:6
    [    1.684925] usbcore: registered new interface driver usbhid
    [    1.690859] usbhid: USB HID core driver
    [    1.699121] oprofile: no performance counters
    [    1.704785] oprofile: using timer interrupt.
    [    1.709985] TCP: cubic registered
    [    1.713592] Initializing XFRM netlink socket
    [    1.718276] NET: Registered protocol family 17
    [    1.723143] NET: Registered protocol family 15
    [    1.727973] 8021q: 802.1Q VLAN Support v1.8
    [    1.732613] Key type dns_resolver registered
    [    1.738336] cpu cpu0: cpu0 regulator not ready, retry
    [    1.744083] platform cpufreq-cpu0.0: Driver cpufreq-cpu0 requests probe deferral
    [    1.753122] ThumbEE CPU extension supported.
    [    1.761809] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [    1.767435] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    [    1.775914] ONFI param page 0 valid
    [    1.779647] ONFI flash detected
    [    1.783113] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron MT29F2G08ABAEAH4), 256MiB, page size: 2048, OOB size: 64
    [    1.795265] omap2-nand: detected x8 NAND flash
    [    1.799999] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
    [    1.805724] omap2-nand: using custom ecc layout
    [    1.810931] 10 ofpart partitions found on MTD device omap2-nand.0
    [    1.817468] Creating 10 MTD partitions on "omap2-nand.0":
    [    1.823272] 0x000000000000-0x000000020000 : "NAND.SPL"
    [    1.832611] 0x000000020000-0x000000040000 : "NAND.SPL.backup1"
    [    1.842298] 0x000000040000-0x000000060000 : "NAND.SPL.backup2"
    [    1.851719] 0x000000060000-0x000000080000 : "NAND.SPL.backup3"
    [    1.861238] 0x000000080000-0x0000000c0000 : "NAND.u-boot-spl-os"
    [    1.871036] 0x0000000c0000-0x0000001c0000 : "NAND.u-boot"
    [    1.880794] 0x0000001c0000-0x0000001e0000 : "NAND.u-boot-env"
    [    1.890302] 0x0000001e0000-0x000000200000 : "NAND.u-boot-env.backup1"
    [    1.900626] 0x000000200000-0x000000a00000 : "NAND.kernel"
    [    1.916673] 0x000000a00000-0x000010000000 : "NAND.file-system"
    [    2.146128] vdds_ddr: 1800 mV 
    [    2.152364] vdd_peripheral: 3300 mV 
    [    2.159184] vdd_mpu: 1100 mV 
    [    2.164575] LDO1: 1800 mV 
    [    2.169669] LDO2: 3300 mV 
    [    2.173700] LDO3: at 1800 mV 
    [    2.177942] LDO4: at 2800 mV 
    [    2.182336] tps65217 0-0024: TPS65217 ID 0x7 version 1.2
    [    2.188109] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [    2.198257] sht21 2-0040: initialized
    [    2.203356] rtc-pcf8563 2-0051: chip found, driver version 0.4.3
    [    3.202533] omap_i2c 4819c000.i2c: controller timed out
    [    3.208116] rtc-pcf8563 2-0051: pcf8563_get_datetime: read error
    [    3.215359] rtc-pcf8563 2-0051: rtc core: registered rtc-pcf8563 as rtc1
    [    3.222715] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 400 kHz
    [    3.292581] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
    [    3.299095] davinci_mdio 4a101000.mdio: detected phy mask fffffffd
    [    3.306903] libphy: 4a101000.mdio: probed
    [    3.311194] davinci_mdio 4a101000.mdio: phy[1]: device 4a101000.mdio:01, driver unknown
    [    3.321142] Detected MACID = 1c:ba:8c:c4:b6:78
    [    3.329038] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 01:18:23 UTC (946689503)
    [    3.345491] Waiting for root device /dev/mmcblk0p2...
    [   60.483364] PM: request_firmware failed
    

  • Hello Everyone,

    I would like to add that when I use the Linux Kernel 3.2 (SDK 06) it seems to work fine.

    Thank you

    Regards

    Santhosh

  • Hello Guys,

    As indicated in several other posts on the e2e forum - the problem was with the Card detect pin. The pin has to be low for Linux to detect card present.

    The card detect on my hardware had an issue, solved that and now the kernel seems to come up fine. I would like to add a note here....

    Kernel 3.2 seems to work fine even with the card detect issue (that is why I didn't face this issue till now).

    Thanks once again.

    Regards

    Santhosh

  • Hi Santhosh,

      At which file I have to make changes, In SDKv7 board.c file is not present they are using dtb files.

      How to make Card detect pin LOW and at which file??

     

     Regards,

     Vishal

  • Hello Vishal,


    May be my explanation was not clear - but this is a hardware problem. The signal goes low when the sd card is inserted. The only thing needed in the dts file is to set the correct GPIO as the card detect signal.

    - Santhosh

  • Hello Santhosh,

       I am not able to resolve this problem till. I tried with SDKv6 and v7 both.

       In dts file

    mmc1_pins_default: pinmux_mmc1_pins {
                pinctrl-single,pins = <
                    0x0F0 (PIN_INPUT_PULLUP | MUX_MODE0)    /* mmc0_dat3.mmc0_dat3 */
                    0x0F4 (PIN_INPUT_PULLUP | MUX_MODE0)    /* mmc0_dat2.mmc0_dat2 */
                    0x0F8 (PIN_INPUT_PULLUP | MUX_MODE0)    /* mmc0_dat1.mmc0_dat1 */
                    0x0FC (PIN_INPUT_PULLUP | MUX_MODE0)    /* mmc0_dat0.mmc0_dat0 */
                    0x100 (PIN_INPUT_PULLUP | MUX_MODE0)    /* mmc0_clk.mmc0_clk */
                    0x104 (PIN_INPUT_PULLUP | MUX_MODE0)    /* mmc0_cmd.mmc0_cmd */
                    0x1A0 (PIN_INPUT_PULLUP | MUX_MODE7)    /* mcasp0_aclkr.gpio3_18 */
                    0x160 (PIN_INPUT | MUX_MODE7)        /* spi0_cs1.gpio0_6 */
                >;
            };

       last pin is used for card detection. and it is neither pullup or pulldown.

       Should I change it ??

      I am looking for solution from long back but not able to resolve it. Please help me.

      Regards,

      Vishal.

     

  • Hi,

       I Set  card detect pin 0x160 (PIN_INPUT_PULLUP | MUX_MODE7)        /* spi0_cs1.gpio0_6 */

      as PULLUP in dts file but I dont know how to build it to new dtb file.


       PLz share information about building dts file. I fand doing write changes.


      Regards

      Vishal Rana

  • make dtbs from the top level Linux directory.

    Steve K.

  • Hi steve,

    Thanks for your reply but I am new on this, So can you please explain it little more.

    Regards,

    Vishal

  • Vishal, please check this wiki page regarding compiling device tree binaries: http://processors.wiki.ti.com/index.php/Linux_Kernel_Users_Guide#Compiling_the_Device_Tree_Binaries

    Best regards,
    Miroslav

  • Thanks Miroslav,

    Really you are active and problem solver for me.

    Thanks a lot.

  • Hi Miroslav,

      I build SDKv7 kernel I got zImage of it.

      when I am trying to build dts file using

     make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- am335x-evm.dtb

     I am getting warnings Mark with red colour.


    ///////////////  Part of Terminal log///////////////////////////////////////////////////////////////////////////

    SHIPPED arch/arm/boot/compressed/ashldi3.S
      AS      arch/arm/boot/compressed/ashldi3.o
      LD      arch/arm/boot/compressed/vmlinux
      OBJCOPY arch/arm/boot/zImage
      Kernel: arch/arm/boot/zImage is ready
    vishal@PUNHDCDTLIN:~/ti-sdk-am335x-evm-07/board-support/linux-3.12.10-ti2013.12.01$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- am335x-evm.dtb
    make[2]: Warning: File `/home/vishal/ti-sdk-am335x-evm-07/linux-devkit/sysroots/i686-arago-linux/usr/bin/../lib/gcc/arm-linux-gnueabihf/4.7.3/include/stdarg.h' has modification time 2.1e+02 s in the future
      CC      scripts/mod/devicetable-offsets.s
      GEN     scripts/mod/devicetable-offsets.h
      HOSTCC  scripts/mod/file2alias.o
      HOSTLD  scripts/mod/modpost
    make[2]: warning:  Clock skew detected.  Your build may be incomplete.
    make[1]: Warning: File `arch/arm/boot/dts/am335x-evm.dts' has modification time 1.2e+04 s in the future
      DTC     arch/arm/boot/dts/am335x-evm.dtb
    make[1]: warning:  Clock skew detected.  Your build may be incomplete.
    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    why this is happening Please suggest how to remove warnings.

    Regards,

    Vishal

  • For some reason, these files have modification times later than the system time. Have you changed your time/date lately?

    A possible solution is to clean your whole kernel and rebuild it again.

    Another solution is to use the "touch" command on these files, which will update their modification times to the current system time.

    Best regards,
    Miroslav

  • Hello Friends,

        I am also able to resolve this problem. It was totally hardware problem.

        SD card detect pin is not getting shorted  with GND i.e Body of SD card cover So push that make short it with

        SD card cover.  

         Regards.

         Vishal Rana