RELEASE EmuTool - Move partition Emu on another SD, Switch Emu type on SXOS and more

Discussion in 'Switch - ROM Hacking, Saves, Translations & Tools' started by TheyKilledKenny, Oct 23, 2019.

  1. TheyKilledKenny
    OP

    TheyKilledKenny Member

    Newcomer
    3
    Dec 5, 2015
    Italy
    Thank you for reporting.
    From what you tell me it seems that trying to solve some error, now there are bad errors at the base.
    This weekend I will start all over again with the tests in order to check all the possible backups and restore combinations between files and partitions (it will take some time :sad:).

    Wow! Thank you very much for spending your time, I was aware of wbemdisp.TLB, stdole2.tlb and MSVBVM60.DLL, but know nothing about C:\Windows\Fonts\staticcache.dat, I'm going to investigate.
    Thank you also for the 08 file, which should not exist.

    I'm sorry for these bugs.

    Please wait for the new version, hoping it will be resolved.

    Ciao!
     
    eco95, SpaceJump, Muxi and 3 others like this.
  2. pcwizard7

    pcwizard7 GBAtemp Advanced Fan

    Member
    4
    Aug 2, 2013
    Australia
    thankyou for this taking the time to improve your app. if it any time u feel like its too much ask other developers for help as I see this as becoming an essential tool for switch homebrew
     
  3. TheyKilledKenny
    OP

    TheyKilledKenny Member

    Newcomer
    3
    Dec 5, 2015
    Italy
    If you were trying to restore a file Emu in an partition Emu, maybe you can ignore this error.
    The program try to find the next file (08) and fails, but the other files are well copied (I'm going to fix it)
    Remember to enable the partition for sxos

    Generally, if anyone is trying to restore from files (sx, atmo or hekate) to partition or to file, the same error will happen.
    EmuTool try to load one file more then needed, but the partition should be restored correctly.

    About the overflow error, seems that @Unkouh have found the problem, I'm still investigating...

    Ciao!
     
    eco95, 210modz and Muxi like this.
  4. Muxi

    Muxi GBAtemp Fan

    Member
    6
    Jun 1, 2016
    Germany
    is there already progress?
     
  5. TheyKilledKenny
    OP

    TheyKilledKenny Member

    Newcomer
    3
    Dec 5, 2015
    Italy
    No progress about the font cache problem. I did not find a way to bypass that error, so today I'll release a version that solves the error at the end of a partition restore from file.
    I'm going to add the ability to read a not splitted hekate bckup (in the current release only a splitted backup can be read) and then start again with final tests of backups and restores.
    At the end of this day I'll release source and bin.
     
  6. TheyKilledKenny
    OP

    TheyKilledKenny Member

    Newcomer
    3
    Dec 5, 2015
    Italy
    Added a new version with partition selection.
    For Atmosphere a 16Mbyte offset will be automatically added to the real partition starting sector number, I see that Hekate\Nyx do it everytime I create a new partition emu using hekate menu tool.
    The text field is alway editable if you want to change sector, it accept decimal and Hex values using the 0xaaaa format.

    Sources in the second post.

    Please report errors if you have the time to test.

    Ciao!
     
    pcwizard7, Muxi and SpaceJump like this.
  7. Muxi

    Muxi GBAtemp Fan

    Member
    6
    Jun 1, 2016
    Germany
    I want to backup an Atmosphere partition emuMMC and restore it to another SD card. First I saved the emuMMC as Atmosphere file variant on the PC. This also worked so far. Afterwards I prepared the new SD card with Mini Tool PW and then restored the previously saved emuMMC on the unformatted partition intended for the emuMMC data and reactivated it via Hekate. But it doesn't boot. What could be the reason?
    In addition, I think the structure of the stored Atmosphere nand Image files is that of the SX OS (10 files). Wouldn't it have to be 17 files?
    2019-11-18 22_02_50-eMMC.jpg


    EDIT:
    I have a guess why the emuMMC doesn't boot! The emuMMC partition is created on the back of my SD card. An emuMMC created by Hekate can read a partition that was created on the SD card at the back as well as at the front. The SX OS on the other hand can only read a front created partition.
    But since the backup created with EmuTools v0.2.7 is an SX OS file variant, although it should be the Atmosphere file variant by selection, it is also restored as an SX OS partition. But since SX OS can only recognize the partition if it is on the front of the SD card, the emuMMC does not boot either.

    But even if a SX OS File Backup was created (although it should have been an Atmposphere File Backup), this shouldn't really matter, because Atmosphere hidden Partiton was chosen as the target for the recovery, which doesn't seem to be the case either. Possibly v0.2.7 contains a bug that only performs SX OS based operations.

    partition.jpg
     
    Last edited by Muxi, Nov 19, 2019
  8. TheyKilledKenny
    OP

    TheyKilledKenny Member

    Newcomer
    3
    Dec 5, 2015
    Italy
    There are no difference between Emunand, emuMMC and hekate backup, they are all a byte copy of your nand, splitted in various ways.
    You can boot an SX partition with Atmosphere simply using 0x2 as starting sector in emummc.ini file.
    EmuTool didn't apply any trasformation to the data.
    About your question of the 17 files, Atmosphere can read a file emu splitted in quite every way, but I used the same size that hekate use when it create a file Emu from emummc menu.
    My last test before releasing 0.2.7 was from SX emu on file restored to an SX emu on partition, than dumped to Atmo files and at the end restored to Atmo partition and all 4 of them booted succesfully (all directly on SD card without passing from Hard Disks or other support)

    Does your dumped files boot as emu on file with Atmosphere? (very slow compared to partition emu in Atmosphere)

    I think the problem was generated when you tried to reactivate the new Emu via Hekate, two consideration about that:
    1- there is no need to activate the emu, the generated emummc.ini file is ready to boot
    2- even if EmuTool replicate exactly the folder structure, the file raw_based is ok and Atmosphere boot the emu correctly, sometime hekate is not able to recognize the emu in emuMMC selection menu, so you are not able to activate it from the menu if you deactivate it.
    If you use the emummc migration feature of the hekate menu, most of the time it resolves.
    I'm currently working on it.

    Now, to not do the whole procedure again, first try with the migration tool in hekate menu, remember to copy your original emummc Nintendo folder.
    If this not solve please check on Minitool the properties of the partition you created and write me the starting block and SD total size.
    Please write me also the content of you current emummc.ini file you can find in sdcard, inside emummc folder.

    Ciao!
     
    Last edited by TheyKilledKenny, Nov 19, 2019
    Muxi likes this.
  9. Kaybag182

    Kaybag182 GBAtemp Regular

    Member
    3
    Oct 12, 2018
    Australia
    I use SXOS and currently have a ‘files on sysnand’ emunand and I want to move that to my sd card.
    I tried using sx bootloader to do this but when it finished copying I could longer load games.
    Can this tool do that? Or is it not able to access files on nand?
     
  10. Muxi

    Muxi GBAtemp Fan

    Member
    6
    Jun 1, 2016
    Germany
    @TheyKilledKenny Thanks for this information. I have now set up a SX OS partition emuNand, because I want to use Atmosphere on it as well. A backup and restore worked great! So that Atmosphere has access to the shared content under this emuNand, I changed the path assignment for the Nintendo folder Path to Emutendo.
     
  11. TheyKilledKenny
    OP

    TheyKilledKenny Member

    Newcomer
    3
    Dec 5, 2015
    Italy
    No, sorry. This run on windows and Can't access the Sysnand.
    I never had an Emu on sysnand, so I'm not able to help.
    You told me about files on Sysnand, so if you can see Emunand files, maybe you can moount your sysnand using hackdiskmount and retrieve the files.
    Maybe is better if you save your savegame with Checkpoint and redo from start your emu.
     
  12. Kaybag182

    Kaybag182 GBAtemp Regular

    Member
    3
    Oct 12, 2018
    Australia
    thanks for the response. Yeah I ended up just backing up all my saves and starting fresh. Now everything works fine.
     
  13. TheyKilledKenny
    OP

    TheyKilledKenny Member

    Newcomer
    3
    Dec 5, 2015
    Italy
    I'm glad you succeed.
    If your goal is only to be able to load a Partition Sx Emunand with Atmosphere, I suggest to not duplicate the emunand in 2 different partition (maybe I misunderstood what you wrote), but to load the same partition with the two CFW.
    The best way to let Atmosphere boot the same SX partition is to customize the file emummc.ini as the following:

    [emummc]
    enabled = 1
    sector = 0x2
    nintendo_path = Emutendo

    At the moment loading the SX partitition with Atmosphere (fusee-primary payload) is the only way I know to install incognito on an sx Emunand to 9.0.1

    Ciao!
     
  14. Muxi

    Muxi GBAtemp Fan

    Member
    6
    Jun 1, 2016
    Germany
    That's exactly what I did! Running two CFWs on a single partition emuNand.

    I think this is basically possible on an emuNand/emuMMC partition, but only using Incognito_RCM!
     
    Last edited by Muxi, Nov 22, 2019
  15. NeroAngelo

    NeroAngelo Clueless Importer

    Member
    5
    Dec 31, 2003
    Libya
    Windows Defender deletes this app for containing Trojan Spursint.F!cl.

    False Positive? or actually infected?
     
  16. TheyKilledKenny
    OP

    TheyKilledKenny Member

    Newcomer
    3
    Dec 5, 2015
    Italy
    False.
    You can find source code in second post.
    EmuTool use low level windows functions to access SD sectors.

    Ciao!
     
    NeroAngelo likes this.
  17. willhack

    willhack Advanced Member

    Newcomer
    2
    Apr 27, 2018
    United States
    i used the tool to transfer the hidden partition to a new sdcard it created a sxos/emunand folder hwoever my switch wont boot into it. how do i make it work.
     
  18. TheyKilledKenny
    OP

    TheyKilledKenny Member

    Newcomer
    3
    Dec 5, 2015
    Italy
    I need some more details...

    Do you have an SX OS Emunand and you have tryed to backup to SX OS Files?
    On the new SD, do you want to use SXOS?
    If yes then repeat from start and follow this steps.
    • Start backup hidden partition Emunand Hidden partition SXOS as source and SXOS file as target.
    • Check you have selected the correct sd card reader as source.
    • If you have 30gb space on your old SD you can choose the root of SD as destination folder (slower, but there is no need to copy and past to/from hdd)
    • At the end of the process check that all file are present in sxos/Emunand (boot0.bin, boot1.bin, full.00.bin to full.07.bin)
    • Disable the SX Hidden partition Emunand on the old sd card using EmuTool and check if it boots. If yes the backup is good.
    • If you don't have enaugh space on the old SD, then format the new SD, copy boot.dat, license.dat and the sxos/Emunand folder created by EmuTool and check if it boots.
    You can stop here and keep using Emunand on Files or...
    Do you want to use the hidden partition Emunand on the new SD?
    • create a partition of more than 29GByte (30GByte is more than enough) as first partition
    • restore the files with EmuTool
    • remember to enable the hidden partition Emunand (select the new sd card as source and the buttons will appear).

    If you do not have a tool to create the partition you can:
    • boot SX OS menu (keep vol+ pressed if menu does not appear at boot) and start a hidden partition Emunand creation using
    • hit cancel as soon as it start copyng boot0 and boot1.
    • Restore your previously backupped Emunand to SX OS Hidden Partition Emu as target in Emutool.

    Please check if some file could be get corrupted during copy operation.

    Let me know.

    Ciao!
     
    Last edited by TheyKilledKenny, Dec 2, 2019
  19. grootus

    grootus Newbie

    Newcomer
    1
    Oct 23, 2018
    United States
    EmuTool v0.2.8 could not create emuMMC from Hekate NAND backup files: BOOT0, BOOT1, RAWNAND.BIN. Renaming to RAWNAND.BIN.00 still not work.
     
  20. TheyKilledKenny
    OP

    TheyKilledKenny Member

    Newcomer
    3
    Dec 5, 2015
    Italy
    Rename rawnand.bin in 00 without extension.

    Answering your other question about Minitool Partition Wizard:

    WARNING!!!
    Check and, after you are sure, check again that all operation are done on SD Card and NOT on your HDD!!!
    If you select your hard disk, the PC will no longer work.


    1 - Backup your SD content if needed
    2 - Open Minitool Partition Wizard
    3 - locate your SD card Drive in the bottom windows (pay attention!)
    4 - if you have only one partition try to rightclick on the partition and use the Move/Resize tool to get a 30GB space AFTER the current partition, if yes skip to step 11
    5 - If it not allow you to resize partition, then rightclick and delete partition
    6 - Right click on SD empty space and select create
    7- Create as primary partition, filesystem Fat32 or Exfat as you prefer at the beginning of SD card
    8 - Leave 30 GB free space at the and of your SD card in the last field and click OK
    9 - On the upper left menu bar click on Apply. WARNING!!! Double check you have choosen the SD card!!!!!
    10 - Now Format the partition using right click and choose the Fat32 or Exfat and Apply
    11 - Put sx, hekate or kosmos files
    11 - Right click on the remaining empty space and select create.
    12 - create a new Primary Partition Fat32 with no drive letter assigned
    13 - Apply
    14 - Don't format this partition
    15 - Right click on the new partition, select property and go to Partition Info
    16 - Copy the First Physical Sector number
    17 - use this number when asked for destination Partition Sector in Emutool (or any other program you are using)

    Ciao!
     
Quick Reply
Draft saved Draft deleted
Loading...