1 1.14 christos # $NetBSD: rpi.conf,v 1.14 2013/02/08 19:16:53 christos Exp $ 2 1.11 jakllsch # Raspberry Pi customization script used by mkimage 3 1.1 christos # 4 1.9 christos 5 1.9 christos board=rpi 6 1.14 christos kernel=$src/sys/arch/evbarm/compile/RPI/kernel.img 7 1.9 christos 8 1.9 christos . ${DIR}/conf/evbarm.conf 9 1.1 christos 10 1.1 christos firmwaredir=$src/external/broadcom/rpi-firmware/dist 11 1.1 christos firmwarefiles="LICENCE.broadcom bootcode.bin fixup.dat fixup_cd.dat start.elf start_cd.elf" 12 1.1 christos 13 1.1 christos make_filesystems() { 14 1.9 christos make_filesystems_evbarm 15 1.1 christos } 16 1.1 christos 17 1.1 christos make_fstab() { 18 1.9 christos make_fstab_evbarm 19 1.1 christos } 20 1.1 christos 21 1.13 christos make_label() { 22 1.13 christos make_label_evbarm 23 1.13 christos } 24 1.13 christos 25 1.1 christos customize() { 26 1.9 christos customize_evbarm 27 1.13 christos cat >> ${mnt}/etc/rc.conf << EOF 28 1.1 christos wscons=YES 29 1.1 christos EOF 30 1.1 christos 31 1.13 christos } 32 1.13 christos 33 1.13 christos populate() { 34 1.13 christos cat > ${mnt}/boot/cmdline.txt << EOF 35 1.12 skrll root=ld0a console=fb 36 1.10 skrll #fb=1280x1024 # to select a mode, otherwise try EDID 37 1.1 christos #fb=disable # to disable fb completely 38 1.1 christos EOF 39 1.14 christos if [ ! -f ${kernel} ]; then 40 1.14 christos echo ${PROG}: Missing ${kernel} 1>&2 41 1.10 skrll exit 1 42 1.10 skrll fi 43 1.10 skrll 44 1.10 skrll echo "${bar} installing kernel ${bar}" 45 1.14 christos cp ${kernel ${mnt}/boot 46 1.10 skrll 47 1.6 christos echo -n "${bar} installing firmware files:" 48 1.1 christos (cd ${mnt}/boot && 49 1.1 christos for f in ${firmwarefiles}; do 50 1.6 christos echo -n " $f" 51 1.13 christos cp ${firmwaredir}/${f} . 52 1.1 christos done 53 1.1 christos ) 54 1.6 christos echo " ${bar}" 55 1.1 christos 56 1.1 christos } 57