[RFC PATCH v1 0/6] add rk3318 A95X Z2 board

Matwey V. Kornilov matwey.kornilov at gmail.com
Fri Jul 2 08:56:50 CEST 2021


Hi,

Generally, I like idea of keeping rk3328.dtsi in sync with the Linux kernel
source.

ср, 30 июн. 2021 г., 19:23 Johan Jonker <jbx6244 at gmail.com>:

> With a new board from a recent Linux DT the U-boot rk3328.dtsi
> is in need for an update.
>
> Please advise what to do with usb3 regulators, aliases and
> other stuff that has to change.
>
> Also some of the U-boot board files could use some
> dtbs_check for bogus properties and restyling... ;)
>
> rk3328 USB2 and USB3 only roughly tested.
>
> ===
>
> Howto use:
>
> Compile bl31.elf:
>
> git clone --depth 1
> https://github.com/ARM-software/arm-trusted-firmware.git
> cd arm-trusted-firmware
> make realclean
> make CROSS_COMPILE=aarch64-linux-gnu- PLAT=rk3328
>
> export
> BL31=/<path-to>/arm-trusted-firmware/build/rk3328/release/bl31/bl31.elf
> cd ..
>
> Compile U-boot:
>
> git clone --depth 1 https://github.com/u-boot/u-boot.git uboot
> cd uboot
> make CROSS_COMPILE=aarch64-linux-gnu- a95x-z2-rk3318_defconfig all
>
> ===
>
> Use U-boot to create a GPT on a SD card,
> because of partition GUID and sizes.
>
> mmc dev 0
> mmc info
> gpt write mmc 0 $partitions
> mmc part
>
> ===
>
> Write to SD card:
>
> export DISK=/dev/mmcblk0
> sudo dd if=./idbloader.img of=${DISK} seek=64
> sudo dd if=./u-boot.itb of=${DISK} seek=16384
> sync
>
> ===
>
> Format boot partition with fat16.
> Add /Image and /rk3318-a95x-z2.dtb
> Add extlinux dir with extlinux.conf
>
> label kernel
>     kernel /Image
>     fdt /rk3318-a95x-z2.dtb
>     append root=/dev/mmcblk0p5 rw console=tty0 console=ttyS2,1500000n8
> earlycon=uart8250,mmio32,0xff130000,keep $
>
> ===
>
> Use fastboot:
>
> Hit any key to stop autoboot:
> usb start
> usb dev 1
> fastboot usb 1
> =
> sudo fastboot devices -l
> sudo fastboot erase loader1
> sudo fastboot erase loader2
> sudo fastboot flash loader1 idbloader.img
> sudo fastboot flash loader2 u-boot.itb
> =
> ctrl-c
> reset
>
> ===
>
> Johan Jonker (6):
>   arm: dts: rockchip: update rk3328.dtsi
>   arm: dts: rockchip: remove usb_host0_xhci node from rk3328-u-boot.dtsi
>   arm: dts: rockchip: move mmc aliases to board files
>   arm: dts: rockchip: move spi0 u-boot,dm-pre-reloc and alias to rk3328
>     board files
>   rockchip: rk3318: add a95x-z2-rk3318_defconfig file
>   arm: dts: rockchip: add rk3318 A95X Z2 board
>
>  arch/arm/dts/Makefile                      |   1 +
>  arch/arm/dts/rk3318-a95x-z2-u-boot.dtsi    |  59 +++++
>  arch/arm/dts/rk3318-a95x-z2.dts            | 384
> +++++++++++++++++++++++++++++
>  arch/arm/dts/rk3328-evb-u-boot.dtsi        |   2 +-
>  arch/arm/dts/rk3328-evb.dts                |   8 +-
>  arch/arm/dts/rk3328-nanopi-r2s-u-boot.dtsi |   2 +-
>  arch/arm/dts/rk3328-nanopi-r2s.dts         |   6 +-
>  arch/arm/dts/rk3328-roc-cc-u-boot.dtsi     |   4 +-
>  arch/arm/dts/rk3328-roc-cc.dts             |   7 +-
>  arch/arm/dts/rk3328-rock-pi-e-u-boot.dtsi  |   4 +-
>  arch/arm/dts/rk3328-rock-pi-e.dts          |   7 +-
>  arch/arm/dts/rk3328-rock64-u-boot.dtsi     |  10 +-
>  arch/arm/dts/rk3328-rock64.dts             |   7 +-
>  arch/arm/dts/rk3328-u-boot.dtsi            |  21 --
>  arch/arm/dts/rk3328.dtsi                   | 109 ++++----
>  board/rockchip/evb_rk3328/MAINTAINERS      |   6 +
>  configs/a95x-z2-rk3318_defconfig           | 102 ++++++++
>  doc/board/rockchip/rockchip.rst            |   2 +
>  18 files changed, 661 insertions(+), 80 deletions(-)
>  create mode 100644 arch/arm/dts/rk3318-a95x-z2-u-boot.dtsi
>  create mode 100644 arch/arm/dts/rk3318-a95x-z2.dts
>  create mode 100644 configs/a95x-z2-rk3318_defconfig
>
> --
> 2.11.0
>
>


More information about the U-Boot mailing list