星期六, 12月 22, 2007

Cross compling on Cygwin on windows XP

The tools we need.

1. cygwin

2. cygwin-arm-cross-2.95.3

星期三, 12月 05, 2007

Rescue my Windows XP on Macbook

After install Ubuntu on my Macbook with USB HDD.
Grub installed on disk0, while Ubuntu install process.

Mac OS boot loader seems can not found Mac OS X & Ubuntu as the same USB HDD. It always found the Mac OS X partition.
After Ubuntu boot failed, I boot up my Windows XP by Bootcamp.
System always shows "Grub HDD error".

I found one document in Internet.
http://cha.homeip.net/blog/archives/2005/05/_windows_mbr.html

I know I need MBR recovery to rescue my Macbook.
In my Winclone image about six months ago, I found one file, boot.mbr.

I use dd if=boot.mbr of=/dev/disk0 bs=446 count=1 for a try, but failed.
The Mac OS X partition on disk0 seems locked by OS.
I use "sudo umount -f /dev/disk0s2" to umount the Mac OS X partition, then dd again.

Finally, my Windows XP boot-up screen show up.

星期三, 11月 21, 2007

WDM/BDA Driver & DVB-T

some refrence from internet about BDA & DVB-T

----------------------------------------------------------

目前大部分的capture卡都是WDM的driver.
so裝起DirectX, 用裏面的DirectShow來抓你想要的資料
你要看一下SDK才行, 因為蠻多的...
不過, 有幾個關鍵字供你參考
GraphEdit.
Filter
WDM video capture device=> video capture filter. 負責送資料出來, 也負責設定TVstandard.
Crossbar filter. 設定你影像的來源, 像是從SVideo 或是從TV 來
TVTuner filter. 設定頻道相關
TVAudio filter. 設定主聲道, 副聲道相關
找出GraphEdit, 把以上我說幾個相關的filter找出來, 連起來...
再到dshow SDK的dump sample, compile一下, 註冊.
再把dump filter加入圖中, 把dump filter 和video capture device 接起來..
run Graph, 資料就會dump到你指定的檔案裏...
------------------------------------------------------------------------

參考的網頁是
http://msdn.microsoft.com/library/en-us/directshow/htm/bdafilterinterfaces.asp?frame=true

BDA是微軟比較新的一種driver model. 目前就我所知, 所有的DVB-T tuner卡應該都是follow這個model在做, 只要follow BDA來做, 就會有一些共通的interface來提供AP和driver溝通. WDM也是, 只不過WDM大部分是用在analog tuner card比較多, 除非是比較新的版本.

不管是WDM or BDA driver都要先裝DirectX SDK, SDK中提供了了一個tool叫做GraphEdit. 通常我寫AP前都會先用這個tool來驗証卡有沒有問題...
之後, 你再找SDK中的proppage.dll, 註冊他, 這個dll可以讓GraphEdit開filter的property page.
至於BDA的driver安裝後, 你會在BDA幾個相關的cateory找到幾個device,
首先要加入Network provider, 在這你要選DVB-T network provider.
另外你可能會在另外幾個BDA開頭的目錄中, 找到最多三個filter, demodelator, receiver, capture device. 至於有那幾個則是看driver而定. 再來就是打開tuner的property.
自己玩一下property的設定...裏面有個設frequency的, 要設定台灣DVB-T頻道的頻率值
設完後按submit. 順利的話你把整個圖建完按run的話就會有資料出來了..
不過, BDA 架構的driver, GraphEdit support的比較少, 所以有些東西可能必須要寫程式才能用...這是一個蠻大的課題, SO...看SDK吧...

另外一點補充的, 因為DVB-T是使用mepg2 transport stream來送資料..
你想要分析的話, 至少要先看ISO-13818才行..加上DirectShow SDK蠻多東西要看的...可能至少要花一個月以上的時間吧...

-------------------------------------------------------------------------------
目前手上有一個支援DVB-T with BDA 架構的C# sample code
程式下載處:
http://directshownet.sourceforge.net/index.html 裡的
DirectShow Samples April 2006 (2006-04-12)
(DirectShowNET與DirectShowSamples都要下載!!)
接上Asus的一台數位電視棒之後,隨即跑這個程式(此台電視棒有支援BDA架構)

遇到一些問題:
程式在一開始需要使用者輸入四個參數
分別是 Frequency、ONID、TSID、SID
目前我只知道三個參數
以台灣區北部(桃園)為例子
要中視的某一台頻道可能會填
Frequency 533
ONID (目前不曉得)
TSID 24
SID 101

我查了官網並沒有該參數的詳細訊息(大部分就是少了ONID)
請問ONID 該填什麼呢? 如果知道的人 可否提供一組 參數給我,
或是給我一些方向去尋找,謝謝。

另外在這個C#程式在跑的時候(compile已經過了)
總是會停在一個地方
錯誤訊息顯示 "this application only support the 2 filters BDA scheme"
程式是在執行renderstream()時,可能是參數傳遞錯誤
你可以在http://ss23.mcu.edu.tw/~s0170305/download/BDA_sample_code_for_csharp.ppt找到程式UI圖片,
目前很積極在解決這個問題,希望各位給我一點方向去解決這個問題,非常謝謝。








