Nuck-TH / fwTool

Work on improving fwTool and making it a bit more safe
10 stars 3 forks source link

Could be add 3ds compatibility? (Twloader and/or dsihomebrewmenu) #3

Closed cualquiercosa327 closed 7 years ago

cualquiercosa327 commented 7 years ago

Hello,thanks for your mod adding some checking. Yesterday i tried to load this file on my New 3ds xl using both twloader and dsihomebrew menu,but both crashed: both screen goes to black. I know i can dump all the 3ds partitions with other tools but i am interesting on a simple way to extract the CID,console id and dsi nand for use on no$gba. Thanks

Nuck-TH commented 7 years ago

I belive that this app must be started on 3ds from dsiware exploit as on dsi, Support for 3ds TWLN sizes already present. But i haven't 3ds to test current situation and/or further changes.

cualquiercosa327 commented 7 years ago

Hi again,i have test it and the same problem with Nand and Emunand : both screen keep black. i am using "hbmenu" .I enter on the menu and select the nds file. Also i have tried twloader,where i also tried changing the cf_ds.nds with the file renamed "NDS_PATH = fat:/nds/cf_ds.nds"

can you upload some version with debug,errors printing for sending them? (I dont know why it said i closed this.i have deleted the first message trying to open again(maybe one can only post once)

rereprep commented 7 years ago

Tried on my New 3DS XL with sudokuhax installed. Both screen go black for a few seconds and then it boots. Dumping stuff works fine too (havent verified the integrity of files with other dumping methods, but all seems fine from surface.)

cualquiercosa327 commented 7 years ago

Hi,after read rereprep post i decided to install sudokuhax and test. It is very curious because at the begining it did not work;

I have used several "boot.nds" on the root of the card. The first was the original which should load the 'DSi homebrew Channel' but has the problem of <2gb SD cards and it doesnt work.(mine is bigger) Also i found two modded versions by zoogie which should no have problem with the SD card size.The latest version load the "new" dsi homebrew chanel but when i choose the file it crashed. At last i decided rename your file as boot.nds and put on the root.And it worked!

--Problems:

The menu run,it made the backup which i hope could test soon on the emulator but...

1)The CID dump are 16 bytes being all zero .

2)The nand dump it create is huge (nand_n3ds.bin) i think it could be the full 3ds nand (i could no check and confirm this because my sd card was no enought space for finish the dump,but when it stopped was 432 Mb > 240 Mb of DSi.mmc )

--Working: The bios files it dump are ok.They are the same i use on no$gba.

Nuck-TH commented 7 years ago
cualquiercosa327 commented 7 years ago

Hello,i know Homebrew channel is obsolete,but the "modded versions" seems support big cards (I am no sure about extended header). But i had to install sudokuhax for loading fwTool : i dont know why it doesnt work with the other launcher (I have also tried HBmenu but it doesnt load it)..I think SRLoader is for dsi console and it is the equivalent of TWloader ,no?

I have some questions,the first is why your program is able to access to more nand than dsi-nand.it is suppoused it load as a simple dsi program and it should not access other extra resources.

About the TWLN size ,i think they have the same size.Look at : https://3dbrew.org/wiki/Flash_Filesystem

-As example the DSI.mmc i use on no$gba is 245.760 KB .if i decrypt ,it has 3 partitions MBR: Partition 0 - 205.9 Mb (DOS 3.31+FAT 16) Partition 1 - 32.7 Mb (DOS 3.31+FAT 16) Partition 2 - 209.5 KB (Fat 12)

-According the website i posted (and the info i had on my new 3ds xl with goodmode9 /dumping partitions with decrypt9wip and others...) they have the same size.

From GodMode9:

1 SYSNAND CTRNAND 1.0 Gb or "Partition 0x0 0x200" it has the NCSD header . **** This block also contains the TWL-NAND MBR partition table. ".The MBR table is about 1.3 Mb

2 SYSNAND TWLN 143.6 Mb -->They are 34.1 Mb less than the same partition on dsi.*** "Particion 0" twln 0x00012E00 0x08FB5200 0x03 TWL-NAND FAT16 File System. (DSi)

3 SYSNAND TWLP 32.6 Mb --> The same size and file format as dsi "Particion 1" twlp 0x09011A00 0x020B6600 0x03 TWL-NAND PHOTO FAT12 File System. (DSi)

For finishing,the partition 2 "Partition 2 - 209.5 KB (Fat 12) " i think is extracted from :

3ds : nand 0x0B95CA00 0x2F3E3600 0x04 CTR-NAND FAT16 File System.

new3ds: nand 0x0B95AE00 0x41D2D200 0x05 CTR-NAND FAT16 File System.

***The 34.1 Mb of diference between twln dsi and twln 3ds is explained on the web also: The structure of twln/title is exactly the same as CTR NAND/SD, except the .cmd file is a cleartext file. (This is likely a dummy file)

The data directory under system titles' /title directory does not exist, this likely only exists for DSiWare. The directory names titleID-High used under twln/title is from DSi.

-About CID and console-id i am no sure how it could be extracted.I must see how it is extracted from dsi.

Nuck-TH commented 7 years ago

Please adress your questions to actual author of program or changes related to implementation of writing nand. Behaviour on 3ds is out of my scope of view and knowledge, so i can't discuss this further.

MarioMasta64 commented 7 years ago

just to make it clear. everything is done on the dsi minus copying twln:/title/ you do not need this tool on your 3ds. however 3ds support would be cool. thank you. (this is referring to the guy you told to contact the author of the program spoke to me regarding what he was trying to do (being my script)) also maybe he is confused between talking of my script. and talking to the fwtool author?