tpunix / SAROO

SAROO is a SEGA Saturn HDloader
332 stars 38 forks source link

About saroo, for newbies, how to get debug and program saroo #27

Closed luisredo closed 4 months ago

luisredo commented 11 months ago

Hello everyone, I am writing to you to obtain a little information, how could I test my saroo, I think it is bricked and I would like to know how to check the FPGA and the stm32, I would also like to know If there is the possibility of obtaining debug to see if saroo starts well, mounts the SD drive and obtains information from the console.

Thank you very much and greetings. Sorry for my English sponsored by Google translate.

tpunix commented 11 months ago

Connect a USB-Serial dongle to SAROO(1Mbps), you will see MCU infomation. The led on your board is lighting, so they are works fine, I think. What the last version of your board?

luisredo commented 11 months ago

I have version 1.32F, what I don't know is the baudrate(1Mbps) or what the RX and TX pins are. In another post I read things that clarified a little more for me, such as being able to flash the nand without having to use quartus, putting the bin directly into the FPGA flash. Can the stm32 be programmed with a st-link? I saw you commented that you used jlink, I'm not sure if it's the same thing. saroo_pines

I connect the serial USB to the saroo and I get this through the console.

22:34:25.586 -> SSMaster start! 2023100522:34:25.586 -> 22:34:25.586 -> No SDCARD insert!22:34:25.586 -> disk_read: pdrv=0 sector=00000000 count=1 22:34:25.586 -> retv=ffffffff22:34:25.586 -> disk_read: pdrv=0 sector=00000000 count=1 22:34:25.586 -> retv=ffffffff22:34:25.586 -> disk_read: pdrv=0 sector=00000000 count=1 22:34:25.586 -> retv=ffffffff22:34:25.586 -> disk_read: pdrv=0 sector=00000000 count=1 22:34:25.586 -> retv=ffffffff22:34:25.586 -> Mount SDFS: 00000001 22:34:25.586 -> 22:34:25.773 -> FPGA config done! 22:34:25.773 -> FPGA state:22:34:25.773 -> config done: 1 22:34:25.773 -> init done: 122:34:25.773 -> status: 1 22:34:25.773 -> 22:34:25.773 -> disk_read: pdrv=0 sector=00000000 count=1 22:34:25.773 -> retv=ffffffff22:34:25.773 -> disk_read: pdrv=0 sector=00000000 count=1 22:34:25.773 -> retv=ffffffff22:34:25.773 -> disk_read: pdrv=0 sector=00000000 count=1 22:34:25.773 -> retv=ffffffff22:34:25.773 -> disk_read: pdrv=0 sector=00000000 count=1 22:34:25.773 -> retv=ffffffff22:34:25.773 -> NO bootrom file found! 22:34:25.773 -> stm32> {00}

Another SD inserted reported

22:42:18.368 -> 22:42:18.368 -> SSMaster start! 20231005 22:42:18.368 -> 22:42:18.368 -> SDCARD insert! 22:42:18.647 -> CMD_08: retv=00000000 resp0=000001aa22:42:19.018 -> V2.0: Yes 22:42:19.018 -> SDHC: Yes22:42:19.018 -> Name: SDABC 22:42:19.018 -> Blen: 51222:42:19.018 -> Blks: 122168320 22:42:19.018 -> Size: 61084160 K22:42:19.018 -> CMD_07: resp=00000700 22:42:19.018 -> CMD_16: resp=0000090022:42:19.018 -> ACMD06: resp=00000920 22:42:19.018 -> CMD13: resp=0000090022:42:19.018 -> Mount SDFS: 0000000d 22:42:19.018 -> 22:42:19.018 -> FPGA config done! 22:42:19.018 -> FPGA state:22:42:19.018 -> config done: 1 22:42:19.018 -> init done: 122:42:19.018 -> status: 1 22:42:19.018 -> 22:42:19.018 -> NO bootrom file found! 22:42:19.018 -> stm32> {00}{01}

tpunix commented 11 months ago

There has error msg:

Mount SDFS: 0000000d "FR_NO_FILESYSTEM, / (13) There is no valid FAT volume /"

Please check your SD Card.

tpunix commented 11 months ago

"Can the stm32 be programmed with a st-link? " Yes. Any xLink can be use.

luisredo commented 11 months ago

In other memories I get others but in SDFS it always shows 000000

SSMaster start! 20231005

SDCARD insert! CMD_08: retv=00000000 resp0=000001aa V2.0: Yes SDHC: No Name: SD01G Blen: 512 Blks: 1888256 Size: 944128 K CMD_07: resp=00000700 CMD_16: resp=00000900 ACMD06: resp=00000920 CMD13: resp=00000900 Mount SDFS: 00000000

FPGA config done! FPGA state: config done: 1 init done: 1 status: 1

Found Saturn bootrom file. Size 00060000 f_read: retv=0 rv=00060000 stm32> {00}

SSMaster start! 20231005

SDCARD insert! CMD_08: retv=00000000 resp0=000001aa V2.0: Yes SDHC: Yes Name: SA32G Blen: 512 Blks: 60637184 Size: 30318592 K CMD_07: resp=00000700 CMD_16: resp=00000900 ACMD06: resp=00000920 CMD13: resp=00000900 Mount SDFS: 00000000

FPGA config done! FPGA state: config done: 1 init done: 1 status: 1

Found Saturn bootrom file. Size 00060000 f_read: retv=0 rv=00060000 stm32> {00}

SSMaster start! 20231005

SDCARD insert! CMD_08: retv=00000000 resp0=000001aa V2.0: Yes SDHC: Yes Name: SA04G Blen: 512 Blks: 7733248 Size: 3866624 K CMD_07: resp=00000700 CMD_16: resp=00000900 ACMD06: resp=00000920 CMD13: resp=00000900 Mount SDFS: 00000000

FPGA config done! FPGA state: config done: 1 init done: 1 status: 1

Found Saturn bootrom file. Size 00060000 f_read: retv=0 rv=00060000 stm32> {00}Total discs: 9

luisredo commented 10 months ago

There has error msg:

Mount SDFS: 0000000d "FR_NO_FILESYSTEM, / (13) There is no valid FAT volume /"

Please check your SD Card.

hablando con colegas en telegram, les comparti el codigo, y dicen que es raro que detecte el bootrom file en esa direccion de memoria Found Saturn bootrom file. Size 00060000, pero que no monte el SDFS como dices.

English translate:

Talking to colleagues on Telegram, I shared the code with them, and they say that it is strange that it detects the bootrom file at that memory address Found Saturn bootrom file. Size 00060000, but it does not mount the SDFS as you say.