Hi TI,
I am using PSDK Linux v08.04. I want to implement a CRC check in U-Boot environment to check, if loaded Linux Kernel is valid (I loaded Linux root filesystem (including Linux Kernel in boot/Image) to eMMC Partition 2). To do so, I use the following commands:
=> setenv get_kern_mmc 'load mmc 0:2 ${loadaddr} ${bootdir}/Image' => run get_kern_mmc 19411456 bytes read in 112 ms (165.3 MiB/s) => crc32 ${loadaddr} ${filesize} 0 crc32 for 82000000 ... 832831ff ==> e49b6f46 => md 0 1 00000000: 466f9be4 ..oF =>
In the next step, I want to compare the calculated checksum with some predefined one and if they match (using itest command in U-Boot), I am good to boot. However, as you can see, the endianness is mixed up when reading the actual values using md command.
Can you provide any fix or workaround to solve this issue?
Thanks for your help and best regards,
Felix