Netgear WNDR4300 - jffs not writeable

Post new topic   Reply to topic    DD-WRT Forum Index -> Qualcomm Atheros based Hardware
Author Message
Claudine
DD-WRT Novice


Joined: 12 Jul 2013
Posts: 9

PostPosted: Wed Aug 07, 2013 21:09    Post subject: Netgear WNDR4300 - jffs not writeable Reply with quote
If I enable jffs it is just readonly. How does it come?
My maschine has 128MB of flash Memory and not all is used, there should be plenty memory left for an writeable jffs.

_________________
Netgear WNDR4300
Build 22118
Sponsor
habeIchVergessen
DD-WRT User


Joined: 04 May 2010
Posts: 447

PostPosted: Thu Aug 08, 2013 9:01    Post subject: Reply with quote
enable jffs2 support on Administration -> Management config page (clear jffs2 needs to be checked).

check output of

Code:

mount; lsmod
Claudine
DD-WRT Novice


Joined: 12 Jul 2013
Posts: 9

PostPosted: Thu Aug 08, 2013 21:21    Post subject: Reply with quote
jffs2 is enabled
clean jffs2 behaves like an altzheimer patient, it's forgotten after reboot

mount -> no output
lsmod -> no output

_________________
Netgear WNDR4300
Build 22118
habeIchVergessen
DD-WRT User


Joined: 04 May 2010
Posts: 447

PostPosted: Fri Aug 09, 2013 10:08    Post subject: Reply with quote
clean jffs enabled formats jffs once. after this it is disabled.

mount doesn't output anything?

no line containing proc, rootfs or sysfs? no /jffs?

lsmod also without any output?

no ath9k or usb*?
Claudine
DD-WRT Novice


Joined: 12 Jul 2013
Posts: 9

PostPosted: Sun Aug 11, 2013 21:17    Post subject: Reply with quote
sorry, now there is some output:

mount:

rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
ramfs on /tmp type ramfs (rw,relatime)
none on /dev type tmpfs (rw,relatime,size=512k)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
devpts on /proc/bus/usb type usbfs (rw,relatime)

lsmod:

Module Size Used by
jffs2 87491 0
lzo_decompress 1348 0
lzo_compress 2404 0
lzma_compress 29199 1 jffs2
usb_storage 36208 0
sr_mod 11876 0
cdrom 31039 1 sr_mod
sd_mod 25844 0
scsi_mod 77467 3 usb_storage,sr_mod,sd_mod
ehci_pci 2596 0
ehci_hcd 33066 1 ehci_pci
usbcore 115135 4 usb_storage,ehci_pci,ehci_hcd
usb_common 1114 1 usbcore
ath9k 98521 0
ath9k_common 1398 1 ath9k
ath9k_hw 380436 2 ath9k,ath9k_common
ath 13199 3 ath9k,ath9k_common,ath9k_hw
mac80211 244484 1 ath9k
cfg80211 172235 2 ath9k,mac80211
compat 839 5 ath9k,ath9k_common,ath9k_hw,mac80211,cfg80211
ag71xx 22579 0

_________________
Netgear WNDR4300
Build 22118
habeIchVergessen
DD-WRT User


Joined: 04 May 2010
Posts: 447

PostPosted: Mon Aug 12, 2013 9:37    Post subject: Reply with quote
modules looks good. mount doesn't.

run cat /proc/mtd

search for ddwrt (like mtd3).

run mount -t jffs2 /dev/mtdblock/<your number; without mtd> /jffs

run dmesg and look for mount errors on output


Last edited by habeIchVergessen on Tue Aug 13, 2013 8:10; edited 1 time in total
Claudine
DD-WRT Novice


Joined: 12 Jul 2013
Posts: 9

PostPosted: Mon Aug 12, 2013 20:59    Post subject: Reply with quote
unfortunately not the hoped effect


-> mount /dev/mtdblock/3 /jffs
-> dmesg

8<--------------
<6>[ 1447.670000] jffs2: version 2.2. (NAND) (ZLIB) (LZMA) (RTIME) (CMODE_SIZE) © 2001-2006 Red Hat, Inc.
<5>[ 1451.430000] jffs2: Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
<5>[ 1451.440000] jffs2: empty_blocks 0, bad_blocks 0, c->nr_blocks 822
-------------->8

