OpenWRT的SDK是一套全自动的编译框架,其中是不包含编译需要的源码的。
以OK1046A-C OpenWRT开发为例
编译步骤为:
tar xvf openwrt_ok1046_v1.0.tar.bz2
cd openwrt
./scripts/feeds update -a
./scripts/feeds install -a
cp ok1046_defconfig .config
make -j4
编译完成后内核及设备树位于:
build_dir/target-aarch64_generic_musl/linux-layerscape_armv8_64b/linux-4.9.63/arch/arm64/boot/Image
build_dir/target-aarch64_generic_musl/linux-layerscape_armv8_64b/linux-4.9.63/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb-sdk-1040-5559.dtb
build_dir/target-aarch64_generic_musl/linux-layerscape_armv8_64b/linux-4.9.63/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb-sdk-1133-5559.dtb
文件系统位于:
staging_dir/target-aarch64_generic_musl/root-layerscape