Installing OpenWrt to Zyxel 3301-PLUS, problems with ubiformat

Hi,

I follow this instructions:

  • Log in as "admin" on http://192.168.1.1/
  • Upload OpenWrt initramfs-recovery.bin image on the Maintenance -> Firmware page

-> I Uploaded openwrt-ramips-mt7621-zyxel_lte3301-plus-initramfs-recovery.bin and did firmware update.

- Wait for OpenWrt to boot and ssh to root@192.168.1.1
- format ubi device: ubiformat /dev/mtd6
- attach ubi device: ubiattach -m6
- create rootfs volume: ubimkvol /dev/ubi0 -n0 -N rootfs -s 1MiB
- rootfs_data volume: ubimkvol /dev/ubi0 -n1 -N rootfs_data -s 1MiB
- run sysupgrade with sysupgrade image
I'am successfully logged to device with putty root@192.168.1.1 .
ubiformat /dev/mtd6 command gives me: 
ubiformat: error!: please, first detach mtd6 (/dev/mtd6) from ubi0

Can someone push me to the right direction what to do or where to study to make this work.

I checked partitions but this don't tell me much at this point.

root@OpenWrt:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00080000 00020000 "uboot"
mtd1: 00080000 00020000 "uboot_env"
mtd2: 00040000 00020000 "factory"
mtd3: 01ec0000 00020000 "Kernel"
mtd4: 01ec0000 00020000 "kernel2"
mtd5: 00100000 00020000 "wwan"
mtd6: 03ee0000 00020000 "ubi"

ubidetach /dev/mtd6 ?

Thank you, ubidetach worked.

format should be: ubidetach -m6

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.