Page 3 of 3

Re: New to QL. Wanting to write from QL to SD (type) card directly.

Posted: Tue May 02, 2017 8:50 pm
by XorA
What this needs is a special option added to an UNZIP programme to preserve QL Header, I am not sure how to do this, but I would say it can not be hard for a good C programmer on Windows or Linux.
Preserve it to what?

Re: New to QL. Wanting to write from QL to SD (type) card directly.

Posted: Tue May 02, 2017 8:59 pm
by Timbucus
Sorry I just assumed it was the initiation ceremony for new or returning QL users.... :)

If we can work to fix it then great... As you say it should not be beyond the realms of possibility to have a version of unzip that does headers and writes to the QL SD natively on a PC.

I did look at it quickly as a hack using the WIN driver code from uQLx then it occurred to me just mount the image on that - but, of course its WIN file format is slightly different to the one used by QUBIDE, looking at hex dumps (QLW1 was one of the types I think - the data was in the wrong endian format as well so that needs to be handled) - it does not look that different so probably the best approach if we could see the QUBIDE format or code anywhere is to hack a new WIN driver (based on the one in the system for uQLx (other emulators could use the code) so the cards can just be RAW mounted using an emulator.

Tim

Re: New to QL. Wanting to write from QL to SD (type) card directly.

Posted: Tue May 02, 2017 9:04 pm
by XorA
Combine this (written by me)

https://github.com/slimlogic/qubide-tools

and this (written by MiST dude)

https://github.com/mist-devel/mist-bina ... ls/mdvtool

and you have your solution.

Re: New to QL. Wanting to write from QL to SD (type) card directly.

Posted: Sun May 07, 2017 11:48 am
by Derek_Stewart
XorA wrote:Combine this (written by me)

https://github.com/slimlogic/qubide-tools

and this (written by MiST dude)

https://github.com/mist-devel/mist-bina ... ls/mdvtool

and you have your solution.
Hi,
I compiled Qubide Tools, but it only works on an image file.

How do I read/write files to the Qubide partitions on a CF Card?

Re: New to QL. Wanting to write from QL to SD (type) card directly.

Posted: Sun May 07, 2017 12:55 pm
by XorA
Everything in Linux is a file, operate on /dev/sdX directly (name dependent on your card reader/number of other drives).

I don't think i got round to implementing writing quite yet. Been a year or so since I played with the code.

I think it will also only operate on 1st partition, I didn't have any examples of multiple partition cards to play with.

Re: New to QL. Wanting to write from QL to SD (type) card directly.

Posted: Sun May 07, 2017 9:56 pm
by Derek_Stewart
Hi,

The CF Card has 4 x 128mb Qubide partitions.

The CF Card is at /dev/sdb which can be opened from qunide tools. But nothing seems to work.

The Habi Image Editor lists the qubide partitions once the disk is opened.

Can qubide tools work with Qubide partitions?

Re: New to QL. Wanting to write from QL to SD (type) card directly.

Posted: Mon May 08, 2017 10:15 am
by XorA
Can qubide tools work with Qubide partitions?
Already answered!
I think it will also only operate on 1st partition, I didn't have any examples of multiple partition cards to play with.
Basically unless QL scene gets any FOSS culture its going to take an awful long time to complete code.

If you could upload a card image with multiple partitions somewhere I could at least check code handling for them! It should in theory at least give directory listing of 1st partition in its current state.

Re: New to QL. Wanting to write from QL to SD (type) card directly.

Posted: Mon May 08, 2017 11:02 am
by Derek_Stewart
Hi,

Thank you for the information, I can make an image of a Qubide CF Card, using the information from this link:

http://hardware.speccy.org/temp/qubide5-i.html

I have attached a 4Mb image of a Qubide formatted CF Card, with 3 x 1Mb empty partitions, except for a small boot file on the 1st partition.

There is a series of Tutorial web pages detailing the use of the Image Editor at:

http://hardware.speccy.org/temp/qubide-i.html

And a tutorial on using ZIP files with the Image Editor.

http://hardware.speccy.org/temp/qubide2-i.html

Re: New to QL. Wanting to write from QL to SD (type) card directly.

Posted: Tue May 09, 2017 12:58 pm
by XorA
Thanks Derek.

Code: Select all

./qubide -b CF.raw -d
DiskName: WIN1      
BlockSize: 2048
Free: 507/512 blocks.

boot                                      128 03/12/1971 13:26:07 v1  


So it does see first partiton, Ill see if I can add 2nd->Xth partition support fairly easilly.

G