Author Topic: Help with link_bss santity check  (Read 343 times)

Offline taliesin

  • Jr. Member
  • **
  • Posts: 63
Help with link_bss santity check
« on: 05 / June / 2011, 08:38:51 »
Hey  im trying to port CHDK to a new camera and the execution it is failing on a sanity check.

if((long)&link_bss_end > ( MEMISOSTART + MEMISOSIZE))
{
    started();
    shutdown();
}

I have no idea what is going on here.

MEMISOSTART=0x18A7FC
MEMISOSIZE=0x45a62 ( from caminfo.txt)

Any suggestions?

Thanks

Offline reyalp

  • Guru Member
  • ******
  • Posts: 4492
Re: Help with link_bss santity check
« Reply #1 on: 05 / June / 2011, 09:53:30 »
Something wrong in your toolchain or makefiles I guess.

This sanity check was from when MEMISOSIZE was set manually, but that's not needed any more because memisosize is set automatically (has been for a couple years...)
Don't forget what the H stands for.

Offline taliesin

  • Jr. Member
  • **
  • Posts: 63
Re: Help with link_bss santity check
« Reply #2 on: 05 / June / 2011, 10:01:02 »
Something wrong in your toolchain or makefiles I guess.

This sanity check was from when MEMISOSIZE was set manually, but that's not needed any more because memisosize is set automatically (has been for a couple years...)

OK.Sound it sounds as if though it will be safe to comment out the section until I can find the problem?

Offline reyalp

  • Guru Member
  • ******
  • Posts: 4492
Re: Help with link_bss santity check
« Reply #3 on: 05 / June / 2011, 10:18:02 »
OK.Sound it sounds as if though it will be safe to comment out the section until I can find the problem?
I wouldn't say that. if everything is setup correctly, that check is doing the equivalent of if(1 != 1). The fact that it fails means something is *very* wrong in the way you've built it.
Don't forget what the H stands for.

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal