Compare commits

..

No commits in common. "master" and "2020.01-SPL-TPL" have entirely different histories.

19 changed files with 55 additions and 49 deletions

View File

@ -1,18 +1,3 @@
# rock64
<h3>commands to flash the files (includes in uboot-rock64.install)</h3>
dd if=rksd_load.img of=/dev/mmcblk1 seek=64 conv=notrunc\
dd if=u-boot.itb of=/dev/mmcblk1 seek=16384 conv=notrunc
<h5>layout, see</h5>
http://opensource.rock-chips.com/wiki_U-Boot<br>
http://opensource.rock-chips.com/wiki_Boot_option
![alt text](./Rockchip_bootflow.jpg "Partition Layout")
ARM-Trusted-Firmware:
http://opensource.rock-chips.com/wiki_ATF
changes, Packages, Information

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 KiB

7
firmwares/README.md Normal file
View File

@ -0,0 +1,7 @@
# 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
```

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
firmwares/trust.img Normal file

Binary file not shown.

BIN
firmwares/uboot.img Normal file

Binary file not shown.

Binary file not shown.

View File

@ -3,9 +3,8 @@
# MAC address (use spaces instead of colons)
setenv macaddr da 19 c8 7a 6d f4
part uuid ${devtype} ${devnum}:${bootpart} uuid
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
#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 fdtfile rockchip/rk3328-rock64.dtb
if load ${devtype} ${devnum}:${bootpart} ${kernel_addr_r} /boot/Image; then

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,44 +1,45 @@
#U-Boot: Rock64
# U-Boot: Rock64
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
pkgname=uboot-rock64
pkgver=2020.07
pkgrel=1
pkgver=2020.01
pkgrel=2
pkgdesc="U-Boot for Rock64"
arch=('aarch64')
url='http://www.denx.de/wiki/U-Boot/WebHome'
license=('GPL')
backup=('boot/boot.txt' 'boot/boot.scr')
makedepends=('bc' 'git' 'python' 'swig' 'dtc' 'uboot-tools')
makedepends=('bc' 'git' 'python' 'swig' 'dtc')
install=${pkgname}.install
source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
"https://github.com/ARM-software/arm-trusted-firmware/archive/v2.3.tar.gz"
_commit_rkbin=15a3e065a49ba7981945d725207618e92ebe8ebb
source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver/rc/-rc}.tar.bz2"
"git+https://github.com/rockchip-linux/rkbin.git#commit=$_commit_rkbin"
'boot.txt'
'mkscr')
md5sums=('86e51eeccd15e658ad1df943a0edf622'
'06ad72bdf63b922a3f3865d81f5d9ad2'
'a4f9a9f05a4e41f54b60a51318ffca36'
md5sums=('b6b2e0787b6874e6b57da0a065a84f5a'
'SKIP'
'5f1089c471f39b303bccbb9e1fc196f7'
'021623a04afd29ac3f368977140cfbfd')
prepare() {
cd ${srcdir}/arm-trusted-firmware-2.3
make PLAT=rk3328 all
cd ${srcdir}/u-boot-${pkgver/rc/-rc}
cp ../rkbin/bin/rk33/rk322xh_bl31_v1.43.elf ./bl31.elf
cp ../rkbin/bin/rk33/rk322xh_bl32_v1.54.bin ./bl32.bin
cd ${srcdir}/u-boot-${pkgver}
cp ../arm-trusted-firmware-2.3/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}/configs
# echo 'CONFIG_CMD_BTRFS=y' >> rock64-rk3328_defconfig
# echo 'CONFIG_FS_BTRFS=y' >> rock64-rk3328_defconfig
cd ${srcdir}/u-boot-${pkgver/rc/-rc}/configs
echo 'CONFIG_CMD_BTRFS=y' >> rock64-rk3328_defconfig
echo 'CONFIG_FS_BTRFS=y' >> rock64-rk3328_defconfig
# echo 'CONFIG_NETCONSOLE=y' >> rock64-rk3328_defconfig
echo 'CONFIG_IDENT_STRING=" Arch Linux ARM"' >> rock64-rk3328_defconfig
# cd ${srcdir}/u-boot-${pkgver/rc/-rc}/fs/btrfs
# patch --forward --strip=3 --input="${srcdir}/btrfs_extentio.patch"
}
build() {
cd ${srcdir}/u-boot-${pkgver}
cd ${srcdir}/u-boot-${pkgver/rc/-rc}
unset CLFAGS CXXFLAGS CPPFLAGS LDFLAGS
@ -49,7 +50,7 @@ build() {
}
package() {
cd u-boot-${pkgver}
cd u-boot-${pkgver/rc/-rc}
mkdir -p "${pkgdir}/boot"

View File

@ -3,9 +3,8 @@
# MAC address (use spaces instead of colons)
setenv macaddr da 19 c8 7a 6d f4
part uuid ${devtype} ${devnum}:${bootpart} uuid
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
#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 fdtfile rockchip/rk3328-rock64.dtb
if load ${devtype} ${devnum}:${bootpart} ${kernel_addr_r} /boot/Image; then

View File

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