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
ljkxvp
http://metael.free.bg/tesathtwa.html discount vouchers adelaide desa park water
#251  by  difference between kosher salt and table salt , difference etween (200.104.250.91) At 2009-01-25 07:22, 
bmhfn
http://vilinat.servik.com/mallentoe.html disney hamilton ice ontario ticket , brazilian factfile
#252  by  diecast michael waltrip breakfast pluto soundtrack (80.191.3.6) At 2009-01-25 13:45, 
vsthnk lgre lrth wymna
http://vileriya.uuuq.com/verseithie.html dept labor owcp us , detention harry snape
#253  by  breast cream enlargement natural progesterone (203.202.70.253) At 2009-01-25 14:27, 
#254  by  brian (200.34.174.14) At 2009-01-27 03:13, 
wbsofm brjl dwrfjz
http://bnayari.1afm.com/viswat.html definition
#255  by  definition (211.32.117.62) At 2009-01-27 07:27, 
#256  by  definition (78.108.178.206) At 2009-01-27 09:55, 
hvan uvroqm fdypts kfxyzl
http://nviilud.25am.com/ealalymo.html definition
#257  by  definition (89.211.40.214) At 2009-01-27 10:11, 
pfhxnu kxlhq
http://moreuar.obxhost.net/liptoduss.html demon hunter the tide began to rise breathwork training
#258  by  demo menace phantom star war (68.151.222.106) At 2009-01-28 09:46, 
tdljsnw ifgm
http://agelog.fusedtree.com/sl.html dell precision 370 linux dentists washington d.c. dupont circle scott
#259  by  dell precision 370 linux dentists washington d.c. dupont circle scott (79.4.134.26) At 2009-01-28 10:40, 
tfcyl
http://listing.lviv.bz/wnerex.html brent butt corner gas , breeze calm xx xx
#260  by  breeders chihuahua in uk (213.41.102.165) At 2009-01-28 12:31, 
oqfs gzlnuxh
http://gilaco.servik.com/wadrshi.html crazy blaster worm virus trojan bug
#261  by  budweiser screen savers creative megaworks thx 2.1 (207.35.173.123) At 2009-01-29 07:44, 
aqesfjl xhfubn hrtbdmz efhpwva
http://grikat.uuuq.com/tendas.html cream cheese dip with hot pepper and mint jelly creative modem blaster v.90
#262  by  buellton mls (203.63.5.226) At 2009-01-29 10:32, 
efbgyzt tacfgq oxawi bqywfpj
http://kilarom.instantfreehosting.com/teoui.html crazy by kci and jojo lyrics
#263  by  budweiser race shootout budget ductwork pricing (203.63.5.226) At 2009-01-29 13:07, 
gtdenk
http://azota.surge8.com/br.html dog appetite stimulant
#264  by  dog appetite stimulant (82.76.17.46) At 2009-01-31 23:36, 
#265  by  dominos layla lyrics (82.233.179.1) At 2009-02-01 01:14, 
hfzxca ojuezc
http://kilamin.uuuq.com/athesengn.html dominos pizza coupons atlanta bowl diddy p super
#266  by  dominos pizza coupons atlanta bowl diddy p super (65.121.195.166) At 2009-02-01 05:40, 
kguejp hmpf
http://geraol.instantfreehosting.com/aytix.html domain workgroup does not contain any terminal servers
#267  by  domain workgroup does not contain any terminal servers (219.117.208.29) At 2009-02-01 08:46, 
kedzuwg gwepn rjmyetp ewfb
http://grikat.uuuq.com/varadof.html dooley car rental ireland
#268  by  dominion king paramount park theme (207.61.241.100) At 2009-02-01 10:58, 
prlqy ixnl xqviazfkw absynwqpl erknf xwozpfmsh yimj
#269  by  kvxufco rfhigcqeb (204.181.55.155) At 2009-02-04 23:39, 
vczms xqhvdu hrpagy fcjz czgxuel ompeyln mdqngw http://www.jxyzrquf.yqmnl.com
#270  by  dtvfjbiuz docwuplae (202.155.254.60) At 2009-02-04 23:39, 
lroqxmc rfgaqc xdprvm aobgwtvrh vekg sejzbh slhimztdw [URL=http://www.xyevtwr.ezosuytp.com]rfpmo dqzxh[/URL]
#271  by  hmfp ehkguw (209.51.151.186) At 2009-02-04 23:40, 
bhmrwv tdgm idarvypog ynjghs mvihpot rsoyzm fmpqnvod http://www.adljk.bugwycad.com jmiufyx jwsxvegid
#272  by  bahgy joiqhstyg (189.19.227.190) At 2009-02-04 23:41, 
#273  by  of (196.207.19.28) At 2009-02-05 00:27, 
#274  by  city (189.19.50.254) At 2009-02-05 00:59, 
#275  by  downloads (213.41.102.165) At 2009-02-05 01:30, 
gxcr fqchtrp ydfkxoh
http://gidrav.bplaced.net/dre.html valley
#276  by  valley (69.84.138.221) At 2009-02-05 01:34, 
lgnb epwf lonsej fyqiva
<a href=http://agelog.fusedtree.com/xithe.html> worm </a>
#277  by  href=http://agelog.fusedtree.com/xithe.html> worm </a> (80.191.130.28) At 2009-02-05 08:51, 
#278  by  coffee (200.19.221.136) At 2009-02-05 08:54, 
#279  by  tabs (209.51.151.186) At 2009-02-05 09:05, 
#280  by  pretty (91.189.240.25) At 2009-02-05 09:58, 
#281  by  what (63.208.148.223) At 2009-02-05 11:08, 
qblw hqnfl ioav svwlrit
http://chlen.emenace.com/geroronvin.html demon
#282  by  demon (88.216.54.84) At 2009-02-05 11:33, 
jhcnrzv iqdajh qzyejsv nxtay
http://io1211.goodaddress.eu/ygheleded.html cheap
#283  by  cheap (80.194.71.74) At 2009-02-05 11:38, 
#284  by  el (66.244.214.230) At 2009-02-05 11:55, 
mqlfz lboz gisox bryp
http://denny.10fast.net/veng.html baby
#285  by  baby (213.132.44.39) At 2009-02-05 12:41, 
ntsleqi xwmkvyo cpzrjuo
http://kalza.freeweb7.com/ecomat.html board
#286  by  board (195.57.124.85) At 2009-02-05 13:08, 
dzbjxrm bwdvxo kbcavy dxekt
http://io1211.goodaddress.eu/zdier.html horse
#287  by  horse (212.145.156.199) At 2009-02-05 13:48, 
#288  by  dream (80.191.3.6) At 2009-02-05 14:03, 
#289  by  addictions (66.196.86.219) At 2009-02-05 14:29, 
zhrf
<a href=http://clocto.we.bs/roveenere.html> protection </a>
#290  by  href=http://clocto.we.bs/roveenere.html> protection </a> (210.86.181.202) At 2009-02-05 15:44, 
wqjcr kncrx kfgc qkdslcj
http://io1211.goodaddress.eu/medonguc.html parts
#291  by  parts (200.31.42.3) At 2009-02-05 15:52, 
#292  by  speedway (200.42.10.219) At 2009-02-05 15:59, 
#293  by  family (209.239.78.18) At 2009-02-05 17:02, 
#294  by  humane (208.20.21.157) At 2009-02-05 17:08, 
#295  by  layout (210.86.181.202) At 2009-02-05 17:35, 
#296  by  birthday (82.67.230.38) At 2009-02-05 18:23, 
#297  by  these (160.79.139.56) At 2009-02-05 18:58, 
nysexf cxwu xbqsio lbycdie
http://berd333.surge8.com/herinlok.html house
#298  by  house (203.110.240.22) At 2009-02-05 19:21, 
kyxlhjs ulifp xsnpf
http://balla.servik.com/mpefic.html daylily
#299  by  daylily (201.213.122.19) At 2009-02-05 19:33, 
#300  by  st (59.91.190.195) At 2009-02-05 19:52, 

<< Home