ok, dziala, skompilowalem trunka:
Mon May 28 10:49:01 2018 kern.warn kernel: [ 0.566283] m25p80 spi0.0: found W25Q128JVSIM, expected m25p80
Mon May 28 10:49:01 2018 kern.info kernel: [ 0.581833] m25p80 spi0.0: W25Q128JVSIM (16384 Kbytes)
Mon May 28 10:49:01 2018 kern.notice kernel: [ 0.587629] Creating 6 MTD partitions on "spi0.0":
Mon May 28 10:49:01 2018 kern.notice kernel: [ 0.592593] 0x000000000000-0x00000000e000 : "routerboot"
Mon May 28 10:49:01 2018 kern.notice kernel: [ 0.599709] 0x00000000e000-0x00000000f000 : "hard_config"
Mon May 28 10:49:01 2018 kern.notice kernel: [ 0.606983] 0x00000000f000-0x000000010000 : "bios"
Mon May 28 10:49:01 2018 kern.notice kernel: [ 0.613686] 0x000000010000-0x00000001f000 : "routerboot2"
Mon May 28 10:49:01 2018 kern.notice kernel: [ 0.621040] 0x00000001f000-0x000000020000 : "soft_config"
Mon May 28 10:49:01 2018 kern.notice kernel: [ 0.628392] 0x000000020000-0x000001000000 : "firmware"
Mon May 28 10:49:01 2018 kern.notice kernel: [ 0.635894] 2 minor-fw partitions found on MTD device firmware
Mon May 28 10:49:01 2018 kern.notice kernel: [ 0.642018] 0x000000020000-0x0000001b0000 : "kernel"
Mon May 28 10:49:01 2018 kern.notice kernel: [ 0.648860] 0x0000001b0000-0x000001000000 : "rootfs"
Mon May 28 10:49:01 2018 kern.notice kernel: [ 0.655667] mtd: device 7 (rootfs) set to be root filesystem
Mon May 28 10:49:01 2018 kern.notice kernel: [ 0.661640] 1 squashfs-split partitions found on MTD device rootfs
Mon May 28 10:49:01 2018 kern.notice kernel: [ 0.668046] 0x0000003c0000-0x000001000000 : "rootfs_data"
patch:
--- a/drivers/mtd/spi-nor/spi-nor.c
+++ b/drivers/mtd/spi-nor/spi-nor.c
@@ -1153,6 +1153,8 @@ static const struct flash_info spi_nor_i
{ "w25q80bl", INFO(0xef4014, 0, 64 * 1024, 16, SECT_4K) },
{ "w25q128", INFO(0xef4018, 0, 64 * 1024, 256, SECT_4K) },
{ "w25q256", INFO(0xef4019, 0, 64 * 1024, 512, SECT_4K) },
+ { "W25Q128JVSIM", INFO(0xef7018, 0x0, 64 * 1024, 256, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
+
/* Catalyst / On Semiconductor -- non-JEDEC */
{ "cat25c11", CAT25_INFO( 16, 8, 16, 1, SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) },
@Cezary- dodasz do swojego obrazu?