作者 : shunchia63(shunchia63) [ 貼文 3 | 人氣 8 | 評價 0 ] posted on 8/9/2007 10:28:24 PM
[ 回應本文 ] [ 發表新文 ] [ 回上頁 ] [ 回討論區列表 ] [ 回知識入口 ]
我用DVBT 有些一個TEST AP,可以撥放
台灣 15CH

參數的確非常難找

Sample AP:
http://delphi.ktop.com.tw/download.php?download=upload%2F468ecf4dcd82a_TV.zip

有空
try try See @@~





作者 : sasake23(阿金) [ 貼文 10 | 人氣 936 | 評價 0 ] posted on 8/12/2007 4:56:56 PM
[ 回應本文 ] [ 發表新文 ] [ 回上頁 ] [ 回討論區列表 ] [ 回知識入口 ]
謝謝你!!

不過我目前沒辦法撥出節目,可能是我這裡訊號強弱的關係...
(我是用 ASUS U3000 mini 在跑 ; 桃園龜山)
如果 可以成功再上來回報。


參數的部分,我試過一組是這樣:

以中視台來說
frequcncy 533MHz
ONID 8350
TSID 24
SID 102


ONID的資料來源為http://www.govbooks.com.tw/eguploadpub/eg011162/ch06/type2/gov50/num1/Eg.pdf (2005 八月的資料)

還請各位前輩多給我一些指教,謝謝。


我目前也是再開發dvbt ,目前已經有了 Transport Stream Source Filter

但是 要如何將property pages 給讀進去 有三個 program property pages ,Tuner property pages , Monitor property pages 那程式哪要如何連結呢?

快被追殺的新手

星期六, 6月 16, 2007

ADI Blackfin solution

ADI Blackfin could run uClinux.

http://hhcn.com/chinese/files/uClinux%20on%20BLACKFIN%20v1.1.pdf

U-Boot information

This note is just for u-boot search tracking from Google.

U-Boot porting.
http://www.lupaworld.com/23340/viewspace_4342.html
http://www.lupaworld.com/23340/viewspace_4343.html
http://www.lupaworld.com/23340/viewspace_13738.html

星期一, 4月 16, 2007

Developing with VS2005 C#

設計概念:

語言(C#)
基本上以前寫了不少C的程式,所以先進入 C++,再找到 C++ vs C# 異同處。

Framework (.NET 2.0)
這部分躲不了,應該就只能透過一系列的範例程式來掌握怎麼快速利用 .NET 2.0 framework 的物件了。

以上是轉換的概念~

星期日, 4月 15, 2007

Write once, run on Mac & Windows? (C#)

I try to get into Mac OS X programing world recently. The link as below is the new oppertunity of C#.
Have a look!

English Version: Creating Mac OS X applications with MS Visual Studio Express http://mac.sillydog.org/dev/visual_studio.php

Chinese Version: http://www.iim.nctu.edu.tw/~toki/CSharpOnOSX/c%23osx.html

Maybe in the near futhure, we will see the the possibilty of "Write once, run on Mac & WIndows".
Of course, you can say Java already done this, but C# ? This is my point.

星期三, 1月 10, 2007

NMAKE : fatal error U1065: invalid option '-'

I found this message while building CE image.
Why? because of the MAKEFLAG cause nmake error.
So, clear the MAKEFLAG to resolve this problem.

星期四, 12月 28, 2006

PXA255 MSCx[2:0] setting?

I saw the MSC0_VAL in PXA255 initial code & tried to found how to calculate the best setting for PXA255 with Intel P30 Flash, Yamaha YGV628.
The RDFx, RDNx, RRRx registers are difficult to understand why the value of them came from.

For P30 Flash:
I found the Application Note 768 (Intel Strata Flash Memory(J3) to Intel PXA270 Applications Processor Design Guide). This document mentions the RDFx, RDNx, RRRx came from Intel PXA270 clock speed & flash read/write timing. So, that's it.

星期二, 12月 26, 2006

Which files to add to repository?

Which files to add to repository?

As programer, we need to know the purpose of every file in our project to have fully control.
This document is about the files of Visual C++ & embedded Visual C++ which need to be put into our version control.
the url link: http://www.jeffhung.net/blog/articles/jeffhung/348/.

星期四, 12月 21, 2006

The Intel P30 Flash with Windows CE 4.2 FMD driver

1. I found the jflashmm could write correctly with P30 Flash. So, to fully understand the code of jflashmm could help me to know how to modify the CE driver.

1-1. modify the dbpxa255.dat (the memory map part)
1-2. use the Flash_891c_2_32.dat (the P30 series flash have 4 x 32K Block + 255 x 128K block)

the CE side:
2-1. to know the inside of FMD driver(Intel Strata) comes with CE 4.2.
2-2. to modify the strata driver to fit the P30 spec, especially the mechanism of block lock & block arrangement.

星期四, 12月 14, 2006

Using USB KITL under Windows CE

Using USB KITL under Windows CE.

This is the on going project for me, to create an USB debug environment under Windows CE.NET or later. I will keep update the related info or my testing result.

RNDIS driver architecture differences between Windows CE 4.2 and 5.0. http://blogs.msdn.com/cenet/archive/2006/01/07/510512.aspx

Microsoft RNDIS sample use NetChip 2890
http://www.plxtech.com/products/net2000/net2890.asp

星期二, 12月 12, 2006

Install proxy server under Windows XP pro.

The link:
http://cha.homeip.net/blog/archives/2006/04/_winxp_cygwin_s.html

PS: The "acl" define of squid.conf need to be modified to fit the network filter.

星期五, 11月 10, 2006

Installing CVSNT & WinCVS

1. Installing the CVSNT under my Windows XP pro.
- get the cvsnt-2.5.03.2260.msi from my software repository. (You could download the latest version from www.cvsnt.org)
- running the setup program of cvsnt (nothing specical)
- there is no need to reboot system after completed the install process.
- setup the defaul repositoy (example: Location: D:/CVSRepository, Name: /CVSRepository, Description: CVSRoot, Publish repository checked, Default repository checked, Online checked.)
- done.

2. Installing the WinCVS
- get the WinCvs2_0_2-4.zip from www.wincvs.org.
- running the setup program of WinCVS (choosing Typical)
- Set the CVS server related setting by clicking Admin/Login. (example: :pserver:allen@jupiter:/CVSRepository, format is :protocal:user@server:/repository)
- done.


PS: always keep in mind if there is code changed, use "update" before directly commit.

星期三, 10月 25, 2006

Found two interesting books...

While web surfing, I found two interesting books, Car PC Hacks & Mapping Hacks. These two books are related with my current job, the Smart Phone & PNA developing. So, I bought these two books. Maybe could give me more idea about my design.

星期四, 8月 11, 2005

Xcursor in Xorg 6.8.2

the Xcursor on support transparent.
To modify the cursor source, the location is xorg_src/xc/programs/xcursorgen/xxx

星期三, 7月 27, 2005

Grub on /dev/hdc

/sbin/grub --batch --device-map=/dev/null <<"EOF"
device (hd0) /dev/hda
device (hd1) /dev/hdc
root (hd1,0)
setup (hd1)
quit
"EOF"

grub.conf
---
timeout 2
default 0
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
# For booting GNU/Linux
title JT Linux
kernel /boot/vmlinuz root=/dev/ram0 video=vesafb:ywrap,mtrr,1024x768-24@60 quiet splash=silent,theme:emergence ramdisk_size=32768 CONSOLE=/dev/tty1 vga=792
root (hd0,0)
initrd /boot/jt-ramdisk.gz
---

星期六, 7月 09, 2005

Gentoo ati drm driver in X.org 6.8.2

configuration step:

genkernel --udev --menuconfig all
  • Device Drivers - Character devices)
    • add Real Time Clock Support
    • /dev/agpgart (AGP support)
      • Intel
      • SiS chipset support
      • VIA chipset suport
  • modify /etc/modules.autoload.d/kernel-2.6
    • rtc
    • agpgart
    • sis-agp
    • fglrx
wait for compiling finished...
  • ATI-Drivers
    • emerge ati-drivers
    • emerge ati-drivers-extra (contains testing apps.)
    • opengl-update ati
  • X.org setting
    • fglrxconfig
      • do not chose AGPGART support, becasue of already built-in in kernel
      • modify BuisID to fit your VGA card in /etc/X11/xorg.conf
done....

星期五, 7月 09, 2004

PXE Server setup

pre-requirment:
1. windows 2000 server CD
2. netsetup.exe(download from www.enanshan.com/down)
3. Intel PXE PDK 2.0:pxe-pdk20.exe (download from www.enanshan.com/down)
4. Sage PXE download image(customized by Allen)

Step:
1. windows 2000 server
2. enable DHCP server which built-in in windows 2000 server
3. extract netsetup.exe to temp folder
4. install pxe-pdk20.exe (during install needs files from netsetup.exe)
5. using pxereg60.exe add DHCP option for PXE proxy
6. copy the Sage PXE download image to specify folder.(ex: C:\PROGRAM FILES\INTEL\PXE\PDK\SYSTEM\IMAGES\X86PC\UNDI\DOSUNDI)

Allen

星期四, 6月 17, 2004

PXE for Sage XPe image deploy

1. XPe Server enviroment
1-1. DHCP Server
1-2. PXE option
1-3. .0 bootstrap prepare

2. XPe client OS prepare
2-1. linux kernel (.1)
2-2. linux initrd (.2)
2-3. SAMBA mount implement
2-4. automatic download script
2-5. progress bar implement

3. Integration testing

work around:
1. using DOS boot image to be the PXE download image.
2. need a hard drive sector dump tools.
3. security improve.(ex: security key function implemnet)


Allen