Plan 9 from Bell Labs’s /usr/web/sources/contrib/stallion/u-boot/arndale/mkimage

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc -e
# mkimage - prepare image for booting(8)

rfork en
ramfs

image=`{basename `{pwd}}^.img
dd -if /dev/zero -of /tmp/$image -bs 1024k -count 1 >/dev/null >[2=1]
disk/partfs /tmp/$image
mkboot /dev/sdXX
gzip -c /tmp/$image >$image.gz
exit ''

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.