Tutorial  Updated

EmuMMC setup Win/Linux & Quadboot

Ensure you have a pre-cfw CLEAN NAND backup if you want to use sysnand for online

File based EmuMMC is working but if you use FAT32 it is very limited and heavily bottlenecked, if you decide to use exFAT then it is very unstable and can corrupt your SD card easily; as of now use partition based as file based is very slow/unstable!!

Rewriting guide with NYX in mind alongside quad boot files for that.


Pre-Setup [Win/Linux]

  • Dump your NAND via hekate or use a clean dumped nand(you need to dump BOOT0/BOOT1 and rawnand) ENSURE AUTORCM IS TURNED OFF!
  • Merge these into one file using:

    Linux cmd:
    cat BOOT0 BOOT1 rawnand.bin.00 rawnand.bin.01 rawnand.bin.02 rawnand.bin.03 rawnand.bin.04 rawnand.bin.05 rawnand.bin.06 rawnand.bin.07 rawnand.bin.08 rawnand.bin.09 rawnand.bin.10 rawnand.bin.11 rawnand.bin.12 rawnand.bin.13 rawnand.bin.14 > emummc.bin

    Windows cmd:
    copy /b BOOT0+BOOT1+rawnand.bin.00+rawnand.bin.01+rawnand.bin.02+rawnand.bin.03+rawnand.bin.04+rawnand.bin.05+rawnand.bin.06+rawnand.bin.07+rawnand.bin.08+rawnand.bin.09+rawnand.bin.10+rawnand.bin.11+rawnand.bin.12+rawnand.bin.13+rawnand.bin.14 emummc.bin
  • If you are using a single file dumped nand then:
    Linux cmd:
    cat BOOT0 BOOT1 rawnand.bin > emummc.bin

Windows cmd:
copy /b BOOT0+BOOT1+rawnand.bin emummc.bin

Setting up EmuMMC[Linux]
  1. Format your SD, clear any partitions and etc.
  2. Create your normal partition (MAKE SURE IT IS FAT32 AND 32K CLUSTER).
  3. Leave enough space to fit the NAND image.
  4. Make that last partition FAT32 aswell
  5. Identify the partition address */dev/xxx
  6. Use this command to write your complete emummc image to the EmuNand partition we made earlier:
    sudo dd if=<your_emummc_bin> bs=512M of=<Step 5, partition add> status=progress
  7. Once this is done download the latest AMS and Hekate.
  8. Download the EmuMMC config and create a folder named "emummc" then paste it there..
  9. Use a tool like GParted to find the first sector of the partition holding the EmuNAND
  10. Convert the value from step 8 to hexadecimal > just google <number> to hexadecimal ; it should give out a number such as 0x1039 and etc; IF on the case that it gives one like say 800 then it'll be 0x800.
  11. SOMETIMES EmuMMC may not work fully with "0x" infront of the sector, it's hit & miss.
  12. edit the config file in emummc with this value.

Setting up EmuMMC[Windows10]
Install tools:
Steps:
  • Using the partition tool, delete all partitions on the sd (all data on the sd will be gone)
  • Create the first partition at the start of the table, make this a Fat32 32K Cluster partition, leave 31GB at the end of the table.
  • Format the end partition as FAT32 aswell, cluster size does not matter.
  • kDBr7Jn.png
  • Using CMD cd into the folder where you have your emuMMC files and dd.
  • Figure out what partition you will specificy to DD by using running the cmd dd --list
  • Wbz3er0.png
  • As you can see K: is my EmuMMC partition and it is linked to \\?\Device\HarddiskVolume19, this is the disk we will write to via DD.
  • Using the CMD dd if=<your_emummc_bin_path> bs=512M of=<Disk we identified on previous step> --progress image your EmuMMC onto the last partition.
  • Once the last partition has your EmuMMC, start setting up AMS and Hekate, download Atmosphere CFW and Hekate.
  • Copy AMS + Hekate onto your SD
  • Download the EmuMMC config and create a folder named "emummc" then paste it there.
  • Find your first sector by using the disk tool, right click your EmuMMC partition > properties > partition info > first physical sector.
  • Convert the number to hexadecimal by going on google and searching <Number> to hexadecimal ; a value such as 0x492A3900 or etc will show.
  • SOMETIMES EmuMMC may not work fully with "0x" infront of the sector, it's hit & miss.
  • Open emummc folder on your sd then open the config and paste the hexadecimal number over the existing one.
  • Launch hekate then atmosphere, if it is all done right you should be in EmuMMC


Dual/Triple/Quad boot[L4T Ubuntu/Lakka, Stock-Sys, EmuNand]
Notes:
  • No I won't sit you through this, the process is already laid out there.
  • If you decide to use exFAT I won't really help.
  • You can do the partitioning and file merging on windows but I don't know any tool to write the image to a specific partition.
  • There is NO such thing as *Cleaning* your NAND, if you don't have a clean backup then bad luck, you can maybe get away with clearing logs if you haven't been online for a long time but even then I wouldn't suggest it; should've made a clean NAND backup, I won't guide you through any of that.
CLICK HERE FOR EMUMMC CONFIG

DISCLAIMER: I am not resposible for you killing your switch, bricking it from the failure to make a NAND backup; I am in no way obliged to provide you personal support nor am I obliged to do anything else; I'm not resposible for you messing up your SD Card either.



Windows guide:

 
Last edited by TariqSoftDev,

TariqSoftDev

~Zexceil
OP
Member
Joined
Sep 18, 2013
Messages
716
Trophies
1
Location
London
XP
1,018
Country
when you said "it's the disk we will write" it could mean just the "disk name" like "harddiskVolume19" only. Maybe to be less confusing you could add "all the line, including the slashes and question mark") or "this is the link we will write" instead of disk
that's probably me being too strict on writing guides, but I like providing as much information as possible to prevent user errors. I suppose at worse, dd doesn't write anything and it's not dangerous.


thanks for the SD Card answer. I might just use the same card too.

I'd suggest staying far away from Integral 256G cards are they do not work, no matter what you do that SD is just funky as hell; I'll be sure to add it soon, thank you for your input!
 
  • Like
Reactions: Cyan

Xen0

Well-Known Member
Member
Joined
Oct 8, 2015
Messages
532
Trophies
0
Age
25
XP
1,949
Country
Germany
Yep; personally I just removed my vol + strap from my modchip so I Only have to press power + vol up to boot cfw.
That´s really unfortunate... AutoRCM is such a nice thing and using the jig (which works about 1 out of 10 tries) everytime I want to switch to emummc seems really annoying. Hope there will be a way around this anytime soon.
 

henkp

Well-Known Member
Newcomer
Joined
Mar 19, 2007
Messages
74
Trophies
0
XP
697
Country
Netherlands
when you said "it's the disk we will write" it could mean just the "disk name" like "harddiskVolume19" only. Maybe to be less confusing you could add "all the line, including the slashes and question mark") or "this is the link we will write" instead of disk
that's probably me being too strict on writing guides, but I like providing as much information as possible to prevent user errors. I suppose at worse, dd doesn't write anything and it's not dangerous.
....

I support the vision, could be explained in a bit more detail. First time I wound up with a file called harddiskVolume19 of 32gb in the same folder as the input file :D
 
  • Like
Reactions: Cyan

Xen0

Well-Known Member
Member
Joined
Oct 8, 2015
Messages
532
Trophies
0
Age
25
XP
1,949
Country
Germany
With Nyx now.. Is it possible to boot into stock via hektate/RCM? Or what does the launch stock in Nyx do? Because for me nothing happens.
 

Andre993

Member
Newcomer
Joined
Jun 23, 2019
Messages
22
Trophies
0
Age
31
XP
104
Country
Italy
hi guys, i have a problmen when try to lunch dd command

C:\Users\DJAnd\Desktop\altro procedimento>dd if=emummc.bin bs=512M of=\\?\Device\HarddiskVolume73 --progress
rawwrite dd for windows version 0.4beta1.
Written by John Newbigin <[email protected]>
This program is covered by the GPL. See copying.txt for details
Error native opening file: 0 Operation completed

thanks for help
 

Attachments

  • Immagine.jpg
    Immagine.jpg
    516.7 KB · Views: 185

TariqSoftDev

~Zexceil
OP
Member
Joined
Sep 18, 2013
Messages
716
Trophies
1
Location
London
XP
1,018
Country
hi guys, i have a problmen when try to lunch dd command

C:\Users\DJAnd\Desktop\altro procedimento>dd if=emummc.bin bs=512M of=\\?\Device\HarddiskVolume73 --progress
rawwrite dd for windows version 0.4beta1.
Written by John Newbigin <[email protected]>
This program is covered by the GPL. See copying.txt for details
Error native opening file: 0 Operation completed

thanks for help

Make sure the drive is not being used nor open, also try using the string including volume for "of="
 

Andre993

Member
Newcomer
Joined
Jun 23, 2019
Messages
22
Trophies
0
Age
31
XP
104
Country
Italy
i just finish, but now when lunch atmosphere give me this error : fatal error [NXBOOT]couldn't parse boot0: not enough space
 

Andre993

Member
Newcomer
Joined
Jun 23, 2019
Messages
22
Trophies
0
Age
31
XP
104
Country
Italy
You either didn't merge BOOT0/1 with rawnand dump or you set the offset incorrectly.
i think my boot0/1 is corrupted because i try to modified the path (emummc_sector =) with wrong numbers and atmosphere give me the error: couldn't find the EmuMMC or eMMC folder
and i merge all backup nand with this path copy /b BOOT0+BOOT1+00+01+02+03+04+05+06+07 emummc.bin
 

