forked from u-boot/u-boot
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ayufan: dev.mk: add quartz64a and quartz64b
- Loading branch information
Showing
8 changed files
with
98 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
UBOOT_DEFCONFIG ?= quartz64-a-rk3566_defconfig | ||
BL31 ?= tmp/rkbin/bin/rk35/rk3568_bl31_v1.43.elf | ||
BOARD_CHIP ?= rk3568 | ||
UBOOT_TPL = | ||
ROCKCHIP_TPL ?= tmp/rkbin/bin/rk35/rk3568_ddr_1560MHz_v1.17.bin | ||
LOADER_OFFSET ?= 64 | ||
LOADER_FLASH ?= rksd_loader | ||
IMAGES ?= flash-spi erase-spi | ||
LOADERS ?= rksd_loader rkspi_loader | ||
RKSD_LOADER ?= idbloader.img | ||
RKSPI_LOADER ?= idbloader-spi.img |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
setenv blink_power 'led work off; sleep 0.1; led work on' | ||
|
||
# erase flash | ||
run blink_power blink_power | ||
sf probe | ||
sf erase 0 400000 | ||
|
||
# blink forever | ||
while true; do run blink_power; sleep 1; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
setenv blink_power 'led work off; sleep 0.1; led work on' | ||
setenv blink_standby 'led diy off; sleep 0.1; led diy on' | ||
|
||
# first read existing loader | ||
run blink_power | ||
sf probe | ||
|
||
# or load rkspi_loader.img and write it to 0 offset of spi | ||
# or fail badly | ||
|
||
if size ${devtype} ${devnum}:${distro_bootpart} rkspi_loader.img; then | ||
load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} rkspi_loader.img | ||
|
||
# erase flash | ||
run blink_power blink_power | ||
sf erase 0 400000 | ||
|
||
# write flash | ||
run blink_power blink_power blink_power | ||
sf write ${kernel_addr_r} 0 ${filesize} | ||
|
||
# blink forever | ||
while true; do run blink_power; sleep 1; done | ||
else | ||
# blink forever | ||
echo "missing rkspi_loader.img" | ||
while true; do run blink_standby; sleep 1; done | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
UBOOT_DEFCONFIG ?= quartz64-b-rk3566_defconfig | ||
BL31 ?= tmp/rkbin/bin/rk35/rk3568_bl31_v1.43.elf | ||
BOARD_CHIP ?= rk3568 | ||
UBOOT_TPL = | ||
ROCKCHIP_TPL ?= tmp/rkbin/bin/rk35/rk3568_ddr_1560MHz_v1.17.bin | ||
LOADER_OFFSET ?= 64 | ||
LOADER_FLASH ?= rksd_loader | ||
IMAGES ?= flash-spi erase-spi | ||
LOADERS ?= rksd_loader rkspi_loader | ||
RKSD_LOADER ?= idbloader.img | ||
RKSPI_LOADER ?= idbloader-spi.img |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
setenv blink_power 'led work off; sleep 0.1; led work on' | ||
|
||
# erase flash | ||
run blink_power blink_power | ||
sf probe | ||
sf erase 0 400000 | ||
|
||
# blink forever | ||
while true; do run blink_power; sleep 1; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
setenv blink_power 'led work off; sleep 0.1; led work on' | ||
setenv blink_standby 'led diy off; sleep 0.1; led diy on' | ||
|
||
# first read existing loader | ||
run blink_power | ||
sf probe | ||
|
||
# or load rkspi_loader.img and write it to 0 offset of spi | ||
# or fail badly | ||
|
||
if size ${devtype} ${devnum}:${distro_bootpart} rkspi_loader.img; then | ||
load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} rkspi_loader.img | ||
|
||
# erase flash | ||
run blink_power blink_power | ||
sf erase 0 400000 | ||
|
||
# write flash | ||
run blink_power blink_power blink_power | ||
sf write ${kernel_addr_r} 0 ${filesize} | ||
|
||
# blink forever | ||
while true; do run blink_power; sleep 1; done | ||
else | ||
# blink forever | ||
echo "missing rkspi_loader.img" | ||
while true; do run blink_standby; sleep 1; done | ||
fi |