New package: cubietruck-uboot-2015.04
This commit is contained in:
parent
fd56c7de28
commit
a01bc3826e
3 changed files with 1446 additions and 0 deletions
9
srcpkgs/cubietruck-uboot/files/cubietruck.bootcmd
Normal file
9
srcpkgs/cubietruck-uboot/files/cubietruck.bootcmd
Normal file
|
@ -0,0 +1,9 @@
|
|||
setenv bootargs console=tty1 root=/dev/mmcblk0p2 rootwait fb0_framebuffer_num=4 sunxi_fb_mem_reserve=64 hdmi.audio=EDID:0 disp.screen0_output_mode=EDID:1280x720p60 panic=10 consoleblank=0
|
||||
# Old method
|
||||
fatload mmc 0 0x43000000 script.bin || ext2load mmc 0 0x43000000 boot/script.bin
|
||||
fatload mmc 0 0x48000000 uImage || ext2load mmc 0 0x48000000 uImage boot/uImage
|
||||
bootm 0x48000000
|
||||
# New method (one partition)
|
||||
ext4load mmc 0 0x43000000 boot/script.bin
|
||||
ext4load mmc 0 0x48000000 boot/zImage
|
||||
bootz 0x48000000
|
1402
srcpkgs/cubietruck-uboot/files/cubietruck.fex
Normal file
1402
srcpkgs/cubietruck-uboot/files/cubietruck.fex
Normal file
File diff suppressed because it is too large
Load diff
35
srcpkgs/cubietruck-uboot/template
Normal file
35
srcpkgs/cubietruck-uboot/template
Normal file
|
@ -0,0 +1,35 @@
|
|||
# Template file for 'cubietruck-uboot'
|
||||
pkgname=cubietruck-uboot
|
||||
version=2015.04
|
||||
revision=1
|
||||
wrksrc="u-boot-${version}"
|
||||
hostmakedepends="sunxi-tools uboot-mkimage"
|
||||
short_desc="Cubietruck U-Boot files for SD booting"
|
||||
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
||||
license="GPL-2"
|
||||
homepage="https://github.com/RobertCNelson/u-boot"
|
||||
distfiles="https://codeload.github.com/RobertCNelson/u-boot/tar.gz/v${version}>u-boot-${version}.tar.gz"
|
||||
checksum=b7cc9d61eb958ed794918aef72a92f07f41315c164cd9ace5a6ca18e3db4b0e1
|
||||
|
||||
only_for_archs="armv7l"
|
||||
|
||||
do_build() {
|
||||
unset CFLAGS CXXFLAGS LDFLAGS
|
||||
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
make CROSS_COMPILE=${XBPS_CROSS_TRIPLET}- Cubietruck_config
|
||||
make CROSS_COMPILE=${XBPS_CROSS_TRIPLET}-
|
||||
else
|
||||
make Cubietruck_config
|
||||
make
|
||||
fi
|
||||
mkimage -C none -A arm -T script -d ${FILESDIR}/cubietruck.bootcmd boot.scr
|
||||
fex2bin ${FILESDIR}/cubietruck.fex script.bin
|
||||
}
|
||||
|
||||
do_install() {
|
||||
vinstall u-boot-sunxi-with-spl.bin 644 boot
|
||||
vinstall script.bin 644 boot
|
||||
vinstall boot.scr 644 boot
|
||||
vinstall ${FILESDIR}/cubietruck.bootcmd 644 boot boot.cmd
|
||||
}
|
Loading…
Reference in a new issue