diff --git a/docs/common/orion-common/low-level-dev/cix-sdk/_build.mdx b/docs/common/orion-common/low-level-dev/cix-sdk/_build.mdx deleted file mode 100644 index 3e880105f..000000000 --- a/docs/common/orion-common/low-level-dev/cix-sdk/_build.mdx +++ /dev/null @@ -1,45 +0,0 @@ -## 初始化此芯 SDK 编译环境 - -请在 SDK 根目录下执行以下命令加载编译工具并安装编译依赖: - -```bash -sudo apt-get update -. ./build-scripts/envtool.sh -newer_env -sudo apt-get install python-is-python3 7zip meson apt-utils -``` - -此时方可执行以下命令来下载并解压额外的二进制资源: - -```bash -i=$((1)) -get_cix_ext() { - local block="$(printf "%03d" $1)" - echo "https://github.com/radxa-pkg/cix-prebuilt/releases/download/$EX_CUSTOMER-$EX_PROJECT-$EX_VERSION/cix-sdk-ext.7z.$block" -} -while wget "$(get_cix_ext "$i")"; do - i=$((i + 1)) -done -7zz x cix-sdk-ext.7z.001 -# Later system should use 7z instead of 7zz, as the command was renamed. -# Optionally, remove the downloaded files: -# rm cix-sdk-ext.7z.* -``` - -现在系统便已准备好进行 SDK 编译。 - -## 常见命令和编译对象 - -以下命令需要在加载 `envtool.sh` 后方可运行: - -- `help`:显示 SDK 命令帮助 -- `build all`:编译所有组件,并最终生成可运行镜像 - -## 生成产物 - -当`build all`执行完毕时,你可以找到以下的生成产物: - -- `output/cix_evb/images/linux-fs.sdcard`:系统镜像 -- `output/cix_evb/images/cix_debian.iso`:修改后的 Debian 安装 ISO -- `output/cix_evb/images/cix_flash_all_O6.bin`:星睿 O6 BIOS 镜像 -- `output/cix_evb/images/cix_flash_all_O6N.bin`:星睿 O6N BIOS 镜像 diff --git a/docs/common/orion-common/low-level-dev/cix-sdk/_get-source.mdx b/docs/common/orion-common/low-level-dev/cix-sdk/_get-source.mdx deleted file mode 100644 index af5490102..000000000 --- a/docs/common/orion-common/low-level-dev/cix-sdk/_get-source.mdx +++ /dev/null @@ -1,34 +0,0 @@ -经此芯授权,瑞莎在 GitLab 上发布了此芯 SDK 的可公开部分。用户可以自行通过该 SDK 对 O6 / O6N 进行二次开发。 - -:::info -此芯 SDK 仅支持在 Debian 11 / Ubuntu 22.04 系统上进行编译。系统可用储存空间至少需 100GiB。 - -SDK 在容器内运行时可能会遇到权限问题,建议使用实体机或虚拟机进行编译。 -::: - -## 获取 `repo` 工具 - -SDK 提供了 [`repo`](https://gerrit.googlesource.com/git-repo) 兼容的 -[manifest](https://gitlab.com/cix-linux/linux_repo/cix-manifest)来帮助用户快速在本地还原代码文件结构。 - -用户在下载 SDK 前,请首先在所使用的系统上安装该工具。 Debian 系统可参考以下命令: - -```bash -sudo apt-get update -sudo apt-get install repo -``` - -关于 `repo` 命令的使用参考,请参见 [`AOSP` 文档](https://source.android.com/docs/setup/reference/repo)。 - -## 拉取代码 - -请执行以下命令: - -```bash -mkdir cix-sdk -cd cix-sdk -repo init https://gitlab.com/cix-linux/linux_repo/cix-manifest.git -b radxa-orion -m radxa_orion_release.xml -repo sync -``` - -代码全部下载完成后,您就可以进行[软件编译](build)了。 diff --git a/i18n/en/docusaurus-plugin-content-docs/current/common/orion-common/low-level-dev/cix-sdk/_build.mdx b/i18n/en/docusaurus-plugin-content-docs/current/common/orion-common/low-level-dev/cix-sdk/_build.mdx deleted file mode 100644 index 4148dfb98..000000000 --- a/i18n/en/docusaurus-plugin-content-docs/current/common/orion-common/low-level-dev/cix-sdk/_build.mdx +++ /dev/null @@ -1,45 +0,0 @@ -## Initialize the CIX SDK Build Environment - -In the SDK root directory, execute the following commands to load the build tools and install build dependencies: - -```bash -sudo apt-get update -. ./build-scripts/envtool.sh -newer_env -sudo apt-get install python-is-python3 7zip meson apt-utils -``` - -Then, you can execute the following commands to download and extract additional binary resources: - -```bash -i=$((1)) -get_cix_ext() { - local block="$(printf "%03d" $1)" - echo "https://github.com/radxa-pkg/cix-prebuilt/releases/download/$EX_CUSTOMER-$EX_PROJECT-$EX_VERSION/cix-sdk-ext.7z.$block" -} -while wget "$(get_cix_ext "$i")"; do - i=$((i + 1)) -done -7zz x cix-sdk-ext.7z.001 -# Later system should use 7z instead of 7zz, as the command was renamed. -# Optionally, remove the downloaded files: -# rm cix-sdk-ext.7z.* -``` - -Your system is now ready for SDK compilation. - -## Common Commands and Build Targets - -The following commands require loading `envtool.sh` first: - -- `help`: Display SDK command help -- `build all`: Compile all components and generate the final runnable image - -## Build Artifacts - -After `build all` completes, you can find the following build artifacts: - -- `output/cix_evb/images/linux-fs.sdcard`: System image -- `output/cix_evb/images/cix_debian.iso`: Modified Debian installation ISO -- `output/cix_evb/images/cix_flash_all_O6.bin`: Orion O6 BIOS image -- `output/cix_evb/images/cix_flash_all_O6N.bin`: Orion O6N BIOS image diff --git a/i18n/en/docusaurus-plugin-content-docs/current/common/orion-common/low-level-dev/cix-sdk/_get-source.mdx b/i18n/en/docusaurus-plugin-content-docs/current/common/orion-common/low-level-dev/cix-sdk/_get-source.mdx deleted file mode 100644 index 25ea3e4ea..000000000 --- a/i18n/en/docusaurus-plugin-content-docs/current/common/orion-common/low-level-dev/cix-sdk/_get-source.mdx +++ /dev/null @@ -1,34 +0,0 @@ -With authorization from CIX, Radxa has published the public portion of the CIX SDK on GitLab. Users can use this SDK to perform secondary development on O6 / O6N. - -:::info -The CIX SDK only supports compilation on Debian 11 / Ubuntu 22.04 systems. A minimum of 100GiB of available storage space is required. - -When running the SDK in a container, you may encounter permission issues. It is recommended to use a physical machine or virtual machine for compilation. -::: - -## Obtaining the `repo` Tool - -The SDK provides a [`repo`](https://gerrit.googlesource.com/git-repo) compatible -[manifest](https://gitlab.com/cix-linux/linux_repo/cix-manifest) to help users quickly restore the code file structure locally. - -Before downloading the SDK, please first install the tool on your system. For Debian systems, you can use the following commands: - -```bash -sudo apt-get update -sudo apt-get install repo -``` - -For reference on using the `repo` command, please see the [`AOSP` documentation](https://source.android.com/docs/setup/reference/repo). - -## Pulling the Source Code - -Execute the following commands: - -```bash -mkdir cix-sdk -cd cix-sdk -repo init https://gitlab.com/cix-linux/linux_repo/cix-manifest.git -b radxa-orion -m radxa_orion_release.xml -repo sync -``` - -After the code has finished downloading, you can proceed with [software compilation](build).