Git Product home page Git Product logo

8ms-sstar's Introduction

8ms-sstar

http://hmi.8ms.xyz

安装依赖

已验证系统为:ubuntu 16.04.7 64位系统

sudo apt-get install subversion build-essential libncurses5-dev zlib1g-dev gawk git ccache \
		gettext libssl-dev xsltproc libxml-parser-perl \
		gengetopt default-jre-headless ocaml-nox sharutils textinfo
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install zlib1g:i386 libstdc++6:i386 libc6:i386 libc6-dev-i386

安装toolchian

  1. 下载toolchain 链接:https://pan.baidu.com/s/1SUk1a-drbWo1tkHQzCgchg 提取码:1o3d

  2. 解压缩toolchain

sudo tar wt-gcc-arm-8.2-2018.08-x86_64-arm-linux-gnueabihf.tag.gz -xvf -C /opt/
  1. 设置环境变量,修改 ~/.profile文件, 将下面这行添加到文件末尾
PATH="/opt/gcc-arm-8.2-2018.08-x86_64-arm-linux-gnueabihf/bin:$PATH"

手动生效环境变量

source ~/.profile

测试交叉工具链

arm-linux-gnueabihf-gcc --version

刷系统

如果系统为原始linux系统,请先通过如下方法将系统刷机成openwrt系统

上电按住Enter按键,进入uboot,执行如下命令(SSD202_openwrt.bin位于images目录下,请自行拷贝到tftp32服务器目录下,设置电脑IP为192.168.1.88)

setenv ipaddr 192.168.1.11
setenv serverip 192.168.1.88
tftp 0x21000000 SSD202_openwrt.bin
nand erase.chip
nand write.e 0x21000000 0x00 ${filesize}
reset

编译

make

库文件位于lib/liblvgl.so 可执行文件位于bin/demo

测试

将demo通过网口上传到板子(tftp或者scp),增加可执行权限,并运行。例如

cd /tmp
tftp -g 192.168.1.111 -r demo
chmod +x demo
./demo

如果板子没有liblvgl.so,可先手动上传。

cd /usr/lib/
tftp -g 192.168.1.111 -r liblvgl.so

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.