Preserve it to what?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.
New to QL. Wanting to write from QL to SD (type) card directly.
- XorA
- Site Admin
- Posts: 1628
- 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.
Re: New to QL. Wanting to write from QL to SD (type) card directly.
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

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
- XorA
- Site Admin
- Posts: 1628
- 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.
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.
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.
-
- Font of All Knowledge
- Posts: 4684
- Joined: Mon Dec 20, 2010 11:40 am
- Location: Sunny Runcorn, Cheshire, UK
Re: New to QL. Wanting to write from QL to SD (type) card directly.
Hi,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.
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
Derek
- XorA
- Site Admin
- Posts: 1628
- 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.
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.
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.
-
- Font of All Knowledge
- Posts: 4684
- Joined: Mon Dec 20, 2010 11:40 am
- Location: Sunny Runcorn, Cheshire, UK
Re: New to QL. Wanting to write from QL to SD (type) card directly.
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?
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
Derek
- XorA
- Site Admin
- Posts: 1628
- 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.
Already answered!Can qubide tools work with Qubide partitions?
Basically unless QL scene gets any FOSS culture its going to take an awful long time to complete code.I think it will also only operate on 1st partition, I didn't have any examples of multiple partition cards to play with.
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.
-
- Font of All Knowledge
- Posts: 4684
- Joined: Mon Dec 20, 2010 11:40 am
- Location: Sunny Runcorn, Cheshire, UK
Re: New to QL. Wanting to write from QL to SD (type) card directly.
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
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 328 times
Regards,
Derek
Derek
- XorA
- Site Admin
- Posts: 1628
- 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.
Thanks Derek.
So it does see first partiton, Ill see if I can add 2nd->Xth partition support fairly easilly.
G
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