Firefly开源社区

打印 上一主题 下一主题

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

23

积分

0

威望

0

贡献

技术小白

积分
23

ROC-RK3308B-CC-PLUS 固件编译

发表于 2024-3-18 13:32:37      浏览:1907 | 回复:7        打印      只看该作者   [复制链接] 楼主
下载 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, 下载次数: 387)

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
回复

使用道具 举报

3

积分

0

威望

0

贡献

吃瓜的群众

积分
3
发表于 2025-1-6 21:33:00        只看该作者  8#
./build.sh 编译一直是这个样子的报错 还有救么

#TARGET_BOARD=rk3308b
#BUILD_TYPE=64
#OUTPUT_DIR=output//home/yuhang/project/roc_rk3308b_cc_plus/Firefly-RK3308/device/rockchip/rk3308/
#CONFIG=/home/yuhang/project/roc_rk3308b_cc_plus/Firefly-RK3308/device/rockchip/rk3308/_defconfig

===========================================
make: Entering directory '/home/yuhang/project/roc_rk3308b_cc_plus/Firefly-RK3308/buildroot'
make[1]: *** No rule to make target '/home/yuhang/project/roc_rk3308b_cc_plus/Firefly-RK3308/device/rockchip/rk3308/_defconfig'.  Stop.
Makefile:83: recipe for target '_all' failed
make: *** [_all] Error 2
make: Leaving directory '/home/yuhang/project/roc_rk3308b_cc_plus/Firefly-RK3308/buildroot'
Making /home/yuhang/project/roc_rk3308b_cc_plus/Firefly-RK3308/rockdev/oem.img from /home/yuhang/project/roc_rk3308b_cc_plus/Firefly-RK3308/device/rockchip/rk3308/ (auto sized)
Making /home/yuhang/project/roc_rk3308b_cc_plus/Firefly-RK3308/rockdev/oem.img from /home/yuhang/project/roc_rk3308b_cc_plus/Firefly-RK3308/device/rockchip/rk3308/ with size(195M)
0+0 records in
0+0 records out
0 bytes copied, 2.464e-05 s, 0.0 kB/s
mke2fs 1.44.1 (24-Mar-2018)
Discarding device blocks: done
Creating filesystem with 199680 1k blocks and 50000 inodes
Filesystem UUID: 9fc2a286-4d74-479e-a63e-d374cdd47bd4
Superblock backups stored on blocks:
        8193, 24577, 40961, 57345, 73729

Allocating group tables: done
Writing inode tables: done
Writing superblocks and filesystem accounting information: done

Copying /home/yuhang/project/roc_rk3308b_cc_plus/Firefly-RK3308/device/rockchip/rk3308/ into /home/yuhang/project/roc_rk3308b_cc_plus/Firefly-RK3308/rockdev/oem.img (root permission required)
cp: error writing '/tmp/tmp.b8qNU5I1pp/smart_voice/talking_droid': No space left on device
cp: cannot create directory '/tmp/tmp.b8qNU5I1pp/yocto/build/conf': No space left on device
Retring with increased size....(1/10)
Making /home/yuhang/project/roc_rk3308b_cc_plus/Firefly-RK3308/rockdev/oem.img from /home/yuhang/project/roc_rk3308b_cc_plus/Firefly-RK3308/device/rockchip/rk3308/ with size(199M)
0+0 records in
0+0 records out
0 bytes copied, 2.518e-05 s, 0.0 kB/s
mke2fs 1.44.1 (24-Mar-2018)
/home/yuhang/project/roc_rk3308b_cc_plus/Firefly-RK3308/rockdev/oem.img contains a ext2 file system
        last mounted on /tmp/tmp.b8qNU5I1pp on Mon Jan  6 21:30:30 2025
Proceed anyway? (y,N) y
Discarding device blocks: done
Creating filesystem with 203776 1k blocks and 51000 inodes
Filesystem UUID: 20ae7906-9761-4a79-8415-cf9baae8064a
Superblock backups stored on blocks:
        8193, 24577, 40961, 57345, 73729

Allocating group tables: done
Writing inode tables: done
Writing superblocks and filesystem accounting information: done

