OpenWrt Forum Archive

Topic: WBR G54 + Firstboot Problem

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

Hi,

I try to run OpenWrt on Buffalo WBRG54.
i successfully flashed the ap but i can't create the jffs filesystem.
When i run /bin/firstboot,  nothing occurs.

I suspect an mtd/partition problem.
I use CVS version of OpenWrt.
I try Sweasoft Firmware, it works normaly.

Here is my dmesg logs :

@(none):/#
@(none):/# /bin/firstboot
Erasing OpenWrt
@(none):/#


@(none):/# dmesg
scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070004: 0x9c79 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070008: 0x9305 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0007000c: 0xb6f4 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070010: 0xad6e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070014: 0x6190 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070018: 0x27c0 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0007001c: 0xb649 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070020: 0x3ca2 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070024: 0xb3d7 instead
Further such events for this erase block will not be printed
Old JFFS2 bitmask found at 0x000791a8
You cannot use older JFFS2 filesystems with newer kernels
JFFS2: Erase block at 0x00070000 is not formatted. It will be erased
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080000: 0xdf0f instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080004: 0x8857 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080008: 0xc1f6 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0008000c: 0x8037 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080010: 0xe563 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080014: 0x7987 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080018: 0xe5ea instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0008001c: 0x7b9f instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080020: 0xffa8 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080024: 0xc0b7 instead
Further such events for this erase block will not be printed
JFFS2: Erase block at 0x00080000 is not formatted. It will be erased
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090000: 0x87ae instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090004: 0xda51 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090008: 0x9a39 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0009000c: 0xe260 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090010: 0x7bb7 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090014: 0xe489 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090018: 0x53df instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0009001c: 0x39de instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090020: 0x6575 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090024: 0x3a39 instead
Further such events for this erase block will not be printed
JFFS2: Erase block at 0x00090000 is not formatted. It will be erased
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0000: 0xc507 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0004: 0xcfaa instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0008: 0xf4a7 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a000c: 0xb07f instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0010: 0x488f instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0014: 0x3bad instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0018: 0xbb68 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a001c: 0x251b instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0020: 0xdc41 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0024: 0x1eef instead
Further such events for this erase block will not be printed
JFFS2: Erase block at 0x000a0000 is not formatted. It will be erased
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0000: 0xa648 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0004: 0xd5d5 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0008: 0x1ce9 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b000c: 0x2169 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0010: 0xf363 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0014: 0x18e6 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0018: 0x2651 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b001c: 0xfa3d instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0020: 0x9a2f instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0024: 0x6a67 instead
Further such events for this erase block will not be printed
JFFS2: Erase block at 0x000b0000 is not formatted. It will be erased
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0000: 0x8566 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0004: 0x4285 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0008: 0x2983 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c000c: 0x3fc0 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0010: 0xe59a instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0014: 0x60ff instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0018: 0x287b instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c001c: 0xc83d instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0020: 0x9cb0 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0024: 0x188d instead
Further such events for this erase block will not be printed
JFFS2: Erase block at 0x000c0000 is not formatted. It will be erased
Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
VFS: Mounted root (squashfs filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 68k freed
Warning: unable to open an initial console.
Algorithmics/MIPS FPU Emulator v1.5
eth0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 3.50.21.10
eth1: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 3.50.21.10
PCI: Enabling device 01:01.0 (0004 -> 0006)
eth2: Broadcom BCM43XX 802.11 Wireless Controller  3.50.21.10 (Compiled in . at 20:53:00 on Jan 21 2004)
device eth0 entered promiscuous mode
device eth2 entered promiscuous mode
br0: port 2(eth2) entering learning state
br0: port 1(eth0) entering learning state
br0: port 2(eth2) entering forwarding state
br0: topology change detected, propagating
br0: port 1(eth0) entering forwarding state
br0: topology change detected, propagating
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00228000: 0x4c46 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00228004: 0x3184 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00228008: 0x01eb instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00228014: 0x6e69 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00228018: 0x656e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0022801c: 0x7361 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00228020: 0x3532 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00228024: 0x3532 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00228028: 0x3532 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0022802c: 0x0030 instead
Further such events for this erase block will not be printed
JFFS2: Erase block at 0x00220000 is not formatted. It will be erased
Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
@(none):/#

Thanks,
Genoa

Check what the following output is:

mtd unlock OpenWrt
mtd erase OpenWrt
mount -t jffs2 /dev/mtdblock/4 /jffs

Here is a result of the cmd :

@(none)# mtd unlock OpenWrt
Unlocking OpenWrt
OpenWrt: No such file or directory

@(none)# mount -t jffs2 /dev/mtdblock/4 /jffs
mount: Mounting /dev/mtdblock/4 on /jffs failed: Invalid argument

Any clue???
Genoa

Finaly i solved problem with my WBR-G54.

I just changed the kernel_args :

from :

kernel_args=noinitrd console=ttyS0,115200 root=/dev/mtdblock2 panic=1

to:

kernel_args=root=/dev/mtdblock2 rootfstype=squashfs init=/etc/preinit noinitrd console=ttyS0,115200 panic=1

I just had exactly the same problem, thanks a lot for the info! Also to help out any super n00bs (like myself), to change the kernel_args, you just need to change the setting in nvram like this:

nvram set kernel_args="root=/dev/mtdblock2 rootfstype=squashfs init=/etc/preinit noinitrd console=ttyS0,115200 panic=1"

Thanks a lot, this helped me too. For us super-newbies, don't forget to nvram commit and reboot as well... wink

The only other problem I encountered with my WBR-G54 was that wlconf isn't there anymore. I suppose this is documented somewhere, but after the wl0_* variables are set, wifi eth2 down && wifi eth2 up does the trick. Remember to enter wl0_key1 in hex (search google for a calculator if necessary). iwconfig behaved somewhat strangely, iwconfig eth2 enc s:key (passing key in ASCII) didn't seem to be acceptable.

Windows 2000's tftp command was enough to pass the TRX image to the AP. After plugging power, wait half a sec so that the diag led turns off before hitting enter on the put command. I used openwrt-brcm-2.4-squashfs.trx since White Russian's readme file recommends squashfs.

Should I be bold enough to update the Wiki page? http://openwrt.org/OpenWrtDocs/Hardware/Buffalo/WBR-G54

There really shouldn't be any need to set kernel_args since the defaults are compiled into the kernel. If you set kernel_args and we change them then it'll just use the old value from kernel_args, which is perhaps the problem in the first place.

mbm, not sure what you mean. After I had done the tftp transfer and some waiting, I logged on to the WBR-G54 and the log resembled Genoa's quite closely. Nothing seemed to be mounted and even /proc was at least partially missing. After setting the kernel parameters above, remembering to 'nvram commit' and rebooting the WBR-G54 was fine.

Just now, White Russian seems to have segfaulted. I was doing a backup via the WLAN interface and simultaneously downloading w2ksp4 on the LAN. The transfers are still on, but trying to log on to the device will result in multiple 'Aiee, segfault, perhaps you should report this to a developer' error messages. Unsure on how to report the exact problem though - I have ample time during the following few days and can gladly help in debugging, if necessary. I've got two WBR-G54's over here.

(After a bit of waiting while writing this post, the problem seems to have disappeared. The following SSH login still yielded a 'segmentation fault' message, but now everything seems to work fine again. Nothing about the incident in the log, and all processes seem to be running fine. Uptime normal.)

(Last edited by pervert on 11 Jul 2005, 13:49)

The discussion might have continued from here.