TinkerOS使用技巧

[复制链接]
peter 发表于 2017-12-6 17:43:17 | 显示全部楼层 |阅读模式
远程访问
TightVNC
X11vnc
安装命令:sudo apt-get install x11vnc

编辑文件 ~/.config/lxsessions/LXDE/autostart
在底部添加
  1. @x11vnc -noxrecord -forever
复制代码
解释一下
-noxrecord fixes a problem it has with stack smashing on this board
-forever option keeps the server alive after a connect and disconnect from a client
重启板子,就可以了
Vino
直接看英文吧,下面 的,,,VPN Server
A guide for RPi can be used also for Tinker Board and can be found on: https://pimylifeup.com/raspberry-pi-vpn-server/
Netflix, Hulu, Amazon Prime
A guide is published on tinkerboarding forum.
Netflix is also available on android via Google Play.
Virtual Keyboard
If you do not have a USB keyboard it is possible to install virtual keyboard via ssh with command 'sudo apt-get matchbox-keyboard'. To run the virtual keyboard run the 'matchbox-keyboard' in the terminal.
How to build Kernel/U-boot source code
  1. Get source code:
  2. $ git clone https://github.com/TinkerBoard/debian_u-boot.git -b linux4.4-rk3288
复制代码
  1. Building image:
  2. $ cd debian_u-boot
  3. $ make CROSS_COMPILE=arm-linux-gnueabi- O=miniarm-rk3288 tinker-rk3288_defconfig all -j4
  4. $ ./miniarm-rk3288/tools/mkimage -n rk3288 -T rksd -d miniarm-rk3288/spl/u-boot-spl-dtb.bin u-boot.img
  5. $ cat miniarm-rk3288/u-boot.bin >> u-boot.img
复制代码
  1. Flash image:
  2. Prepare one sdcard which has the full Debian image inside.
  3. then insert the sdcard into a linux based OS, and suppose the block device of the sdcard is /dev/sdx
  4. $ sudo dd if=[path]/u-boot.img of=/dev/sdx seek=64
复制代码
Kernel

  1. Get source code:
  2. $ git clone https://github.com/TinkerBoard/debian_kernel.git -b linux4.4-rk3288
复制代码
  1. Building image:
  2. $ cd debian_kernel
  3. $ make ARCH=arm miniarm-rk3288_defconfig -j16
  4. $ make zImage ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j16
  5. $ make modules ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j16
  6. $ make ARCH=arm rk3288-miniarm.dtb CROSS_COMPILE=arm-linux-gnueabi- -j16
复制代码
  1. Flash image:
  2. Prepare one sdcard which has the full Debian image inside.
  3. 1. Install WIFI module to root file system:
  4. 1.1 Insert sd card to linux pc and then mount partition 2 (rootfs partition)
  5.      suppose the block device of the sdcard is /dev/sdx
  6.      Example:
  7.      $ sudo mkdir –p /media/users/sdx2
  8.      $ sudo mount /dev/sdx2 /media/users/sdx2
  9. 1.2 Open terminal to kernel folder and enter the following commands
  10.      $ sudo make ARCH=arm INSTALL_MOD_PATH=/media/users/sdx2 modules_install
  11.      $ sudo umount /media/users/sdx2
复制代码
  1. 2. Replace the kernel image:
  2. 2.1 Insert sd card to linux pc and then mount partition 1 (boot partition)
  3.      suppose the block device of the sdcard is /dev/sdx
  4.      Example:
  5.      $ sudo mkdir –p /media/users/sdx1
  6.      $ sudo mount /dev/sdx1 /media/users/sdx1
  7. 2.2 Open terminal to kernel folder and copy zImage and rk3288-miniarm.dtb to partition 1
  8.      $ cp arch/arm/boot/zImage /media/users/sdx1
  9.      $ cp arch/arm/boot/dts/rk3288-miniarm.dtb /media/users/sdx1
  10.      $ sudo umount /media/users/sdx1
复制代码
NOTE: The step 1.1 and 2.1 should be skipped since most of the linux distribution will mount the sdcard automatically.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册用户

本版积分规则

 
QQ在线咨询
点击这里给我发消息
点击这里给我发消息
电话咨询
0755-23012315
快速回复 返回顶部 返回列表