Other Parts Discussed in Thread: AM3352
Hello,
I use Linux Kernel 4.1.18 (from TI SDK) on the am3352 board (embedded system).
I would like to count from the driver the md5 sum of Kernel's text section(s) and then verify with the value pre-calculated on host machine during system image creation.
On my currect build I have memory layout with ".text : 0xc0008000 - 0xc0673004 (6573 kB)". Based on this I try to count md5 of this area in the driver.
But, count value depends on:
1) system start. Mainly , value counted on host side is different then counted by driver: I see some changes in text area e.g. 0x813483e2 -> 0xc03483e2 (looks like addresses translations)
2) external application execution. Mainly ,after ntpd start, some words in ip area are changed e.g. in .text area of secure_tcpv6_sequence_number() or inet_ehashfn(). It looks like __force and __read_mostly attributes change (always 0xe1a00000 -> 0xea000004) some data.
Any suggestions, how should I count checksum of kernel in runtime? It should be verified with value created on host during system image creation.
Thanks in advance