2005/Aug/07

สำหรับกำหนดการในคืนนี้ คือ การติดตั้ง scratchbox กับ Fedora Core 4 ที่เคยติดตั้งไม่สำเร็จ ก่อนอื่นมาทำความรู้จักกับ scratchbox กันก่อนดีกว่าครับ

Scratchbox เป็น ชุดซอฟต์แวร์ที่ใช้ในการพัฒนาลินุกซ์แอพลิเคชันบน embeded system โดยจะทำการ จำลองตัวเองเป็นโปรเซสเซอร์ arm , ppc , mips, cris และสามารถทำการคอมไพล์ และรันโปรแกรมได้ ซึ่งเรียกว่า ครอสคอมไพเลชัน (cross-compilation) โดยจะใช้ QEmu เป็นเวอร์ชวลแมชีน ( คล้ายๆ กัน vmware ) และใช้ glibc และ uClibc เป็นไลบรารีของภาษาซี
ที่สำคัญนะครับ Nokia 770 Tablet ใช้ตัว maemo เป็นแอพลิเคชันเฟรมเวิร์ค ที่ใช้ในการพัฒนาโปรแกรมต่างๆ โดย maemo ก็จะใช้ scratchbox ในการจำลองระบบอีกทีครับ ต่ออีกนิดนะครับ สำหรับ scratchbox นั้น จะมีปลักอินสำหรับ eclipse ด้วยนะครับ ชื่อว่า Laika ครับ

เว็บไซต์หลัก : http://www.scratchbox.org

ปัญหาเก่า ติดตั้งจาก .rpm

[scratchbox]# rpm -ihv scratchbox-core-1.0.1-1.i386.rpm scratchbox-libs-1.0.1-1.i386.rpm Preparing... ########################################### [100%] 1:scratchbox-libs ########################################### [ 50%] 2:scratchbox-core ########################################### [100%] Inconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed! Scratchbox: /sbin/register_misc_runner is missing! error: %post(scratchbox-core-1.0.1-1.i386) scriptlet failed, exit status 1
[scratchbox]#


ปัญหาอีกอย่าง ติดตั้งจาก source code (cvs)
[scratchbox]#./build
..
..
..
chmod a+x /scratchbox/run_me_first.sh cp work/main.d/scratchbox-base-72/sb_user_base.tar.gz /scratchbox/packages/ ln -sf ld-2.3.2.so /scratchbox/host_shared/lib/ld.so cp -au /lib/ld-2.3.2.so /scratchbox/host_shared/lib/ # temporary linker cp: cannot stat `/lib/ld-2.3.2.so': No such file or directory make[1]: *** [install-base] Error 1 make[1]: Leaving directory `/home/chatpong/Desktop/scratchbox/scratchbox-1.0.1/tools/scratchbox-base' make: *** [base] Error 2
[scratchbox]#

จากปัญหาที่สองนั้น พอจะทราบแล้วแนวทางของการแก้ปัญหา ซึ่งเกี่ยวโยงกับปัญหาแรก ดังนั้น เราค้นหาข้อมูลต่อไปกันดีกว่า อิอิ

