我正在尝试为VoCore v1.0构建内核映像。我从github获得了sdk文件。这样做时出现以下错误

/build_root/openwrt/staging_dir/host/bin/padjffs2 /build_root/openwrt/build_dir/target-mips_34kc_musl-1.1.11/linux-ar71xx_generic/tmp/openwrt-ar71xx-generic-ubnt-ls-sr71-squashfs-factory.bin  4 8 16 64 128 256
padding image to 004e3000
padding image to 004e4000
padding image to 004f0000
padding image to 00500000
/build_root/openwrt/staging_dir/host/bin/mkfwimage -B LS-SR71 -v LS-SR71.ar7100.v6.0.0-OpenWrt-r48207 -k /build_root/openwrt/build_dir/target-mips_34kc_musl-1.1.11/linux-ar71xx_generic/ubnt-ls-sr71-kernel.bin -r /build_root/openwrt/build_dir/target-mips_34kc_musl-1.1.11/linux-ar71xx_generic/tmp/openwrt-ar71xx-generic-ubnt-ls-sr71-squashfs-factory.bin -o /build_root/openwrt/build_dir/target-mips_34kc_musl-1.1.11/linux-ar71xx_generic/tmp/openwrt-ar71xx-generic-ubnt-ls-sr71-squashfs-factory.bin
board = LS-SR71
ERROR: Failed creating firmware layout description - error code: -2
make[5]: *** [/build_root/openwrt/build_dir/target-mips_34kc_musl-1.1.11/linux-ar71xx_generic/tmp/openwrt-ar71xx-generic-ubnt-ls-sr71-squashfs-factory.bin] Error 253
make[5]: Leaving directory `/build_root/openwrt/target/linux/ar71xx/image'
make[4]: *** [install] Error 2
make[4]: Leaving directory `/build_root/openwrt/target/linux/ar71xx'
make[3]: *** [install] Error 2
make[3]: Leaving directory `/build_root/openwrt/target/linux'
make[2]: *** [target/linux/install] Error 2
make[2]: Leaving directory `/build_root/openwrt'
make[1]: *** [/build_root/openwrt/staging_dir/target-mips_34kc_musl-1.1.11/stamp/.target_install] Error 2
make[1]: Leaving directory `/build_root/openwrt'
make: *** [world] Error 2


我对错误进行了一些搜索,发现该错误是从“ mkfwimage.c”文件生成的,但是我并没有真正获得任何有用的信息来消除此类错误。

发生此错误的原因:原来mkfwimage错误是由执行超出目标设备闪存大小的构建间接生成的。

帮我避免这个错误

最佳答案

1)尝试使用git clone git://git.openwrt.org/15.05/openwrt.git下载OpenWRT Chaos Calmer版本。

2)在OpenWRT文件夹的命令行中运行make menuconfig

3)在menuconfig上仅选择以下项目:


目标系统>> Ralink RT288x / RT3xxx
子目标>>基于RT3x5x / RT5350的板
目标资料>> VoCore


4)应用此路径:

diff --git a/target/linux/ramips/dts/VOCORE.dts b/target/linux/ramips/dts/VOCORE.dts
index e6288b0..29867ed 100644
--- a/target/linux/ramips/dts/VOCORE.dts
+++ b/target/linux/ramips/dts/VOCORE.dts
@@ -46,7 +46,7 @@

                partition@50000 {
                    label = "firmware";
-                   reg = <0x50000 0x7b0000>;
+                   reg = <0x50000 0xfb0000>;
                };
            };


5)在命令行上运行make cleanmake all

(更多信息在这里:http://vocore.io/wiki/index/id:15

关于c - Openwrt-无法创建固件布局描述,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/34853285/

10-10 02:02