How to connect (beginner help)


Rendering Error in layout Widget/Social: Call to a member function exists() on null. Please enable debug mode for more information.
More
8 years 8 months ago #977 by lxx33
Had followed the explanation on www.ghostlyhaks.com/blog/blog/hacking/18-apple-efi-bypass

As a beginner i want to be sure not to brick my mac air.
Should I connect it like on the picture in this link.

don't pay to much attention to my heat sinks :)


Attachments:

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #979 by lxx33
I tried to connect to the MBA and run the code
sudo flashrom -r ~/efi/test1.bin -V -p linux_spi:dev=/dev/spidev0.0
i get the following message:
No EEPROM/flash device found.
Note: flashrom can never write if the flash chip isn't found automatically.
The raspberry is connected on a computer to power the rpi.
the battery of MBA is disconnected
the switch on the easy flash is at PinOut1

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #980 by lxx33
pi@raspberrypi ~/efi $ sudo flashrom -r ~/efi/test1.bin -V -p linux_spi:dev=/dev                                                                /spidev0.0
flashrom v0.9.8-r1896 on Linux 3.18.11+ (armv6l)
flashrom is free software, get the source code at http://www.flashrom.org

flashrom was built with libpci 3.1.9, GCC 4.6.3, little endian
Command line (5 args): flashrom -r /home/pi/efi/test1.bin -V -p linux_spi:dev=/d                                                                ev/spidev0.0
Calibrating delay loop... OS timer resolution is 4 usecs, 194M loops per second,                                                                 delay more than 10% too short (got 85% of expected delay), recalculating... 198                                                                M loops per second, delay more than 10% too short (got 85% of expected delay), r                                                                ecalculating... 194M loops per second, delay more than 10% too short (got 88% of                                                                 expected delay), recalculating... 203M loops per second, delay more than 10% to                                                                o short (got 89% of expected delay), recalculating... 226M loops per second, del                                                                ay loop is unreliable, trying to continue 10 myus = 13 us, 100 myus = 101 us, 10                                                                00 myus = 1780 us, 10000 myus = 10884 us, 16 myus = 20 us, OK.
Initializing linux_spi programmer
and still
Probing for Generic unknown SPI chip (RDID), 0 kB: RDID byte 0 parity violation.                                                                 probe_spi_rdid_generic: id1 0x00, id2 0x00
Probing for Generic unknown SPI chip (REMS), 0 kB: probe_spi_rems: id1 0x0, id2                                                                 0x0
No EEPROM/flash device found.
Note: flashrom can never write if the flash chip isn't found automatically.

my cables first went from device to breadboard to flash clip. but that was a bit long so now i shortened it. Cables look the same length as the youtube video, but not 8 cm.

Tips are most appreciated :)

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #992 by lxx33
it's the MBA A1369 EMC2469

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #994 by gabrield
I have a similar problem. I have an MBA 1466. Take a pin testing MBA easy clip with EFI ROM is on the motherboard and not all give continuity. Some contribution?

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #995 by gabrield
Hello, I finally making process. First you should check if you are reading memory. I use the following command:
sudo -p flashrom linux_spi: dev = / dev / spidev0.0
and that tells you that detects memory in my case MX25L6406E. So I see you're not setting the parameter to indicate which type of flash are you wanting to read. To read the memory used:
sudo -p flashrom linux_spi: dev = / dev / spidev0.0 MX25L6406E -c / MX25L6408E -r ~ / Desktop / efi / read1.bin
 
where "MX25L6406E / MX25L6408E" is the memory of my MBA. You should know that flash memory does your motherboard. Then use the command sudo flashrom -L where you sample all supported memories. Sorry for my English is not too good.

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #999 by token.paul
It is very true.
You should probe a chip first because in case of Macronix chip installed flashrom can not properly detect the correct chip type.

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago - 8 years 8 months ago #1008 by lxx33
When I am home I will try the
sudo -p flashrom linux_spi:dev=/dev/spidev0.0

If it will not read. i will desolder the 8 pins on the board and use 5cm cables and try again. My cables are longer than 8cm. I think my cables are as long as the youtube video, but on the tutorial i've read that the cables should not be longer than 8cm.

