CHDK Forum

Canon DSLR Development (+ other development) => DSLR Hack development => Topic started by: whim on 16 / September / 2009, 08:04:05

Title: Utilities to make FAT16, FAT32 and exFAT CF cards bootable
Post by: whim on 16 / September / 2009, 08:04:05
Hi,

I've just updated CardTricks to also allow making FAT32 partitions bootable,
when option "CF boot sector" is checked, the following strings are written to MBR:

FAT16:    at 0x2B "EOS_DEVELOP"    at 0x40 "BOOTDISK"
FAT32:    at 0x47 "EOS_DEVELOP"    at 0x5C "BOOTDISK"

(the quotes are not written, of course)

[edit] Note: Useless for CHDK / P&S in general,  only DSLRs can boot off FAT32 partitions

I have successfully tested on 8 GB SD cards and 8 GB memory sticks, but (as non-DSLR owner)
don't have CF cards to test on. Note that, because the program was originally developed just for
CHDK on SD cards, it will not allow you to format cards <= 4GB as FAT32.
For Canon P&S owners there is no new functionality
So...if any of you DSLR guys want to test this on real CF, it's here:

DL location:
CardTricks145 (http://savedonthe.net/download/198/CardTricks145-sfx.html)  (535 kB, CT+cmdline+sources)       Windows 2000 or newer / no exFAT support

Please note: the cmdline utils DO NOT CHECK the file system - after running
bootableCF32.exe on a FAT16 card, or
bootable(CF).exe  on a FAT32 card     you will need to FORMAT and LOSE ALL DATA !

========================================================================
Recently, Pelican (reply #24 (http://chdk.setepontos.com/index.php?topic=4214.msg58253#msg58253)) and zeno (reply #27 (http://chdk.setepontos.com/index.php?topic=4214.msg58460#msg58460)) have released alternatives , thanks !
I'm linking them here for better overview:

Pelican's EOScard (http://pel.hu/down/EOScard.exe)       Windows  edit 5-1-11:  exFAT support added

zeno's    MacBoot (http://www.zenoshrdlu.com/macboot/macboot.html)       Mac OS   edit 12-1-11:  exFAT support added

                                 Linux: see reply #4 (http://chdk.setepontos.com/index.php?topic=4214.msg44249#msg44249) (for FAT16 & FAT32) and arm.indiana's solution (http://groups.google.com/group/ml-devel/browse_thread/thread/1161d4e6e93232de) (for exFAT)

=========================================================================

cheers,

wim

[edit 30-12-09: re-uploaded, download limit (1000) was reached. Happy New Year you all ! ]
[edit 28-02-10: re-uploaded, download limit (1000) was reached again ]
[edit 28-03-10: re-uploaded, download limit (1000) was reached again ? ]
[edit 09-06-10: added alternative DL location ]
[edit 26-06-10: re-uploaded, download limit (1000) was reached again ]
[edit 21-11-10: removed drop.io links ]
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: thaibv on 27 / September / 2009, 22:11:03
great, thanks Whim!

It is much easier for Fat 32 user now. HxD is not for newbie.
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: Print on 11 / November / 2009, 03:45:57
It is working fine with my CF 8Gb (Kingston, 133x) and Canon EOS 400D.
Many thanks!!!
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: Vascom on 06 / December / 2009, 04:28:39
How can I do it under linux OS?
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: whim on 06 / December / 2009, 07:38:48
How can I do it under linux OS?

The CHDK wiki for making cards bootable is here: http://chdk.wikia.com/wiki/Bootable_SD_card#Linux: (http://chdk.wikia.com/wiki/Bootable_SD_card#Linux:)

Disclaimer: I neither run Linux, nor do i have a DSLR, so below is just my best guess based on above link

probably the easiest is using a hex editor, note that you need to write two strings into the boot sector for DSLR,
for strings and offsets see the 1st post in this thread.

otherwise, using dd on the command line, it should be something like this (where 'sdx1' is your card's device name)

for FAT16:

echo -n EOS_DEVELOP | dd bs=1 count=11 seek=43 of=/dev/sdx1
echo -n BOOTDISK | dd bs=1 count=8 seek=64 of=/dev/sdx1

for FAT32:

echo -n EOS_DEVELOP | dd bs=1 count=11 seek=71 of=/dev/sdx1
echo -n BOOTDISK | dd bs=1 count=8 seek=92 of=/dev/sdx1

hope that helps,

wim
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: Vascom on 06 / December / 2009, 08:30:03
Thanks, it work very good :)
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: whim on 06 / December / 2009, 09:30:52
@Vascom

Happy to hear that, did you use dd or hexedit method ?

wim
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: Vascom on 06 / December / 2009, 09:32:56
@Vascom

Happy to hear that, did you use dd or hexedit method ?

wim
I'm used dd.
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: hudson on 06 / December / 2009, 17:25:23
I've added support in Magic Lantern (http://magiclantern.wikia.com) to write the partition table to the CF card in the camera without having to use dd or Card Tricks to modify the card.  changeset (http://bitbucket.org/hudson/magic-lantern/changeset/36a718cba670/) to bootflags.c (http://bitbucket.org/hudson/magic-lantern/src/tip/bootflags.c).

This uses the CF device structure that I found to be able to read the raw block, modify it in place, and then write it back to the card.

Code: [Select]
struct cf_device
{
// If block has the top bit set the physical blocks will be read
// instead of from the first partition.  Cool.
int (*read_block)(
struct cf_device * dev,
uintptr_t block,
size_t num_blocks,
void * buf
);

int (*write_block)(
struct cf_device * dev,
uintptr_t block,
size_t num_blocks,
const void * buf
);

void * io_control;
void * soft_reset;
};
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: ruro on 30 / December / 2009, 15:12:38
please reupload cardtricks145-sfx-exe
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: whim on 30 / December / 2009, 15:28:26
@ruro

done. see 1st post

wim
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: joaomedina on 18 / January / 2010, 08:31:20
I have made this change to my 2.0gb CF formatted as FAT16 using the HxD to use in my 350D.

The camera is able to load the new FW form card, but the camera show "Err CF"  in the LCD.

Did u know what i do wrong??  :blink:
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: zilvidu on 28 / February / 2010, 10:38:32

Hi, can you please re upload again? thanks in advance!



This file can not be downloaded at this time.

The file 2CardTricks145-sfx.exe has reached its download limit. Files in non-premium drops can only be downloaded 1000 times, both to prevent abuse and because at very high download rates our service becomes prohibitively expensive. If you need to download this file, ask the drop's administrator to remove this download limit by upgrading this drop, either through drop.io manager or a one-time upgrade.
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: whim on 28 / February / 2010, 13:17:07
@zilvidu

done. link in post #1 updated

wim
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: stephlouv on 18 / March / 2010, 06:02:25
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: hu on 02 / June / 2010, 11:37:26
please re-upload the CardTricks145 software, which has been reached its limit. Thank you.
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: fe50 on 03 / June / 2010, 05:38:00
please re-upload the CardTricks145 software, which has been reached its limit. Thank you.
The 2nd link is still working: http://drop.io/chdkshellbeta/asset/3cardtricks145-sfx-exe (http://drop.io/chdkshellbeta/asset/3cardtricks145-sfx-exe)


Edit: here's a mirror for CT 1.45:  CardTricks 1.45 for DSLR/CF, Megaupload mirror (http://www.megaupload.com/?d=XEVBWMS6)
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: hu on 03 / June / 2010, 11:39:59
Thanks you very much. Now my XTi has spot metering. Wow....


please re-upload the CardTricks145 software, which has been reached its limit. Thank you.
The 2nd link is still working: http://drop.io/chdkshellbeta/asset/3cardtricks145-sfx-exe (http://drop.io/chdkshellbeta/asset/3cardtricks145-sfx-exe)


Edit: here's a mirror for CT 1.45:  CardTricks 1.45 for DSLR/CF, Megaupload mirror (http://www.megaupload.com/?d=XEVBWMS6)
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: fe50 on 03 / June / 2010, 14:18:07
...added a small description to the CT wikia article, also another mirror:

--> http://chdk.wikia.com/wiki/CardTricks#CardTricks_for_DSLR_.2F_CF_cards (http://chdk.wikia.com/wiki/CardTricks#CardTricks_for_DSLR_.2F_CF_cards)
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: robertut on 14 / August / 2010, 13:07:38
How to make big, more than 4GB SD Cards bootable for CHDK or Magic Lantern (windows):
- get this app: http://pel.hu/down/bootCF.exe (http://pel.hu/down/bootCF.exe)
- get this dll: http://www.4shared.com/get/iUI1iIlG/cc3280mt.html (http://www.4shared.com/get/iUI1iIlG/cc3280mt.html)
- put them both in a folder on your drive
- open command prompt (cmd), change to the above folder
- usage: bootcf.exe <drive:>
- when prompted "(W)rite labels", press W key, then press Enter key
- to check, run again bootcf.exe <drive:>
- you should see: "Labels found at 0x47: EOS_DEVELOP, 0x5c: BOOTDISK (R)emove labels"
- just pres Ctrl+C to exit
After this, follow instructions to install CHDK / Magic Lantern on your card.
The application similarly allows to remove the bootable flag from the card, by pressing the R key when prompted.
I tested with a Transcend 4GB card, and a SanDisk Extreme II 16GB card, both run fine!
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: jmaurolagoitia on 29 / September / 2010, 04:57:32
Hi all,

I've read everypost in this thread and tried to make my 8Gb bootable by formating it with the CardTricks 145 version. I has not worked. I'm using a Eyefi 8Gb Explore2 card and an IXUS100 camera.

I've confirmed that the labels in the bootsector are correctly saved so I guess the problem will be on the camera side. Should this work fr point and shoot or only for DSLR?

Thank you for your help.

BR

Jon
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: fe50 on 29 / September / 2010, 05:21:27
Hello & welcome, Jon !

make my 8Gb bootable by formating it with the CardTricks 145 version.

The CHDK autostart method does only work with FAT12 or FAT16 partitions, the max. possible partition size for FAT16 is 4GB.

Although you can make a FAT32 partition CHDK-bootable (i.e. write the tag to the cards MBR), this DOES NOT work.

Cards > 4GB normaly can be used when they are split in to partitions, a (small) FAT12/FAT16 partition to start and a (big) FAT32 one for the data.

But - when i remember correctly, the Eye-Fi cards can not be partitioned / prepared this way due to the special card firmware...

Using the search function you could find some related threads...
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: jmaurolagoitia on 29 / September / 2010, 06:13:25
Thanks for the answer fe50,

I've already looked in every thread I could and in this one, some of the members have published that it worked for them to autoboot with FAT32.

I guess it will not work for me then.

Thank you again.

J
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: fe50 on 29 / September / 2010, 07:00:31
Here's the thread i meant:

* http://chdk.setepontos.com/index.php/topic,5068.0.html (http://chdk.setepontos.com/index.php/topic,5068.0.html)

...also read this post:
I have been doing a bunch of testing with the new 8GB Eye-Fi card.

You have two options really, because you can not format the card into two partitions and get Eye-Fi to work from the second partition.

First option is to format FAT 32 then copy CHDK onto the card and just using the firmware update method boot CHDK manually.

The second option, which is the one I settled on, is to partition the card to two 4GB partitions, format the first partition as FAT 16 and then load CHDK onto that partition (as well as the Eye-Fi stuff). The second partition is more or less a waste since the camera or CHDK can not access that partition. (If you switch to the second partition using CHDK it will give you an Card Error message)

The benefit to me over the standard 4GB Eye-Fi card was the ability to do Ad-Hoc transfers and handling of RAW data transfers.

You could also buy their older 4GB Pro card and do the same thing, but the older card has to be filed to give the card the ability to fool the camera it has a write protect lock switch.

Furthermore I found that everyone sells the old card for about the same price as the new 8GB card. So whats the difference. The new 8GB card already has the write protect switch. So you can forget the filing of the card.

I guess no matter how you look at it, there is no way to actually use the full 8GB of the card. I faced that reality and moved on just happy I can handle the RAW and Ad-Hoc transfers.
Title: EOScard
Post by: Pelican on 17 / December / 2010, 13:49:47
I've just developed a new tool to make CF and SD cards bootable with a win GUI (handles FAT, FAT32 and exFAT filesystems).
(bootCF needs a dll, handles FAT32 only and command line tool)

http://pel.hu/down/EOScard.exe (http://pel.hu/down/EOScard.exe)

(https://chdk.setepontos.com/proxy.php?request=http%3A%2F%2Fpel.hu%2Fdown%2FEOScard.png&hash=3b8f01d8255c5d71bfc1ed8432ac59af)
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: pixeldoc2000 on 17 / December / 2010, 22:02:51
I've just developed a new tool to make CF and SD cards bootable with a win GUI (handles FAT and FAT32).
(bootCF needs a dll, FAT32 and command line only)
Very helpfull tool!

Created wiki page about it: http://chdk.wikia.com/wiki/EOScard (http://chdk.wikia.com/wiki/EOScard)

Tested on Windows 7.

Thanks!
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: n00bE on 20 / December / 2010, 22:33:54
Hi,

I've just updated CardTricks to also allow making FAT32 partitions bootable,
when option "CF boot sector" is checked, the following strings are written to MBR:

FAT16:    at 0x2B "EOS_DEVELOP"    at 0x40 "BOOTDISK"
FAT32:    at 0x47 "EOS_DEVELOP"    at 0x5C "BOOTDISK"

(the quotes are not written, of course)

[edit] Note: Useless for CHDK / P&S in general,  only DSLRs can boot off FAT32 partitions

I have successfully tested on 8 GB SD cards and 8 GB memory sticks, but (as non-DSLR owner)
don't have CF cards to test on. Note that, because the program was originally developed just for
CHDK on SD cards, it will not allow you to format cards <= 4GB as FAT32.
For Canon P&S owners there is no new functionality
So...if any of you DSLR guys want to test this on real CF, it's here:

DL location:
CardTricks145 (http://savedonthe.net/download/198/CardTricks145-sfx.html)  (535 kB, CT+cmdline+sources)

Please note: the cmdline utils DO NOT CHECK the file system - after running
bootableCF32.exe on a FAT16 card, or
bootable(CF).exe  on a FAT32 card     you will need to FORMAT and LOSE ALL DATA !

cheers,

wim

[edit 30-12-09: re-uploaded, download limit (1000) was reached. Happy New Year you all ! ]
[edit 28-02-10: re-uploaded, download limit (1000) was reached again ]
[edit 28-03-10: re-uploaded, download limit (1000) was reached again ? ]
[edit 09-06-10: added alternative DL location ]
[edit 26-06-10: re-uploaded, download limit (1000) was reached again ]
[edit 21-11-10: removed drop.io links ]

Sorry to be such a newbie, but I'm installing Magic Lantern (fw 1.9.0) on my DSLR (Rebel T2i) & am having trouble making my SDHC card bootable! It's a Transcend class 10 32GB (FAT32) & I'm using Mac OS X. Is there any way you could go step-by-simple-step (or provide video-link!) to a simple rookie like me?
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: zeno on 21 / December / 2010, 12:31:50
I've just uploaded MacBoot - an OSX app that makes SD and CF cards bootable (for CHDK, Magic Lantern and Canon Basic). See http://www.zenoshrdlu.com/macboot/macboot.html (http://www.zenoshrdlu.com/macboot/macboot.html)

It's pretty much an OSX equivalent of Pelican's EOSCard.
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: n00bE on 21 / December / 2010, 17:23:20
I've just uploaded MacBoot - an OSX app that makes SD and CF cards bootable (for CHDK, Magic Lantern and Canon Basic). See http://www.zenoshrdlu.com/macboot/macboot.html (http://www.zenoshrdlu.com/macboot/macboot.html)

It's pretty much an OSX equivalent of Pelican's EOSCard.


Thanks, just what I needed!
Only 1 problem, MacBoot says "there are no suitable cards",
 is this because I have a 32GB card?
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: zeno on 21 / December / 2010, 17:53:41
Yes, you need to tell it to accept cards larger than 16Gb. Edit the macboot.properties file (double-click it) and change the line "maxsize=16000" to "maxsize=32000".

The limit is intended to prevent you accidentally formatting a hard disk.
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: n00bE on 21 / December / 2010, 18:17:34
Yes, you need to tell it to accept cards larger than 16Gb. Edit the macboot.properties file (double-click it) and change the line "maxsize=16000" to "maxsize=32000".

The limit is intended to prevent you accidentally formatting a hard disk.


NVM I had to change the maxsize (actually had to write it in at 33000) Thanks anyway, I have it now!
are you the author of this app?
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: zeno on 22 / December / 2010, 04:22:01
Sure am! I'll fix the app's arithmetic (32MB is more than 33000MB).

Dave Mitchell (aka Zeno)
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: whim on 22 / December / 2010, 06:10:26
@Pelican
@zeno

Thanks !

I've added links to your posts and programs to the first post

cheers,

wim
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: zeno on 22 / December / 2010, 08:00:49
@n00bE
I've fixed the 32GB bug and also properly excluded Terabyte-sized hard disks (a bug I discovered thanks to you!).
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: joachimrs on 22 / December / 2010, 12:58:19
hey,

thanks for great work.  Ive been trying to use MacBoot to prepare my SDcard to run MagicLantern on my Canon 550d.  Ive followed the instructions and included the necessary files, but it wont work.  What settings should I use in the MacBoot window?  Ive changed the max. to 32gb.

Thanks!
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: zeno on 22 / December / 2010, 16:15:12
@joachimrs

It's hard to tell what might be going wrong without more information. Turn debug on and run it again. Then email the contents of the log window to me (daveATzenoshrdlu.com) - hopefully I'll be able to see what's happening.

I should point out that all that MacBoot does is write some strings to the boot sector. It may well be doing that and the real problem is somewhere else. The log should tell me anyway.
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: Pelican on 05 / January / 2011, 01:40:54
It seems exFAT filesystem needs further changes. The new EOScard modify the checksums and the backup VBR.
Please test it and share your experiences.

http://pel.hu/down/EOScard.exe (http://pel.hu/down/EOScard.exe)


(and if it works we can change the topic title too... :))
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: zeno on 05 / January / 2011, 06:36:09
Pelican - I'd like to make my MacBoot app support exFAT cards under OSX if at all possible. I see over in the Magic Lantern forum some discussion of the issue - could you point me at a document that outlines what needs to be done?

By the way, the problem joachimrs reported above turned out not be to in MacBoot.
Title: Utilities to make FAT, FAT32 and exFAT CF and SD cards bootable
Post by: Pelican on 05 / January / 2011, 10:52:51
Pelican - I'd like to make my MacBoot app support exFAT cards under OSX if at all possible. I see over in the Magic Lantern forum some discussion of the issue - could you point me at a document that outlines what needs to be done?
I've found useful info in this PDF:
http://www.sans.org/reading_room/whitepapers/forensics/reverse-engineering-microsoft-exfat-file-system_33274 (http://www.sans.org/reading_room/whitepapers/forensics/reverse-engineering-microsoft-exfat-file-system_33274)
But without testing, I'm not sure whether it's working or not.

Edit:
I've got feedback. It works.  8)

Guide: http://magiclantern.wikia.com/wiki/EXFAT_rerated_stuf (http://magiclantern.wikia.com/wiki/EXFAT_rerated_stuf)
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: zeno on 05 / January / 2011, 12:15:38
Thanks Pelican - I'd found http://shullich.blogspot.com/2009/12/vbr.html (http://shullich.blogspot.com/2009/12/vbr.html) which looked useful.
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: zeno on 06 / January / 2011, 05:38:51
Thanks to a couple of testers, I've found the (very stupid) mistake in MacBoot that was preventing it making cards bootable for Magic Lantern. I'd completely forgotten to write the BOOTDISK string on FAT32 cards (and only wrote it on FAT16 cards if the "make CHDK-bootable" option was selected). Version 1.02 fixes this - see http://www.zenoshrdlu.com/macboot/macboot.html (http://www.zenoshrdlu.com/macboot/macboot.html)

(apologies for bad link earlier = thanks Pelican)

I am hoping to do something about exFAT soon (but don't hold your breath!)
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: Pelican on 08 / January / 2011, 00:43:55
- see file:///Users/dave/Java/MacBoot/MacBoot.html
It seems like a local file...
http://www.zenoshrdlu.com/zips/macboot.zip (http://www.zenoshrdlu.com/zips/macboot.zip)

Will you implement the exFAT also?
Title: Utility to make FAT12/16, FAT32, ExFAT (FAT64) cards bootable
Post by: arm.indiana on 08 / January / 2011, 12:27:29
Here is a -working- and -open source- solution:

http://magiclantern.wikia.com/wiki/Bootdisk (http://magiclantern.wikia.com/wiki/Bootdisk)

http://groups.google.com/group/ml-devel/browse_thread/thread/1161d4e6e93232de (http://groups.google.com/group/ml-devel/browse_thread/thread/1161d4e6e93232de)

Arm.Indy
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: zeno on 08 / January / 2011, 18:17:27
@arm.indiana

nicely done, though I think the comment "# write VBR checksum (from sector 0 to sector 11) at offset 5632 (sector 12) and sector 24 (sector 24, for backup VBR)" near the end of the bash script is wrong. You are actually computing the checksum of sectors 0 to 10 and writing it in sector 11 (which is the right thing to do according to the wiki at http://magiclantern.wikia.com/wiki/EXFAT_rerated_stuf (http://magiclantern.wikia.com/wiki/EXFAT_rerated_stuf))
Title: Re: Utilities to make FAT16 and FAT32 CF cards bootable
Post by: zeno on 12 / January / 2011, 06:24:31
Thanks to Pelican and arm.indiana I've modified MacBoot to deal with ExFAT cards. Testing shows the strings are written in all the right places and the sector checksum properly recomputed and written back (twice). I'd appreciate a Mac user of Magic Lantern testing it - see http://www.zenoshrdlu.com/macboot/macboot.html (http://www.zenoshrdlu.com/macboot/macboot.html)
Title: Re: Utilities to make FAT16, FAT32 and exFAT CF cards bootable
Post by: whim on 12 / January / 2011, 11:01:35
Thanks guys,

updated thread title & first post comments to reflect the changes

wim
Title: Re: Utilities to make FAT16, FAT32 and exFAT CF cards bootable
Post by: zeno on 26 / January / 2011, 12:10:14
Turns out that the code I added to deal with ExFAT cards (which worked) had the side effect of screwing things up for FA16/FAT32 (which worked before). Version 1.05, now on the website, should work properly for all cards!

Thanks to Yannick  Hagmann for reporting the latest problem.
Title: Re: Utilities to make FAT16, FAT32 and exFAT CF cards bootable
Post by: Pelican on 06 / March / 2011, 18:08:12
A new version of EOScard is available.
(https://chdk.setepontos.com/proxy.php?request=http%3A%2F%2Fpel.hu%2Fdown%2FEOScard.png&hash=3b8f01d8255c5d71bfc1ed8432ac59af)
Title: Re: Utilities to make FAT16, FAT32 and exFAT CF cards bootable
Post by: gravegrave on 05 / July / 2011, 05:33:02
hi

i am use the Canon PowerShort s90 and toshiba SDHC 8G class Memory Card
The card can't  format to FAT or FAT16...what step i have to follow to make the card bootable to auto load CHDK... ...

Thanks All of you> <
Title: Re: Utilities to make FAT16, FAT32 and exFAT CF cards bootable
Post by: whim on 05 / July / 2011, 05:58:21
@gravegrave

Cards  > 4 GB can not be directly made CHDK bootable - they need to be partitioned.

Skywalker9 wrote a nice tutorial, which is linked here (http://chdk.setepontos.com/index.php?topic=6173.msg62637#msg62637)

hope that helps,

wim

PS Note that this thread is in  "DSLR CHDK Development" which is confusingly named - what runs on
    DSLR's is NOT CHDK ! THe DSLR hacks (unlike CHDK) CAN boot from FAT32 cards.
Title: Re: Utilities to make FAT16, FAT32 and exFAT CF cards bootable
Post by: nahuel_89p on 26 / September / 2011, 19:37:28
Ok, I really appreciate your development, but just to make it clear:

I have a Canon 350D with firmware 1.0.3 (as suggested) and an 8GB CF card. To make it bootable, and in a safe way, is it enough just with using the Card Tricks V 1.45?? I read somewhere i need a partition, but im not sure if that is what Card tricks actually does.
I just want my 350D with the CHDK tweaks. Particularly Timelapse.

Just to clarify: My CF card is currently formated by the camera.
Title: Re: Utilities to make FAT16, FAT32 and exFAT CF cards bootable
Post by: nahuel_89p on 26 / September / 2011, 21:35:26
Update: I did it that way. I got an spooky "err 99" after i used it for a while the 1st time, but now it works ok.

Any clue on the "99 err"?
Title: Re: Utilities to make FAT16, FAT32 and exFAT CF cards bootable
Post by: iDentist on 29 / November / 2011, 09:10:15
I just bought 400d chosen mainly because of this hack.

But I can't make it work. Followed the instructions from here (http://code.google.com/p/400plus/wiki/FirmwareHackInstallation) but when I put the CF in the slot in the final step, the blue button doesn't light. Instead, the camera turns on, but the display is not working. I can focus but not take pictures. Also, cannot turn off the Camera.

Win 7 x64, CF 4GB (3.8GB)

What am I doing wrong?
Title: Re: Utilities to make FAT16, FAT32 and exFAT CF cards bootable
Post by: zeno on 31 / January / 2012, 10:24:28
Cameras released in 2011 allow CHDK to autoboot on a FAT32 card. I'd like to modify my OSX SDMInst app so that it can do create such cards - currently Mac OSX users who want to create bootable single partition cards > 4GB (e.g. for an A3300) are out of luck.

My question is this - where does the 'BOOTDISK' string have to be written on a FAT32 card? Is it still at x'40'?

PS - PhilMoz provides the answer (0x1e0) here - http://chdk.setepontos.com/index.php?topic=6645.0 (http://chdk.setepontos.com/index.php?topic=6645.0)
Title: Re: Utilities to make FAT16, FAT32 and exFAT CF cards bootable
Post by: hiker_jon on 31 / January / 2012, 11:02:24
Hi,
I searched for this, but found nothing.  Cardtricks (145) is intolerably slow when formatting a 4gb card on my Windows 7 laptop.  I need to use the windows format tool which is very fast and can do fat.

Jon
Title: Re: Utilities to make FAT16, FAT32 and exFAT CF cards bootable
Post by: hiker_jon on 22 / February / 2012, 11:50:31
EOScard 1.1 writes the "BOOTABLE" string to 0x5C for a FAT32 card.  Anyway to change this to 0x1E0?
See below
http://chdk.setepontos.com/index.php?topic=6645.0 (http://chdk.setepontos.com/index.php?topic=6645.0)
Title: Re: Utilities to make FAT16, FAT32 and exFAT CF cards bootable
Post by: Pelican on 06 / March / 2012, 08:31:34
EOScard 1.1 writes the "BOOTABLE" string to 0x5C for a FAT32 card.  Anyway to change this to 0x1E0?
See below
http://chdk.setepontos.com/index.php?topic=6645.0 (http://chdk.setepontos.com/index.php?topic=6645.0)

Yes. Use EOScard 1.2
Title: Re: Utilities to make FAT16, FAT32 and exFAT CF cards bootable
Post by: geoffff on 28 / March / 2012, 15:49:36
OK, I've tried everything here, but I just can't seem to make my 64GB exFAT card bootable -- and boot CHDK on my SX230HS camera.  I've tried everything, but I still get no CHDK (camera just says card is write protected) when I boot from my 64GB exFAT card.

Can anyone help me get my SX230HS camera to boot CHDK from my 64GB exFAT card?

Notes:
Thanks for any advice!
-- Geoff
Title: Re: Utilities to make FAT16, FAT32 and exFAT CF cards bootable
Post by: reyalp on 28 / March / 2012, 16:12:14
OK, I've tried everything here, but I just can't seem to make my 64GB exFAT card bootable -- and boot CHDK on my SX230HS camera.
AFAIK P&S cameras do not boot from exFAT. Only FAT16 (all cameras) and FAT32 (DRYOS R47 and later cameras, which is everything released from 2011 on)

You should be aware that this thread is in the DSLR sub-forum, so things described here may not be applicable to P&S. It's up to you to read the thread and understand which parts may be applicable to your camera.
Title: Re: Utilities to make FAT16, FAT32 and exFAT CF cards bootable
Post by: geoffff on 28 / March / 2012, 16:47:41
AFAIK P&S cameras do not boot from exFAT. Only FAT16 (all cameras) and FAT32 (DRYOS R47 and later cameras, which is everything released from 2011 on)
Thanks.  Sad, but good to know.

You should be aware that this thread is in the DSLR sub-forum, so things described here may not be applicable to P&S. It's up to you to read the thread and understand which parts my be applicable to your camera.
No, I didn't notice!  Got here via Search.  I'll keep that in mind, and ask elsewhere (http://chdk.setepontos.com/index.php?topic=7915.msg83512#msg83512).

-- Geoff
Title: Re: Utilities to make FAT16, FAT32 and exFAT CF cards bootable
Post by: Pelican on 09 / October / 2012, 12:16:29
EOScard 1.3 available to download.

New feature: EOScard can install and remove ML files.
Title: Re: Utilities to make FAT16, FAT32 and exFAT CF cards bootable
Post by: eduperez on 27 / November / 2012, 06:51:24
EOScard 1.3 available to download.

New feature: EOScard can install and remove ML files.


From the screenshot, looks like the user can select to install either the stable release or a work in progress; can the user select not to install any version of ML at all? I'm asking because EOScard is used for other hacks (400plus, for example), and that feature can confuse users. Thanks!
Title: Re: Utilities to make FAT16, FAT32 and exFAT CF cards bootable
Post by: waterwingz on 09 / December / 2017, 09:25:41
As of 2017/12/08 the download links for EOScard.exe (http://chdk.wikia.com/wiki/EOScard) appear to be defunct.  I was unable to find a mirror or backup copy online.

Perhaps the last version could be archived on the Google drive  CHDK Tools  (https://drive.google.com/drive/folders/0B08pqRtyrObjSmFqSV8yRUlqbnM)repository if someone has a copy available? The wiki page can be pointed there instead.
Title: Re: Utilities to make FAT16, FAT32 and exFAT CF cards bootable
Post by: srsa_4c on 09 / December / 2017, 10:06:13
As of 2017/12/08 the download links for EOScard.exe (http://chdk.wikia.com/wiki/EOScard) appear to be defunct.  I was unable to find a mirror or backup copy online.
pel.hu has been empty for at least some weeks. However, some of its former content has been captured by archive.org . See the down folder there.
Title: Re: Utilities to make FAT16, FAT32 and exFAT CF cards bootable
Post by: waterwingz on 09 / December / 2017, 10:47:36
However, some of its former content has been captured by archive.org . See the down folder there.
https://web.archive.org/web/20170608030518fw_/http://pel.hu:80/down/
or
https://web.archive.org/web/20170608030518fw_/http://pel.hu:80/down/EOScard.exe
Title: Re: Utilities to make FAT16, FAT32 and exFAT CF cards bootable
Post by: msl on 09 / December / 2017, 11:33:29
Some backup links:

https://chdkde.box.com/shared/rg8z9rt7gl
http://downloads.chdk-treff.de/tools/EOScard.exe
Title: Re: Utilities to make FAT16, FAT32 and exFAT CF cards bootable
Post by: eduperez on 09 / December / 2017, 18:05:32
Remember you can always rely on whatever tools the Magic Lantern people are using nowadays.
Title: Re: Utilities to make FAT16, FAT32 and exFAT CF cards bootable
Post by: waterwingz on 09 / December / 2017, 18:11:02
Remember you can always rely on whatever tools the Magic Lantern people are using nowadays.
FWIW, the Magic Lantern Install (http://wiki.magiclantern.fm/install) wiki page has the same dead link to EOSCard.exe as the CHDK wiki  :(
Title: Re: Utilities to make FAT16, FAT32 and exFAT CF cards bootable
Post by: waterwingz on 10 / December / 2017, 11:18:57
Pelican (https://chdk.setepontos.com/index.php?action=profile;u=12329) has made the download link http://pel.hu/down/EOScard.exe live again.  (I sent a PM).

But pel.hu is just a picture of horses and the rest of their stuff is still missing.
Title: Re: Utilities to make FAT16, FAT32 and exFAT CF cards bootable
Post by: eduperez on 10 / December / 2017, 16:22:47
Perhaps this might be interesting: http://www.magiclantern.fm/forum/index.php?topic=19608.0
Title: Re: Utilities to make FAT16, FAT32 and exFAT CF cards bootable
Post by: waterwingz on 10 / December / 2017, 17:48:23
Perhaps this might be interesting: http://www.magiclantern.fm/forum/index.php?topic=19608.0
https://chdk.setepontos.com/index.php?topic=13091.0   :P