u-boot: Error: Can't overwrite "ethaddr"

简介:

When try to execute following command, It reports error as following:

--->8---

U-Boot> setenv ethaddr 4a:74:1f:75:31:56
## Error: Can't overwrite "ethaddr"
## Error inserting "ethaddr" variable, errno=1

---8<---

细致阅读README文件,有例如以下描写叙述:

--->8---

- Vendor Parameter Protection:


                U-Boot considers the values of the environment
                variables "serial#" (Board Serial Number) and
                "ethaddr" (Ethernet Address) to be parameters that
                are set once by the board vendor / manufacturer, and
                protects these variables from casual modification by
                the user. Once set, these variables are read-only,
                and write or delete attempts are rejected. You can
                change this behaviour:


                If CONFIG_ENV_OVERWRITE is #defined in your config
                file, the write protection for vendor parameters is
                completely disabled. Anybody can change or delete
                these parameters.


                Alternatively, if you #define _both_ CONFIG_ETHADDR
                _and_ CONFIG_OVERWRITE_ETHADDR_ONCE, a default
                Ethernet address is installed in the environment,
                which can be changed exactly ONCE by the user. [The
                serial# is unaffected by this, i. e. it remains
                read-only.]


                The same can be accomplished in a more flexible way
                for any variable by configuring the type of access
                to allow for those variables in the ".flags" variable
                or define CONFIG_ENV_FLAGS_LIST_STATIC.

---8<---

这样,最简单的方法是增加板相关文件:CONFIG_ENV_OVERWRITE 再次编译u-boot。写重启的问题得到解决。






本文转自mfrbuaa博客园博客,原文链接:http://www.cnblogs.com/mfrbuaa/p/5049201.html,如需转载请自行联系原作者


相关文章
|
Java
Can&#39;t convert boolean to string automatically, because the &quot;boolean_format&quot; setting was &quot;true,false&quot;
五月 11, 2017 5:06:50 下午 freemarker.log._JULLoggerFactory$JULLogger error 严重: Error executing FreeMarker template FreeMarker template error: Can't con...
2810 0
|
JavaScript 编译器
模块 &quot;&quot;element-plus&quot;&quot; 没有导出的成员 &quot;ElMessage&quot;。你是想改用 &quot;import ElMessage from &quot;element-plus&quot;&quot; 吗?
模块 &quot;&quot;element-plus&quot;&quot; 没有导出的成员 &quot;ElMessage&quot;。你是想改用 &quot;import ElMessage from &quot;element-plus&quot;&quot; 吗?
430 0
|
JSON fastjson 数据格式
报错:JSONException: illegal identifier : {pos 1, line 1, column 2{{&quot;group&quot;:&quot;trade_p0&qu
报错:JSONException: illegal identifier : {pos 1, line 1, column 2{{&quot;group&quot;:&quot;trade_p0&qu
640 0
|
自然语言处理
合同结构化文书解析失败,请联系管理员排查:{&quot;code&quot;:3001,&quot;message&quot;:&quot;File transform error&quot;,&quot;success&quot;:false,&quot;tracerId&quot;:&quot;requestId&quot;}报错处理
在使用自然语言处理自学习平台时,标注任务需要上传标注数据,但是使用doc格式上传文件后开始标注时出现了此提示,此篇文章简单介绍下此问题的处理方式。
783 0
合同结构化文书解析失败,请联系管理员排查:{&quot;code&quot;:3001,&quot;message&quot;:&quot;File transform error&quot;,&quot;success&quot;:false,&quot;tracerId&quot;:&quot;requestId&quot;}报错处理
|
Java Spring
Spring 定时任务:Cron expression must consist of 6 fields (found 7 in &quot;0 12 17 14 3 ? 2018&quot;)
Spring 定时任务:Cron expression must consist of 6 fields (found 7 in &quot;0 12 17 14 3 ? 2018&quot;)
1412 0
|
C++
一起谈.NET技术,编写T4模板无法避免的两个话题:&quot;Assembly Locking&quot;&amp;&quot;Debug&quot;
  在这之前,我写了一系列关于代码生成和T4相关的文章,而我现在也试图将T4引入我们自己的开发框架。在实践中遇到了一些问题,也解决了不少问题。如果你也在进行T4相关的开发,相信你也一定会遇到这些问题。为此,特意将这些问题和解决方案与朋友们分享,希望在遇到这些问题的时候少走弯路。
1088 0
|
Java
Syntax error, insert &quot;Dimensions&quot; to complete TypeArgument
Syntax error, insert "Dimensions" to complete TypeArgument 语法错误,插入“维度”来完成类型参数 在定义 Map 的时候出现此错误,代码如下: [java] view plain copy Map
1150 0
|
Web App开发 前端开发 Java
元素 &quot;tx:annotation-driven&quot; 的前缀 &quot;tx&quot; 未绑定
在配置 /projectName/src/main/resources/spring-mybatis.xml 文件添加以下内容, 开启事务注解驱动,启动 Tomcat 时控制台输出以下错误: 严重: Exception sending context i...
895 0
|
Java Android开发
&quot;XX cannot be resolved to a type &quot;eclipse报错及解决说明
<p>转自:<a target="_blank" href="http://zhaoningbo.iteye.com/blog/1137215">http://zhaoningbo.iteye.com/blog/1137215</a></p> <p><span style="font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:
1621 0