wrt
build need :
fakeroot,curl
sudo apt-get install u-boot-tools
sudo apt-get install libssl-dev
git clone ssh://rtdhcgit.realtek.com:29418/Pure_NAS/SDKrelease
./scripts/feeds update -a
./scripts/feeds install -a
cp -rf configs/config.evideostb .config
make oldconfig
make -j1 V=s
编译的方式如下。
./scripts/feeds update -a
./scripts/feeds install -a
cp -rf configs/purenas-1295.config .config
make menuconfig
make -j1 V=s
package only:
make target/linux/install
Paragon & wifi
./packages/base/kmod-ottrtl8821as_4.1.7-rtd1295-1_rtd1295.ipk
我只有類似做法 你可以參考
Per-talked.
因為Paragon UFSD不能release source code,
所以SDK版只會有UFSD kernel module,
要透過原本source code版的OpenWRT來產生新版的UFSD ipk。
步驟如下:
0. 確認OpenWRT下的kernel revision和客戶版本相同
客戶的kernel revision可以從target/linux/rtd1295/config-4.1的CONFIG_LOCALVERSION找到。(開頭的g是指git,後面是commit ID)
可在.config裡設定CONFIG_KERNEL_GIT_REVISION指定到對應的commit ID,
再check out linux kernel:
rm -rf build_dir/target-aarch64_cortex-a53+neon_glibc-2.19/linux-rtd1295_mnas_emmc/linux-4.1.7/
make target/linux/prepare
關掉CONFIG_MODVERSIONS(在target/linux/rtd1295/config-4.1)並重編kernel:
make target/linux/compile -j8
1. 修改package/kernel/ufsd/Makefile:
將PKG_SOURCE_URL指到新的paragon source
PKG_SOURCE_VERSION指到對應的commit ID
2. 重編UFSD:
make package/kernel/ufsd/{clean,prepare,compile,install}
3. 取出新的UFSD ipk:
bin/rtd1295-glibc/packages/base/kmod-ufsd_4.1.7-rtd1295-2_rtd1295.ipk
posted on 2021-06-09 20:46 yamazaki02 阅读(154) 评论(0) 编辑 收藏 举报