顯示具有 Mobigen 標籤的文章。 顯示所有文章
顯示具有 Mobigen 標籤的文章。 顯示所有文章

2010年6月29日 星期二

Mobilygen SDK 整合步驟

0. pre-make
. cd /mobilygen/
. link sdkrc to SDK_RC
. cd /opt/mobilygen/merlinsw_codec/
. link qmm-merlinrc to qmm-merlin-SDKr
. cd /opt/mobilygen/tools/
. link arm-merlin-linux-uclibc to arm-merlin-linux-uclibc-SDKr
. cd to your working source tree
. copy old env file to "env.sdkrc"
. modify "env.sdkrc"
SDK_VERSION=rc
. source ./env.sdkrc

1. mboot
. mkdir utils-sdkrc
. copy mboot src from SDK_RC/project/dist/mboot/ng3500 to 1.0-sdkrc
. mkdir utils-sdkrc
. copy cfg2env from SDK_RC/project/dist/cfg2env to utils-sdkrc
. copy config.evp-nand from SDK_RC// to utils-sdkrc
. copy mbootconfig-orig.sh from SDK_RC/project/dist/configs/distributions/merlin/config/mbootconfig.sh to utils-sdkrc
. modify "MTD_PARTS" to our MTD partition in mbootconfig-orig.sh
. copy mg3500-2ddr2_264MHz_128MB-soc.reg from SDK_RC// to utils-sdkrc
. copy .config to from SDK_RC/project/dist/mboot/build.chip_nand utils-sdkrc
. modify "SRC_ROOT" to "../1.0-sdkrc"
# 1
. link cfg2env / config.evp-nand / mbootconfig-orig.sh / mg3500-2ddr2_264MHz_128MB-soc.reg to utils-sdkrc/*
. cd 1.0/
. link .config to ../utils-sdkrc/.config
. link Makefile to ../utils-sdkrc/Makefile
# 2
. modify ch_mboot.ch
. ./ch_mboot.ch sdkrc

2. qhal
. cd kernel
. mkdir "qhal-sdkrc"
. copy qhal src from SDK_RC/project/merlinsw/host/lib/qhal/ to "qhal-sdkrc"
. modify "Makefile", add following to end of file.
TARGET_KERNEL_SOURCES=${MYPATH}/kernel/linux

linuxdrv-install:
echo "/home/jack/mobilygen/kernel/qhal/rootfs"
. link qhal to "qhal-sdkrc"

3. kernel
. cd kernel
. mkdir "linux-x.x.xx_sdkrc"
. copy linux kernel src from "SDK_RC/project/dist/linux/src/linux" to "linux-x.x.xx_sdkrc"
. copy linux .config file from "SDK_RC/project/dist/linux/build.mg3500" to "linux-x.x.xx_sdkrc"
. modify Makefile.
ARCH ?= arm
CROSS_CONPILE ?= arm-merlin-linux-uclibc-
. make menuconfig
remove "Support Thumb user binaries"
build-in network "Packet socket" and check setting in "Network support"
build-in wireless in "Network support"
MTD, SCSI, PPP, Character device->Maxim->qcc, USB, File system

4. make & install library
. cd admin_lib
. su
. make linkbuild
. make
. make install
. exit

2010年6月21日 星期一

Mobilygen SDK make note

Mobilygen SDK make note:
1. Install
. cd /mobilygen
. put *.run to here and chmod +x *.run
. mkdir SDK_RC and cd SDK_RC
. ../*.run
. /install.sh --src --workdir project
. export QUARC_ROOT=${PWD}/project
2. make dist
. cd project/dist
. make all DIST=merlin
3. make host
. cd ../merlinsw/host
. make all TARGET=arm-merlin

2009年7月17日 星期五

Mobigen 公版 throughput (補)

1. top -d 1 : 佔用cpu 4.7% ~ 5.6%
2. Mobigen 3500 公版:
get : 3.4MB/sec, cpu : 94.2
put : 5.15MB/sec, cpu : 94.2

結論:公版的i/o throughput 都比目前板子高出許多,難道是因為filesystem轉換的問題?

2009年7月10日 星期五

Mobigen & Penta throughput

以下為測試結果:詳細內容請參照(http://spreadsheets.google.com/ccc?key=tiZb4gGb-_NtCrWOraKXQkA&hl=zh_TW#)

Mobigen 2580 :
get : 2.08MB/sec, cpu : 91.3
putt : 2.12MB/sec, cpu : 90.06
Mobigen 3500 :
get : 2.12MB/sec, cpu : 97.6
put : 2.16MB/sec, cpu : 98.8
PentaMicro (Intel ixp425) :
get : 8.32MB/sec, cpu : 85.8
put : 8.24MB/sec, cpu : 91.08

2009年5月19日 星期二

ISSUE:Select error in mobigen

在mobigen的平台上,使用select時常常會因為"interrupted system call" (EINTR)出現,而導致正常流程出錯,查過google,應該是在有些platforms會有這個問題,所以在mobigen平台上,使用select時,應該在錯誤檢查再加入此判斷。
ex:
rc = select (fd + 1, &rfds, NULL, NULL, &tv);
if (rc < 0) {
if (errno == EINTR)
break;
error process...
}