/** Provide a head info to the loader parsing. @file nvt_headinfo.c @ingroup @note Copyright Novatek Microelectronics Corp. 2019. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. */ #include #include #include #define __string(_x) #_x #define __xstring(_x) __string(_x) extern char uboot_bin_size[]; extern HEADINFO gHeadInfo __attribute__ ((section (".data.bininfo"))); HEADINFO gHeadInfo = { (UINT32)&__image_copy_start, //<- fw CODE entry (4) {0}, ///<- reserved (4*19) "ub51089 ", //<- CHIP-NAME / TAG-NAME (8) "FFFFFFFF", //<- version (8) __xstring(_BUILD_DATE_), //<- releasedate (8) 0xffffffff, //<- Bin File Length (4) 0xffffffff, //<- Check Sum or CRC (4) 0,///<- Length check for CRC (4) 0,///<- where modelext data is. w by Ld / u-boot (4) #ifdef _NVT_LINUX_SMP_ON_ 2,///<- Bin flag (4) #else 0, #endif 0,///<- Binary Tag for CRC (4) };