Difference between revisions of "HBW test/test"

From ESS-WIKI
Jump to: navigation, search
 
(29 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:How to add one new LVDS panel's EDID to PTN3460}}
+
{{DISPLAYTITLE:How to update kernel for hardware enablement}}
<div style="float:right;  position:fixed;  margin:0 1em 0 0;  top:200px;  right:10px;  max-height: 350px;  overflow: auto">__TOC__</div>
 
  
== Prerequisites ==
+
== Hardware Enablement ==
=== On Host PC ===
+
*RS-485
* LVDS panel's EDID config (128 bytes)
+
*TPM
* (optional) one utility to edit EDID config
+
*external watchdog
* PTN3460 Programming Guide
+
*ethernet switch (UIO-4036)
=== On RSB-3810 (Ubuntu) ===
+
 
* i2c-tools installed
+
== Install Procedures ==
 +
=== fetch the following packages ===
 +
kernel (get these files from your contact window)
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
sudo apt update
+
# linux-buildinfo-5.15.0-1029-mtk_5.15.0-1029.33advantech1_arm64.deb
sudo apt install i2c-tools
+
# linux-headers-5.15.0-1029-mtk_5.15.0-1029.33advantech1_arm64.deb
 +
# linux-image-5.15.0-1029-mtk_5.15.0-1029.33advantech1_arm64.deb
 +
# linux-modules-5.15.0-1029-mtk_5.15.0-1029.33advantech1_arm64.deb
 +
# linux-mtk-headers-5.15.0-1029_5.15.0-1029.33advantech1_all.deb
 
</syntaxhighlight>
 
</syntaxhighlight>
 
+
dependency
== Convert EDID config to i2cset commands ==
 
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
EDIDNEW=6 # set EDID
+
wget https://ftp.fau.de/ubuntu-ports/pool/main/o/openssl/libssl1.1_1.1.1-1ubuntu2.1~18.04.23_arm64.deb
EDIDBIN=g070vw01v0.bin
 
SCRIPT=set_new_edid.sh
 
 
 
REG81=`printf "0x%02x" 0` # Please refer to the PTN3460 Programming Guide to set correct value
 
REG84=`printf "0x%02x" $((2*EDIDNEW + 1))`
 
REG85=`printf "0x%02x" $EDIDNEW`
 
 
 
cat << EOT > $SCRIPT
 
#!/bin/bash
 
i2cset -f -y 2 0x20 0x85 $REG85 b
 
 
 
$(
 
xxd -c 16 -ps $EDIDBIN |
 
sed "s/../0x& /g; s/ *$//" |
 
for ADDR in `seq 0x00 0x10 0x70`; do
 
  read
 
  echo i2cset -f -y 2 0x20 `printf "0x%02x" $ADDR` $REPLY i
 
done
 
)
 
 
 
i2cset -f -y 2 0x20 0x81 $REG81 b
 
i2cset -f -y 2 0x20 0x84 $REG84 b
 
i2cset -f -y 2 0x20 0xe8 0x01 0x78 0x45 0x56 i
 
EOT
 
 
 
chmod +x $SCRIPT
 
 
</syntaxhighlight>
 
</syntaxhighlight>
  
==run the script and reboot ==
+
=== install all fetched packages ===
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
sudo ./$SCRIPT
+
sudo dpkg -i *deb
 
sudo reboot
 
sudo reboot
</syntaxhighlight>
 
 
==flash new firmware.vfat==
 
get and extract update_edid.tgz
 
<syntaxhighlight lang="bash">
 
tar xvf update_edid.tgz
 
</syntaxhighlight>
 
 
flash u-boot env & firmware (dtb)
 
<syntaxhighlight lang="bash">
 
genio-flash mmc0boot1 firmware firmware_b
 
</syntaxhighlight>
 
 
== config u-boot env to ebable LVDS display ==
 
(choose 1,3,4,5 or 6 as a new EDID, use 6 as example below)<br/>
 
break countdown in u-boot
 
* Multi-display (HDMI + LVDS)
 
: The LVDS is always major display that has nothing to do with the specified order.
 
<syntaxhighlight lang="bash">
 
setenv list_dbto "gpu-mali.dtbo video.dtbo apusys.dtbo hdmi.dtbo lvds6.dtbo"
 
saveenv
 
reset
 
</syntaxhighlight>
 
 
* LVDS only
 
<syntaxhighlight lang="bash">
 
setenv list_dbto "gpu-mali.dtbo video.dtbo apusys.dtbo lvds6.dtbo"
 
saveenv
 
reset
 
 
</syntaxhighlight>
 
</syntaxhighlight>

Latest revision as of 10:03, 26 January 2024


Hardware Enablement

  • RS-485
  • TPM
  • external watchdog
  • ethernet switch (UIO-4036)

Install Procedures

fetch the following packages

kernel (get these files from your contact window)

# linux-buildinfo-5.15.0-1029-mtk_5.15.0-1029.33advantech1_arm64.deb
# linux-headers-5.15.0-1029-mtk_5.15.0-1029.33advantech1_arm64.deb
# linux-image-5.15.0-1029-mtk_5.15.0-1029.33advantech1_arm64.deb
# linux-modules-5.15.0-1029-mtk_5.15.0-1029.33advantech1_arm64.deb
# linux-mtk-headers-5.15.0-1029_5.15.0-1029.33advantech1_all.deb

dependency

wget https://ftp.fau.de/ubuntu-ports/pool/main/o/openssl/libssl1.1_1.1.1-1ubuntu2.1~18.04.23_arm64.deb

install all fetched packages

sudo dpkg -i *deb
sudo reboot