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