yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Q&A, Help & Troubleshooting] alastairgreen_Nexus:
No, if you do it correctly also did you have some skills in soldering BGA's?
[Nexus 5 Q&A, Help & Troubleshooting] Sapphire999:
Yes, I do have skills in soldering BGA's. Not mobile phone parts, but laptop's video chips and VRAM. And what do you mean "no, if you do it correctly"? According to this video https://www.youtube.com/watch?v=EDhvo2BnOr8&list=PLgBWRzsI2po5prArZL5c1eJ3UGbJBFQKp&index=10 , guy uses PC and eMMC programmer for deploying partitions and software. If no programmer gonna be used, that the question is, how will phone be able to operate without any software on it? In case of laptop, if you remove all storage, it's ok, while it has operational and undamaged BIOS chip. In case of my samsung galaxy note 4, "Odin mode" I found being located in "sboot.bin" file(you can see yourself opening it with HEX editor, there you'll find all Warranty void messages and all "Download mode" messages. So, if memory is empty and unpartitioned, how will it be able to deploy software to the phone? Seeing all these videos provided, it seems to me, like memory being copied before soldering, cauze everytime phone boots up without PC, which is somehow impossible. I'm able to resolder and replace chip, but I suspect, that without eMMC programmer equipment and cloning memory it will not work. If I'm wrong, than could you explain, how phone will be able to operate and let me deploy firmware without using programmer?

ADDED: Also a few post above, article about resizing partitions, tells how to resize partitions, which is mean, that you already have clone of previous system and all of it's partitions, which makes me suspect that hardware like "eMMC dublicator" is being used to make bit by bit clone of existing memory. So they change only userdata partitions to make them bigger. But not deploying it into an empty chip. Recovery, Odin - all these are written on eMMC. So while I don't see any reasonble guide of how phone is gonna partitions itself, get recovery, odin etc on it, I see no other options different from using eMMC programmer or eMMC dublicator(which is quite expensive, starting from 300 eurs and up to 2000 eurs).

PS. I'm not familiar about other models of phones and brands, but in case of Samsung Galaxy Note 4 (SM-N910C) DO NOT EVEN try to do that, before you certainly know how to make system written on it. It's in case of Exynos chipset, cauze you cann't buy replacement mainboard, in case you kill your's. If you have F model(Snapdragon) chipset, then you can in worst case order a replacement mainboard from here: http://stellatech.com (you'll still need EFS backup done, cauze mainboard comes with NO IMEI on it)
[Nexus 5 Q&A, Help & Troubleshooting] draykfyre:
From what I understand, using Qualcomm diag mode the board diag tool from the first page should do the basic programming for you.
[Nexus 5 Q&A, Help & Troubleshooting] mze1:
appsboot.mbn is basically aboot.mbn which you already have. though there is two files of that which second is abootb.mbn. You can clearly see that from rawprogram0.xml file within the boardDiag v.2.99a I told you to download. in aboot if you open it with a hex editor, there is also a reference to "card size" and partition updates. Dunno if its possible to do something about that also..
[Nexus 5 Q&A, Help & Troubleshooting] wangdaning:
No one is going to give any input for Samsung devices on a Nexus 5 forum. I don't understand why people insist on posting here about other devices, copy the OP and start a thread in the forum related to your device.
[Nexus 5 Q&A, Help & Troubleshooting] Sesme:
Ole tus cojones!!!!!!!!

OLE OLE Y OLE!!!!

Awesome mod awesomeeeeeeeeeeeeeee

