Building Less?

Ganbold Tsagaankhuu ganbold at gmail.com
Thu Sep 24 14:15:41 UTC 2015


On Thu, Sep 24, 2015 at 2:15 PM, Russell Haley <russ.haley at gmail.com> wrote:

> Hi there,
>
> I've pivoted back to my ARM board again. I noticed that when I build world,
> it builds all the man pages and languages and a whole bunch of other stuff.
> That's not too bad because I have a decent computer, but when I run
> installworld and install onto an sd card things get really slow.
>
> Is there a way to reduce what I am building and installing onto the sd
> card?
>
>
> Current process:
> make -DNO_CLEAN TARGET=arm TARGET_ARCH=armv6 -j10 buildworld
>
> make -DNO_CLEAN TARGET=arm TARGET_ARCH=armv6 KERNCONF=IMX6 -j10 buildkernel
>
>  sudo mount /dev/da2s2 /usr/jails/Jailbird/mnt/ufspart
>   make TARGET=arm TARGET_ARCH=armv6 DESTDIR=/mnt/ufspart installworld
> distribution
>
>
Maybe try to prepare image first and then write once to sd card?
Something like:

truncate -s 1024M imx6.img
mdconfig -f imx6.img -u0
newfs /dev/md0
mount /dev/md0 /mnt

# build kernel-toolchain if needed
make -DNO_CLEAN TARGET=arm TARGET_ARCH=armv6 KERNCONF=IMX6 -j10 buildkernel
make -DNO_CLEAN TARGET=arm TARGET_ARCH=armv6 -j10 buildworld
make -DNO_CLEAN TARGET=arm TARGET_ARCH=armv6 DESTDIR=/mnt installworld
distribution

umount /mnt
mdconfig -d -u0
sysctl kern.geom.debugflags=16
dd if=imx6.img of=/dev/da0 bs=4096k

Ganbold




>
>
> Thanks,
>
> Russ
> _______________________________________________
> freebsd-arm at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"
>


More information about the freebsd-arm mailing list