Camera just hangs when custom-built CHDK is loaded - General Discussion and Assistance - CHDK Forum

Camera just hangs when custom-built CHDK is loaded

  • 8 Replies
  • 4563 Views
Camera just hangs when custom-built CHDK is loaded
« on: 03 / August / 2010, 21:09:12 »
Advertisements
I put my custom-built DISKBOOT.BIN on a bootable SD card, locked it, and put it in the camera, but when I turned it on, nothing happened. It didn't even appear to turn on (though it probably did but just hung when it loaded DISKBOOT.BIN.) What am I doing wrong?

  • DISKBOOT.BIN download: http://www.mediafire.com/?4i4vaj0ein8ai04
  • Camera model and firmware version: SX110IS; 1.00B
  • Operating system: Mac OS X
  • Notes: Skipped making arm-elf-gcc-4.3.2 the default due to no /usr/local/arm/bin directory; set OBJDUMP in makefile.inc to /usr/bin/true due to it crashing (SIGABRT) whenever it dumped main.elf

*

Offline reyalp

  • ******
  • 14117
Re: Camera just hangs when custom-built CHDK is loaded
« Reply #1 on: 04 / August / 2010, 00:08:50 »
I put my custom-built DISKBOOT.BIN on a bootable SD card, locked it, and put it in the camera, but when I turned it on, nothing happened. It didn't even appear to turn on (though it probably did but just hung when it loaded DISKBOOT.BIN.) What am I doing wrong?

  • DISKBOOT.BIN download: http://www.mediafire.com/?4i4vaj0ein8ai04
  • Camera model and firmware version: SX110IS; 1.00B
  • Operating system: Mac OS X
  • Notes: Skipped making arm-elf-gcc-4.3.2 the default due to no /usr/local/arm/bin directory; set OBJDUMP in makefile.inc to /usr/bin/true due to it crashing (SIGABRT) whenever it dumped main.elf
Did you read my response to your pm today ?  I distinctly remember telling that
- CHDK is very sensitive to how it's toolchain is configured, and will most likely not work with other random ARM toolchains
- An improperly configured toolchain may result in builds that don't work.

The symptom you describe is exactly the result you'd get if your toolchain was not configured correctly, although there are other possible causes.
Don't forget what the H stands for.

Re: Camera just hangs when custom-built CHDK is loaded
« Reply #2 on: 04 / August / 2010, 01:55:37 »
Duh! ::) I didn't make the connection to what you said in your PM, which I had read. But when I installed arm-elf-gcc, it didn't give me version 4.3.2, it gave me 4.2.0 or something like that. Not to mention the /usr/local/arm/bin directory didn't exist, as I put one of those red boxes (you know what I mean reyalp) on the wiki article about compiling on Mac OS X. (I did that because I think the article may have the wrong directory, and I want to alert the editors to that. Nobody reads the talk pages, and this isn't Wikipedia.)
« Last Edit: 04 / August / 2010, 02:15:49 by flarn2006 »

*

Offline reyalp

  • ******
  • 14117
Re: Camera just hangs when custom-built CHDK is loaded
« Reply #3 on: 04 / August / 2010, 03:00:13 »
The wiki is enough mess as is, can you imagine what it would be like if everyone asked their support questions in big red boxes in the middle of the articles ?

You may not have followed the instructions correctly (given that you skipped steps, that's pretty likely). Or there could be other differences between your system and the one the instructions were written for. Or the instructions could be wrong. Once you have figured out how to make a working toolchain for your configuration, you can update the wiki as appropriate.
Don't forget what the H stands for.


Re: Camera just hangs when custom-built CHDK is loaded
« Reply #4 on: 04 / August / 2010, 12:58:08 »
The wiki is enough mess as is, can you imagine what it would be like if everyone asked their support questions in big red boxes in the middle of the articles?

I figured it would be okay, as it was something about the article, which I thought would be wrong. But you've been here longer than me; if you say (or rather imply) I shouldn't do that, I'll take your word for it.

You may not have followed the instructions correctly (given that you skipped steps, that's pretty likely). Or there could be other differences between your system and the one the instructions were written for. Or the instructions could be wrong. Once you have figured out how to make a working toolchain for your configuration, you can update the wiki as appropriate.

The only step I skipped was the one that required me to use that directory that didn't exist. So me having skipped steps couldn't have been what caused it to not exist. But the thing is, when I installed arm-elf-gcc using MacPorts, it didn't even install version 4.3.2. Are you aware of something like CHDK-Shell for the Mac?
« Last Edit: 04 / August / 2010, 13:00:50 by flarn2006 »

Re: Camera just hangs when custom-built CHDK is loaded
« Reply #5 on: 04 / August / 2010, 13:09:16 »
Actually, I just remembered: this happened when installing arm-elf-gcc, but the binaries were still there, so I just forgot about it. That's probably why that directory wasn't there, right? (In case you're wondering, I uninstalled and reinstalled arm-elf-gcc, and it happened again, which is how I remembered.)

http://pastebin.com/Nk9c3E6s

*

Offline reyalp

  • ******
  • 14117
Re: Camera just hangs when custom-built CHDK is loaded
« Reply #6 on: 04 / August / 2010, 17:28:30 »
Actually, I just remembered: this happened when installing arm-elf-gcc, but the binaries were still there, so I just forgot about it. That's probably why that directory wasn't there, right? (In case you're wondering, I uninstalled and reinstalled arm-elf-gcc, and it happened again, which is how I remembered.)

http://pastebin.com/Nk9c3E6s
If building the toolchain failed, then you have much bigger problems than a directory not existing. Notice the first error:
Code: [Select]
#
ln sys/crt0.o crt0.o >/dev/null 2>/dev/null || cp sys/crt0.o crt0.o
#
mkdir tmp
#
cp: sys/crt0.o: No such file or directory
#
make[8]: *** [crt0.o] Error 1

Regarding the wiki:
The instructions on the wiki may or may not be wrong (or not applicable to your version of OSX or macports or who knows what, since none of that information is specified) but until you can narrow it down a bit, I don't see how your message could be  helpful to anyone. Clearly, it's not just a matter of a mis-typed directory name in the instructions.

I'm not aware of anything like CHDK shell for Mac. Again, the path of least resistance would be to use XP (either on another machine or in a VM) with a chdkshell. I believe there are also pre-built toolchains for linux, but that is less likely to Just Work.

Or you can figure out what your problems are on mac, but it's clear you'll have to do some debugging.
Don't forget what the H stands for.

Re: Camera just hangs when custom-built CHDK is loaded
« Reply #7 on: 06 / August / 2010, 18:58:40 »
Good news; I finally got it to work! I posted what I did on the wiki.


Re: Camera just hangs when custom-built CHDK is loaded
« Reply #8 on: 11 / August / 2010, 16:15:39 »
The instructions are out of date. The directory noted has to be created by hand, and then everything works okay. It's not perfect--there are compile-time warnings in some situations about interwork being enabled for some but not all code. So far that hasn't seemed to have an adverse effect in my test though.

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal