Changes between Version 3 and Version 4 of FreeBSDCrossBuilding


Ignore:
Timestamp:
Sep 29, 2010, 8:37:13 PM (12 years ago)
Author:
Rick van der Zwet
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FreeBSDCrossBuilding

    v3 v4  
    33niet cross-builden en maakt wat vervelende aannamems van de architecture van het systeem waar het op draait.  Ik maak dus de ports en het OS in de chroot en doe de instalatie in het 'master' os.
    44
    5   master# svn checkout http://svn.wirelessleiden.nl/svn/code/iris/trunk/nanobsd /root/nanobsd
    6   master# mkdir -p /usr/local/jail/i386
    7   master# csup -h cvsup.nl.freebsd.org /usr/share/examples/cvsup/standard-supfile
    8   master# cd /usr/src
    9   master# make buildworld TARGET=i386
    10   master# make installworld TARGET=i386 DESTDIR=/usr/local/jail/i386
    11   master# kldload nullfs
    12   master# mkdir -p /usr/local/jail/i386/usr/ports ; mount_nullfs /usr/ports /usr/local/jail/i386/usr/ports
    13   master# mkdir -p /usr/local/jail/i386/usr/obj ; mount_nullfs /usr/obj /usr/local/jail/i386/usr/obj
    14   master# mkdir -p /usr/local/jail/i386/root/nanobsd ; mount_nullfs /root/nanobsd /usr/local/jail/i386/root/nanobsd
    15   master# chroot /usr/local/jail/i386/
    16   jail# setenv UNAME_m i386
    17   jail# setenv UNAME_m i386
    18   jail# /root/nanobsd/tools/package-build.sh
    19   jail# patch -d /usr/src/sys/dev/usb -i /root/nanobsd/misc/patches/usbdevs.patch
    20   jail# patch -d /usr/src/sys/dev/usb/net -i /root/nanobsd/misc/patches/if_udav.c.patch
    21   jail# sh /usr/src/tools/tools/nanobsd/nanobsd.sh -c /root/nanobsd/cfg/nanobsd.wleiden
    22   Info: This build will fail ones it tries to play around with memory disks.
    23   jail# exit
    24   master# setenv CFG_ROOT_PASSWORD `dd if=/dev/random bs=10k count=10 | tr -cd '[a-zA-Z0-9]' | cut -c -15`
    25   master# echo $CFG_ROOT_PASSWORD
    26   master# sh /usr/src/tools/tools/nanobsd/nanobsd.sh -c /root/nanobsd/cfg/nanobsd.wleiden
    27   master# ls -alh /usr/obj/nanobsd.wleiden/_.disk.*
     5master# svn checkout http://svn.wirelessleiden.nl/svn/code/iris/trunk/nanobsd /root/nanobsd
     6master# mkdir -p /usr/local/jail/i386
     7master# csup -h cvsup.nl.freebsd.org /usr/share/examples/cvsup/standard-supfile
     8master# cd /usr/src
     9master# make buildworld TARGET=i386
     10master# make installworld TARGET=i386 DESTDIR=/usr/local/jail/i386
     11master# kldload nullfs
     12master# mkdir -p /usr/local/jail/i386/usr/ports ; mount_nullfs /usr/ports /usr/local/jail/i386/usr/ports
     13master# mkdir -p /usr/local/jail/i386/usr/obj ; mount_nullfs /usr/obj /usr/local/jail/i386/usr/obj
     14master# mkdir -p /usr/local/jail/i386/root/nanobsd ; mount_nullfs /root/nanobsd /usr/local/jail/i386/root/nanobsd
     15master# chroot /usr/local/jail/i386/
     16jail# setenv UNAME_m i386
     17jail# setenv UNAME_m i386
     18jail# /root/nanobsd/tools/package-build.sh
     19jail# patch -d /usr/src/sys/dev/usb -i /root/nanobsd/misc/patches/usbdevs.patch
     20jail# patch -d /usr/src/sys/dev/usb/net -i /root/nanobsd/misc/patches/if_udav.c.patch
     21jail# sh /usr/src/tools/tools/nanobsd/nanobsd.sh -c /root/nanobsd/cfg/nanobsd.wleiden
     22 Note: This build will fail ones it tries to play around with memory disks, this actually means we are ready for the next step.
     23jail# exit
     24master# setenv CFG_ROOT_PASSWORD `dd if=/dev/random bs=10k count=10 | tr -cd '[a-zA-Z0-9]' | cut -c -15`
     25master# echo $CFG_ROOT_PASSWORD
     26master# sh /usr/src/tools/tools/nanobsd/nanobsd.sh -c /root/nanobsd/cfg/nanobsd.wleiden
     27master# ls -alh /usr/obj/nanobsd.wleiden/_.disk.*
    2828
    2929References: