Hello,

Getting jffs2 error while booting rootfs from jffs2:
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000eac:
0x1ed6 instead

Any ideas how to make it bootable from flash?

dev:    size   erasesize  name
mtd0: 00030000 00001000 "uboot"
mtd1: 00010000 00001000 "env"
mtd2: 00140000 00001000 "linux"
mtd3: 00630000 00001000 "rootfs"
mtd4: 00010000 00001000 "nvram"
mtd5: 00010000 00001000 "factory"
mtd6: 00020000 00001000 "language"
mtd7: 00010000 00001000 "caldata"
mtd8: 00770000 00001000 "firmware
Creating 9 MTD partitions on "spi0.0":
0x000000000000-0x000000030000 : "uboot"
0x000000030000-0x000000040000 : "env"
0x000000040000-0x000000180000 : "linux"
0x000000180000-0x0000007b0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
split_squashfs: no squashfs found in "spi0.0"
0x0000007b0000-0x0000007c0000 : "nvram"
0x0000007c0000-0x0000007d0000 : "factory"
0x0000007d0000-0x0000007f0000 : "language"
0x0000007f0000-0x000000800000 : "caldata"
0x000000040000-0x0000007b0000 : "firmware"

Uboot:
loadFilesmax=tftpboot 0x80010000 ap94-jffs2;erase 0xbf180000 +0x630000;cp.b
0x80010000 0xbf180000 0x630000
loadLinuxmax=tftpboot 0x80010000 vmlinux.gz.uImage;erase 0xbf040000
+0x140000; cp.b 0x80010000 0xbf040000 0x140000
bootcmd=bootm 0xbf040000

ar7100> md 0xbf180000
bf180000: 19852003 0000000c f060dc98 1985e001    .. ......`......
bf180010: 0000002b 3e422427 00000001 00000000    ...+>B$'........
bf180020: 00000002 4ddd9c9c 03040000 bd787f91    ....M........x..
bf180030: 556683ff 62696eff 1985e002 00000044    Uf..bin........D
bf180040: a4ef223e 00000002 00000001 000041ed    ..">..........A.


Boot log:
U-Boot 1.1.4 (Oct 22 2008 - 12:35:32)

AP94 (ar7100) U-boot 0.0.12
DRAM:  b8050000: 0xc0140180
32 MB
Top of RAM usable for U-Boot at: 82000000
Reserving 4308k for U-Boot at: 81bc8000
Reserving 192k for malloc() at: 81b98000
Reserving 44 Bytes for Board Info at: 81b97fd4
Reserving 36 Bytes for Global Data at: 81b97fb0
Reserving 128k for boot params() at: 81b77fb0
Stack Pointer at: 81b77f98
Now running in RAM - U-Boot at: 81bc8000
id read 0x100000ff
flash size 8MB, sector count = 128
Flash:  8 MB
BOARD IS NOT CALIBRATED!!!
In:    serial
Out:   serial
Err:   serial
......
Kernel command line:  console=ttyS0,115200 board=WRT400N board=WRT400N
root=31:03 rootfstype=squashfs,jffs2 noinitrd
.......

Node at 0x00000ea4 with length 0x00000685 would run over the end of the
erase block
Perhaps the file system was created with the wrong erase size?
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000eac:
0x1ed6 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000ec0:
0x0006 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000ec4:
0x4ddd instead


I tried:
1.  to boot it from initrd, mtd erase rootfs; mount /dev/mtdblock3 /mnt;
untar rootfs.
2. Boot with initrd and upgrade with web interface.

Both 1 and 2 and boot process described before gets the same results.

Also I can not revert flash back to default settings. Board runs tftp server
at the booting,
but does not accept firmware from official Linksys cite or ddwrt firmware.

Any ideas what is it?

-- 
Best regards,
Maxim Uvarov
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to