[ECOS] Redboots CRC checking

Gary Thomas gary@mlbassoc.com
Thu May 27 14:40:00 GMT 2004


On Thu, 2004-05-27 at 06:54, Winkler Andreas wrote:
> Hi,
> 
> after some troubles i got the CRC checking to work. But it doesn't work as i
> expected.
> I need the CRC checking to prevent Redboot from executing a corrupted
> kernel.
> But Redboot only prints a message while loading.
> The execute command tries to start the kernel, and look what happens:
> 
> RedBoot> fi loa kernel
> ** Warning - checksum failure.  stored: 0x7ca3fe54, computed: 0xdde742c4
> RedBoot> e
> Using base address 0x01008000 and length 0x000ba7c8
> Uncompressing Linux...........
> 
> invalid compressed format (err=1)
> 
>  -- System halted
> 
> This system is defect for the use of a customer.
> I expected Redboot to not start the kernel with the checksum error.
> This would enable the start of a backup kernel in a startup script.
> Is there an existing solution for my request or must i implement it by
> myself?

I can see that the "Linux exec" code doesn't respect this failure,
sorry.

The problem is that the "Linux exec" function is [necessarily] 
implemented by each architecture.  Each of these need to be changed to
be sensitive to whether or not the load succeeds.

I've applied the attached patch, so this should now work as expected.

-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diffs
Type: text/x-patch
Size: 14724 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/ecos-discuss/attachments/20040527/71cf6e90/attachment.bin>
-------------- next part --------------
-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


More information about the Ecos-discuss mailing list