3 Commits

Author SHA1 Message Date
81f2b199ae use ARM-trusted-firmware mainline 2020-04-11 12:56:27 +00:00
a80a3afe28 put compiled files in place, change boot.txt to default 2020-04-11 11:51:51 +00:00
Tobias Opel
806465108d update to 2020.04-rc5 for col error fix lpddr3-666 2020-04-10 21:39:49 +02:00
17 changed files with 29 additions and 45 deletions

View File

@@ -1,7 +0,0 @@
# H1 How to build your own idbloader.img file
```
$ mkimage -n rk3328 -T rksd -d rk3328_ddr_333MHz_v1.13.bin idbloader.img
$ cat rk3328_miniloader_v2.46.bin >> idbloader.img
# dd if=idbloader.img of=/dev/sdx seek=64 conv=notrunc
```

BIN
firmwares/bl31.elf Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -3,8 +3,9 @@
# MAC address (use spaces instead of colons) # MAC address (use spaces instead of colons)
setenv macaddr da 19 c8 7a 6d f4 setenv macaddr da 19 c8 7a 6d f4
#part uuid ${devtype} ${devnum}:${bootpart} uuid part uuid ${devtype} ${devnum}:${bootpart} uuid
setenv bootargs console=ttyS2,1500000 root=LABEL=ROOTFS rootfstype=btrfs rootflags=subvol=@ rw rootwait earlycon=uart8250,mmio32,0xff130000 audit=0 setenv bootargs console=ttyS2,1500000 root=UUID=${uuid} rw rootwait earlycon=uart8250,mmio32,0xff130000 audit=0
#setenv bootargs console=ttyS2,1500000 root=LABEL=ROOTFS rootfstype=btrfs rootflags=subvol=@ rw rootwait earlycon=uart8250,mmio32,0xff130000 audit=0
setenv fdtfile rockchip/rk3328-rock64.dtb setenv fdtfile rockchip/rk3328-rock64.dtb
if load ${devtype} ${devnum}:${bootpart} ${kernel_addr_r} /boot/Image; then if load ${devtype} ${devnum}:${bootpart} ${kernel_addr_r} /boot/Image; then

Binary file not shown.

BIN
images/u-boot.itb Normal file → Executable file

Binary file not shown.

Binary file not shown.

View File

@@ -1,9 +1,9 @@
# U-Boot: Rock64 #U-Boot: Rock64
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org> # Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
pkgname=uboot-rock64 pkgname=uboot-rock64
pkgver=2020.01 pkgver=2020.04
pkgrel=2 pkgrel=3
pkgdesc="U-Boot for Rock64" pkgdesc="U-Boot for Rock64"
arch=('aarch64') arch=('aarch64')
url='http://www.denx.de/wiki/U-Boot/WebHome' url='http://www.denx.de/wiki/U-Boot/WebHome'
@@ -12,21 +12,25 @@ backup=('boot/boot.txt' 'boot/boot.scr')
makedepends=('bc' 'git' 'python' 'swig' 'dtc') makedepends=('bc' 'git' 'python' 'swig' 'dtc')
install=${pkgname}.install install=${pkgname}.install
_commit_rkbin=15a3e065a49ba7981945d725207618e92ebe8ebb _commit_rkbin=15a3e065a49ba7981945d725207618e92ebe8ebb
source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver/rc/-rc}.tar.bz2" source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver/rc/-rc}-rc5.tar.bz2"
"git+https://github.com/rockchip-linux/rkbin.git#commit=$_commit_rkbin" "https://github.com/ARM-software/arm-trusted-firmware/archive/v2.3-rc0.tar.gz"
'boot.txt' 'boot.txt'
'mkscr') 'mkscr')
md5sums=('b6b2e0787b6874e6b57da0a065a84f5a' md5sums=('86f167cfe3a840ac47ddba868d6f1576'
'SKIP' 'd1a2ae6b8b7a86a661db4079dd08b941'
'5f1089c471f39b303bccbb9e1fc196f7' 'a4f9a9f05a4e41f54b60a51318ffca36'
'021623a04afd29ac3f368977140cfbfd') '021623a04afd29ac3f368977140cfbfd')
prepare() { prepare() {
cd ${srcdir}/u-boot-${pkgver/rc/-rc} cd ${srcdir}/arm-trusted-firmware-2.3-rc0
cp ../rkbin/bin/rk33/rk322xh_bl31_v1.43.elf ./bl31.elf make PLAT=rk3328 all
cp ../rkbin/bin/rk33/rk322xh_bl32_v1.54.bin ./bl32.bin
sed -i 's/lpddr3-1600/lpddr3-666/g' arch/arm/dts/rk3328-rock64-u-boot.dtsi mv ${srcdir}/u-boot-${pkgver}{-rc5,}
cd ${srcdir}/u-boot-${pkgver/rc/-rc}
cp ../arm-trusted-firmware-2.3-rc0/build/rk3328/release/bl31/bl31.elf ./bl31.elf
# sed -i 's/lpddr3-1600/lpddr3-666/g' arch/arm/dts/rk3328-rock64-u-boot.dtsi
sed -i 's/800/600/g' arch/arm/dts/rk3328-sdram-lpddr3-1600.dtsi
cd ${srcdir}/u-boot-${pkgver/rc/-rc}/configs cd ${srcdir}/u-boot-${pkgver/rc/-rc}/configs
echo 'CONFIG_CMD_BTRFS=y' >> rock64-rk3328_defconfig echo 'CONFIG_CMD_BTRFS=y' >> rock64-rk3328_defconfig

View File

@@ -3,8 +3,9 @@
# MAC address (use spaces instead of colons) # MAC address (use spaces instead of colons)
setenv macaddr da 19 c8 7a 6d f4 setenv macaddr da 19 c8 7a 6d f4
#part uuid ${devtype} ${devnum}:${bootpart} uuid part uuid ${devtype} ${devnum}:${bootpart} uuid
setenv bootargs console=ttyS2,1500000 root=LABEL=ROOTFS rootfstype=btrfs rootflags=subvol=@ rw rootwait earlycon=uart8250,mmio32,0xff130000 audit=0 setenv bootargs console=ttyS2,1500000 root=UUID=${uuid} rw rootwait earlycon=uart8250,mmio32,0xff130000 audit=0
#setenv bootargs console=ttyS2,1500000 root=LABEL=ROOTFS rootfstype=btrfs rootflags=subvol=@ rw rootwait earlycon=uart8250,mmio32,0xff130000 audit=0
setenv fdtfile rockchip/rk3328-rock64.dtb setenv fdtfile rockchip/rk3328-rock64.dtb
if load ${devtype} ${devnum}:${bootpart} ${kernel_addr_r} /boot/Image; then if load ${devtype} ${devnum}:${bootpart} ${kernel_addr_r} /boot/Image; then

View File

@@ -1,17 +0,0 @@
[VERSION]
MAJOR=1
MINOR=2
[BL30_OPTION]
SEC=0
[BL31_OPTION]
SEC=1
PATH=../rkbin/bin/rk33/rk322xh_bl31_v1.43.elf
ADDR=0x40000
[BL32_OPTION]
SEC=1
PATH=../rkbin/bin/rk33/rk322xh_bl32_v1.54.bin
ADDR=0x08400000
[BL33_OPTION]
SEC=0
[OUTPUT]
PATH=trust.img

View File

@@ -1,14 +1,14 @@
flash_uboot() { flash_uboot() {
echo "A new U-Boot version needs to be flashed onto /dev/mmcblk0." echo "A new U-Boot version needs to be flashed onto /dev/mmcblk1."
echo "Do you want to do this now? [y|N]" echo "Do you want to do this now? [y|N]"
read -r shouldwe read -r shouldwe
if [[ $shouldwe =~ ^([yY][eE][sS]|[yY])$ ]]; then if [[ $shouldwe =~ ^([yY][eE][sS]|[yY])$ ]]; then
dd if=/boot/rksd_loader.img of=/dev/mmcblk0 seek=64 conv=notrunc dd if=/boot/rksd_loader.img of=/dev/mmcblk1 seek=64 conv=notrunc
dd if=/boot/u-boot.itb of=/dev/mmcblk0 seek=16384 conv=notrunc dd if=/boot/u-boot.itb of=/dev/mmcblk1 seek=16384 conv=notrunc
else else
echo "You can do this later by running:" echo "You can do this later by running:"
echo "# dd if=/boot/rksd_loader.img of=/dev/mmcblk0 seek=64 conv=notrunc" echo "# dd if=/boot/rksd_loader.img of=/dev/mmcblk1 seek=64 conv=notrunc"
echo "# dd if=/boot/u-boot.itb of=/dev/mmcblk0 seek=16384 conv=notrunc" echo "# dd if=/boot/u-boot.itb of=/dev/mmcblk1 seek=16384 conv=notrunc"
fi fi
} }
@@ -22,3 +22,5 @@ post_install() {
post_upgrade() { post_upgrade() {
flash_uboot flash_uboot
} }
##lsblk -dnpo name /dev/disk/by-partuuid/785dd377-de81-44f8-8cc9-0dcdc9a5c713