This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How (in linux) to flash regions of SPI connected flash on the 1808?

I have an 1808 with SPI connected flash - I do not need a full filesystem but would like to be able to write a small region of flash (by address).  basically I need a few kilobytes for an application configuration blob

I've been very successful using uBoot,  I'm hoping for a similar setup (read/write) but in linux

is there a 1808 linux driver for SPI connected flash?  whats the device name (is it a standard driver?)

  • here is a similar question - cross linking for the next guy,  in hopes someone knows the answer :)

    http://e2e.ti.com/support/embedded/linux/f/354/p/163569/801167.aspx#801167

  • I think I have a working solution - I'm hoping to get feedback if this is correct/etc

    a) from the kernel add MTD support (Drivers->Memory Technology Devices (MTD)->MTD partitioning and Command line partition table parsing

    b) from uBoot add partition table info to CONFIG_BOOTARGS (mtdparts=m25p80:192K(u-boot)ro,64K(u-boot-args)ro,7936K(Linux))

    c) from linux create the devnodes
           1) mknod /dev/mtd0 c 90 0

           2) mknod /dev/mtd1 c 90 2   <-- note this is 2

           3) mknod /dev/mtd2 c 90 4   <-- note this is 4

    the end result ends up being three partitions that show up by cat'ing /proc/mtd -  further they can be erased/written to using the flash_xxx applets busybox