-
Notifications
You must be signed in to change notification settings - Fork 454
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
4.14 - Rpi 3B+ Compilation - Linker Errors #206
Comments
Take a look into log/linker.err and show me your last lines. I might have
forgotten to add commit something.
mlinton <notifications@github.com> schrieb am Mo., 9. Apr. 2018, 01:24:
… Trying to build the patch for the 3B+ on a 3B+ using raspbian
Uname -anr:
Linux raspberrypi 4.14.30-v7+ #1102 SMP Mon Mar 26 16:45:49 BST 2018
armv7l GNU/Linux
Error:
Attempting to Make from the ./nexmon/patches/bcm43455c0/7_45_154/nexmon:
COLLECTING STATISTICS read /opt/nexmon/STATISTICS.md for more information
COMPILING src/injection.c => obj/injection.o (details: log/compiler.log)
COMPILING src/patch.c => obj/patch.o (details: log/compiler.log)
COMPILING src/version.c => obj/version.o (details: log/compiler.log)
COMPILING src/sendframe.c => obj/sendframe.o (details: log/compiler.log)
COMPILING src/monitormode.c => obj/monitormode.o (details:
log/compiler.log)
COPYING UCODE /opt/nexmon/firmwares/bcm43455c0/7_45_154/ucode.bin =>
gen/ucode.bin
COMPRESSING UCODE gen/ucode.bin => gen/ucode_compressed.bin
GENERATING C FILE gen/ucode_compressed.bin => src/ucode_compressed.c
COMPILING src/ucode_compressed.c => obj/ucode_compressed.o (details:
log/compiler.log)
COMPILING /opt/nexmon/patches/common/wrapper.c => obj/wrapper.o (details:
log/compiler.log)
COMPILING /opt/nexmon/patches/common/argprintf.c => obj/argprintf.o
(details: log/compiler.log)
COMPILING /opt/nexmon/patches/common/helper.c => obj/helper.o (details:
log/compiler.log)
COMPILING /opt/nexmon/patches/common/udptunnel.c => obj/udptunnel.o
(details: log/compiler.log)
COMPILING /opt/nexmon/patches/common/ucode_compression_code.c =>
obj/ucode_compression_code.o (details: log/compiler.log)
COMPILING /opt/nexmon/patches/common/objmem.c => obj/objmem.o (details:
log/compiler.log)
COMPILING /opt/nexmon/patches/common/securitycookie.c =>
obj/securitycookie.o (details: log/compiler.log)
COMPILING /opt/nexmon/patches/common/radiotap.c => obj/radiotap.o
(details: log/compiler.log)
COMPILING /opt/nexmon/firmwares/bcm43455c0/7_45_154/flashpatches.c =>
obj/flashpatches.o (details: log/compiler.log)
GENERATING LINKER FILE gen/nexmon.pre => gen/nexmon.ld
GENERATING LINKER FILE gen/nexmon.pre => gen/flashpatches.ld
GENERATING LINKER FILE gen/memory.ld
LINKING OBJECTS => gen/patch.elf (details: log/linker.log, log/linker.err)
Makefile:112: recipe for target 'gen/patch.elf' failed
make: *** [gen/patch.elf] Error 1
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#206>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ALP_7iDtDjutsXFNbJVZjYlGiOooN1jpks5tmpwQgaJpZM4TLwdP>
.
|
same problem here.. last 10 lines on linker.err /home/pi/nexmon/buildtools/gcc-arm-none-eabi-5_4-2016q2-linux-armv7l/bin/arm-none-eabi-ld: Removing unused section '.bss.securitycookie' in file 'obj/securitycookie.o' |
The RPi 3B+ has a different WiFi chip. That may be the problem. |
I'm also having this problem with the same specs and error file output. Seems like the 3B+ uses 43455, so OP is in the correct place?
Taken from: This blog |
`.text.wlc_sendctl' is already available in the wrapper.c file. So it should have worked for you. Btw. I also updated the driver version for the Rpi3 and 0W to version 4.14. |
I tested the new version, but I get the following errors: COLLECTING STATISTICS read /home/pi/nexmon/STATISTICS.md for more information When I am checking my Raspberrypi (3B+), I have pi@raspberrypi:/lib/modules $ uname -r Do you have any suggestion how to fix these errors? |
did you reboot after installing the new kernel?
…On Tue, Apr 10, 2018 at 12:31 AM, arashebadi ***@***.***> wrote:
I tested the new version, but I get the following errors:
COLLECTING STATISTICS read /home/pi/nexmon/STATISTICS.md for more
information
COMPILING src/version.c => obj/version.o (details: log/compiler.log)
GENERATING LINKER FILE gen/nexmon.pre => gen/nexmon.ld
GENERATING LINKER FILE gen/nexmon.pre => gen/flashpatches.ld
LINKING OBJECTS => gen/patch.elf (details: log/linker.log, log/linker.err)
GENERATING MAKE FILE gen/nexmon.pre => gen/nexmon.mk
GENERATING MAKE FILE gen/nexmon.pre => gen/flashpatches.mk
APPLYING FLASHPATCHES gen/flashpatches.mk => brcmfmac43455-sdio.bin
(details: log/flashpatches.log)
APPLYING PATCHES gen/nexmon.mk => brcmfmac43455-sdio.bin (details:
log/patches.log)
BUILDING DRIVER for kernel 4.9 brcmfmac_4.9.y-nexmon/brcmfmac.ko
(details: log/driver.log)
make[1]: *** /lib/modules/4.9.80-v7+/build: No such file or directory.
Stop.
Makefile:45: recipe for target 'brcmfmac.ko' failed
make: *** [brcmfmac.ko] Error 2
When I am checking my Raspberrypi (3B+), I have
***@***.***:/lib/modules $ uname -r
4.9.80-v7+
***@***.***:/lib/modules $ ls
4.14.30+ 4.14.30-v7+
***@***.***:/lib/modules $
Do you have any suggestion how to fix these errors?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#206 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ALP_7tW7dMMe-Qmm6HymQf3ACWAPAxTMks5tm-E_gaJpZM4TLwdP>
.
--
Matthias Schulz
Secure Mobile Networking Lab - SEEMOO
Email: matthias.schulz@seemoo.tu-darmstadt.de
Web: http://www.seemoo.de/mschulz
Phone (new): +49 6151 16-25478 Fax: +49 6151 16-25471
Department of Computer Science
Center for Advanced Security Research Darmstadt
Technische Universität Darmstadt
Mornewegstr. 32 (Office 4.2.10, Building S4/14)
D-64293 Darmstadt, Germany
|
new version works perfect on Rpi3b+ |
@matthiasseemoo after rebooting (uname -r is 4.14.30-v7+), but I get the following error: root@raspberrypi:/home/pi/nexmon/patches/bcm43455c0/7_45_154/nexmon# make Would you please help me how to fix this? |
In the root directory of the repository: cd nexmon i think you skipped this part :) |
@kwpi No I didn't skip that part of installation. |
you need to type it again after the reboot.. |
@kwpi Thanks a lot, I think it is working now! But I am still confused, I think other people also report that wlan0 can be seen by ifconfig but it can be seen by iwconfig. Is there any solution which can add wlan0 to list of ifconfig? or maybe add it as mon0? My final goal is to use Scapy to send control WiFi frames by RPi in 5GHz channels, but right now Scapy cannot use wlna0 :( Do you have any suggestion for me? |
Follow the readme step by step.
arashebadi <notifications@github.com> schrieb am Di., 10. Apr. 2018, 02:14:
… @matthiasseemoo <https://github.com/matthiasseemoo> after rebooting
(uname -r is 4.14.30-v7+), but I get the following error:
***@***.***:/home/pi/nexmon/patches/bcm43455c0/7_45_154/nexmon# make
Makefile:4: /firmwares/bcm43455c0/7_45_154/definitions.mk: No such file
or directory
make: *** No rule to make target '/firmwares/bcm43455c0/7_45_154/
definitions.mk'. Stop.
Would you please help me how to fix this?
Thanks
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#206 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ALP_7gHZi6GC7rtHWNXgme4FxLtioLqcks5tm_lygaJpZM4TLwdP>
.
|
Dear @matthiasseemoo, I am trying but I am jumping from one error to another. First question: Is RPi 3B+ uses bcm43455c0 or bcm43430a1? Second question: How I can fix the following problem? pi@raspberrypi:~ $ sudo iw phy Thanks a lot! |
I get the same result after following the readme step by step on the RPI3b+, I'll try it again to confirm. |
Ok so rebuilt the RPI3B+ from scratch, updated the kernel to 1.14.34-v7+, and ran through the installation instructions again fresh. No errors now while building the firmware, followed the instructions to get the driver to load on reboot, rebooted and added the monitor interface with the "iw phy phy0 interface add mon0 type monitor" as root. This successfully added the interface mon0. Attempted to monitor the interface and I get an "SIOCSIFFLAGS: Operation not possible due to RF-kill" error, unblocked it with "sudo rfkill unblock all" and it now is monitoring as expected. Still not sure why there were errors in the first place, but this is now working well. UPDATE: ok so it's half working, but the interface is only able to record probe requests and isn't seeing any of the other data at all. Here is a quick extract from the dmesg log.
|
Following instruction from readme, I was able to make monitor mode works on RPI3+, good job Matthias! |
I know this isn't the place and im sure ppl may get annoyed by me but im at the ends of my rope. |
genuine us moment |
im getting this exact error, but in a different context, on an amd64 version, and trying to make firmware for my phone, yet it just returns this error. /home/cole/nexmon/buildtools/gcc-arm-none-eabi-5_4-2016q2-linux-x86/bin/arm-none-eabi-ld: Removing unused section '.text.tinflate_read_objmemx' in file 'obj/ucode_compression_code.o' /home/cole/nexmon/buildtools/gcc-arm-none-eabi-5_4-2016q2-linux-x86/bin/arm-none-eabi-ld: Removing unused section '.text.wlc_ucode_write_compressed_args' in file 'obj/ucode_compression_code.o' /home/cole/nexmon/buildtools/gcc-arm-none-eabi-5_4-2016q2-linux-x86/bin/arm-none-eabi-ld: Removing unused section '.text.wlc_ucodex_write_compressed_args' in file 'obj/ucode_compression_code.o' /home/cole/nexmon/buildtools/gcc-arm-none-eabi-5_4-2016q2-linux-x86/bin/arm-none-eabi-ld: Removing unused section '.data.vasip_bin_len' in file 'obj/vasip.o' /home/cole/nexmon/buildtools/gcc-arm-none-eabi-5_4-2016q2-linux-x86/bin/arm-none-eabi-ld: error: no memory region specified for loadable section `.text.printf' |
Trying to build the patch for the 3B+ on a 3B+ using raspbian
Uname -anr:
Linux raspberrypi 4.14.30-v7+ #1102 SMP Mon Mar 26 16:45:49 BST 2018 armv7l GNU/Linux
Error:
Attempting to Make from the ./nexmon/patches/bcm43455c0/7_45_154/nexmon:
COLLECTING STATISTICS read /opt/nexmon/STATISTICS.md for more information
COMPILING src/injection.c => obj/injection.o (details: log/compiler.log)
COMPILING src/patch.c => obj/patch.o (details: log/compiler.log)
COMPILING src/version.c => obj/version.o (details: log/compiler.log)
COMPILING src/sendframe.c => obj/sendframe.o (details: log/compiler.log)
COMPILING src/monitormode.c => obj/monitormode.o (details: log/compiler.log)
COPYING UCODE /opt/nexmon/firmwares/bcm43455c0/7_45_154/ucode.bin => gen/ucode.bin
COMPRESSING UCODE gen/ucode.bin => gen/ucode_compressed.bin
GENERATING C FILE gen/ucode_compressed.bin => src/ucode_compressed.c
COMPILING src/ucode_compressed.c => obj/ucode_compressed.o (details: log/compiler.log)
COMPILING /opt/nexmon/patches/common/wrapper.c => obj/wrapper.o (details: log/compiler.log)
COMPILING /opt/nexmon/patches/common/argprintf.c => obj/argprintf.o (details: log/compiler.log)
COMPILING /opt/nexmon/patches/common/helper.c => obj/helper.o (details: log/compiler.log)
COMPILING /opt/nexmon/patches/common/udptunnel.c => obj/udptunnel.o (details: log/compiler.log)
COMPILING /opt/nexmon/patches/common/ucode_compression_code.c => obj/ucode_compression_code.o (details: log/compiler.log)
COMPILING /opt/nexmon/patches/common/objmem.c => obj/objmem.o (details: log/compiler.log)
COMPILING /opt/nexmon/patches/common/securitycookie.c => obj/securitycookie.o (details: log/compiler.log)
COMPILING /opt/nexmon/patches/common/radiotap.c => obj/radiotap.o (details: log/compiler.log)
COMPILING /opt/nexmon/firmwares/bcm43455c0/7_45_154/flashpatches.c => obj/flashpatches.o (details: log/compiler.log)
GENERATING LINKER FILE gen/nexmon.pre => gen/nexmon.ld
GENERATING LINKER FILE gen/nexmon.pre => gen/flashpatches.ld
GENERATING LINKER FILE gen/memory.ld
LINKING OBJECTS => gen/patch.elf (details: log/linker.log, log/linker.err)
Makefile:112: recipe for target 'gen/patch.elf' failed
make: *** [gen/patch.elf] Error 1
The text was updated successfully, but these errors were encountered: