{"id":8131,"date":"2015-06-23T13:57:28","date_gmt":"2015-06-23T18:57:28","guid":{"rendered":"http:\/\/www.multitech.net\/developer\/?page_id=8131"},"modified":"2015-09-30T07:32:02","modified_gmt":"2015-09-30T12:32:02","slug":"reading-and-writing-u-boot-environment-from-linux","status":"publish","type":"page","link":"https:\/\/www.multitech.net\/developer\/software\/mlinux\/using-mlinux\/utilities\/reading-and-writing-u-boot-environment-from-linux\/","title":{"rendered":"U-boot Linux Utility"},"content":{"rendered":"<p>The package <strong>u-boot-linux-utils<\/strong> provides a Linux utility for accessing the U-Boot environment. The utility provided with U-Boot in version 1.3.4 does not work with NAND flash. This utility is meant as an alternative to U-Boot&#8217;s <code>fw_{print,set}env<\/code>.<\/p>\n<pre class=\"brush:shell\">$ u-boot\r\nUsage: u-boot { printenv [ name ] | setenv name [ value ] }\r\n\r\n$ u-boot printenv test\r\nenvironment variable not found\r\n$ u-boot setenv test me\r\n$ u-boot printenv test\r\ntest=me<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The package u-boot-linux-utils provides a Linux utility for accessing the U-Boot environment. The utility provided with U-Boot in version 1.3.4 does not work with NAND flash. This utility is meant as an alternative to U-Boot&#8217;s fw_{print,set}env. $ u-boot Usage: u-boot { printenv [ name ] | setenv name [ value ] } $ u-boot printenv [&hellip;]<\/p>\n","protected":false},"author":537,"featured_media":0,"parent":7905,"menu_order":5,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-8131","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/8131","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/users\/537"}],"replies":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/comments?post=8131"}],"version-history":[{"count":8,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/8131\/revisions"}],"predecessor-version":[{"id":8342,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/8131\/revisions\/8342"}],"up":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/7905"}],"wp:attachment":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/media?parent=8131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}