Hi all,
EDIT&WARNING: this is not working at the moment! Please do not apply this procedure !!!
~~For those who can't enable OGST LCD screen and running on eMMC, here is a little guide to follow:
- make sure to enable ogst profile in
/boot/config.ini
:
| [generic] |
| |
| overlay_resize=16384 |
| |
| overlay_profile=hktft_cs_ogst |
| overlays="spi0 i2c0 i2c1 uart0" |
| |
| [overlay_hktft_cs_ogst] |
| overlays="hktft-cs-ogst i2c0" |
- enable minitft in
recalbox.conf
:
| system.secondminitft.enabled=1 |
| system.secondminitft.type=overlay |
- download https://github.com/hardkernel/u-boot/releases/download/travis%2Fodroidxu3-108/u-boot-odroidxu3-108.tar.gz
- Execute:
| tar xzvf u-boot-odroidxu3-108.tar.gz |
| cd sd_fuse |
- overwrite
sd_fusing.sh
with this one:
| |
| |
| |
| |
| |
| |
| |
| |
| |
| set -x |
| |
| if [ -z $1 ] |
| then |
| echo "usage: ./sd_fusing.sh <SD Reader's device file>" |
| exit 0 |
| fi |
| |
| if [ -b $1 ] |
| then |
| echo "$1 reader is identified." |
| else |
| echo "$1 is NOT identified." |
| exit 0 |
| fi |
| |
| if [ -d /sys/block/${1##*/}boot0 ]; then |
| echo "$1 is an eMMC card, disabling ${1##*/}boot0 ro" |
| if ! echo -n 0 > /sys/block/${1##*/}boot0/force_ro; then |
| echo "Enabling r/w for $1boot0 failed" |
| exit 1 |
| fi |
| emmc=1 |
| fi |
| |
| |
| |
| |
| if [ -n "$emmc" ]; then |
| signed_bl1_position=0 |
| bl2_position=30 |
| uboot_position=62 |
| tzsw_position=2110 |
| device=$1boot0 |
| else |
| signed_bl1_position=1 |
| bl2_position=31 |
| uboot_position=63 |
| tzsw_position=2111 |
| device=$1 |
| fi |
| |
| |
| if [ -f ./u-boot-dtb.bin ]; then |
| uboot="./u-boot-dtb.bin" |
| elif [ -f ./u-boot.bin ]; then |
| uboot="./u-boot.bin" |
| else |
| echo "U-Boot blob not found." |
| exit |
| fi |
| |
| |
| echo "BL1 fusing" |
| dd if=./bl1.bin.hardkernel of=$device seek=$signed_bl1_position conv=notrunc |
| |
| |
| echo "BL2 fusing" |
| dd if=./bl2.bin.hardkernel.1mb_uboot of=$device seek=$bl2_position conv=notrunc |
| |
| |
| echo "u-boot fusing" |
| dd if=$uboot of=$device seek=$uboot_position conv=notrunc |
| |
| |
| echo "TrustZone S/W fusing" |
| dd if=./tzsw.bin.hardkernel of=$device seek=$tzsw_position conv=notrunc |
| |
| |
| |
| echo "U-boot image is fused successfully." |
| echo "Eject $1 and insert it again." |
- execute:
| bash sd_fusing.sh /dev/mmcblk0 |
| sync |
| reboot |
PS: I will not be held responsible for any damages~~