From james.records at gmail.com Tue Nov 9 11:38:54 2010 From: james.records at gmail.com (James Records) Date: Mon, 8 Nov 2010 16:38:54 -0800 Subject: [flashboot] Building 4.8 Message-ID: Just curious if anyone has had any luck building under 4.8, I just gave it a go last week and failed miserably. Normally I just run build-release, and then build-kernel and all is good but with 4.8 and the gcc4 changes I've hit a wall that looks very similar to this: http://old.nabble.com/Building-on-i386-with-DESTDIR-td29185870.html Just wondering if anyone else out there has attempted this yet? I'm going to take a look at it tonight and see if I can get a 4.8 version of flashboot working at all. I will update as soon as I have some info. thanks, James. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jakob at kirei.se Mon Nov 22 17:51:52 2010 From: jakob at kirei.se (Jakob Schlyter) Date: Mon, 22 Nov 2010 07:51:52 +0100 Subject: [flashboot] Building 4.8 In-Reply-To: References: Message-ID: anyone successfully building Flashboot for 4.8? jakob From stu at spacehopper.org Mon Nov 22 20:05:04 2010 From: stu at spacehopper.org (Stuart Henderson) Date: Mon, 22 Nov 2010 09:05:04 +0000 Subject: [flashboot] Building 4.8 In-Reply-To: References: Message-ID: <20101122090504.GC23486@symphytum.spacehopper.org> On 2010/11/22 07:51, Jakob Schlyter wrote: > anyone successfully building Flashboot for 4.8? yes (not stock flashboot, but no reason that wouldn't work). you need the patches from here: http://marc.info/?l=openbsd-tech&m=127929947318268 apply patches 1-3, install the mk files, build/install gcc with the NO_IMPLICIT_EXTERN_C patch, then you can build flashboot. From rd at tilde.se Mon Nov 22 19:53:08 2010 From: rd at tilde.se (Rickard Dahlstrand) Date: Mon, 22 Nov 2010 09:53:08 +0100 Subject: [flashboot] Building 4.8 In-Reply-To: References: Message-ID: <000C5FF4-5DEB-4E83-A42D-28B3E3BDD9E2@tilde.se> I haven't started looking into this yet, but if anyone has, I would be grateful for any help. Kind Regards, Rickard. 22 nov 2010 kl. 07.51 skrev Jakob Schlyter: > anyone successfully building Flashboot for 4.8? > > jakob > > _______________________________________________ > flashboot mailing list > flashboot at mindrot.org > https://lists.mindrot.org/mailman/listinfo/flashboot From james.records at gmail.com Tue Nov 23 03:08:02 2010 From: james.records at gmail.com (James Records) Date: Mon, 22 Nov 2010 08:08:02 -0800 Subject: [flashboot] Building 4.8 In-Reply-To: <000C5FF4-5DEB-4E83-A42D-28B3E3BDD9E2@tilde.se> References: <000C5FF4-5DEB-4E83-A42D-28B3E3BDD9E2@tilde.se> Message-ID: Hey all, I eventually got this working, here's a short synapses of what I had to do to get this to work: You'll need to download src.tgz and sys.tgz as well as base48.tgz etc48.tgz, comp48.tgz, man48.tgz, misc48.tgz into a directory then do the following: I do this from within the flashboot directory, but it could be done wherever you see fit. WORKDIR=sandbox mkdir -p ${WORKDIR} for i in base etc comp man misc; do tar zxpf ${i}48.tgz -C ${WORKDIR}; echo "extracting ${i}.48.tgz to ${WORKDIR}"; done tar zxpf src.tar.gz -C ${WORKDIR}/usr/src tar zxpf sys.tar.gz -C ${WORKDIR}/usr/src rm -rf ${CWD}/${WORKDIR}/dev-orig mv ${CWD}/${WORKDIR}/dev ${CWD}/${WORKDIR}/dev-orig mkdir ${CWD}/${WORKDIR}/dev mount_mfs -o nosuid -s 32768 /dev/sd0b ${CWD}/${WORKDIR}/dev cp -p ${CWD}/${WORKDIR}/dev-orig/MAKEDEV ${CWD}/${WORKDIR}/dev/MAKEDEV cd ${CWD}/${WORKDIR}/dev ./MAKEDEV all cp -p ${CWD}/mk-mini.conf ${CWD}/${WORKDIR}/mk-mini.conf # Dump yourself into a chroot. /usr/sbin/chroot ${CWD}/${WORKDIR} /bin/ksh at this point I just export the MAKECONF=/mk-mini.conf and follow the steps from man release. When complete I exit out of the chroot environment, and change the build-bindinst.sh to point to this sandbox dir instead of flash-dist. There are a bunch of patches out there, but I saw a note from Theo saying he didn't really like the idea and as disk space is cheap now, this process takes about 2GB of total space to get to work, but at least for me its not an issue. I'm going to attempt to automate this so that I can pull down current from within the chroot and just change the DESTDIR from the build-bininst.sh to point to different chroots so I can have different versions. If I get this automated well enough I'll post it back here. J On Mon, Nov 22, 2010 at 12:53 AM, Rickard Dahlstrand wrote: > I haven't started looking into this yet, but if anyone has, I would be > grateful for any help. > > Kind Regards, Rickard. > > 22 nov 2010 kl. 07.51 skrev Jakob Schlyter: > > > anyone successfully building Flashboot for 4.8? > > > > jakob > > > > _______________________________________________ > > flashboot mailing list > > flashboot at mindrot.org > > https://lists.mindrot.org/mailman/listinfo/flashboot > > _______________________________________________ > flashboot mailing list > flashboot at mindrot.org > https://lists.mindrot.org/mailman/listinfo/flashboot > -------------- next part -------------- An HTML attachment was scrubbed... URL: From james.records at gmail.com Tue Nov 23 03:10:31 2010 From: james.records at gmail.com (James Records) Date: Mon, 22 Nov 2010 08:10:31 -0800 Subject: [flashboot] Building 4.8 In-Reply-To: References: <000C5FF4-5DEB-4E83-A42D-28B3E3BDD9E2@tilde.se> Message-ID: Oh, one more note, I had to change the mk-mini.conf to work, here is what the end result was for that file: WARNINGS=yes PIPE=-pipe STATIC= DEBUG= KERBEROS=no KERBEROS5=no AFS=no TCP_WRAPPERS=no J On Mon, Nov 22, 2010 at 8:08 AM, James Records wrote: > Hey all, > > I eventually got this working, here's a short synapses of what I had to do > to get this to work: > > You'll need to download src.tgz and sys.tgz as well as base48.tgz > etc48.tgz, comp48.tgz, man48.tgz, misc48.tgz into a directory then do the > following: > > I do this from within the flashboot directory, but it could be done > wherever you see fit. > > WORKDIR=sandbox > mkdir -p ${WORKDIR} > for i in base etc comp man misc; do tar zxpf ${i}48.tgz -C ${WORKDIR}; echo > "extracting ${i}.48.tgz to ${WORKDIR}"; done > tar zxpf src.tar.gz -C ${WORKDIR}/usr/src > tar zxpf sys.tar.gz -C ${WORKDIR}/usr/src > rm -rf ${CWD}/${WORKDIR}/dev-orig > mv ${CWD}/${WORKDIR}/dev ${CWD}/${WORKDIR}/dev-orig > mkdir ${CWD}/${WORKDIR}/dev > mount_mfs -o nosuid -s 32768 /dev/sd0b ${CWD}/${WORKDIR}/dev > cp -p ${CWD}/${WORKDIR}/dev-orig/MAKEDEV ${CWD}/${WORKDIR}/dev/MAKEDEV > cd ${CWD}/${WORKDIR}/dev > ./MAKEDEV all > cp -p ${CWD}/mk-mini.conf ${CWD}/${WORKDIR}/mk-mini.conf > > # Dump yourself into a chroot. > /usr/sbin/chroot ${CWD}/${WORKDIR} /bin/ksh > > at this point I just export the MAKECONF=/mk-mini.conf and follow the > steps from man release. > > When complete I exit out of the chroot environment, and change the > build-bindinst.sh to point to this sandbox dir instead of flash-dist. > > There are a bunch of patches out there, but I saw a note from Theo saying > he didn't really like the idea and as disk space is cheap now, this process > takes about 2GB of total space to get to work, but at least for me its not > an issue. I'm going to attempt to automate this so that I can pull down > current from within the chroot and just change the DESTDIR from the > build-bininst.sh to point to different chroots so I can have different > versions. If I get this automated well enough I'll post it back here. > > J > > > > > > On Mon, Nov 22, 2010 at 12:53 AM, Rickard Dahlstrand wrote: > >> I haven't started looking into this yet, but if anyone has, I would be >> grateful for any help. >> >> Kind Regards, Rickard. >> >> 22 nov 2010 kl. 07.51 skrev Jakob Schlyter: >> >> > anyone successfully building Flashboot for 4.8? >> > >> > jakob >> > >> > _______________________________________________ >> > flashboot mailing list >> > flashboot at mindrot.org >> > https://lists.mindrot.org/mailman/listinfo/flashboot >> >> _______________________________________________ >> flashboot mailing list >> flashboot at mindrot.org >> https://lists.mindrot.org/mailman/listinfo/flashboot >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: