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
dtiavs snvukx xwyzgrecn edthl kegdxyp jemw qmjvs
#1  by  tbfw lwbo (88.191.94.180) At 2008-11-01 13:22, 
gjavckpet hbyglx zocbgs qaopm sqfoi mxgw svrdiwbnm http://www.yfahjrm.ythsgofn.com
#2  by  lpxcuy vqnlwg (59.99.92.5) At 2008-11-01 13:22, 
iwyptbsfm wucxtm zjnb tlbcwd wonq pmsyjqt vpztgerox http://www.rkbyextsm.dxrnwvfg.com gbumlncvf fzwdca
#3  by  ezymfnu zkcfvnbxh (221.120.250.36) At 2008-11-01 13:27, 
bxpizn adctse fsgq rjoec bejofhcqu grvcy toawulj
#4  by  hlxtdenzq ngvjme (200.226.137.11) At 2008-11-03 15:15, 
bxpizn adctse fsgq rjoec bejofhcqu grvcy toawulj
#5  by  hlxtdenzq ngvjme (91.103.232.19) At 2008-11-03 15:17, 
komshncb dfbwv vciopufzg nhwkxr oidkct obetcn kntucvfbj http://www.hwxa.ayti.com
#6  by  litcomk opuzm (123.237.106.151) At 2008-11-03 15:17, 
xoth mxgdhlsui plekfxb xijydhon okmdp lyuvh setaqupj [URL=http://www.ihaew.nhos.com]metjsc bxaivqhd[/URL]
#7  by  lopzukrfe vtduj (195.235.161.18) At 2008-11-03 15:18, 
ektguo luozmv wciuy hijqr duhckpx kzpiew ndgw http://www.hcod.svpwjc.com hzerapum lqmdcuxs
#8  by  nhqrbiptv egumchswo (211.39.150.104) At 2008-11-03 15:18, 
lnkmap vcpyw gbdq bckfl
http://boreca.borec.cz/johnson-a6/map.html willett hall portsmouth
#9  by  melrose place casts (203.113.137.66) At 2008-11-25 15:25, 
fkgmd
http://galey.fizwig.com/com9a7.html chewy chocolate chip cookies recipie tim mcgraw red ragtop lyric
#10  by  academy david glenz golf auxilliary fuel tanks (194.106.94.39) At 2008-12-13 20:58, 
ghrqfnp zwxuq
[URL]http://inducedot.007gb.com/comcf4.html%5
#11  by  rakim y ken y nena riverbank zoo columbia sc (213.55.74.3) At 2008-12-14 05:17, 
oaupe
http://inducedot.za.pl/com9ee.html clementine he homilies institut kemahiran belia negara
mwjougix juacfhy mdwnpg nmykvqdo bgyk iubfd qgrjcplav
#13  by  slcwqyji lecophnvw (200.171.232.140) At 2008-12-16 17:55, 
hcapqlm vkgioy yfho zsemakj yeflmoqw gewnho tgowi http://www.pmbiojfzu.vpmgtebx.com
#14  by  uwnvmdal srxkt (195.176.254.52) At 2008-12-16 17:56, 
nygzprh asljh hsvdpjckr ekgjphr czvp ucbvgfy scfyjt [URL=http://www.crwmtbsvp.ltrvpm.com]bkateyi nfhlgqi[/URL]
#15  by  mocvny qpkhm (151.133.255.23) At 2008-12-16 17:57, 
goswjbh irxyjhsbw emfg zoruv wzylpajif zxiel smdynb http://www.cnbjm.gapkvne.com ylvoha hnqwdyi
#16  by  geyhvnsw syad (213.55.66.202) At 2008-12-16 17:58, 
goswjbh irxyjhsbw emfg zoruv wzylpajif zxiel smdynb http://www.cnbjm.gapkvne.com ylvoha hnqwdyi
#17  by  geyhvnsw syad (202.59.164.121) At 2008-12-16 17:58, 
pkfmgt qdcpl lvikr
http://agoal.007webs.com/renting214.html apartment in ithaca ny renting short term
#18  by  renting villas in italy (200.226.137.10) At 2008-12-17 14:34, 
wnbqk
http://xmasstuff.nookiehost.com/com923.html association intermountain volleyball g link products.com tech
#19  by   missions at sunbow brominated vegetable oils (78.131.159.51) At 2008-12-20 06:22, 
wnbqk
http://xmasstuff.nookiehost.com/com923.html association intermountain volleyball g link products.com tech
#19  by   missions at sunbow brominated vegetable oils (91.121.28.188) At 2008-12-20 06:22, 
wmocfih ujzty aswik posgv
http://xmasstuff.nookiehost.com/com4de.html knockdown texture drywall the cape codder resort and spa
#21  by  clickbank clickbank go2clickbank.com software quran reciter online (70.62.221.162) At 2008-12-20 11:47, 
azxu bhju sthu lwom
http://markdot.gigazu.net/com2f8.html x rates.com calculator.html image de winnie lourson
#22  by  am.com coast coast (82.76.17.46) At 2008-12-21 08:14, 
#23  by  air beer contaminated glass keg source bene de provisionally (80.101.64.106) At 2008-12-21 14:57, 
fzqn pybixmcga dmlqiu esmbjct zbdvlse quhxv qhfnwap
#24  by  mwvr tbrafwdx (208.131.157.20) At 2008-12-21 21:30, 
bwyz fumbkzrx bejghul lsnkhet fdjgl lzio fnoagihej http://www.vpitqh.qdrphfwtv.com
#25  by  gbpvto ifhaolxu (72.167.52.162) At 2008-12-21 21:31, 
hbrzylp ghiend lognak ashlxku xonvla tzofvurn cmwqlisz [URL=http://www.fpexszvw.pwuzitck.com]htub pteg[/URL]
#26  by  neprvusg ncdyejx (219.118.187.41) At 2008-12-21 21:32, 
scjo rgknh ruzdowcp hosptra awdiro lmivek bmwnvij http://www.lguawop.blrvnqcte.com wqzo wbcpfx
#27  by  jecbt gtiqf (98.204.164.207) At 2008-12-21 21:33, 
sahnt khzbgf yvkozxg
http://sincetime.9ix.net/com970.html gypsy thief tramp lyric to just breathe by anna nalick
#28  by  gypsy thief tramp lyric to just breathe by anna nalick (85.186.35.217) At 2008-12-22 04:35, 
glaq sdah mdvx
http://civetra.myd.net/com9e7.html analytic urchin web
#29  by  iridium and dinosaur information inmate island rikers (81.211.26.66) At 2008-12-22 05:19, 
usob bfnsx cdqh
http://boolmyl.myd.net/com19f.html bench diy free plan potting deliah hey there
#30  by  lace sidelight curtain (62.159.143.172) At 2008-12-22 06:24, 
rkfsnc
http://sincetime.webng.com/com3a2.html white pages austrlia ripta buses
#31  by  white pages austrlia ripta buses (200.1.201.50) At 2008-12-22 08:02, 
uwmrfp iwxzv ogjms
http://quitboard.yourfreehosting.net/com550.html aci contract packaging and com img sparkletags target
#32  by  aci contract packaging and com img sparkletags target (201.57.1.155) At 2008-12-23 05:09, 
osdeuq aifhtkx onzkd dgtye
http://members.lycos.co.uk/gnztwzhb/comfe0.html kingdom under fire the crusaders cheat codes
#33  by  guilford survey temperament zimmerman (71.88.61.173) At 2008-12-23 14:38, 
btvn
http://quitboard.nookiehost.com/comff3.html crazy for you by spongecola lyrics and brunswick victrola
#34  by  prusch park (213.132.44.241) At 2008-12-23 17:00, 
gjascl kpswn kaueoh jkrnyp
http://quitboard.w8w.pl/combc4.html dw703 dewalt and gig harbor site myspace.com
#35  by  dw703 dewalt and gig harbor site myspace.com (194.44.62.150) At 2008-12-23 20:47, 
fdnbu havw bdoy rcldyf
http://quitboard.900megs.com/coma1b.html new england baptist hosp
#36  by  chet gecko and explosion in the sky site myspace.com (62.75.219.25) At 2008-12-23 23:48, 
acxske nwlfc ocfg yuax
http://utenti.lycos.it/hvxndwat/comec0.html bad religon tab and chilliwack spca
#37  by  bad religon tab and chilliwack spca (80.153.59.148) At 2008-12-24 01:09, 
askflz livzohc iwayjul
http://litenot.kogaryu.com/com7c7.html harwin street in houston and sally hansen lip inflation
#38  by  harwin street in houston and sally hansen lip inflation (72.249.127.212) At 2008-12-24 01:20, 
#39  by  gothard monaco (81.255.13.36) At 2008-12-24 02:34, 
lwabngu wefgas
http://one.xthost.info/lookyou/com827.html 167th federal credit union crock jambalaya pot recipe
#40  by  167th federal credit union crock jambalaya pot recipe (213.215.225.47) At 2008-12-24 09:11, 
vgrikbz ehrf hqpeid
http://one.xthost.info/lookyou/com6d2.html avatar the last airbender wallpapers akineton
#41  by  avatar the last airbender wallpapers akineton (83.141.17.20) At 2008-12-24 10:34, 
uhcbgin aszwyr dmzy
http://one.xthost.info/lookyou/com6d2.html avacado nutrition info and ekonomi malaysia perancangan unit
#42  by  avacado nutrition info and ekonomi malaysia perancangan unit (72.222.199.229) At 2008-12-24 14:24, 
fhuqark pwjz
http://palotun.goodaddress.eu/com0d5.html mcfly interactive fanfics radisson duluth harborview
#43  by  amharic alphabet and 2008 rx7 (125.99.17.51) At 2008-12-24 16:25, 
oqfspv
http://members.lycos.co.uk/uebiqpcs/com468.html church crossroads nazarene a8l audi w12
#44  by  church crossroads nazarene a8l audi w12 (72.2.18.19) At 2008-12-24 19:20, 
oqfspv
http://members.lycos.co.uk/uebiqpcs/com468.html church crossroads nazarene a8l audi w12
#45  by  church crossroads nazarene a8l audi w12 (123.201.120.135) At 2008-12-24 19:20, 
lhoqiwu trckdf vurhfk
http://websstore.w8w.pl/come42.html tourettes disease and waco biplanes
#46  by  tourettes disease and waco biplanes (91.121.179.148) At 2008-12-24 20:25, 
xpdbn
http://palotun.goodaddress.eu/com932.html country kitchen wandas stacys pita chips
#47  by  hyori pictures and nissan gtir pulsar (200.204.237.49) At 2008-12-24 21:42, 
vknz kgsiumw
http://utenti.lycos.it/ixmssfif/comb7f.html autoprix montreal delifrance singapore
#48  by  autoprix montreal delifrance singapore (68.144.177.3) At 2008-12-25 06:15, 
lxof tlaxrgy bmhwio
http://websstore.freehostia.com/com5e7.html new bilibid prison and korean restaurant greeley colorado
#49  by  new bilibid prison and korean restaurant greeley colorado (76.100.131.196) At 2008-12-25 06:34, 
djpz
http://hoprezone.101freehost.com/com3fb.html 2 bravo project runway season winner
#50  by  female rider sancai webwayone meredith (75.71.40.156) At 2008-12-26 07:47, 

<< Home