Skip to content

Commit

Permalink
Thu Sep 19 07:02:23 MSK 2019
Browse files Browse the repository at this point in the history
hyphop committed Sep 19, 2019
1 parent c56d36d commit 261400f
Showing 4 changed files with 33 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/README-vims-uboot-boot.md
Original file line number Diff line number Diff line change
@@ -8,6 +8,8 @@ fatload mmc 0 100000 s905_autoscript && autoscr 100000 || source 100000 # vim1 b
fatload mmc 1 100000 s905_autoscript && autoscr 100000 || source 100000
fatload mmc 2 100000 s905_autoscript && autoscr 100000 || source 100000
fatload mmc 0:1 100000 s905_autoscript && autoscr 100000 || source 100000 # vim1 boot from sd
```

## android
1 change: 1 addition & 0 deletions files/rescue.cmd
Original file line number Diff line number Diff line change
@@ -24,6 +24,7 @@
test "$hwver" = "" && setenv Cdtb /rescue/krescue-vim1.dtb
test "$hwver" = "VIM1.V12" && setenv Cdtb /rescue/krescue-vim1.dtb
test "$hwver" = "VIM1.V13" && setenv Cdtb /rescue/krescue-vim1.dtb
test "$hwver" = "VIM1.V14" && setenv Cdtb /rescue/krescue-vim1.dtb
test "$hwver" = "VIM2.V14" && setenv Cdtb /rescue/krescue-vim2.dtb
test "$hwver" = "VIM3.V10" && setenv Cdtb /rescue/krescue-vim3-s922x.dtb
test "$hwver" = "VIM3.V11" && setenv Cdtb /rescue/krescue-vim3-a311d.dtb
24 changes: 24 additions & 0 deletions scripts/prepare_sd_image_rescue_vim2_uboots
Original file line number Diff line number Diff line change
@@ -16,10 +16,21 @@ REBUILD_RESCUE=

DEV2=/dev/mmcblk1

UBOOT_VER=

for a in "$@"; do
case $a in
-r)
REBUILD_RESCUE=1
;;
-1)
UBOOT_VER=1
;;
-2)
UBOOT_VER=2
;;
-3)
UBOOT_VER=3
;;
*@*)
DEV="$a"
@@ -57,6 +68,19 @@ CMD $sudo losetup -D
UBOOT_SD=../share/u-boot.sd.bin
UBOOT_SPI=../share/u-boot.spi.bin


#u-boot.sd.bin
#u-boot.vim1.sd.bin

[ "$UBOOT_VER" ] && {

echo "[i] change uboot version to $UBOOT_VER">&2

CMD ln -sf u-boot.vim$UBOOT_VER.sd.bin $UBOOT_SD
CMD ln -sf u-boot.vim$UBOOT_VER.spi.bin $UBOOT_SPI

}

[ -f $UBOOT_SD ] || {
echo "[e] not found $UBOOT_SD">&2
exit 1
6 changes: 6 additions & 0 deletions scripts/sd/vpn.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

## hyphop ##

#= VPN script

0 comments on commit 261400f

Please sign in to comment.