mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
alarm/uboot-beagblebone uEnv.txt update (fixes #554)
This commit is contained in:
parent
6f13eb85e6
commit
9410a280de
2 changed files with 7 additions and 5 deletions
|
@ -16,7 +16,7 @@ source=("git://git.denx.de/u-boot.git#tag=v${pkgver}"
|
|||
'uEnv.txt')
|
||||
md5sums=('SKIP'
|
||||
'dbc20ae3e48ae69fc2bbd35b96a6663e'
|
||||
'e651d31f2afa42fc383013f14315de36')
|
||||
'a280b41fc634331ae4e497bcf985fa46')
|
||||
|
||||
prepare() {
|
||||
cd u-boot
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
uenvcmd=if load mmc 0:2 ${loadaddr} /boot/zImage; then setenv mmcdev 0; run uenvboot; else setenv mmcdev 1; setenv mmcroot /dev/mmcblk1p2 rw; if load mmc 1:2 ${loadaddr} /boot/zImage; then run uenvboot; else echo No zImage found; fi; fi
|
||||
uenvboot=run loadfdt; run setmmcroot; run mmcboot
|
||||
setmmcroot=setenv mmcroot /dev/mmcblk${mmcdev}p2 rw
|
||||
loadfdt=load mmc ${mmcdev}:2 ${fdtaddr} /boot/dtbs/${fdtfile}
|
||||
uenvcmd=run findmmc1; run findmmc0; if run loaduimage; then run loadfdt; run mmcboot; fi;
|
||||
findmmc1=if test $board_name = A335BNLT; then setenv mmc1 1; else setenv mmc1 0; fi
|
||||
findmmc0=setenv mmcdev 0; mmc dev ${mmcdev}; if mmc rescan; then setenv mmc0 1; else setenv mmc0 0; fi
|
||||
mmcroot=/dev/mmcblk0p2 rw
|
||||
loadfdt=ext4load mmc ${mmcdev}:2 ${fdtaddr} /boot/dtbs/${fdtfile}
|
||||
loaduimage=if ext4load mmc 0:2 ${loadaddr} /boot/zImage; then setenv mmcdev 0; else setenv mmcdev 1; if test $mmc0 = 1; then setenv mmcroot /dev/mmcblk1p2 rw; fi; ext4load mmc 1:2 ${loadaddr} /boot/zImage; fi
|
||||
|
|
Loading…
Reference in a new issue