Jump to content
IGNORED

FAT32 XEX loader


candle

Recommended Posts

Hi

 

I felt like putting this into separate thread

 

currently there are fat32 handling related routines finnished, and i'm starting with some front-end implementation

 

for now limits are like this:

max 512 entries/directory (including "..") (mainly because of how much memory it consumes - 32 bytes per entry, 16k of memory total)

max 30 chars of long file name is displayed - anything more than this is truncated - this doesn't pose any problem when doing opening such file or directory

only 16 entries are displayed at once on screen - i'm currently using narrow screen for all this

 

if all goes well, there will be more interactive version in a few hours

post-6723-0-56677100-1310900442_thumb.png

  • Like 4
Link to comment
Share on other sites

Cool project!

 

I did a quick test in Altirra and then a slightly less quick patching of fat32-myide.xex so that it would work with an internal MyIDE interface.

 

Not sure I partitioned my CF correctly but all I initally saw on my real 800XL is garbage.

 

I guessed that your driver wasn't reading my partition table so I mirrored the FAT32 partition to a file (via dd) then wrote the raw data back to the CF. Now it works. I can see the file names on my CF card using my 800XL.

 

This was a fun exercise!

 

Please keep up the good work!

 

-Steve Sheppard

Edited by a8isa1
Link to comment
Share on other sites

How do we get a container paritition (type $EF) to sit alongside a FAT32 partition on a CF card? I just created two MBR partitions (using special software) on a 2GB CF card: partition one of 512MB, type $EF, and partition 2 of 512MB, FAT32. I copied a bunch of XEX files to the FAT32 partition, but the XEX loader won't find them, since (I later discovered), the partitioning software put the FAT32 paritition inside an extended partition table. It did this because Windows won't allow two primary partitions on a removable device.

 

This is very relevant to what I'm trying to do with the driver. What's the best way of getting two or more simple, primary partitions in an MBR table?

Link to comment
Share on other sites

What's the best way of getting two or more simple, primary partitions in an MBR table?

Linux?

I was thinking of something I can accomplish in about five minutes. ;)

 

I think I'll boot into Mac OS X...

 

EDIT: Well - that was every bit as useless as Windows.

Edited by flashjazzcat
Link to comment
Share on other sites

How do we get a container paritition (type $EF) to sit alongside a FAT32 partition on a CF card? I just created two MBR partitions (using special software) on a 2GB CF card: partition one of 512MB, type $EF, and partition 2 of 512MB, FAT32. I copied a bunch of XEX files to the FAT32 partition, but the XEX loader won't find them, since (I later discovered), the partitioning software put the FAT32 paritition inside an extended partition table. It did this because Windows won't allow two primary partitions on a removable device.

 

This is very relevant to what I'm trying to do with the driver. What's the best way of getting two or more simple, primary partitions in an MBR table?

 

You can't have two "bootable" partitions. You can do 2 primary partitions. And I even just tried it on my windows desktop to make sure I wasn't talking out of my ass :)

 

I used a laptop hard drive connected via a USB dock.

Link to comment
Share on other sites

You can't have two "bootable" partitions. You can do 2 primary partitions. And I even just tried it on my windows desktop to make sure I wasn't talking out of my ass :)

 

I used a laptop hard drive connected via a USB dock.

I don't want two bootable partitions (it makes no sense to do so). 2 primary partitions is what I'm after, but the cards don't seem to be falling right for me.

 

Laptop hard drives connected via USB don't (AFAIK) have the removable media bit set in their hardware ID, so it's possible to partition them. Not so with USB drives and CF cards. Even the crappy third-party app I downloaded won't contravene Window's refusal to create two primary partitions.

 

In any case, FDISK will write the MBR on the Atari without any of this fuss, but I wanted a sample table to compare it with.

Edited by flashjazzcat
Link to comment
Share on other sites

Thanks! Note my previous comment: FDISK will write MBR with two primary partitions, but we also have to deal with the situation of a pre-partitioned card (in which case I'll simply populate an unused slot in the MBR table with the Atari partition). I guess this means FDISK should also observe the damned extended partitions...

Link to comment
Share on other sites

I don't want two bootable partitions (it makes no sense to do so). 2 primary partitions is what I'm after, but the cards don't seem to be falling right for me.

 

Laptop hard drives connected via USB don't (AFAIK) have the removable media bit set in their hardware ID, so it's possible to partition them. Not so with USB drives and CF cards. Even the crappy third-party app I downloaded won't contravene Window's refusal to create two primary partitions.

 

In any case, FDISK will write the MBR on the Atari without any of this fuss, but I wanted a sample table to compare it with.

 

I dug up a CF reader and found windows being much less compliant :)

 

One thing you can try is a linux install disk (or live CD). I've found linux's fdisk (or cfdisk) to be helpful for similar situations in the past.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...