公告版位
2012/9/12 開始每週三的父子時間!!

近來想透過 ssh 登入至新安裝的 ubutu 上,竟然無法連線。

經確認,原來是沒有安裝 ssh server  的緣故。

因此,可透過此指令進行 ssh server 的安裝

#apt-get install ssh


ccchiu 發表在 痞客邦 留言(0) 人氣()

使用 ubuntu 進行 linux c programming 時,發生下列錯誤訊息:


error: stdio.h: No such file or directory

 

這是因為缺少了 Development Libraries and Header Files
因此,於 ubuntu 需使用這個指令來進行該套件的安裝

apt-get install libc6-dev


ccchiu 發表在 痞客邦 留言(0) 人氣()

簡單說哩,透過設定 mini2440 super vivi 的參數。可以讓 mini2440 連接到指定位置的 NFS,並啟動該 NFS 裡的 Linux OS。

紀錄一下步驟:

1. 設定 ubuntu

預設的 ubuntu 並沒有安裝 nfs server ,並需安裝 nfs server 套件。安裝完成後,再設定 /etc/export 將 Linux OS 的目錄分享

2. 設定 mini2440

先將 mini2440 透過 nand flas 啟動,於啟動時按空白鍵來進入 super vivi 的作業系統。進入後,設定參數即可。


ccchiu 發表在 痞客邦 留言(0) 人氣()

轉載自 http://www.ecs.umass.edu/ece/koren/architecture/Simplescalar/SimpleScalar_introduction.htm

 

Introduction to SimpleScalar

 

SimpleScalar (http://www.simplescalar.com) is an open source computer architecture simulator developed by Todd Austin (http://www.eecs.umich.edu/~taustin/) while he was a PhD student at the University of Wisconsin Madison.

 

It is a simulator, which in simple words means that it can be used to show that Machine A is better than Machine B without building either Machine A or Machine B. It is written using ‘C’ programming language.

 

SimpleScalar is a set of tools that model a virtual computer system with CPU, Cache and Memory Hierarchy. Using the SimpleScalar tools, users can build modeling applications that simulate real programs running on a range of modern processors and systems.  The tool set includes sample simulators ranging from a fast functional simulator to a detailed, dynamically scheduled processor model that supports non-blocking caches, speculative execution, and state-of-the-art branch prediction. In addition to simulators, the SimpleScalar tool set includes performance visualization tools, statistical analysis resources, and debug and verification infrastructure.

 

ccchiu 發表在 痞客邦 留言(0) 人氣()

How to hard reset ?

1. 按住撥號鍵和掛斷鍵~用你的筆戳阿福機底下的reset孔~記得撥號鍵和掛斷鍵不要放~

2. 等阿福機重開機後~會出現文字畫面~

3. 這時候放開撥號鍵和掛斷鍵~按一下中間那顆功能鍵~阿福機會重開機~

4. 即完成hard reset步驟~


ccchiu 發表在 痞客邦 留言(0) 人氣()

Referenced Material


ccchiu 發表在 痞客邦 留言(0) 人氣()

轉載自http://chamberplus.myweb.hinet.net/misc_1.htm


        剛接觸寫韌體的工程師,往往可能是以前是寫個人電腦的應用軟體的機會很多,或許,現在寫韌體的工程師越來越少呢?還是現在寫單晶片的系統工具比較好呢?所 以,許多寫韌體工程師所受的韌體程式訓練或機會不多,一上機寫韌體,就當作寫個人電腦的程式一般的寫法,一路往下寫。其實,我沒有說這樣子不行,但是,當 您看完我這篇文章之後,或許,您會有不同的看法?

        我以前看或寫引擎控制程式都是組合語言,後來寫掃描器的韌體或是USB也都是組語。當然,以這些工作機會,是用不到 8051 的C組譯器(Keil C)。但那時,KEIL C 也剛推出整合性高階語言的開發環境,我就自學把KEIL C學起來。後來很巧,我接了MP3 系統開發計畫時,就剛好派上用場,這件事讓我體會到一點:技能總是在工作中磨練,但若是未來您可能會接觸到的,您可能要提早自己自學,這樣子,等機會一來,您就比別人多一份機會了。就像投資您自己一樣,像這種屬於基本技能的東西,還是得好好的投資一下自己。

        寫MP3 系統程式,因為牽涉許多DOS  File  system 的東西,用C寫的確是比較快一點,但卻也發現用高階C寫韌體的許多盲點。後來,看到公司內有一些部門在招一些寫韌體工程師時,竟也以資訊系為優先考量,結 果整個部門幾乎都是寫軟體出身的韌體發展部門?結果是什麼呢?開給IC設計部門的規格,所需求的記憶體空間就大到很難想像?8051 要寫到 1MBytes ?! 真是很誇張,對工程師來說:寫不出精緻的韌體,剩下的便是作苦工的寫程式。不知您是否可以體會到這點?!

        什麼是精緻的韌體?我想您寫韌體在上機前,做了多少前置準備動作?還是,接到一個案子就批哩叭啦的從第一行往下寫?其實,寫韌體最難能可貴就是它是一份系統整合工作除了程式語言以外,就是您對系統他所展現的專業知識這話怎麼說?譬如說:當您寫完引擎控制程式後,您不只知道引擎控制韌體怎麼寫而已,還深深的體會到引擎機械系統的瞭解。我常常說:您作一行就是要入一行。所謂入一行,不是會寫寫基本程式而已,您還能體會到那一行的種種問題。這樣子,您才能出奇制勝,當然啊。當您要換工作時,您就會明明白白的知道您為什麼會離開原來的那一行?

        好~我就舉一兩個例子來說明這件事情:

首先,您還記得我在單晶片與引擎控制 (二)--- 數學篇 中舉的例子嗎?

        針對引擎的轉速,您是用一個integer 來宣告 呢?還是用 八位元的255 來表示呢?若您是寫軟體出身的,鐵定一定是用 Integer 來宣告,那因為在引擎控制系統中會用到許多這個變數,包括許多查表功能,那您查表公式是不是也是一路用integer 來運算呢?!結果當然對CPU執行效率或變數memory 需求一定不得了。我上述的那個問題就發生了。我列一張表格您可以看看:

ccchiu 發表在 痞客邦 留言(0) 人氣()

最近跟網友購買一張 Sandisk Extreme III 8G CF,所以做了一些功課。為此,還打電話去增你強 ( 電話 : 02-2792-8788 ) 公司詢問。雖然該公司表示如有外盒包裝與購買資訊即可證明;若這些東西都已經遺失,他就只會認名該 CF 卡上是否有增你強的雷射標籤。所以囉,記得要確認有沒有該標籤喔!!下圖即為增你強的雷射標籤照片,供大家參考。

增你強保固標籤

 

 


ccchiu 發表在 痞客邦 留言(0) 人氣()

預計利用五一假期到祖國江南走走,所以想再添購一張CF Card。雖然手邊的 Extreme IV 8G 使用上相當滿意,但價格頗高。所以,重新Review 哪張卡比較合適 40D 使用。參考網路的資訊與網友的建議及預算,SanDisk Extreme III 8G 已經足夠應付 40D 的日常使用。下所列為國外網友,針對 40D 對各家 CF 開的讀取速度測試,可供各位網友參考。

 

轉載自 http://www.robgalbraith.com/bins/camera_multi_page.asp?cid=6007-9257

Canon EOS 40D Write Speed (Firmware Version 1.0.8)
This page was last updated on April 16, 2008

The data in the table below was derived by timing how long it took the Canon EOS 40D to write 20 Large Fine JPEG and then 16 RAW .CR2 photos to the memory card. Timing commenced when the camera's card status light illuminated, and stopped when the light went out. Each test cycle was performed 3 times (if the card's capacity allowed for that) to ensure accurate results.

Prior to both JPEG and RAW testing, all CompactFlash cards were first secure erased on a computer, then formatted in the camera. The same test scene was photographed, under the same illumination, for all tests. The identical camera settings and lens were also used for all tests.

Interpreting the results The data can be sorted by manufacturer, card type, rated capacity and file format, in both ascending and descending order, by clicking on the appropriate column header. When sorting by JPEG or RAW, the fastest 10% for that format are highlighted in blue. You can view extra information for a card by clicking the icon to the left of the card's name, or for all cards at once by clicking Show Extra Info in the Memory Card header field. Note that MB/sec refers to megabytes per second, and that all calculations are based on 1 megabyte = 1,048,576 bytes.

ccchiu 發表在 痞客邦 留言(0) 人氣()

轉載自 就是愛拍照

遮光罩的用途
1.遮擋影響畫面的直射光線, 避免鏡頭耀光. 這功能像我們在戴的棒球帽一樣, 幫你遮擋掉從上方來的陽光, 讓你可以清楚的看到前面的比賽.
2.遮擋非必要的漫射光線, 使影像不受影響. (指減少地面反射或其他繞反射光線的干擾).
3.遮擋水珠不噴到鏡頭正面, 讓影像清晰. 鏡頭前面有水珠的話影像就會模糊不清, 遮光罩另一個附加功能是減少水珠的附著, 進而提高影像的清晰度. (但別就此改叫它遮雨罩呀~)
4.保護鏡頭前緣, 若遇撞擊會先由遮光罩承擔並分散受力, 減低對鏡頭的傷害.
5.有型好看, 比較專業的感覺. 這點是很多不懂的人喜歡加裝遮光罩的原因 ......

遮光罩是否越大越好?
1.遮光罩以不遮到畫面的最大遮光幅度為佳, 過小的遮光罩遮擋效果不好, 過大不當的遮光罩會形成暗角, 甚至有一圈黑色的陰影.
2.遮光罩越長越細瘦遮擋效果越好.

ccchiu 發表在 痞客邦 留言(1) 人氣()