External HDD / Retrode Cardridge USB Reader / Mister

https://github.com/MiSTer-devel/Main_MiSTer/wiki

Moderators: Mug UK, Zorro 2, Greenious, spiny, Sorgelig, Moderator Team

DerNuntius
Atarian
Atarian
Posts: 3
Joined: Sat Dec 01, 2018 11:11 am

External HDD / Retrode Cardridge USB Reader / Mister

Postby DerNuntius » Tue Dec 04, 2018 4:29 pm

Hello,
Can I connect an external hard drive to the DE10 Nano? And do the cores have access to an external hard drive?
I have seen that you can connect a second SD card.
I want to build in a Cardridge Reader, either the Retrode or a homemade.
Retrode (The website is in german): https://www.dragonbox.de/de/71-retrode-2-modul-ausleser-4260416650091.html
Otherwise I have to build the reader with a Raspberry Pi or a Banana PI :(

Please help me :D

Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 5607
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: External HDD / Retrode Cardridge USB Reader / Mister

Postby Sorgelig » Tue Dec 04, 2018 4:38 pm

MiSTer is not a generic computer where you just plug the HDD and it will start to work immediately.
Linux part has some basic USB storage detection and mount to /media/usb. Then in Menu core you can switch to USB storage. Actually i didn't test this part long time as it's not so demanded feature.
Anyway, work with both SD and USB at the same time is not supported. Either only SD or USB (choose in Menu core).

There is no practical usage of cart reader on MiSTer. It's better to connect this reader and dump the cartridge you want. Then use dump in compatible core.

DerNuntius
Atarian
Atarian
Posts: 3
Joined: Sat Dec 01, 2018 11:11 am

Re: External HDD / Retrode Cardridge USB Reader / Mister

Postby DerNuntius » Tue Dec 04, 2018 4:53 pm

Oh thank you for the quick reply.
How did the developers of the Analogue Super Nt manage it? But that is probably a very different system like Mister.

Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 5607
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: External HDD / Retrode Cardridge USB Reader / Mister

Postby Sorgelig » Tue Dec 04, 2018 5:08 pm

It's not hard to add cart support if you design the FPGA board for this purpose.
Analogue Super Nt is just single console replica working only with SNES carts.
MiSTer is targeted to simulate many different systems where cart from one specific system is like fifth tire.

DerNuntius
Atarian
Atarian
Posts: 3
Joined: Sat Dec 01, 2018 11:11 am

Re: External HDD / Retrode Cardridge USB Reader / Mister

Postby DerNuntius » Tue Dec 04, 2018 5:48 pm

ok I understand. Another question and also my last xD. So far, there is no n64 porting on fpga, because it is too complex right? Will something like that come? So not now related to the Mister project.

Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 5607
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: External HDD / Retrode Cardridge USB Reader / Mister

Postby Sorgelig » Tue Dec 04, 2018 5:53 pm

DerNuntius wrote:ok I understand. Another question and also my last xD. So far, there is no n64 porting on fpga, because it is too complex right? Will something like that come? So not now related to the Mister project.

What will be in future will happen in future. I have no idea.

jayp76
Atari freak
Atari freak
Posts: 63
Joined: Wed Oct 17, 2018 10:09 am

Re: External HDD / Retrode Cardridge USB Reader / Mister

Postby jayp76 » Tue Apr 02, 2019 12:54 pm

I have bought a retrode and made some tests and observations.
For the first part it is "working". The retrode mounts on /media/usb0. But it is not mounting every time. Maybe more power needed from the power brick or the USB cables have an impact. I will test other cables and power brick when i have more time.
Also when it is working, it is almost all the time very slow. See the attached picture whe i try to copy over a rom.
I also tried it via symbolic link to load from the coresppondig core, but as mentioned, it super slow.
If it would work more reliable, you could write a daemon the checks if there are roms in this folder and copy the over or make a temporary symbolic link.
The Controller ports are also recognized (4 ports in total), but i had problems to mapp them correctly. Something did not register or made ghost button. Maybe cause the USB connection is slow.
The is a reset button on the retrode, when you swith the cartridges, but this does also not work properly under MiSTer.
Like is said earlier, i will test other cable when i have more time. Maybe my unit i faulty, but under Windows10 it is working as expected.

Here is the dmesg log:
[ 867.432984] usb 1-1.1: new full-speed USB device number 8 using dwc2
[ 867.535033] usb 1-1.1: New USB device found, idVendor=0403, idProduct=97c1, bcdDevice=25.00
[ 867.535044] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 867.535051] usb 1-1.1: Product: Retrode
[ 867.535058] usb 1-1.1: Manufacturer: Retrode UG
[ 867.536874] usb 1-1.1: can't set config #1, error -32

tried another usb port:
[ 919.144895] usb 1-1.6: new full-speed USB device number 9 using dwc2
[ 919.251934] usb 1-1.6: New USB device found, idVendor=0403, idProduct=97c1, bcdDevice=25.00
[ 919.251946] usb 1-1.6: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 919.251961] usb 1-1.6: Product: Retrode
[ 919.251968] usb 1-1.6: Manufacturer: Retrode UG
[ 919.253965] usb-storage 1-1.6:1.0: USB Mass Storage device detected
[ 919.257431] scsi host0: usb-storage 1-1.6:1.0
[ 919.264429] input: Retrode UG Retrode as /devices/platform/soc/ffb40000.usb/usb1/1-1/1-1.6/1-1.6:1.1/0003:0403:97C1.0006/input/input3
[ 919.266628] hid-generic 0003:0403:97C1.0006: input,hidraw0: USB HID v1.11 Joystick [Retrode UG Retrode] on usb-ffb40000.usb-1.6/input1
[ 919.272088] input: Retrode UG Retrode as /devices/platform/soc/ffb40000.usb/usb1/1-1/1-1.6/1-1.6:1.2/0003:0403:97C1.0007/input/input4
[ 919.272770] hid-generic 0003:0403:97C1.0007: input,hidraw3: USB HID v1.11 Mouse [Retrode UG Retrode] on usb-ffb40000.usb-1.6/input2
[ 941.153126] usb 1-1.6: reset full-speed USB device number 9 using dwc2
[ 941.251512] usb 1-1.6: can't restore configuration #1 (error=-32)
[ 941.259464] usb 1-1.6: USB disconnect, device number 9
[ 941.363115] usb 1-1.6: new full-speed USB device number 10 using dwc2
[ 941.467621] usb 1-1.6: New USB device found, idVendor=0403, idProduct=97c1, bcdDevice=25.00
[ 941.467632] usb 1-1.6: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 941.467640] usb 1-1.6: Product: Retrode
[ 941.467646] usb 1-1.6: Manufacturer: Retrode UG
[ 941.468740] usb-storage 1-1.6:1.0: USB Mass Storage device detected
[ 941.469849] scsi host0: usb-storage 1-1.6:1.0
[ 941.479336] input: Retrode UG Retrode as /devices/platform/soc/ffb40000.usb/usb1/1-1/1-1.6/1-1.6:1.1/0003:0403:97C1.0008/input/input5
[ 941.480882] hid-generic 0003:0403:97C1.0008: input,hidraw0: USB HID v1.11 Joystick [Retrode UG Retrode] on usb-ffb40000.usb-1.6/input1
[ 941.486327] input: Retrode UG Retrode as /devices/platform/soc/ffb40000.usb/usb1/1-1/1-1.6/1-1.6:1.2/0003:0403:97C1.0009/input/input6
[ 941.486922] hid-generic 0003:0403:97C1.0009: input,hidraw3: USB HID v1.11 Mouse [Retrode UG Retrode] on usb-ffb40000.usb-1.6/input2
[ 942.477376] scsi 0:0:0:0: Direct-Access Retrode Retrode 2 hw20 PQ: 0 ANSI: 0
[ 942.481387] sd 0:0:0:0: [sda] 262144 512-byte logical blocks: (134 MB/128 MiB)
[ 942.482641] sd 0:0:0:0: [sda] Write Protect is off
[ 942.482653] sd 0:0:0:0: [sda] Mode Sense: 00 00 00 00
[ 942.483992] sd 0:0:0:0: [sda] Asking for cache data failed
[ 942.489542] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 942.699356] sda:
[ 942.720402] sd 0:0:0:0: [sda] Attached SCSI removable disk


retrode.jpg
You do not have the required permissions to view the files attached to this post.

jayp76
Atari freak
Atari freak
Posts: 63
Joined: Wed Oct 17, 2018 10:09 am

Re: External HDD / Retrode Cardridge USB Reader / Mister

Postby jayp76 » Tue Apr 02, 2019 1:53 pm

I tried other usb cables, it only can copy the files with ca. max. 22kb/s

/var/log/messages:

