[CUWiN-Dev] Iso build failing?
David Young
dyoung at pobox.com
Fri Jun 1 16:02:44 CDT 2007
On Fri, Jun 01, 2007 at 03:00:47PM -0500, Matthew Isaacs wrote:
>
> Running buildiso I get the following error:
>
> mkstaboot: begin step 'iso'
> nbinstallboot: Reading
> `/home/isaacsm/cuwin/iso-scratch/i386/bootxx_cd9660': short read, 2048
> bytes (should be 8192)
> nbinstallboot: Set bootstrap operation failed
> ./mkstaboot: exiting prematurely
>
>
> Possibly related to this:
> http://mail-index.netbsd.org/netbsd-bugs/2007/01/07/0006.html
>
> I've poked around some, but I don't have any other ideas.
>
> Suggestions?
The following commit ought to fix the build. I haven't tested an image.
Dave
On Fri, Jun 01, 2007 at 04:02:22PM -0500, dyoung at cuw.ojctech.com wrote:
> Author: dyoung
> Date: 2007-06-01 16:02:22 -0500 (Fri, 01 Jun 2007)
> New Revision: 4657
>
> Modified:
> cuw/trunk/src/boot-image/image.subr
> Log:
> Revamp the way that we install the bootblocks on a bootable ISO9660
> image for i386/amd64. Now the build works again, however, I have
> not tested an ISO9660 build.
>
>
>
> Modified: cuw/trunk/src/boot-image/image.subr
> ===================================================================
> --- cuw/trunk/src/boot-image/image.subr 2007-05-31 22:57:39 UTC (rev 4656)
> +++ cuw/trunk/src/boot-image/image.subr 2007-06-01 21:02:22 UTC (rev 4657)
> @@ -107,17 +107,21 @@
> $IMAGE_INSTALL -o root -g wheel ${MACHDIR}/$kernelname $INSTDIR/netbsd
> $IMAGE_INSTALL -o root -g wheel $DESTDIR/usr/mdec/boot $INSTDIR
>
> - $PLAIN_INSTALL -m 600 $DESTDIR/usr/mdec/bootxx_cd9660 ${MACHDIR}/.
> - $CUW_INSTALLBOOT -t raw ${MACHDIR}/bootxx_cd9660 \
> - $DESTDIR/usr/mdec/bootxx_cd9660
> - if [ ${MACHINE} = "amd64" ]; then
> + $PLAIN_INSTALL -m 600 $DESTDIR/usr/mdec/bootxx_cd9660 ${MACHDIR}/bootxx
> + $CUW_INSTALLBOOT -m ${MACHINE} -e ${MACHDIR}/bootxx
> +
> + case ${MACHINE} in
> + amd64|i386)
> machine=i386
> - else
> + ;;
> + *)
> machine=${MACHINE}
> - fi
> + ;;
> + esac
> +
> $TOOL_MAKEFS -x -F $DESTDIR/metalog.image -N $INSTDIR/etc \
> -t cd9660 \
> - -o "rockridge,bootimage=${machine};${MACHDIR}/bootxx_cd9660,no-emul-boot" \
> + -o "rockridge,bootimage=${machine};${MACHDIR}/bootxx,no-emul-boot" \
> $ISO $INSTDIR
> return 0
> }
>
> _______________________________________________
> CU-Wireless-Commits mailing list
> CU-Wireless-Commits at cuwireless.net
> http://lists.chambana.net/cgi-bin/listinfo/cu-wireless-commits
--
David Young OJC Technologies
dyoung at ojctech.com Urbana, IL * (217) 278-3933 ext 24
More information about the CU-Wireless-Dev
mailing list