Skip to content

Instantly share code, notes, and snippets.

@crazyquark
Created July 25, 2014 04:55
Show Gist options
  • Save crazyquark/e92e67275dea6501fed9 to your computer and use it in GitHub Desktop.
Save crazyquark/e92e67275dea6501fed9 to your computer and use it in GitHub Desktop.
fbtft-stage2
(spindle)chris@ubuntu:~/Desktop/fbtft-spindle/spindle$ ../fbtft-stage0 2014-06-20-wheezy-raspbian.zip
+ . ./common
+ set -e
+ . ./config
+ RASPBIAN=1
+ [ -n 1 ]
+ TGT_ARCH=armhf
+ DEB_MIRROR=http://mirror.ox.ac.uk/sites/archive.raspbian.org/archive/raspbian/
+ NBD_DEV=/dev/nbd0
+ BOOT_DEV=/dev/nbd0p1
+ ROOT_DEV=/dev/nbd0p2
+ IMGFORMAT=qed
+ SDSIZE=2825M
+ WORKDIR=work
+ OUTDIR=out
+ FINISHED_SUCCESSFULLY=0
+ CLEANED_UP=0
+ WAS_TRAPPED=0
+ trap WAS_TRAPPED=1; universal_cleanup EXIT
+ trap WAS_TRAPPED=1; universal_cleanup; trap - INT; kill -INT $$ INT
+ WORKDIR=work
+ OUTDIR=out
+ readlink --canonicalize 2014-06-20-wheezy-raspbian.zip
+ ZIPIMG=/home/chris/Desktop/fbtft-spindle/spindle/2014-06-20-wheezy-raspbian.zip
+ basename 2014-06-20-wheezy-raspbian.zip .zip
+ PREVIMG=2014-06-20-wheezy-raspbian.img
+ CURIMG=fbtft-stage0.qed
+ cd work
+ sudo -v
+ echo 2014-06-20-wheezy-raspbian.img
+ basename 2014-06-20-wheezy-raspbian.zip .zip
+ echo 2014-06-20-wheezy-raspbian-2014-07-24-fbtft
+ [ -f 2014-06-20-wheezy-raspbian.img ]
+ chmod -w 2014-06-20-wheezy-raspbian.img
+ [ -f fbtft-stage0.qed ]
+ rm fbtft-stage0.qed
+ qemu-img convert -f raw -O qed 2014-06-20-wheezy-raspbian.img fbtft-stage0.qed
+ attach_image_to_nbd fbtft-stage0.qed /dev/nbd0
+ sleep 5
+ sudo qemu-nbd --nocache -v -c /dev/nbd0 fbtft-stage0.qed
NBD device /dev/nbd0 is now connected to fbtft-stage0.qed
+ sudo mount /dev/nbd0p1 boot
+ sudo mount /dev/nbd0p2 rootfs
+ sudo mv rootfs/etc/ld.so.preload rootfs/etc/ld.so.preload.disable
+ sudo rm rootfs/etc/profile.d/raspi-config.sh
+ cat rootfs/etc/rpi-issue
+ CUR_ISSUE=Raspberry Pi reference 2014-06-20 (armhf)
Generated using spindle, http://asbradbury.org/projects/spindle/, 8fe9fd4, stage4-lxde-edu.qed
+ sudo tee rootfs/etc/rpi-issue
+ cat
FBTFT image reference 2014-07-24
Raspberry Pi reference 2014-06-20 (armhf)
Generated using spindle, http://asbradbury.org/projects/spindle/, 8fe9fd4, stage4-lxde-edu.qed
+ sudo cp rootfs/etc/rpi-issue boot/issue.txt
+ sudo umount /dev/nbd0p1
umount: /home/chris/Desktop/fbtft-spindle/spindle/work/boot: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
+ WAS_TRAPPED=1
+ universal_cleanup
+ set +e
+ [ 0 -ne 1 ]
+ printf Initiating cleanup\n
Initiating cleanup
+ trap - INT
+ trap - EXIT
+ [ -p fifo.in ]
+ [ -b /dev/nbd0p1 ]
+ sudo umount /dev/nbd0p1
umount: /home/chris/Desktop/fbtft-spindle/spindle/work/boot: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
+ [ -b /dev/nbd0p2 ]
+ sudo umount /dev/nbd0p2
+ [ -b /dev/nbd0 ]
+ sudo umount /dev/nbd0
umount: /dev/nbd0: not mounted
+ [ -b /dev/nbd0 ]
+ detach_image_from_nbd /dev/nbd0
+ sudo qemu-nbd -d /dev/nbd0
/build/qemu-4PL7po/qemu-1.0.1+dfsg/nbd.c:nbd_trip():L613: From: 18446744073709551104, Len: 0, Size: 2962227200, Offset: 0
/build/qemu-4PL7po/qemu-1.0.1+dfsg/nbd.c:nbd_trip():L614: requested operation past EOF--bad client?
/dev/nbd0 disconnected
+ [ 1 -eq 1 ]
+ [ 0 -eq 0 ]
+ printf Did not complete script successfully\n
Did not complete script successfully
+ set -e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment