OpenWrt Forum Archive

Topic: How to clear yaffs partition?

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

I have a RouterBoard 433ah and I installed OpenWRT (last trunk) on it.
I then recompile the linux kernel to OpenWrt and then copied to the boot partition (/dev/mtdblock1 or "kernel"). But before this, I forgot to erase from the boot partition the old kernel. On the "kernel" partition is not enough space - "said" VFS.
I reboot and I had to format NAND flash from the bootloader (RouterBoot). When I downloaded the kernel by tftp again, on the "kernel" partition is not enough space even for linux kernel:

root@OpenWrt:/# df -h
Filesystem           1K-blocks      Used Available Use% Mounted on
tmpfs                    63664              40     63624       0%      /tmp
tmpfs                    512                  0       512           0%      /dev
/dev/mtdblock1   3840                 2304      1536    60%    /mnt

Now I can not copy the kernel to that partition and install OpenWrt sad
How do I clean up this partition?

I have the same situation, but I didn't forgot to erase anything

root@OpenWrt:/# df -h
Filesystem                Size      Used Available Use% Mounted on
tmpfs                    62.1M     40.0K     62.1M   0% /tmp
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/mtdblock1            3.8M      2.3M      1.5M  60% /mnt

and here is the content:

root@OpenWrt:/# ls -la /mnt/
drw-rw-rw-    1 root     root         2048 Jan  1 00:12 .
drwxr-xr-x   17 root     root            0 Jan  1 00:00 ..
drw-rw-rw-    1 root     root         2048 Jan  1 00:12 lost+found

Thank you.

Regards
dblackberr

It seems that is control information of partition. And the solution maybe a smaller kernel image or put it on rootfs partition and change it in the boot loader.
Somebody can tell if it is possible to do?

Regards
dblackbeer

The discussion might have continued from here.