feat: Add phy reg default when boot

This commit is contained in:
Wu Jian Gang
2018-12-29 14:17:28 +08:00
parent dd7e8a5db0
commit 12ec433d9a
4 changed files with 5 additions and 2 deletions

View File

@ -10,6 +10,6 @@ LINKER_SCRIPTS := \
$(IDF_PATH)/components/esp8266/ld/esp8266.rom.ld \ $(IDF_PATH)/components/esp8266/ld/esp8266.rom.ld \
esp8266.bootloader.rom.ld esp8266.bootloader.rom.ld
COMPONENT_ADD_LDFLAGS += -L $(COMPONENT_PATH) $(addprefix -T ,$(LINKER_SCRIPTS)) COMPONENT_ADD_LDFLAGS += -L $(IDF_PATH)/components/esp8266/lib -lcore -L $(COMPONENT_PATH) $(addprefix -T ,$(LINKER_SCRIPTS))
COMPONENT_ADD_LINKER_DEPS := $(LINKER_SCRIPTS) COMPONENT_ADD_LINKER_DEPS := $(LINKER_SCRIPTS)

View File

@ -629,6 +629,9 @@ static esp_err_t bootloader_main()
fhdr.spi_mode = CONFIG_SPI_FLASH_MODE; fhdr.spi_mode = CONFIG_SPI_FLASH_MODE;
#endif #endif
extern void phy_reg_default(void);
phy_reg_default();
update_flash_config(&fhdr); update_flash_config(&fhdr);
print_flash_info(&fhdr); print_flash_info(&fhdr);

View File

@ -1,5 +1,5 @@
gwen: gwen:
core: 1d123ab core: 176661b
net80211: 0f9461d net80211: 0f9461d
pp: 8ec2d94 pp: 8ec2d94
wpa: 4e2372f wpa: 4e2372f

Binary file not shown.