Minimig Discussion Forum

Discussing the Open Source FPGA Amiga Project
It is currently Thu Jun 22, 2017 12:03 pm

All times are UTC




Post new topic Reply to topic  [ 13 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Feature request: Ability to mount a directory on SD
PostPosted: Sun Apr 21, 2013 11:40 am 
Offline

Joined: Sat Apr 21, 2012 11:42 pm
Posts: 29
Sorry if this has already been discussed, but anyway...

I would love the ability to pick a directory in the SD vfat file system and mount it as a hard drive on the Amiga. This would be a good way of sharing files between the Amiga and a pc.

Working with Amiga partitions in HDF files is quite messy on the pc. At least with methods I am aware of. Using GNU/Linux, I only know of two ways to get data over to the Amiga. Either mount ADF files as file systems on the pc, with all limits one can imagine of an ADF file, or use UAE to access the HDF.

Other good suggestions are welcome! Any methods other than mentioned that helps me copying files between the pc with GNU/Linux and Amiga OS would possibly obsolete my suggestion.


Top
 Profile  
 
 Post subject: Re: Feature request: Ability to mount a directory on SD
PostPosted: Mon Apr 22, 2013 5:58 am 
Offline

Joined: Thu Jan 03, 2013 10:39 pm
Posts: 26
Mount HDF files as file system on the PC.


Top
 Profile  
 
 Post subject: Re: Feature request: Ability to mount a directory on SD
PostPosted: Mon Apr 22, 2013 6:49 am 
Offline

Joined: Sat Apr 21, 2012 11:42 pm
Posts: 29
Yes, that is actually possible. I've tried this before and failed, but yesterday I spent some hours digging into it. The problem is that the minimig HDF has an RDB so the filesystem does not start at the first block. This means you have to find out where the actual filesystem starts. I found out a way to do that from GNU/Linux. Then when you mount it, you can specify an offset, but I did not yet got this way to work. Another way I actually have got working is to extract the filesystem, mount it, add/remove files to it, unmount it and finally write back into the HDF.

It is quite time consuming to extract the filesystem as it is on a slow SD card. You'd better have a small partition dedicated for file transferring. Nevertheless it works fine. I will try to find out how to mount it by specifying the offset instead of extracting the filesystem.

I wrote a bash script offering the functions for doing those operations. It is still far from perfect. Currently it is actually harmfull and it may easily destroy the data on the HDF. I can share it for studying but I'd rather polish it a bit more...

Anyway, mounting a directory on the SD in the minimig would be supersweet!


Top
 Profile  
 
 Post subject: Re: Feature request: Ability to mount a directory on SD
PostPosted: Mon Apr 22, 2013 7:27 am 
Offline

Joined: Thu Jan 03, 2013 10:39 pm
Posts: 26
With the new firmware for the ARM you can use the regular UAE-HDF without RDB.


Top
 Profile  
 
 Post subject: Re: Feature request: Ability to mount a directory on SD
PostPosted: Mon Apr 22, 2013 7:27 am 
Offline

Joined: Tue Dec 13, 2011 7:48 pm
Posts: 341
johey wrote:
Anyway, mounting a directory on the SD in the minimig would be supersweet!


There's an experimental firmware in development that addresses some of these issues (my updated firmware for the Chameleon Minimig core, which has been backported to the DE1 board, and now the original Minimig too.) It's not possible to mount just a directory from within the Minimig, but it is possible to mount the entire card with Fat95. It can be hit-and-miss, though. The new firmware also supports mounting a WinUAE style HDF that doesn't have an RDB.

_________________
~ Amiga 4000/030 ~ Amiga 1200 030/50MHz ~ Turbo Chameleon 64 ~ Altera DE1 with Minimig core ~
Details of my projects: http://retroramblings.net


Top
 Profile  
 
 Post subject: Re: Feature request: Ability to mount a directory on SD
PostPosted: Mon Apr 22, 2013 11:14 am 
Offline

Joined: Sat Apr 21, 2012 11:42 pm
Posts: 29
That's great news! I'll upgrade the ARM then. Thanks!


Top
 Profile  
 
 Post subject: Re: Feature request: Ability to mount a directory on SD
PostPosted: Tue Apr 23, 2013 1:31 pm 
Offline

Joined: Sat Apr 21, 2012 11:42 pm
Posts: 29
Where can I find the latest firmware for the Minimig 1.1 board, supporting RDB-less HDF files? The latest I find is two years old.

A sticky thread with latest versions of all firmwares and fpga cores would be my suggestion for today. :)


Top
 Profile  
 
 Post subject: Re: Feature request: Ability to mount a directory on SD
PostPosted: Tue Apr 23, 2013 5:12 pm 
Offline

Joined: Mon Dec 01, 2008 9:58 pm
Posts: 1566
Location: .de
RDB-less HDF handling is a new feature for MinimigV1 board.
Its available in the ARM firmware made by minimig_emu.

This is the latest one, need to be flashed via USB and Atmel ARM SAM-BA / SAM-PROG tool.


Attachments:
firmware.bin.zip [66.05 KiB]
Downloaded 150 times

_________________
_____________________________
JMP $00000BED ; will guru-meditation until next morning
Top
 Profile  
 
 Post subject: Re: Feature request: Ability to mount a directory on SD
PostPosted: Tue Apr 23, 2013 7:30 pm 
Offline

Joined: Sat Apr 21, 2012 11:42 pm
Posts: 29
Oh ok... Why cannot I flash it from the SD? An incompatible bootloader?

Edit: Thank you for the link! I am grateful, although I forgot mentioning that initially. :) Next project is to find a Windows machine and try to find out how to use it.


Top
 Profile  
 
 Post subject: Re: Feature request: Ability to mount a directory on SD
PostPosted: Tue Apr 23, 2013 9:24 pm 
Offline

Joined: Tue Dec 13, 2011 7:48 pm
Posts: 341
johey wrote:
Oh ok... Why cannot I flash it from the SD? An incompatible bootloader?


You need the file in .upg format for that - which is similar to .bin but has some kind of header.

johey wrote:
Next project is to find a Windows machine and try to find out how to use it.


There's a Linux program called sam_i_am which can do the job under Linux, but you need the firmware in .hex format rather than .bin format.

@boing4000: is there a definitive source release for this version of the firmware yet?

_________________
~ Amiga 4000/030 ~ Amiga 1200 030/50MHz ~ Turbo Chameleon 64 ~ Altera DE1 with Minimig core ~
Details of my projects: http://retroramblings.net


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Translated by Xaphos © 2007, 2008, 2009 phpBB.fr