What platform do you use?

Ian Lepore ian at FreeBSD.org
Mon Aug 11 02:27:47 UTC 2014


On Fri, 2014-08-08 at 21:11 -0700, Tim Kientzle wrote:
> On Aug 8, 2014, at 6:35 AM, Paul Mather <paul at gromit.dlib.vt.edu> wrote:
> 
> > 
> > It would be handy for those of us wanting to cross-build FreeBSD/arm 
> > for someone who is familiar with the build process to give a quick 
> > example of how to update a FreeBSD/arm installation that is cross-built 
> > on another system.
> 
> Personally, I use native "make buildworld buildkernel" and
> let it run over the weekend.  ;-)
> 
> I know a lot of people are happy with NFS mounts, but
> here are two other options that may prove attractive
> to some people:
> 
> * For systems that boot from SD card:
>   Cross-build a new system, mount the SD card onto the 
>   build host, and then update the SD card image with
>        make ARCH=armv6 DESTDIR=/mnt/ installworld
> 

A slight variation on this can save some time:  create a dir to hold a
copy of your sdcard root filesystem on your crossbuild host, and use it
for the install, then rsync it to the sdcard:

  make TARGET_ARCH=armv6 DESTDIR=~/bbroot installworld installkernel
  mount /dev/da0s2a /mnt
  rsync -vaxH ~/bbroot/ /mnt/
  umount /mnt

This gets you the rsync "binary diff" speedup of only writing files that
actually changed, and it's writing that's typically slow on sdcards.

-- Ian




More information about the freebsd-arm mailing list