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

/System/Library/Extensions/Proxmark3.kext/Contents: Read-only file system #922

Open
ghost opened this issue Mar 19, 2020 · 17 comments
Open

Comments

@ghost
Copy link

ghost commented Mar 19, 2020

While I try to use sudo make install_kext
There is an error.

MacOS 10.15.3

mkdir -p /System/Library/Extensions/Proxmark3.kext/Contents
mkdir: /System/Library/Extensions/Proxmark3.kext/Contents: Read-only file system
make: *** [Makefile:39: install_kext] Error 1

image

@pwpiwi
Copy link
Contributor

pwpiwi commented Mar 19, 2020

You are walking on ancient grounds 😃. I don't own or know much about MacOS. If this compares to Linux then probably the respective filesystem needs to be remounted read/write before make install_kext. However, I would assume that there is a more standard way to add Extensions...

@pwpiwi
Copy link
Contributor

pwpiwi commented Mar 19, 2020

Please try Pull Request #923 which should do the remount when running 'sudo make kext_install'

@iceman1001
Copy link
Member

...like Piwi said, why are you using the hid-flasher ? We are talking pre-2013 now.

@ghost
Copy link
Author

ghost commented Mar 19, 2020

while, the firmware of my proxmark3 is quite old.... I just follow the instructions to upgrade....
image

Please try Pull Request #923 which should do the remount when running 'sudo make kext_install'

Thanks, Let me try.

@ghost
Copy link
Author

ghost commented Mar 19, 2020

...like Piwi said, why are you using the hid-flasher ? We are talking pre-2013 now.

It seems like it still can't work. Maybe to make /system unchangeable is the new feature of Catalina to protect the MacOS ?
image

@ghost
Copy link
Author

ghost commented Mar 19, 2020

oh, I solved this problem by switching system.
Thanks

@ghost ghost closed this as completed Mar 19, 2020
@pwpiwi
Copy link
Contributor

pwpiwi commented Mar 21, 2020

Switching the system is not really a fix. 😃

I have added the root directory to the mount command. If you don't mind, can you please sudo make install_kext again. Some users may benefit in the future.

@pwpiwi pwpiwi reopened this Mar 21, 2020
@alfonsrv
Copy link

alfonsrv commented Jun 15, 2020

Still does not work, same error. Upgrade wiki for macOS seems outdated.
Using the CDC Flasher works, however I still get an error when trying to use pm3-flash-all

After upgrade, nothing seems to have changed.

alfons@NullX client % system_profiler SPUSBDataType

        proxmark3:

          Product ID: 0x4b8f
          Vendor ID: 0x9ac4
          Version: 0.01
          Speed: Up to 12 Mb/s
          Manufacturer: proxmark.org
          Location ID: 0x14400000 / 40
          Current Available (mA): 500
          Current Required (mA): 150
          Extra Operating Current (mA): 0

pm3-flash-all output:

alfons@NullX client % pm3-flash-all
[=] Session log /Users/alfons/.proxmark3/logs/log_20200615.txt
[+] About to use the following files:
[+]    /usr/local/Cellar/proxmark3/HEAD-d750735/bin/../share/proxmark3/firmware/bootrom.elf
[+]    /usr/local/Cellar/proxmark3/HEAD-d750735/bin/../share/proxmark3/firmware/fullimage.elf
[+] Waiting for Proxmark3 to appear on /dev/tty.usbmodem14401
 🕑  59 found
[+] Entering bootloader...
[+] (Press and release the button only to abort)
[+] Waiting for Proxmark3 to appear on /dev/tty.usbmodem14401
 🕘  54 found
[!!] 🚨 ====================== OBS ! ===========================================
[!!] 🚨 Note: Your bootloader does not understand the new CMD_BL_VERSION command
[!!] 🚨 It is recommended that you first update your bootloader alone,
[!!] 🚨 reboot the Proxmark3 then only update the main firmware

[=] Available memory on this board: UNKNOWN

