-
Notifications
You must be signed in to change notification settings - Fork 84
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
macOS support? #5
Comments
I have no experience with osx/bsd, but I'm sure it's possible. If the bsd api is similar to linux then probably won't take much adapting, but if it's completely different then it'd need a rewrite. Have you tried to compile it and see how far it gets? |
I've not tried it, but I will soon. I confirmed my laptop can change the CID of my EVO card using Ubuntu so I'll try to figure out how to do it with only MacOS. |
To be able to compile on MacOS i need to replace #include <linux/types.h> in /jni/ioctl.h with: #ifdef __linux__
# include "linux/types.h"
#else
# include <stdint.h>
typedef uint64_t __u64;
typedef uint32_t __u32;
typedef int32_t __s32;
typedef uint16_t __u16;
typedef uint8_t __u8;
#endif |
It works, thanks. |
could somebody give a little how-to compile this on macos 10.14 or send a link to the compiled uploaded version? |
Sharing the stuff (binaries) for Mac OS X would be great |
Here's the macOS binary (built just now, untested on any SD cards). |
^thanks a lot for this share and the quick answer and how to. best regards. |
Did anybody use the above build successfully on macOS? |
hello gingerbeardman cd /Users/Shared/Downloads/ ./evoplus_cid /dev/disk2/disk2s1 09415041462053460219f9cf37014101 ./evoplus_cid /dev/disk2/disk2s1 09415041462053460219f9cf37014101 ./evoplus_cid /Volumes/Untitled 09415041462053460219f9cf37014101 |
@Tetonne you need to unmount the device first (using terminal or disk utility) Unmount is like a half eject Then use the /dev device that matches your card |
Thanks gingerbeardman for your help unfortunately same result. terminal.app give me : i unmount the volume Untitled in diskutil.app then try again tetonne@iMac cid % ./evoplus_cid /dev/disk2/disk2s1 09415041462053460219f9cf37014101 |
OK, i recommend using a USB stick with Ubuntu Linux on it. |
@Tetonne can you confirm you are using an internal SD card reader connected to PCIE (USB card readers will not work) |
^thanks again gingerbeardman. Im' using it on my iMac i'll try to find a linux to solve it thanks again and thanks for this stuff and all other you provide :-) related to brew |
I found how to overpass this problem:
|
I got an error: |
@jdelatorre72 did you read the error?
Also, confirm you are using an internal SD card slot not a USB SD card reader. |
It's a microSD with adaptor |
I think my mac sd reader goes through USB |
@jdelatorre72 it needs to be an internal SD slot (like in a MacBook Pro) for technical reasons. |
It is so, but I guessed it could go by usb bus because of this error. I purchased a new sd card to test again. If I succeed I'll let you notice. |
That computer should be OK. There is no need to guess what SD hardware you have. You can check the type of the SD card hardware by checking System Information (PCIE hardware will show in card reader with speed measured in GT/s) |
Well, it looks like USB:
|
Interesting! Sorry to read that, you'll need to find a compatible computer with PCIE SD slot. |
Grrrrr, I’ve started to try on a netbook until I saw it’s also connected through USB Host controller |
Hi, I don't know what does it mean. |
Interesting idea to use the phone! Here there are two errors
Maybe doing this over adb is messing up things? Bad luck. |
This looks to me like an error from the shell, like it's possibly trying to execute the program as a shell script. Check your compiled copy has transferred properly, e.g. use md5, make sure it's not on a fat partition and that it has execute permission. |
Well, |
Maybe but, what can I do? |
what happens if you just run: you should see:
|
And I made some suggestions in my last reply that you haven't said you've tried (except the FS type), if it doesn't produce the expected output when run without parameters, as above. |
Hi, I'm sorry for my short answer: I put the file in the main storage unit of the cellphone, as I said before And I gave executable permissions to the file. Now I'm testing again and I'll tell you. Thanks a lot |
That md5 is correct. You need to check the md5 of evoplus_cid on the phone,
to make sure it has transferred correctly. Did you get that md5 from the
phone, or your pc?
…On Tue, 7 Dec 2021 at 20:04, jdelatorre72 ***@***.***> wrote:
Hi, I'm sorry for my short answer:
thats what I get with md5 (though I have nothing to compare with)
MD5 (evoplus_cid) = a2804b432d050c23d9efc35e64361bf4
MD5 (evoplus_cid.zip) = e4bfe076c20f1402e5c6134c1ce4dd5f
I put the file in the main storage unit of the cellphone, as I said before
And I gave executable permissions to the file.
Now I'm testing again and I'll tell you.
Thanks a lot
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADJ3BZQWKGWY24EZMSZ4FTUPZSF5ANCNFSM4EJOUA4Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
I finally found an old and almost forgotten netbook with a ata sdcard device so I surrendered with cellphones and rooting them. |
Just tried on my Mac Mini which I believe has card reader on PCI-E:
though I'm still getting: The card I bought is https://www.amazon.co.uk/gp/product/B06XFSZGCC/ref=ppx_yo_dt_b_asin_title_o02_s00?ie=UTF8&th=1 Any ideas? |
All you can do is try a different card. I recall that some Evo are made in China (probably won't work) and others are made in Korea or Philippines (these are confirmed). I think you'll have more luck with an old card than a new one. Ot is probably easier to buy a card with custom CID on ebay etc. |
The one I'm trying was made in Philippines. Does the country of origin of the adapter have any influence? |
You mean MicroSD to SD adapter? No idea, but mine is manufactured by SanDisk, blue/red/white label, with the following markings:
|
I tried with a made in China Evoplus 32 GB microSD with adaptor and my iMac 27" 2014 (which has PCI SD card reader) with Big Sur and had the same error "Failed to enter vendor mode. Genuine Samsung Evo Plus?". The strange thing is that I also use Ubuntu and cannot pass through the "find" command, as terminal shows nothing. I remember clearly I succeded in the past, but don't remember which Ubuntu distribution I used... |
I used Ubuntu 18.04 |
Also see this note:
|
I used Ubuntu 22.04 LTS on an old Acer 7750G with integrated SD/MMC reader. After the find /sys command I see nothing... |
Thanks guys. I stil have got some more options to try:
Will update the thread if any of them become success. |
just a question about trying with a Raspberry Pi: I have to boot an Ubuntu distro from USB pendrive, right? |
I believe so, I assume if you boot from microSD you won't be able to change the CID. I will try both anyway. |
Which command is this? |
find /sys -name cid -print It will display the SD card CID (obviously if it is inserted in the reader...) |
Where did that command come from? A tutorial? |
Possibly from here BTW. I've just tried on RaspberryPi with no luck. Ordered couple more cards from Amazon to try. |
That command is trying to list the CID contents, but assumes the device/card is present is in the device list. So, before that I would first confirm that the card is indeed in the device list!
or
If it's not at either of those, the SD card slot/reader is not compatible. |
SUCCESS! I successfully changed the CID on a Evoplus 32 GB (made in China) using a Raspberry Pi 400 with Ubuntu 22.04 LTS booting from external SSD. The Raspberry Pi has real PCI card reader. Both using my iMac 5K 2014 (on Big Sur) and an Acer 7750G with the same Ubuntu distro ended in failures, suggesting me that the micro SD card wasn't good. The Mac showed the infamous "Failed to enter vendor mode. Genuine Samsung Evo Plus?" error. |
Awesome. I've tried 3 different cards from Amazon with no success using RPi 4 with latest Ubuntu. @matbard what card did you get? What model? |
So, you suggest that maybe the problem wasn’t the proper card but the proper device to grant real access to the card. Is it? |
Thanks so it's one from the compatibility list:
|
Managed to find Samsung Evo 32GB in my CCTV camera at home which is MB-MP32D and it worked in Raspberry Pi/IUbuntu. Same card did not work on Mac Mini though.
|
Depending on the model of Apple Mac, the SD card reader is either mapped to USB or PCIE interface (in this case in System Information it will show in card reader with speed measured in GT/s).
https://support.apple.com/en-gb/HT204384
On my Early-2013 Retina MacBook Pro the SD card reader is PCIE. So I wondered if I could do any investigation to see whether CID can be changed?
Any ideas?
The text was updated successfully, but these errors were encountered: