<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	「OpenWRT 下以太网MAC地址的写入」的评论	</title>
	<atom:link href="https://www.witimes.net/openwrt-ethernet-mac/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.witimes.net/openwrt-ethernet-mac/</link>
	<description>研究WiFi、射频与软件无线电</description>
	<lastBuildDate>Wed, 31 Dec 2025 01:05:50 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>
	<item>
		<title>
		评论者：lics		</title>
		<link>https://www.witimes.net/openwrt-ethernet-mac/#comment-300</link>

		<dc:creator><![CDATA[lics]]></dc:creator>
		<pubDate>Thu, 24 Nov 2016 00:30:34 +0000</pubDate>
		<guid isPermaLink="false">https://www.zencheer.com/?p=9201#comment-300</guid>

					<description><![CDATA[回复给 &lt;a href=&quot;https://www.witimes.net/openwrt-ethernet-mac/#comment-299&quot;&gt;wang&lt;/a&gt;。

mw就是memory write，将内存地址0x80060008的内容修改为7f010103。]]></description>
			<content:encoded><![CDATA[<p>回复给 <a href="https://www.witimes.net/openwrt-ethernet-mac/#comment-299">wang</a>。</p>
<p>mw就是memory write，将内存地址0x80060008的内容修改为7f010103。</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		评论者：wang		</title>
		<link>https://www.witimes.net/openwrt-ethernet-mac/#comment-299</link>

		<dc:creator><![CDATA[wang]]></dc:creator>
		<pubDate>Wed, 23 Nov 2016 09:29:32 +0000</pubDate>
		<guid isPermaLink="false">https://www.zencheer.com/?p=9201#comment-299</guid>

					<description><![CDATA[lics，你好，请问mw 0x80060008 7f010103这句是什么作用？]]></description>
			<content:encoded><![CDATA[<p>lics，你好，请问mw 0x80060008 7f010103这句是什么作用？</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		评论者：lics		</title>
		<link>https://www.witimes.net/openwrt-ethernet-mac/#comment-298</link>

		<dc:creator><![CDATA[lics]]></dc:creator>
		<pubDate>Tue, 15 Mar 2016 11:11:46 +0000</pubDate>
		<guid isPermaLink="false">https://www.zencheer.com/?p=9201#comment-298</guid>

					<description><![CDATA[回复给 &lt;a href=&quot;https://www.witimes.net/openwrt-ethernet-mac/#comment-296&quot;&gt;victor_tudou&lt;/a&gt;。

这个我也不太懂，我就说一下我的思路吧，不一定对：先把mtd0信息dd到一个文件中，然后将文件中mac地址对应的位置修改掉，擦除mtd0，最后将修改过后的文件写入mtd0。

0x8fff之后应该是用不到的。]]></description>
			<content:encoded><![CDATA[<p>回复给 <a href="https://www.witimes.net/openwrt-ethernet-mac/#comment-296">victor_tudou</a>。</p>
<p>这个我也不太懂，我就说一下我的思路吧，不一定对：先把mtd0信息dd到一个文件中，然后将文件中mac地址对应的位置修改掉，擦除mtd0，最后将修改过后的文件写入mtd0。</p>
<p>0x8fff之后应该是用不到的。</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		评论者：victor_tudou		</title>
		<link>https://www.witimes.net/openwrt-ethernet-mac/#comment-297</link>

		<dc:creator><![CDATA[victor_tudou]]></dc:creator>
		<pubDate>Tue, 15 Mar 2016 09:30:21 +0000</pubDate>
		<guid isPermaLink="false">https://www.zencheer.com/?p=9201#comment-297</guid>

					<description><![CDATA[回复给 &lt;a href=&quot;https://www.witimes.net/openwrt-ethernet-mac/#comment-296&quot;&gt;victor_tudou&lt;/a&gt;。

补充一下， Uboot区域和ART区域已经去掉只读属性

write的时候，没有报错， 返回的写入个数也跟传进去的一致，就是读flash内容没有变换]]></description>
			<content:encoded><![CDATA[<p>回复给 <a href="https://www.witimes.net/openwrt-ethernet-mac/#comment-296">victor_tudou</a>。</p>
<p>补充一下， Uboot区域和ART区域已经去掉只读属性</p>
<p>write的时候，没有报错， 返回的写入个数也跟传进去的一致，就是读flash内容没有变换</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		评论者：victor_tudou		</title>
		<link>https://www.witimes.net/openwrt-ethernet-mac/#comment-296</link>

		<dc:creator><![CDATA[victor_tudou]]></dc:creator>
		<pubDate>Tue, 15 Mar 2016 09:28:09 +0000</pubDate>
		<guid isPermaLink="false">https://www.zencheer.com/?p=9201#comment-296</guid>

					<description><![CDATA[lics你好，非常感谢你的文章， 我如果想在linux环境下， 通过应用来读取mac地址和 写入mac地址应该怎样操作

我的是tp系列， mac地址放在uboot中， 在spi flash 的  0x1fc00偏移位置

在应用中读mac

fd = open(&quot;/dev/mtd0&quot;, O_RDWR);
lseek(fd, 0x1fc00, SEEK_SET);
read(fd, buf, 6);
这样可以读出 0x1fc00 处保存的数据

但是写的话， 始终写不进去
fd = open(&quot;/dev/mtd0&quot;, O_RDWR);
lseek(fd, 0x1fc00, SEEK_SET);
write(fd, buf, 6);
是不是 /dev/mtdn  字符设备不能这样简单的写入， 而要块擦除后，再写入， 有没有操作方法。


另外一个小问题一直比较困惑， 
ART数据是64K
在您文章的图中， eth0_mac , eth1_mac 是从ART数据的头部开始算的吗？
为啥到后面是0x8fff, 而不是64k,  是说 ART 0x8fff  之后的没有保存数据吗
我打开几个934x系列的 art文件， 发现从 0x00 到 0x1000 之间的数据都是 0xFF]]></description>
			<content:encoded><![CDATA[<p>lics你好，非常感谢你的文章， 我如果想在linux环境下， 通过应用来读取mac地址和 写入mac地址应该怎样操作</p>
<p>我的是tp系列， mac地址放在uboot中， 在spi flash 的  0x1fc00偏移位置</p>
<p>在应用中读mac</p>
<p>fd = open(&#8220;/dev/mtd0&#8221;, O_RDWR);<br />
lseek(fd, 0x1fc00, SEEK_SET);<br />
read(fd, buf, 6);<br />
这样可以读出 0x1fc00 处保存的数据</p>
<p>但是写的话， 始终写不进去<br />
fd = open(&#8220;/dev/mtd0&#8221;, O_RDWR);<br />
lseek(fd, 0x1fc00, SEEK_SET);<br />
write(fd, buf, 6);<br />
是不是 /dev/mtdn  字符设备不能这样简单的写入， 而要块擦除后，再写入， 有没有操作方法。</p>
<p>另外一个小问题一直比较困惑，<br />
ART数据是64K<br />
在您文章的图中， eth0_mac , eth1_mac 是从ART数据的头部开始算的吗？<br />
为啥到后面是0x8fff, 而不是64k,  是说 ART 0x8fff  之后的没有保存数据吗<br />
我打开几个934x系列的 art文件， 发现从 0x00 到 0x1000 之间的数据都是 0xFF</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		评论者：lics		</title>
		<link>https://www.witimes.net/openwrt-ethernet-mac/#comment-295</link>

		<dc:creator><![CDATA[lics]]></dc:creator>
		<pubDate>Sat, 31 Oct 2015 23:14:44 +0000</pubDate>
		<guid isPermaLink="false">https://www.zencheer.com/?p=9201#comment-295</guid>

					<description><![CDATA[回复给 &lt;a href=&quot;https://www.witimes.net/openwrt-ethernet-mac/#comment-294&quot;&gt;Whipple&lt;/a&gt;。

暂时想不到是什么原因造成的，可能是驱动问题。]]></description>
			<content:encoded><![CDATA[<p>回复给 <a href="https://www.witimes.net/openwrt-ethernet-mac/#comment-294">Whipple</a>。</p>
<p>暂时想不到是什么原因造成的，可能是驱动问题。</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		评论者：Whipple		</title>
		<link>https://www.witimes.net/openwrt-ethernet-mac/#comment-294</link>

		<dc:creator><![CDATA[Whipple]]></dc:creator>
		<pubDate>Sat, 31 Oct 2015 10:52:43 +0000</pubDate>
		<guid isPermaLink="false">https://www.zencheer.com/?p=9201#comment-294</guid>

					<description><![CDATA[回复给 &lt;a href=&quot;https://www.witimes.net/openwrt-ethernet-mac/#comment-292&quot;&gt;Whipple&lt;/a&gt;。

正常情况下噪声显示的-95出错后就显示-86，只有重启才能回到-95，要不回一直显示-86，接收信号的电平也会变大]]></description>
			<content:encoded><![CDATA[<p>回复给 <a href="https://www.witimes.net/openwrt-ethernet-mac/#comment-292">Whipple</a>。</p>
<p>正常情况下噪声显示的-95出错后就显示-86，只有重启才能回到-95，要不回一直显示-86，接收信号的电平也会变大</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		评论者：lics		</title>
		<link>https://www.witimes.net/openwrt-ethernet-mac/#comment-293</link>

		<dc:creator><![CDATA[lics]]></dc:creator>
		<pubDate>Sat, 31 Oct 2015 06:43:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.zencheer.com/?p=9201#comment-293</guid>

					<description><![CDATA[回复给 &lt;a href=&quot;https://www.witimes.net/openwrt-ethernet-mac/#comment-292&quot;&gt;Whipple&lt;/a&gt;。

出错时现象是什么样的？]]></description>
			<content:encoded><![CDATA[<p>回复给 <a href="https://www.witimes.net/openwrt-ethernet-mac/#comment-292">Whipple</a>。</p>
<p>出错时现象是什么样的？</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		评论者：Whipple		</title>
		<link>https://www.witimes.net/openwrt-ethernet-mac/#comment-292</link>

		<dc:creator><![CDATA[Whipple]]></dc:creator>
		<pubDate>Sat, 31 Oct 2015 06:37:39 +0000</pubDate>
		<guid isPermaLink="false">https://www.zencheer.com/?p=9201#comment-292</guid>

					<description><![CDATA[Alex，我们也在使用openWRT，测试中发现，两个ap连接的时候有时候会出现噪声和信号电平出错,重启后就有显示正常]]></description>
			<content:encoded><![CDATA[<p>Alex，我们也在使用openWRT，测试中发现，两个ap连接的时候有时候会出现噪声和信号电平出错,重启后就有显示正常</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
