Skip to content

Commit

Permalink
Chase BananaPi u-boot port updates.
Browse files Browse the repository at this point in the history
Fixes #266
  • Loading branch information
brd committed Oct 8, 2018
1 parent 0fb6ad5 commit 5be2037
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions board/BananaPi/setup.sh
@@ -1,17 +1,15 @@
KERNCONF=GENERIC
UBLDR_LOADADDR=0x42000000
SUNXI_UBOOT="u-boot-bananapi"
SUNXI_UBOOT_BIN="u-boot.img"
SUNXI_UBOOT_BIN="u-boot-sunxi-with-spl.bin"
IMAGE_SIZE=$((1900 * 1000 * 1000)) # 1.9 GB
TARGET_ARCH=armv6

UBOOT_PATH="/usr/local/share/u-boot/${SUNXI_UBOOT}"

allwinner_partition_image ( ) {
echo "Installing U-Boot files"
dd if=${UBOOT_PATH}/u-boot-sunxi-with-spl.bin conv=notrunc,sync of=/dev/${DISK_MD} bs=1024 seek=8
dd if=${UBOOT_PATH}/u-boot.img conv=notrunc,sync of=/dev/${DISK_MD} \
bs=1024 seek=40
dd if=${UBOOT_PATH}/${SUNXI_UBOOT_BIN} conv=notrunc,sync of=/dev/${DISK_MD} bs=1024 seek=8
disk_partition_mbr
disk_fat_create 32m 16 1m
disk_ufs_create
Expand Down

0 comments on commit 5be2037

Please sign in to comment.