#define CONFIG_DM9000_USE_16BIT /* select serial console configuration */ #define CONFIG_SERIAL1 1 /* 使用串口 */ /***RTC ***/ #define CONFIG_RTC_S3C24X0 1 /* allow to overwrite serial and ethaddr */ #define CONFIG_ENV_OVERWRITE #define CONFIG_BAUDRATE 38400 /* 波特率使用38400 *...
/* allow to overwrite serial and ethaddr */ #define CONFIG_ENV_OVERWRITE #endif /*设置环境变量在nand中的存储位置擦出长度*/ #define CONFIG_ENV_IS_IN_NAND #define CONFIG_ENV_OFFSET 0x00040000 //环境变量存储的起始 nand 地址 #define CONFIG_ENV_SIZE 0x20000 /*128K正好是一个块,nand擦出是按...
CONFIG_ENV_OVERWRITE=nCONFIG_ENV_IS_IN_FLASH=nCONFIG_ENV_IS_IN_MMC=nCONFIG_ENV_IS_IN_NAND=n This means that U-Boot uses the fixed environment variables, which are determined at compile time. I can now get to the U-Boot prompt. 0 Kudos Reply 12-01-2021 01:40 AM 10,877 ...
// #define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + 0x070000) // #define CONFIG_ENV_IS_IN_FLASH // #define CONFIG_ENV_SIZE 0x10000 // /* allow to overwrite serial and ethaddr */ // #define CONFIG_ENV_OVERWRITE 增加如下宏定义: #define CONFIG_ENV_IS_IN_NAND #define CONFIG_ENV_O...
B、#define CONFIG_TI814X_OPTI_CONFIG 编译得到u-boot.opti.nand这个也是类似UBOOTMIN的宏编译,只不过编译得到的BIN文件是通过串口下载到板子上启动。 对应RDK总的Makefile编译脚本: ubootopti: $(MAKE) ubootclean (MAKE)ubootbuildMAKETARGET=(MAKE)ubootbuildMAKETARGET=(PLATFORM_CFG)_ipnc_opti_nand...
#if defined(CONFIG_OVERWRITE_ETHADDR_ONCE) && defined(CONFIG_ETHADDR)&& (strcmp ((char *)env_get_addr(oldval),MK_STR(CONFIG_ETHADDR)) != 0) #endif /* CONFIG_OVERWRITE_ETHADDR_ONCE && CONFIG_ETHADDR */ ) ) { printf (“Can’t overwrite \”%s\”\n”, name); return 1; ...
#endif四、解决U-Boot命令行中不能够重新设置ethaddr的问题,经常会提示Can’toverwrite“ethaddr”中函数_do_setenv中找到#ifndefCONFIG_ENV_OVERWRITE/*EthernetAddressandserial#canbesetonlyonce,verisreadonly.*/#ifdefCONFIG_HAS_UID/*Allowserial#forcedoverwritewith0xdeaf4addflag*/...
* overwrite all exception vector code, so we cannot easily * recover from any failures any more... */ iflag = disable_interrupts(); #ifdef CONFIG_AMIGAONEG3SE /* * We've possible left the caches enabled during * bios emulation, so turn them off again ...
$(obj)board/*/config.tmp $(obj)board/*/*/config.tmp 显然,执行# make smdk2410_config时,先执行unconfig目标,注意不指定输出目标时,obj,src变量均为空,unconfig下面的命令清理上一次执行make *_config时生成的头文件和makefile的包含文件。主要是include/config.h 和include/config.mk文件。
-> /etc/fw_env.config still points to mtd6 (now the "0:RPM" partition) 5. sysupgrade is started again * some information should be written to u-boot-env but the upgrade script will now overwrite some important information of "0:RPM" (mtd6) ...