File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
dev-ayufan/root/usr/local Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -44,21 +44,21 @@ case "$PACKAGE_NAME" in
4444 * -rockpro64-* )
4545 SD_LOADER=/usr/lib/u-boot-rockpro64/rksd_loader.img
4646 SPI_LOADER=/usr/lib/u-boot-rockpro64/rkspi_loader.img
47- SPI_OFFSET=$(( 64 * 512 ))
47+ SPI_OFFSET=0
4848 BOARD=pine64,rockpro64
4949 ;;
5050
5151 * -pinebookpro-* )
5252 SD_LOADER=/usr/lib/u-boot-pinebookpro/rksd_loader.img
5353 SPI_LOADER=/usr/lib/u-boot-pinebookpro/rkspi_loader.img
54- SPI_OFFSET=$(( 64 * 512 ))
54+ SPI_OFFSET=0
5555 BOARD=pine64,pinebookpro
5656 ;;
5757
5858 * -rockpi4b-* )
5959 SD_LOADER=/usr/lib/u-boot-rockpi4b/rksd_loader.img
6060 SPI_LOADER=/usr/lib/u-boot-rockpi4b/rkspi_loader.img
61- SPI_OFFSET=$(( 64 * 512 ))
61+ SPI_OFFSET=0
6262 BOARD=radxa,rockpi4b
6363 ;;
6464
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ prompt() {
1818 methods[$cnt ]=" dd if=\" $SD_LOADER \" of=\" $MNT_DEV \" iflag=fullblock oflag=direct"
1919 cnt=$(( cnt+ 1 ))
2020 echo " $cnt ) Remove bootloader on $MNT_DEV "
21- methods[$cnt ]=" dd if=/dev/zero of=\" $MNT_DEV \" iflag=fullblock oflag=direct"
21+ methods[$cnt ]=" dd if=/dev/zero of=\" $MNT_DEV \" bs=32768 iflag=fullblock oflag=direct || true "
2222 cnt=$(( cnt+ 1 ))
2323 echo
2424 done < <( blkid /dev/disk/by-id/{ata,usb,mmc}-* -o device -t PARTLABEL=" loader1" )
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ version: .scmversion
3232
3333deploy : u-boot-package
3434 scp u-boot-$(BOARD_TARGET ) -$(RELEASE_NAME ) .deb root@$(TARGET_HOST ) :
35- ssh root@$(TARGET_HOST ) dpkg -i ./u-boot-$(BOARD_TARGET ) -$(RELEASE_NAME ) .deb
36- # ssh root@$(TARGET_HOST) rock64_upgrade_bootloader.sh
35+ ssh root@$(TARGET_HOST ) apt install --reinstall ./u-boot-$(BOARD_TARGET ) -$(RELEASE_NAME ) .deb
36+ ssh root@$(TARGET_HOST ) rock64_upgrade_bootloader.sh
3737
3838endif
You can’t perform that action at this time.
0 commit comments