[U-Boot-Users] qe: add ability to upload QE firmware

Timur Tabi timur at freescale.com
Fri Nov 30 23:34:10 CET 2007


Kumar Gala wrote:

>> +U_BOOT_CMD(
>> +    qe, 4, 0, qe_cmd,
>> +    "qe      - QUICC Engine commands\n",
>> +    "fw <addr> [<length>] - Upload firmware at address <addr>,\n"
> 
> I'm at a loss, why have length at all?  You seem to always take it from 
> firmware->header.length.

It's optional.  If you specify the length, it will validate that against 
header.length.  That's so that you can do this:

tftp $loadaddr $firmware
qe fw $loadaddr $filesize

If the length doesn't match, then it doesn't bother trying to parse the rest of 
the image.

The Linux version of this code does the same thing, but it's probably more 
useful since drivers will use request_firmware() which returns a length.

Granted, the CRC check is more bullet-proof.

> Also can we be more explicit in the help with 'Upload firmware'.. to 
> 'Upload microcode firmware to QE' or something like that.

Sure.  New patch coming.

-- 
Timur Tabi
Linux kernel developer at Freescale




More information about the U-Boot mailing list