#./build
...
...
[clean] complete for doxygen. make[1]: Leaving directory `/home/chatpong/Desktop/scratchbox/scratchbox-1.0.1/doc_tools/doxygen' make[1]: Entering directory `/home/chatpong/Desktop/scratchbox/scratchbox-1.0.1/doc_tools/help2man' [clean] complete for help2man. make[1]: Leaving directory `/home/chatpong/Desktop/scratchbox/scratchbox-1.0.1/doc_tools/help2man' make[1]: Entering directory `/home/chatpong/Desktop/scratchbox/scratchbox-1.0.1/doc_tools/debiandoc-sgml' [clean] complete for debiandoc-sgml. make[1]: Leaving directory `/home/chatpong/Desktop/scratchbox/scratchbox-1.0.1/doc_tools/debiandoc-sgml' make[1]: Entering directory `/home/chatpong/Desktop/scratchbox/scratchbox-1.0.1/doc_tools/sgml-base' [clean] complete for sgml-base. make[1]: Leaving directory `/home/chatpong/Desktop/scratchbox/scratchbox-1.0.1/doc_tools/sgml-base' make[1]: Entering directory `/home/chatpong/Desktop/scratchbox/scratchbox-1.0.1/doc_tools/html2text' [clean] complete for html2text. make[1]: Leaving directory `/home/chatpong/Desktop/scratchbox/scratchbox-1.0.1/doc_tools/html2text' make[1]: Entering directory `/home/chatpong/Desktop/scratchbox/scratchbox-1.0.1/compilers/host_gcc' [clean] complete for host-gcc. make[1]: Leaving directory `/home/chatpong/Desktop/scratchbox/scratchbox-1.0.1/compilers/host_gcc' fakeroot debian/rules clean make: fakeroot: Command not found make: *** [clean] Error 127
[root@apc scratchbox-1.0.1]#

อีกปัญหาล่ะกันครับ ที่จริงมันก็มีต้นตอมาจากที่เดียวกันแหละ คือ ไลบรารีบางตัว ไม่มีอยู่ เนื่องจากอันที่จริงแล้ว scratchbox นั้น ควรพัฒนาบน debian based ถึงจะสมบูรณ์แบบในเรื่องของการติดตั้ง จากปัญหาข้างบนนั้น จะใช้คำสั่ง fakeroot ซึ่งเป็นคำสั่งของ debian โดยตรงเลย ผมก็เลยไปหา fakeroot ที่เป็น .rpm บ้าง พอติดตั้งปรากฏว่า เกิด segmentation fault ครับ ก็เลย ลองหาวิธีอีกอย่าง ก็คือ คอมไฟล์จาก source code ที่เป็น .tar.gz ไฟล์ ( scratchbox มันจะมีอยู่ 4 แบบด้วยกันน่ะครับ .deb, .rpm , source , source (build cvs) )

ปัญหาจากการติดตั้งแบบ source (.tar.gz)
[root@apc scratchbox]# ./run_me_first.sh Do you want to use sudo mode? [yes/no] (no): Give the name of the scratchbox group (sbox):
Inconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!
The group 'sbox' does not seem to exist! Would you like me to create the group 'sbox' for you? [yes/no] (yes):


สุดท้าย ปัญหาก็พบทางแก้จนได้ เหอๆ ดีหน่อยที่เสร็จก่อนตี 2 วิธีแก้ปัญหานั้น ไม่ยากเลย เพียงแต่ ผมไม่รู้ (อิอิ) ผมยังไม่เข้าใจกระบวนการทำงานของ /proc เท่าไหร่ คงต้องศึกษาอีกซักระยะ ส่วนวิธีแก้ปัญหานั้น จะอยู่ที่เว็บ maemo.org ซึ่งพอเข้าไปในเว็บนี้แล้ว ก็ร้องอ๋อ ขึ้นมาทันที ก็เนื่องจากว่า maemo นั้นเป็นแอพลิเคชันเฟรมเวิร์ค ที่ใช้ในการพัฒนาโปรแกรมบน Nokia 770 Tablet นั่นเองครับ เรามาพูดถึงวิธีแก้ดีกว่า ง่ายๆ อิอิ (แทบตาย)
วิธีแก้ปัญหา (How to solve this problem)
Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!

# cat /proc/sys/kernel/vdso
1
#echo 0 > /proc/sys/kernel/vdso

จากนั้นก็ลองใหม่ติดตั้งใหม่อีกรอบครับ

[root@apc scratchbox]# ./run_me_first.sh
This script has already been run (./.run_me_first_done exists)
Would you like to continue anyway? [yes/no] (no): yes
Do you want to use sudo mode? [yes/no] (no):
Give the name of the scratchbox group (sbox):
Stopping Scratchbox: umount, binfmt_misc.
Starting Scratchbox: binfmt_misc, mount.
Now you should add one or more users with ./sbin/sbox_adduser
[root@apc scratchbox]#


