Uboot: Syntax Error, Uboot restarts

Discussion about U-Boot and the kernel.

Uboot: Syntax Error, Uboot restarts

Postby gangadhar » Mon Jul 14, 2014 5:28 am

Hi,
Uboot prints syntax error and restarts. To get line no. and file name when syntax error happens, I did

#ifdef BOARD_DVP1
#ifdef __U_BOOT__
#undef __U_BOOT__
#endif

seeing these lines in common/hush.c
#ifdef __U_BOOT__
static void syntax_err(void) {
printf("syntax error\n");
}
#else
static void __syntax(char *file, int line) {
error_msg("syntax error %s:%d", file, line);
}
#define syntax() __syntax(__FILE__, __LINE__)
#endif

But during compilation, i git thsi error "fatal error: ctype.h: No such file or directory". what is the correct way to enable file no. and line no.?

Regards,
Gangadhar
gangadhar
 
Posts: 1
Joined: Sun Jul 13, 2014 12:17 pm

Return to U-Boot/Kernel

Who is online

Users browsing this forum: No registered users and 6 guests