8 Commits

Author SHA1 Message Date
096422fc70 update to 2025.10 with 2.14 ATF 2025-11-30 08:55:03 +01:00
b171f1e707 update README
Signed-off-by: Kabbone <tobias@opel-online.de>

update README

Signed-off-by: Kabbone <tobias@opel-online.de>

update README

Signed-off-by: Kabbone <tobias@opel-online.de>

update README

Signed-off-by: Kabbone <tobias@opel-online.de>

update README

Signed-off-by: Kabbone <tobias@opel-online.de>
2020-08-15 11:36:36 +02:00
1346324309 compiled files
Signed-off-by: Kabbone <tobias@opel-online.de>
2020-08-15 11:20:32 +02:00
eed1339b3f update to uboot-2020.07 and stable ATF-2.3
Signed-off-by: Kabbone <tobias@opel-online.de>
2020-08-15 11:17:48 +02:00
b3c965ead4 update README
Signed-off-by: Kabbone <tobias@opel-online.de>
2020-04-11 15:32:56 +02:00
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
21 changed files with 53 additions and 85 deletions

View File

@@ -1,3 +1,18 @@
# rock64 # rock64
changes, Packages, Information
<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

BIN
Rockchip_bootflow.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 127 KiB

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.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1,45 +1,49 @@
# 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=2025.10
pkgrel=2 pkgrel=1
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'
license=('GPL') license=('GPL')
backup=('boot/boot.txt' 'boot/boot.scr') backup=('boot/boot.txt' 'boot/boot.scr')
makedepends=('bc' 'git' 'python' 'swig' 'dtc') makedepends=('bc' 'git' 'python' 'python-setuptools' 'python-pyelftools' 'swig' 'dtc' 'uboot-tools')
install=${pkgname}.install install=${pkgname}.install
_commit_rkbin=15a3e065a49ba7981945d725207618e92ebe8ebb source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver/rc/-rc}.tar.bz2" "https://github.com/ARM-software/arm-trusted-firmware/archive/v2.14.0.tar.gz"
"git+https://github.com/rockchip-linux/rkbin.git#commit=$_commit_rkbin"
'boot.txt' 'boot.txt'
'mkscr') 'mkscr')
md5sums=('b6b2e0787b6874e6b57da0a065a84f5a' sha256sums=('b4f032848e56cc8f213ad59f9132c084dbbb632bc29176d024e58220e0efdf4a'
'SKIP' 'd44936677a63c5216ffc151ae7711d458c992ef159a9df271fd9429f0a1cb5e5'
'5f1089c471f39b303bccbb9e1fc196f7' 'd0de25353f38dd633b63d7f547f0eaffe967bcd5d8c43b17897fb1c3d1f918fa'
'021623a04afd29ac3f368977140cfbfd') 'a4fc8b6b92bc364d6542670d294aa618a8501fb8729f415cc0a3eed776ef0c8e')
#'a0798acdac86101019f2e53c80846950c7a658314381c48c39a86f6b9fc70173'
prepare() { prepare() {
cd ${srcdir}/u-boot-${pkgver/rc/-rc} export CC=cc
cp ../rkbin/bin/rk33/rk322xh_bl31_v1.43.elf ./bl31.elf export LD=cc
cp ../rkbin/bin/rk33/rk322xh_bl32_v1.54.bin ./bl32.bin export AS=cc
export OC=objcopy
export OD=objdump
sed -i 's/lpddr3-1600/lpddr3-666/g' arch/arm/dts/rk3328-rock64-u-boot.dtsi cd ${srcdir}/arm-trusted-firmware-2.14.0
make PLAT=rk3328 bl31
cd ${srcdir}/u-boot-${pkgver/rc/-rc}/configs cd ${srcdir}/u-boot-${pkgver}
echo 'CONFIG_CMD_BTRFS=y' >> rock64-rk3328_defconfig cp ../arm-trusted-firmware-2.14.0/build/rk3328/release/bl31/bl31.elf ./bl31.elf
echo 'CONFIG_FS_BTRFS=y' >> rock64-rk3328_defconfig export BL31=./bl31.elf
# echo 'CONFIG_NETCONSOLE=y' >> rock64-rk3328_defconfig
sed -i 's/800/600/g' arch/arm/dts/rk3328-sdram-lpddr3-1600.dtsi
cd ${srcdir}/u-boot-${pkgver}/configs
echo 'CONFIG_IDENT_STRING=" Arch Linux ARM"' >> 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() { build() {
cd ${srcdir}/u-boot-${pkgver/rc/-rc} cd ${srcdir}/u-boot-${pkgver}
unset CLFAGS CXXFLAGS CPPFLAGS LDFLAGS unset CLFAGS CXXFLAGS CPPFLAGS LDFLAGS
@@ -50,7 +54,7 @@ build() {
} }
package() { package() {
cd u-boot-${pkgver/rc/-rc} cd u-boot-${pkgver}
mkdir -p "${pkgdir}/boot" mkdir -p "${pkgdir}/boot"

View File

@@ -1,21 +0,0 @@
# After modifying, run ./mkscr
# 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=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
if load ${devtype} ${devnum}:${bootpart} ${fdt_addr_r} /boot/dtbs/${fdtfile}; then
fdt addr ${fdt_addr_r}
fdt resize
fdt set /ethernet@ff540000 local-mac-address "[${macaddr}]"
if load ${devtype} ${devnum}:${bootpart} ${ramdisk_addr_r} /boot/initramfs-linux.img; then
booti ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r};
else
booti ${kernel_addr_r} - ${fdt_addr_r};
fi;
fi;
fi

View File

@@ -1,9 +0,0 @@
#!/bin/bash
if [[ ! -x /usr/bin/mkimage ]]; then
echo "mkimage not found. Please install uboot-tools:"
echo " pacman -S uboot-tools"
exit 1
fi
mkimage -A arm -O linux -T script -C none -n "U-Boot boot script" -d boot.txt boot.scr

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