Difference between revisions of "IoTGateway/BSP/Linux/Linux BSP User Guide Ubuntu18.04 for rk"

From ESS-WIKI
Jump to: navigation, search
 
(12 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
Ubuntu18.04_aarch64
 
Ubuntu18.04_aarch64
  
[[File:U18.jpg|400px|U18.jpg]]
+
[[File:U18.jpg|800px|U18.jpg]]
  
 
== <span style="color:#0070c0">Ubuntu 18.04 Release Version and Image Download Path</span> ==
 
== <span style="color:#0070c0">Ubuntu 18.04 Release Version and Image Download Path</span> ==
  
*DS100 DIV0012 2019-09-24
+
*(V0.014)DS100 DIV0014 2019-10-05
 +
 
 +
*(V0.012)DS100 DIV0012 2019-09-24
  
 
== <span style="color:#0070c0">How to do about update Ubuntu in DS100?</span> ==
 
== <span style="color:#0070c0">How to do about update Ubuntu in DS100?</span> ==
Line 13: Line 15:
 
*[[IoTGateway/BSP/Linux/Update_SOP1_Image_DS100_and_DS100Lite|Update&nbsp;Image DS100 and DS100Lite]]
 
*[[IoTGateway/BSP/Linux/Update_SOP1_Image_DS100_and_DS100Lite|Update&nbsp;Image DS100 and DS100Lite]]
  
[[File:U18_2.jpg|500px|U18_2.jpg]]
+
[[File:U18 2.jpg|800px|U18_2.jpg]]
  
 
== <span style="color:#0070c0">Account and Password for Login</span> ==
 
== <span style="color:#0070c0">Account and Password for Login</span> ==
 +
 +
Account&nbsp;: firefly Password: firefly
 +
 +
== <span style="color:#0070c0">OTG port change Host mode</span> ==
 +
 +
Command
 +
<syntaxhighlight lang="bash"># cd /
 +
# echo host >/sys/kernel/debug/usb0/rk_usb_force_mode
 +
</syntaxhighlight>
 +
== <span style="color:#0070c0">RS-485 Test</span> ==
 +
 +
[[File:Rs485.png|800px|Rs485.png]]
 +
 +
RK3399 Send Command
 +
<syntaxhighlight lang="bash">$ sudo su
 +
$ adv
 +
# stty -F /dev/ttyUSB2 speed 115200 -hupcl -icrnl -ixon -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echok
 +
or
 +
# stty -F /dev/ttyUSB3 speed 115200 -hupcl -icrnl -ixon -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echok
 +
</syntaxhighlight>Please check return 115200 RK3399 Send "123456ABC" to ttyUSB2 or ttyUSB3<syntaxhighlight lang="bash"># echo "123456abc" >/dev/ttyUSB2
 +
or
 +
# echo "123456abc" >/dev/ttyUSB3
 +
</syntaxhighlight> RK3399 Receive Command
 +
 +
<syntaxhighlight lang="bash"># cat /dev/ttyUSB2 &
 +
or
 +
# cat /dev/ttyUSB3 & </syntaxhighlight>
 +
 +
 +
== <span style="color:#0070c0">Video player Test</span> ==
 +
 +
Player 4K Video Example
 +
 +
 +
<syntaxhighlight lang="bash"># gst-launch-1.0 filesrc location=4k.mp4 ! queue ! qtdemux  name=dmux dmux.video_0 ! queue ! h264parse ! mppvideodec ! kmssink dmux.audio_0 ! queue ! aacparse ! faad ! autoaudiosink </syntaxhighlight>

Latest revision as of 09:17, 13 November 2019

Linux BSP Version

Ubuntu18.04_aarch64

U18.jpg

Ubuntu 18.04 Release Version and Image Download Path

  • (V0.014)DS100 DIV0014 2019-10-05
  • (V0.012)DS100 DIV0012 2019-09-24

How to do about update Ubuntu in DS100?

U18_2.jpg

Account and Password for Login

Account : firefly Password: firefly

OTG port change Host mode

Command

# cd /
# echo host >/sys/kernel/debug/usb0/rk_usb_force_mode

RS-485 Test

Rs485.png

RK3399 Send Command

$ sudo su
$ adv
# stty -F /dev/ttyUSB2 speed 115200 -hupcl -icrnl -ixon -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echok
or
# stty -F /dev/ttyUSB3 speed 115200 -hupcl -icrnl -ixon -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echok
Please check return 115200 RK3399 Send "123456ABC" to ttyUSB2 or ttyUSB3
# echo "123456abc" >/dev/ttyUSB2
or 
# echo "123456abc" >/dev/ttyUSB3
RK3399 Receive Command
# cat /dev/ttyUSB2 &
or
# cat /dev/ttyUSB3 &


Video player Test

Player 4K Video Example


# gst-launch-1.0 filesrc location=4k.mp4 ! queue ! qtdemux  name=dmux dmux.video_0 ! queue ! h264parse ! mppvideodec ! kmssink dmux.audio_0 ! queue ! aacparse ! faad ! autoaudiosink