记录1.4版本sdk环境配置踩坑,Troubleshooting and Practices of SDK Deployment(Version 1.4)
Posted: 2024-12-01 11:13
在使用1.4 版本的sdk踩了一些坑,记录一下
1. 主菜单选项6 RV1106_Luckfox_Pico_Max 不支持,可以在9 custom当中选择自己所需的型号。
2.对于linux用户,不要使用VScode的Dev Containers,因为vscode使用docker engine工作,为了安全,容器内的程序很难修改挂载卷的所有者,tar在解压buildroot会出错。
3.不要使用更新版本的ubuntu所自动安装的gcc,版本过高会导致"implicit declaration of function open_temp_exec_file"从而编译失败,最简单的方式是使用ubuntu22.04。
4.对于想自己编译dockerfile的用户,可以先修改容器地区以免在打包时出现交互选项。
5.感谢幸狐团队的精心付出
SDK version: 1.4
1. pick the Luckfox Pico hardware version: [6] RV1106_Luckfox_Pico_Max does not work.
Use option [9] custom instead and find the correct version.
2. For Linux users, the plugin 'Dev Containers' of VScode does not work because tar cannot change the ownership of the file in the volume loaded by the Docker engine. Please use the command line.
3. For newer versions of Ubuntu, "implicit declaration of function open_temp_exec_file" will occur. This is because the version of the host gcc is too new. Please switch to Ubuntu 22.04.
4. If you want to build your own Docker image by compiling a Dockerfile, please set up the timezone before installing the dependencies.
5. Thanks to the Luckfox team for their efforts.
1. 主菜单选项6 RV1106_Luckfox_Pico_Max 不支持,可以在9 custom当中选择自己所需的型号。
2.对于linux用户,不要使用VScode的Dev Containers,因为vscode使用docker engine工作,为了安全,容器内的程序很难修改挂载卷的所有者,tar在解压buildroot会出错。
3.不要使用更新版本的ubuntu所自动安装的gcc,版本过高会导致"implicit declaration of function open_temp_exec_file"从而编译失败,最简单的方式是使用ubuntu22.04。
4.对于想自己编译dockerfile的用户,可以先修改容器地区以免在打包时出现交互选项。
Code: Select all
FROM ubuntu:22.04
RUN ln -snf /usr/share/zoneinfo/$CONTAINER_TIMEZONE /etc/localtime && echo $CONTAINER_TIMEZONE > /etc/timezone
RUN apt-get update && apt-get install -y tzdata
#install your dependencies below...
RUN apt update && apt-get install -y git ssh make gcc gcc-multilib g++-multilib module-assistant expect g++ gawk texinfo libssl-dev bison flex fakeroot cmake unzip gperf autoconf device-tree-compiler libncurses5-dev pkg-config bc python-is-python3 passwd openssl openssh-server openssh-client vim file cpio rsync
SDK version: 1.4
1. pick the Luckfox Pico hardware version: [6] RV1106_Luckfox_Pico_Max does not work.
Use option [9] custom instead and find the correct version.
2. For Linux users, the plugin 'Dev Containers' of VScode does not work because tar cannot change the ownership of the file in the volume loaded by the Docker engine. Please use the command line.
3. For newer versions of Ubuntu, "implicit declaration of function open_temp_exec_file" will occur. This is because the version of the host gcc is too new. Please switch to Ubuntu 22.04.
4. If you want to build your own Docker image by compiling a Dockerfile, please set up the timezone before installing the dependencies.
Code: Select all
FROM ubuntu:22.04
RUN ln -snf /usr/share/zoneinfo/$CONTAINER_TIMEZONE /etc/localtime && echo $CONTAINER_TIMEZONE > /etc/timezone
RUN apt-get update && apt-get install -y tzdata
#install your dependencies below...
RUN apt update && apt-get install -y git ssh make gcc gcc-multilib g++-multilib module-assistant expect g++ gawk texinfo libssl-dev bison flex fakeroot cmake unzip gperf autoconf device-tree-compiler libncurses5-dev pkg-config bc python-is-python3 passwd openssl openssh-server openssh-client vim file cpio rsync