richliu’s blog

Linux, 工作, 生活.

richliu’s blog header image 4

Entries Tagged as 'Embedded'

Trace32 在 Ubuntu 上執行的問題

April 7th, 2008 · No Comments

Trace32 在 ubuntu 上會抓不到 USB device, 在 Gentoo 上並沒有這樣的問題.
這是因為 ubuntu USB device 預設不會建立相容目錄 /proc/bus/usb .
這時候就要修改 /etc/init.d/mountdevsubfs.sh , 找到
#
# Magic to make /proc/bus/usb work
#
mkdir -p /dev/bus/usb/.usbfs
domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
ln -s .usbfs/devices /dev/bus/usb/devices
mount --rbind /dev/bus/usb /proc/bus/usb
將最後四行的 "#" unmark 掉.
然後建立 system group 給 usb 的使用者
sudo addgroup --system usbusers
# Output [...]

[Read more →]

Tags: Embedded · Hardware · UNIX

Wii 上也可以執行 Linux 了.

February 27th, 2008 · No Comments

Digg 報導, Wii 上己經可以執行 Linux 了.
目前是提供 Linux kernel 2.6.24 的 patch. 而這是使用 USB Gecko 的成果.
不過如果連 USB Gecko 都出來了, Linux support Wii 只是早晚的事情吧 XD
謎之音 : 不知道這個 USB Gecko可不可以拿來當金手指.

Tags: Linux, Wii

[Read more →]

Tags: Embedded · GAME · Hardware · Linux

[ARM] chroot 出現 Message “Illegal Instruction”

February 21st, 2008 · 2 Comments

記錄一下,
不僅僅是 chroot 以外, 如果執行任何程式有 "Illegal Instruction" 時, 記得將 kernel 的 NWFPE 選項 enable.

Tags: arm, kernel, Linux

[Read more →]

Tags: Embedded · Hardware · Linux

[Linux][Kernel] Kernel Oops 網站.

December 21st, 2007 · No Comments

http://www.kerneloops.org 是一個會收集 mailing list 和 bugzilla 的網站, 他將收集到的 oops 整理成一份簡單的 report.
這樣大家就可以知道, 那一版的 kernel 有多少個什麼類型的 Bug.
Bug Report 包含 module 和 backtrace, 不過不含原始網站連結, 這是比較可惜的地方
常常碰 embedded linux 的人, 常常要找一些莫名的 bug, 有時候為了節省時間,
會想辦法看看有沒有相對應的 Bug Patch, 如果有就非常方便.
這個網站看起來是可以節省一些 Search 的時間, 運氣好說不定碰到的 Bug 是同一個呀
Ref.
Kernel Trap : Collecting Kernel Oops Data
[Tags] Linux, kernel, oops [/Tags]

Tags: kernel, Linux, oops

[Read more →]

Tags: Embedded · Linux

[Linux][Kernel][Driver] 老師有沒有說, 不要用 cb!

October 25th, 2007 · 1 Comment

之前就苦口婆心的說, Network Driver 不要偷用 sk_buff 內的 cb .
就是有人不聽, 一定要用!

Tags: Linux

[Read more →]

Tags: Embedded · Linux · Programming

[Linux][Kerne][Tips] 在 minicom 下送出 SysRq

September 20th, 2007 · No Comments

除了 Linux kernel 要加上 SysRq 的 Function 以外,
按 ctrl+a f 就是送出 break key.
這要配合 Command Key 使用
No tag for this post.

[Read more →]

Tags: Embedded · Linux

如何用 kermit 傳檔案.

April 26th, 2007 · No Comments

Gentoo 下 minicom 不知道為什麼不能用 kermit 傳檔, 只好用 ckermit 了.這種東西偶爾還是會用到的, 記錄一下好了
進入 kermit 之後(記得 minicom 要關掉), 先設定 kermit
set prefixing allset file type binaryset parity noneset carrier-watch offset line /dev/ttyUSB0set speed 38400
接下來傳送檔案.
send armboot.bin
這樣就可以上傳了.
No tag for this post.

[Read more →]

Tags: Embedded · Linux

Enable Backtrace

April 18th, 2007 · 3 Comments

最近 Linux kernel 2.4 的 Backtrace 不見了, 這樣實在非常不好 Debug, 查了一下才發現, 少加了一些 Flags.
No tag for this post.

[Read more →]

Tags: Embedded · Linux · Programming

[雜談] 行銷真的很重要……

January 30th, 2007 · No Comments

在 Digg 看到 World's First BitTorrent Microprocessor
點進去一看, 才發現原文章的標題是
IAdea/Star Semi Jointly Develop the First BitTorrent-Optimized Microprocessor

Tags: Embedded, Hardware, Software, 工作

[Read more →]

Tags: Embedded · Hardware · Software · 工作

mmap Sample Code

October 17th, 2006 · 1 Comment

在 Embedded System 的世界內, 常常要讀寫 Memory 做一些測試, 這時侯 mmap 就很好用了
mmap 可以讓 user space access physical memory.
雖然是很簡單的小動作, 但是對 debug 和驗證 hardware 非常的好用.
網路上應該有不少 mmap sample code, 應該寫得更好.
我只是拿來驗證一下我們的 Platform 有沒有問題.
我這一段是設定 Static Memory 以後, 再直接設定 Philip SC16C2552 到 Baud rate 38400
再印出 "This is test string" 這個字串.
當然中間有個 Bug, 不過我懶得修 XD
這時請記得, 這時候 UART 還沒有啟動 FIFO , 所以只能送出一個字, 加個 delay [...]

[Read more →]

Tags: Embedded · Linux