01-18-2024 12:22 PM
On a C9117AXI-E I have removed both partitions using "ubi remove part1" and "ubi remove part2".
I need to find a way to restore one of the partitions so the device can boot again.
Any attempt in using tftp has failed so far, it seems impossible to connect. I tried using a USB flash drive, which can connect, but I'm not able to get the device working again.
It tried the following commands to recreate the partitions and add a .bin file data inside.
setenv mtdids nand0=nand0 && setenv mtdparts mtdparts=nand0:0x40000000@0x0(fs) && ubi part fs
ubi remove part1
ubi remove part2
ubi create part1 20000000
ubi create part2
usb start
fatload usb 0:1 ${loadaddr} C9800-AP-iosxe-wlc.bin
ubi write.part ${loadaddr} part1 ${filesize}
But after booting, this is not accepted and errors are thrown.
Which commands can allow to restore the access point ?