gotek on-board spi-flash as usb stick
gotek on-board spi-flash as usb stick
hi, jeff,
is there possibility to use the on board spi-flash serving as usb stick? accordingly the original usb port will be connected to computer as external mass storage device. or even better, you can leave the option into the setting menu(of course we have to install the spi-flash to the empty space by ourselves).
by that, it's very convenient if we only hook up the machine and computer with a usb cable. we can edit the document stored in the flash at the computer side, and machine can draw out the document at machine side.
best regards
is there possibility to use the on board spi-flash serving as usb stick? accordingly the original usb port will be connected to computer as external mass storage device. or even better, you can leave the option into the setting menu(of course we have to install the spi-flash to the empty space by ourselves).
by that, it's very convenient if we only hook up the machine and computer with a usb cable. we can edit the document stored in the flash at the computer side, and machine can draw out the document at machine side.
best regards
Re: gotek on-board spi-flash as usb stick
All is possible, but is it really interesting ? I mean that this can take me important among of time to achieve this.tooty wrote: ↑Sat Dec 21, 2019 10:36 amhi, jeff,
is there possibility to use the on board spi-flash serving as usb stick? accordingly the original usb port will be connected to computer as external mass storage device. or even better, you can leave the option into the setting menu(of course we have to install the spi-flash to the empty space by ourselves).
by that, it's very convenient if we only hook up the machine and computer with a usb cable. we can edit the document stored in the flash at the computer side, and machine can draw out the document at machine side.
best regards
Re: gotek on-board spi-flash as usb stick
actually i'm thinking of possibility of freeing the usb port to wifi adapter so that the computer in the office can transfer the document to the gotek via network...
Jeff wrote: ↑Sat Dec 21, 2019 11:03 amAll is possible, but is it really interesting ? I mean that this can take me important among of time to achieve this.tooty wrote: ↑Sat Dec 21, 2019 10:36 amhi, jeff,
is there possibility to use the on board spi-flash serving as usb stick? …
by that, it's very convenient if we only hook up the machine and computer with a usb cable. we can edit the document stored in the flash at the computer side, and machine can draw out the document at machine side.
Re: gotek on-board spi-flash as usb stick
Then there is already something working : Use an RaspberryPi Zero-W to emulate an usb stick. And connect to the RPi to update the virtual stick content. Tried it some years ago and this is working fine !


Jeff wrote: ↑Mon Jul 23, 2018 4:05 pmThis is interesting because this is exactly what i tried some weeks ago, this setup works perfectly with the HxC firmware for gotek.
Attached is the proof-of-concept i made for the tests.
Basically all files added by FTP is automatically added to the the virtual usb stick.
I used my custom Linux setup/build to have a faster boot on the Raspberry Pi :
https://github.com/jfdelnero/LinuxFromScratch
https://github.com/jfdelnero/LinuxFromS ... o_w/config
I plan to add the HxC Software/library into the Raspberry Pi to convert on the fly all the currently non-supported images + the direct FAT images generation from a network drive.
This is something i already tried some years ago :
https://www.youtube.com/watch?v=R9wGYqrM-68
https://www.youtube.com/watch?v=4CC7_IDqVnQ
https://www.youtube.com/watch?v=wJEekEhZtD8
Re: gotek on-board spi-flash as usb stick
Re: gotek on-board spi-flash as usb stick
BTW i think i will prepare a dd image of my RPI Zero W sdcard. It is currently working as an access point but the network setting can be changed as you want .
Re: gotek on-board spi-flash as usb stick
I have a few old unused RPi model b's with 256mb.
I would be quite interested in an image, Im not particularly clever with software and only have a rudimentary understanding of command line but would find it a great help to network the emulator.
Would it be possible and or feasible to network multiple HXC devices through a hub of some kind?
regards
I would be quite interested in an image, Im not particularly clever with software and only have a rudimentary understanding of command line but would find it a great help to network the emulator.
Would it be possible and or feasible to network multiple HXC devices through a hub of some kind?
regards
Re: gotek on-board spi-flash as usb stick
Thanks to remind me this. I will prepare a DD image.
The most standard way is to setup check RPi Zero as wifi client and make them to connect automatically to an access point. Then each "HxC Gotek" will be reachable through the network.
Re: gotek on-board spi-flash as usb stick
This is finally done :
https://hxc2001.com/download/floppy_dri ... ulator.zip
Use the usb device port to connect the Raspberry Pi Zero W to the Gotek.
You can access the virtual stick through Wifi. The Raspberry is by default an access point. (HxC2001_RPIZeroW SSID)
The following services are enabled in the image :
IP : 192.168.100.1
Samba/Windows Share -> login : data, password : data
ftp -> login : data, password : data
ssh -> login : data, password : data / login : root, password : root
http -> just a test page for the moment.
I will document and make further developments on this new powerful Gotek companion.

https://hxc2001.com/download/floppy_dri ... ulator.zip
Use the usb device port to connect the Raspberry Pi Zero W to the Gotek.
You can access the virtual stick through Wifi. The Raspberry is by default an access point. (HxC2001_RPIZeroW SSID)
The following services are enabled in the image :
IP : 192.168.100.1
Samba/Windows Share -> login : data, password : data
ftp -> login : data, password : data
ssh -> login : data, password : data / login : root, password : root
http -> just a test page for the moment.
I will document and make further developments on this new powerful Gotek companion.

Re: gotek on-board spi-flash as usb stick
Hi Jeff,
Have you progressed at all with the rpi project. I do not own a zero and attempted to use the supplied image with a rpi1 model b with external wifi devices to no avail, rpi2 and rpi3 fail to boot past the splash screen?
kind regards.
Have you progressed at all with the rpi project. I do not own a zero and attempted to use the supplied image with a rpi1 model b with external wifi devices to no avail, rpi2 and rpi3 fail to boot past the splash screen?
kind regards.
-
- Posts: 5
- Joined: Sat Mar 07, 2020 3:25 pm
Re: gotek on-board spi-flash as usb stick
hi Jeff,
I tried the "hxc stick emu" on the gotek
it works fine thanks for this build of your linux from scratch
https://github.com/jfdelnero/LinuxFromS ... ree/master
The gotek is connected to a PC (AMD K6-2 300Mhz)
As expected, I can send files with samba access via wifi on the GOTEK.
On the PC (AMD K6-2 300Mhz), I can modify the contents of the floppy disk images (format the disk, copy or edit a file, etc.).
When I change floppy disks on the GOTEK, I see that the information is saved on the local floppy disk image file.
But on the SAMBA share (virtual_stick/data), the floppy disk image file remains in its initial state, and changes are not saved.
When the rpi is switched off, the modified data is lost.
What would be the best solution ?
1) SSH command
Similar to what we do on Pauline in simulation mode, by running an ssh command
Here, we could make a copy of the files
"virtual_stick.img"
or the "/media/virtual_stick/" folder
And recover them via samba before rebooting or deleting the file "delete_to_update.txt"
2) Modify "/etc/samba/smb.conf"
Is adding the command create mask = 0777
I don't know much about Linux, and to avoid quickly destroying the RPi's µSD card with too many unnecessary read and write accesses.
What do you think about best solution to implementing this feature ?
I tried the "hxc stick emu" on the gotek

it works fine thanks for this build of your linux from scratch
https://github.com/jfdelnero/LinuxFromS ... ree/master
The gotek is connected to a PC (AMD K6-2 300Mhz)
As expected, I can send files with samba access via wifi on the GOTEK.
On the PC (AMD K6-2 300Mhz), I can modify the contents of the floppy disk images (format the disk, copy or edit a file, etc.).
When I change floppy disks on the GOTEK, I see that the information is saved on the local floppy disk image file.
But on the SAMBA share (virtual_stick/data), the floppy disk image file remains in its initial state, and changes are not saved.
When the rpi is switched off, the modified data is lost.
What would be the best solution ?
1) SSH command
Similar to what we do on Pauline in simulation mode, by running an ssh command
Here, we could make a copy of the files
"virtual_stick.img"
Code: Select all
cp -R /root/virtual_stick.img /home/data/virtual_stick/old_data/virtual_stick.img
Code: Select all
cp -R /media/virtual_stick/* /home/data/virtual_stick/old_data

2) Modify "/etc/samba/smb.conf"
Is adding the command create mask = 0777
3) Modify "stick_emu.sh" by adding -ro=0[data]
path = /home/data
how = data home (login: data / pass: data)
write access = yes
valid users = data
creation mask = 0777
forced creation mode = 0777
directory mask = 0777
force directory mode = 0777
https://www.kernel.org/doc/Documentatio ... torage.txtmodprobe g_mass_storage file=/root/virtual_stick.img stall=0 ro=0 removable=y iSerialNumber=1234567890
I don't know much about Linux, and to avoid quickly destroying the RPi's µSD card with too many unnecessary read and write accesses.
What do you think about best solution to implementing this feature ?