where you bought the sheets of copper for heat dissipation¿¿¿???
[Nexus 5 Q&A, Help & Troubleshooting] alastairgreen_Nexus:
Yes you were right, but he also used a partition software in order to adjust the size after soldering the new eMMC then you can use ODIN to flash the firmware also i observed from the comments in the video that he used an eMMC to USB adapter, 360-380 degree(i'm not sure if its Celsius or Fahrenheit ), and you can use an eMMC raw tool if the eMMC that you removed is functional(useful for retrieving data)
[Nexus 5 Q&A, Help & Troubleshooting] mze1:
[MENTION=6773528]Sapphire999[/MENTION] The issue with some samsung devices is that the bootloader is locked. In the case of the nexus 5 you can get off easy with a simple hex-edit. You can in fact program it before you solder the emmc on the board but its not always necessary. If you noticed Kapetz wanted a solution to partition the emmc without having the need to disolder it again.
[Nexus 5 Q&A, Help & Troubleshooting] draykfyre:
aboot.mbn for 16GB and 32GB appear to be byte for byte identical. I don't think there's any need to worry about it. If the chip is soldered on correctly, and is the right chip, and isn't burned out, the tool should flash the bootloader just fine. From there, after flashing a custom recovery, parted will work to resize and copy partitions to get userdata to full size and put grow at the end. dd can be used to copy back misc and persist, and TWRP can be used to restore EFS. No need to modify hex values at all. gdisk can be used repair the GPT table correctly, including saving the secondary table at the new end of the disk. Unless I'm missing something, KApetz2 took the hard way in modifying the partition tables manually.
[Nexus 5 Q&A, Help & Troubleshooting] playahate:
yap. he is good at the electronics, chips, soldering etc... but he is not so good at android structure. At his first post on russian 4pda.ru (26.03.2016)he asked how to resize partition. He had soldered chip already and fully working device, that showed only 32G.

By the way he attached the picture to that post that showed the partition table, so he could resize it with the same fdisk - delete and create new GROW partition, but he was looking for gdisk that he saw at alcatel thread i mentioned before...
[Nexus 5 Q&A, Help & Troubleshooting] bukujutsu:
Does anyone know the list of parts you need to complete this mod? Anyone who has read the Russian forum seen mention of anything else? Of course the emmc chip is one of them, along with something to replace/solder it. Someone above mentioned this, and it's pretty cheap. Couldn't find anything by searching "usb emmc " on multiple top sites. "emmc sdcard did, though. This would work, right? http://ameridroid.com/products/emmc-adapter

I want to be sure in case I have to order a part from overseas/China, with how long shipping can take.

Also, what are these wires he has in this picture (electronics noob, forgive me):
[Nexus 5 Q&A, Help & Troubleshooting] d3m0n1:
It looks like programming connections (CMD and DAT0) for the emmc chip. CLK can be accesed from the other side of the board, that is the third wire, that goes to the other side.

He probably used z3x easy jtag (or any other emmc in-circuit-programmer) for programming the bootloader into the empty emmc chip. Once the bootloader is in place, you can flash the nexus 5, with any known method.

I don't know if it's possible to do it via usb with an empty emmc chip soldered to the board (probably doable, but confidential qualcom tools are needed). That's my 2 cent's

br

d3m0n
[Nexus 5 Q&A, Help & Troubleshooting] tmihai20:
That adapter is for the oDroid only, what we can get is the eMMC chip only, it does not come with the plug to be used with that eMMC to microSD adapter. It would mean to solder it twice, once on the adapter used to program the partitions and once on the Nexus 5. As much as I would love to have 64 GB of internal memory on my Nexus, I will most likely not go through with this mod. Theoretically I know 2 persons that can do the soldering part, but it will be very difficult to repartition the eMMC to use all the available space.
[Nexus 5 Q&A, Help & Troubleshooting] draykfyre:
If you want to partition it off the phone, and want a reader to do it, then you could get the ODROID C2 64GB eMMC chip, and the associated microSD adapter, and partition it that way. That eMMC chip is the same as the one that the OP used. Then remove it from the ODROID board, reball it, and install it in the phone.

EDIT: Maybe it's not the exact same as the eMMC the OP used, but it's the same series, same dimensions, same capacity, and it's eMMC 5.0. The only difference I can see would be that it might be either 2 bit MLC or 3 bit MLC.

EDIT2: I can finally post links, so this one is what I'm talking about: http://ameridroid.com/products/64gb-emmc-black-module-c2-android
[Nexus 5 Q&A, Help & Troubleshooting] nameless--:
The system can be flashed even with an empty eMMC trough the qualcomm bootloader. Conecting the phone to a USB port holding Vol+, the PC would recognize the phone as a Serial Port, which then can flash all the base partitions trough a programm called Boardiag. But to achieve the 64Gb, he needs to edit the PrimaryGPT file from a 32Gb model to extend the userdata partition.

And thats where the problem begins, what tool he used to edit the GPT table for the 64Gb be recognized?

If he could tell us the process, the mod can be vastly applied, and the process to change the chip would be the only and one problem.
[Nexus 5 Q&A, Help & Troubleshooting] mze1:
[MENTION=4809865]nameless--[/MENTION] Yeah that is what I noticed as well. My guess is that you can easily partition the emmc with boardDiag tool and it will probably work. I don't know whether you need to make it being fully recognized as a 64 GB emmc. As we can clearly see within the picture of him within fastboot, the emmc is fully recognized as 64 GB before you even boot the device in normal mode.
[Nexus 5 Q&A, Help & Troubleshooting] nameless--:
But is exactly that.

When my nexus 5 was flashed with the wrong GPT file, My system recognized only 16Gb, but the eMMC on my mainboard was a 32Gb, and the bootloader showed 32Gb.

So, if I manage to change my eMMC to a 64Gb, the bootloader would recognize the 64Gb eMMC memory by, lets say, the model of the chip itself, but the system won't, since the GPT is set to just extento to 32Gb of userdata.

I don't think I've made it clear, sorry, english is not my primary language, but I don't think that the bootloader reads just what the system shows. Since even before he achieved the full memory on the system, the bootloader showed the 64Gb.
[Nexus 5 Q&A, Help & Troubleshooting] draykfyre:
Once anything boots, you can use parted to resize the userdata partition and move the grow partition to the end. gdisk should write the new partition table to the disk correctly as well, if necessary.

EDIT: The GPT file is just for the initial partition setup. Any good partition resizing utility will update the GPT table to match the new partition layout.
[Nexus 5 Q&A, Help & Troubleshooting] bukujutsu:
Oh well, probably still have a while until the chip gets here. Ordered the exact same one he did and recommended. Hopefully by then we'll have a full guide.
[Nexus 5 Q&A, Help & Troubleshooting] mze1:
[MENTION=5463900]draykfyre[/MENTION] So when are you getting the mmc that you ordered? :D
[Nexus 5 Q&A, Help & Troubleshooting] draykfyre:
Who knows. It appears to have left Shenzen at some point on the 27th, if that's what "Despatch from Sorting Center" means.
[Nexus 5 Q&A, Help & Troubleshooting] bukujutsu:
Oh, mine says it was posted on the 27th, it arrived in the US today. I'm near San Francisco, may get it earlier than I expected.
[Nexus 5 Q&A, Help & Troubleshooting] bukujutsu:
Out for delivery today. I was receiving an error from USPS tracking that said "Please only enter up to 0 numbers separated by comma" near the top and thought they had switched to a new format; packagetrackr didn't work either. Opened an incognito tab and it worked.

Only took a week from ordering/payment to delivery in California for the one he said he recommended and tested: http://www.aliexpress.com/item/KLMCG8GEAC-B031-emmc/32552278459.html

Unfortunately I still have no idea what the full steps are! I don't think anyone but Kapetz does. By digging through his posts on the other forum it seems he didn't even need a jtag. With the material, code, and programs needed, this may not be that complicated if you don't have to figure it out by yourself from the start.

Maybe we can entice him into releasing it earlier. I'm thinking about messaging him on the other forum and asking him to post his Paypal here or another way to send money. He said he's too busy (possibly from needing to work) and Ukraine is a struggling country, so why not pay him for his time? I'll tell him it will be fine if he writes it in his native language because someone can just translate it. http://4pda.ru/forum/index.php?showuser=3882369
[Nexus 5 Q&A, Help & Troubleshooting] nameless--:
The reason why I said this is because of my past experience with a blank eMMC that I caused:

http://xdaforums.com/google-nexus-5/help/nexus-5-32gb-wont-to-internal-storage-t3313593

I wiped everything on my eMMC using A Parted in the wrong way, this includes even the GPT, aboot and everything else, leaving my phone with a clean eMMC with nothing installed. In my post I say what I had to do to get it working again.

I believe that A Parted can resize the internal storage, If using it correctly, But I dont know if the bootloader will recognize the full amount of memory installed on the system after that.
[Nexus 5 Q&A, Help & Troubleshooting] draykfyre:
Mine finally made it out of customs last night. It's supposed to show up Monday according to USPS.
[Nexus 5 Q&A, Help & Troubleshooting] nameless--:
If you manage to chance the eMMC, I think I cracked his code.

After some logic thinking, I think I know what he tryied to say leaving those images of hex codes and Grow partition on his imageshack account.

I changed some HEX values of the Grow Partition GPT file he uploaded on one of his posts and with that I think that flashing this new GPT file on the phone, it can manage to recognize all the 64Gb. Try to flash it using the process I say on my post that I mentioned here before. I will upload the Edited GPT file
[Nexus 5 Q&A, Help & Troubleshooting] nameless--:
Use this guide to download Boardiag with the Nexus 5 files:

http://xdaforums.com/google-nexus-5/general/fix-unbrick-nexus-5-stucked-qualcomm-hs-t3043301

And use the edited primary GPT that I made to see if will work

Hope that everything work! :fingers-crossed::fingers-crossed:
[Nexus 5 Q&A, Help & Troubleshooting] draykfyre:
Did you calculate the new CRC checksum for the new table?
[Nexus 5 Q&A, Help & Troubleshooting] nameless--:
I dont knew that it was necessary, if you know how to do it, could you do this for us? I really dont know how to do it :(
[Nexus 5 Q&A, Help & Troubleshooting] draykfyre:
I've no idea how to, and once I realized that I could use parted and gdisk to modify partitions I stopped looking into it. In general, from what I've read elsewhere, manually editing the table for GPT partitions is a royal pain and a bad idea. Unless you absolutely have to, avoid it.

The primaryGPT 'partition' from the boarddiag tool isn't really a partition. You can verify this yourself if you want, just use parted to view /dev/block/mmcblk0 and type 'print'. It will show all of the partitions on the phone. You'll note that the first partition is modem, starting at 524kb or sector 1024. In the readable partitions file you can see that primaryGPT.mbn starts at 0x0 and is 524288 bytes(1024 sectors) long, so this makes sense.

primaryGPT.mbn just contains the primary GPT table, and the tool writes it to the very beginning of the disk. The secondary GPT table is supposed to go at the end of the disk. That's why they are in different locations for the backupGPT.mbn in the 16GB partitions.txt and the 32GB partitions.txt files.

For more information on GPT partition tables, see https://en.wikipedia.org/wiki/GUID_Partition_Table

EDIT: That's not to say that if I can't get it to boot with a smaller userdata partition I won't try modifying the primaryGPT file. If I have to, I will figure out how to calculate the checksum. I'd just really rather not.
[Nexus 5 Q&A, Help & Troubleshooting] draykfyre:
So after writing that other response on my phone I got home and realized I couldn't leave it alone, so I opened up your modified file in HxD to take a look. It doesn't look like you changed the end block of userdata, so what did you change?

Also, to modify the files correctly is annoying, especially if you want to move the secondary GPT table to the end of the disk without a different tool. You have to modify both the primary and backup GPT files, as both contain where the primary and secondary header tables are located, both contain checksums of the respective headers, both contain the minimum and maximum sectors usable by partitions, both contain the partition array, and both contain checksums for the partition array.

You could just modify PrimaryGPT.mbn, but if you do and anything goes wrong with the primary table in the future, the backup table will not be registered as correct and you won't be able to boot.

EDIT: If you do still want to go for it, to calculate a checksum of the selected text in HxD, go to Analylsis->Checksums... and then choose CRC-32 (Not Checksum-32)

This will give you the checksum of the selection. In the header tables it is in little endian format though, so you'll have to change it to that. Make sure that you know which portions of the header to select to calculate the checksum, and when calculating the checksum of the header you must have already calculated the checksum of the modified partition table, as it is included in the header.

For what to select for calculating the checksum of the header, see http://thestarman.narod.ru/asm/mbr/GPT.htm#CRC32

The partition array is FF0 rows long, so for the PrimaryGPT.mbn file you would select 0x400-0x13FF to calculate the partition array checksum.
[Nexus 5 Q&A, Help & Troubleshooting] nameless--:
Sorry for the late answer, but I edited only the grow partition, since the userdata.img partition is the same for both models, 16gb or 32gb, wich makes sence since theres only one factory image for both devices.

As far as I know, the grow partition is the one that "tells" the userdata where the memory accsessible for the user ends.

Thats why there is a "first block" and a "end block" on the partition escheme he shared on one of his first post.

On a pic from his imageshack, he explains, roughly, his process to make the grow partition get the full 64gb accsessible for the userdata.

Hope that you can understand me, i'm typing from my phone wich the keyboard is in portuguese BR hahaha :fingers-crossed:
[Nexus 5 Q&A, Help & Troubleshooting] draykfyre:
Ah, I see what you did now. When you're flashing the factory image fastboot just uses the partition name, and it uses the existing partition system for how large the userdata partition should be. That is why you couldn't get your phone to go back to 32GB by flashing the factory image. When you move just the grow partition to the end of the disk but don't expand userdata to fill the now unused space, you end up with a large gap between the two partitions.

A quick breakdown of the userdata partition in PrimaryGPT.mbn:

0x1180-0x118F: Partition type GUID

0x1190-0x119F: Unique Partition GUID

0x11A0-0x11A7: Start sector of userdata(little endian)

0x11A8-0x11AF: End sector of userdata(also little endian, and this is inclusive)

0x11B0-0x11B7: Attribute flags(userdata in PrimaryGPT.mbn has something set, I don't know what it means though)

0x11B8-0x11FF: Partition name
[Nexus 5 Q&A, Help & Troubleshooting] nameless--:
So... What is the purpose of the Grow partition? I mean, userdata have a set location on the table where it starts and ends, but thinking that way, there would be a userdata for each variant of the phone, and that is where the Grow partition enters in the scene, no?

Sorry, my acknowledgement in Android is none but the basics, I'm just thinking in an easer way to do that, since he (the OP) doesnt seem to know the system very well too... :)

---

Oh, I figured out what you meant, so you are saying that editing only the grow partition layout isnt enough to expand the userdata, right?

But if we use the same "end block" as we used on the grow partition, this mean that the userdata will reach the same extention as the grow partition, right?
[Nexus 5 Q&A, Help & Troubleshooting] draykfyre:
I don't know what the grow partition does. You would want to choose a sector one less than where the grow partition starts.
[Nexus 5 Q&A, Help & Troubleshooting] draykfyre:
My chip finally showed up today. I gave it a shot, and got to the point of being able to use the boarddiag tool to flash the 16GB image. The read/write test said there were E8F6000 sectors, which would be 125GB. Then midway through the SDRAM test my computer stopped recognizing the device, and I haven't been able to get it to recognize it again. I must have fried something. It was fun though!
[Nexus 5 Q&A, Help & Troubleshooting] nameless--:
Tryied flashing it again with boardiag?
[Nexus 5 Q&A, Help & Troubleshooting] CopperClad:
Draykfyre, sorry to hear your endevours may have been in vain. I was going to order the same 128gb chip as you to try, but now I've heard your experience I'm wondering if it's the right thing to do. Do you think that flash chip caused the problem or something else?

Cheers
[Nexus 5 Q&A, Help & Troubleshooting] bukujutsu:
IIRC someone in this thread mentioned that the 128GB chips are eMMC 5.1, which the N5 doesn't support. Unless you found one in a 5.0 configuration.
[Nexus 5 Q&A, Help & Troubleshooting] draykfyre:
I don't know whether it was that the chip was 5.1 or not. I don't think that was the issue, as it did successfully flash the partitions. The power requirements for 4.5, 5.0, and 5.1 are the same as far as I can tell. I just didn't have the restore bootloader box checked, so I've no way to test whether it will even try to boot. It rebooted mid SDRAM test, and then Windows was unable to recognize the device anymore. I expect that I got something too hot for too long, and after a short period of use it killed the motherboard. I don't have a preheater, and not much experience with BGA soldering, so I think that's the safest bet. At some point I may pick up a replacement and try again, assuming that my emmc chip is still good.

---------- Post added at 11:36 AM ---------- Previous post was at 11:25 AM ----------

For what it's worth, there is an epoxy underfill. It's annoying, and I wish that I'd had some spare electronics to practice on that also had underfills, but I didn't. I think it would have gone better if I had a preheater, because I had a really hard time knowing whether the solder was melted, and it took a lot of heat to get it to come off.
[Nexus 5 Q&A, Help & Troubleshooting] CopperClad:
Thanks for posting that draykfyre, the more info the better! Sounds most likely that something else has failed on your board, but worth looking it over just to make sure it's not something obvious like a dodgy connector.

Does anyone have a source for a 128gb which is emmc 5.0 and the right footprint for this? Or does anyone know if emmc 5.1 is backward compatible?