[LEDE-DEV] rb112/rb133 (adm5120) compile fail

Denis Periša darkman.hr at gmail.com
Sun Feb 26 18:42:50 PST 2017


Does anyone use these devices, I cannot compile minimal firmware for them.

Here is build log. (last part)

# Cellvision
# Compex
export MAKEFLAGS= ;make V=ss -C lzma-loader
KDIR=/DISK2/OPENWRT/2017/LEDE/rb133c/build_dir/target-mipsel_mips32_musl/linux-adm5120_router_le
TARGET_DIR=/DISK2/OPENWRT/2017/LEDE/rb133c/bin/targets/adm5120/router_le
LOADER=/DISK2/OPENWRT/2017/LEDE/rb133c/bin/targets/adm5120/router_le/lede-adm5120-router_le-wp54g-ramfs.bin
LOADER_DATA=/DISK2/OPENWRT/2017/LEDE/rb133c/build_dir/target-mipsel_mips32_musl/linux-adm5120_router_le/vmlinux.lzma
LZMA_TEXT_START=0x80500000 LZMA_STARTUP_ORG=0 CONFIG_PASS_KARGS=
CONFIG_BOARD= compile loader.bin
make[6]: Entering directory
'/DISK2/OPENWRT/2017/LEDE/rb133c/target/linux/adm5120/image/lzma-loader'
make -C /DISK2/OPENWRT/2017/LEDE/rb133c/build_dir/target-mipsel_mips32_musl/linux-adm5120_router_le/lzma-loader
CROSS_COMPILE="mipsel-openwrt-linux-musl-" \
    LZMA_STARTUP_ORG=0 \
    LZMA_TEXT_START=0x80500000 \
    LOADER_DATA=/DISK2/OPENWRT/2017/LEDE/rb133c/build_dir/target-mipsel_mips32_musl/linux-adm5120_router_le/vmlinux.lzma
\
    CONFIG_BOARD= \
    CONFIG_PASS_KARGS= \
    clean all
make[7]: Entering directory
'/DISK2/OPENWRT/2017/LEDE/rb133c/build_dir/target-mipsel_mips32_musl/linux-adm5120_router_le/lzma-loader'
rm -f *.elf *.bin *.o
mipsel-openwrt-linux-musl-gcc -D__KERNEL__ -Wall -Wstrict-prototypes
-Wno-trigraphs -Os -fno-strict-aliasing -fno-common
-fomit-frame-pointer -G 0 -mno-abicalls -fno-pic -ffunction-sections
-pipe -mlong-calls -fno-common -ffreestanding -fhonour-copts -mabi=32
-march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap
-DLOADADDR=0x80001000 -D_LZMA_PROB32 -DLZMA_WRAPPER=1 -D__ASSEMBLY__
-DLZMA_STARTUP_ORG=0 -c -o head.o head.S
mipsel-openwrt-linux-musl-gcc -D__KERNEL__ -Wall -Wstrict-prototypes
-Wno-trigraphs -Os -fno-strict-aliasing -fno-common
-fomit-frame-pointer -G 0 -mno-abicalls -fno-pic -ffunction-sections
-pipe -mlong-calls -fno-common -ffreestanding -fhonour-copts -mabi=32
-march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap
-DLOADADDR=0x80001000 -D_LZMA_PROB32 -DLZMA_WRAPPER=1 -c -o
decompress.o decompress.c
mipsel-openwrt-linux-musl-gcc -D__KERNEL__ -Wall -Wstrict-prototypes
-Wno-trigraphs -Os -fno-strict-aliasing -fno-common
-fomit-frame-pointer -G 0 -mno-abicalls -fno-pic -ffunction-sections
-pipe -mlong-calls -fno-common -ffreestanding -fhonour-copts -mabi=32
-march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap
-DLOADADDR=0x80001000 -D_LZMA_PROB32 -DLZMA_WRAPPER=1 -c -o board.o
board.c
mipsel-openwrt-linux-musl-gcc -D__KERNEL__ -Wall -Wstrict-prototypes
-Wno-trigraphs -Os -fno-strict-aliasing -fno-common
-fomit-frame-pointer -G 0 -mno-abicalls -fno-pic -ffunction-sections
-pipe -mlong-calls -fno-common -ffreestanding -fhonour-copts -mabi=32
-march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap
-DLOADADDR=0x80001000 -D_LZMA_PROB32 -DLZMA_WRAPPER=1 -c -o printf.o
printf.c
mipsel-openwrt-linux-musl-gcc -D__KERNEL__ -Wall -Wstrict-prototypes
-Wno-trigraphs -Os -fno-strict-aliasing -fno-common
-fomit-frame-pointer -G 0 -mno-abicalls -fno-pic -ffunction-sections
-pipe -mlong-calls -fno-common -ffreestanding -fhonour-copts -mabi=32
-march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap
-DLOADADDR=0x80001000 -D_LZMA_PROB32 -DLZMA_WRAPPER=1 -c -o
LzmaDecode.o LzmaDecode.c
mipsel-openwrt-linux-musl-ld -r -b binary --oformat
elf32-tradlittlemips -T lzma-data.lds -o data.o
/DISK2/OPENWRT/2017/LEDE/rb133c/build_dir/target-mipsel_mips32_musl/linux-adm5120_router_le/vmlinux.lzma
mipsel-openwrt-linux-musl-ld -static --gc-sections -no-warn-mismatch
-e startup -T loader.lds -Ttext 0x80500000 -o loader.elf head.o
decompress.o board.o printf.o LzmaDecode.o data.o
mipsel-openwrt-linux-musl-objcopy -O binary -R .reginfo -R .note -R
.comment -R .mdebug -S loader.elf loader.bin
mipsel-openwrt-linux-musl-objcopy: Warning: Writing section `.text' to
huge (ie negative) file offset 0xffffffff80500000.
mipsel-openwrt-linux-musl-objcopy:loader.bin[.text]: File truncated
make[7]: *** [Makefile:88: loader.bin] Error 1
make[7]: Leaving directory
'/DISK2/OPENWRT/2017/LEDE/rb133c/build_dir/target-mipsel_mips32_musl/linux-adm5120_router_le/lzma-loader'
make[6]: *** [Makefile:37: loader-compile] Error 2
make[6]: Leaving directory
'/DISK2/OPENWRT/2017/LEDE/rb133c/target/linux/adm5120/image/lzma-loader'
make[5]: *** [Makefile:128: kernel_prepare] Error 2
make[5]: Leaving directory
'/DISK2/OPENWRT/2017/LEDE/rb133c/target/linux/adm5120/image'
make[4]: *** [Makefile:24: install] Error 2
make[4]: Leaving directory
'/DISK2/OPENWRT/2017/LEDE/rb133c/target/linux/adm5120'
make[3]: *** [Makefile:13: install] Error 2
make[3]: Leaving directory '/DISK2/OPENWRT/2017/LEDE/rb133c/target/linux'
make[2]: *** [target/Makefile:25: target/linux/install] Error 2
make[2]: Leaving directory '/DISK2/OPENWRT/2017/LEDE/rb133c'
make[1]: *** [target/Makefile:19:
/DISK2/OPENWRT/2017/LEDE/rb133c/staging_dir/target-mipsel_mips32_musl/stamp/.target_install]
Error 2
make[1]: Leaving directory '/DISK2/OPENWRT/2017/LEDE/rb133c'
make: *** [/DISK2/OPENWRT/2017/LEDE/rb133c/include/toplevel.mk:201:
world] Error 2


Thank you for any input!



More information about the Lede-dev mailing list