1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

JFFS2 problem

Discussion in 'Tomato Firmware' started by Slavedriver, Dec 9, 2007.

  1. Slavedriver

    Slavedriver LI Guru Member

    I am probably a damn unlucky person but after failing to get CIFS to work (read a thread somewhere nearby if you can help or have any crazy ideas) and still wanting to back up my bandwidth data (basically the sole feature I switched to Tomato in the first place) I decided to go FTP backup way. For that to work properly I needed some sort of storage space to place the scripts because doing it in WAN_UP, INIT etc. stages while echoing the scripts to RAM just won't cut it. So I decided to enable JFFS2 and place the scripts there as described in the how-to. Clicked enable, waited a bit, received an error sending me to log. The log had the following:

    Dec 9 18:14:24 user.notice kernel: JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB.
    Dec 9 18:14:24 user.notice kernel: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0xecf5 instead
    Dec 9 18:14:24 user.notice kernel: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000004: 0x379d instead
    Dec 9 18:14:24 user.notice kernel: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000008: 0xfb96 instead
    Dec 9 18:14:24 user.notice kernel: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000000c: 0x47d7 instead
    Dec 9 18:14:24 user.notice kernel: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000010: 0x307a instead
    Dec 9 18:14:24 user.notice kernel: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000014: 0xf8a3 instead
    Dec 9 18:14:24 user.notice kernel: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000018: 0xb663 instead
    Dec 9 18:14:24 user.notice kernel: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000001c: 0x63f8 instead
    Dec 9 18:14:24 user.notice kernel: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000020: 0x059c instead
    Dec 9 18:14:24 user.notice kernel: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000024: 0xdaa6 instead
    Dec 9 18:14:24 user.notice kernel: Further such events for this erase block will not be printed
    Dec 9 18:14:24 user.notice kernel: JFFS2: Erase block at 0x00000000 is not formatted. It will be erased
    Dec 9 18:14:24 user.notice kernel: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010000: 0xc0e0 instead
    Dec 9 18:14:24 user.notice kernel: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010004: 0xaa3d instead
    Dec 9 18:14:24 user.notice kernel: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010008: 0xdbd5 instead
    Dec 9 18:14:24 user.notice kernel: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001000c: 0x8986 instead
    Dec 9 18:14:24 user.notice kernel: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010010: 0x1efe instead
    Dec 9 18:14:24 user.notice kernel: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010014: 0x42e0 instead
    Dec 9 18:14:24 user.notice kernel: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010018: 0xa4f6 instead
    Dec 9 18:14:24 user.notice kernel: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001001c: 0x920e instead
    Dec 9 18:14:24 user.notice kernel: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010020: 0x8a8f instead
    Dec 9 18:14:24 user.notice kernel: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010024: 0x754a instead
    Dec 9 18:14:24 user.notice kernel: Further such events for this erase block will not be printed
    Dec 9 18:14:24 user.notice kernel: JFFS2: Erase block at 0x00010000 is not formatted. It will be erased
    Dec 9 18:14:24 user.notice kernel: Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
    Dec 9 18:14:24 user.info init[1]: notice: Error mounting JFFS2. Check the logs to see if they contain more details about this error.


    Router is WRT54GL v1.1, Tomato v1.13.1252
     
  2. mstombs

    mstombs Network Guru Member

    I use jffs but not yet on V1.13 . I'll try upgrading and see if it works for me...

    and seems fine, After enabling and formatting this is all I got in the log
    Code:
    Jan  1 00:01:59 wrt54gs user.notice kernel: JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB.
    Jan  1 00:02:00 wrt54gs user.info init[1]: notice: Formatted.
    Jan  1 00:02:08 wrt54gs user.notice root: Executing Init Script after 120s wait
    Jan  1 00:02:27 wrt54gs user.info ddns-update[232]: Time not yet set.
    Jan  1 00:02:53 wrt54gs user.notice kernel: JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB.
    (time wrong because dnsmasq uses an adlock.conf on /jffs which isn't mounted yet)

    One slight strange thing I copied my /jffs contents back onto router, then rebooted. On reboot /jffs did not automount. So I re-enabled (files still there), saved, nvram commit'ed and rebooted again and it all worked...

    Tomato Firmware v1.13.1252 wrt54gsv1.1 jffs details Total / Free Size 4,992.00 KB / 4,288.00 KB
     
  3. Slavedriver

    Slavedriver LI Guru Member

    Oh, my bad. I clicked "Enable" and "Save" w/o actually formatting the partition :) After formatting it all works fine. Now if only I could get CIFS to work...
     

Share This Page