Skip to content
Snippets Groups Projects
Select Git revision
  • 89b3dca8b5319657b37fa5ad736a65bef87f53e9
  • v2018.2.x default
  • experimental
  • master
  • v2021.1.2-ffs
  • v2021.1.1-ffs
  • nrb/gluon-master-cpe510
  • v2021.1-ffs
  • v2020.2.3-ffs
  • nrbffs/fastd-remove-delay
  • v2020.2.2-ffs
  • v2020.2.1-ffs
  • v2020.2-ffs
  • v2020.2.x
  • v2020.1.3-ffs
  • v2020.1.1-ffs
  • v2020.1-ffs
  • v2019.1.2-ffs
  • v2019.1.1-ffs
  • nrb/test-radv-filter
  • v2019.1-ffs
  • nrbffs/netgear-ex6120
  • v2021.1.2-ffs0.2
  • v2021.1.2-ffs0.1
  • v2021.1.1-ffs0.4
  • v2021.1.1-ffs0.3
  • v2021.1.1-ffs0.2
  • v2021.1.1-ffs0.1
  • v2021.1-ffs0.1
  • v2020.2.3-ffs0.3
  • v2020.2.3-ffs0.2
  • v2020.2.3-ffs0.1
  • v2020.2.2-ffs0.1
  • v2020.2.1-ffs0.1
  • v2020.2-ffs0.1
  • v2020.2
  • v2020.2.x-ffs0.1
  • v2020.1.3-ffs0.1
  • v2020.1.1-ffs0.1
  • v2020.1-ffs0.1
  • v2019.1.2-ffs0.1
  • v2019.1.1-ffs0.1
42 results

0043-kernel-disable-software-protection-bits-for-macronix-flash-chips-at-init.patch

Blame
  • Forked from firmware / FFS Gluon
    3877 commits behind the upstream repository.
    user avatar
    Matthias Schiffer authored
    The bootloader of AirOS 5.6.x doesn't remove the flash protection for us,
    so we have to do this ourselves.
    89b3dca8
    History
    0043-kernel-disable-software-protection-bits-for-macronix-flash-chips-at-init.patch 938 B
    From: Matthias Schiffer <mschiffer@universe-factory.net>
    Date: Fri, 26 Feb 2016 04:24:06 +0100
    Subject: kernel: disable software protection bits for macronix flash chips at init
    
    Backport of r47626
    
    diff --git a/target/linux/generic/patches-3.18/465-m25p80-mx-disable-software-protection.patch b/target/linux/generic/patches-3.18/465-m25p80-mx-disable-software-protection.patch
    new file mode 100644
    index 0000000..d7d7eec
    --- /dev/null
    +++ b/target/linux/generic/patches-3.18/465-m25p80-mx-disable-software-protection.patch
    @@ -0,0 +1,10 @@
    +--- a/drivers/mtd/spi-nor/spi-nor.c
    ++++ b/drivers/mtd/spi-nor/spi-nor.c
    +@@ -962,6 +962,7 @@ int spi_nor_scan(struct spi_nor *nor, co
    + 
    + 	if (JEDEC_MFR(info->jedec_id) == CFI_MFR_ATMEL ||
    + 	    JEDEC_MFR(info->jedec_id) == CFI_MFR_INTEL ||
    ++	    JEDEC_MFR(info->jedec_id) == CFI_MFR_MACRONIX ||
    + 	    JEDEC_MFR(info->jedec_id) == CFI_MFR_SST) {
    + 		write_enable(nor);
    + 		write_sr(nor, 0);