<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Trace32 &#8211; richliu&#039;s blog</title>
	<atom:link href="https://richliu.com/tag/trace32/feed/" rel="self" type="application/rss+xml" />
	<link>https://richliu.com</link>
	<description>Linux, 工作, 生活, 家人</description>
	<lastBuildDate>Tue, 08 Mar 2011 02:44:04 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Trace32 Break 的 Condition 指令要如何下.</title>
		<link>https://richliu.com/2011/03/08/1031/trace32-break-%e7%9a%84-condition-%e6%8c%87%e4%bb%a4%e8%a6%81%e5%a6%82%e4%bd%95%e4%b8%8b/</link>
					<comments>https://richliu.com/2011/03/08/1031/trace32-break-%e7%9a%84-condition-%e6%8c%87%e4%bb%a4%e8%a6%81%e5%a6%82%e4%bd%95%e4%b8%8b/#respond</comments>
		
		<dc:creator><![CDATA[richliu]]></dc:creator>
		<pubDate>Tue, 08 Mar 2011 02:44:04 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[break]]></category>
		<category><![CDATA[condition]]></category>
		<category><![CDATA[Trace32]]></category>
		<guid isPermaLink="false">https://richliu.com/?p=1031</guid>

					<description><![CDATA[<p>Trace32 的相關內容非常的少, 找都找不到&#8230;. Trace32 在 Break Point  [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://richliu.com/2011/03/08/1031/trace32-break-%e7%9a%84-condition-%e6%8c%87%e4%bb%a4%e8%a6%81%e5%a6%82%e4%bd%95%e4%b8%8b/">Trace32 Break 的 Condition 指令要如何下.</a> appeared first on <a rel="nofollow" href="https://richliu.com">richliu&#039;s blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Trace32 的相關內容非常的少, 找都找不到&#8230;.</p>
<p>Trace32 在 Break Point 的地方可以設定 Condition, 這樣就可以設定特定條件停下來.</p>
<p>這邊就是一個範例, 停下來的時候要檢查記憶體的位置 &gt; 200, 記得 /CONDITION 後面的字串中間不能有空白. 要不然會有問題.</p>
<p>[TEXT]<br />
break.set D:0xC02f1e64 /write /ONCHIP /CONDITION data.long(D:0xC02f1e64)>200<br />
[/TEXT]</p>
<p>The post <a rel="nofollow" href="https://richliu.com/2011/03/08/1031/trace32-break-%e7%9a%84-condition-%e6%8c%87%e4%bb%a4%e8%a6%81%e5%a6%82%e4%bd%95%e4%b8%8b/">Trace32 Break 的 Condition 指令要如何下.</a> appeared first on <a rel="nofollow" href="https://richliu.com">richliu&#039;s blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://richliu.com/2011/03/08/1031/trace32-break-%e7%9a%84-condition-%e6%8c%87%e4%bb%a4%e8%a6%81%e5%a6%82%e4%bd%95%e4%b8%8b/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Trace32 在 Ubuntu 上執行的問題</title>
		<link>https://richliu.com/2008/04/07/581/trace32-%e5%9c%a8-ubuntu-%e4%b8%8a%e5%9f%b7%e8%a1%8c%e7%9a%84%e5%95%8f%e9%a1%8c/</link>
					<comments>https://richliu.com/2008/04/07/581/trace32-%e5%9c%a8-ubuntu-%e4%b8%8a%e5%9f%b7%e8%a1%8c%e7%9a%84%e5%95%8f%e9%a1%8c/#comments</comments>
		
		<dc:creator><![CDATA[richliu]]></dc:creator>
		<pubDate>Mon, 07 Apr 2008 06:43:19 +0000</pubDate>
				<category><![CDATA[Embedded]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[Trace32]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[usb]]></category>
		<guid isPermaLink="false">https://richliu.com/2008/04/07/581/</guid>

					<description><![CDATA[<p>Trace32 在 ubuntu 上會抓不到 USB device, 在 Gentoo 上並沒有這樣的問題.  [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://richliu.com/2008/04/07/581/trace32-%e5%9c%a8-ubuntu-%e4%b8%8a%e5%9f%b7%e8%a1%8c%e7%9a%84%e5%95%8f%e9%a1%8c/">Trace32 在 Ubuntu 上執行的問題</a> appeared first on <a rel="nofollow" href="https://richliu.com">richliu&#039;s blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Trace32 在 ubuntu 上會抓不到 USB device, 在 Gentoo 上並沒有這樣的問題.<br />
這是因為 ubuntu USB device 預設不會建立相容目錄 /proc/bus/usb .</p>
<p>這時候就要修改 /etc/init.d/mountdevsubfs.sh , 找到<br />
[TEXT]<br />
#<br />
# Magic to make /proc/bus/usb work<br />
#<br />
mkdir -p /dev/bus/usb/.usbfs<br />
domount usbfs &#8220;&#8221; /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644<br />
ln -s .usbfs/devices /dev/bus/usb/devices<br />
mount &#8211;rbind /dev/bus/usb /proc/bus/usb<br />
[/TEXT]<br />
將最後四行的 &#8220;#&#8221; unmark 掉.</p>
<p>然後建立 system group 給 usb 的使用者<br />
sudo addgroup &#8211;system usbusers<br />
# Output  GID 128</p>
<p># 加入 USER  到 usbusers 群組.<br />
sudo adduser $USER usbusers</p>
<p># 修改 /etc/fstab:<br />
sudo vim /etc/fstab</p>
<p># 加上這一行.<br />
# 128 是&#8221;usbusers&#8221; 的 GID<br />
none /proc/bus/usb usbfs devgid=128,devmode=664 0 0</p>
<p>重開機之後, 執行 t32usbchecker , 大功告成</p>
<blockquote><p># ./t32usbchecker</p>
<p>Trace32 simple USB Checker</p>
<p>Checking /proc/bus/usb/001/001 &#8230; not useable<br />
Checking /proc/bus/usb/001/004 &#8230; not useable<br />
Checking /proc/bus/usb/001/005 &#8230; not useable<br />
Checking /proc/bus/usb/001/006 &#8230; not useable<br />
Checking /proc/bus/usb/001/007 &#8230; not useable<br />
Checking /proc/bus/usb/002/001 &#8230; not useable<br />
Checking /proc/bus/usb/003/001 &#8230; not useable<br />
Checking /proc/bus/usb/004/001 &#8230; not useable<br />
Checking /proc/bus/usb/004/003 &#8230; useable</p>
<p>Checking USB communication with /proc/bus/usb/004/003 &#8230;<br />
Resetting Trace32&#8230;</p>
<p>USB communication OK.</p></blockquote>
<p>其他如果有需要用到 /proc/bus/usb 的程式也可以用這種解法, 例如 VirtualBox </p>
<p>Ref.<br />
<a href="https://bugs.launchpad.net/ubuntu/gutsy/+source/kvm/+bug/156085" target="_blank" rel="noopener">Bug #156085 in kvm (Ubuntu Gutsy) Could not open /proc/bus/usb/devices</a></p>
<p>The post <a rel="nofollow" href="https://richliu.com/2008/04/07/581/trace32-%e5%9c%a8-ubuntu-%e4%b8%8a%e5%9f%b7%e8%a1%8c%e7%9a%84%e5%95%8f%e9%a1%8c/">Trace32 在 Ubuntu 上執行的問題</a> appeared first on <a rel="nofollow" href="https://richliu.com">richliu&#039;s blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://richliu.com/2008/04/07/581/trace32-%e5%9c%a8-ubuntu-%e4%b8%8a%e5%9f%b7%e8%a1%8c%e7%9a%84%e5%95%8f%e9%a1%8c/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
