All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH v1 0/6] add rk3318 A95X Z2 board
@ 2021-06-30 16:22 ` Johan Jonker
  0 siblings, 0 replies; 24+ messages in thread
From: Johan Jonker @ 2021-06-30 16:22 UTC (permalink / raw)
  To: kever.yang
  Cc: sjg, philipp.tomsich, heiko, mail, ldevulder, wens,
	banglang.huang, matwey.kornilov, u-boot, linux-rockchip

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


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2022-03-11 19:31 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-30 16:22 [RFC PATCH v1 0/6] add rk3318 A95X Z2 board Johan Jonker
2021-06-30 16:22 ` Johan Jonker
2021-06-30 16:22 ` [RFC PATCH v1 1/6] arm: dts: rockchip: update rk3328.dtsi Johan Jonker
2021-06-30 16:22   ` Johan Jonker
2022-03-11 19:29   ` Jagan Teki
2022-03-11 19:29     ` Jagan Teki
2021-06-30 16:22 ` [RFC PATCH v1 2/6] arm: dts: rockchip: remove usb_host0_xhci node from rk3328-u-boot.dtsi Johan Jonker
2021-06-30 16:22   ` Johan Jonker
2021-06-30 16:22 ` [RFC PATCH v1 3/6] arm: dts: rockchip: move mmc aliases to board files Johan Jonker
2021-06-30 16:22   ` Johan Jonker
2021-06-30 16:22 ` [RFC PATCH v1 4/6] arm: dts: rockchip: move spi0 u-boot, dm-pre-reloc and alias to rk3328 " Johan Jonker
2021-06-30 16:22   ` Johan Jonker
2021-06-30 16:22 ` [RFC PATCH v1 5/6] rockchip: rk3318: add a95x-z2-rk3318_defconfig file Johan Jonker
2021-06-30 16:22   ` Johan Jonker
2022-03-11 19:30   ` Jagan Teki
2022-03-11 19:30     ` Jagan Teki
2021-06-30 16:22 ` [RFC PATCH v1 6/6] arm: dts: rockchip: add rk3318 A95X Z2 board Johan Jonker
2021-06-30 16:22   ` Johan Jonker
2021-07-09 11:17   ` [RESEND RFC " Johan Jonker
2021-07-01 11:46 ` [RFC PATCH v1 0/6] " Alex Bee
2021-07-01 11:46   ` Alex Bee
2021-07-01 12:47   ` Johan Jonker
2021-07-01 12:47     ` Johan Jonker
2021-07-02  6:56 ` Matwey V. Kornilov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.