embed photon image

Hi, group,

Making my first build file(in text mode) is successful. In the same way
,making a photon image seems not work because I cann’t find a complete
photon buildfile sample there. Anyway, I present you my photon build file
intended to display a calculator(phcalc) as follows. Surely there’s
something
wrong with it and I appreciate you show me that. Your working version is
welcomed. Thanks.

[virtual=x86,bios +compress] .bootstrap = {
startup-bios
PATH=/proc/boot:/bin LD_LIBRARY_PATH=/proc/boot:/lib:/dll procnto
}
[+script] .script = {
#step 2 without step 1
…/Photon=/usr/photon/bin/Photon &
on -w /dev/photon -W10
#step 3
…/devi-hirun=/usr/photon/bin/devi-hirun kbd fd
-d/dev/kbd msoft fd -d /dev/ser1
#step 4
…/phfontFA= /usr/photon/bin/phfontFA -d
/usr/photon/font_repository -j -s 300k
on -w /dev/phfont -W10
#step 5
…/io-graphics=/usr/photon/bin/
io-graphics -g800x600x15 -dldevg-svga.so -I0 -d0x1023,0x9660 -R0
#step 6
…/pwm=/usr/photon/bin/pwm &
#step 7
…/phcalc=/usr/photon/bin/phcalc -x300 -y100
}
[type=link]/usr/photon/lib/libph.so.2= /usr/photon/lib/libph.so
libph.so



This’s my host pidin output.

$ pidin ar
pid Arguments
1 procnto
2 /sbin/tinit -p
3 slogger
12292 mqueue
5 pci-bios
6 devb-eide blk auto=partition dos exec=all cam quiet eide
dma,ioport=0x1
f0,irq=14 eide dma,ioport=0x170,irq=15
7 devc-con -n4
8 fs-pkg -a/pkgs/base/safe-config/etc/system/package/packages
4105 pipe
126986 random -t
45067 devc-pty -n 32
77836 devc-par -p0x378
94221 io-net -ptcpip -ppppmgr -pqnet
77838 spooler -d/dev/par1
77839 devc-ser8250 -u1 3f8,4 -u2 2f8,3
94224 devb-fdc cam quiet blk auto=partition,cache=100k
139281 dumper -d /var/dumps
507922 pfm
389139 pwm
200724 Photon -g -lphlogin “-Sphshutdown -l”
245781 fontsleuth -d /usr/photon/font_repository
434198 shelf
237591 /usr/photon/bin/phfontFA -d /usr/photon/font_repository -j -s 300k
278552 io-graphics -g800x600x15 -dldevg-svga.so -I0 -d0x1023,0x9660 -R0
294938 /usr/photon/bin/devi-hirun kbd fd -d/dev/kbd msoft fd -d /dev/ser1
471067 bkgdmgr
471068 wmswitch
471069 saver
507934 vserver.file
487455 Xphoton -once
487456 gtwm
528418 pterm
528419 /bin/sh
536612 pidin ar

Write image into floppy:

mkifs ph_test.bld ph_test.ifs
dinit -f ph_test.ifs /dev/fd0

then boot the host:

Unable start Photon …
Unable access /dev/photon …


Please show me your correction. Thanks again.
pzdec26@1010.com