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.

Disable reading uEnv.txt in U-boot

Other Parts Discussed in Thread: TPS65217

Dear Ti E2E community,

I need to disable reading from uEnv.txt how this can be disabled in uboot configuration file, please let me know

As this is required for boot time optimization

Kindly do the needful as early as possible

Many Thanks in advance

  • Hi,

    I will forward this to the SW team.
  • Hello Srini,

    If you unset the bootenv from the U-Boot stage

    U-Boot# setenv bootenv
    U-Boot# saveenv

    loading the uEnv.txt will be skipped.

    More boot time optimization techniques can be found on this page.
    processors.wiki.ti.com/.../Boot_Time_Optimization

    Best regards,
    Kemal

  • Dear Kemal,

    Many Thanks a lot that worked, but am seeing the below message ** Unable to read file uImage **, could you please let me know why this message is seen & how this can be avoided??

    U-Boot SPL 2014.07 (Aug 25 2015 - 12:06:13)

    reading u-boot.img

    reading u-boot.img

    U-Boot 2014.07 (Aug 25 2015 - 12:06:13)

    I2C:   ready

    DRAM:  256 MiB

    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1

    Net:   TUNSTALLL NatSemi DP83848 dp83848_config NatSemi DP83848 uid:20005C90

    cpsw, usb_ether

    Hit any key to stop autoboot:  0

    Card did not respond to voltage select!

    Card did not respond to voltage select!

    checking for valid boot partition .....

    system boots with normal boot partition 3 ....

    Saving Environment to MMC...

    Writing to redundant MMC(1)... done

    Saving Environment to MMC...

    Writing to MMC(1)... done

    switch to partitions #0, OK

    mmc1(part 0) is current device

    SD/MMC found on device 1

    reading uImage

    ** Unable to read file uImage **

    3365816 bytes read in 385 ms (8.3 MiB/s)

    36794 bytes read in 46 ms (780.3 KiB/s)

    ## Booting kernel from Legacy Image at 82000000 ...

      Image Name:   Linux-3.14.26

      Created:      2015-08-26   7:16:22 UTC

      Image Type:   ARM Linux Kernel Image (uncompressed)

      Data Size:    3365752 Bytes = 3.2 MiB

      Load Address: 80008000

      Entry Point:  80008000

      Verifying Checksum ... OK

    ## Flattened Device Tree blob at 88000000

      Booting using the fdt blob at 0x88000000

      Loading Kernel Image ... OK

      Loading Device Tree to 8ef23000, end 8ef2efb9 ... OK

    Starting kernel ...

    [    0.000000] Booting Linux on physical CPU 0x0

    [    0.000000] Linux version 3.14.26 (srinivasan@tata-HP-Elite-7100-Microtower-PC) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #2 Wed Aug 26 12:46:13 IST 2015

    [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d

    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache

    [    0.000000] Machine model: Tunstall Lifeline

    [    0.000000] cma: CMA: reserved 24 MiB at 8d000000

    [    0.000000] Memory policy: Data cache writeback

    [    0.000000] CPU: All CPU(s) started in SVC mode.

    [    0.000000] AM335X ES2.1 (neon )

    [    0.000000] Kernel command line: console=ttyO1,115200n8 root=/dev/mmcblk0p3 rw rootfstype=ext4 rootwait

    [    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)

    [    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)

    [    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)

    [    0.000000] Virtual kernel memory layout:

    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)

    [    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)

    [    0.000000]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)

    [    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)

    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)

    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)

    [    0.000000]       .text : 0xc0008000 - 0xc05f8f84   (6084 kB)

    [    0.000000]       .init : 0xc05f9000 - 0xc0630824   ( 223 kB)

    [    0.000000]       .data : 0xc0632000 - 0xc0672b60   ( 259 kB)

    [    0.000000]        .bss : 0xc0672b60 - 0xc06a7860   ( 212 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.000027] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956969942ns

    [    0.000069] OMAP clocksource: timer1 at 24000000 Hz

    [    0.000589] Console: colour dummy device 80x30

    [    0.000647] Calibrating delay loop... 298.59 BogoMIPS (lpj=1492992)

    [    0.068442] pid_max: default: 32768 minimum: 301

    [    0.068658] Security Framework initialized

    [    0.068816] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)

    [    0.068844] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)

    [    0.087630] CPU: Testing write buffer coherency: ok

    [    0.088255] Setting up static identity map for 0x80471ac8 - 0x80471b20

    [    0.093927] devtmpfs: initialized

    [    0.097792] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3

    [    0.116159] omap_hwmod: tptc0 using broken dt data from edma

    [    0.116368] omap_hwmod: tptc1 using broken dt data from edma

    [    0.116559] omap_hwmod: tptc2 using broken dt data from edma

    [    0.122676] omap_hwmod: debugss: _wait_target_disable failed

    [    0.185978] pinctrl core: initialized pinctrl subsystem

    [    0.188107] regulator-dummy: no parameters

    [    0.192653] NET: Registered protocol family 16

    [    0.197286] DMA: preallocated 256 KiB pool for atomic coherent allocations

    [    0.201352] cpuidle: using governor ladder

    [    0.201387] cpuidle: using governor menu

    [    0.217167] syscon 44e10000.control_module: regmap [mem 0x44e10000-0x44e107fb] registered

    [    0.220662] platform 49000000.edma: alias fck already exists

    [    0.220716] platform 49000000.edma: alias fck already exists

    [    0.220752] platform 49000000.edma: alias fck already exists

    [    0.223353] OMAP GPIO hardware version 0.1

    [    0.253922] omap_gpio gsm.5: could not find pctldev for node /pinmux@44e10800/gsm_default, deferring probe

    [    0.253987] platform gsm.5: Driver omap_gpio requests probe deferral

    [    0.254597] omap_gpio vampc.6: could not find pctldev for node /pinmux@44e10800/vampc_default, deferring probe

    [    0.254644] platform vampc.6: Driver omap_gpio requests probe deferral

    [    0.255259] omap_gpio audio.7: could not find pctldev for node /pinmux@44e10800/audio_default, deferring probe

    [    0.255305] platform audio.7: Driver omap_gpio requests probe deferral

    [    0.255908] omap_gpio power_enable.8: could not find pctldev for node /pinmux@44e10800/power_enable_default, deferring probe

    [    0.255955] platform power_enable.8: Driver omap_gpio requests probe deferral

    [    0.256554] omap_gpio smartrf.9: could not find pctldev for node /pinmux@44e10800/smartrf_default, deferring probe

    [    0.256599] platform smartrf.9: Driver omap_gpio requests probe deferral

    [    0.257187] omap_gpio output_relay.10: could not find pctldev for node /pinmux@44e10800/output_relay_default, deferring probe

    [    0.257233] platform output_relay.10: Driver omap_gpio requests probe deferral

    [    0.257815] omap_gpio battery.11: could not find pctldev for node /pinmux@44e10800/battery_default, deferring probe

    [    0.257861] platform battery.11: Driver omap_gpio requests probe deferral

    [    0.258446] omap_gpio monoirq.12: could not find pctldev for node /pinmux@44e10800/monoirq_default, deferring probe

    [    0.258543] platform monoirq.12: Driver omap_gpio requests probe deferral

    [    0.259157] omap_gpio USB0_ocN.13: could not find pctldev for node /pinmux@44e10800/usb00cn_default, deferring probe

    [    0.259203] platform USB0_ocN.13: Driver omap_gpio requests probe deferral

    [    0.260339] omap_gpio MII_Reset.15: could not find pctldev for node /pinmux@44e10800/mii_reset_default, deferring probe

    [    0.260386] platform MII_Reset.15: Driver omap_gpio requests probe deferral

    [    0.263604] No ATAGs?

    [    0.263642] hw-breakpoint: debug architecture 0x4 unsupported.

    [    0.310436] bio: create slab <bio-0> at 0

    [    0.346626] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver

    [    0.349022] vmmcsd_fixed: 3300 mV

    [    0.352892] SCSI subsystem initialized

    [    0.355157] usbcore: registered new interface driver usbfs

    [    0.355612] usbcore: registered new interface driver hub

    [    0.356110] usbcore: registered new device driver usb

    [    0.357956] omap_i2c 44e0b000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c0_pins, deferring probe

    [    0.358013] platform 44e0b000.i2c: Driver omap_i2c requests probe deferral

    [    0.359068] pps_core: LinuxPPS API ver. 1 registered

    [    0.359094] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>

    [    0.359417] PTP clock support registered

    [    0.364030] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400

    [    0.366471] Advanced Linux Sound Architecture Driver Initialized.

    [    0.368925] Switched to clocksource timer1

    [    0.416209] NET: Registered protocol family 2

    [    0.418160] TCP established hash table entries: 2048 (order: 1, 8192 bytes)

    [    0.418243] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)

    [    0.418313] TCP: Hash tables configured (established 2048 bind 2048)

    [    0.418450] TCP: reno registered

    [    0.418482] UDP hash table entries: 256 (order: 0, 4096 bytes)

    [    0.418540] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)

    [    0.419062] NET: Registered protocol family 1

    [    0.419797] RPC: Registered named UNIX socket transport module.

    [    0.419823] RPC: Registered udp transport module.

    [    0.419840] RPC: Registered tcp transport module.

    [    0.419856] RPC: Registered tcp NFSv4.1 backchannel transport module.

    [    0.421782] hw perfevents: enabled with ARMv7 Cortex-A8 PMU driver, 5 counters available

    [    0.427987] futex hash table entries: 256 (order: -1, 3072 bytes)

    [    0.743598] VFS: Disk quotas dquot_6.5.2

    [    0.744736] NFS: Registering the id_resolver key type

    [    0.744879] Key type id_resolver registered

    [    0.744900] Key type id_legacy registered

    [    0.745013] msgmni has been set to 491

    [    0.748388] NET: Registered protocol family 38

    [    0.748466] io scheduler noop registered

    [    0.748487] io scheduler deadline registered

    [    0.748532] io scheduler cfq registered (default)

    [    0.752481] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568

    [    0.760326] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled

    [    0.766996] omap_uart 44e09000.serial: no wakeirq for uart0

    [    0.767299] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 88, base_baud = 3000000) is a OMAP UART0

    [    0.768718] omap_uart 48022000.serial: no wakeirq for uart0

    [    0.769077] 48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 89, base_baud = 3000000) is a OMAP UART1

    [    1.548838] console [ttyO1] enabled

    [    1.553878] omap_uart 481a8000.serial: no wakeirq for uart0

    [    1.560160] 481a8000.serial: ttyO4 at MMIO 0x481a8000 (irq = 61, base_baud = 3000000) is a OMAP UART4

    [    1.571157] omap_uart 481aa000.serial: no wakeirq for uart0

    [    1.577264] 481aa000.serial: ttyO5 at MMIO 0x481aa000 (irq = 62, base_baud = 3000000) is a OMAP UART5

    [    1.590160] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20

    [    1.623868] brd: module loaded

    [    1.640562] loop: module loaded

    [    1.651633] PPP generic driver version 2.4.2

    [    1.657597] usbcore: registered new interface driver cdc_ether

    [    1.664223] usbcore: registered new interface driver cdc_eem

    [    1.670618] usbcore: registered new interface driver rndis_host

    [    1.677278] usbcore: registered new interface driver cdc_subset

    [    1.683984] usbcore: registered new interface driver cdc_ncm

    [    1.691064] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver

    [    1.697945] ehci-omap: OMAP-EHCI Host Controller driver

    [    1.704636] usbcore: registered new interface driver usb-storage

    [    1.713644] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0

    [    1.721271] 44e3e000.rtc: already running

    [    1.726102] i2c /dev entries driver

    [    1.733810] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec

    [    1.831584] ledtrig-cpu: registered to indicate activity on CPUs

    [    1.838506] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2

    [    1.850511] omap-sham 53100000.sham: hw accel on OMAP rev 4.3

    [    1.859160] platform 44d00000.wkup_m3: Driver wkup_m3 requests probe deferral

    [    1.881346] mmc1: BKOPS_EN bit is not set

    [    1.891069] davinci_evm sound.17: uda134x-hifi <-> 48038000.mcasp mapping ok

    [    1.902040] mmc1: new high speed MMC card at address 0001

    [    1.911099] mmcblk0: mmc1:0001 MMC02G 1.78 GiB

    [    1.917995] mmcblk0boot0: mmc1:0001 MMC02G partition 1 1.00 MiB

    [    1.924666] oprofile: using arm/armv7

    [    1.929271] TCP: cubic registered

    [    1.932760] Initializing XFRM netlink socket

    [    1.937268] NET: Registered protocol family 17

    [    1.942321] mmcblk0boot1: mmc1:0001 MMC02G partition 2 1.00 MiB

    [    1.950336] NET: Registered protocol family 15

    [    1.955604] Key type dns_resolver registered

    [    1.962141] cpu cpu0: of_pm_voltdm_notifier_register: Failed to get cpu0 regulator/voltdm: -517

    [    1.971392] cpu cpu0: cpu0 clock notifier not ready, retry

    [    1.977306]  mmcblk0: p1 p2 p3 p4 < p5 p6 p7 >

    [    1.985952] platform cpufreq-cpu0.0: Driver cpufreq-cpu0 requests probe deferral

    [    1.997486] PM: bootloader does not support rtc-only!

    [    2.004230] ThumbEE CPU extension supported.

    [    2.009000] Registering SWP/SWPB emulation handler

    [    2.014268]  mmcblk0boot1: unknown partition table

    [    2.022915] regulator-dummy: disabling

    [    2.028789] omap_gpio gsm.5: Invalid IRQ resource

    [    2.034030]  mmcblk0boot0: unknown partition table

    [    2.040436] omap_gpio vampc.6: Invalid IRQ resource

    [    2.046082] omap_gpio audio.7: Invalid IRQ resource

    [    2.053073] omap_gpio power_enable.8: Invalid IRQ resource

    [    2.059393] omap_gpio smartrf.9: Invalid IRQ resource

    [    2.065195] omap_gpio output_relay.10: Invalid IRQ resource

    [    2.071611] omap_gpio battery.11: Invalid IRQ resource

    [    2.077449] omap_gpio monoirq.12: Invalid IRQ resource

    [    2.083368] omap_gpio USB0_ocN.13: Invalid IRQ resource

    [    2.089341] omap_gpio MII_Reset.15: Invalid IRQ resource

    [    2.100780] DCDC1: at 1500 mV

    [    2.105884] vdd_mpu: 925 <--> 1375 mV at 1275 mV

    [    2.112685] vdd_core: 925 <--> 1150 mV at 1125 mV

    [    2.119571] LDO1: at 1800 mV

    [    2.124453] LDO2: at 3300 mV

    [    2.129385] LDO3: 1800 mV

    [    2.134043] LDO4: at 3300 mV

    [    2.138976] tps65217 0-0024: TPS65217 ID 0xe version 1.2

    [    2.146599] lm75 0-0048: hwmon0: sensor 'tcn75'

    [    2.152343] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz

    [    2.159131]  remoteproc0: wkup_m3 is available

    [    2.163810]  remoteproc0: Note: remoteproc is still under development and considered experimental.

    [    2.173238]  remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.

    [    2.184374]  remoteproc0: Direct firmware load failed with error -2

    [    2.190997]  remoteproc0: Falling back to user helper

    [    2.197104] cpu cpu0: of_pm_voltdm_notifier_register: Fail calculating voltage latency[950000<->950000]:-22

    [    2.269021] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6

    [    2.275447] davinci_mdio 4a101000.mdio: detected phy mask fffffffd

    [    2.283243] libphy: 4a101000.mdio: probed

    [    2.287485] davinci_mdio 4a101000.mdio: phy[1]: device 4a101000.mdio:01, driver DP83848 PHY

    [    2.297712] cpsw 4a100000.ethernet: Detected MACID = 68:c9:0b:6d:0d:bd

    [    2.307738] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 01:42:38 UTC (946690958)

    [    2.323784] ALSA device list:

    [    2.326933]   #0: TI UDA1345TS

    [    2.401655] EXT4-fs (mmcblk0p3): mounted filesystem without journal. Opts: (null)

    [    2.409804] VFS: Mounted root (ext4 filesystem) on device 179:3.

    [    2.421166] devtmpfs: mounted

    [    2.425078] Freeing unused kernel memory: 220K (c05f9000 - c0630000)

    INIT: version 2.88 booting

    Starting udev

    [    3.590933] udevd[701]: starting version 182

    [    4.583217]  remoteproc0: powering up wkup_m3

    [    4.600477] 47401300.usb-phy supply vcc not found, using dummy regulator

    [    4.660931]  remoteproc0: Booting fw image am335x-pm-firmware.elf, size 154420

    [    4.746316] 47401b00.usb-phy supply vcc not found, using dummy regulator

    [    4.782999] PM: CM3 Firmware Version = 0x190

    [    4.851884]  remoteproc0: remote processor wkup_m3 is now up

    [    4.915410] EXT4-fs (mmcblk0p3): re-mounted. Opts: (null)

    udevadm settle - timeout of 1 seconds reached, the event queue contains:

     /sys/devices/ocp.3/481d8000.mmc/mmc_host/mmc1/mmc1:0001/block/mmcblk0 (689)

     /sys/devices/ocp.3/481d8000.mmc/mmc_host/mmc1/mmc1:0001/block/mmcblk0/mmcblk0boot0 (690)

     /sys/devices/ocp.3/481d8000.mmc/mmc_host/mmc1/mmc1:0001/block/mmcblk0/mmcblk0boot1 (691)

     /sys/devices/ocp.3/481d8000.mmc/mmc_host/mmc1/mmc1:0001/block/mmcblk0/mmcblk0p1 (692)

     /sys/devices/ocp.3/481d8000.mmc/mmc_host/mmc1/mmc1:0001/block/mmcblk0/mmcblk0p2 (693)

     /sys/devices/ocp.3/481d8000.mmc/mmc_host/mmc1/mmc1:0001/block/mmcblk0/mmcblk0p3 (694)

     /sys/devices/ocp.3/481d8000.mmc/mmc_host/mmc1/mmc1:0001/block/mmcblk0/mmcblk0p4 (695)

     /sys/devices/ocp.3/481d8000.mmc/mmc_host/mmc1/mmc1:0001/block/mmcblk0/mmcblk0p5 (696)

     /sys/devices/ocp.3/481d8000.mmc/mmc_host/mmc1/mmc1:0001/block/mmcblk0/mmcblk0p6 (697)

     /sys/devices/ocp.3/481d8000.mmc/mmc_host/mmc1/mmc1:0001/block/mmcblk0/mmcblk0p7 (698)

     /sys/devices/ocp.3/4a100000.ethernet/4a101000.mdio (708)

     /sys/devices/ocp.3/4a100000.ethernet/4a101000.mdio/4a101000.mdio:01 (709)

     /sys/devices/ocp.3/4a100000.ethernet/4a101000.mdio/mdio_bus/4a101000.mdio (710)

     /sys/devices/ocp.3/4a100000.ethernet/net/eth0 (711)

     /sys/devices/platform/edma-dma-engine.0/dma/dma0chan0 (720)

     /sys/devices/platform/edma-dma-engine.0/dma/dma0chan1 (721)

     /sys/devices/platform/edma-dma-engine.0/dma/dma0chan10 (722)

     /sys/devices/platform/edma-dma-engine.0/dma/dma0chan11 (723)

     /sys/devices/platform/edma-dma-engine.0/dma/dma0chan12 (724)

     /sys/devices/platform/edma-dma-engine.0/dma/dma0chan13 (725)

     /sys/devices/platform/edma-dma-engine.0/dma/dma0chan14 (726)

     /sys/devices/platform/edma-dma-engine.0/dma/dma0chan15 (727)

     /sys/devices/platform/edma-dma-engine.0/dma/dma0chan16 (728)

     /sys/devices/platform/edma-dma-engine.0/dma/dma0chan17 (729)

     /sys/devices/platform/edma-dma-engine.0/dma/dma0chan18 (730)

     /sys/devices/platform/edma-dma-engine.0/dma/dma0chan19 (731)

     /sys/devices/platform/edma-dma-engine.0/dma/dma0chan2 (732)

     /sys/devices/platform/edma-dma-engine.0/dma/dma0chan20 (733)

     /sys/devices/platform/edma-dma-engine.0/dma/dma0chan21 (734)

     /sys/devices/platform/edma-dma-engine.0/dma/dma0chan22 (735)

     /sys/devices/platform/edma-dma-engine.0/dma/dma0chan23 (736)

     /sys/devices/platform/edma-dma-engine.0/dma/dma0chan24 (737)

     /sys/devices/platform/edma-dma-engine.0/dma/dma0chan25 (738)

     /sys/devices/platform/edma-dma-engine.0/dma/dma0chan26 (739)

     /sys/devices/platform/edma-dma-engine.0/dma/dma0chan27 (740)

     /sys/devices/platform/edma-dma-engine.0/dma/dma0chan28 (741)

     /sys/devices/platform/edma-dma-engine.0/dma/dma0chan29 (742)

     /sys/devices/platform/edma-dma-engine.0/dma/dma0chan3 (743)

     /sys/devices/platform/edma-dma-engine.0/dma/dma0chan30 (744)

     /sys/devices/platform/edma-dma-engine.0/dma/dma0chan31 (745)

     /sys/dev[    5.815142] random: nonblocking pool is initialized

    ices/platform/edma-dma-engine.0/dma/dma0chan32 (746)

     /sys/devices/platform/edma-dma-engine.0/dma/dma0chan33 (747)

     /sys/devices/platform/edma-dma-engine.0/dma/dma0chan34 (748)

     /sys/devices/platform/edma-dma-engine.0/dma/dma0chan35 (749)

     /sys/devices/platform/edma-dma-engine.0/dma/dma0chan36 (750)

     /sys/devices/platform/edma-dma-engine.0/dma/dma0chan37 (751)

     /sys/devices/platform/edma-dma-engine.0/dma/dma0chan38 (752)

    urandom start: failed.

    [    8.582797] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver

    [    8.711839] musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus number 1

    [    8.889506] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002

    [    8.896669] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1

    [    8.904310] usb usb1: Product: MUSB HDRC host driver

    [    8.909574] usb usb1: Manufacturer: Linux 3.14.26 musb-hcd

    [    8.915338] usb usb1: SerialNumber: musb-hdrc.0.auto

    [    9.211492] hub 1-0:1.0: USB hub found

    [    9.277025] hub 1-0:1.0: 1 port detected

    ALSA: Restoring mixer settings...

    INIT: Entering runlevel: 5

    Starting ifplugd service for dynamic IP assignment...

    [   13.851008] net eth0: initializing cpsw version 1.12 (0)

    [   13.989724] net eth0: phy found : id is : 0x20005c90

    [   14.009774] net eth0: PHY already attached

    [   14.014164] net eth0: phy 4a101000.mdio:01 not found on slave 1

    Starting system message bus: Failed to start message bus: Failed to read directory "/etc/dbus-1/system.d": No such file or directory

    dbus.

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

    Running ntpdate to fetch current date and time from NTP server

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

    Got NTP server, IP: 192.168.82.40

    1 Jan 01:42:51 ntpdate[1121]: no servers can be used, exiting

    1 Jan 01:42:51 ntpdate[1124]: no servers can be used, exiting

    1 Jan 01:42:51 ntpdate[1127]: no servers can be used, exiting

    Failed to set ntpdate after 3 re-tries!!!

    Starting syslogd/klogd: [   15.989782] libphy: 4a101000.mdio:01 - Link is Up - 100/Full

    done

    Starting thttpd.

    [   16.896787] EXT4-fs (mmcblk0p7): mounted filesystem without journal. Opts: (null)

    TUNSTALL INIT CONFIGURATIONS START

    GSM_reset

    PWM LED CONFIGURATION

    Vamp_C1 Configuration

    Vamp_C2 Configuration

    Stereo codec Configuration

    Audio amplifier Configuration

    Monocodec driver configuration

    BEGINNING OF MAX9860 MONO CODEC CONFIGURATION!!!

    Listing I2C devices to check MAX9860

        0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f

    00: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

    10: 10 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

    20: -- -- -- -- UU -- -- -- -- -- -- -- -- -- -- --

    30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

    40: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- --

    50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

    60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

    70: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

    MAX9860 Chip ID 0xFF-0x40

    0x40

    MIC NG/AGC CLIP DETECT 0x01-0x00

    0x00

    Initially Disable MAX9860 0x10-0x0A

    0x0a

    Enable MAX9860 0x10-0x8A

    0x8a

    System Clock 0x03-0x14

    0x24

    Stereo Audio CLK CNTL High 0x04-0x0F

    0x0f

    Stereo Audio CLK CNTL Low 0x05-0x20

    [   18.515772] EXT4-fs (mmcblk0p6): mounted filesystem without journal. Opts: (null)

    0x20

    Digital Audio Interface 0x06-0x80

    0x80

    Digital Audio Interface 0x07-0x09

    0x09

    Voice filter 0x08-0x00

    0x00

    DAC Attenuation 0x09-0x00

    0x00

    ADC O/P levels 0x0A-0x00

    0x4a

    DAC Gain 0x0B-0x60

    0x60

    MIC Gain 0x0C-0x45

    0x45

    MIC AGC 0x0E-0x00

    0x00

    Noise Gate 0x0F-0x00

    0x00

    Power Management 0x10-0x8A

    0x8a

    ENDING OF MAX9860 MONO AUDIO VOICE CODEC CONFIGURATION!!!!!

    ENABLED DC FILTER & PCM Playback De-emphasis IN ALSA AMIXER

    Simple mixer control 'DC Filter Enable',0

     Capabilities: pswitch pswitch-joined

     Playback channels: Mono

     Mono: Playback [on]

    Simple mixer control 'Master',0

     Capabilities: pvolume pvolume-joined

     Playback channels: Mono

     Limits: Playback 0 - 63

     Mono: Playback 63 [100%]

    TUNSTALL INIT CONFIGURATIONS END

    Stopping Bootlog daemon: bootlogd.

    [   21.667484] EXT4-fs (mmcblk0p2): mounted filesystem without journal. Opts: (null)

    [   22.002333] Number of LUNs=8

    [   22.005406] Mass Storage Function, version: 2009/09/11

    [   22.022581] LUN: removable file: (no medium)

    [   22.027197] Number of LUNs=2

    [   22.049592] LUN: file: /dev/mmcblk0p1

    [   22.053728] LUN: file: /dev/mmcblk0p3

    [   22.057572] Number of LUNs=2

    [   22.071615] g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11

    [   22.079043] g_mass_storage gadget: userspace failed to provide iSerialNumber

    [   22.086442] g_mass_storage gadget: g_mass_storage ready

    umount: can't forcibly umount /mnt/.psplash: Invalid argument

    [   22.358121] EXT4-fs (mmcblk0p5): mounted filesystem without journal. Opts: (null)

    lifeline login:

    Kindly do the needful

    Many Thanks in advance

  • Could you attach the feedback from the printenv command?

    U-Boot# printenv
  • Dear Kemal,

    Pls find the below:

    root@lifeline:/# fw_printenv
    arch=arm
    baudrate=115200
    board=tunstall
    board_name=A335BNLT
    board_rev=00A5
    boot_fdt=try
    bootargs=console=ttyO1,115200n8 ip=off lpj=3590144 root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait
    bootcmd=setenv mmcdev 0; run findfdt; run mmcboot;run checkvalidboot; saveenv; saveenv; setenv mmcdev 1; setenv bootpart 1:${validbootpart}; run mmcboot;
    bootcount=6
    bootdelay=0
    bootdir=/boot
    bootfile=uImage
    bootm_size=0x10000000
    bootpart=0:2
    bootstatus=2
    checkvalidboot=echo checking for valid boot partition .....; if test $bootstatus = 1; then setexpr validbootpart ${validbootpart} - 2; if test $validbootpart = 0; then setenv validbootpart 5; else if test $validbootpart = 1; then setenv validbootpart 2; fi; fi;echo system boots with recovery boot partition ${validbootpart} ....; else if test $bootstatus = 0; then setenv bootstatus 1; fi; echo system boots with normal boot partition ${validbootpart} ....; fi; setenv mmcroot /dev/mmcblk0p${validbootpart} rw;
    console=ttyO1,115200n8
    cpu=armv7
    eth1addr=68:c9:0b:6d:0d:bf
    ethact=cpsw
    ethaddr=68:c9:0b:6d:0d:bd
    fdt_addr_r=0x88000000
    fdtaddr=0x88000000
    fdtfile=tunstall-lifeline.dtb
    findfdt=if test $board_name = A335BNLT || test $board_name = tunstall; then setenv fdtfile tunstall-lifeline.dtb; fi; if test $fdtfile = undefined; then echo WARNING: Could not determine device tree to use; fi;
    importbootenv=echo Importing environment from mmc ...; env import -t -r $loadaddr $filesize
    ip_method=off
    kernel_addr_r=0x82000000
    loadaddr=0x82000000
    loadbootenv=load mmc ${mmcdev} ${loadaddr} ${bootenv}
    loadfdt=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}
    loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile}
    mmcargs=setenv bootargs console=${console} ${optargs} root=${mmcroot} rootfstype=${mmcrootfstype}
    mmcboot=mmc dev ${mmcdev}; if mmc rescan; then echo SD/MMC found on device ${mmcdev};if run loadbootenv; then echo Loaded environment from ${bootenv};run importbootenv;fi;if test -n $uenvcmd; then echo Running uenvcmd ...;run uenvcmd;fi;if run loadimage; then run mmcloados;fi;fi;
    mmcdev=0
    mmcloados=run mmcargs; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if run loadfdt; then if bootm ${loadaddr} - ${fdtaddr}; then echo booting...; else echo Falling back to Previous Version...; setenv bootstatus 1; saveenv; saveenv; reset; fi; else if test ${boot_fdt} = try; then bootm; else echo WARN: Cannot load the DT; fi; fi; else bootm; fi;
    mmcroot=/dev/mmcblk0p3 rw
    mmcrootfstype=ext4 rootwait
    netargs=setenv bootargs console=${console} ${optargs} root=/dev/nfs nfsroot=${serverip}:${rootpath},${nfsopts} rw ip=dhcp
    netboot=echo Booting from network ...; setenv autoload no; dhcp; run findfdt; tftp ${loadaddr} ${bootfile}; tftp ${fdtaddr} ${fdtfile}; run netargs; bootm ${loadaddr} - ${fdtaddr}
    nfsopts=nolock
    partitions=uuid_disk=${uuid_gpt_disk};name=rootfs,start=2MiB,size=-,uuid=${uuid_gpt_rootfs}
    ramdisk_addr_r=0x88080000
    ramrootfstype=ext2
    rdaddr=0x88080000
    rootpath=/tools/rootfs
    soc=am33xx
    usbnet_devaddr=68:c9:0b:6d:0d:bf
    validbootpart=3
    vendor=ti
    ver=U-Boot 2014.07 (Aug 25 2015 - 12:06:13)
    root@lifeline:/#
  • Change the mmcboot:
    from
    mmcboot=mmc dev ${mmcdev}; if mmc rescan; then echo SD/MMC found on device ${mmcdev};if run loadbootenv; then echo Loaded environment from ${bootenv};run importbootenv;fi;if test -n $uenvcmd; then echo Running uenvcmd ...;run uenvcmd;fi;if run loadimage; then run mmcloados;fi;fi;
    to
    mmcboot=run mmcloados;

    U-Boot# setenv mmcboot run mmcloados
    U-Boot# saveenv

    Keep in mind loading the environment variables from uEnv.txt on this device will no longer work.

  • Dear Kemal,

    One more input from you how can I alone set only lpj using setenv

    Ie., I tried setting using the command

    setenv optargs lpj 3590144

    But the above command is not working, could you please let me know how can I alone set only lpj using setenv

    And also how can I fix only kloadaddr using setenv?

    Kindly do the needful

    Many thanks in advance

  • Since the lpj is a part of the bootargs. You must change the bootargs parameters.

    U-Boot# setenv bootargs console=ttyO1,115200n8 ip=off lpj=3590144 root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait
    U-Boot# saveenv

    In same way you can fix the kloadaddr

    U-Boot# setenv kloadaddr address
    U-Boot# saveenv
  • Dear Kemal,

    Thanks a lot for your inputs, could you please help me out with few more queries

    1. In the kloadaddr should we mention the numerical value of the address or only  the word "address" is sufficient??

    2. In Disabling the console output using "quiet" ie., if I use the below command, am unable to see the messages related to console 

    setenv optargs quiet

    But could you please let me know if I want to renable the console messages & if I want to disable the quiet, how this can be done, am asking this because today it got saved to EMMC by default (as usually I would set using fwsetenv in rootfs prompt, once after kernel & rootfs is up) & when I wanted console messages, I was unable to get it

    3. Does the bootargs quiet & CONFIG_SILENT_CONSOLE 1 or setenv silent 1 are same??

    4. I similar fashion, could you please let me know how to disable SPL & u-boot related console messages & how can I renable if it is required for time being using setenv

    5. One of the links I found that remove -g option is also one of optimization techniques, but am unable to find & remove the "-DDEBUG" and/or "-DBGFLAGS" (-g) in config.mk file of u-boot or kernel (as am using ti sdk 8)

    6. And one more input, how can I avoid saving all these bootargs to EMMC for  time being, because finally once everything is fine tuned & verified this can be saved to EMMC once for all, Is stopping in uboot & loading the images via NFS might be the only option to avoid saving to EMMC for ??

    Kindly do the needful as early as possible

    Many Thanks in advance

  • Dear Kemal,

    Could you please provide any inputs w.r.t the above query

    Thanks in advance

  • Srini said:
    1. In the kloadaddr should we mention the numerical value of the address or only  the word "address" is sufficient??

    U-Boot# setenv kloadaddr 0x82000000
    U-Boot# saveenv
    Srini said:

    2. In Disabling the console output using "quiet" ie., if I use the below command, am unable to see the messages related to console 

    setenv optargs quiet

    But could you please let me know if I want to renable the console messages & if I want to disable the quiet, how this can be done, am asking this because today it got saved to EMMC by default (as usually I would set using fwsetenv in rootfs prompt, once after kernel & rootfs is up) & when I wanted console messages, I was unable to get it

    If you want to get the messages back do not pass the quiet option to the kernel's command line. You should be able to stop the boot up in U-Boot stage by holding Ctrl+C in order to enter the new settings.
    Srini said:
    3. Does the bootargs quiet & CONFIG_SILENT_CONSOLE 1 or setenv silent 1 are same??
    bootargs quiet will make the kernel boot up messages silent, setenv silent 1 will suppress the U-Boot and kernel messages but you have to define CONFIG_SILENT_CONSOLE in your U-Boot source before the compilation in order to silent environment variable can get used. Please see the doc/README.silent file for more information.
    Srini said:
    4. I similar fashion, could you please let me know how to disable SPL & u-boot related console messages & how can I renable if it is required for time being using setenv
    Define the CONFIG_SILENT_CONSOLE in your U-Boot source then enable and disable it by assigning the 0 or 1 to silent environment variable. If you are concern by the first SPL version and leading reading u-boot.img messages you can suppress them by commenting out the
    puts("\nU-Boot SPL " PLAIN_VERSION " (" U_BOOT_DATE " - " \
                U_BOOT_TIME ")\n");
    in common/spl/spl.c
    and
        printf("reading %s\n", filename);
    in fs/fat/fat.c
    Srini said:
    5. One of the links I found that remove -g option is also one of optimization techniques, but am unable to find & remove the "-DDEBUG" and/or "-DBGFLAGS" (-g) in config.mk file of u-boot or kernel (as am using ti sdk 8)
    For U-Boot open the main Makefile and comment out these two lines:
    #KBUILD_CFLAGS    += -g
    #KBUILD_AFLAGS    += -g
    For kernel if the Kernel hacking ---> Kernel debugging is not enabled in your kernel menuconfig these flags will not be included automatically.
    Srini said:
    6. And one more input, how can I avoid saving all these bootargs to EMMC for  time being, because finally once everything is fine tuned & verified this can be saved to EMMC once for all, Is stopping in uboot & loading the images via NFS might be the only option to avoid saving to EMMC for ??
    You can modify or add your tuned environment variables to CONFIG_EXTRA_ENV_SETTINGS within the include/configs/am335x_evm.h and embed them to the u-boot.img, in this way you will not need to save them anywhere.
  • Dear Kemal,

    Many Thanks a lot for your detailed description, that really helped me lot

    Two more inputs w.r.t boot time optimization,

    1. Is ti possible for me to skip u-boot stage & load kernel ,
    could you please provide me with detailed steps how this can be accomplished

    2. Regarding the deffered Initialization, will the below command 

    echo 1 >/proc/deferred_initcalls will revoke the loading of modules dynamically (similar to insmod or modprobe)

    Is my understanding is correct??


    Many Many Thanks a lot for your support & would appreciate the same

  • Sri S said:
    1. Is ti possible for me to skip u-boot stage & load kernel ,
    could you please provide me with detailed steps how this can be accomplished

    The detailed steps are here ti-sdk-am335x-evm-08.00.00.00/board-support/u-boot-2014.07-g7e537bf/board/ti/am335x/README and here ti-sdk-am335x-evm-08.00.00.00/board-support/u-boot-2014.07-g7e537bf/doc/README.falcon

    Sri S said:

    2. Regarding the deffered Initialization, will the below command
    echo 1 >/proc/deferred_initcalls will revoke the loading of modules dynamically (similar to insmod or modprobe)
    Is my understanding is correct??

    The deferred_initcalls will defer the init calls within the statically linked kernel modules. It is not designed to invoke module loading like insmod and modprobe.

  • Dear Kemal,

    Sorry for very late pings, am able to progress a lot with the help of your support

    I would really appreciate your prompt responses w.r.t all the queries in this thread

    Could you please provide any inputs w.r.t the below query,

    1. Since because of getting the root login prompt is consuming boot time 15sec more as shown in the log attached above, I want to disable the root login in arago-base-tisdk-image-am335x-evm file system, I tried commenting sulogin in etc/inittab, but still am getting the prompt

    Anyways I need finally a prompt , is there any chance I can disable this login & make use of bin/sh, so that this time can be reduced to a great extent, if this possible could you please let me know the necessary changes that needs to be done in etc/inittab, so that I can get the shell using bin/sh in argo-base rootfs

    2. Am facing the below error , Hope w.r.t the eMMC, could you please let me know your suggestions/inputs w.r.t the below error, ie., am I missing or doing anything anything wrong to get the below error

    EXT4-fs error (device mmcblk0p3): ext4_mb_generate_buddy:756: group 4, block bitmap and bg descriptor inconsistent: 7912 vs 7889 free clusters

    3. As am not using the psplash , could you please let me know how the below error can resolved, I have already renamed rc5.d folder to _rc5.d & running only the required service in background in rcS.d & i moved S00_psplash to the other in rcS.d

    nt: can't forcibly umount /mnt/.psplash: Invalid argument

    4. Could you please let me know, is there any chances that I can disable even INIT related boot messages onto the console, as I have already disable u-boot & kernel messages using SILENT_CONSOLE & QUIET & just get the shell prompt using bin/sh in arago-base rootfs

    Kindly do the needful as early as possible

    Many Thanks a lot once again, as because of your prompt support was able to progress so far.


    logs:

    ===

    srinivasan@srinivasan-Latitude-3440:~$ sudo cat /dev/ttyUSB0 | tstamp
    column1 is elapsed time since first message
    column2 is elapsed time since previous message
    column3 is the message
    0.000 0.000: 0.004 0.004: U-Boot SPL 2014.07 (Sep 15 2015 - 17:16:32)
    4.563 4.560: [ 0.279916] cpu cpu0: cpu0 clock notifier not ready, retry
    4.907 0.343: [ 0.614211] EXT4-fs error (device mmcblk0p3): ext4_mb_generate_buddy:756: group 23, block bitmap and bg descriptor inconsistent: 3670 vs 3669 free clusters
    INIT: version 2.88 booting
    5.454 0.511: Starting ifplugd service for dynamic IP assignment...
    5.525 0.071: Starting udev
    5.618 0.093: [ 1.335990] net eth0: PHY already attached
    5.624 0.006: [ 1.340316] net eth0: phy 4a101000.mdio:01 not found on slave 1
    5.777 0.153: Starting system message bus: Failed to start message bus: Failed to read directory "/etc/dbus-1/system.d": No such file or directory
    5.778 0.001: dbus.
    5.958 0.180: #################################################################
    5.964 0.006: Running ntpdate to fetch current date and time from NTP server
    5.970 0.006: ##################################################################
    5.973 0.003: TUNSTALL INIT CONFIGURATIONS START
    5.974 0.001: GSM_PWR_ON_3V3
    6.012 0.038: Got NTP server, IP: 192.168.82.40
    6.021 0.009: GSM_reset
    6.073 0.052: Launching Tunstall Application ....
    6.078 0.005: Starting syslogd/klogd: ALSA: Restoring mixer settings...
    6.082 0.003: PWM LED CONFIGURATION
    6.082 0.001: Vamp_C1 Configuration
    6.116 0.034: Vamp_C2 Configuration
    6.127 0.011: /opt/tunstall/scripts/startup.sh: line 69: ./lifeline_viip_app: No such file or directory
    6.148 0.022: Stereo codec Configuration
    6.165 0.016: Audio amplifier Configuration
    6.191 0.026: Monocodec driver configuration
    6.276 0.085: Programming MAX9860 Registers
    6.329 0.053: 1 Jan 00:00:03 ntpdate[647]: no servers can be used, exiting
    6.375 0.046: done
    6.483 0.109: 1 Jan 00:00:03 ntpdate[667]: no servers can be used, exiting
    6.589 0.105: 1 Jan 00:00:03 ntpdate[673]: no servers can be used, exiting
    6.594 0.005: Failed to set ntpdate after 3 re-tries!!!
    6.804 0.210: Simple mixer control 'DC Filter Enable',0
    6.807 0.004: Capabilities: pswitch pswitch-joined
    6.809 0.002: Playback channels: Mono
    6.811 0.002: Mono: Playback [on]
    6.953 0.142: Simple mixer control 'Master',0
    6.957 0.004: Capabilities: pvolume pvolume-joined
    6.959 0.002: Playback channels: Mono
    6.961 0.002: Limits: Playback 0 - 63
    6.964 0.003: Mono: Playback 63 [100%]
    6.967 0.003: TUNSTALL INIT CONFIGURATIONS END
    7.028 0.061: urandom start: failed.
    14.592 7.564: Sat Jan 1 00:08:00 UTC 2000
    INIT: Entering runlevel: 5
    15.331 0.587: umount: can't forcibly umount /mnt/.psplash: Invalid argument
    15.529 0.198:
    36.572 21.044: lifeline login: [ 32.281680] EXT4-fs error (device mmcblk0p3): ext4_mb_generate_buddy:756: group 4, block bitmap and bg descriptor inconsistent: 7912 vs 7889 free clusters
    ^Csrinivasan@srinivasan-Latitude-3440:~$
  • Hello Srini,

    Is the U-Boot Falcon Mode implemented in this device and the kernel is started by passing the boot parameters from persistent area by SPL?

    Best regards,
    Kemal
  • Dear Kemal,

    As I didn't find time to go through Falcon mode & I haven't tried Could you please provide me with the detailed steps, so that I can verify the same

    Along with this. could you please provide some guidance w.r.t the below queries

    Could you please provide any inputs w.r.t the below query,

    1. Since because of getting the root login prompt is consuming boot time 15sec more as shown in the log attached above, I want to disable the root login in arago-base-tisdk-image-am335x-evm file system, I tried commenting sulogin in etc/inittab, but still am getting the prompt

    Anyways I need finally a prompt , is there any chance I can disable this login & make use of bin/sh, so that this time can be reduced to a great extent, if this possible could you please let me know the necessary changes that needs to be done in etc/inittab, so that I can get the shell using bin/sh in argo-base rootfs

    2. Am facing the below error , Hope w.r.t the eMMC, could you please let me know your suggestions/inputs w.r.t the below error, ie., am I missing or doing anything anything wrong to get the below error

    EXT4-fs error (device mmcblk0p3): ext4_mb_generate_buddy:756: group 4, block bitmap and bg descriptor inconsistent: 7912 vs 7889 free clusters

    3. As am not using the psplash , could you please let me know how the below error can resolved, I have already renamed rc5.d folder to _rc5.d & running only the required service in background in rcS.d & i moved S00_psplash to the other in rcS.d

    nt: can't forcibly umount /mnt/.psplash: Invalid argument

    4. Could you please let me know, is there any chances that I can disable even INIT related boot messages onto the console, as I have already disable u-boot & kernel messages using SILENT_CONSOLE & QUIET & just get the shell prompt using bin/sh in arago-base rootfs

    Kindly do the needful as early as possible

    Many Many Thanks a lot for your prompt responses & would really appreciate the same
  • Sri S said:
    As I didn't find time to go through Falcon mode & I haven't tried Could you please provide me with the detailed steps, so that I can verify the same

    Falcon Mode: FAT SD cards
    =========================

    In this case the additional file is written to the filesystem.  In this
    example we assume that the uImage and device tree to be used are already on
    the FAT filesystem (only the uImage MUST be for this to function
    afterwards) along with a Falcon Mode aware MLO and the FAT partition has
    already been created and marked bootable:

    U-Boot # mmc rescan
    # Load kernel and device tree into memory, perform export
    U-Boot # load mmc 1:1 ${loadaddr} uImage
    U-Boot # run findfdt
    U-Boot # load mmc 1:1 ${fdtaddr} ${fdtfile}
    U-Boot # run mmcargs
    U-Boot # spl export fdt ${loadaddr} - ${fdtaddr}

    This will print a number of lines and then end with something like:
       Using Device Tree in place at 80f80000, end 80f85928
       Using Device Tree in place at 80f80000, end 80f88928
    So then you:

    U-Boot # fatwrite mmc 1:1 0x80f80000 args 8928

    Sri S said:
    1. Since because of getting the root login prompt is consuming boot time 15sec more as shown in the log attached above, I want to disable the root login in arago-base-tisdk-image-am335x-evm file system, I tried commenting sulogin in etc/inittab, but still am getting the prompt

    Anyways I need finally a prompt , is there any chance I can disable this login & make use of bin/sh, so that this time can be reduced to a great extent, if this possible could you please let me know the necessary changes that needs to be done in etc/inittab, so that I can get the shell using bin/sh in argo-base rootfs

    Amend the O0:12345:respawn:/sbin/getty 115200 ttyO0 line to O0:12345:respawn:/bin/login -f root ttyO0 </dev/ttyO0 >/dev/ttyO0 2>&1 to bypass the login prompt.

    Sri S said:
    2. Am facing the below error , Hope w.r.t the eMMC, could you please let me know your suggestions/inputs w.r.t the below error, ie., am I missing or doing anything anything wrong to get the below error

    EXT4-fs error (device mmcblk0p3): ext4_mb_generate_buddy:756: group 4, block bitmap and bg descriptor inconsistent: 7912 vs 7889 free clusters

    Check the partition for errors with fsck.ext4

    Sri S said:
    3. As am not using the psplash , could you please let me know how the below error can resolved, I have already renamed rc5.d folder to _rc5.d & running only the required service in background in rcS.d & i moved S00_psplash to the other in rcS.d

    nt: can't forcibly umount /mnt/.psplash: Invalid argument

    Run this command: update-rc.d -v -f psplash.sh remove and comment out these lines in /etc/init.d/rc

    #Uncomment to cause psplash to exit manually, otherwise it exits when it sees a VC switch
    #if [ "x$runlevel" != "xS" ] && [ ! -x /etc/rc${runlevel}.d/S??xserver-nodm ]; then
    #    if type psplash-write >/dev/null 2>&1; then
    #        TMPDIR=/mnt/.psplash psplash-write "QUIT" || true
    #        umount -l /mnt/.psplash
    #    fi
    #fi

    Sri S said:
    4. Could you please let me know, is there any chances that I can disable even INIT related boot messages onto the console, as I have already disable u-boot & kernel messages using SILENT_CONSOLE & QUIET & just get the shell prompt using bin/sh in arago-base rootfs

    INIT related boot messages comes up from the sysvinit program. They can be disabled at compile time by editing the log levels in init.h

  • Dear Kemal,

    Many Many Thanks a lot for your detailed steps it would be really helpful for me & others as well

    1. Am able to get shell prompt but CTRL-C is not working with the shell without using login prompt after doing the below changes

    Amend the O0:12345:respawn:/sbin/getty 115200 ttyO0 line to O0:12345:respawn:/bin/login -f root ttyO0 </dev/ttyO0 >/dev/ttyO0 2>&1 to bypass the login prompt.

     

    Could you please help me to get CTRL-C CTRL-Z CTRL-X to get working with the shell without using login prompt , beacuse am running an application where am unable to stop it using CTRL-C

    Dear Kemal,

    2. Am planning to reduce the rootfs size where I want to remove the unwanted libraries & binaries required for my application, could you please let me know where I can I get the information that this binary/library is for this purpose or any specific application or services?? if there is any document or link would be helpful, could you please provide me 

     3. I am planning to stop running udev, even i tried running udev in backgorund but it gave me few seconds improvement but if I remove udev, could you please let me know how hot-plug devices can be managed without udev , could you please let me know is there any hotpluggable scripts available for ethernet or USB which am uisng in this product,

    I noticed if I remove udev, it gives me a bootup time of 8 sec other wise it is 17 sec

     

    Kindly do the needful as early as possible

    Many Thanks in advance

     

  • Dear Kemal,

    Am really impressed with your support w.r.t all the threads

    1. Any inputs w.r.t the CTRL-C getting working on shell prompt, I hope some modifications needs to be done in rc or rcS file could you please let me know how this can be done

    2. I hope mdev is light weight process than udev, could you pls let em know how this can be cross_compiled & installed in arago-base rootfs,

    or

    am starting the system with udev enabled & make kind of a backup of the created device nodes. Now modify the init script like this: instead of running udev, copy the device nodes that I had jus made a backup inot /dev/ folder does this works, is this reliable?? could you please confirm or any harm in the future??

    And now am planning to install hotplug-daemon, could you please let me know how this hotplug dameon can now be installed

    I hope this udev is only now my major concern

    Kindly do the needful as early as possible

    Many Many Thanks in advance again

  • Dear Kemal,

    Extremely sorry to push you hard,

    Could you please provide any inputs wrt the above queries

    Many Thanks in advance

  • Sri S said:
    1. Any inputs w.r.t the CTRL-C getting working on shell prompt, I hope some modifications needs to be done in rc or rcS file could you please let me know how this can be done

    CTRL-C does not work because the system console is not allowed to become a controlling tty. If you want to enable the job control run your shell on a real console.

    O0:12345:respawn:/bin/login -f root ttyO0 </dev/ttyO0 >/dev/ttyO0 2>&1

    Sri S said:
    2. I hope mdev is light weight process than udev, could you pls let em know how this can be cross_compiled & installed in arago-base rootfs,

    There is a thread where the replacement of udev by mdev has been discussed, please refer to this thread e2e.ti.com/.../378223

    Sri S said:
    am starting the system with udev enabled & make kind of a backup of the created device nodes. Now modify the init script like this: instead of running udev, copy the device nodes that I had jus made a backup inot /dev/ folder does this works, is this reliable?? could you please confirm or any harm in the future??

    This feature is called udev-cache and it is already implemented in current SDKs.

    Sri S said:
    And now am planning to install hotplug-daemon, could you please let me know how this hotplug dameon can now be installed

    Just place the scripts in the appropriate locations. They seem a bit old, I am not sure whether these scripts still working.

  • Dear Kemal,

    Hope you are doing good,

    I need to disable Kernel & Rootfs (Init )console messages till it reaches login prompt, as part of boot time optimization I followed the below commands

    env default -a -f
    setenv bootargs console=null lpj=3590144 root=/dev/mmcblk0p2 rootfstype=ext4 quiet
    Saveenv

    but still am seeing the kernel & rootfs console messages

    Could you please kindly let me know am I missing anything wrong the above boot args & could you please let me know how this can be automated by including in the u-boot confiiguration file

    Many Thanks in advance
  • Hello Srini,

    The boot args seems correct. Could you post what messages are you seeing?

    Thanks,
    Kemal
  • Dear Kemal,

    The below commands worked Kemal, Could you please let me know how this can be automated in uboot configuration file (ie., include/configs/am335x-evn_config)

    $ setenv console null
    $ savenv

    Kindly do the needful as early as possible

    Many Thanks in advance,

  • Edit this line "console=ttyO0,115200n8\0" \ in include/configs/am335x_evm.h then rebuild the u-boot.img

  •  

    I tried the following but this is not working, could you please let me know am I missing anything wrong??

    "console=null \0" \ in include/configs/am335x_evm.h  is this correct??

  • Do you get any warnings while rebuilding the u-boot?

  • I Hope I didn't get any warnings while rebuilding uboot

    Could you please kindly retry from your end & please let me know

  • It gets overwritten by init_console

    init_console=if test $board_name = A335_ICE; then setenv console ttyO3,115200n8;else setenv console ttyO0,115200n8;fi;