FritzBox 7520 OpenWrt snapshot

Now, I have a Fritzbox 7520 and I do all this stuff on:

till this:

sysupgrade -n /tmp/avm_fritzbox-7530-squashfs-sysupgrade.bin

all works fine. After the reboot, the box is still waiting for my tftp server. When I start my tpft server, the box allways download the initramfs image ... then I have to do all steps again ...


Can anybodey help?

It looks like as if the volumes avm_filesys_0 and avm_filesys_1 doesn't exist.
Could you please post the output of ubinfo -a ?

root@OpenWrt:/tmp# ubinfo -a
UBI version:                    1
Count of UBI devices:           1
UBI control device major/minor: 10:126
Present UBI devices:            ubi0

ubi0
Volumes count:                           4
Logical eraseblock size:                 126976 bytes, 124.0 KiB
Total amount of logical eraseblocks:     852 (108183552 bytes, 103.1 MiB)
Amount of available logical eraseblocks: 0 (0 bytes)
Maximum count of volumes                 128
Count of bad physical eraseblocks:       20
Count of reserved physical eraseblocks:  0
Current maximum erase counter value:     1005
Minimum input/output unit size:          2048 bytes
Character device major/minor:            245:0
Present volumes:                         0, 1, 2, 3

Volume ID:   0 (on ubi0)
Type:        dynamic
Alignment:   1
Size:        364 LEBs (46219264 bytes, 44.0 MiB)
State:       OK
Name:        avm_filesys_0
Character device major/minor: 245:1
--------------------
Volume ID:   1 (on ubi0)
Type:        dynamic
Alignment:   1
Size:        364 LEBs (46219264 bytes, 44.0 MiB)
State:       OK
Name:        avm_filesys_1
Character device major/minor: 245:2
--------------------
Volume ID:   2 (on ubi0)
Type:        dynamic
Alignment:   1
Size:        17 LEBs (2158592 bytes, 2.0 MiB)
State:       OK
Name:        avm_config
Character device major/minor: 245:3
--------------------
Volume ID:   3 (on ubi0)
Type:        dynamic
Alignment:   1
Size:        103 LEBs (13078528 bytes, 12.4 MiB)
State:       OK
Name:        avm_userdata
Character device major/minor: 245:4
root@OpenWrt:/tmp# 

now, the box booting in initramfs ... I can install luci and luci says, I am in the initramfs, I should do install a vaild openWRT image. I do that and install it, red led is flashing, than rebooting and than the box freeze, I think?

EDIT: the box booting in initramfs, any time?

Well, that's a bit weird...
In the output of ubinfo -a you can see that the original avm_filesys_0 and avm_filesys_1 are still there. On the other hand, ubirmvol can't find them.

@janh @dhewg
Could you please chime in and share your wisdom?

now, I am in the initrams.
ubinfo -a

root@OpenWrt:~# ubinfo -a
UBI version:                    1
Count of UBI devices:           1
UBI control device major/minor: 10:126
Present UBI devices:            ubi0

ubi0
Volumes count:                           3
Logical eraseblock size:                 126976 bytes, 124.0 KiB
Total amount of logical eraseblocks:     813 (103231488 bytes, 98.4 MiB)
Amount of available logical eraseblocks: 0 (0 bytes)
Maximum count of volumes                 128
Count of bad physical eraseblocks:       59
Count of reserved physical eraseblocks:  0
Current maximum erase counter value:     8200
Minimum input/output unit size:          2048 bytes
Character device major/minor:            245:0
Present volumes:                         0, 1, 2

Volume ID:   0 (on ubi0)
Type:        dynamic
Alignment:   1
Size:        27 LEBs (3428352 bytes, 3.2 MiB)
State:       OK
Name:        kernel
Character device major/minor: 245:1
-----------------------------------
Volume ID:   1 (on ubi0)
Type:        dynamic
Alignment:   1
Size:        31 LEBs (3936256 bytes, 3.7 MiB)
State:       OK
Name:        rootfs
Character device major/minor: 245:2
-----------------------------------
Volume ID:   2 (on ubi0)
Type:        dynamic
Alignment:   1
Size:        751 LEBs (95358976 bytes, 90.9 MiB)
State:       OK
Name:        rootfs_data
Character device major/minor: 245:3

now, I do a sysupgrade:

sysupgrade -n /tmp/openwrt-ipq40xx-generic-avm_fritzbox-7530-squashfs-sysupgrade.bin

after this, the box reboot and waiting again of my tftp server. Why?
what

The story continues: AVM FritzBox 7520 - OpenWrt snapshot