RfidResearchGroup / homebrew-proxmark3

Homebrew tap containing proxmark3 software/firmware
MIT License
44 stars 19 forks source link

Brew install --with-blueshark not work #17

Closed dark-lbp closed 3 years ago

dark-lbp commented 3 years ago

OS: MacOS 10.14.6

Install with brew install --HEAD --with-blueshark proxmark3

āžœ  ~ brew install --HEAD --with-blueshark proxmark3
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
==> Updated Casks
unity-android-support-for-editor

==> Installing proxmark3 from rfidresearchgroup/proxmark3
==> Cloning https://github.com/RfidResearchGroup/proxmark3.git
Updating /Users/xxx/Library/Caches/Homebrew/proxmark3--git
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at 53c7e47e fix:  hf iclass restore - now uses NG and better reporting and works :)
==> make clean
==> make all PLATFORM=PM3RDV4 PLATFORM_EXTRAS=BTADDON
==> make install PREFIX=/usr/local/Cellar/proxmark3/HEAD-53c7e47 PLATFORM=PM3RDV4
==> Install success!
==> The latest bootloader and firmware binaries are ready and waiting in the current homebrew Cellar within share/firmwa
šŸŗ  /usr/local/Cellar/proxmark3/HEAD-53c7e47: 644 files, 12.3MB, built in 1 minute 31 seconds

After pm3-flash-all BT add-on is absent

[ Proxmark3 RFID instrument ]

 [ CLIENT ]
  client: RRG/Iceman/master/53c7e47e 2020-10-15 10:51:56
  compiled with Clang/LLVM 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.46.4) OS:OSX ARCH:x86_64

 [ PROXMARK3 ]
  firmware.........................PM3RDV4
  external flash...................present
  smartcard reader.................present
  FPC USART for BT add-on..........absent

 [ ARM ]
  bootrom: RRG/Iceman/master/53c7e47e 2020-10-15 10:52:44
       os: RRG/Iceman/master/53c7e47e 2020-10-15 10:52:56
  compiled with GCC 9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599]

 [ FPGA ] 
  LF image built for 2s30vq100 on 2020-07-08 at 23: 8: 7
  HF image built for 2s30vq100 on 2020-07-08 at 23: 8:19
  HF FeliCa image built for 2s30vq100 on 2020-07-08 at 23: 8:30

 [ Hardware ]
  --= uC: AT91SAM7S512 Rev B
  --= Embedded Processor: ARM7TDMI
  --= Nonvolatile Program Memory Size: 512K bytes, Used: 294704 bytes (56%) Free: 229584 bytes (44%)
  --= Second Nonvolatile Program Memory Size: None
  --= Internal SRAM Size: 64K bytes
  --= Architecture Identifier: AT91SAM7Sxx Series
  --= Nonvolatile Program Memory Type: Embedded Flash Memory

[usb] pm3 --> 

These brew build command not enable the BTADDON

==> make clean
==> make all PLATFORM=PM3RDV4 PLATFORM_EXTRAS=BTADDON
==> make install PREFIX=/usr/local/Cellar/proxmark3/HEAD-53c7e47 PLATFORM=PM3RDV4

Add PLATFORM_EXTRAS=BTADDON to make install will enable the BTADDON

==> make clean
==> make all PLATFORM=PM3RDV4 PLATFORM_EXTRAS=BTADDON
==> make install PREFIX=/usr/local/Cellar/proxmark3/HEAD-53c7e47 PLATFORM=PM3RDV4 PLATFORM_EXTRAS=BTADDON

This is the edited Formula

