谷动谷力

 找回密码
 立即注册
查看: 322|回复: 0
收起左侧

【平头哥Sipeed LicheeRV 86开发板试用】opkg命令安装ipk软件包

[复制链接]
发表于 2022-3-20 23:21:53 | 显示全部楼层 |阅读模式
【平头哥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复制链接
  1. http://opkg.gloomyghost.com/snapshots/base/tplayerdemo_1-1_sunxi.ipk
复制代码



下载ipk包
  1. root@MaixLinux:/mnt/UDISK# wget http://opkg.gloomyghost.com/snapshots/base/tplayerdemo_1-1_sunxi.ipk
  2. Connecting to opkg.gloomyghost.com (104.21.52.186:80)
  3. tplayerdemo_1-1_sunx 100% |*************************************************************************************
复制代码

查看下载结果
  1. root@MaixLinux:/mnt/UDISK# ls
  2. 1.txt                       big_buck_bunny.mp4          jueju.mp4                   ql.mp4
  3. WhenYouSayNothingAtAll.mp4  jju.mp4                     qianliang.mp4               tplayerdemo_1-1_sunxi.ipk
复制代码



安装tplayerdemo_1-1_sunxi.ipk软件包

  1. root@MaixLinux:/mnt/UDISK# opkg install tplayerdemo_1-1_sunxi.ipk
  2. Installing tplayerdemo (1-1) to root...
  3. Collected errors:
  4. * make_directory: Cannot create directory `//usr/lib/opkg': No space left on device.
  5. * make_directory: Cannot create directory `//usr/lib/opkg': No space left on device.
  6. * verify_pkg_installable: Only have 0kb available on filesystem /overlay, pkg tplayerdemo needs 10
  7. * opkg_install_cmd: Cannot install package tplayerdemo.
复制代码

出错解决

提示root根分区大小不够了, df查看

  1. root@MaixLinux:/mnt/UDISK# df
  2. Filesystem           1K-blocks      Used Available Use% Mounted on
  3. /dev/root                99884     97836         0 100% /
  4. devtmpfs                247740         0    247740   0% /dev
  5. tmpfs                   251932        40    251892   0% /tmp
  6. /dev/mmcblk0p1            8151       677      7474   8% /mnt/SDCARD
  7. /dev/by-name/UDISK    21802544    187504  21615040   1% /mnt/UDISK
复制代码


扩容SD卡及root分区

参考:
  【平头哥Sipeed LicheeRV 86开发板试用】扩展外部sd卡存 ...
【平头哥Sipeed LicheeRV 86开发板试用】SD卡中Linux系 ..

root分区扩容后, 查看分区情况

  1. root@MaixLinux:/mnt/UDISK# df
  2. Filesystem           1K-blocks      Used Available Use% Mounted on
  3. /dev/root              8228024     98068   7694144   1% /
  4. devtmpfs                247740         0    247740   0% /dev
  5. tmpfs                   251932        40    251892   0% /tmp
  6. /dev/mmcblk0p1            8151       677      7474   8% /mnt/SDCARD
  7. /dev/by-name/UDISK    21802544    187504  21615040   1% /mnt/UDISK
复制代码

再次安装tplayerdemo_1-1_sunxi.ipk

  1. root@MaixLinux:/mnt/UDISK# opkg install tplayerdemo_1-1_sunxi.ipk
  2. Installing tplayerdemo (1-1) to root...
  3. Collected errors:
  4. * satisfy_dependencies_for: Cannot satisfy the following dependencies for tplayerdemo:
  5. *      libc *  libssp *        librt *         libpthread *    libcedarx *     libstdcpp *
  6. * opkg_install_cmd: Cannot install package tplayerdemo.
复制代码
还是出错, 提示少了些依赖库

安装依赖库

  1. root@MaixLinux:/mnt/UDISK# wget http://opkg.gloomyghost.com/snapshots/base/libc_-1_sunxi.ipk
  2. Connecting to opkg.gloomyghost.com (104.21.52.186:80)
  3. libc_-1_sunxi.ipk    100% |***************************************************************|  1175k  0:00:00 ETA
  4. root@MaixLinux:/mnt/UDISK# opkg install libc_-1_sunxi.ipk
  5. Installing libc (-1) to root...
  6. Collected errors:
  7. * satisfy_dependencies_for: Cannot satisfy the following dependencies for libc:
  8. *      libgcc *
  9. * opkg_install_cmd: Cannot install package libc.
  10. root@MaixLinux:/mnt/UDISK# wget http://opkg.gloomyghost.com/snapshots/base/libgcc_-1_sunxi.ipk
  11. Connecting to opkg.gloomyghost.com (172.67.202.218:80)
  12. libgcc_-1_sunxi.ipk  100% |***************************************************************| 41318   0:00:00 ETA
  13. root@MaixLinux:/mnt/UDISK# opkg install libgcc_-1_sunxi.ipk
  14. Installing libgcc (-1) to root...
  15. Configuring libgcc.
  16. ...............
  17. root@MaixLinux:/mnt/UDISK# opkg install libcedarx_2.8-1_sunxi.ipk
  18. Installing libcedarx (2.8-1) to root...

  19. Configuring libcedarx.
  20. root@MaixLinux:/mnt/UDISK#
复制代码
中间过程太多,不一一写,操作方法,都一样的:
  • 获取tplayerdemo的软件包ipk链接,
  • wget下载软件包ipk
  • 安装软件包ipk

再次安装tplayerdemo_1-1_sunxi.ipk

所有依赖库安装好后, 再次安装tplayerdemo_1-1_sunxi.ipk
  1. root@MaixLinux:/mnt/UDISK# opkg install tplayerdemo_1-1_sunxi.ipk
  2. Installing tplayerdemo (1-1) to root...
  3. Configuring tplayerdemo.
复制代码
出现上述提示信息, 恭喜你,
tplayerdemo 安装成功了




回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|深圳市光明谷科技有限公司|光明谷商城|Sunshine Silicon Corpporation ( 粤ICP备14060730号|Sitemap

GMT+8, 2022-8-18 21:07 , Processed in 0.148910 second(s), 30 queries .

Powered by Discuz! X3.2 Licensed

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表