OpenWrt Forum Archive

Topic: configuration not saving

The content of this topic has been archived on 22 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

hello,
i'm using Kamikaze on a WRT54G
i tried to change my ip address
so i do vi /etc/config/network
then
uci commit
then /etc/init.d/network restart

the router is rebooting but it has always the old parameters...

i don't know why...
do you have an idea ?

thanks a lot

What IP address? The LAN IP address?

Hi,

this

vi /etc/config/network
uci commit

is horrible wrong!

If you edit something in /etc/config/*, just reboot.

The uci commit is only necessary if you have modified the configuration also via uci.

HTH,
Thomas

thanks for help but it the same
i simply edit /etc/config/network
reboot and the file is undo !
for exemple when i used passwd command
and reboot
there is no password at all and no ssh...
i'm using kamikaze r13193

Hi.

Maybe your jffs2 was not initialized correctly? Sounds like your system runs from ramdisk.
Type "dmesg; logread" directly after reboot. You should see some jffs related errors.

Do you use a custom image? Maybe it's too big so that no space for the writeable partition is left.

~ JoW

(Last edited by jow on 9 Dec 2008, 12:00)

yes maybe there is a problem with jffs2
here is the dmesg (last lines )

corwardly refusing to erase bloks on filesystem with no valid JFFSE nodes

what can i do then ?

thanks a lot...

Hi.

Can you post the output of
cat /proc/mtd and the full dmesg ?

~ JoW

thanks jow here is my dmesg and mtd

Linux version 2.6.25.20 (andy@devsandbox.padded-cell.net) (gcc version 4.1.2) #2 Sat Nov 15 18:38:43 PST 2008
console [early0] enabled
CPU revision is: 00024000 (Broadcom BCM4710)
ssb: Core 0 found: SDRAM (cc 0x803, rev 0x00, vendor 0x4243)
ssb: Core 1 found: ILine 20 (cc 0x801, rev 0x00, vendor 0x4243)
ssb: Core 2 found: Fast Ethernet (cc 0x806, rev 0x00, vendor 0x4243)
ssb: Core 3 found: V90 (cc 0x807, rev 0x00, vendor 0x4243)
ssb: Core 4 found: USB 1.1 Hostdev (cc 0x808, rev 0x00, vendor 0x4243)
ssb: Core 5 found: PCI (cc 0x804, rev 0x00, vendor 0x4243)
ssb: Core 6 found: MIPS (cc 0x805, rev 0x00, vendor 0x4243)
ssb: Core 7 found: EXTIF (cc 0x811, rev 0x00, vendor 0x4243)
ssb: Core 8 found: Fast Ethernet (cc 0x806, rev 0x00, vendor 0x4243)
ssb: Initializing MIPS core...
ssb: set_irq: core 0x0806, irq 2 => 2
ssb: set_irq: core 0x0804, irq 4 => 3
ssb: set_irq: core 0x0806, irq 0 => 4
ssb: Sonics Silicon Backplane found at address 0x18000000
Serial init done.
Determined physical RAM map:
memory: 01000000 @ 00000000 (usable)
Entering add_active_range(0, 0, 4096) 0 entries of 256 used
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal          0 ->     4096
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0:        0 ->     4096
On node 0 totalpages: 4096
  Normal zone: 32 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 4064 pages, LIFO batch:0
  Movable zone: 0 pages used for memmap
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 init=/etc/preinit noinitrd console=ttyS0,115200
Enabling BCM4710A0 cache workarounds.
Primary instruction cache 8kB, VIPT, 2-way, linesize 16 bytes.
Primary data cache 4kB, 2-way, VIPT, no aliases, linesize 16 bytes
Synthesized clear page handler (26 instructions).
Synthesized copy page handler (46 instructions).
PID hash table entries: 64 (order: 6, 256 bytes)
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 13564k/16384k available (2082k kernel code, 2820k reserved, 315k data, 128k init, 0k highmem)
Calibrating delay loop... 82.68 BogoMIPS (lpj=165376)
Mount-cache hash table entries: 512
net_namespace: 540 bytes
NET: Registered protocol family 16
Switched to high resolution mode on CPU 0
ssb: PCIcore in host mode found
Registering a PCI bus after boot
PCI: Fixing up bridge 0000:00:00.0
PCI: Setting latency timer of device 0000:00:00.0 to 64
PCI: Fixing up device 0000:00:00.0
PCI: Fixing latency timer of device 0000:00:00.0 to 168
PCI: Enabling device 0000:00:08.0 (0000 -> 0002)
PCI: Fixing up device 0000:00:08.0
PCI: Setting latency timer of device 0000:00:08.0 to 64
ssb: Core 0 found: ChipCommon (cc 0x800, rev 0x04, vendor 0x4243)
ssb: Core 1 found: IEEE 802.11 (cc 0x812, rev 0x05, vendor 0x4243)
ssb: Core 2 found: PCMCIA (cc 0x80D, rev 0x02, vendor 0x4243)
ssb: Core 3 found: V90 (cc 0x807, rev 0x02, vendor 0x4243)
ssb: Core 4 found: PCI (cc 0x804, rev 0x09, vendor 0x4243)
ssb: SPROM revision 1 detected.
ssb: Sonics Silicon Backplane found on PCI device 0000:00:08.0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP reno registered
detected lzma initramfs
initramfs: LZMA lc=1,lp=2,pb=2,origSize=512
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing enabled
b44.c:v2.0
eth0: Broadcom 44xx/47xx 10/100BaseT Ethernet 00:0c:41:36:ee:3d
eth1: Broadcom 44xx/47xx 10/100BaseT Ethernet 00:0c:41:36:ee:3e
flash init: 0x1fc00000 0x00400000
Physically mapped flash: Found 1 x16 devices at 0x0 in 16-bit bank
Intel/Sharp Extended Query Table at 0x0035
Using auto-unlock on power-up/resume
cfi_cmdset_0001: Erase suspend on write enabled
erase region 0: offset=0x0,size=0x2000,blocks=8
erase region 1: offset=0x10000,size=0x10000,blocks=63
Flash device: 0x400000 at 0x1fc00000
bootloader size: 262144
Creating 4 MTD partitions on "Physically mapped flash":
0x00000000-0x00040000 : "cfe"
0x00040000-0x003f0000 : "linux"
0x000fe400-0x003f0000 : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=240000, len=1B0000
0x00240000-0x003f0000 : "rootfs_data"
0x003f0000-0x00400000 : "nvram"
TCP vegas registered
NET: Registered protocol family 1
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
turn off boot console early0
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 128k freed
Please be patient, while OpenWrt loads ...
Algorithmics/MIPS FPU Emulator v1.5
diag: Detected 'Linksys WRT54G V1.x'
b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and off for RX.
roboswitch: Probing device eth0: No Robo switch in managed mode found
roboswitch: Probing device eth1: <3>roboswitch: [/home/andy/openwrt/brcm47xx/build_dir/linux-brcm47xx/kmod-switch/switch-robo.c:117] SIOCGETCPHYRD failed!
roboswitch: [/home/andy/openwrt/brcm47xx/build_dir/linux-brcm47xx/kmod-switch/switch-robo.c:117] SIOCGETCPHYRD failed!
No Robo switch in managed mode found
roboswitch: Probing device eth2: No such device
roboswitch: Probing device eth3: No such device
b44: eth0: powering down PHY
mini_fo: using base directory: /
mini_fo: using storage directory: /tmp/root
b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and off for RX.
br-lan: Dropping NETIF_F_UFO since no NETIF_F_HW_CSUM feature.
device eth0.0 entered promiscuous mode
device eth0 entered promiscuous mode
br-lan: port 1(eth0.0) entering learning state
br-lan: topology change detected, propagating
br-lan: port 1(eth0.0) entering forwarding state
There is already a switch registered on the device 'eth0'
roboswitch: Probing device eth1: <3>roboswitch: [/home/andy/openwrt/brcm47xx/build_dir/linux-brcm47xx/kmod-switch/switch-robo.c:117] SIOCGETCPHYRD failed!
roboswitch: [/home/andy/openwrt/brcm47xx/build_dir/linux-brcm47xx/kmod-switch/switch-robo.c:117] SIOCGETCPHYRD failed!
No Robo switch in managed mode found
roboswitch: Probing device eth2: No such device
roboswitch: Probing device eth3: No such device
b43-phy0: Broadcom 4306 WLAN found
phy0: Selected rate control algorithm 'pid'
Broadcom 43xx driver loaded [ Features: NLR, Firmware-ID: FW13 ]
Broadcom 43xx-legacy driver loaded [ Features: LRD, Firmware-ID: FW10 ]
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0xdede instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010000: 0xdede instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020000: 0x8585 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020004: 0x0c0c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020008: 0xb1b1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030000: 0x8585 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030004: 0x0c0c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030008: 0xb1b1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040000: 0x8585 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040004: 0x0c0c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040008: 0xb1b1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050000: 0x8585 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050004: 0x0c0c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050008: 0xb1b1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060000: 0x8585 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060004: 0x0c0c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060008: 0xb1b1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070000: 0x8585 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070004: 0x0c0c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070008: 0xb1b1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080000: 0x8585 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080004: 0x0c0c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080008: 0xb1b1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090000: 0x8585 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090004: 0x0c0c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090008: 0xb1b1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0000: 0x8585 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0004: 0x0c0c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0008: 0xb1b1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0000: 0x8585 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0004: 0x0c0c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0008: 0xb1b1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0000: 0x8585 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0004: 0x0c0c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0008: 0xb1b1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d0000: 0x8585 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d0004: 0x0c0c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d0008: 0xb1b1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0000: 0x8585 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0004: 0x0c0c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0008: 0xb1b1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f0000: 0x8585 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f0004: 0x0c0c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f0008: 0xb1b1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00100000: 0x8585 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00100004: 0x0c0c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00100008: 0xb1b1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00110000: 0x8585 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00110004: 0x0c0c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00110008: 0xb1b1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00120000: 0x8585 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00120004: 0x0c0c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00120008: 0xb1b1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00130000: 0x8585 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00130004: 0x0c0c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00130008: 0xb1b1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00140000: 0x8585 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00140004: 0x0c0c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00140008: 0xb1b1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00150000: 0x8585 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00150004: 0x0c0c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00150008: 0xb1b1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00160000: 0x8585 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00160004: 0x0c0c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00160008: 0xb1b1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00170000: 0x8585 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00170004: 0x0c0c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00170008: 0xb1b1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00180000: 0x8585 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00180004: 0x0c0c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00180008: 0xb1b1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00190000: 0x8585 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00190004: 0x0c0c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00190008: 0xb1b1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0019000c: 0x8585 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00190010: 0x4444 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00190014: 0x1d1d instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00190018: 0x0202 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0019001c: 0x0101 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00190020: 0xeded instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0019002c: 0xc7c7 instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001a0000: 0x8585 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001a0004: 0x0c0c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001a0008: 0xb1b1 instead
Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
empty_blocks 0, bad_blocks 0, c->nr_blocks 27




dev:    size   erasesize  name
mtd0: 00040000 00010000 "cfe"
mtd1: 003b0000 00010000 "linux"
mtd2: 002f1c00 00010000 "rootfs"
mtd3: 001b0000 00010000 "rootfs_data"
mtd4: 00010000 00010000 "nvram"

Hi.

Run this command and reboot:

mtd erase rootfs_data

Does the same error ("jffs2_scan_eraseblock") still occur?

~ JoW

when i first launch mtd erase rootfs_data and reboot i've no more errors...

but when i tried to write something (passwd or network) and then reboot
so i've again the errors...

exactly the same here. this is really annoying...

i have the same problem with wrt54g v1.1
"mtd erase rootfs_data" "solves" the erasedata logmessages, but jffs is still not working, mount_root crashes the router
seems that any 2.6 kernel version has the same problem on this router.
or is there a working wrt54g with 2.6 out there?

greets

The discussion might have continued from here.