Create sd card image to boot on dreamplug

First build: git clone git:// src export BASEDIR=/usr/src/freebsd_dreamplug

MAKE_JOBS="-j 4"

cd $BASEDIR/src
make ${MAKE_JOBS} buildworld TARGET_ARCH=arm UBLDR_LOADADDR=0x6400000 __MAKE_CONF=/dev/null srcconf=/dev/null
make ${MAKE_JOBS} buildkernel TARGET_ARCH=arm KERNCONF=DREAMPLUG-1001 __MAKE_CONF=/dev/null srcconf=/dev/null
make installworld TARGET_ARCH=arm DESTDIR=$BASEDIR/dist __MAKE_CONF=/dev/null srcconf=/dev/null
make distribution TARGET_ARCH=arm DESTDIR=$BASEDIR/dist __MAKE_CONF=/dev/null srcconf=/dev/null
make installkernel TARGET_ARCH=arm KERNCONF=DREAMPLUG-1001 DESTDIR=$BASEDIR/dist __MAKE_CONF=/dev/null srcconf=/dev/null

From []:
dd if=/dev/zero of=dreamplug.img bs=1M count=4096
mdconfig -t vnode -f dreamplug.img -u 0 gpart create -s mbr md0 gpart add -s32m -t \!14 md0 gpart set -a active -i 1 md0 gpart add -t freebsd md0 newfs_msdos -F 16 /dev/md0s1 newfs /dev/md0s2 mount -t msdosfs /dev/da0s1 /mnt
cp obj/arm.arm/usr/src/freebsd_dreamplug/src/sys/DREAMPLUG-1001/kernel.bin /mnt
umount /mnt mount /dev/md0s2 /mnt
cp -av dist/* /mnt
cp -av dist/.* /mnt
# now customize things in /etc
umount /mnt

-- KoenMartens - 13 Jan 2017
Topic revision: r3 - 03 Sep 2017, KoenMartens
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback