Firefly开源社区

打印 上一主题 下一主题

[技术讨论] ROC-RK3308B-CC-PLUS 固件编译

23

积分

0

威望

0

贡献

技术小白

积分
23

ROC-RK3308B-CC-PLUS 固件编译

发表于 2024-3-18 13:32:37      浏览:1656 | 回复:6        打印      只看该作者   [复制链接] 楼主
下载 RK3308B Linux SDK 后,得到 Firefly-RK3308_Linux_SDK_git_20190924.7z 压缩包,
解压后,就一个 .git 目录
如何拉取代码,并编译得到烧写固件
回复

使用道具 举报

发表于 2024-3-18 15:43:05        只看该作者  沙发
1. 看维基教程 https://wiki.t-firefly.com/zh_CN ... /linux_compile.html
2. SDK已采用repo来管理了
回复

使用道具 举报

23

积分

0

威望

0

贡献

技术小白

积分
23
发表于 2024-3-18 16:52:00        只看该作者  板凳
firefly_zhongw 发表于 2024-3-18 15:43
1. 看维基教程 https://wiki.t-firefly.com/zh_CN ... /linux_compile.html
2. SDK已采用repo来管理了

执行repo后出现如下错误,请问如何修复?

repo init --no-clone-bundle --repo-url https://gitlab.com/firefly-linux/git-repo.git -u https://gitlab.com/firefly-linux/manifests.git -b master -m rk3308_linux_release.xml
Downloading Repo source from https://gitlab.com/firefly-linux/git-repo.git
remote: Enumerating objects: 4481, done.
remote: Counting objects: 100% (3/3), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 4481 (delta 0), reused 0 (delta 0), pack-reused 4478

warning: 'refs/heads/stable' is not signed; falling back to signed release 'v1.12.37'

/home/user/work/rk3308/RK3308-ROC-CC/.repo/repo/main.py:19: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses
  import imp
Traceback (most recent call last):
  File "/home/user/work/rk3308/RK3308-ROC-CC/.repo/repo/main.py", line 46, in <module>
    from subcmds.version import Version
  File "/home/user/work/rk3308/RK3308-ROC-CC/.repo/repo/subcmds/__init__.py", line 33, in <module>
    mod = __import__(__name__,
  File "/home/user/work/rk3308/RK3308-ROC-CC/.repo/repo/subcmds/help.py", line 19, in <module>
    from formatter import AbstractFormatter, DumbWriter
ModuleNotFoundError: No module named 'formatter'
user@userVM:~/work/rk3308/RK3308-ROC-CC$
回复

使用道具 举报

发表于 2024-3-19 09:26:53        只看该作者  地板
下载压缩包

123.png (49.57 KB, 下载次数: 296)

123.png
回复

使用道具 举报

23

积分

0

威望

0

贡献

技术小白

积分
23
发表于 2024-3-19 15:56:44        只看该作者  5#
按照您的方法,在进行编译 buildroot 时,一直停留在  :linux-headers 4.4.118 Downloading

log 如下:

Mike@MikeVM:~/work/rk3308/rk3308_linux_release_v1.5.0a_20221212$ ./build.sh buildroot
processing option: buildroot
==========Start building buildroot==========
TARGET_BUILDROOT_CONFIG=firefly_rk3308_release
=========================================
Top of tree: /home/Mike/work/rk3308/rk3308_linux_release_v1.5.0a_20221212
===========================================

#TARGET_BOARD=rk3308
#OUTPUT_DIR=output/firefly_rk3308_release
#CONFIG=firefly_rk3308_release_defconfig

===========================================
make: Entering directory '/home/Mike/work/rk3308/rk3308_linux_release_v1.5.0a_20221212/buildroot'
  GEN     /home/Mike/work/rk3308/rk3308_linux_release_v1.5.0a_20221212/buildroot/output/firefly_rk3308_release/Makefile
/home/Mike/work/rk3308/rk3308_linux_release_v1.5.0a_20221212/buildroot/build/defconfig_hook.py -m /home/Mike/work/rk3308/rk3308_linux_release_v1.5.0a_20221212/buildroot/configs/firefly_rk3308_release_defconfig /home/Mike/work/rk3308/rk3308_linux_release_v1.5.0a_20221212/buildroot/output/firefly_rk3308_release/.rockchipconfig
BR2_DEFCONFIG='' KCONFIG_AUTOCONFIG=/home/Mike/work/rk3308/rk3308_linux_release_v1.5.0a_20221212/buildroot/output/firefly_rk3308_release/build/buildroot-config/auto.conf KCONFIG_AUTOHEADER=/home/Mike/work/rk3308/rk3308_linux_release_v1.5.0a_20221212/buildroot/output/firefly_rk3308_release/build/buildroot-config/autoconf.h KCONFIG_TRISTATE=/home/Mike/work/rk3308/rk3308_linux_release_v1.5.0a_20221212/buildroot/output/firefly_rk3308_release/build/buildroot-config/tristate.config BR2_CONFIG=/home/Mike/work/rk3308/rk3308_linux_release_v1.5.0a_20221212/buildroot/output/firefly_rk3308_release/.config HOST_GCC_VERSION="9" BUILD_DIR=/home/Mike/work/rk3308/rk3308_linux_release_v1.5.0a_20221212/buildroot/output/firefly_rk3308_release/build SKIP_LEGACY= BR2_DEFCONFIG=/home/Mike/work/rk3308/rk3308_linux_release_v1.5.0a_20221212/buildroot/configs/firefly_rk3308_release_defconfig /home/Mike/work/rk3308/rk3308_linux_release_v1.5.0a_20221212/buildroot/output/firefly_rk3308_release/build/buildroot-config/conf --defconfig=/home/Mike/work/rk3308/rk3308_linux_release_v1.5.0a_20221212/buildroot/output/firefly_rk3308_release/.rockchipconfig Config.in
#
# configuration written to /home/Mike/work/rk3308/rk3308_linux_release_v1.5.0a_20221212/buildroot/output/firefly_rk3308_release/.config
#
make: Leaving directory '/home/Mike/work/rk3308/rk3308_linux_release_v1.5.0a_20221212/buildroot'
2024-03-19T14:55:10 >>> linux-headers 4.4.118 Downloading
回复

使用道具 举报

发表于 2024-3-22 14:48:51        只看该作者  6#
要么先手动下载包或者检查网络多试几次或者科学上网
回复

使用道具 举报

5

积分

0

威望

0

贡献

吃瓜的群众

积分
5
发表于 2024-4-11 17:47:10        只看该作者  7#
我这里遇到一个编译问题,编译到recovery的时候,出错

2024-04-11T17:18:11 >>> busybox 1.27.2 Extracting
2024-04-11T17:18:11 >>> busybox 1.27.2 Patching
2024-04-11T17:18:23 >>> busybox 1.27.2 Configuring
2024-04-11T17:18:23 >>> busybox 1.27.2 Building
Done in 16min 27s  (error code: 2)
Command exited with non-zero status 2
you take 16:28.83 to build recovery
ERROR: Running build_recovery failed!
ERROR: exit code 2 from line 1080:
    /usr/bin/time -f "you take %E to build recovery" $COMMON_DIR/mk-ramdisk.sh recovery.img $RK_CFG_RECOVERY


我用的是rk3308_linux_release_v1.5.0a_20221212
回复

使用道具 举报

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

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表