|
【平头哥Sipeed LicheeRV 86开发板试用】opkg命令安装ipk软件包
近日sipeed网站上看到, licheepi在ipk站了
链接如下:
http://opkg.gloomyghost.com/snapshots/
有以下内容:
base/
- 应用(库)
kernel/
- 内核组件+驱动
安装tplayerdemo体验过程
下面是我的安装tplayerdemo体验过程
获取tplayerdemo的软件包ipk
在base里找tplayerdemo_1-1_sunxi,右键tplayerdemo_1-1_sunxi复制链接
- http://opkg.gloomyghost.com/snapshots/base/tplayerdemo_1-1_sunxi.ipk
复制代码
下载ipk包
- root@MaixLinux:/mnt/UDISK# wget http://opkg.gloomyghost.com/snapshots/base/tplayerdemo_1-1_sunxi.ipk
- Connecting to opkg.gloomyghost.com (104.21.52.186:80)
- tplayerdemo_1-1_sunx 100% |*************************************************************************************
复制代码
查看下载结果
- root@MaixLinux:/mnt/UDISK# ls
- 1.txt big_buck_bunny.mp4 jueju.mp4 ql.mp4
- WhenYouSayNothingAtAll.mp4 jju.mp4 qianliang.mp4 tplayerdemo_1-1_sunxi.ipk
复制代码
安装tplayerdemo_1-1_sunxi.ipk软件包
- root@MaixLinux:/mnt/UDISK# opkg install tplayerdemo_1-1_sunxi.ipk
- Installing tplayerdemo (1-1) to root...
- Collected errors:
- * make_directory: Cannot create directory `//usr/lib/opkg': No space left on device.
- * make_directory: Cannot create directory `//usr/lib/opkg': No space left on device.
- * verify_pkg_installable: Only have 0kb available on filesystem /overlay, pkg tplayerdemo needs 10
- * opkg_install_cmd: Cannot install package tplayerdemo.
复制代码
出错解决
提示root根分区大小不够了, df查看
- root@MaixLinux:/mnt/UDISK# df
- Filesystem 1K-blocks Used Available Use% Mounted on
- /dev/root 99884 97836 0 100% /
- devtmpfs 247740 0 247740 0% /dev
- tmpfs 251932 40 251892 0% /tmp
- /dev/mmcblk0p1 8151 677 7474 8% /mnt/SDCARD
- /dev/by-name/UDISK 21802544 187504 21615040 1% /mnt/UDISK
复制代码
扩容SD卡及root分区
参考:
【平头哥Sipeed LicheeRV 86开发板试用】扩展外部sd卡存 ...
【平头哥Sipeed LicheeRV 86开发板试用】SD卡中Linux系 ..
root分区扩容后, 查看分区情况
- root@MaixLinux:/mnt/UDISK# df
- Filesystem 1K-blocks Used Available Use% Mounted on
- /dev/root 8228024 98068 7694144 1% /
- devtmpfs 247740 0 247740 0% /dev
- tmpfs 251932 40 251892 0% /tmp
- /dev/mmcblk0p1 8151 677 7474 8% /mnt/SDCARD
- /dev/by-name/UDISK 21802544 187504 21615040 1% /mnt/UDISK
复制代码
再次安装tplayerdemo_1-1_sunxi.ipk
- root@MaixLinux:/mnt/UDISK# opkg install tplayerdemo_1-1_sunxi.ipk
- Installing tplayerdemo (1-1) to root...
- Collected errors:
- * satisfy_dependencies_for: Cannot satisfy the following dependencies for tplayerdemo:
- * libc * libssp * librt * libpthread * libcedarx * libstdcpp *
- * opkg_install_cmd: Cannot install package tplayerdemo.
复制代码 还是出错, 提示少了些依赖库
安装依赖库
- root@MaixLinux:/mnt/UDISK# wget http://opkg.gloomyghost.com/snapshots/base/libc_-1_sunxi.ipk
- Connecting to opkg.gloomyghost.com (104.21.52.186:80)
- libc_-1_sunxi.ipk 100% |***************************************************************| 1175k 0:00:00 ETA
- root@MaixLinux:/mnt/UDISK# opkg install libc_-1_sunxi.ipk
- Installing libc (-1) to root...
- Collected errors:
- * satisfy_dependencies_for: Cannot satisfy the following dependencies for libc:
- * libgcc *
- * opkg_install_cmd: Cannot install package libc.
- root@MaixLinux:/mnt/UDISK# wget http://opkg.gloomyghost.com/snapshots/base/libgcc_-1_sunxi.ipk
- Connecting to opkg.gloomyghost.com (172.67.202.218:80)
- libgcc_-1_sunxi.ipk 100% |***************************************************************| 41318 0:00:00 ETA
- root@MaixLinux:/mnt/UDISK# opkg install libgcc_-1_sunxi.ipk
- Installing libgcc (-1) to root...
- Configuring libgcc.
- ...............
- root@MaixLinux:/mnt/UDISK# opkg install libcedarx_2.8-1_sunxi.ipk
- Installing libcedarx (2.8-1) to root...
- Configuring libcedarx.
- root@MaixLinux:/mnt/UDISK#
复制代码 中间过程太多,不一一写,操作方法,都一样的:
- 获取tplayerdemo的软件包ipk链接,
- wget下载软件包ipk
- 安装软件包ipk
再次安装tplayerdemo_1-1_sunxi.ipk
所有依赖库安装好后, 再次安装tplayerdemo_1-1_sunxi.ipk
- root@MaixLinux:/mnt/UDISK# opkg install tplayerdemo_1-1_sunxi.ipk
- Installing tplayerdemo (1-1) to root...
- Configuring tplayerdemo.
复制代码 出现上述提示信息, 恭喜你,
tplayerdemo 安装成功了
|
+118 最近谁赞过
|