richliu's blog

Linux, 工作, 生活.

richliu's blog header image 4

Entries Tagged as 'Hardware'

[ARM][Linux] 建立 ARM 平台的 Debian System

十二月 25th, 2009 · No Comments

在 Embedded system 下, 使用現有的系統驗證 SoC 功能是非常棒的.
最大的好處就是不用到處找工具編一堆有的沒有的, 時間可以花在更重要的地方
像我將 debian 裝好之後, 就可以跑 wireshark 了
本圖中, 最左邊的是 console, 中間的視窗是 EVB 上的 wireshark, 右邊的視窗是 PC 端的 wireshark

真是超好用的……

Tags: arm, ARM11, debian, debootstrap

[Read more →]

Tags: Embedded · Linux

ARM 的 Oprofile

十二月 12th, 2009 · 4 Comments

最近在弄 ARM11 的 Oprofile, 結果發現執行 opcontrol 的動作之後, 沒有 log 的動作.
這時請改用 timer interrupt
在 load oprofile modules 加上 timer=1
若是 static link 時, 就要在 boot_cmd 加上 oprofile.timer=1
似乎目前的 kernel oprofile 不支援 ARM11MPCore.
http://oprofile.sourceforge.net/doc/detailed-parameters.html#timer

Tags: arm, ARM11, kernel, Linux, oprofile

[Read more →]

Tags: Embedded

[Linux][Kernel][Memory] smbd: page allocation failure. order:2, mode:0×20

十二月 11th, 2009 · No Comments

如果啟動了 Jumbo Frame 加上執行 Samba , 有可能會出現類似的訊息(系統抓下來似乎有點不全)

Tags: Jumbo Frame, Linux, linux kernel, memory, samba

[Read more →]

Tags: Embedded · Linux

Sharp ARM Base Netbook PC-Z1 NetWalker

九月 28th, 2009 · 3 Comments

最近 Sharp 開始出售第一台 ARM Base 的 Netbook , 取名 NetWalker
不過說他是 Netbook 我個人覺得這一台的定位比較像是放在比電子字典更強一點點的功能.

Tags: arm, netbook, PC-Z1, SHARP, ubuntu

[Read more →]

Tags: Hardware · Linux

AMD 780G 系列: 便宜低價: BD 影音撥放平台/低功耗 Server/Desktop

六月 15th, 2009 · 3 Comments

這次 Computex 2009 真是太生氣了, 沒有拿到 Intel 的贈品, 只好來寫一篇文章幫 AMD 助陣(這一篇早就想寫了, 寫到買了三個平台才生出來, 沒辦法, 有小孩生文章的速度很慢).
從 80286 開始, 我幾乎都是 Intel 平台的信徒, 除了一開始有用 Harris 80286 平台以外, 後來的 Desktop 都是用 Intel 平台, Chipset 非 Intel 晶片組不用. 這個選擇在早期幾乎都是正確的. 因為 SiS/VIA 不爭氣. Chipset 一堆問題, 相容性不好, ATI/NVIDIA 初期也是這樣。USB 2.0 Bug 一堆, ATA 一堆 Bug.(題外話, 其實 USB/ATA/SATA 真的很難做, 就算是 IP 是買的也是一樣)
不過就在一年以內, 我連續購入了三套 AMD 780G [...]

[Read more →]

Tags: Hardware · 敗家誌

ARMv6 的 Word Swap 指令

五月 23rd, 2009 · No Comments

ARMv6 加入了幾個好用的 Swap 指令. 不需要用軟體算來算去
請參考 http://www.arm.com/pdfs/ARMv6_Architecture.pdf
REV
REV16
REVSH

最常用的應該是 REV 吧.
Realview inline assembly 很簡單.
unsigned int tmp = 0×12345678;
__asm{
REV tmp, tmp
}
GNU C++ inline assembly 為(未測)
unsigned int tmp = 0×12345678;
__asm__ __volatile__ (
『REV %0,%0;』 : 『=r』(tmp) : 『r』(tmp):』r5″);
);

Tags: ARMv6, REV

[Read more →]

Tags: Embedded · Linux · Programming

[工作筆記] Linux SATA NCQ Patch

四月 23rd, 2009 · 1 Comment

工作上要寫個 NCQ 的實作, 這是 Linux NCQ 的 Patch.
參考一下就知道做了什麼變動.

[PATCH 01/15] libata-ncq: add NCQ related ATA constants and id macros
[PATCH 02/15] libata-ncq: add NCQ related libata flags
[PATCH 03/15] libata-ncq: pass ata_scsi_translate() return value to SCSI midlayer
[PATCH 04/15] libata-ncq: implement ap->sactive
[PATCH 05/15] libata-ncq: implement command exclusion
[PATCH 06/15] libata-ncq: implement NCQ command translation
[PATCH 07/15] libata-ncq: implement ata_eh_read_log_10h()
[PATCH 08/15] libata-ncq: [...]

[Read more →]

Tags: Hardware · Linux · Programming · 工作

[新聞][想法] Android Porting 到 EeePC 之後.

一月 9th, 2009 · 3 Comments

畫虎爛時間又到了, 今天要講評的是, Android Porting 到 EeeePC 這件事.
首先是 EeeePC 可以執行 Android 平台.
Android平台,並不是只有手機,連輕省筆電也有?

再來就是 HP Mini 的平台.
筆電跑Android又一例:HP Mini-Note 2133影片實況紀錄

Tags: Android, Aspire One, EeePC, 新聞, 評論

[Read more →]

Tags: Android · Embedded · 亂扯淡

[DirectFB] 用 DirectFB + GTK+ 的問題

十二月 29th, 2008 · No Comments

記錄用
GTK_on_DirectFB_for_Embedded_Systems
DirectFB programs terminating with signal 11
如果執行 dfbinfo 或是其他 directfb 的程式碰到這樣的問題, 在
~/.directfbrc 加上一行 disable-module=x11input
在 DirectFB 1.3.0 測試 OK
Reference:
[directfb-users] DirectFB programs terminating with signal 11
pkg-config –libs cairo 都找到 /usr/local/lib/pkgconfig
修改 /usr/local/lib/pkgconfig/cairo.pc 內, 移除 /usr/local/lib/pkgconfig
編輯 gtk+ 找不到 Pango
*** Pango not found. Pango built with Cairo support is required
*** to build GTK+. See http://www.pango.org for Pango information.

修改 /usr/local/lib/pkgconfig/pango.pc 在修改 Libs [...]

[Read more →]

Tags: Embedded · Linux

ARM RealView ICE, RealView Trace 開箱文

十二月 22nd, 2008 · 5 Comments

最近公司買了 ARM Realview ICE 和 RealView Trace.
所以就照一照, 弄個開箱文. 這二台加起來超過 US$7,000.- 以上
RealView Development Suite Professional Floating License 要價 US$12,000.- 以上, 軟體果然比硬體貴多了
我猜 ARM 應該覺得大家都會用盜版呀….

Tags: arm, Realview ICE, Realview Trace, 開箱文

[Read more →]

Tags: Embedded · 工作