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.

Linux/EVMK2H: Creating .ubi image fails.

Part Number: EVMK2H

Tool/software: Linux

Hello,

I have downloaded the SDK ti-processor-sdk-linux-rt-k2hk-evm-04.00.00.04, now i need .gph and .ubi files to burn the OS into my NAND. I understand i already have the .gph file in the pre-built images directory in the SDK, however i still need to create the .ubi file. In order to do so, i am running the script "create-ubifs.sh" located in the directory /ti-processor-sdk-linux-rt-k2hk-evm-04.00.00.04/bin. However when i run the script it returns me with error

Error: max_leb_cnt too low (5877 needed)

Error: mkfs.ubifs failed!

I am running the script with sudo, Any ideas what i might be the problem?

Best Regards

Sheraz Javaid

  • Hi,

    Can you share how are you running the script?
    You know that in general you also have a prebuilt .ubi image, right? It is located in ~/ti-processor-sdk-linux-rt-k2hk-evm-04.00.00.04/filesystem.

    Best Regards,
    Yordan
  • Hi Yordon,
    I realized i already have two .ubi images in ~/ti-processor-sdk-linux-rt-k2hk-evm-04.00.00.04/filesystem,
    1. arago-base-tisdk-image-k2hk-evm.ubi
    2. tisdk-server-rootfs-image-k2hk-evm.ubi
    what is the difference between the two? which one should i use.

    Also i tried burning u-boot images using tftp server into the NAND flash, and i think i messed up. I used the following commands once i was in boot menu.

    setenv default -f -a
    setenv serverip 192.168.0.100
    setenv boot ubi
    setenv mem_reserve 1536M
    run get_uboot_net
    dhcp 0x87000000 u-boot-spi-keystone-evm.gph
    run burn_uboot_spi (since there wasnt any burn_uboot defined)

    run get_ubi_net
    dhcp 0x82000000 keystone-evm-ubifs.ubi
    run burn_ubi
    saveenv
    reset

    there were no errors, the file transfers were successful, yet i dont get anything over the com port now. The evm board isnt booting up now, any ideas what i might have done wrong? How can i fix it? the BMC terminal shows that boot is complete, everything seems good there, yet i dont get anything over the com port.

    I used the arago-base-tisdk-image-k2hk-evm.ubi file and renamed it to keystone-evm-ubifs.ubi from the ~/ti-processor-sdk-linux-rt-k2hk-evm-04.00.00.04/filesystem, directory

    and the u-boot-spi-k2hk-evm.gph file from /ti-processor-sdk-linux-rt-k2hk-evm-04.00.00.04/board-support

    Did i break the board? Please help.

    Best Regards
    Sheraz Javaid
  • Hi, Sheraz,
    Sorry, this thread didn't show up in my list till I purposedly look in different organization.
    The arago ubi file is a basic one compared to tisdk which includes more packages in the file system.
    From the command you typed, you should not have trashed the uboot in NOR and you should be ok. You still get u-boot prompt, don't you?

    You typed the wrong command to reset the env variables. It should be "env default -f -a". So, the env variables weren't reset. Your u-boot burning were ok. You only need to setenv the serverip. After "run burn_uboot_spi" completes, you should power cycle the board to get the new u-boot running. Then, this is the time you reset env variables, "env default -f -a". Then burn the ubi image. Yes, you need to either rename or soft link the ubi file to match defined in name_ubi.

    Let me know if you still have issues.

    Rex
  • Hi Rex,
    I flashed the board, But i am not getting the login screen. The logs are as follows.
    U-Boot SPL 2017.01-g9fd60700db (Jun 28 2017 - 20:20:26)
    Trying to boot from SPI


    U-Boot 2017.01-g9fd60700db (Jun 28 2017 - 20:20:26 -0400)

    CPU: 66AK2Hx SR2.0
    Model: Texas Instruments Keystone 2 Kepler/Hawking EVM
    I2C: ready
    DRAM: DDR3A Speed will be configured for 1333 Operation.
    Detected SO-DIMM [SQR-SD3T-2G1333SED]
    DDR3 speed 1333
    DRAM: 2 GiB (includes reported below)

    Clear entire DDR3 memory to enable ECC
    2 GiB
    NAND: 512 MiB
    Net: eth0: netcp@2000000
    Warning: netcp@slave-1 (eth1) using random MAC address - 4e:a4:ce:89:7d:c2
    , eth1: netcp@slave-1
    Warning: netcp@slave-2 (eth2) using random MAC address - de:6f:aa:21:00:56
    , eth2: netcp@slave-2
    Warning: netcp@slave-3 (eth3) using random MAC address - 62:7a:8d:4e:15:b9
    , eth3: netcp@slave-3
    Hit any key to stop autoboot: 0
    ubi0: attaching mtd1
    ubi0: scanning is finished
    ubi0: attached mtd1 (name "mtd=2", size 510 MiB)
    ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
    ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
    ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
    ubi0: good PEBs: 4080, bad PEBs: 4, corrupted PEBs: 0
    ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
    ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 1220237982
    ubi0: available PEBs: 0, total reserved PEBs: 4080, PEBs reserved for bad PEB handling: 76
    Loading file '/boot/skern-k2hk.bin' to addr 0x87000000...
    Done
    K2_BM_15.07-53-ge1f885a SoC:k2hk built:17:59:36, Jun 28 2017

    ## installed monitor @ 0xc5f0000, freq [200000000], status 207552512
    Loading file '/boot/zImage' to addr 0x82000000...
    Done
    Loading file '/boot/k2-fw-initrd.cpio.gz' to addr 0x88080000...
    Done
    Loading file '/boot/keystone-k2hk-evm.dtb' to addr 0x88000000...
    Done
    ## Flattened Device Tree blob at 88000000
    Booting using the fdt blob at 0x88000000
    Loading Ramdisk to 8fff3000, end 8ffff3a5 ... OK
    Loading Device Tree to 8ffe5000, end 8fff280b ... OK

    Starting kernel ...

    [ 0.000000] Booting Linux on physical CPU 0x0
    [ 0.000000] Linux version 4.9.28-rt16-g786e64041b (gtbldadm@ubuntu-16) (gcc version 6.2.1 20161016 (Linaro GCC 6.2-2016.11) ) #1 SMP PREEMPT RT Wed Jun 28 18:18:17 EDT 2017
    [ 0.000000] CPU: ARMv7 Processor [412fc0f4] revision 4 (ARMv7), cr=30c5387d
    [ 0.000000] CPU: div instructions available: patching division code
    [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
    [ 0.000000] OF: fdt:Machine model: Texas Instruments Keystone 2 Kepler/Hawking EVM
    [ 0.000000] Switching physical address space to 0x800000000
    [ 0.000000] efi: Getting EFI parameters from FDT:
    [ 0.000000] efi: UEFI not found.
    [ 0.000000] Reserved memory: created CMA memory pool at 0x000000081f800000, size 8 MiB
    [ 0.000000] OF: reserved mem: initialized node dsp_common_cma_pool@81f800000, compatible id shared-dma-pool
    [ 0.000000] Reserved memory: created DMA memory pool at 0x0000000820000000, size 256 MiB
    [ 0.000000] OF: reserved mem: initialized node dsp_common_mpm_pool@820000000, compatible id shared-dma-pool
    [ 0.000000] cma: Reserved 64 MiB at 0x000000087bc00000
    [ 0.000000] Memory policy: Data cache writealloc
    [ 0.000000] psci: probing for conduit method from DT.
    [ 0.000000] psci: Using PSCI v0.1 Function IDs from DT
    [ 0.000000] percpu: Embedded 13 pages/cpu @de59f000 s22752 r8192 d22304 u53248
    [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 358720
    [ 0.000000] Kernel command line: console=ttyS0,115200n8 rootwait=1 rootfstype=ubifs root=ubi0:rootfs rootflags=sync rw ubi.mtd=ubifs,2048
    [ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
    [ 0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
    [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    [ 0.000000] Memory: 1339320K/1441792K available (8192K kernel code, 252K rwdata, 2224K rodata, 2048K init, 324K bss, 28744K reserved, 73728K cma-reserved, 851968K highmem)
    [ 0.000000] Virtual kernel memory layout:
    [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
    [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
    [ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB)
    [ 0.000000] lowmem : 0xc0000000 - 0xf0000000 ( 768 MB)
    [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
    [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
    [ 0.000000] .text : 0xc0008000 - 0xc0a00000 (10208 kB)
    [ 0.000000] .init : 0xc0e00000 - 0xc1000000 (2048 kB)
    [ 0.000000] .data : 0xc1000000 - 0xc103f320 ( 253 kB)
    [ 0.000000] .bss : 0xc1041000 - 0xc1092298 ( 325 kB)
    [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
    [ 0.000000] Preemptible hierarchical RCU implementation.
    [ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
    [ 0.000000] RCU kthread priority: 1.
    [ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
    [ 0.000000] NR_IRQS:16 nr_irqs:16 16
    [ 0.000000] GIC: Using split EOI/Deactivate mode
    [ 0.000000] arm_arch_timer: Architected cp15 timer(s) running at 200.00MHz (phys).
    [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049d3e8, max_idle_ns: 440795210634 ns
    [ 0.000004] sched_clock: 56 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns
    [ 0.000008] Switching to timer-based delay loop, resolution 5ns
    [ 0.000180] keystone timer clock @200000000 Hz
    [ 0.000388] Console: colour dummy device 80x30
    [ 0.000485] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
    [ 0.000488] pid_max: default: 32768 minimum: 301
    [ 0.000576] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.000580] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.001175] CPU: Testing write buffer coherency: ok
    [ 0.001377] /cpus/cpu@0 missing clock-frequency property
    [ 0.001411] /cpus/cpu@1 missing clock-frequency property
    [ 0.001435] /cpus/cpu@2 missing clock-frequency property
    [ 0.001459] /cpus/cpu@3 missing clock-frequency property
    [ 0.001467] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    [ 0.001480] Setting up static identity map for 0x80200000 - 0x80200138
    [ 0.120202] EFI services will not be available.
    [ 0.245104] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    [ 0.345230] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
    [ 0.445356] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
    [ 0.445512] Brought up 4 CPUs
    [ 0.445532] SMP: Total of 4 processors activated (1600.00 BogoMIPS).
    [ 0.445538] CPU: All CPU(s) started in HYP mode.
    [ 0.445543] CPU: Virtualization extensions available.
    [ 0.445996] devtmpfs: initialized
    [ 0.456597] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
    [ 0.456800] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [ 0.456814] futex hash table entries: 1024 (order: 4, 65536 bytes)
    [ 0.457941] pinctrl core: initialized pinctrl subsystem
    [ 0.458630] NET: Registered protocol family 16
    [ 0.459643] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [ 0.460754] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
    [ 0.460763] hw-breakpoint: maximum watchpoint size is 8 bytes.
    [ 0.468187] irq: no irq domain found for /soc/keystone_irq@26202a0 !
    [ 0.468389] irq: no irq domain found for /soc/keystone_irq@26202a0 !
    [ 0.468594] irq: no irq domain found for /soc/keystone_irq@26202a0 !
    [ 0.468800] irq: no irq domain found for /soc/keystone_irq@26202a0 !
    [ 0.469001] irq: no irq domain found for /soc/keystone_irq@26202a0 !
    [ 0.469207] irq: no irq domain found for /soc/keystone_irq@26202a0 !
    [ 0.469410] irq: no irq domain found for /soc/keystone_irq@26202a0 !
    [ 0.469611] irq: no irq domain found for /soc/keystone_irq@26202a0 !
    [ 0.484471] vgaarb: loaded
    [ 0.485975] pps_core: LinuxPPS API ver. 1 registered
    [ 0.485982] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [ 0.486000] PTP clock support registered
    [ 0.486028] EDAC MC: Ver: 3.0.0
    [ 0.487380] clocksource: Switched to clocksource arch_sys_counter
    [ 0.495838] NET: Registered protocol family 2
    [ 0.496302] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
    [ 0.496339] TCP bind hash table entries: 4096 (order: 4, 114688 bytes)
    [ 0.496471] TCP: Hash tables configured (established 4096 bind 4096)
    [ 0.496514] UDP hash table entries: 256 (order: 2, 16384 bytes)
    [ 0.496543] UDP-Lite hash table entries: 256 (order: 2, 16384 bytes)
    [ 0.496695] NET: Registered protocol family 1
    [ 0.497009] RPC: Registered named UNIX socket transport module.
    [ 0.497016] RPC: Registered udp transport module.
    [ 0.497022] RPC: Registered tcp transport module.
    [ 0.497027] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 0.497231] Trying to unpack rootfs image as initramfs...
    [ 0.500549] Freeing initrd memory: 52K (cfff3000 - d0000000)
    [ 0.500730] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available
    [ 0.501382] platform alarmtimer: set dma_pfn_offset00780000
    [ 0.502356] workingset: timestamp_bits=14 max_order=19 bucket_order=5
    [ 0.509200] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [ 0.509873] NFS: Registering the id_resolver key type
    [ 0.509905] Key type id_resolver registered
    [ 0.509912] Key type id_legacy registered
    [ 0.509948] ntfs: driver 2.1.32 [Flags: R/O].
    [ 0.511055] bounce: pool size: 64 pages
    [ 0.511184] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
    [ 0.511193] io scheduler noop registered
    [ 0.511200] io scheduler deadline registered
    [ 0.511311] io scheduler cfq registered (default)
    [ 0.511555] keystone_irq soc:keystone_irq@26202a0: irqchip registered, nr_irqs 28
    [ 0.512148] ti,keystone-serdes 232a000.phy: init fw ks2_gbe_serdes.bin: version 3.3.0.2c
    [ 0.517589] keystone-navigator-qmss soc:qmss@2a40000: qmgr start queue 0, number of queues 8192
    [ 0.517723] keystone-navigator-qmss soc:qmss@2a40000: added qmgr start queue 0, num of queues 8192, reg_peek f0fa0000, reg_status f096d000, reg_config f096f000, reg_region f0971000, reg_push f0fe0000, reg_pop f1020000
    [ 0.517734] keystone-navigator-qmss soc:qmss@2a40000: qmgr start queue 8192, number of queues 8192
    [ 0.517849] keystone-navigator-qmss soc:qmss@2a40000: added qmgr start queue 8192, num of queues 8192, reg_peek f1060000, reg_status f0973400, reg_config f0975000, reg_region f0977000, reg_push f10a0000, reg_pop f10e0000
    [ 0.518008] keystone-navigator-qmss soc:qmss@2a40000: firmware file ks2_qmss_pdsp_acc48.bin downloaded for PDSP
    [ 0.520822] keystone-navigator-dma soc:knav_dmas@0: DMA dma_gbe registered 41 logical channels, flows 32, tx chans: 9, rx chans: 24
    [ 0.520954] keystone-navigator-dma soc:knav_dmas@0: DMA dma_xgbe registered 48 logical channels, flows 32, tx chans: 16, rx chans: 16
    [ 0.572916] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
    [ 0.573003] platform serial8250: set dma_pfn_offset00780000
    [ 0.575407] console [ttyS0] disabled
    [ 0.575456] 2530c00.serial: ttyS0 at MMIO 0x2530c00 (irq = 26, base_baud = 12500000) is a TI DA8xx/66AK2x
    [ 1.414476] console [ttyS0] enabled
    [ 1.418734] 2531000.serial: ttyS1 at MMIO 0x2531000 (irq = 27, base_baud = 12500000) is a TI DA8xx/66AK2x
    [ 1.441808] [drm] Initialized
    [ 1.455084] brd: module loaded
    [ 1.463323] loop: module loaded
    [ 1.467482] at24 0-0050: 131072 byte 24c1024 EEPROM, writable, 1 bytes/write
    [ 1.476507] spi_davinci 21000400.spi: DMA is not supported (-19)
    [ 1.483272] m25p80 spi0.0: n25q128a11 (16384 Kbytes)
    [ 1.488274] 2 ofpart partitions found on MTD device spi0.0
    [ 1.493777] Creating 2 MTD partitions on "spi0.0":
    [ 1.498586] 0x000000000000-0x000000100000 : "u-boot-spl"
    [ 1.504846] 0x000000100000-0x000001000000 : "misc"
    [ 1.510545] spi_davinci 21000400.spi: Controller at 0xf0fdb400
    [ 1.516661] spi_davinci 21000600.spi: DMA is not supported (-19)
    [ 1.523051] spi_davinci 21000600.spi: Controller at 0xf0fdd600
    [ 1.529175] spi_davinci 21000800.spi: DMA is not supported (-19)
    [ 1.535541] spi_davinci 21000800.spi: Controller at 0xf101c800
    [ 1.541821] platform Fixed MDIO bus.0: set dma_pfn_offset00780000
    [ 1.548087] libphy: Fixed MDIO Bus: probed
    [ 1.607421] davinci_mdio 2090300.mdio: davinci mdio revision 1.5
    [ 1.613448] libphy: 2090300.mdio: probed
    [ 1.618171] davinci_mdio 2090300.mdio: phy[0]: device 2090300.mdio:00, driver Marvell 88E1111
    [ 1.626730] davinci_mdio 2090300.mdio: phy[1]: device 2090300.mdio:01, driver Marvell 88E1111
    [ 1.635894] ti,keystone-serdes 232a000.phy: Requested PHY is disabled
    [ 2.151970] ti,keystone-serdes 232a000.phy: Requested PHY is disabled
    [ 2.672321] netcp-1.0 2620110.netcp: cpts: overflow check period 350 (jiffies)
    [ 2.679590] netcp-1.0 2620110.netcp: CPTS: ref_clk_freq:600000000 calc_mult:3579139413 calc_shift:31 error:-1 nsec/sec
    [ 2.690330] netcp-1.0 2620110.netcp: initialized cpsw ale version 1.3
    [ 2.696793] netcp-1.0 2620110.netcp: ALE Table size 1024
    [ 2.703100] netcp-1.0 2620110.netcp: module(netcp-xgbe) not used for device
    [ 2.710285] netcp-1.0 2620110.netcp: pa_clk_rate(163840000 HZ),mult(25000),shift(12)
    [ 2.719686] netcp-1.0 2620110.netcp: Using PA fw version 03.00.02.03:0x03000203 on pdsp 0
    [ 2.727899] netcp-1.0 2620110.netcp: Using PA fw version 03.00.02.03:0x03000203 on pdsp 1
    [ 2.736107] netcp-1.0 2620110.netcp: Using PA fw version 03.00.02.03:0x03000203 on pdsp 2
    [ 2.744316] netcp-1.0 2620110.netcp: Using PA fw version 03.00.02.03:0x03000203 on pdsp 3
    [ 2.752525] netcp-1.0 2620110.netcp: Using PA fw version 03.00.02.03:0x03000203 on pdsp 4
    [ 2.760734] netcp-1.0 2620110.netcp: Using PA fw version 03.00.02.03:0x03000203 on pdsp 5
    [ 2.769647] netcp-1.0 2620110.netcp: module(netcp-pa2) not used for device
    [ 2.776816] mousedev: PS/2 mouse device common for all mice
    [ 2.782663] i2c /dev entries driver
    [ 2.790338] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xac
    [ 2.796715] nand: Micron MT29F4G08ABBDAHC
    [ 2.800738] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
    [ 2.808644] Bad block table found at page 262080, version 0x01
    [ 2.815020] Bad block table found at page 262016, version 0x01
    [ 2.821207] 3 ofpart partitions found on MTD device 30000000.nand
    [ 2.827321] Creating 3 MTD partitions on "30000000.nand":
    [ 2.832739] 0x000000000000-0x000000100000 : "u-boot"
    [ 2.838644] 0x000000100000-0x000000180000 : "params"
    [ 2.844572] 0x000000180000-0x000020000000 : "ubifs"
    [ 2.854496] davinci_nand 30000000.nand: controller rev. 2.5
    [ 2.860846] NET: Registered protocol family 10
    [ 2.866232] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    [ 2.872669] NET: Registered protocol family 17
    [ 2.877283] Key type dns_resolver registered
    [ 2.881683] Registering SWP/SWPB emulation handler
    [ 2.892130] ubi0: attaching mtd4
    [ 3.207392] (NULL net_device): Link is Down
    [ 3.211590] (NULL net_device): Link is Down
    [ 5.047545] ubi0: scanning is finished
    [ 5.062079] ubi0: attached mtd4 (name "ubifs", size 510 MiB)
    [ 5.067772] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
    [ 5.074672] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
    [ 5.081484] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
    [ 5.088471] ubi0: good PEBs: 4080, bad PEBs: 4, corrupted PEBs: 0
    [ 5.094584] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
    [ 5.101832] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 1220237982
    [ 5.111000] ubi0: available PEBs: 0, total reserved PEBs: 4080, PEBs reserved for bad PEB handling: 76
    [ 5.120356] ubi0: background thread "ubi_bgt0d" started, PID 118
    [ 5.120529] hctosys: unable to open rtc device (rtc0)
    [ 5.143140] UBIFS: parse sync
    [ 5.146784] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 120
    [ 5.211265] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
    [ 5.218692] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
    [ 5.228646] UBIFS (ubi0:0): FS size: 506507264 bytes (483 MiB, 3989 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
    [ 5.239384] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
    [ 5.245238] UBIFS (ubi0:0): media format: w4/r0 (latest is w4/r0), UUID 37C80A12-EE78-4F7E-924B-9C7DEA609604, small LPT model
    [ 5.257743] VFS: Mounted root (ubifs filesystem) on device 0:14.
    [ 5.265412] devtmpfs: mounted
    [ 5.269729] Freeing unused kernel memory: 2048K (c0e00000 - c1000000)
    [ 5.499574] systemd[1]: System time before build time, advancing clock.
    [ 5.556691] random: systemd: uninitialized urandom read (16 bytes read)
    [ 5.583956] random: systemd: uninitialized urandom read (16 bytes read)
    [ 5.592797] systemd[1]: systemd 230 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN)
    [ 5.611817] systemd[1]: Detected architecture arm.

    Welcome to Arago 2017.05!

    [ 5.648609] systemd[1]: Set hostname to <k2hk-evm>.
    [ 5.659354] random: systemd: uninitialized urandom read (16 bytes read)
    [ 5.666009] systemd[1]: Initializing machine ID from random generator.
    [ 6.551625] systemd[1]: Installed transient /etc/machine-id file.
    [ 6.664992] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read)
    [ 6.699467] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read)
    [ 6.722358] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read)
    [ 6.791886] random: systemd: uninitialized urandom read (16 bytes read)
    [ 6.856332] random: systemd: uninitialized urandom read (16 bytes read)
    [ 6.863226] random: systemd: uninitialized urandom read (16 bytes read)
    [ 6.870317] random: systemd: uninitialized urandom read (16 bytes read)
    [ 7.118109] systemd[1]: Listening on udev Kernel Socket.
    [ OK ] Listening on udev Kernel Socket.
    [ 7.157612] systemd[1]: Listening on Journal Socket (/dev/log).
    [ OK ] Listening on Journal Socket (/dev/log).
    [ 7.198229] systemd[1]: Listening on Network Service Netlink Socket.
    [ OK ] Listening on Network Service Netlink Socket.
    [ 7.237612] systemd[1]: Listening on Journal Socket.
    [ OK ] Listening on Journal Socket.
    [ 7.270557] systemd[1]: Created slice System Slice.
    [ OK ] Created slice System Slice.
    Starting Create list of required st... nodes for the current kernel...
    [ OK ] Created slice system-getty.slice.
    [ OK ] Started Forward Password Requests to Wall Directory Watch.
    Starting Setup Virtual Console...
    [ OK ] Listening on udev Control Socket.
    Starting Load Kernel Modules...
    [ 7.506234] cmemk: loading out-of-tree module taints kernel.
    [ 7.512645] CMEMK module: reference Linux version 4.9.28
    [ 7.518398] allocated heap buffer 0xc100000 of size 0x480000
    [ 7.524094] cmemk initialized
    [ OK ] Listening on /dev/initctl Compatibility Named Pipe.
    [ 7.543985] cryptodev: driver 1.8 loaded.
    Mounting POSIX Message Queue File System...
    [ OK ] Started Dispatch Password Requests to Console Directory Watch.
    [ 7.607730] NET: Registered protocol family 43
    [ OK ] Reached targe[ 7.620100] uio_module_drv soc:mpax: registered misc device mpax
    t Paths.
    [ 7.627661] uio_module_drv soc:edma3: registered misc device edma3
    [ 7.634739] uio_module_drv soc:secmgr: registered misc device secmgr
    [ 7.641346] uio_module_drv soc:qmss: registered misc device qmss
    [ 7.655987] uio_module_drv soc:hyperlink0: registered misc device hyperlink0
    [ 7.663827] uio_module_drv soc:hyperlink1: registered misc device hyperlink1
    [ OK 7.671480] uio_module_drv soc:srio: registered misc device srio
    m] Created slice system-serial\x2dgetty.slice.
    Starting Remount Root and Kernel File Systems...
    [ OK ] Created slice User and Session Slice.
    [ OK ] Reached target Slices.
    [ OK ] Reached target Swap.
    Mounting Temporary Directory...
    [ OK ] Reached target Remote File Systems.
    [ OK ] Listening on Syslog Socket.
    Starting Journal Service...
    Mounting Debug File System...
    [ OK ] Mounted Debug File System.
    [ OK ] Mounted POSIX Message Queue File System.
    [ OK ] Mounted Temporary Directory.
    [ OK ] Started Journal Service.
    [ OK ] Started Create list of required sta...ce nodes for the current kernel.
    [ OK ] Started Setup Virtual Console.
    [ OK ] Started Load Kernel Modules.
    [ OK ] Started Remount Root and Kernel File Systems.
    Starting Rebuild Hardware Database...
    Mounting Configuration File System...
    Starting Apply Kernel Variables...
    Starting Create Static Device Nodes in /dev...
    Starting Flush Journal to Persistent Storage...
    [ OK ] Mounted Configuration File System.
    [ OK ] Started Apply Kernel Variables.
    [ OK ] Started Create Static Device Nodes in /dev.
    [ OK ] Reached target Local File Systems (Pre).
    Mounting /media/ram...
    Mounting /var/volatile...
    Starting udev Kernel Device Manager...
    [ OK ] Mounted /var/volatile.
    [FAILED] Failed to mount /media/ram.
    See 'systemctl status media-ram.mount' for details.
    [DEPEND] Dependency failed for Local File Systems.
    [ OK ] Started udev Kernel Device Manager.
    [ 8.921842] systemd-journald[180]: Received request to flush runtime journal from PID 1
    [ OK ] Reached target Timers.
    [ OK ] Reached target Login Prompts.
    Starting Network Service...
    [ OK ] Closed Syslog Socket.
    [ OK ] Reached target Sockets.
    [ OK ] Started Emergency Shell.
    [ OK ] Reached target Emergency Mode.
    [ 9.151687] random: fast init done
    Starting Rebuild Journal Catalog...
    Starting Commit a transient machine-id on disk...
    Starting Rebuild Dynamic Linker Cache...
    Starting Load/Save Random Seed...
    [ OK ] Started Network Service.
    [ OK ] Started Flush Journal to Persistent Storage.
    [FAILED] Failed to start Rebuild Journal Catalog.
    See 'systemctl status systemd-journal-catalog-update.service' for details.
    [FAILED] Failed to start Commit a transient machine-id on disk.
    See 'systemctl status systemd-machine-id-commit.service' for details.
    [ OK ] Started Load/Save Random Seed.
    Starting Create Volatile Files and Directories...
    [ OK ] Reached target Network.
    [FAILED] Failed to start Create Volatile Files and Directories.
    See 'systemctl status systemd-tmpfiles-setup.service' for details.
    Starting Update UTMP about System Boot/Shutdown...
    Starting Network Time Synchronization...
    [ OK ] Started Update UTMP about System Boot/Shutdown.
    Starting Update UTMP about System Runlevel Changes...
    [ OK ] Started Update UTMP about System Runlevel Changes.
    [ OK ] Started Network Time Synchronization.
    [FAILED] Failed to start Rebuild Hardware Database.
    See 'systemctl status systemd-hwdb-update.service' for details.
    [FAILED] Failed to start Rebuild Dynamic Linker Cache.
    See 'systemctl status ldconfig.service' for details.
    Starting Update is Completed...
    Starting udev Coldplug all Devices...
    [ OK ] Reached target System Time Synchronized.
    Starting Synchronize System and HW clocks...
    [FAILED] Failed to start Update is Completed.
    See 'systemctl status systemd-update-done.service' for details.
    [FAILED] Failed to start Synchronize System and HW clocks.
    See 'systemctl status sync-clocks.service' for details.
    [ 11.745048] keystone-rproc 10800000.dsp: assigned reserved memory node dsp_common_cma_pool@81f800000
    [ 11.762577] remoteproc remoteproc0: 10800000.dsp is available
    [ 11.796483] keystone-rproc 11800000.dsp: assigned reserved memory node dsp_common_cma_pool@81f800000
    [ 11.809721] remoteproc remoteproc1: 11800000.dsp is available
    [ 11.835679] davinci-wdt 22f0080.wdt: heartbeat 60 sec
    [ 11.853054] keystone-rproc 12800000.dsp: assigned reserved memory node dsp_common_cma_pool@81f800000
    [ 11.865798] remoteproc remoteproc2: 12800000.dsp is available
    [ 11.892981] keystone-rproc 13800000.dsp: assigned reserved memory node dsp_common_cma_pool@81f800000
    [ 11.906913] remoteproc remoteproc3: 13800000.dsp is available
    [ 11.939060] keystone-rproc 14800000.dsp: assigned reserved memory node dsp_common_cma_pool@81f800000
    [ 11.953892] remoteproc remoteproc4: 14800000.dsp is available
    [ 11.999759] keystone-rproc 15800000.dsp: assigned reserved memory node dsp_common_cma_pool@81f800000
    [ 12.014262] remoteproc remoteproc5: 15800000.dsp is available
    [ 12.047567] keystone-rproc 16800000.dsp: assigned reserved memory node dsp_common_cma_pool@81f800000
    [ 12.067712] remoteproc remoteproc6: 16800000.dsp is available
    [ 12.089518] keystone-rproc 17800000.dsp: assigned reserved memory node dsp_common_cma_pool@81f800000
    [ 12.098958] remoteproc remoteproc7: 17800000.dsp is available
    [ OK ] Found device /dev/ttyS0.
    [ OK ] Started udev Coldplug all Dev[ 12.164800] 2620738.usb_phy supply vcc not found, using dummy regulator
    ices.
    [ 12.174594] keystone-dsp-mem a0000000.dspmem: registered misc device dspmem
    Welcome to emerg[ 12.608116] netcp-1.0 2620110.netcp eth1: Link is Down
    Press Enter for maintenance
    (or press Control-D to continue): [ 12.633926] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
    [ 12.848120] netcp-1.0 2620110.netcp eth0: Link is Down
    [ 12.856924] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [ 13.903992] platform xhci-hcd.0.auto: set dma_pfn_offset00780000
    [ 13.949612] usbcore: registered new interface driver usbfs
    [ 13.955671] usbcore: registered new interface driver hub
    [ 13.961528] usbcore: registered new device driver usb
    [ 13.986164] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
    [ 13.991694] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
    [ 13.999926] xhci-hcd xhci-hcd.0.auto: hcc params 0x0298f06d hci version 0x100 quirks 0x02010010
    [ 14.008754] xhci-hcd xhci-hcd.0.auto: irq 34, io mem 0x02690000
    [ 14.015400] hub 1-0:1.0: USB hub found
    [ 14.019192] hub 1-0:1.0: 1 port detected
    [ 14.023488] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
    [ 14.029007] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
    [ 14.036765] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
    [ 14.045529] hub 2-0:1.0: USB hub found
    [ 14.049319] hub 2-0:1.0: 1 port detected

    sh-3.2#
    sh-3.2#
  • Sheraz,

    The steps/commands you used to burn ubi image would provide more info than the console boot log. Also, the "print env" would help too. I also want to be sure if you have changed u-boot version, the command "env default -f -a" is issued.

    Rex
  • Sheraz,

    it seems that tisdk-server-rootfs is too big if that is the one you burnt to the NAND. Try using arago-base-tisdk-iamge ubi file.

    Rex
  • Hi Rex,

    arago-base-tisdk-image.ubi file does work fine. But it is a very basic image. I need so many modules, that arent included with it, Since i am kinda new to it, still learning and exploring. I cant add modules recompile it and then flash into the board. Can you please help me out through the process?

    Best Regards

    Sheraz Javaid

  • Sheraz,

    Please refer to Building SDK document in http://processors.wiki.ti.com/index.php/Processor_SDK_Building_The_SDK and keep the packages you want and remove those you don't need from yocto receipe, 

    Rex