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

Helpful tips and guides, also new users can ask for help here.
User avatar
XorA
Gold Card
Posts: 425
Joined: Thu Jun 02, 2011 11:31 am
Location: Shotts, North Lanarkshire, Scotland, UK

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

Postby XorA » Tue May 02, 2017 8:50 pm

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?


Timbucus
ROM Dongle
Posts: 40
Joined: Sat Apr 01, 2017 12:14 am

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

Postby Timbucus » Tue May 02, 2017 8:59 pm

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


User avatar
XorA
Gold Card
Posts: 425
Joined: Thu Jun 02, 2011 11:31 am
Location: Shotts, North Lanarkshire, Scotland, UK

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

Postby XorA » Tue May 02, 2017 9:04 pm

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.


User avatar
Derek_Stewart
Aurora
Posts: 809
Joined: Mon Dec 20, 2010 11:40 am
Location: Runcorn, Cheshire, UK

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

Postby Derek_Stewart » Sun May 07, 2017 11:48 am

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?


Regards,

Derek
User avatar
XorA
Gold Card
Posts: 425
Joined: Thu Jun 02, 2011 11:31 am
Location: Shotts, North Lanarkshire, Scotland, UK

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

Postby XorA » Sun May 07, 2017 12:55 pm

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.


User avatar
Derek_Stewart
Aurora
Posts: 809
Joined: Mon Dec 20, 2010 11:40 am
Location: Runcorn, Cheshire, UK

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

Postby Derek_Stewart » Sun May 07, 2017 9:56 pm

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?


Regards,

Derek
User avatar
XorA
Gold Card
Posts: 425
Joined: Thu Jun 02, 2011 11:31 am
Location: Shotts, North Lanarkshire, Scotland, UK

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

Postby XorA » Mon May 08, 2017 10:15 am

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.


User avatar
Derek_Stewart
Aurora
Posts: 809
Joined: Mon Dec 20, 2010 11:40 am
Location: Runcorn, Cheshire, UK

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

Postby Derek_Stewart » Mon May 08, 2017 11:02 am

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
Attachments
CF.raw.zip
Qubide RAW Disk Image created with Habi Image Editor
(3.06 MiB) Downloaded 26 times


Regards,

Derek
User avatar
XorA
Gold Card
Posts: 425
Joined: Thu Jun 02, 2011 11:31 am
Location: Shotts, North Lanarkshire, Scotland, UK

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

Postby XorA » Tue May 09, 2017 12:58 pm

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



Return to “Help for New Users”

Who is online

Users browsing this forum: No registered users and 1 guest