TariqSoftDev

~Zexceil
OP
Member
Joined
Sep 18, 2013
Messages
716
Trophies
1
Location
London
XP
1,018
Country
i think my boot0/1 is corrupted because i try to modified the path (emummc_sector =) with wrong numbers and atmosphere give me the error: couldn't find the EmuMMC or eMMC folder
and i merge all backup nand with this path copy /b BOOT0+BOOT1+00+01+02+03+04+05+06+07 emummc.bin
Try doing it via Hekate Nyx; make a 31.9GB partition then use Nyx to make the EmuMMC; it'll use what's on Sys to do it.
 
  • Like
Reactions: Andre993

lordelan

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
5,787
Trophies
1
Age
44
XP
6,516
Country
Germany
Alright, what I've got:

  1. A (hopefully) clean 5.1 BOOT0/1 + RAWNAND dump
  2. A Switch with Atmo and SX OS, that was offline or used 90DNS ever since I started doing unclean things
  3. No emuNAND yet
  4. A 400 gb micro SD card where many games and homebrews are installed to
What I want to achieve:
  1. Turning my current hacky sysNAND into an emuEMMC/emuNAND that can be used by both => Atmo AND SX OS
  2. Installing L4T Ubuntu on my micro SD card
  3. Using my (hopefully) clean 5.1 BOOT0/1 + RAWNAND dump as sysNAND to play online
  4. Having hekate/Nyx with the following 4 entries:
    1. Stock (clean sysNAND)
    2. Atmosphère (emuEMMC)
    3. SX OS (emuEMMC, same as 2. of course)
    4. L4T Ubuntu
As far as I understood my steps to achieve this would be the following, please correct me where I'm wrong:
  1. Make a BOOT0/1 + RAWNAND dump of my current setup just in case
  2. Copy everything from my SD card into a temp folder on my computer as the SD will be formatted
  3. Use Etcher to flash the L4T Ubuntu image to my SD card
    • this will obviously format it and create a FAT32 partition and a Linux partition (EXT4?) with the Linux partition being at the end of my micro SD card
  4. I resize the FAT32 partition on my computer to the maximum possible size that is left on my 400 gb card and make sure it's FAT32 with 32k cluster size
  5. I throw the L4T updates and everything from my computer's temp folder to the FAT32 partition
  6. I make sure L4T Ubuntu boots fine and is up to date
  7. I boot into SX OS boot menu since I want my emuEMMC to be compatible with it and create a partition based emuNAND from there
    • iirc this should create a partition at the beginning of my micro SD card
    • my SD card should look like this now:
    [<- emuEMMC partition ->][<- FAT32 partition ->][<- Linux partition ->]
  8. I adjust some settings in some ini files so Atmo can boot into that emuEMMC as well
    • I'm not sure about what exactly I would have to do here but I'll find out by reading more tuts I guess ... however help is appreciated :)
  9. I create the 4 entries I wanted to have in Nyx in my hekate config ini file
  10. I make sure both (Atmo and SX OS) can boot into the emuEMMC
  11. I restore my (hopefully) clean 5.1 BOOT0/1 and RAWNAND dump (in that order?) to my sysNAND, update it with ChoiDujourNX to 8.1.0 and have fun online
Did I forget something? Any suggestions? :)
 

lordelan

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
5,787
Trophies
1
Age
44
XP
6,516
Country
Germany
Dual/Triple/Quad boot[L4T Ubuntu/Lakka, Stock-Sys, EmuNand]
Hi Tariq, please continue with this.
I really want to know how I can have
  • emuEMMC (that can be used by Atmo and SX OS)
    and
  • L4T Ubuntu on the same SD card and boot into everything (sysNAND, emuEMMC, L4T) from hekate
 

TariqSoftDev

~Zexceil
OP
Member
Joined
Sep 18, 2013
Messages
716
Trophies
1
Location
London
XP
1,018
Country
Hi Tariq, please continue with this.
I really want to know how I can have
  • emuEMMC (that can be used by Atmo and SX OS)
    and
  • L4T Ubuntu on the same SD card and boot into everything (sysNAND, emuEMMC, L4T) from hekate
Alright I'll update the guide today then; just been busy with some stuff recently but I'm free now.
 
  • Like
Reactions: lordelan

lordelan

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
5,787
Trophies
1
Age
44
XP
6,516
Country
Germany
Alright I'll update the guide today then; just been busy with some stuff recently but I'm free now.
Holy smoke, that'd be awesome!
I've read a few guides now but both things
  • flashing the L4T img to SD

    and

  • creating an emuNAND partition from SX OS boot menu
are each wiping the full SD card in the process so I can't figure out how to setup both at the same time.
You'd be my hero! :)
So if you could write a guide how to setup an emuNAND for both (Atmo and SX OS) and install L4T Ubuntu on the same SD card, you would make my day year!
 
Last edited by lordelan,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: Least they got head in the end