Problem making bootable SD Card - General Help and Assistance on using CHDK stable releases - CHDK Forum  

Problem making bootable SD Card

  • 16 Replies
  • 716 Views
Problem making bootable SD Card
« on: 23 / February / 2019, 03:09:20 »
Advertisements
I just cannot get an SD card bootable with EOScard on my M3. But it had to work before…

When I do that in the camera, it always works.
The information that I afterwards with EOScard got  differ in the value behind BOOTDISK
I've already tried this with 2 different cards and different EOScard versions….
I got no Errors from EOScard…
« Last Edit: 23 / February / 2019, 03:11:37 by c_joerg »
M100 100a, M3 101a, 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), 2*S45,
Flickr https://www.flickr.com/photos/136329431@N06/albums
YouTube https://www.youtube.com/channel/UCrTH0tHy9OYTVDzWIvXEMlw/videos?shelf_id=0&view=0&sort=dd

*

Online msl

  • *****
  • 1262
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: Problem making bootable SD Card
« Reply #1 on: 23 / February / 2019, 03:39:26 »
Did you ever try to set "bootdisk" with a hex editor, e.g. HxD. What happens then?

msl
CHDK-DE:  CHDK-DE links

Re: Problem making bootable SD Card
« Reply #2 on: 23 / February / 2019, 03:58:58 »
Did you ever try to set "bootdisk" with a hex editor, e.g. HxD.
No. Never…
To which position? Uppercase or lowercase?

What do the different values say after BOOTDISK (0x05c vs 0x1EO)?

Maybe that explains the problems I have with a SCRIPT SD Card
https://chdk.setepontos.com/index.php?topic=13699.msg139564#msg139564

M100 100a, M3 101a, 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), 2*S45,
Flickr https://www.flickr.com/photos/136329431@N06/albums
YouTube https://www.youtube.com/channel/UCrTH0tHy9OYTVDzWIvXEMlw/videos?shelf_id=0&view=0&sort=dd

*

Online msl

  • *****
  • 1262
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: Problem making bootable SD Card
« Reply #3 on: 23 / February / 2019, 04:40:28 »
For me, using a hex editor is the easiest way to make a sd card bootable. HxD is a portable program. Choose the right drive!

You just have to write the string BOOTDISK (uppercase!) to a specific address:

FAT16 0x40
FAT32 0x1E0

msl
CHDK-DE:  CHDK-DE links


Re: Problem making bootable SD Card
« Reply #4 on: 23 / February / 2019, 06:31:02 »
I'm not sure that I follow exactly what you have done but the BOOTDISK string is being written to different addresses in the two photos you posted?
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Problem making bootable SD Card
« Reply #5 on: 23 / February / 2019, 11:18:04 »
I'm not sure that I follow exactly what you have done but the BOOTDISK string is being written to different addresses in the two photos you posted?
Yes of course, that’s the problem.
CHDK writes to 0x1E0
EOScard writes to 0x05C
FAT32 0x1E0
But why EOScard writes to 0x05C?
EOScard write SCRIPT to 0x1F0. Is this correct?

https://chdk.fandom.com/wiki/EOScard
Step 11 => I can’t change the Address in EOScard to 0x1E0 .


M100 100a, M3 101a, 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), 2*S45,
Flickr https://www.flickr.com/photos/136329431@N06/albums
YouTube https://www.youtube.com/channel/UCrTH0tHy9OYTVDzWIvXEMlw/videos?shelf_id=0&view=0&sort=dd

Re: Problem making bootable SD Card
« Reply #6 on: 27 / February / 2019, 00:42:19 »
Hello, I'm still wondering what went wrong. I cannot change the address in EOScard. Is it really that EOScard writes to the wrong address?

How could this never work?
https://chdk.fandom.com/wiki/EOScard

I probably always did that only with CHDK ...

For me that explains at least why some people for their M3 did not manage to get a bootable SD card.
M100 100a, M3 101a, 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), 2*S45,
Flickr https://www.flickr.com/photos/136329431@N06/albums
YouTube https://www.youtube.com/channel/UCrTH0tHy9OYTVDzWIvXEMlw/videos?shelf_id=0&view=0&sort=dd

*

Offline Ant

  • ****
  • 430
Re: Problem making bootable SD Card
« Reply #7 on: 27 / February / 2019, 09:51:27 »
For me the solution was:
1. Filling the first 100MB of SD card by zeros.
2. Formatting SD card in the camera.
3. Executing EOScard.


Re: Problem making bootable SD Card
« Reply #8 on: 27 / February / 2019, 10:49:57 »
1. Filling the first 100MB of SD card by zeros.

And that makes the difference?

3. Executing EOScard.

To which address (0x1E0 or 0x05C)?

As long as you have a CHDK camera with firmware update method, you can create the bootable SD synonymous with it.
M100 100a, M3 101a, 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), 2*S45,
Flickr https://www.flickr.com/photos/136329431@N06/albums
YouTube https://www.youtube.com/channel/UCrTH0tHy9OYTVDzWIvXEMlw/videos?shelf_id=0&view=0&sort=dd

*

Offline Ant

  • ****
  • 430
Re: Problem making bootable SD Card
« Reply #9 on: 27 / February / 2019, 13:29:00 »
And that makes the difference?
This procedure clears MBR, partition table, PBR. Probably it depends.

Quote
To which address (0x1E0 or 0x05C)?
Don't remember. By default.

 

Related Topics