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.

How to make ubifs for linux file system on evmk2h?

Hi,

I want to replace linux image on NOR flash with different  linux image. I have compiled linux for keystone ii and I got only these files uImage, zImage and K2H_evm.dtb. As per my understanding we have to erase ubifs in flash and reload it with new ubifs. My question is this how can we make ubifs file (during/after) linux kernel compilation using Linaro toolchain? Any help in this regard is appreciated.

Regards

Rao

  • Hi Abdul,
    I hope you are working on NAND not on NOR. Please confirm.
    Please refer mcsdk explore wiki for detailed information on booting using ubifs on NAND . (Refer section "Creating UBIFS file system")

    processors.wiki.ti.com/.../MCSDK_UG_Chapter_Exploring
  • Yes I am using nand flash. It asks for filesystem directory is it the directory <Keystone linux dir>/linux_keystone/fs or I am missing something.

    Regards
    Rao
  • Hi Rao,

    Have you referred the TI wiki page which Raja gave to you ?

    Yes, we can erase the UBIFS pre-built rootfs partition which is came up from factory and you can flash your own rootfs at either u-boot or Linux.

    Revert to us for further clarification.

    Regards,
    Shankari.
  • Hi Shankari ,
    I am following
    processors.wiki.ti.com/.../MCSDK_UG_Chapter_Exploring

    As per my understanding , I extracted tisdk-rootfs.tar.gz palced in <Installations>\mcsdk_linux_3_00_03_15\images and replaced kernel image (uImage) with my own uImage and made rootfs.ubifs using mkfs.ubifs. Then made keystone-evm.ubi . Commands are following

    mkfs.ubifs -v -x zlib -m 2048 -e 129024 -c 1992 -r boot/ rootfs.ubifs
    ubinize -o keystone-evm.ubi -m 2048 -p 128KiB -s 2048 -O 2048 ubinize.cfg

    then I write it on nand flash using nand write (after erasing it) but it gives me error

    ubifs_get_sb: cannot open "ubi:boot", error -19

    I have attached Log of error
    kindly tell me what is wrong with my procedure.



    TCI6638 EVM # boot
    Creating 1 MTD partitions on "nand0":
    0x000000180000-0x000008000000 : "mtd=2"
    UBI: attaching mtd1 to ubi0
    UBI: physical eraseblock size: 131072 bytes (128 KiB)
    UBI: logical eraseblock size: 126976 bytes
    UBI: smallest flash I/O unit: 2048
    UBI: VID header offset: 2048 (aligned 2048)
    UBI: data offset: 4096
    UBI: volume 2 ("rootfs") re-sized from 931 to 998 LEBs
    UBI: attached mtd1 to ubi0
    UBI: MTD device name: "mtd=2"
    UBI: MTD device size: 126 MiB
    UBI: number of good PEBs: 1012
    UBI: number of bad PEBs: 0
    UBI: max. allowed volumes: 128
    UBI: wear-leveling threshold: 4096
    UBI: number of internal volumes: 1
    UBI: number of user volumes: 1
    UBI: available PEBs: 0
    UBI: total number of reserved PEBs: 1012
    UBI: number of PEBs reserved for bad PEB handling: 10
    UBI: max/mean erase counter: 1/0
    UBIFS error (pid 0): ubifs_get_sb: cannot open "ubi:boot", error -19
    UBIFS error (pid 0): ubifs_mount: Error reading superblock on volume 'ubi:boot' errno=-19!
  • Hi,

    As per my understanding , I extracted tisdk-rootfs.tar.gz palced in <Installations>\mcsdk_linux_3_00_03_15\images and replaced kernel image (uImage) with my own uImage and made rootfs.ubifs using mkfs.ubifs. Then made keystone-evm.ubi . Commands are following

    If you want to update just the kernel and not filesystem then we have procedure to update the kernel (uImage) alone.

    processors.wiki.ti.com/.../MCSDK_UG_Chapter_Exploring
  • Thanks,
    That is very helpful indeed. I am very happy with response time of you people. But I also need to change filesystem. May be it is silly question but after replacing the kernel image (using tftp transfer method that is mentioned in link pasted by you) , the new kernel image will be permanently stored in nand flash ?

    Regards
    Rao
  • Hi Rao,

    Rao said:

    the new kernel image will be permanently stored in nand flash ?

    Yes, it stored permanently in NAND flash.

    If you want to change the filesystem, then you can erase the rootfs and able to flash in u-boot stage.

    processors.wiki.ti.com/.../MCSDK_UG_Chapter_Exploring


    Regards,
    Shankari.
  • Hi,
    I followed the instructions given in the link.

    Few difference I observed that there is already boot folder in /mnt. (with uImage and .dtb file, there was no uImage.bin file there).

    Secondly when I mounted ubi0_0 to some other folder say myboot , after mount folder is empty there is no file hidden/appeared.

    Third when I replace uImage with my own uImage in boot folder after reboot I get this error. 


    UBIFS error (pid 0): ubifs_read_node: bad node type (255 but expected 6)
    UBIFS error (pid 0): ubifs_read_node: bad node at LEB 0:0
    UBIFS error (pid 0): ubifs_mount: Error reading superblock on volume 'ubi:boot' errno=-22!

    ubifsmount - mount UBIFS volume

    Questions are 

    What could have went wrong?

    Are instructions on link updated?

    What are my options now?

    Regards

    Rao

  • Any response guys?
  • Hi Rao,

    I suspect that you might have caculated the PEB size (no of blocks) while you creating UBI image.

    Regards,
    Shankari.
  • Hi Shankari,
    Even I am getting this error with default keystone-evm-ubifs.ubi provided with dvd.

    Regards
  • Hi Rao,


    As per my understanding , I extracted tisdk-rootfs.tar.gz palced in <Installations>\mcsdk_linux_3_00_03_15\images and replaced kernel image (uImage) with my own uImage and made rootfs.ubifs using mkfs.ubifs. Then made keystone-evm.ubi . Commands are following

    mkfs.ubifs -v -x zlib -m 2048 -e 129024 -c 1992 -r boot/ rootfs.ubifs
    ubinize -o keystone-evm.ubi -m 2048 -p 128KiB -s 2048 -O 2048 ubinize.cfg

    then I write it on nand flash using nand write (after erasing it) but it gives me error

    You said that you have created your own, that's why I suspected, it could be miscalculation of PEB.

    BTW, what is your MCSDK version ?
    How did you flash the UBI image to flash ?
    At u-boot stage or Linux ?


    Regards,
    Shankari.
  • Hi,
    version is mcsdk_linux_3_00_03_15

    this is what I did at u-boot stage,
    dhcp 0x82000000 keystone-evm-ubifs.ubi
    nand erase.part ubifs
    dhcp 0x82000000 keystone-evm-ubifs.ubi
    nand write 0x82000000 ubifs ${filesize}

    then I type
    boot

    after this Linux starts and boots up fine.
    But when I reboot/Power on/off the kit. OS didn't bootup at all.

    regards
  • Hi Rao,

    I've tested with the latest MCSDK version and it worked flawlessly.

    Attached the log for your reference.

    Could you use the latest MCSDK version and ensure that you used the same MCSDK's version of u-boot since it could be reason of partition size mismatch between MCSDK versions.

    ubifs_log.txt
    K2HK EVM #
    K2HK EVM # setenv tftp_root 3_01_03_06
    K2HK EVM # saveenv
    Saving Environment to NAND...
    Erasing Nand...
    Erasing at 0x120000 -- 100% complete.
    Writing to Nand... done
    K2HK EVM # setenv tftp_root 3_01_03_06
    K2HK EVM # saveenv
    Saving Environment to NAND...
    Erasing Nand...
    Erasing at 0x120000 -- 100% complete.
    Writing to Nand... done
    K2HK EVM # tftpboot 0x82000000 ${tftp_root}/${name_ubi}
    Using K2HK_EMAC device
    TFTP from server 192.168.2.25; our IP address is 192.168.2.12
    Filename '3_01_03_06/k2hk-evm-ubifs.ubi'.
    Load address: 0x82000000
    Loading: T #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
    		 
    		 
    		 
    K2HK EVM # setenv boot ubi
    K2HK EVM # run burn_ubi
    
    NAND erase.part: device 0 offset 0x180000, size 0x1fe80000
    Skipping bad block at  0x1ff80000
    Skipping bad block at  0x1ffa0000
    Skipping bad block at  0x1ffc0000
    Skipping bad block at  0x1ffe0000
    
    OK
    
    NAND write: device 0 offset 0x180000, size 0xf360000
     255197184 bytes written: OK
    K2HK EVM # setenv boot ubi
    K2HK EVM # saveen
    Saving Environment to NAND...
    Erasing Nand...
    Erasing at 0x120000 -- 100% complete.
    Writing to Nand... done
    K2HK EVM # boot
    Creating 1 MTD partitions on "nand0":
    0x000000180000-0x000020000000 : "mtd=2"
    UBI: attaching mtd1 to ubi0
    UBI: physical eraseblock size:   131072 bytes (128 KiB)
    UBI: logical eraseblock size:    126976 bytes
    UBI: smallest flash I/O unit:    2048
    UBI: VID header offset:          2048 (aligned 2048)
    UBI: data offset:                4096
    UBI: fixable bit-flip detected at PEB 709
    UBI: fixable bit-flip detected at PEB 839
    UBI: fixable bit-flip detected at PEB 1051
    UBI: volume 2 ("rootfs") re-sized from 1822 to 3703 LEBs
    UBI: attached mtd1 to ubi0
    UBI: MTD device name:            "mtd=2"
    UBI: MTD device size:            510 MiB
    UBI: number of good PEBs:        4080
    UBI: number of bad PEBs:         4
    UBI: max. allowed volumes:       128
    UBI: wear-leveling threshold:    4096
    UBI: number of internal volumes: 1
    UBI: number of user volumes:     5
    UBI: available PEBs:             0
    UBI: total number of reserved PEBs: 4080
    UBI: number of PEBs reserved for bad PEB handling: 40
    UBI: max/mean erase counter: 1/0
    UBIFS: mounted UBI device 0, volume 0, name "boot"
    UBIFS: mounted read-only
    UBIFS: file system size:   9269248 bytes (9052 KiB, 8 MiB, 73 LEBs)
    UBIFS: journal size:       1650688 bytes (1612 KiB, 1 MiB, 13 LEBs)
    UBIFS: media format:       w4/r0 (latest is w4/r0)
    UBIFS: default compressor: LZO
    UBIFS: reserved for root:  0 bytes (0 KiB)
    Loading file 'securedb.key.bin' to addr 0x0c000000 with size 28 (0x0000001c)...
    Done
    Loading file 'uImage-k2hk-evm.dtb' to addr 0x87000000 with size 52245 (0x0000cc15)...
    Done
    Loading file 'skern-k2hk-evm.bin' to addr 0x0c5f0000 with size 45056 (0x0000b000)...
    Done
    Loading file 'uImage-keystone-evm.bin' to addr 0x88000000 with size 4042944 (0x003db0c0)...
    Done
    ## installed monitor, freq [200000000], status 0
    ## Booting kernel from Legacy Image at 88000000 ...
       Image Name:   Linux-3.10.61
       Created:      2015-03-27   3:46:58 UTC
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    4042880 Bytes = 3.9 MiB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
    ## Flattened Device Tree blob at 87000000
       Booting using the fdt blob at 0x87000000
       Loading Kernel Image ... OK
    OK
       Using Device Tree in place at 87000000, end 8700fc14
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 3.10.61 (gtbldadm@ubuntu-12) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #1 SMP Thu Mar 26 23:46:41 EDT 2015
    [    0.000000] CPU: ARMv7 Processor [412fc0f4] revision 4 (ARMv7), cr=30c7387d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
    [    0.000000] Machine: KeyStone2, model: Texas Instruments Keystone 2 SoC
    [    0.000000] switching to high address space at 0x800000000
    [    0.000000] cma: CMA: reserved 16 MiB at 2e800000
    [    0.000000] Memory policy: ECC disabled, Data cache writealloc
    [    0.000000] PERCPU: Embedded 8 pages/cpu @c141b000 s11840 r8192 d12736 u32768
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 391696
    [    0.000000] Kernel command line: console=ttyS0,115200n8 rootwait=1 rootfstype=ubifs root=ubi0:rootfs rootflags=sync rw ubi.mtd=2,2048
    [    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
    [    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
    [    0.000000] Memory: 1536MB = 1536MB total
    [    0.000000] Memory: 1534868k/1534868k available, 37996k reserved, 794624K highmem
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    [    0.000000]     vmalloc : 0xf0000000 - 0xff000000   ( 240 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xef800000   ( 760 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc072cb28   (7315 kB)
    [    0.000000]       .init : 0xc072d000 - 0xc077fe40   ( 332 kB)
    [    0.000000]       .data : 0xc0780000 - 0xc07c7bd8   ( 287 kB)
    [    0.000000]        .bss : 0xc07c7bd8 - 0xc07f987c   ( 200 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
    [    0.000000] Hierarchical RCU implementation.
    [    0.000000] NR_IRQS:16 nr_irqs:16 16
    [    0.000000] ipc irq: irqchip registered, range 512-539
    [    0.000000] Main PLL clk (1200000000 Hz), parent (122880000 Hz),postdiv = 2, mult = 624, prediv = 31
    [    0.000000] Generic PLL clk (1200000000 Hz), parent (125000000 Hz),postdiv = 1, mult = 47, prediv = 4
    [    0.000000] Generic PLL clk (983040000 Hz), parent (122880000 Hz),postdiv = 2, mult = 15, prediv = 0
    [    0.000000] Generic PLL clk (333333333 Hz), parent (100000000 Hz),postdiv = 6, mult = 19, prediv = 0
    [    0.000000] Generic PLL clk (333333333 Hz), parent (100000000 Hz),postdiv = 6, mult = 19, prediv = 0
    [    0.000000] Architected local timer running at 200.00MHz (phys).
    [    0.000000] Switching to timer-based delay loop
    [    0.000000] sched_clock: ARM arch timer >56 bits at 200000kHz, resolution 640/128ns
    [    0.000000] keystone timer clock @200000000 MHz
    [    0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 4294967286ms
    [    0.000000] Console: colour dummy device 80x30
    [  672.558279] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
    [  672.558288] pid_max: default: 4096 minimum: 301
    [  672.558423] Mount-cache hash table entries: 512
    [  672.567039] CPU: Testing write buffer coherency: ok
    [  672.567223] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    [  672.567234] psci: probing function IDs from device-tree
    [  672.567246] Setting up static identity map for 0xc050e020 - 0xc050e078
    [  672.615542] CPU1: Booted secondary processor
    [  672.615572] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    [  672.663618] CPU2: Booted secondary processor
    [  672.663646] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
    [  672.711693] CPU3: Booted secondary processor
    [  672.711722] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
    [  672.711806] Brought up 4 CPUs
    [  672.711824] SMP: Total of 4 processors activated (1600.00 BogoMIPS).
    [  672.711829] CPU: All CPU(s) started in SVC mode.
    [  672.712279] devtmpfs: initialized
    [  672.724911] NET: Registered protocol family 16
    [  672.725804] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [  672.735721] No ATAGs?
    [  672.735738] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
    [  672.735744] hw-breakpoint: maximum watchpoint size is 8 bytes.
    [  672.745639] bio: create slab <bio-0> at 0
    [  672.746036] keystone-pcie: keystone_pcie_rc_init - start
    [  672.746058] keystone2_pcie_serdes_setup for domain 0
    [  672.748177] keystone2_pcie_serdes_setup done domain 0, en_link_train = 1
    [  672.748216] keystone-pcie: MEM 0x0000000050000000..0x000000005fffffff -> 0x0000000050000000
    [  672.748226] keystone-pcie: IO 0x0000000023250000..0x0000000023253fff -> 0x0000000000000000
    [  672.748257] keystone-pcie: pcie - number of legacy irqs = 4
    [  672.748301] keystone-pcie: pcie - number of MSI host irqs = 8, msi_irqs = 32
    [  672.858266] keystone-pcie: Doing PCI Setup...Done
    [  672.858271] keystone-pcie: Starting PCI scan, nr 0...
    [  672.858389] PCI host bridge to bus 0000:00
    [  672.858400] pci_bus 0000:00: root bus resource [mem 0x50000000-0x5fffffff]
    [  672.858407] pci_bus 0000:00: root bus resource [io  0x0000-0x3fff]
    [  672.858414] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
    [  672.858456] PCI: bus0: Fast back to back transfers enabled
    [  672.858471] keystone-pcie: Ending PCI scan...
    [  672.858479] keystone-pcie: keystone_pcie_rc_init - end
    [  672.858736] vgaarb: loaded
    [  672.859043] SCSI subsystem initialized
    [  672.859620] usbcore: registered new interface driver usbfs
    [  672.859700] usbcore: registered new interface driver hub
    [  672.859797] usbcore: registered new device driver usb
    [  672.860857] pps_core: LinuxPPS API ver. 1 registered
    [  672.860863] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [  672.860924] PTP clock support registered
    [  672.861046] keystone-hwqueue hwqueue.12: qmgr start queue 0, number of queues 8192
    [  672.861122] keystone-hwqueue hwqueue.12: added qmgr start queue 0, num of queues 8192, reg_peek f0040000, reg_status f0006000, reg_config f0008000, reg_region f000a000, reg_push f0080000, reg_pop f00c0000
    [  672.861130] keystone-hwqueue hwqueue.12: qmgr start queue 8192, number of queues 8192
    [  672.861201] keystone-hwqueue hwqueue.12: added qmgr start queue 8192, num of queues 8192, reg_peek f0100000, reg_status f000c400, reg_config f000e000, reg_region f001a000, reg_push f0140000, reg_pop f0180000
    [  672.861948] keystone-hwqueue hwqueue.12: qos: sched port @8096, drop sched @8000
    [  672.862922] keystone-hwqueue hwqueue.12: qos: sched port @6496, drop sched @6400
    [  672.863885] keystone-hwqueue hwqueue.12: added pool pool-rio: 128 descriptors of size 256
    [  672.863894] keystone-hwqueue hwqueue.12: added pool pool-xge: 1024 descriptors of size 128
    [  672.863902] keystone-hwqueue hwqueue.12: added pool pool-crypto: 1024 descriptors of size 128
    [  672.863910] keystone-hwqueue hwqueue.12: added pool pool-net: 11264 descriptors of size 128
    [  672.863918] keystone-hwqueue hwqueue.12: added pool pool-udma: 1920 descriptors of size 256
    [  672.866342] keystone-hwqueue hwqueue.12: registered queues 0-16383
    [  672.866678] keystone-hwqueue hwqueue.12: qos version 0x2000108, magic valid
    [  672.867171] keystone-hwqueue hwqueue.12: qos version 0x2000108, magic valid
    [  672.874264] keystone-pktdma 2a08000.pktdma: registered 32 logical channels, flows 32, tx chans: 32, rx chans: 32, loopback
    [  672.877888] keystone-pktdma 2004000.pktdma: registered 33 logical channels, flows 32, tx chans: 9, rx chans: 24
    [  672.878407] keystone-pktdma 2fa1000.pktdma: registered 4 logical channels, flows 32, tx chans: 16, rx chans: 16
    [  672.878533] Switching to clocksource arch_sys_counter
    [  672.896892] NET: Registered protocol family 2
    [  672.897359] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
    [  672.897472] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
    [  672.897581] TCP: Hash tables configured (established 8192 bind 8192)
    [  672.897631] TCP: reno registered
    [  672.897639] UDP hash table entries: 512 (order: 2, 16384 bytes)
    [  672.897665] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
    [  672.897855] NET: Registered protocol family 1
    [  672.898038] RPC: Registered named UNIX socket transport module.
    [  672.898045] RPC: Registered udp transport module.
    [  672.898049] RPC: Registered tcp transport module.
    [  672.898053] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [  672.898416] hw perfevents: enabled with ARMv7 Cortex-A15 PMU driver, 7 counters available
    [  672.973107] bounce pool size: 64 pages
    [  672.980174] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
    [  672.980340] NTFS driver 2.1.30 [Flags: R/O].
    [  672.980550] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
    [  672.980829] msgmni has been set to 1477
    [  672.981714] NET: Registered protocol family 38
    [  672.981897] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
    [  672.981905] io scheduler noop registered
    [  672.981910] io scheduler deadline registered
    [  672.982025] io scheduler cfq registered (default)
    [  672.983443] keystone-udma udma0.13: registered udma device udma0
    [  673.040132] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
    [  673.041676] 2530c00.serial: ttyS0 at MMIO 0x2530c00 (irq = 309) is a 16550A
    [  673.887940] console [ttyS0] enabled
    [  673.892059] 2531000.serial: ttyS1 at MMIO 0x2531000 (irq = 312) is a 16550A
    [  673.901966] loop: module loaded
    [  673.905245] at24 0-0050: 131072 byte 24c1024 EEPROM, writable, 1 bytes/write
    [  673.913534] Generic platform RAM MTD, (c) 2004 Simtec Electronics
    [  673.920683] ONFI param page 0 valid
    [  673.924181] ONFI flash detected
    [  673.927331] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xac (Micron MT29F4G08ABBDAHC), 512MiB, page size: 2048, OOB size: 64
    [  673.939010] Bad block table found at page 262080, version 0x01
    [  673.945256] Bad block table found at page 262016, version 0x01
    [  673.951371] 3 ofpart partitions found on MTD device 30000000.nand
    [  673.957483] Creating 3 MTD partitions on "30000000.nand":
    [  673.962908] 0x000000000000-0x000000100000 : "u-boot"
    [  673.968513] 0x000000100000-0x000000180000 : "params"
    [  673.974088] 0x000000180000-0x000020000000 : "ubifs"
    [  673.979731] davinci_nand 30000000.nand: controller rev. 2.5
    [  673.985905] spi_davinci 21000400.spi: master is unqueued, this is deprecated
    [  673.993248] m25p80 spi32766.0: found n25q128a11, expected n25q128
    [  673.999372] m25p80 spi32766.0: n25q128a11 (16384 Kbytes)
    [  674.004710] 2 ofpart partitions found on MTD device spi32766.0
    [  674.010565] Creating 2 MTD partitions on "spi32766.0":
    [  674.015718] 0x000000000000-0x000000080000 : "u-boot-spl"
    [  674.021652] 0x000000080000-0x000001000000 : "test"
    [  674.027345] spi_davinci 21000400.spi: Controller at 0xf007a400
    [  674.033495] spi_davinci 21000600.spi: master is unqueued, this is deprecated
    [  674.040576] spi_davinci 21000600.spi: Controller at 0xf007c600
    [  674.046721] spi_davinci 21000800.spi: master is unqueued, this is deprecated
    [  674.053804] spi_davinci 21000800.spi: Controller at 0xf007e800
    [  674.060659] tun: Universal TUN/TAP device driver, 1.6
    [  674.065724] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
    [  674.072360] keystone-netcp 2090000.netcp: missing num_serdes parameter
    [  674.078918] keystone-netcp 2090000.netcp: missing serdes_lanes parameter
    [  674.085643] keystone-netcp 2090000.netcp: missing serdes_ref_clk parameter
    [  674.092546] keystone-netcp 2090000.netcp: missing serdes_baud_rate parameter
    [  674.099624] keystone-netcp 2090000.netcp: missing serdes_rate_mode parameter
    [  674.106696] keystone-netcp 2090000.netcp: missing serdes_phy_intf parameter
    [  674.113687] keystone-netcp 2090000.netcp: missing serdes_loopback parameter
    [  674.120689] keystone-netcp 2090000.netcp: Missing cpts_clock_mult property in the DT.
    [  674.128546] keystone-netcp 2090000.netcp: Missing cpts_clock_shift property in the DT.
    [  674.136495] keystone-netcp 2090000.netcp: Missing cpts_clock_div property in the DT.
    [  674.145095] keystone-netcp 2090000.netcp: Created interface "eth0"
    [  674.151312] keystone-netcp 2090000.netcp: dma_chan_name nettx0
    [  674.157942] keystone-netcp 2090000.netcp: Created interface "eth1"
    [  674.164155] keystone-netcp 2090000.netcp: dma_chan_name nettx1
    [  674.170788] keystone-netcp 2090000.netcp: Created interface "eth2"
    [  674.176993] keystone-netcp 2090000.netcp: dma_chan_name nettx2
    [  674.183636] keystone-netcp 2090000.netcp: Created interface "eth3"
    [  674.189851] keystone-netcp 2090000.netcp: dma_chan_name nettx3
    [  674.195831] keystone-netcp 2090000.netcp: pdsp 0 firmware: keystone/pa_pdsp0_classify1.fw
    [  674.204045] keystone-netcp 2090000.netcp: pdsp 1 firmware: keystone/pa_pdsp1_classify1.fw
    [  674.212257] keystone-netcp 2090000.netcp: pdsp 2 firmware: keystone/pa_pdsp2_classify1.fw
    [  674.220472] keystone-netcp 2090000.netcp: pdsp 3 firmware: keystone/pa_pdsp3_classify2.fw
    [  674.228684] keystone-netcp 2090000.netcp: pdsp 4 firmware: keystone/pa_pdsp45_pam.fw
    [  674.236455] keystone-netcp 2090000.netcp: pdsp 5 firmware: keystone/pa_pdsp45_pam.fw
    [  674.244301] keystone-netcp 2090000.netcp: could not find interface 2 node in device tree
    [  674.252427] keystone-netcp 2090000.netcp: Attach of module keystone-qos declined with -19
    [  674.260640] keystone-netcp 2090000.netcp: could not find interface 3 node in device tree
    [  674.268765] keystone-netcp 2090000.netcp: Attach of module keystone-qos declined with -19
    [  674.276984] keystone-netcp 2090000.netcp: Attach of module keystone-sa declined with -19
    [  674.285109] keystone-netcp 2090000.netcp: Attach of module keystone-sa declined with -19
    [  674.294094] dwc3 2690000.dwc3: no usb2 phy configured
    [  674.299177] platform 2690000.dwc3: Driver dwc3 requests probe deferral
    [  674.306149] usbcore: registered new interface driver usb-storage
    [  674.312583] mousedev: PS/2 mouse device common for all mice
    [  674.318366] i2c /dev entries driver
    [  674.322476] watchdog 22f0080.wdt: heartbeat 60 sec
    [  674.338863] keystone-crypto 20c0000.crypto: crypto accelerator enabled
    [  674.345715] usbcore: registered new interface driver usbhid
    [  674.351311] usbhid: USB HID core driver
    [  674.355490]  remoteproc0: 2620040.dsp0 is available
    [  674.360391]  remoteproc0: Note: remoteproc is still under development and considered experimental.
    [  674.369386]  remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [  674.379796]  remoteproc0: no firmware found
    [  674.384109] rproc-user 2620040.dsp0: registered misc device dsp0
    [  674.390359]  remoteproc1: 2620044.dsp1 is available
    [  674.395251]  remoteproc1: Note: remoteproc is still under development and considered experimental.
    [  674.404247]  remoteproc1: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [  674.414666]  remoteproc1: no firmware found
    [  674.418984] rproc-user 2620044.dsp1: registered misc device dsp1
    [  674.425217]  remoteproc2: 2620048.dsp2 is available
    [  674.430119]  remoteproc2: Note: remoteproc is still under development and considered experimental.
    [  674.439116]  remoteproc2: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [  674.449526]  remoteproc2: no firmware found
    [  674.453831] rproc-user 2620048.dsp2: registered misc device dsp2
    [  674.460074]  remoteproc3: 262004c.dsp3 is available
    [  674.464965]  remoteproc3: Note: remoteproc is still under development and considered experimental.
    [  674.473963]  remoteproc3: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [  674.484374]  remoteproc3: no firmware found
    [  674.488690] rproc-user 262004c.dsp3: registered misc device dsp3
    [  674.494923]  remoteproc4: 2620050.dsp4 is available
    [  674.499828]  remoteproc4: Note: remoteproc is still under development and considered experimental.
    [  674.508825]  remoteproc4: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [  674.519233]  remoteproc4: no firmware found
    [  674.523542] rproc-user 2620050.dsp4: registered misc device dsp4
    [  674.529793]  remoteproc5: 2620054.dsp5 is available
    [  674.534685]  remoteproc5: Note: remoteproc is still under development and considered experimental.
    [  674.543682]  remoteproc5: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [  674.554089]  remoteproc5: no firmware found
    [  674.558395] rproc-user 2620054.dsp5: registered misc device dsp5
    [  674.564640]  remoteproc6: 2620058.dsp6 is available
    [  674.569540]  remoteproc6: Note: remoteproc is still under development and considered experimental.
    [  674.578529]  remoteproc6: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [  674.588936]  remoteproc6: no firmware found
    [  674.593251] rproc-user 2620058.dsp6: registered misc device dsp6
    [  674.599499]  remoteproc7: 262005c.dsp7 is available
    [  674.604390]  remoteproc7: Note: remoteproc is still under development and considered experimental.
    [  674.613387]  remoteproc7: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [  674.623804]  remoteproc7: no firmware found
    [  674.628112] rproc-user 262005c.dsp7: registered misc device dsp7
    [  674.634167] rproc-user dspmem.14: kick gpio
    [  674.638491] rproc-user dspmem.14: registered misc device dspmem
    [  674.644731] oprofile: using arm/armv7-ca15
    [  674.648965] ipip: IPv4 over IPv4 tunneling driver
    [  674.654060] gre: GRE over IPv4 demultiplexor driver
    [  674.658962] ip_gre: GRE over IPv4 tunneling driver
    [  674.664498] TCP: cubic registered
    [  674.667819] Initializing XFRM netlink socket
    [  674.672538] NET: Registered protocol family 10
    [  674.678052] NET: Registered protocol family 17
    [  674.682531] NET: Registered protocol family 15
    [  674.687036] Bridge firewalling registered
    [  674.691066] 8021q: 802.1Q VLAN Support v1.8
    [  674.696944] sctp: Hash tables configured (established 65536 bind 65536)
    [  674.703799] NET: Registered protocol family 41
    [  674.708377] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
    [  674.716085] Registering SWP/SWPB emulation handler
    [  674.922966] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
    [  674.928481] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
    [  674.936691] xhci-hcd xhci-hcd.0.auto: irq 425, io mem 0x02690000
    [  674.942793] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [  674.949613] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [  674.956859] usb usb1: Product: xHCI Host Controller
    [  674.961757] usb usb1: Manufacturer: Linux 3.10.61 xhci-hcd
    [  674.967259] usb usb1: SerialNumber: xhci-hcd.0.auto
    [  674.972594] hub 1-0:1.0: USB hub found
    [  674.976360] hub 1-0:1.0: 1 port detected
    [  674.980483] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
    [  674.985991] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
    [  674.993754] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
    [  675.000572] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [  675.007818] usb usb2: Product: xHCI Host Controller
    [  675.012716] usb usb2: Manufacturer: Linux 3.10.61 xhci-hcd
    [  675.018217] usb usb2: SerialNumber: xhci-hcd.0.auto
    [  675.023490] hub 2-0:1.0: USB hub found
    [  675.027258] hub 2-0:1.0: 1 port detected
    [  675.031588] UBI: attaching mtd2 to ubi0
    [  676.642388] UBI: scanning is finished
    [  676.652953] UBI warning: print_rsvd_warning: cannot reserve enough PEBs for bad PEB handling, reserved 40, need 76
    [  676.665574] UBI: attached mtd2 (name "ubifs", size 510 MiB) to ubi0
    [  676.671873] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
    [  676.678689] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
    [  676.685410] UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
    [  676.692311] UBI: good PEBs: 4080, bad PEBs: 4, corrupted PEBs: 0
    [  676.698335] UBI: user volume: 5, internal volumes: 1, max. volumes count: 128
    [  676.705499] UBI: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 405357443
    [  676.714493] UBI: available PEBs: 0, total reserved PEBs: 4080, PEBs reserved for bad PEB handling: 40
    [  676.723756] UBI: background thread "ubi_bgt0d" started, PID 1324
    [  676.730480] UBIFS: parse sync
    [  676.734867] UBIFS: background thread "ubifs_bgt0_2" started, PID 1327
    [  676.766326] UBIFS: start fixing up free space
    [  689.966860] UBIFS: free space fixup complete
    [  689.984026] UBIFS: mounted UBI device 0, volume 2, name "rootfs"
    [  689.990059] UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
    [  689.999229] UBIFS: FS size: 468795392 bytes (447 MiB, 3692 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
    [  690.009182] UBIFS: reserved for root: 0 bytes (0 KiB)
    [  690.014250] UBIFS: media format: w4/r0 (latest is w4/r0), UUID C83F28AB-A192-4273-BE8C-A522AB06D191, small LPT model
    [  690.026657] VFS: Mounted root (ubifs filesystem) on device 0:12.
    [  690.033738] devtmpfs: mounted
    [  690.036870] Freeing unused kernel memory: 328K (c072d000 - c077f000)
    INIT: version 2.88 booting
    Starting udev
    [  690.487364] udevd[1351]: starting version 182
    [  690.842587] uio_module_drv mpax.4: registered misc device mpax
    [  690.849802] uio_module_drv edma3.5: registered misc device edma3
    [  690.858659] uio_module_drv secmgr.6: registered misc device secmgr
    [  690.866751] uio_module_drv qmss.7: registered misc device qmss
    [  690.879637] uio_module_drv hyperlink0.17: registered misc device hyperlink0
    [  690.888723] uio_module_drv hyperlink1.18: registered misc device hyperlink1
    [  690.910006] uio_module_drv srio.19: registered misc device srio
    Starting Bootlog daemon: bootlogd.
    Configuring network interfaces... [  691.798733] keystone-netcp 2090000.netcp: initializing cpsw version 1.3 (1) SGMII identification value 0x4ed1
    [  691.808825] keystone-netcp 2090000.netcp: Created a cpsw ale engine
    [  691.929120] pps pps0: new PPS source ptp0
    [  691.933155] cpts rftclk rate(600000000 HZ),mult(5120),shift(10),div(3)
    [  691.974922] keystone-netcp 2090000.netcp: Using Packet Accelerator Firmware version 0x03000104
    [  691.983577] keystone-netcp 2090000.netcp: pa_clk_rate(163840000 HZ),mult(25000),shift(12)
    [  692.248956] net eth0: netcp device eth0 opened
    [  692.255663] 8021q: adding VLAN 0 to HW filter on device eth0
    udhcpc (v1.20.2) started
    Sending discover...
    Sending select for 192.168.2.12...
    Lease of 192.168.2.12 obtained, lease time 600
    /etc/udhcpc.d/50default: Adding DNS 192.168.2.1
    /etc/udhcpc.d/50default: Adding DNS 192.168.2.2
    done.
    net.ipv4.conf.default.rp_filter = 1
    net.ipv4.conf.all.rp_filter = 1
    Fri Mar 27 04:54:00 UTC 2015
    INIT: Entering runlevel: 5
    Starting system message bus: dbus.
    Starting Dropbear SSH server: Will output 1024 bit rsa secret key to '/etc/dropbear/dropbear_rsa_host_key'
    Generating key, this may take a while...
    Public key portion is:
    ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgwCp6X/nJu2K97Tlh/pXbphH2312vf1y76gmknOdFWTbyeU4fZp7UzXBVKFhVmCbXNWmU6qVzOoJoVFH/6Pf5ddSkPhjlpjSh3/0GJv7cBkqfQY/El0VOsBVHkp0CmAK6+3+/CZg7r6wLpXaSd7a4qHAayDxpRVzY6nHvqPCW1U4k7e5 root@k2hk-evm
    Fingerprint: md5 6d:14:71:41:68:c0:fc:e3:83:39:2c:d9:31:23:44:7d
    dropbear.
    cppi library link established for device : k2hk
    hyplnk library link established for device : k2hk
    qmss library link established for device : k2hk
    Starting mpmsrv daemon.
    platform: k2hk-evm
    Starting softhsm daemon.
    Starting telnet daemon.
    #>>>>> LCD 12
    IP Address:
    192.168.2.12
    Starting tiipclad daemon
    Opened log file: lad.txt
    
    Setting base cluster id to 0
    id = 0 baseId= 0
    
    Spawned daemon: /usr/bin/lad_tci6638
    
    .
    Starting syslog-ng:.
    Starting thttpd.
    Starting Lighttpd Web Server: lighttpd.
    2015-03-27 04:54:02: (log.c.166) server started
    * starting FTP Server: vsftpd... done.
    ***************************************************************
    ***************************************************************
    NOTICE: This file system contains the followin GPLv3 packages:
            autoconf
            binutils-symlinks
            binutils
            coreutils
            cpp-symlinks
            cpp
            g++-symlinks
            g++
            gcc-symlinks
            gcc
            gdb
            gdbserver
            libgmp10
            libmpfr4
            m4
            make
    
    If you do not wish to distribute GPLv3 components please remove
    the above packages prior to distribution.  This can be done using
    the opkg remove command.  i.e.:
        opkg remove <package>
    Where <package> is the name printed in the list above
    
    NOTE: If the package is a dependency of another package you
          will be notified of the dependent packages.  You should
          use the --force-removal-of-dependent-packages option to
          also remove the dependent packages as well
    ***************************************************************
    ***************************************************************
    Stopping Bootlog daemon: bootlogd.
    
     _____                    _____           _         _
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|
                  |___|                    |___|
    
    Arago Project http://arago-project.org k2hk-evm ttyS0
    
    Arago 2013.12 k2hk-evm ttyS0
    
    k2hk-evm login:

    Regards,

    Shankari.

  • Hi,
    What about default files (provided with sdk)? Shouldn't they work?

    the above mentioned procedure works fine with my EVM .

    But when I disconnect and reconnect power again. I have to load ubifs manually each time.

    Now I feel like i should restore original image.


    Ok just tell me how to restore factory settings.

    Regards