9front - general discussion about 9front
 help / color / mirror / Atom feed
* Problems building Raspberry Pi image
@ 2019-03-29 18:41 Pablo Tesari
  0 siblings, 0 replies; only message in thread
From: Pablo Tesari @ 2019-03-29 18:41 UTC (permalink / raw)
  To: 9front

[-- Attachment #1: Type: text/plain, Size: 642 bytes --]

Hello,
I'm failing to make an image for a rpi 1 B+ following the guide in the appendix.

Below I leave the error message and attached the complete log.

processing /n/src9/sys/lib/sysconfig/proto/distproto
mkfs: /n/src9/sys/lib/sysconfig/proto/distproto: can't write
/n/newfs/sys/lib/dist/usr/glenda/r.pi.img.696.disk:
'/n/newfs/sys/lib/dist/usr/glenda/r.pi.img.696.disk' does not exist
hjfs: sync
hjfs: ending
mv: can't stat /usr/glenda/r.pi.img.696.disk:
'/usr/glenda/r.pi.img.696.disk' does not exist
mk: @{ objtype=arm bootcode=/sys/src/boot/bcm/^(bootcode.bin ...  :
exit status=rc 696: rc 698: mv 1057: failure

Thanks in advance
Pablo

[-- Attachment #2: rpi_img_err --]
[-- Type: application/octet-stream, Size: 4050 bytes --]

cirno% objtype=arm
cirno% cd /sys/lib/dist
cirno% bind / /n/src9
cirno% mk /usr/glenda/r.pi.img
@{
objtype=arm
bootcode=/sys/src/boot/bcm/^(bootcode.bin fixup_cd.dat start_cd.elf LICENCE.broadcom)
kernels=/n/src9/$objtype/^(9pi 9pi2)
> /env/config.txt {
	echo '[pi0]'
	echo 'kernel=9pi'
	echo '[pi1]'
	echo 'kernel=9pi'
	echo '[pi2]'
	echo 'kernel=9pi2'
	echo '[pi3]'
	echo 'kernel=9pi2'
	echo 'core_freq=250'
	echo '[all]'
	echo 'gpu_mem=16'
	echo 'enable_uart=1'
}
> /env/cmdline.txt {
	echo 'console=0'
}
fatfiles=(/env/config.txt /env/cmdline.txt $bootcode $kernels)
mb=1919	# storage vendors idea of 2GB
mk /usr/glenda/r.pi.img.694.disk
mv /usr/glenda/r.pi.img.694.disk /usr/glenda/r.pi.img
}
@{rfork n
mk binds
rm -f /usr/glenda/r.pi.img.696.disk
dd -if /dev/zero -of /usr/glenda/r.pi.img.696.disk -bs 1048576 -oseek $mb -count 1
s=`{basename $target}
disk/partfs -m /n/$s /usr/glenda/r.pi.img.696.disk
d=/n/$s/sdXX
disk/mbr $d/data
if(~ /usr/glenda/r.pi.img.696.disk *.pi.img.*){
	{
		echo 'a p1 . .+100M'
		echo 't p1 FAT32'
		echo 'a p2 . $'
		echo 't p2 PLAN9'
		echo 'A p1'
		echo 'p'
		echo 'w'
		echo 'q'
	} | disk/fdisk -b $d/data
	disk/prep -bw -a^(nvram fs) $d/plan9
	disk/format -d $d/dos $fatfiles
}
if not {
	disk/fdisk -baw $d/data
	disk/prep -bw -a^(9fat nvram fs) $d/plan9
	disk/format -d -r 2 $d/9fat $fatfiles
}
hjfs -f $d/fs -n $s -S -r
{
	echo echo on
	echo create /dist sys sys 775 d
	echo create /usr sys sys 775 d
	user=glenda
	echo newuser $user
	echo newuser adm +$user
	echo newuser sys +$user
	echo newuser upas +$user
	echo echo off
	sleep 1
} >> /srv/$s.cmd
mount -N -c /srv/$s /n/newfs
disk/mkfs -z 4096 -U -s /n/src9 -d /n/newfs /n/src9/sys/lib/sysconfig/proto/distproto
echo sync >> /srv/$s.cmd
echo halt >> /srv/$s.cmd
while(test -e /srv/$s.cmd) sleep 1
exit ''
}
test -d /n/src9/.hg && bind /n/src9 /n/src9/dist/plan9front
bind cfg /n/src9/cfg
bind mail/lib /n/src9/mail/lib
bind ndb /n/src9/lib/ndb
bind -a adm/timezone /n/src9/adm/timezone
bind usr /n/src9/usr
1+0 records in
1+0 records out
cylinder = 2064384 bytes
   empty                 0 975        (975 cylinders, 1.87 GB) 
>>> >>> >>> >>> >>> >>> '* p1                    0 50         (50 cylinders, 98.43 MB) FAT32
'  p2                   50 975        (925 cylinders, 1.77 GB) PLAN9
>>> >>> nvram 1
fs 3729596
add config.txt at clust 2
add cmdline.txt at clust 3
add bootcode.bin at clust 4
add fixup_cd.dat at clust 11
add start_cd.elf at clust 12
add LICENCE.broadcom at clust b9
add 9pi at clust ba
add 9pi2 at clust 428
Initializing FAT file system
type hard, 49 tracks, 64 heads, 63 sectors/track, 512 bytes/sec
Adding file /env/config.txt, length 115
add config.txt at clust 2
Adding file /env/cmdline.txt, length 10
add cmdline.txt at clust 3
Adding file /sys/src/boot/bcm/bootcode.bin, length 52296
add bootcode.bin at clust 4
Adding file /sys/src/boot/bcm/fixup_cd.dat, length 2623
add fixup_cd.dat at clust 11
Adding file /sys/src/boot/bcm/start_cd.elf, length 683172
add start_cd.elf at clust 12
Adding file /sys/src/boot/bcm/LICENCE.broadcom, length 1494
add LICENCE.broadcom at clust b9
Adding file /n/src9/arm/9pi, length 3595289
add 9pi at clust ba
Adding file /n/src9/arm/9pi2, length 3606940
add 9pi2 at clust 428
used 7962624 bytes
hjfs: reaming /n/r.pi.img.696.disk/sdXX/fs
hjfs: ream successful
hjfs: fs is /n/r.pi.img.696.disk/sdXX/fs
hjfs: >create /dist sys sys 775 d
hjfs: >create /usr sys sys 775 d
hjfs: >newuser glenda
hjfs: >newuser adm +glenda
hjfs: >newuser sys +glenda
hjfs: >newuser upas +glenda
hjfs: >echo off
processing /n/src9/sys/lib/sysconfig/proto/distproto
mkfs: /n/src9/sys/lib/sysconfig/proto/distproto: can't write /n/newfs/sys/lib/dist/usr/glenda/r.pi.img.696.disk: '/n/newfs/sys/lib/dist/usr/glenda/r.pi.img.696.disk' does not exist
hjfs: sync
hjfs: ending
mv: can't stat /usr/glenda/r.pi.img.696.disk: '/usr/glenda/r.pi.img.696.disk' does not exist
mk: @{ objtype=arm bootcode=/sys/src/boot/bcm/^(bootcode.bin ...  : exit status=rc 696: rc 698: mv 1057: failure
cirno% cat /dev/text > $home/rpi_img_err

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-03-29 18:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-29 18:41 Problems building Raspberry Pi image Pablo Tesari

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).