mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-09 00:17:31 +00:00
alarm/uboot-odroid-c2 to 2015.01-6
This commit is contained in:
parent
a5f951ec26
commit
49648686de
2 changed files with 33 additions and 6 deletions
|
@ -8,7 +8,7 @@ noautobuild=1
|
|||
|
||||
pkgname=uboot-odroid-c2
|
||||
pkgver=2015.01
|
||||
pkgrel=5
|
||||
pkgrel=6
|
||||
pkgdesc="U-Boot for ODROID-C2"
|
||||
arch=('aarch64')
|
||||
url="https://github.com/hardkernel/u-boot"
|
||||
|
@ -16,15 +16,15 @@ license=('GPL')
|
|||
install=$pkgname.install
|
||||
makedepends=('git' 'bc')
|
||||
backup=('boot/boot.ini')
|
||||
_commit=f416a769454b89c39d5b217d28bd3c9f5d1594df
|
||||
_commit=01bafa6e1264c034674c2e7090c82bab1484a070
|
||||
source=("https://github.com/hardkernel/u-boot/archive/${_commit}.tar.gz"
|
||||
'boot.ini'
|
||||
'0001-remove-cross-compiling.patch'
|
||||
'0002-sd_fusing-tweaks.patch'
|
||||
'0003-Add-linux-compiler-gcc5.h-to-fix-builds-with-gcc5.patch'
|
||||
'0004-arch-linux-arm-modifications.patch')
|
||||
md5sums=('ba155ecbfbede25e5db8285f031c1786'
|
||||
'4a7c30962e9d180d1551fed9b1261740'
|
||||
md5sums=('71044d38d2a1525928962caa2b33630f'
|
||||
'669b8a1d25777664eb6f6c974325854e'
|
||||
'063ed1211b9ff1f045f2480b02dcc7f0'
|
||||
'568e66da8b3e339fe653b05c375de4db'
|
||||
'fddd7cc81ad9e8dc76441376ff8c56f8'
|
||||
|
|
|
@ -50,7 +50,9 @@ setenv m "1080p60hz" # Progressive 60Hz
|
|||
# setenv m "1600x900p60hz"
|
||||
# setenv m "1680x1050p60hz"
|
||||
# setenv m "1920x1200p60hz"
|
||||
|
||||
# setenv m "2560x1080p60hz"
|
||||
# setenv m "2560x1440p60hz"
|
||||
# setenv m "2560x1600p60hz"
|
||||
|
||||
# HDMI BPP Mode
|
||||
setenv m_bpp "32"
|
||||
|
@ -63,13 +65,32 @@ setenv m_bpp "32"
|
|||
# setenv vout "dvi"
|
||||
# setenv vout "vga"
|
||||
|
||||
# HDMI HotPlug Detection control
|
||||
# Allows you to force HDMI thinking that the cable is connected.
|
||||
# true = HDMI will believe that cable is always connected
|
||||
# false = will let board/monitor negotiate the connection status
|
||||
setenv hpd "true"
|
||||
# setenv hpd "false"
|
||||
|
||||
# Default Console Device Setting
|
||||
setenv condev "console=ttyS0,115200n8 console=tty0" # on both
|
||||
|
||||
# Meson Timer
|
||||
# 1 - Meson Timer
|
||||
# 0 - Arch Timer
|
||||
# Using meson_timer improves the video playback whoever it breaks KVM (virtualization).
|
||||
# Using arch timer allows KVM/Virtualization to work however you'll experience poor video
|
||||
setenv mesontimer "1"
|
||||
|
||||
# Server Mode (aka. No Graphics)
|
||||
# Setting nographics to 1 will disable all video subsystem
|
||||
# This mode is ideal of server type usage. (Saves ~300Mb of RAM)
|
||||
setenv nographics "0"
|
||||
|
||||
###########################################
|
||||
|
||||
# Boot Arguments
|
||||
setenv bootargs "root=/dev/mmcblk0p1 rootwait rw ${condev} no_console_suspend hdmimode=${m} m_bpp=${m_bpp} vout=${vout} fsck.repair=yes"
|
||||
setenv bootargs "root=/dev/mmcblk0p1 rootwait rw ${condev} no_console_suspend hdmimode=${m} m_bpp=${m_bpp} vout=${vout} fsck.repair=yes net.ifnames=0 elevator=noop disablehpd=${hpd}"
|
||||
|
||||
# Booting
|
||||
|
||||
|
@ -79,6 +100,12 @@ setenv initrd_loadaddr "0x13000000"
|
|||
|
||||
load mmc 0:1 ${loadaddr} /boot/Image
|
||||
load mmc 0:1 ${dtb_loadaddr} /boot/dtbs/meson64_odroidc2.dtb
|
||||
|
||||
fdt addr ${dtb_loadaddr}
|
||||
if test "${mesontimer}" = "0"; then fdt rm /meson_timer; fdt rm /cpus/cpu@0/timer; fdt rm /cpus/cpu@1/timer; fdt rm /cpus/cpu@2/timer; fdt rm /cpus/cpu@3/timer; fi
|
||||
if test "${mesontimer}" = "1"; then fdt rm /timer; fi
|
||||
if test "${nographics}" = "1"; then fdt rm /reserved-memory; fdt rm /aocec; fdt rm /mali@d00c0000; fi
|
||||
|
||||
load mmc 0:1 ${initrd_loadaddr} /boot/initramfs-linux.img
|
||||
|
||||
booti ${loadaddr} ${initrd_loadaddr}:${filesize} ${dtb_loadaddr}
|
||||
|
|
Loading…
Reference in a new issue