Is maximum swap usage tunable?
Mike
the.lists at mgm51.com
Wed Mar 7 17:15:28 UTC 2018
fwiw... here is the script that I use to initialize the RPi3 after I
install the image file.
=====
#! /bin/sh
# this script preps the Raspberry Pi for use
# sequence is:
# - find and load the image
# - boot
# - switch over to ssh, and upload this script
# - log in, su to root, and run this script
#
echo " "
echo "setting timezone"
tzsetup
#
echo " "
echo "removing freebsd account"
cd /tmp
pw userdel -n freebsd -r
#
echo " "
User=test
UserName="Test User"
echo "adding ${User}"
pw groupadd -n ${User} -g 1001
pw useradd -n ${User} -u 1001 -g 1001 -G wheel -c "${UserName}" \
-md /home/${User} -M 755 -w no -s /bin/tcsh
#
echo " "
echo "setting password for root"
/usr/bin/passwd root
echo "setting password for ${User}"
/usr/bin/passwd ${User}
#
echo " "
echo "setting root's name to rpi3"
pw usermod root -c rpi3 root
#
echo " "
echo "setting up pkg"
# needed for pkg because image was built against older userland
ln -s /usr/lib/libarchive.so /usr/lib/libarchive.so.6
env ABI=FreeBSD:11:aarch64 pkg bootstrap
test ! -d /usr/local/etc && mkdir -p /usr/local/etc
echo 'ABI = "FreeBSD:11:aarch64";' >> /usr/local/etc/pkg.conf
#
#
echo " "
echo "creating swap space"
SwapFile=/mnt/swap0
dd if=/dev/zero of=${SwapFile} bs=1m count=2048
chmod 0600 ${SwapFile}
echo "md99 none swap sw,file=${SwapFile},late 0 0" >> /etc/fstab
swapon -aL
swapctl -l
#
df -h
#
echo " "
#
#=fini=
==========
More information about the freebsd-arm
mailing list