Nuclei-Software / nuclei-linux-sdk

Nuclei RISC-V Linux Software Development Kit
Apache License 2.0
38 stars 9 forks source link

如何下载最新的源码(无git) How to download latest source code without git #4

Open fanghuaqi opened 1 year ago

fanghuaqi commented 1 year ago

Clone source code using git

tar -xJvf nuclei-linux-sdk-2024.05.30.tar.xz

Download without git

  1. Click https://github.com/Nuclei-Software/nuclei-linux-sdk/actions/workflows/build.yml
  2. Find the latest successful github action workflow for dev_nuclei_next branch, if you are using dev_nuclei_next

    We recommended to use dev_nuclei_5.10_v2 for linux 5.10

fanghuaqi commented 1 year ago

缓存 build_caching下载以后,解压放在 buildroot/dl 目录下,理论上可以不用下载额外的软件, 放置过去后目录格式大致如此。

image

fanghuaqi commented 1 year ago

为了方便国内客户直接下载源码,我们将目前最新的commit的dev_nuclei_next分支和feature/fsl分支的代码做了snapshot,只包含代码部分,不包含其他git版本管理信息,可以从 https://drive.weixin.qq.com/s?k=ABcAKgdSAFcFn7M5WY 下载使用。

2023.12.25 上传了 linux kernel 5.10/6.1/6.6 最新的代码的snapshot以及buildroot缓存的压缩包,根据你预期的linux 内核版本,建议使用这三个中的其中一个。

image

不建议使用 网盘snapshot版本不是实时更新,且务必使用 ubuntu 20.04 进行测试。

如果只是想下载代码(不需要git版本信息),可以直接参照 https://github.com/Nuclei-Software/nuclei-linux-sdk/issues/4#issue-1332579602 下载最新的github action自动构建上传的版本,下载的时候请确认好所需的分支。

如果想拥有 git版本信息,可以使用git完整下载,或者使用docker,参见 https://github.com/Nuclei-Software/nuclei-linux-sdk/issues/8

image

使用方法

  1. 选择你想用的分支代码压缩包(包括从github action上下载的nuclei_linux_sdk_source.zip),然后在linux环境上解压,解压完毕后,依然需要安装对应的软件依赖
  2. 将buildroot的缓存(包括从github action上下载的) build_caching.zip解压,然后放置到<linux-sdk>/buildroot/dl目录下(没有这个目录自行创建一下),目录格式大致如此 image
  3. 参照Nuclei Linux SDK的文档进行编译,以对应SDK下的README.md文件为准,网络上的版本可能会和当时传上去的特定版本对不上。
  4. 特定的SoC的支持文档目前是放在 conf/xxx/README.md里面的,如果有的话,可以查看下
  5. 由于网盘共享的代码可能得不到及时更新,也可以通过我们github actions里面获取上面提供的最新编译pass的代码(请注意对应的分支),参见 https://github.com/Nuclei-Software/nuclei-linux-sdk/issues/4#issue-1332579602