class Proxmark3 < Formula
  desc "RRG/Iceman Proxmark3 client, CDC flasher and firmware bundle"
  homepage "http://www.proxmark.org/"
  url "https://github.com/RfidResearchGroup/proxmark3/archive/v4.9237.tar.gz"
  sha256 "db93c2d3b9b7f477aca5628ed0906d9dba9c1999080452b24c601f38ab5b5226"
  head do
    if ENV.has_key?('HOMEBREW_TRAVIS_COMMIT')
      url "https://github.com/RfidResearchGroup/proxmark3.git", :branch => "#{ENV['HOMEBREW_TRAVIS_BRANCH']}", :revision => "#{ENV['HOMEBREW_TRAVIS_COMMIT']}"
    else
      url "https://github.com/RfidResearchGroup/proxmark3.git"
    end
  end

  depends_on "readline"
  depends_on "pkg-config" => :build
  depends_on "qt5"
  depends_on "RfidResearchGroup/proxmark3/arm-none-eabi-gcc" => :build

  option "with-blueshark", "Enable Blueshark (BT Addon) support"

  def install
    ENV.deparallelize

    if not ENV.has_key?('HOMEBREW_PROXMARK3_PLATFORM')
      ENV['HOMEBREW_PROXMARK3_PLATFORM'] = 'PM3RDV4'
    end

    system "make", "clean"
    if build.with? "blueshark"
      system "make", "all", "PLATFORM=#{ENV['HOMEBREW_PROXMARK3_PLATFORM']}", "PLATFORM_EXTRAS=BTADDON"
      system "make", "install", "PREFIX=#{prefix}", "PLATFORM=#{ENV['HOMEBREW_PROXMARK3_PLATFORM']}", "PLATFORM_EXTRAS=BTADDON"
    else
      system "make", "all", "PLATFORM=#{ENV['HOMEBREW_PROXMARK3_PLATFORM']}"
      system "make", "install", "PREFIX=#{prefix}", "PLATFORM=#{ENV['HOMEBREW_PROXMARK3_PLATFORM']}"
    end

    ohai "Install success!"
    ohai "The latest bootloader and firmware binaries are ready and waiting in the current homebrew Cellar within share/firmware."
  end

  test do
    system "proxmark3", "-h"
  end
end

Reinstall the Proxmark3 will enable BT add-on

āžœ  Cellar brew install --HEAD --with-blueshark proxmark3
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> New Formulae
cvs-fast-export
==> Updated Formulae
Updated 12 formulae.

==> Installing proxmark3 from rfidresearchgroup/proxmark3
==> Cloning https://github.com/RfidResearchGroup/proxmark3.git
Updating /Users/xxx/Library/Caches/Homebrew/proxmark3--git
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at 53c7e47e fix:  hf iclass restore - now uses NG and better reporting and works :)
==> make clean
==> make all PLATFORM=PM3RDV4 PLATFORM_EXTRAS=BTADDON
==> make install PREFIX=/usr/local/Cellar/proxmark3/HEAD-53c7e47 PLATFORM=PM3RDV4 PLATFORM_EXTRAS=BTADDON
==> Install success!
==> The latest bootloader and firmware binaries are ready and waiting in the current homebrew Cellar within share/firmwa
šŸŗ  /usr/local/Cellar/proxmark3/HEAD-53c7e47: 644 files, 12.4MB, built in 1 minute 19 seconds

[ Proxmark3 RFID instrument ]

 [ CLIENT ]
  client: RRG/Iceman/master/53c7e47e 2020-10-15 15:43:29
  compiled with Clang/LLVM 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.46.4) OS:OSX ARCH:x86_64

 [ PROXMARK3 ]
  firmware.........................PM3RDV4
  external flash...................present
  smartcard reader.................present
  FPC USART for BT add-on..........present

 [ ARM ]
  bootrom: RRG/Iceman/master/53c7e47e 2020-10-15 15:43:59
       os: RRG/Iceman/master/53c7e47e 2020-10-15 15:44:14
  compiled with GCC 9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599]

 [ FPGA ] 
  LF image built for 2s30vq100 on 2020-07-08 at 23: 8: 7
  HF image built for 2s30vq100 on 2020-07-08 at 23: 8:19
  HF FeliCa image built for 2s30vq100 on 2020-07-08 at 23: 8:30

 [ Hardware ]
  --= uC: AT91SAM7S512 Rev B
  --= Embedded Processor: ARM7TDMI
  --= Nonvolatile Program Memory Size: 512K bytes, Used: 296400 bytes (57%) Free: 227888 bytes (43%)
  --= Second Nonvolatile Program Memory Size: None
  --= Internal SRAM Size: 64K bytes
  --= Architecture Identifier: AT91SAM7Sxx Series
  --= Nonvolatile Program Memory Type: Embedded Flash Memory

[usb] pm3 --> 
iceman1001 commented 3 years ago

Thanks to @tcprst this should be fixed.

Closing