您尚未登录。

楼主 #1 2021-05-16 09:51:39

yangshuwei
会员
注册时间: 2020-03-22
已发帖子: 138
积分: 70

荔枝派zeroplus S3安装opkg

参考:
https://www.bilibili.com/video/BV1iJ411G7ZV
https://github.com/TTHHR/blog/blob/master/alpahOPKG

1.在开发板根目录下 创建opt文件夹,其他名字也可以

2.进入opt,执行命令
wget http://pkg.entware.net/binaries/armv7/installer/entware_install.sh
其中wget需要交叉编译源码,再拷贝到文件系统,这里放上已经编译好的,toolchain是arm-linux-gnueabihf-  6.3版本
wget.tar_20210516-0945.gz

3.在opt目录下执行entware_install.sh脚本

chmod +x ./entware_install.sh
 ./entware_install.sh

这一步前提是必须联网,网口或者wifi都可以
4.添加opkg环境变量到profile

vi /etc/profile
export PATH=$PATH:/opt/bin:/opt/sbin

我这里是

export PATH="/bin:/sbin:/usr/bin:/usr/sbin:/opt/bin:/opt/sbin"

PS1='[\u@\h]:\w$:'
export PS1

export EDITOR='/bin/vi'

export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_TSDEVICE=/dev/input/event1
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_PLUGINDIR=/usr/lib/ts
export TSLIB_CALIBFILE=/etc/pointercal
export LD_PRELOAD=/usr/lib/libts.so
export QT_QPA_FB_TSLIB=1

export QT_QPA_GENERIC_PLUGINS=tslib:/dev/input/event1#:edevmouse:/dev/input/event3
export QT_QPA_FONTDIR=/usr/share/fonts
export QT_QPA_PLATFORM_PLUGIN_PATH=/usr/lib/qt/plugins
export QT_QPA_PLATFORM=linuxfb:tty=/dev/fb0
export QT_PLUGIN_PATH=/usr/lib/qt/plugins
export LD_LIBRARY_PATH=usr/lib:/usr/lib/qt/plugins/platforms


#export LD_LIBRARY_PATH=/lib:/usr/lib
#export QT_QPA_PLATFORM=linuxfb:tty=/dev/fb0



# Source configuration files from /etc/profile.d
for i in /etc/profile.d/*.sh ; do
        if [ -r "$i" ]; then
                . $i
        fi
done
unset i

export LD_PRELOAD=""

注意:因为使用了tslib的原因
每次执行opkg命令或者开机时都会提醒

ERROR: ld.so: object '/usr/lib/libts.so' from LD_PRELOAD cannot be preloaded (internal error): ignored.

这个错误
解决办法就是将LD_PRELOAD变量清空
如上profile最后一行。

5.使用opkg安装gcc,git,bluez,nano,python3,python3-pip等等

如果出现不能下载或者下载慢的情况,手机开热点也许会好些

6.如果使用buildroot里面配置的opkg,需要修改opkg.conf文件的内容,重新指定源

src/gz entware http://bin.entware.net/armv7sf-k2.6
dest root /
dest ram /opt/tmp
lists_dir ext /opt/var/opkg-lists
option tmp_dir /opt/tmp
arch all 100
arch armv7soft 150
arch armv7-2.6 160

最近编辑记录 yangshuwei (2021-05-16 10:00:55)

离线

#2 2021-05-16 19:48:20

microxp
会员
注册时间: 2021-04-27
已发帖子: 40
积分: 21

Re: 荔枝派zeroplus S3安装opkg

这个装上占多少空间

离线

#3 2021-05-16 20:35:27

拉轰的脚踏车
会员
注册时间: 2020-03-20
已发帖子: 288
积分: 222

Re: 荔枝派zeroplus S3安装opkg

楼主好, 我看你的opkg是用命令安装的, 我用buildroot直接生成的opkg 可以用吗?

离线

楼主 #4 2021-05-17 01:36:01

yangshuwei
会员
注册时间: 2020-03-22
已发帖子: 138
积分: 70

Re: 荔枝派zeroplus S3安装opkg

拉轰的脚踏车 说:

楼主好, 我看你的opkg是用命令安装的, 我用buildroot直接生成的opkg 可以用吗?

这个没试过 修改一下源,应该可以。就是opkg.conf这个文件

离线

楼主 #5 2021-05-17 01:36:57

yangshuwei
会员
注册时间: 2020-03-22
已发帖子: 138
积分: 70

Re: 荔枝派zeroplus S3安装opkg

microxp 说:

这个装上占多少空间

大概200多m

离线

#6 2021-06-15 22:44:11

mysteryli
会员
注册时间: 2020-03-05
已发帖子: 481
积分: 386
个人网站

Re: 荔枝派zeroplus S3安装opkg

V3S已装,正在尝试安装gcc,不过,是真的慢哈哈
另外,有没有什么好的桌面可以安装,我接的800480LCD

最近编辑记录 mysteryli (2021-06-15 22:44:52)

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn