OpenWrt/LEDE Project

  • Status Closed
  • Percent Complete
  • Task Type Bug Report
  • Category Base system
  • Assigned To No-one
  • Operating System All
  • Severity High
  • Priority Very Low
  • Reported Version lede-17.01
  • Due in Version Undecided
  • Due Date Undecided
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by louislu213 - 21.08.2018
Last edited by Adrian Schmutzler - 19.06.2020

FS#1802 - mt7620 32M flash using lede firmware can not reboot

Supply the following if possible:
After got the firmware using lede 17.01 version, the MT7628 can not reboot. i find some guides from the internet, and operated according the guide, but can not compile successfully.
The internet guide is as flowing:

static int m25p_remove(struct spi_device *spi)

struct m25p	*flash = spi_get_drvdata(spi);

// manfeel note: add spi flash reset code
flash->command[0] = 0x66;
spi_write(flash->spi, flash->command, 1);
flash->command[0] = 0x99;
spi_write(flash->spi, flash->command, 1);
/* Clean up MTD stuff. */
return mtd_device_unregister(&flash->mtd);


static struct spi_driver m25p80_driver = {

.driver = {
	.name	= "m25p80",
	.owner	= THIS_MODULE,
.id_table	= m25p_ids,
.probe	= m25p_probe,
.remove	= m25p_remove,
// manfeel, add shutdown method to reset spi flash
.shutdown = m25p_remove,
/* REVISIT: many of these chips have deep power-down modes, which
 * should clearly be entered on suspend() to minimize power use.
 * And also when they're otherwise idle...


After i finished the changes, the compile can not pass:

there will be some error information, please check the attached picture:

-Werror incompatible pointer types,

it is very urgent for this case. hope you can help us as soon as possible!

thanks very much


Closed by  Adrian Schmutzler
19.06.2020 11:21
Reason for closing:  Won't fix
Additional comments about closing:  

LEDE-17.01 has reached EOL (end of life). This bug has been closed automatically. If the problem persists with a newer version, please file an appropriate new bug report for that version.

vortigont commented on 25.09.2018 17:07

I'm running mt7620 with 32M SPI flash and works just fine. Which flash type you are using?

Chen Minqiang commented on 29.10.2018 03:05


Available keyboard shortcuts


Task Details

Task Editing