display:rk3288隨筆

http://www.t-firefly.com/doc/download/page/id/4.html

  1. 安裝:RK驅動助手
  2. 安裝:windows固件升級工具
  3. 下載:Ubuntu系統
  4. 下載:linux-sdk gpt源碼包
  • 根據wiki設置rk3288進去maskrom
  • 打開Android_tool

     

  • 升級爲ubuntu[選中固件,擦除flash,升級固件]

本地編譯版本

  • build.sh腳本運行完成後,會將分區鏡像和統一固件update.img放在rockdev/目錄下,同時創建IMAGE/目錄備份。

燒寫本地image

  •  

  •  

  • 燒錄成功 

    測試hdmi以及touch功能是否正常

    • 成功點亮,weston log以及kernellog關鍵如下

    • [12:15:26.150] event4  - [12:15:26.150] eGalax Inc. eGalaxTouch EXC3146-1934-05.00.00: [12:15:26.150] is tagged by udev as: Touchscreen
      [12:15:26.150] event4  - [12:15:26.150] eGalax Inc. eGalaxTouch EXC3146-1934-05.00.00: [12:15:26.150] device is a touch device
      
      [12:15:26.445] EDID data 'LLP', '32V3H-H6A', '1'
      [12:15:26.445] Output HDMI-A-1, (connector 81, crtc 57)
                     mode [email protected], preferred, current
                     mode [email protected]
                     mode [email protected]
                     mode [email protected]
                     mode [email protected]
                     mode [email protected]
                     mode [email protected]
                     mode [email protected]
      
      
      ======
      [    4.820742] input: eGalax Inc. eGalaxTouch EXC3146-1934-05.00.00 as /devices/platform/ff540000.usb/usb1/1-1/1-1.1/1-1.1:1.0/0003:0EEF:C000.0001/input/input4
      [    4.892968] hid-multitouch 0003:0EEF:C000.0001: input,hiddev0,hidraw0: USB HID v2.10 Pointer [eGalax Inc. eGalaxTouch EXC3146-1934-05.00.00] on usb-ff540000.usb-1.1/input0
      

      weston代碼位置:/work/rk3288/buildroot/output/rockchip_rk3288/build/weston-3.0.0
      對應的initrc:/work/rk3288/buildroot/board/rockchip/common/qtapp/etc/init.d/S50launcher

  • 安裝vysor for ubuntu

 

嘗試yocto的rk3288包,這個更加符合我目前的工作情況

http://rockchip.wikidot.com/yocto-user-guide

https://github.com/rockchip-linux/manifests

# default Yocto/Pyro release for Rockchip 
repo init --repo-url=https://github.com/rockchip-linux/repo --no-clone-bundle  -u https://github.com/rockchip-linux/manifests -b yocto -m pyro.xml

#RK3288/Release
repo init --repo-url=https://github.com/rockchip-linux/repo --no-clone-bundle -u https://github.com/rockchip-linux/manifests -b master -m rk3288_linux_release.xml

 

  1. repo init --repo-url=https://github.com/rockchip-linux/repo --no-clone-bundle -u https://github.com/rockchip-linux/manifests -b master -m rk3288_linux_release.xml
  2. repo sync -c --no-tags
    1. 1.error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
      export GIT_TRACE_PACKET=1; export GIT_TRACE=1; export GIT_CURL_VERBOSE=1
      git config --global http.postBuffer 1048576000 //1G buffer
      git config --global core.compression -1
      
      repo init --depth=1
      如果之後又想獲取完整歷史信息,可以使用下面的命令:
      $ git fetch --unshallow
      
      
      
  3. sudo apt-get install gawk wget git-core diffstat unzip texinfo build-essential chrpath socat cpio python python3 libsdl1.2-dev xterm make xsltproc docbook-utils fop dblatex xmlto python-git libssl-dev pv python3-pip python3-pexpect
  4. MACHINE=firefly-rk3288  DISTRO=rk-wayland  . ./setup-environment  -b  rk-wayland/

Error 1:

bb.data_smart.ExpansionError: Failure expanding variable AVAILABLE_LICENSES[:=], expression was ${@' '.join(available_licenses(d))} which triggered exception FileNotFoundError: [Errno 2] No such file or directory: '/home/maze/work/rk-yocto-bsp/sources/meta-rockchip-extra/licenses'



FIXED:
 2102  cd meta-rockchip-extra/
 2103  ls
 2104  ls -al
 2105  mkdir licenses

Error 2: 

bitbake world

ERROR: Layer 'browser-layer' depends on layer 'clang-layer', but this layer is not enabled in your configuration

FIXED:
1.sources/meta-openembedded$ git clone git://github.com/kraj/meta-clang
2.vim rk-wayland/conf/bblayers.conf  +${BSPDIR}/sources/meta-openembedded/meta-clang \

dynamic_debug:

root@sa8155:/data/test# echo "file drivers/gpu/drm/* +p " > /sys/kernel/debug/dynamic_debug/control 
root@sa8155:/data/test# echo 8 > /proc/sys/kernel/printk
 

 

 

 

For git learning

https://learngitbranching.js.org/

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章