Flashing filesystems larger than RAM
From Manuals
Contents |
The [[Electrum-100 Manual|Electrum User's Manual] suggests using the U-Boot bootloader to flash the kernel and root filesystem to NAND. U-Boot performs this in two steps. First the file is copied from the original source (USB, TFTP, microSD) to RAM using fatload, tftp, etc. Then it is copied from RAM to NAND using "nand write". This procedure is simple but limits the filesystem to be flashed to available RAM. Files can be copied to the root filesystem after Linux boots but this makes the procedure more cumbersome.
For larger filesystems a better alternative is to flash from Linux. This requires booting the board using a medium other than NAND such as microSD, USB or NFS. This application note explains the procedure using a microSD card. It can be easily adapted to USB or NFS boots.
Setup MTD Utilities
1. First, prepare a bootable microSD card using the procedure in the Wiki.
