Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation fails #3

Open
drasko opened this issue May 14, 2017 · 5 comments
Open

Compilation fails #3

drasko opened this issue May 14, 2017 · 5 comments

Comments

@drasko
Copy link

drasko commented May 14, 2017

drasko@Lenin:~/rtl8710/RTL00MP3$ make
make[1]: Entering directory '/home/drasko/rtl8710/RTL00MP3'
===========================================================
Compile (build)
===========================================================
Link (build)
/home/drasko/toolchain/mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld: cannot open linker script file rlx8195A-symbol-v04-img2.ld: No such file or directory
collect2: error: ld returned 1 exit status
RTL00_SDKV35a/sdkbuild.mk:48: recipe for target 'application' failed
make[1]: *** [application] Error 1
make[1]: Leaving directory '/home/drasko/rtl8710/RTL00MP3'
Makefile:8: recipe for target 'ram_all' failed
make: *** [ram_all] Error 2
@drasko
Copy link
Author

drasko commented May 14, 2017

Applying the patch here: https://github.com/pvvx/RTL00MP3/pull/2/files helped, but now I have an other error:

make[1]: Entering directory '/home/drasko/rtl8710/RTL00MP3'
===========================================================
Compile (build)
===========================================================
Link (build)
/home/drasko/toolchain/mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld: Error rom-bios-boot code & data!
collect2: error: ld returned 1 exit status
RTL00_SDKV35a/sdkbuild.mk:48: recipe for target 'application' failed
make[1]: *** [application] Error 1
make[1]: Leaving directory '/home/drasko/rtl8710/RTL00MP3'
Makefile:8: recipe for target 'ram_all' failed
make: *** [ram_all] Error 2

@tidklaas
Copy link

Your toolchain is too old. GCC 4.8 produces binaries that are too big to fit into the flash image. Try using the current GCC 5.0 release from launchpad.

@drasko
Copy link
Author

drasko commented May 14, 2017

There is another problem now:

Link (build)
arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -g -Os -nostartfiles -nostdlib -Wl,--gc-sections -Wl,--cref -Wl,--entry=Reset_Handler -Wl,--no-enum-size-warning -Wl,--no-wchar-size-warning -Wl,-nostdlib -Wl,-Map=build/obj/build.map  -o build/obj/build.axf @build/obj/obj_list.lst -LRTL00_SDKV35a/component/soc/realtek/8195a/misc/bsp/lib/common/GCC -l_platform_new -l_wlan -l_p2p -l_wps -l_websocket -l_sdcard -l_xmodem -l_mdns -Trlx8195A-symbol-v04-img2.ld
/usr/lib/gcc/arm-none-eabi/5.4.1/../../../arm-none-eabi/bin/ld: section .romheap VMA [0000000010002400,0000000010002fff] overlaps section .ram_image1.text VMA [0000000010000bc8,0000000010002be3]
collect2: error: ld returned 1 exit status
RTL00_SDKV35a/sdkbuild.mk:48: recipe for target 'application' failed
make[1]: *** [application] Error 1
make[1]: Leaving directory '/home/drasko/rtl8710/RTL00MP3'
Makefile:8: recipe for target 'ram_all' failed
make: *** [ram_all] Error 2

@drasko
Copy link
Author

drasko commented May 14, 2017

Hmmm... it was due to the Debian's arm-none-eabi-gcc. I took one from Launchpad, now compilation works, but I still have the problem of IAR pick tool referenced here: #5

@tidklaas
Copy link

The binaries have been checked in with the wrong file modes. You need to update the permissions to make them executable. chmod ug+x ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants