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.

problem on Linux c6x filesystem

hi to all

i try to boot linux c6x on C6678 EVM

i download kernel 2.0.0.63 from TI

create .bin image 

write "evmc6678-initramfs-demo.el-hf-linux-c6x-2.0.0.63.bin" on NAND flash

boot linux c6x from NAND on c6678 EVM

connect to linux with telnet and make directory and transfer file using ftp and web panel

but after reboot all of changes removed !

i have some questions:

Q1: how i can create persistence file that not remove after reboot?

Q2: on Linux c6x wiki said :

New, Improved, or Fixed in the Release

Changes in 2.0 since 2.0-beta2:

.....

  • build JFFS images (JIT w/ templates)

.....

how can create JFFS2 image on my target board?

Q3: What difference is there between "evmc6678-initramfs-min.el-hf-linux-c6x-2.0.0.63.bin" and "evmc6678-jffs2.el-hf-linux-c6x-2.0.0.63.bin" and other .bin file in linux-c6x-2.0.0.63\product directory ?

thanks

  • Hi,


    write "evmc6678-initramfs-demo.el-hf-linux-c6x-2.0.0.63.bin" on NAND flash

    boot linux c6x from NAND on c6678 EVM

    connect to linux with telnet and make directory and transfer file using ftp and web panel

    but after reboot all of changes removed !

    Yes, it will be removed all the settings after reboot since you have booted with ram filesystem (ramfs) and its not permanent, just running on RAM.


    Q3: What difference is there between "evmc6678-initramfs-min.el-hf-linux-c6x-2.0.0.63.bin" and "evmc6678-jffs2.el-hf-linux-c6x-2.0.0.63.bin" and other .bin file in linux-c6x-2.0.0.63\product directory ?


    "evmc6678-jffs2.el-hf-linux-c6x-2.0.0.63.bin" this binary can be used to flash and boot from NAND in "jffs2" filesystem type.

    "evmc6678-initramfs-min.el-hf-linux-c6x-2.0.0.63.bin" this binary can be used for booting filesystem on RAM (ramdisk).

    Please refer to the following TI wiki page.

    processors.wiki.ti.com/.../Initrd
  • Thanks Titusrathinaraj for your replay

    i write "evmc6678-jffs2.el-hf-linux-c6x-2.0.0.63.bin" on NAND flash to use jffs2 but after boot from nand my terminal output is:

    VFS: Mounted root (jffs2 filesystem) on device 31:3.
    Freeing unused kernel memory: 140K freed
    Kernel panic - not syncing: No init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
    Stack from 8e017f9c:
    80317e64 80317e68 8033ee54 803c93e8 00000000 803c7010 803c5c24 800015fc
    8033cb2e 8e1b9f80 8c007080 803c5c24 803c5c24 803a3b70 00000000 00000000
    00000000 00000000 00000000 80001ecc 00000000 00000000 00000000 00000000
    00000000
    Call trace: [<80317e64>] panic+0x64/0x120
    [<80317e68>] panic+0x68/0x120
    [<800015fc>] init_post+0xec/0x1c4
    [<803a3b70>] kernel_init+0x1d0/0x200
    [<80001ecc>] kernel_thread_helper+0x18/0x1c

    INFO: RCU detected CPU 0 stall (t=2500 jiffies)
    INFO: RCU detected CPU 0 stall (t=10000 jiffies)

    i attach full output in txt file

    what's the problem?

    there are no init.txt in linux c6x folders !

    7142.jffs2.txt

    on this wiki page said:

    "We first assume that system is booted using one of the temporary (development) file systems (initramfs, NFS, or removable media) which kernel mounts as initial file system and which then can be used to create file system in NOR or NAND flash. Once this is done, in second step, support for this temporary (development) file system can be disabled (in bootloader and in kernel) and kernel directly can mount file system in NOR or NAND flash."

    my question is how i can disable temporary file system and use permanent file system?

    use of initramfs is good way?

    thanks for support...

  • i try to mount my file system on NAND flash using MTD

    linux c6x command line:

    / # cat /proc/mtd
    dev: size erasesize name
    mtd0: 00000000 00000000 "ROMfs"
    mtd1: 00004000 00004000 "bootconfig"
    mtd2: 00ffc000 00004000 "kernel"
    mtd3: 03000000 00004000 "filesystem"
    mtd4: 01000000 00010000 "test"

    i chose mtd 3:

    /mnt # flash_eraseall -j /dev/mtd3
    Erasing 16 Kibyte @ 3000000 -- 100 % complete.Cleanmarker written at 2ffc000.

    # mkdir /tmp/nand

    # mount -t jffs2 /dev/mtdblock$MTD_ID /tmp/nand

    create 2 simple file:

    /tmp/nand # ls
    EA test.txt

    i edit /etc/fstab and add /dev/mtdblock3

    vi /etc/fstab
    sysfs /sys sysfs defaults 0 0
    proc /proc proc defaults 0 0
    tmpfs /tmp tmpfs defaults 0 0
    /dev/mtdblock3 /root jffs2 defaults 0 0

    / # df -h
    Filesystem Size Used Available Use% Mounted on
    /dev/mtdblock3 48.0M 1.3M 46.7M 3% /tmp/nand

    but after reboot all directory removed

    i think problem in rootfs and i can't change it using this cammand:

    setenv bootargs console=ttyS0,115200n8 root=/dev/mtdblock3 rootfstype=jffs2 rw mem=32M ip=off

    can't execute 'setenv': No such file or directory

    any body can help me?

  • Hi, Ebi,

    Is the jffs2 filesystem programmed to the NAND? I think you just NAND boot the kernel which uses jffs filesystem, but the filesystem itself is not programmed to the mtd partition. Please take a look at the Software Ecosystem Features, jffs2 Filesystem Support, and in which "Generating a jffs2 filesystem", and give it a try.

    Rex

  • Here is the link to linux-c6x Software EcoSystem, www.linux-c6x.org/.../Software_Ecosystem_Features. The page you referred regarding filesystem on NOR or NAND does not apply to linux-c6x.
  • Hi Rex

    thanks for replay and following

    i check Software Ecosystem in this jffs2 file system created using mkfs.jffs2 command on host 

    in this step i try to create jffs2 on my 6678 EVM

    on this wiki page said :

    "The release will have a script that can be used to make a jffs2 filesystem and a kernel with an appropriate command line."

    and on this wiki page said :

    New, Improved, or Fixed in the Release

    Changes in 2.0 since 2.0-beta2:

    ...

    build JFFS images (JIT w/ templates)

    ...

    can i create this image on EVM board ?

    if yes please introduce some reference for linux c6x .

    thanks a lot

    Ebi

  • Hi, Ebi,

    No, the image can not be created on EVM. it needs to be created on host and burn to hte NAND following the instruction in the wiki.

    Rex

  • hi Rex

    my problem solved

    i boot initramfs on board

    write .jffs2 filesystem on NAND flash using webpanel

    boot jffs2 on board 

    all added file and directory remain after reboot

    thanks for support

    Ebi