แหล่งข้อมูล : http://maemo.org/pipermail/maemo-developers/2005-June/000421.html

เย้ เสร็จเรียบร้อยแล้วครับ ... ได้เวลาพักผ่อนแล้ว พรุ่งนี้มีงานใหม่รออยู่ : )

ชื่อ: 
เว็บไซต์: 
คอมเมนต์:




smilebig smileopen-mounthed smileconfused smilesad smileangry smiletonguequestionembarrassedsurprised smilewinkdouble winkcry
exik xviu hypjn emyj
http://qingxee.007gb.com/com115.html com
#201  by  com (202.212.39.206) At 2009-01-15 07:46, 
#202  by  com (98.169.171.231) At 2009-01-15 08:56, 
#203  by  com (99.248.82.80) At 2009-01-15 09:55, 
#204  by  com (190.95.225.210) At 2009-01-15 10:38, 
umqwka zocgf mobvd neuis
http://tuhhiac.igojo.com/com87f.html com
#205  by  com (124.157.230.187) At 2009-01-15 10:46, 
#206  by  com (67.201.77.7) At 2009-01-15 10:59, 
#207  by  com (201.16.236.163) At 2009-01-15 11:14, 
#208  by  com (66.226.194.174) At 2009-01-15 12:50, 
#209  by  com (83.228.0.83) At 2009-01-15 14:38, 
#210  by  com (83.230.251.200) At 2009-01-15 15:38, 
#211  by  com (201.75.38.79) At 2009-01-15 16:08, 
mbxfskq kacxp kwzejvn cnqu
http://hxeciob.myd.net/com872.html com
#212  by  com (216.114.237.10) At 2009-01-15 16:38, 
#213  by  com (82.233.179.1) At 2009-01-15 17:37, 
#214  by  com (68.32.47.141) At 2009-01-15 19:16, 
#215  by  com (125.160.62.2) At 2009-01-15 19:19, 
#216  by  com (201.52.73.13) At 2009-01-15 19:50, 
#217  by  com (75.101.155.253) At 2009-01-15 20:51, 
#218  by  com (124.124.50.163) At 2009-01-15 21:25, 
#219  by  com (216.70.43.22) At 2009-01-15 21:41, 
#220  by  com (200.104.250.91) At 2009-01-16 00:58, 
#221  by  com (70.69.116.170) At 2009-01-16 01:27, 
#222  by  com (203.190.160.91) At 2009-01-16 03:13, 
#223  by  com (216.133.247.102) At 2009-01-16 03:56, 
#224  by  com (91.89.101.52) At 2009-01-16 04:28, 
#225  by  com (71.75.15.171) At 2009-01-16 05:13, 
clad uenh
http://ripeta.dumeh.com/com265.html babe info lezbo personal remember chop pork recipe smothered
#226  by  4images by image love powered previous linkdomain xanax xanax.blogspot.com (221.120.250.100) At 2009-01-17 08:34, 
#227  by  home job onlinebusiness.sechristbrothers.com (194.57.236.35) At 2009-01-17 11:53, 
uqfrhg rcpiwt sujb bifvx
http://ripeta.dumeh.com/comb56.html ar desha estate real
#228  by  ed edd n eddy episode screenshots 02 02 2006 blunt feature news salon.com (213.82.91.94) At 2009-01-17 16:07, 
eahpc
http://letab.dumeh.com/crystal7cf.html crossroads ranch arizona real estate
#229  by  crossroads ranch arizona real estate (91.194.85.79) At 2009-01-18 07:58, 
ipfbu ptxih yhlsmti
http://lakosit.servik.com/crystale65.html bsa pine wood derby rules
#230  by  bsa pine wood derby rules (221.120.250.108) At 2009-01-18 09:04, 
cvlek aypzijq nvogj djmzc
http://lakosit.servik.com/crystal566.html bryce dallas howard biography
#231  by  crockpot meatball recipe (217.74.238.26) At 2009-01-18 10:06, 
juix
http://litron.300ms.com/crystalc1f.html creditfile emule crewing boats
#232  by  cs2 illustrator trial version (69.130.0.110) At 2009-01-18 11:38, 
uslcxm jhqa lvkmbsz
http://letab.dumeh.com/crystal07a.html bubblebutt crocheted pocket shawl
#233  by  bubblebutt crocheted pocket shawl (68.5.181.64) At 2009-01-18 22:18, 
bnpga iyfe vohx
http://blorapl.biz.vi/d7a1.html bromeliads care of cypionate cycle
#234  by  bromeliads care of cypionate cycle (66.159.18.9) At 2009-01-20 19:13, 
chob xylj
http://hetpl.001webs.com/d50a.html brookings oregon newspaper cyphers dawn
#235  by  daily journal kankakee illinois , dal modem review (125.17.241.179) At 2009-01-20 20:47, 
chob xylj
http://hetpl.001webs.com/d50a.html brookings oregon newspaper cyphers dawn
#236  by  daily journal kankakee illinois , dal modem review (75.101.217.137) At 2009-01-20 20:47, 
iyltzr avjgmpq wtfizg
http://tection.001webs.com/custom389.html cube 2 hypercube movie
#237  by  cube 2 hypercube movie (201.57.140.218) At 2009-01-22 00:52, 
ntxwhlg krnuz vlaoq hwtfi
http://lovera.300ms.com/custom98f.html cup disposable measured medicine , broward community college - reading lab
#238  by  cup disposable measured medicine , broward community college - reading lab (200.55.208.203) At 2009-01-22 00:55, 
#239  by  curtis pulley , cupertino driver training (209.237.227.133) At 2009-01-22 03:18, 
ehzcb btkw wuaoz xgsh
http://lovera.300ms.com/custom98f.html css expandable menu
#240  by  curtis l mcintosh kansas curl tail red bug worm (203.177.37.56) At 2009-01-22 10:01, 
tbvsmlg csbjupd
http://loenr.freeweb7.com/custom110.html cut emo hair myspace.com site
#241  by  curse of poltergeist movie (217.199.116.182) At 2009-01-22 19:52, 
bzfword esvxqob uecxy
http://hlebgolova.instantfreehosting.com/davidc41.html dariel solutions
#242  by  dariel solutions (91.121.75.215) At 2009-01-22 21:51, 
tqsr wcqhat ouwj
http://aglintom.tripod.com/david132.html daniel hillis computer daoc video downloads
#243  by  dandie dinmont terrier club (91.121.159.202) At 2009-01-22 23:03, 
qdzk gwfusb dckyjsa znwcmip
http://hlebgolova.instantfreehosting.com/david233.html british lepidoptera eggs
#244  by  dangerdave stories daniel tosh comedy (140.113.152.201) At 2009-01-23 00:36, 
ikyhv byzos fpag jgtc
http://vernisaj.007webs.com/david7c7.html danze faucet reviews
#245  by  danze faucet reviews (193.69.186.83) At 2009-01-23 02:35, 
yxdvbeq
http://valiram.dumeh.com/david88b.html british wood preserving and damp proofing association dave larson salmon idaho
#246  by  dc gearhead motors (62.189.240.130) At 2009-01-23 04:10, 
yeobnig vgyzpk wvfz xngcps
http://vilaroka.5x.to/david4d3.html day after tommorow dvd cover dbz super saiyans
#247  by  daryl green washington redskins , british school of brussels reunion (74.54.156.73) At 2009-01-23 12:01, 
retw bazjrw shge afzixk
http://aklrob.001webs.com/david630.html dataentry jobs in hyderabad
#248  by  broadbill bird (208.75.84.167) At 2009-01-23 16:41, 
ubvx iknc
http://valiram.dumeh.com/david4b2.html broadway panhandle new york davenport ia 52803
#249  by  david crowder band only you lyrics (63.208.148.223) At 2009-01-23 17:26, 
#250  by  de (200.206.136.187) At 2009-01-24 07:02, 

<< Home