Page 1 of 1

想諮詢一下 Luckfox_Lyra_SDK_250403.tar.gz sdk如何對解壓後的文件進行解包

Posted: 2025-04-20 13:13
by qwe7002
我已經使用ubuntu 22.04鏡像構建docker編譯環境,並且將這個tar.gz解壓縮。當我執行 https://wiki.luckfox.com/zh/Luckfox-Lyra/SDK 文檔中的

Code: Select all

.repo/repo/repo sync -l
時,提示我找不到這個文件。我也嘗試執行了

Code: Select all

repo/repo sync -l
,但獲得提示

Code: Select all

error: command 'sync' requires repo to be installed first.
         Use "repo init" to install it here.
想諮詢一下我應該怎麼做,是否是我下錯了包導致的。

我目前的構建環境是

Code: Select all

# 使用基礎映像,例如 Ubuntu
FROM ubuntu:22.04

# 設定時區為台北
ENV TZ=Asia/Taipei

# 設定時區
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# 設定 locale
RUN apt-get update && apt-get install -y locales \
    && locale-gen en_US.UTF-8 \
    && update-locale LANG=en_US.UTF-8
# 設定語言環境變數
ENV LANG=en_US.UTF-8 \
    LANGUAGE=en_US:en \
    LC_ALL=en_US.UTF-8

# 安裝必要的工具
RUN apt-get update && apt-get install -y \
    sudo wget curl vim less net-tools iputils-ping iproute2 \
    bash-completion git ssh bash
# 更新並安裝所需的軟體包
RUN apt-get install -y make gcc libssl-dev \
    liblz4-tool expect expect-dev g++ patchelf chrpath gawk texinfo chrpath \
    diffstat binfmt-support qemu-user-static live-build bison flex fakeroot \
    cmake gcc-multilib g++-multilib unzip device-tree-compiler ncurses-dev \
    libgucharmap-2-90-dev bzip2 expat gpgv2 cpp-aarch64-linux-gnu libgmp-dev \
    libmpc-dev bc python-is-python3 python2 \
    && apt-get clean && rm -rf /var/lib/apt/lists/*
# 安裝 Python 2
RUN ln -sf /usr/bin/python2 /usr/bin/python

Re: 想諮詢一下 Luckfox_Lyra_SDK_250403.tar.gz sdk如何對解壓後的文件進行解包

Posted: 2025-04-21 2:29
by Crocodile
您好,压缩包放置到空目录下进行解压或将解压出来的.repo放置到一个空文件夹下再执行

Code: Select all

.repo/repo/repo sync
不需要进入到.repo目录下
如果仍然出现以下提示

Code: Select all

error: command 'sync' requires repo to be installed first.
         Use "repo init" to install it here.
请尝试执行

Code: Select all

.repo/repo/repo init

Re: 想諮詢一下 Luckfox_Lyra_SDK_250403.tar.gz sdk如何對解壓後的文件進行解包

Posted: 2025-04-21 7:06
by qwe7002
Crocodile wrote: 2025-04-21 2:29 您好,压缩包放置到空目录下进行解压或将解压出来的.repo放置到一个空文件夹下再执行

Code: Select all

.repo/repo/repo sync
不需要进入到.repo目录下
如果仍然出现以下提示

Code: Select all

error: command 'sync' requires repo to be installed first.
         Use "repo init" to install it here.
请尝试执行

Code: Select all

.repo/repo/repo init
非常感謝您,我理解目錄結構了。應該是將解壓出來的所有文件,放進一個.repo目錄,然後執行.repo/repo/repo sync即可