Apr 2 15:38:35 MiSTer user.info kernel: [ 1010.609376] usb 1-1.6: USB disconnect, device number 98
Apr 2 15:38:35 MiSTer user.info usbmount[4140]: executing command: umount -l /media/usb0
Apr 2 15:38:35 MiSTer user.err kernel: [ 1010.682412] FAT-fs (sda): unable to read boot sector to mark fs as dirty
Apr 2 15:38:35 MiSTer user.info usbmount[4140]: executing command: run-parts /etc/usbmount/umount.d
Apr 2 15:38:39 MiSTer user.info kernel: [ 1014.705389] usb 1-1.2: USB disconnect, device number 3
Apr 2 15:38:42 MiSTer user.info kernel: [ 1017.009371] usb 1-1.3: USB disconnect, device number 4
Apr 2 15:38:53 MiSTer user.info kernel: [ 1028.200573] usb 1-1.3: new full-speed USB device number 99 using dwc2
Apr 2 15:38:53 MiSTer user.info kernel: [ 1028.303084] usb 1-1.3: New USB device found, idVendor=0403, idProduct=97c1, bcdDevice=25.00
Apr 2 15:38:53 MiSTer user.info kernel: [ 1028.303096] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Apr 2 15:38:53 MiSTer user.info kernel: [ 1028.303104] usb 1-1.3: Product: Retrode
Apr 2 15:38:53 MiSTer user.info kernel: [ 1028.303111] usb 1-1.3: Manufacturer: Retrode UG
Apr 2 15:38:53 MiSTer user.info kernel: [ 1028.305867] usb-storage 1-1.3:1.0: USB Mass Storage device detected
Apr 2 15:38:53 MiSTer user.info kernel: [ 1028.310606] scsi host0: usb-storage 1-1.3:1.0
Apr 2 15:38:53 MiSTer user.info kernel: [ 1028.319031] input: Retrode UG Retrode as /devices/platform/soc/ffb40000.usb/usb1/1-1/1-1.3/1-1.3:1.1/0003:0403:97C1.0314/input/input784
Apr 2 15:38:53 MiSTer user.info kernel: [ 1028.321473] hid-generic 0003:0403:97C1.0314: input,hidraw0: USB HID v1.11 Joystick [Retrode UG Retrode] on usb-ffb40000.usb-1.3/input1
Apr 2 15:38:53 MiSTer user.info kernel: [ 1028.326822] input: Retrode UG Retrode as /devices/platform/soc/ffb40000.usb/usb1/1-1/1-1.3/1-1.3:1.2/0003:0403:97C1.0315/input/input785
Apr 2 15:38:53 MiSTer user.info kernel: [ 1028.327458] hid-generic 0003:0403:97C1.0315: input,hidraw1: USB HID v1.11 Mouse [Retrode UG Retrode] on usb-ffb40000.usb-1.3/input2
Apr 2 15:38:54 MiSTer user.notice kernel: [ 1029.355850] scsi 0:0:0:0: Direct-Access Retrode Retrode 2 hw20 PQ: 0 ANSI: 0
Apr 2 15:38:54 MiSTer user.notice kernel: [ 1029.364819] sd 0:0:0:0: [sda] 262144 512-byte logical blocks: (134 MB/128 MiB)
Apr 2 15:38:54 MiSTer user.notice kernel: [ 1029.365408] sd 0:0:0:0: [sda] Write Protect is off
Apr 2 15:38:54 MiSTer user.debug kernel: [ 1029.365426] sd 0:0:0:0: [sda] Mode Sense: 00 00 00 00
Apr 2 15:38:54 MiSTer user.err kernel: [ 1029.369726] sd 0:0:0:0: [sda] Asking for cache data failed
Apr 2 15:38:54 MiSTer user.err kernel: [ 1029.375242] sd 0:0:0:0: [sda] Assuming drive cache: write through
Apr 2 15:38:54 MiSTer user.info kernel: [ 1029.591732] sda:
Apr 2 15:38:54 MiSTer user.notice kernel: [ 1029.611761] sd 0:0:0:0: [sda] Attached SCSI removable disk
Apr 2 15:39:20 MiSTer daemon.notice wpa_supplicant[1259]: wlan0: WPA: Group rekeying completed with 44:4e:6d:99:60:81 [GTK=CCMP]
Apr 2 15:39:20 MiSTer user.warn kernel: [ 1055.481160] RTL871X: send eapol packet
Apr 2 15:39:20 MiSTer user.warn kernel: [ 1055.484640] RTL871X: set group key camid:5, addr:44:4e:6d:99:60:81, kid:2, type:AES
Apr 2 15:39:47 MiSTer user.info usbmount[4184]: executing command: mount -tvfat -osync,noexec,nodev,noatime,nodiratime /dev/sda /media/usb0

Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 5607
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: External HDD / Retrode Cardridge USB Reader / Mister

Postby Sorgelig » Tue Apr 02, 2019 2:03 pm

It's possible the USB host driver is not so compatible with this device. May be device uses some specific tricks not working well on DE10-nano's USB host.

jayp76
Atari freak
Atari freak
Posts: 63
Joined: Wed Oct 17, 2018 10:09 am

