alarm/odroid-boot-scr

This commit is contained in:
Mike Brown 2013-08-07 08:25:20 -04:00
parent d5eaa332d4
commit a01da45537
2 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,21 @@
# Maintainer: Mike Brown <mbrown@archlinuxarm.org>
pkgname=odroid-boot-scr
pkgver=2013.08.07
pkgrel=1
pkgdesc="This package contains multiple u-boot boot.scr for the ODROID family"
arch=('arm')
license=('GPL')
url="https://github.com/hardkernel/linux"
depends=('uboot-mkimage')
source=(genscr.sh)
md5sums=('b2fad22997070bec9fd44ea5f3feb826')
build() {
cd ${srcdir}/
./genscr.sh
}
package() {
mkdir $pkgdir/boot
cp $srcdir/*.scr $pkgdir/boot
}

20
alarm/odroid-boot-scr/genscr.sh Executable file
View file

@ -0,0 +1,20 @@
#!/bin/bash
HDTV_TYPE="dvi hdmi"
HDTV_FORMAT="480p60hz 576p50hz 720p60hz 720p50hz 1080p60hz 1080i60hz 1080i50hz 1080p50hz 1080p30hz 1080p25hz 1080p24hz"
RAM="1023M 2047M"
for hdtv_type in `echo $HDTV_TYPE`; do
for hdtv_format in `echo $HDTV_FORMAT`; do
for ram in `echo $RAM`; do
echo "setenv fdt_high \"0xffffffff\"" >> ./boot.tmp
echo "setenv hdtv_type \"$hdtv_type\"" >> ./boot.tmp
echo "setenv hdtv_format \"$hdtv_format\"" >> ./boot.tmp
echo "setenv bootcmd \"fatload mmc 0:1 0x40008000 zImage; bootm 0x40008000\"" >> ./boot.tmp
echo "setenv bootargs \"console=tty1 console=ttySAC1,115200n8 hdtv_type=\${hdtv_type} hdtv_format=\${hdtv_format} root=/dev/mmcblk0p2 rootwait rw mem=\${ram}\"" >> ./boot.tmp
echo "boot" >> ./boot.tmp
mkimage -A arm -T script -C none -n "Boot.scr for $hdtv_type at $hdtv_format" -d ./boot.tmp ./boot-$hdtv_type-$hdtv_format-$ram.scr
rm -rf boot.tmp
done
done
done