What causes "bootsdcard" to fail?
Oldbitcollector (Jeff)
Posts: 8,091
I've run into a series of unexplainable situations where fsrw's "bootsdcard" routine fails to properly launch another binary.
Can someone give me a idea of what factors would cause this to fail? I thought it had to do with the size of the destination program, but my testing shows this isn't a factor.
From FSRW
From SDPIFEMTO
The solution of "simply switch to Kye's isn't going to work, as I need the memory space.
Any help unraveling this would be appreciated.
Thanks
Can someone give me a idea of what factors would cause this to fail? I thought it had to do with the size of the destination program, but my testing shows this isn't a factor.
From FSRW
pub bootsdcard return sdspi.bootsdcard(datablock, filesize <# $8000)
From SDPIFEMTO
pub bootsdcard(addr,count) | t if count < 16 return true repeat t from 0 to 7 if (t <> cogid) and (t <> (cog-1)) cogstop(t) t := iospiboot | iostopldr | cogid long[control][1] := count << 16 long[control][0] := (t << 24) | (addr & $ffffff) repeat while long[control][0] & iotestrdy return (long[control][0] & iotesterr) <> 0
The solution of "simply switch to Kye's isn't going to work, as I need the memory space.
Any help unraveling this would be appreciated.
Thanks
Comments
Jonathan
2.6
So I am to understand that the physical size of the program could be a factor here? The one that fails is currently a 15k binary. Others that work fine are various sizes.
Jeff
Andy
Ah! Allocation Units! Ok.. I've got it.
That seemed to have been the ticket! Programs which were failing seem to be working correctly. Thank you!
Jeff