[!!] 🚨 ====================== OBS ! ======================================
[!!] 🚨 Note: Your bootloader does not understand the new CHIP_INFO command
[!!] 🚨 It is recommended that you first update your bootloader alone,
[!!] 🚨 reboot the Proxmark3 then only update the main firmware

[=] Permitted flash range: 0x00100000-0x00140000
[+] Loading ELF file /usr/local/Cellar/proxmark3/HEAD-d750735/bin/../share/proxmark3/firmware/bootrom.elf
[+] Loading usable ELF segments:
[+]    0: V 0x00100000 P 0x00100000 (0x00000200->0x00000200) [R X] @0x94
[+]    1: V 0x00200000 P 0x00100200 (0x00000d50->0x00000d50) [R X] @0x298

[+] Loading ELF file /usr/local/Cellar/proxmark3/HEAD-d750735/bin/../share/proxmark3/firmware/fullimage.elf
[+] Loading usable ELF segments:
[+]    0: V 0x00102000 P 0x00102000 (0x0003ca58->0x0003ca58) [R X] @0x94
[+]    1: V 0x00200000 P 0x0013ea58 (0x00001968->0x00001968) [RW ] @0x3caec
[!!] 🚨 Error: PHDR is not contained in Flash
[+] All done

@pwpiwi
Copy link
Contributor

pwpiwi commented Jun 15, 2020

You are obviously using the RRG repository and therefore should report issues there: https://github.com/RfidResearchGroup/proxmark3/issues

@alfonsrv
Copy link

alfonsrv commented Jun 15, 2020

No. I tried using the RRG repository before using the pm3-flash-all command and – after I got the error my board would not support the commands yet, I thought I would have to update the bootloader manually before I could use the more "automatic" update process.
So I resorted to the Proxmark/proxmark3 repo and followed the macOS steps, which puts me in the position to confirm the kext issue is still very much present under macOS 10.15.5. Ignoring the HID flasher and the connected kext, and instead using the client/flasher worked though.

Afterwards I ran into an issue where the proxmark3 cli client would no longer talk to my Proxmark, before I read somewhere that the clients are not intercompatible with the firmwares of the individual repos or even subversions anymore. So this issue was ultimately resolved by manually compiling the firmware of the RRG repository instead (which only works for the RDV3 if you edit some Makefile.sample) and manually flashing their image instead.
Besides the discrepancies with macOS Catalina clearly not being supported properly in the process outlined in the wiki of this repository, I must say it is somewhat confusing to have no note anywhere how much RRG and this repo have formed a defacto two-world system, other than on some nested sub-pages and forum posts.

@iceman1001
Copy link
Member

....
if you get that message....
you should flash bootrom first like the instructions says.

./pm3-flash-bootrom
./pm3-flash-fullimage

Its the normal way to switch to RRG/Iceman repo.

@pwpiwi
Copy link
Contributor

pwpiwi commented Jun 15, 2020

which puts me in the position to confirm the kext issue is still very much present under macOS 10.15.5

Did you apply the changes in https://github.com/Proxmark/proxmark3/pull/923/files before running sudo make install_kext?

@alfonsrv
Copy link

Did you apply the changes in https://github.com/Proxmark/proxmark3/pull/923/files before running sudo make install_kext?

Sorry, thought it was already merged. I did not.

@pwpiwi
Copy link
Contributor

pwpiwi commented Jun 15, 2020

No it isn't merged. I don't have access to a MacOS machine and I don't like to merge untested changes.

@alfonsrv
Copy link

Probably a setup Virtualbox image out there. But I'll try the code on a lab Hackintosh on Wednesday and will report back.

@mattop4d
Copy link

Came here to confirm that the fix in the PR is not working. I got this error:

$ sudo make install_kext

spctl --master-disable
mount -uw /
mount_apfs: volume could not be mounted: Operation not permitted
mount: / failed with 77
make: *** [install_kext] Error 77

Tested on a Macbook Pro with MacOS Catalina 10.15.6

@pwpiwi
Copy link
Contributor

pwpiwi commented Oct 20, 2020

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

4 participants