38 #include "./GCC_CMAKE/test_file_bin.h"
39 #include "common/uboot_file.h"
43 #define IMAGE_STEP 0x100
51 (
flash_addr_t)test_file_file_content+
sizeof(test_file_file_content));
52 if (uboot_file_addr != ((
flash_addr_t)test_file_file_content)) {
53 puts(
"Error for searching from known address");
55 puts(
"Searching from known address succsesful");
61 char * alligned_ptr = (
char * )
64 memcpy(alligned_ptr,test_file_file_content,
sizeof(test_file_file_content) );
68 puts(
"Error for searching from unknown address aligned by 256");
70 puts(
"Searching from unknown address succsesful aligned by 256");
73 char * notalligned_ptr = alligned_ptr +
IMAGE_STEP/2-1;
74 memcpy(notalligned_ptr,test_file_file_content,
sizeof(test_file_file_content) );
77 if (uboot_file_addr != ((
flash_addr_t)notalligned_ptr)) {
78 puts(
"Error for searching from unknown address");
80 puts(
"Searching from unknown address succsesful");
84 sizeof(test_file_file_content));