_________________
Netgear WNDR4300
Build 22118
habeIchVergessen
DD-WRT User


Joined: 04 May 2010
Posts: 447

PostPosted: Tue Aug 13, 2013 8:09    Post subject: Reply with quote
format jffs seems to fail.

you can try to run the following command to format the partition. but you have to know the correct block size of your flash chip !!! be careful !!!

Code:

mkfs.jffs2 -o /dev/mtdblock/<your number; without mtd> -n -b -e <block size in bytes, example 131072 / 0x20000 = 128kB or 65536 / 0x10000 = 64kB> -p


i guess you should pm BrainSlayer.


Last edited by habeIchVergessen on Mon Sep 16, 2013 13:53; edited 1 time in total
fritzfox
DD-WRT Novice


Joined: 28 Aug 2013
Posts: 11
Location: Denver

PostPosted: Wed Aug 28, 2013 15:08    Post subject: Linksys E2500 v2 - jffs not writeable Reply with quote
Please help - any suggestions? My jffs is read-only as well. I am using a Linksys e2500 flashed with mega. The e2500 has 8MB of flash.

I (of course) tried all the steps on http://www.dd-wrt.com/wiki/index.php/Journalling_Flash_File_System, still read-only after several attempts and reboots.

At last I tried
mkfs.jffs2 -o /dev/mtdblock/4 -n -b -e 0x10000 -p
and it says mkfs.jffs2 is not found.
I tried looking in /sbin and /usr/sbin and didn't see it there. `which` provided no location for mkfs.jffs2 of course.
I did notice an `mtd` command which I could not get to work to do the same thing.

----
my mounts show no jffs (same)
my modules show jffs2 loaded with nothing using it, but a few compression modules used by it. (same)
my /proc/mtd shows
mtd4: 00020000 00010000 "ddwrt"

when I try `mount /dev/mtdblock/4 /jffs`, dmesg contains no traces of jffs. Also dmesg does not "grow" after the mount command.

root@DD-WRT:/# dmesg > /tmp/dmesg.1
root@DD-WRT:/# mount /dev/mtdblock/4 /jffs
root@DD-WRT:/# dmesg > /tmp/dmesg.2
dmesg.1 and dmesg.2 are the same

Thanks!
--Fritz
LOM
DD-WRT Guru


Joined: 28 Dec 2008
Posts: 7643

PostPosted: Wed Aug 28, 2013 15:53    Post subject: Re: Linksys E2500 v2 - jffs not writeable Reply with quote
fritzfox wrote:

my /proc/mtd shows
mtd4: 00020000 00010000 "ddwrt"



128KB free on the flash is not enough for jffs2, it needs 192KB only for directory and journalling so you need to have minimum 256KB free.

_________________
Kernel panic: Aiee, killing interrupt handler!
fritzfox
DD-WRT Novice


Joined: 28 Aug 2013
Posts: 11
Location: Denver

PostPosted: Thu Aug 29, 2013 15:03    Post subject: Re: Linksys E2500 v2 - jffs not writeable Reply with quote
LOM wrote:

128KB free on the flash is not enough for jffs2...


That makes perfect sense, Thanks! I loaded a smaller firmware package, and jffs2 works out of the box with plenty of space Very Happy
Claudine
DD-WRT Novice


Joined: 12 Jul 2013
Posts: 9

PostPosted: Wed Sep 18, 2013 20:26    Post subject: solved Reply with quote
1) mkfs.jffs2 -o /dev/mtdblock/3 -n -b -e 0x20000
2) mount -t jffs2 /dev/mtdblock/3 /jffs

Administration -> JFFS2 support: Total / Free Size 102.75 MB / 100.12 MB

check also this: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=171458&highlight=wndr4300

Thanks to user habeIchVergessen

_________________
Netgear WNDR4300
Build 22118
papagogo
DD-WRT Novice


Joined: 15 Sep 2007
Posts: 8

PostPosted: Tue Feb 23, 2016 4:20    Post subject: Reply with quote
It's a great method to solve wndr4300 's some issue from customed openwrt firmware.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Qualcomm Atheros based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum