Skip to content

Commit

Permalink
Add RK322x support
Browse files Browse the repository at this point in the history
  • Loading branch information
knaerzche committed Jan 2, 2020
1 parent f6d9334 commit 553b88d
Show file tree
Hide file tree
Showing 9 changed files with 6,666 additions and 1 deletion.

Large diffs are not rendered by default.

16 changes: 15 additions & 1 deletion projects/Rockchip/bootloader/install
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
PKG_RKBIN="$(get_build_dir rkbin)"
PKG_SOC=$UBOOT_SYSTEM

if [ "$DEVICE" = "RK3328" -o "$DEVICE" = "RK3399" ]; then
if [ "$DEVICE" = "RK3328" -o "$DEVICE" = "RK3399" -o "$DEVICE" = "RK322x" ]; then
PKG_SOC="${DEVICE/RK/rk}"
fi

Expand All @@ -30,6 +30,14 @@ case "$PKG_SOC" in
PKG_BL31="$PKG_RKBIN/rk33/rk3399_bl31_v1.24.elf"
PKG_LOAD_ADDR="0x200000"
;;
rk322x)
PKG_DATAFILE="$PKG_RKBIN/rk32/rk322x_ddr_300MHz_v1.08.bin"
PKG_LOADER="$PKG_RKBIN/rk32/rk322x_miniloader_v2.56.bin"
PKG_TOS="$PKG_RKBIN/rk32/rk322x_tee_v2.00.bin"
PKG_TOSTA="$PKG_RKBIN/rk32/rk322x_tee_ta_v2.01.bin"
PKG_LOAD_ADDR="0x60200000"
PKG_TOSXX_LOAD_ADDR="0x68400000"
;;
*)
PKG_DATAFILE="spl/u-boot-spl-dtb.bin"
PKG_LOADER="u-boot-dtb.bin"
Expand Down Expand Up @@ -64,4 +72,10 @@ PATH=trust.img
EOF
$PKG_RKBIN/tools/trust_merger --verbose trust.ini
cp -av trust.img $INSTALL/usr/share/bootloader
elif [ -n "$PKG_TOSTA" -a -n "$PKG_TOSXX_LOAD_ADDR" ]; then
$PKG_RKBIN/tools/loaderimage --pack --trustos $PKG_TOSTA trust.img $PKG_TOSXX_LOAD_ADDR
cp -av trust.img $INSTALL/usr/share/bootloader
elif [ -n "$PKG_TOS" -a -n "$PKG_TOSXX_LOAD_ADDR" ]; then
$PKG_RKBIN/tools/loaderimage --pack --trustos $PKG_TOS trust.img $PKG_TOSXX_LOAD_ADDR
cp -av trust.img $INSTALL/usr/share/bootloader
fi
16 changes: 16 additions & 0 deletions projects/Rockchip/devices/RK322x/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# RK322x

This is a SoC device for RK322x

**Build**

* `PROJECT=Rockchip DEVICE=RK322x ARCH=arm UBOOT_SYSTEM=rk3229-a95xr1 make image`
* `PROJECT=Rockchip DEVICE=RK322x ARCH=arm UBOOT_SYSTEM=rk3229-hk1mini make image`
* `PROJECT=Rockchip DEVICE=RK322x ARCH=arm UBOOT_SYSTEM=rk3229-d88 make image`
* `PROJECT=Rockchip DEVICE=RK322x ARCH=arm UBOOT_SYSTEM=rk3229-v884k make image`
* `PROJECT=Rockchip DEVICE=RK322x ARCH=arm UBOOT_SYSTEM=rk3229-v88mars make image`
**How to use on an Android device**
- Flash image to a sd-card
- Insert sd-card into the device
- Plug in power and LibreELEC should boot instead of Android
- Remove sd-card from device to boot into Android
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[Sleep]
HibernateMode=false
60 changes: 60 additions & 0 deletions projects/Rockchip/devices/RK322x/kodi/appliance.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="utf-8"?>
<settings version="1">
<section id="system">
<category id="display">
<group id="1">
<setting id="videoscreen.whitelist">
<default>0384002160060.00000pstd,0384002160050.00000pstd,0384002160030.00000pstd,0384002160025.00000pstd,0384002160024.00000pstd,0192001080060.00000pstd,0192001080050.00000pstd,0192001080030.00000pstd,0192001080024.00000pstd,0128000720060.00000pstd,0128000720050.00000pstd</default>
</setting>
<setting id="videoscreen.blankdisplays">
<visible>false</visible>
</setting>
<setting id="videoscreen.fakefullscreen">
<visible>false</visible>
</setting>
<setting id="videoscreen.limitguisize">
<default>3</default>
<visible>true</visible>
</setting>
<setting id="videoscreen.hdmioutputformat">
<visible>true</visible>
</setting>
</group>
<group id="3">
<setting id="videoscreen.noofbuffers">
<default>2</default>
<visible>false</visible>
</setting>
</group>
</category>
<category id="audio">
<group id="1">
<setting id="audiooutput.audiodevice">
<default>ALSA:hdmi:CARD=HDMI,DEV=0</default>
</setting>
</group>
</category>
<category id="logging">
<group id="1">
<setting id="debug.extralogging">
<default>false</default>
</setting>
</group>
</category>
</section>
<section id="player">
<category id="videoplayer">
<group id="2">
<setting id="videoplayer.adjustrefreshrate">
<default>0</default>
</setting>
</group>
<group id="3">
<setting id="videoplayer.hdmioutputformat">
<default>2</default>
<visible>true</visible>
</setting>
</group>
</category>
</section>
</settings>
Loading

0 comments on commit 553b88d

Please sign in to comment.