Re: External HDD / Retrode Cardridge USB Reader / Mister

Postby jayp76 » Tue Apr 02, 2019 2:05 pm

fdisl -l:

Disk /dev/sda: 128 MiB, 134217728 bytes, 262144 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xaa55aa55

Device Boot Start End Sectors Size Id Type
/dev/sda1 2857740885 5715481769 2857740885 1.3T 55 EZ-Drive
/dev/sda2 2857740885 5715481769 2857740885 1.3T 55 EZ-Drive
/dev/sda3 2857740885 5715481769 2857740885 1.3T 55 EZ-Drive
/dev/sda4 2857740885 5715481769 2857740885 1.3T 55 EZ-Drive

User avatar
Newsdee
Atari God
Atari God
Posts: 1534
Joined: Fri Sep 19, 2014 8:40 am

Re: External HDD / Retrode Cardridge USB Reader / Mister

Postby Newsdee » Tue Apr 02, 2019 2:19 pm

Are the gamepads ports recognized? If not that would suggest the Retrode doesn't present itself as a USB hub, which could cause problems.

jayp76
Atari freak
Atari freak
Posts: 63
Joined: Wed Oct 17, 2018 10:09 am

Re: External HDD / Retrode Cardridge USB Reader / Mister

Postby jayp76 » Tue Apr 02, 2019 2:20 pm

@Sorgelig

are there any mount options or switches i can try?

Just to be clear, my posts are only for educational purposes. I don't need the retrode to run on the MiSTer. I was just curious what is working.

jayp76
Atari freak
Atari freak
Posts: 63
Joined: Wed Oct 17, 2018 10:09 am

Re: External HDD / Retrode Cardridge USB Reader / Mister

Postby jayp76 » Tue Apr 02, 2019 2:22 pm

@Newsdee

As far as i can see they are recognized. The are also somewhat customizable in the retrode.cfg.

standard is:
[HIDMode] 1 ;

0: Off;
1: 4Joy+Mouse;
2: 2Joy;
3: KB;
4: iCade

Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 5607
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: External HDD / Retrode Cardridge USB Reader / Mister

Postby Sorgelig » Tue Apr 02, 2019 3:01 pm

jayp76 wrote:@Sorgelig

are there any mount options or switches i can try?

Just to be clear, my posts are only for educational purposes. I don't need the retrode to run on the MiSTer. I was just curious what is working.


MiSTer is configured to automount USB storage. But it's just for simple USB sticks. It may be not optimal for multifunctional device.
You can unmount it from command line and mount manually. I cannot tell which exactly mount option will work well. It's standard linux, so you can read the mount manual in internet and try.

jayp76
Atari freak
Atari freak
Posts: 63
Joined: Wed Oct 17, 2018 10:09 am

Re: External HDD / Retrode Cardridge USB Reader / Mister

Postby jayp76 » Wed Apr 10, 2019 4:21 pm

Unfortunately none of the mounting options i tried would remedy the slowness. At this point the retrode can't be used productively.

Here is the only information i found around the web, regarding slowness. But i am not sure if this explanation is legit.

Raspberry Pi Slowness Issue solved
« on: 06/Sep/2015 11:07:17 PM »
So, while working on the RetroPi-Setup, I finally found the reason for the slowness (50kb/s) when transferring games.

It's actually a common Raspberry Pi issue: When connecting a USB 1.1 device to the 2.0 hub of the Pi, there are packet drops... which result in the slow speed.

Forcing the Raspberry Pi to run in 1.1 mode fixes the slowness issue!
Of course, 2.0 devices will also run slower then (so USB Sticks, harddisks, etc.), but the Retrode runs full speed then.

To do that, add the following kernel parameter to the boot-script:

dwc_otg.speed=1

(Add that into /boot/cmdline.txt)

That's it :)


Source: http://forum.retrode.org/index.php?topic=306.0

@DerNuntius

Maybe this link might interest you.

https://pyra-handheld.com/boards/threads/the-retropi.75611/page-4#post-1333368

Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 5607
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: External HDD / Retrode Cardridge USB Reader / Mister

Postby Sorgelig » Wed Apr 10, 2019 6:24 pm

You can try this parameter.
You need to enter u-boot command prompt.
Connect USB console, and while holding down "ESC" key (on PC keyboard, not MiSTer) press the reset on MiSTer. U-boot doesn't wait for key, so it must be already pressed while rebooting.
Then in u-boot command prompt you can edit the environment string of boot parameters.
It needs some experience in u-boot command prompt. Hope you will be able to do it.

For obvious reason i cannot test it myself.


Return to “MiSTer”

Who is online

Users browsing this forum: comfysofa and 6 guests