PINE64
how to enable /dev/mtd0 ? (towboot) - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111)
+--- Forum: General Discussion on Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=112)
+--- Thread: how to enable /dev/mtd0 ? (towboot) (/showthread.php?tid=16825)



how to enable /dev/mtd0 ? (towboot) - bburdette - 06-12-2022

I'm attempting to install nixos, which requires towboot.  Normal method to install towboot is to dd to an SD card and boot, but that doesn't work for me, or other folks. 

Workaround is to copy towboot to /dev/mtd0 with nandwrite.  I installed nandwrite, but /dev/mtd0 is not visible in my /dev folder. 

I pretty much have the default debian that came with the PBP.  How can I enable /dev/mtd0?  Is there another way to get towboot installed?


RE: how to enable /dev/mtd0 ? (towboot) - maxjrh - 06-13-2022

Does the stock debian kernel have `CONFIG_MTD` enabled? The Manjaro kernel does, `/dev/mtd` should always be visible in Manjaro.


RE: how to enable /dev/mtd0 ? (towboot) - rleasle - 06-13-2022

(06-12-2022, 12:30 PM)bburdette Wrote: I'm attempting to install nixos, which requires towboot.  Normal method to install towboot is to dd to an SD card and boot, but that doesn't work for me, or other folks. 

Workaround is to copy towboot to /dev/mtd0 with nandwrite.  I installed nandwrite, but /dev/mtd0 is not visible in my /dev folder. 

I pretty much have the default debian that came with the PBP.  How can I enable /dev/mtd0?  Is there another way to get towboot installed?

Towboot offers (recommends) the spi.installer.img, which you burn to an SD card and boot. From there, it gives you the option to burn towboot to the SPI (or erase the SPI if you want to erase it later). Very simple. Worked well for me. No additional tools required.