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.
robg
ROM Dongle
Posts: 8
Joined: Wed Apr 26, 2017 1:02 pm

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

Postby robg » Sat Apr 29, 2017 5:45 am

"POSTNL" should read "PC" my mobile 'phone tried to help me.


Dave
SandySuperQDave
Posts: 1452
Joined: Sat Jan 22, 2011 6:52 am
Location: Austin, TX
Contact:

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

Postby Dave » Sat Apr 29, 2017 7:32 am

Rob,

It's not plain sailing developing the card and there are some issues to overcome. There are a few GREAT QubIDE clones - one has floppy controller, IDE adapter, Compact Flash socket and 1MB of SRAM on it. If you can find one of those -- it is listed in a thread in the hardware section -- you should buy it. The thread is here: viewtopic.php?f=2&t=1670

With that and a CF card, you'll be able to use it normally from SuperBASIC just like mdv1_ -- but MUCH faster and MUCH larger.


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 » Sun Apr 30, 2017 12:57 pm

robg,

Yes sorry once you have all the programs you need on the system then the SD card just acts as a hard drive called win1_ (short for winchester rather than windows...).

so COPY mdv1_program TO win1_program works fine.

The issue is that you need to get programs onto the QL so unless you have the Cartridge (or an interface with a Floppy and the Disk) you need to move it from another machine. As the SD card is in a specific format for the QL you cannot just use a PC to write to it with Windows/Linux filesystems. There is a bit of software from Habi that can read and write QL format SD cards (see docs below):

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

The reason I mentioned Linux is less simple is only that as it is windows software it cannot access the SD card drivers so you have to make an image copy first - but, otherwise it works fine.

Tim


User avatar
Derek_Stewart
Aurora
Posts: 771
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 01, 2017 9:29 am

Hi,

If you use the Habi Image Editor, in a WIndows PC, read/write to Qubide SD Card, CF Cards is possible.

I have tested the Image Editor on a 1Gb CF Card with 2 QubATA (Qubide v2.xx) partitions and a 256Mb Sandisk CF Card with Qubide v1.56 partitions, all work as expected.

As normal QL executable file lose their file headers, though there is a header function on the Image Editor, I have not used it yet. I have only transferred ZIP files and uncompressed them on the QL.

I have not tried the Image Editor with a hard drive, the problem could be Windows not recognising the hard drive structure, but worth looking at.


Regards,

Derek
actualreality
ROM Dongle
Posts: 5
Joined: Sat Aug 11, 2012 10:51 am

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

Postby actualreality » Mon May 01, 2017 12:11 pm

Hi all,

I've been trying for a few days to get the headers on to Habi's image editor. Problem being with the QL software being in a zip file (with headers), the zip file can be opened in the image editor, but as soon as you open the disc, it loses the image just opened.

Tried the other way around, opening the disc 1st, then adding the files but of course that means extracting the files from the zip which it seems loses the headers too. Tried on Qemulator by attaching the zip and works a treat. So close, so frustrating!

Formatting on the Qubide is fine now (although there are a few gotchas to navigate) and I can get the files to show up but without the headers it's not much use!

Anyone help at all getting the contents of the zip file on to the CF whilst retaining the headers? The headers option on the Editor doesn't seem to work - possibly because I extracted the files before I was able to import.

Thanks


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 » Mon May 01, 2017 8:51 pm

@actualreality - the only real way to do this is to put them as a ZIP file on the SD and then use unzip on the QL - but then of course you need the header for unzip. Although headers can be added back; for Executables it is more complex as they need the data space values.

There is a bit about this on Dilwyn's blog and site site:

https://dilwyn2.wordpress.com/2017/02/26/magic-fields-executable-headers/

I used the add a header back method as I could not get the self extractor to work...

You will also need ToolKit for the EW command to use the UNZIP and pass it commands:

EW win1_unzip;'-x win1_zip23xq_zip -d win1_'

take a look at the DATA_USE command as well to set the destinations.

to Get the ZIP program out of its archive for example.

Tim


Dave
SandySuperQDave
Posts: 1452
Joined: Sat Jan 22, 2011 6:52 am
Location: Austin, TX
Contact:

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

Postby Dave » Mon May 01, 2017 11:24 pm

It's ridiculous that we're still having this problem in 2017!


User avatar
Derek_Stewart
Aurora
Posts: 771
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 » Tue May 02, 2017 9:05 am

Dave wrote:It's ridiculous that we're still having this problem in 2017!


There is another silly solution, put all the files that require a QL Header in a small QXL.WIN file, say 2mb and copy the QXL.WIN file onto the SD/CF Card or hard drive and use something like QXLWIN to extract the files. But the Pointer Environment has to be installed. I have not tried this, but when I have time.

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.


Regards,

Derek
Dave
SandySuperQDave
Posts: 1452
Joined: Sat Jan 22, 2011 6:52 am
Location: Austin, TX
Contact:

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

Postby Dave » Tue May 02, 2017 9:33 am

Isn't the unzip program in a self-unarchiving program written in BASIC?


User avatar
Derek_Stewart
Aurora
Posts: 771
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 » Tue May 02, 2017 11:15 am

Dave wrote:Isn't the unzip program in a self-unarchiving program written in BASIC?


Hi,

Just remembered, Jonathan Hudson, did a SFX version of unzip v5.41

Available at this web site:

http://www.zen35309.zen.co.uk/qdos/

Look in the Info-Zip section near the bottom of the page, and down load the file: LRESPR unzip541xQ.bin

or this link:

http://www.zen35309.zen.co.uk/qdos/unzip541xQ.bin

This file can be transfer to the SD/CF Card with the Habi Image Editor.

Just LRESPR the file: LRESPR unzip541xQ.bin

and it will produce 3 files: SFX_bas, SFX_EXE, SFX_DAT

Lrun SFX_BAS, will extract the required UNZIP files and documentation. The unzip process will complain the the Signal extensions are not loaded, but it still works OK with without them.

The result is a QL executable UNZIP programme, very slow on a Trump Card, so lots of time and coffee required.

If it fails, try the Header option in the Habi Image Editor...


Regards,

Derek

Return to “Help for New Users”

Who is online

Users browsing this forum: No registered users and 1 guest