From 43590515b239f24cf960470e91a12cb7f759cb2a Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 27 Feb 2013 23:02:53 +0100 Subject: [PATCH] rpi-firmware: update to a newer commit; added rpi specific config files. --- srcpkgs/rpi-firmware/files/cmdline.txt | 2 + srcpkgs/rpi-firmware/files/config.txt | 80 ++++++++++++++++++++++++++ srcpkgs/rpi-firmware/template | 12 +++- 3 files changed, 91 insertions(+), 3 deletions(-) create mode 100755 srcpkgs/rpi-firmware/files/cmdline.txt create mode 100755 srcpkgs/rpi-firmware/files/config.txt diff --git a/srcpkgs/rpi-firmware/files/cmdline.txt b/srcpkgs/rpi-firmware/files/cmdline.txt new file mode 100755 index 0000000000..7985b08065 --- /dev/null +++ b/srcpkgs/rpi-firmware/files/cmdline.txt @@ -0,0 +1,2 @@ + smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 console=ttyAMA0,115200 +kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 loglevel=4 elevator=noop rootwait diff --git a/srcpkgs/rpi-firmware/files/config.txt b/srcpkgs/rpi-firmware/files/config.txt new file mode 100755 index 0000000000..07481cd925 --- /dev/null +++ b/srcpkgs/rpi-firmware/files/config.txt @@ -0,0 +1,80 @@ +# uncomment if you get no picture on HDMI for a default "safe" mode +#hdmi_safe=1 + +# uncomment this if your display has a black border of unused pixels visible +# and your display can output without overscan +#disable_overscan=1 + +# uncomment the following to adjust overscan. Use positive numbers if console +# goes off screen, and negative if there is too much border +#overscan_left=16 +#overscan_right=16 +#overscan_top=16 +#overscan_bottom=16 + +# uncomment to force a console size. By default it will be display's size minus +# overscan. +#framebuffer_width=1280 +#framebuffer_height=720 + +# uncomment if hdmi display is not detected and composite is being output +#hdmi_force_hotplug=1 + +# uncomment to force a specific HDMI mode (this will force VGA) +#hdmi_group=1 +#hdmi_mode=1 + +# uncomment to force a HDMI mode rather than DVI. This can make audio work in +# DMT (computer monitor) modes +#hdmi_drive=2 + +# uncomment to increase signal to HDMI, if you have interference, blanking, or +# no display +#config_hdmi_boost=4 + +# uncomment for composite PAL +#sdtv_mode=2 + +#uncomment to overclock the arm. 700 MHz is the default. +#arm_freq=800 + +# for more options see http://elinux.org/RPi_config.txt + +## Some over clocking settings, govenor already set to ondemand + +##None +#arm_freq=700 +#core_freq=250 +#sdram_freq=400 +#over_voltage=0 + +##Modest +#arm_freq=800 +#core_freq=300 +#sdram_freq=400 +#over_voltage=0 + +##Medium +#arm_freq=900 +#core_freq=333 +#sdram_freq=450 +#over_voltage=2 + +##High +#arm_freq=950 +#core_freq=450 +#sdram_freq=450 +#over_voltage=6 + +##Turbo +#arm_freq=1000 +#core_freq=500 +#sdram_freq=500 +#over_voltage=6 + +gpu_mem_512=64 +gpu_mem_256=128 +cma_lwm=16 +cma_hwm=32 +cma_offline_start=16 + diff --git a/srcpkgs/rpi-firmware/template b/srcpkgs/rpi-firmware/template index 335ed6096d..e33a426651 100644 --- a/srcpkgs/rpi-firmware/template +++ b/srcpkgs/rpi-firmware/template @@ -1,6 +1,6 @@ # Template file for 'rpi-firmware' pkgname=rpi-firmware -version=20130219 +version=20130227 revision=1 short_desc="Firmware files for the Raspberry Pi" maintainer="Juan RP " @@ -11,14 +11,16 @@ noarch=yes nofetch=yes noextract=yes +conf_files="/boot/cmdline.txt /boot/config.txt" + do_fetch() { local url="git://github.com/raspberrypi/firmware.git" git clone --depth 1 $url ${pkgname}-${version} - # Latest commit from 20130219 + # Latest commit from 20130226 cd ${pkgname}-${version} - git checkout 4697c2b07a19f85f297abaf876d6edd1b1085bee + git checkout fea69f6e9e7c59fb292a026ff6aead6b17f21738 } do_install() { @@ -37,4 +39,8 @@ do_install() { vmove boot/COPYING.linux usr/share/licenses/${pkgname} vmove boot/LICENCE.broadcom usr/share/licenses/${pkgname} vmove opt/vc/LICENCE usr/share/licenses/${pkgname} + + # Install configuration files. + vinstall ${FILESDIR}/cmdline.txt 644 boot + vinstall ${FILESDIR}/config.txt 644 boot }