Maby that will work
Last edit: 8 years 8 months ago by lxx33.

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #1009 by lxx33
Looks like my code is missing something.
ik get:
pi@raspberrypi ~/efi $ sudo -p flashrom linux_spi:dev=/dev/spidev0.0
usage: sudo [-D level] -h | -K | -k | -V
usage: sudo -v [-AknS] [-D level] [-g groupname|#gid] [-p prompt] [-u user
            name|#uid]
usage: sudo -l[l] [-AknS] [-D level] [-g groupname|#gid] [-p prompt] [-U user
            name] [-u user name|#uid] [-g groupname|#gid] [command]
usage: sudo [-AbEHknPS] [-r role] [-t type] [-C fd] [-D level] [-g
            groupname|#gid] [-p prompt] [-u user name|#uid] [-g groupname|#gid]
            [VAR=value] [-i|-s] [<command>]
usage: sudo -e [-AknS] [-r role] [-t type] [-C fd] [-D level] [-g
            groupname|#gid] [-p prompt] [-u user name|#uid] file ...

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #1010 by lxx33
i had "sudo -p flashrom" but should have been "sudo flashrom -p"

I get an message
pi@raspberrypi ~/efi $ sudo flashrom -p linux_spi:dev=/dev/spidev0.0
flashrom v0.9.8-r1896 on Linux 3.18.11+ (armv6l)
flashrom is free software, get the source code at http://www.flashrom.org

Calibrating delay loop... OK.
No EEPROM/flash device found.
Note: flashrom can never write if the flash chip isn't found automatically.
pi@raspberrypi ~/efi $
The easy clip is on position 1.

I will shorten the cables this evening and hope to get a good read soon :)
if i'm missing something please let me know

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #1011 by gabrield
hello, I confused me typing. your correction is correct. If you read again connecting the MBA proba easy clip because it easily releases

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #1012 by lxx33
Yes,

I use it with the easy clip (a photo of the clip and of my raspberry is located in the beginning of this topic) . But still can't get a read. Everytime he said no eeprom found. i will try shorter wires. maby that will work?

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #1013 by lxx33
i shortened the cable, still no luck.
Than i put the switch to pinout2 instead of pinout 1.

I finally get some results :)
Calibrating delay loop... OK.
Found Micron/Numonyx/ST flash chip "N25Q064..3E" (8192 kB, SPI) on linux_spi.
No operations were specified.

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #1014 by lxx33
Have download my dump 3 times. test1.bin test2.bin test.bin.
Somehow I have this great feeling of joy inside me to get to this level so far, eventhough i just follow everything step by step.

Will now google how to do the md5 check and than keep on going. Hope it will work :)

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #1015 by lxx33
I transferred my bin files to my windows computer and used win5md to check if they are the same.
They are the same and if 1 searched for $svs i get 4 instances instead of 2.
Here i hit a wall.

Can I upload my 8mb file here, or should i email it to you.

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #1016 by token.paul
zip it and place here.

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #1017 by lxx33
Tnx
Attachments:

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #1025 by token.paul
This archive contents modified firmware and layout file for particular patching of the chip.
Put files from archive into one folder and run this command:
flashrom -p linux_spi:dev=/dev/spidev0.0--layout ./flashrom.layout --image SVS -w ./lxx33_EMC2469.bin.modified

It will replace installed password area by clean with no password


File Attachment:

File Name: lxx33_EMC2469.zip
File Size:4,009 KB
Attachments:

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #1026 by thaGH05T
Glad you all worked it out, If there are any further questions please do not hesitate to ask.

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #1035 by token.paul

tnx for the update file. I will try it in a few hours. our the best smile.
should i first erase the chip with sudo flashrom -E -V -p linux_spi:dev=/dev/spidev0.0 or just put your 2 files in the root of my rpi and directly run your command flashrom -p linux_spi:dev=/dev/spidev0.0--layout ./flashrom.layout --image SVS -w ./lxx33_EMC2469.bin.modified


Noways! You should just replace one pice of firmware by another. So, copy these files to RP into one folder, make sure that this folder is your current and run:
flashrom -p linux_spi:dev=/dev/spidev0.0--layout ./flashrom.layout --image SVS -w ./lxx33_EMC2469.bin.modified

Flashrom will erase and write small amount inside a chip and will perform verification entire chip content against modified firmware, they are MUST be same.

Please Log in or Create an account to join the conversation.

Who's Online

We have 1055 guests and no members online

N00BZ

  • ljamal
  • ljamal74
  • mikeg2atest
  • ducchinhbui
  • anjarezt

Cookies