seemoo-lab / mobisys2018_nexmon_channel_state_information_extractor

Example project for extracting channel state information of up to 80 MHz wide 802.11ac Wi-Fi transmissions using the BCM4339 Wi-Fi chip of Nexus 5 smartphones.
Other
99 stars 39 forks source link

An error about 'ucode' #6

Closed zxy110 closed 5 years ago

zxy110 commented 6 years ago

Hello, I've met linking problems when I run make install-firmware, which said

/home/zxy/nexmon/buildtools/gcc-arm-none-eabi-5_4-2016q2-linux-x86/bin/arm-none-eabi-ld: gen/patch.elf section '.text.ucode' will not fit in region 'ucode' /home/zxy/nexmon/buildtools/gcc-arm-none-eabi-5_4-2016q2-linux-x86/bin/arm-none-eabi-ld: region 'ucode' overflowed by 771 bytes

I haven't find where the ucode is set. The cmd content is

/home/zxy/nexmon/patches/bcm4339/6_37_34_43/mobisys2018_nexmon_channel_state_information_extractor# make install-firmware

      ###########   ###########   ##########    ##########           
     ############  ############  ############  ############          
     ##            ##            ##   ##   ##  ##        ##          
     ##            ##            ##   ##   ##  ##        ##          
     ###########   ####  ######  ##   ##   ##  ##    ######          
      ###########  ####  #       ##   ##   ##  ##    #    #          
               ##  ##    ######  ##   ##   ##  ##    #    #          
               ##  ##    #       ##   ##   ##  ##    #    #          
     ############  ##### ######  ##   ##   ##  ##### ######          
     ###########    ###########  ##   ##   ##   ##########           

        S E C U R E   M O B I L E   N E T W O R K I N G               

                           presents:                                  

          # ###   ###  #   # # ###  ###   ###  # ###                  
          ##   # #   #  # #  ##   ##   # #   # ##   #                 
          #    # #####   #   #    #    # #   # #    #                 
          #    # #      # #  #    #    # #   # #    #                 
          #    #  #### #   # #    #    #  ###  #    #                 

            The C-based Firmware Patching Framework                   

                       !!! WARNING !!!                                
Our software may damage your hardware and may void your hardware’s    
 warranty! You use our tools at your own risk and responsibility      

COLLECTING STATISTICS read /home/liang/zxy/nexmon/STATISTICS.md for more information COMPILING src/version.c => obj/version.o (details: log/compiler.log) PREPARING gen/nexmon.pre => gen/nexmon2.pre 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) Makefile:114: recipe for target 'gen/patch.elf' failed make: *** [gen/patch.elf] Error 1

zxy110 commented 6 years ago

HI,

I've solved this problem, I just go to the gen/memory.ld and change the value of ucode form 0x00006ec4 to 0x00007ec4

Jenny Doe