Copying /home/yuhang/project/roc_rk3308b_cc_plus/Firefly-RK3308/device/rockchip/rk3308/ into /home/yuhang/project/roc_rk3308b_cc_plus/Firefly-RK3308/rockdev/oem.img (root permission required)
tune2fs 1.44.1 (24-Mar-2018)
Setting maximal mount count to -1
Setting interval between checks to 0 seconds
done.
create userdata.img...Top of tree: /home/yuhang/project/roc_rk3308b_cc_plus/Firefly-RK3308

You're building on Linux
Lunch menu...pick a combo:

1. firefly_rk3308_release
2. firefly_rk3308_recovery
3. firefly_rk3308_pcba
4. firefly_rk3308_qt_release

Which would you like? [1] /home/yuhang/project/roc_rk3308b_cc_plus/Firefly-RK3308/device/rockchip/userdata/
/home/yuhang/project/roc_rk3308b_cc_plus/Firefly-RK3308/device/rockchip/userdata/
===========================================

#TARGET_BOARD=rk3308b
#BUILD_TYPE=64
#OUTPUT_DIR=output//home/yuhang/project/roc_rk3308b_cc_plus/Firefly-RK3308/device/rockchip/userdata/
#CONFIG=/home/yuhang/project/roc_rk3308b_cc_plus/Firefly-RK3308/device/rockchip/userdata/_defconfig

===========================================
make: Entering directory '/home/yuhang/project/roc_rk3308b_cc_plus/Firefly-RK3308/buildroot'
make[1]: *** No rule to make target '/home/yuhang/project/roc_rk3308b_cc_plus/Firefly-RK3308/device/rockchip/userdata/_defconfig'.  Stop.
Makefile:83: recipe for target '_all' failed
make: *** [_all] Error 2
make: Leaving directory '/home/yuhang/project/roc_rk3308b_cc_plus/Firefly-RK3308/buildroot'
Making /home/yuhang/project/roc_rk3308b_cc_plus/Firefly-RK3308/rockdev/userdata.img from /home/yuhang/project/roc_rk3308b_cc_plus/Firefly-RK3308/device/rockchip/userdata/ (auto sized)
Making /home/yuhang/project/roc_rk3308b_cc_plus/Firefly-RK3308/rockdev/userdata.img from /home/yuhang/project/roc_rk3308b_cc_plus/Firefly-RK3308/device/rockchip/userdata/ with size(15M)
0+0 records in
0+0 records out
0 bytes copied, 2.4929e-05 s, 0.0 kB/s
mke2fs 1.44.1 (24-Mar-2018)
Discarding device blocks: done
Creating filesystem with 15360 1k blocks and 3840 inodes
Filesystem UUID: ffed593a-26f0-48e8-b63e-3d55bf2e75fb
Superblock backups stored on blocks:
        8193

Allocating group tables: done
Writing inode tables: done
Writing superblocks and filesystem accounting information: done

Copying /home/yuhang/project/roc_rk3308b_cc_plus/Firefly-RK3308/device/rockchip/userdata/ into /home/yuhang/project/roc_rk3308b_cc_plus/Firefly-RK3308/rockdev/userdata.img (root permission required)
tune2fs 1.44.1 (24-Mar-2018)
Setting maximal mount count to -1
Setting interval between checks to 0 seconds
done.
create uboot.img...done.
create trust.img...done.
create loader...done.
create boot.img...done.
Image: image in rockdev is ready
Make image ok!
Make update.img
start to make update.img...
Android Firmware Package Tool v1.65
------ PACKAGE ------
Add file: ./package-file
Add file: ./Image/MiniLoaderAll.bin
Add file: ./Image/parameter.txt
Add file: ./Image/trust.img
Add file: ./Image/uboot.img
Add file: ./Image/boot.img
Add file: ./Image/rootfs.img
Add file: ./Image/recovery.img
Error:<AddFile> open file failed,err=2!
------ FAILED ------
Press any key to quit:
mv: cannot stat '/home/yuhang/project/roc_rk3308b_cc_plus/Firefly-RK3308/tools/linux/Linux_Pack_Firmware/rockdev/update.img': No such file or directory
Make update image failed!
回复

使用道具 举报

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

本版积分规则

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