Modify

Opened 3 years ago

Last modified 3 years ago

#19580 new defect

ar71xx: ImageBuilder fails for TP-LINK SAFELOADER (CPE210/220/510/520)

Reported by: anonymous Owned by: developers
Priority: normal Milestone:
Component: packages Version: Trunk
Keywords: ar71xx imagebuilder cpe510 cpe520 cpe210 cpe220 tp-link safeloader Cc: blogic@…, mschiffer@…

Description

ImageBuilder doesn't include GCC, thus compiling the loader in image/Makefile currently breaks ImageBuilder.
See
https://dev.openwrt.org/browser/trunk/target/linux/ar71xx/image/Makefile#L1061

And have a look at other lzma-loader targets to see how to do this properly.

Attachments (0)

Change History (4)

comment:1 Changed 3 years ago by mschiffer

Thanks for the report, I'll have a look at it.

comment:2 Changed 3 years ago by ufo@…

still not working with openwrt cc-rc1

mips-openwrt-linux-uclibc-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=mips32r2 -Wa,-32 -Wa,-march=mips32r2 -Wa,-mips32r2 -Wa,--trap -D_LZMA_PROB32 -DLZMA_WRAPPER=1 -DLOADADDR=0x80060000 -DCONFIG_BOARD_CPE210_220_510_520 -D__ASSEMBLY__ -c -o head.o head.S
make[5]: mips-openwrt-linux-uclibc-gcc: Command not found
make[5]: *** [head.o] Error 127
make[5]: Leaving directory `/home/battlemesh/meshkit/buildroots/cc_ar_20150531rc1/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/lzma-loader'
make[4]: *** [loader-compile] Error 2

comment:3 Changed 3 years ago by mschiffer

Nope, my patch was applied just a few days ago (even though I posted it ~4 weeks ago), so you'll have to use the current snapshots to make it work.

comment:4 Changed 3 years ago by ufo@…

yes nice, it works for me with openwrt-trunk..
so also with freifunk-meshkit :-)

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.