[flashboot] Flashboot still possible with 4.9

flashbootlist at itmon.nl flashbootlist at itmon.nl
Thu May 5 03:13:54 EST 2011


Hi Rickard,

I don't completely understand why your build doesn't work but I just 
repeated all my steps in a clean virtualbox image and this worked for me:

I installed OpenBSD 4.9 in a virtualbox with 5GB virtual harddrive. Used one 
big root and a small swap (256MB)

During install I selected:
+ bsd
+ bsd.rd
- bsd.mp
+ base49.tgz
+ etc49.tgz
+ comp49.tgz
+ man49.tgz
- game49.tgz
- x*tgz

reboot into new installed system

scp flashboot-SNAP-20101224.tar.gz base49.tgz etc49.tgz comp49.tgz man49.tgz 
sys.tar.gz src.tar.gz root@<virtualmachine>:.
ssh root@<virtualmachine>
tar -xzf flashboot-SNAP-20101224.tar.gz
cd flashboot
export WORKDIR=sandbox
mkdir -p ${WORKDIR}
tar -xzf ../base49.tgz -C ${WORKDIR}/
tar -xzf ../etc49.tgz -C ${WORKDIR}/
tar -xzf ../comp49.tgz -C ${WORKDIR}/
tar -xzf ../man49.tgz -C ${WORKDIR}/
tar -xzf ../src.tar.gz -C ${WORKDIR}/usr/src/
tar -xzf ../sys.tar.gz -C ${WORKDIR}/usr/src/
tar -xzf ../sys.tar.gz -C /usr/src/
mv ${WORKDIR}/dev ${WORKDIR}/dev-orig
mkdir ${WORKDIR}/dev
mount_mfs -o nosuid -s 32768 /dev/wd0b ${WORKDIR}/dev
cp -p ${WORKDIR}/dev-orig/MAKEDEV ${WORKDIR}/dev/MAKEDEV
cd ${WORKDIR}/dev/
./MAKEDEV all
cd -
cp -p mk-mini.conf ${WORKDIR}/mk-mini.conf
chroot ${WORKDIR} /bin/ksh
export MAKECONF=/mk-mini.conf
cd /sys/arch/i386/conf
config RAMDISK
cd ../compile/RAMDISK
make clean ; make depend ; make
cd /usr/src
make obj
cd /usr/src/etc
env DESTDIR=/ sudo make distrib-dirs
cd /usr/src
make SUDO=sudo build
exit
cp ${WORKDIR}/sys/arch/i386/conf/RAMDISK .                                   
vi tools/makeconf.awk
(and remove -ldes from libs variable)
vi RAMDISK
(Change MINIROOTSIZE and ADD NKPTP for a 48mb root filesystem
option          MINIROOTSIZE=30720              # disktab.12mb
option          NKPTP=16
)
cp disktabs/disktab.20mb disktabs/disktab.48mb
vi disktabs/disktab.48mb
(Change 40960 into and 40 into 96)
vi build-largekernel.sh                                                      
(Change flash-dist into sandbox)
sh ./build-largekernel.sh RAMDISK

I hope this helps someone else; let me know if anything is unclear.

Mark




> Hi James,
> 
> I have made a version of build-release based on this that also includes downloading the release-files needed.
> 
> But I can't seem to get it to build, would you mind trying it out. It should work and I can't figure it out. This is the error I get:
> 
> /usr/src/lib/libcurses/tty/tty_update.c:1943: warning: integer overflow detected, op <<
> /usr/src/lib/libcurses/tty/tty_update.c:1943: warning: integer overflow detected, op <<
> /usr/src/lib/libcurses/tty/tty_update.c:1943: warning: integer overflow detected, op <<
> building llib-lcurses.ln
> Lint pass2:
> tbl /usr/src/lib/libcurses/curs_addch.3tbl | nroff -Tascii -mandoc > curs_addch.cat3
> /bin/sh: tbl: not found
> /bin/sh: nroff: not found
> *** Error code 1
> 
> Stop in /usr/src/lib/libcurses (line 30 of /usr/share/mk/bsd.man.mk).
> *** Error code 1
> 
> Stop in /usr/src/lib (line 48 of /usr/share/mk/bsd.subdir.mk).
> *** Error code 1
> 
> Stop in /usr/src (line 74 of Makefile).
> 
> 
> Rickard.




More information about the flashboot mailing list