This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
Correct redboot hang with uninitialized config.
- From: Kirill Berezin <kyb at online dot ru>
- To: ecos-patches at ecos dot sourceware dot org
- Date: Fri, 23 Apr 2010 14:27:05 +0400
- Subject: Correct redboot hang with uninitialized config.
Hello,
I suddenly came across possible hang or sigfault condition for redboot
with no configuration stored in flash.
The current version of dns module has a default initialization of dns
domain as a pointer to zero.
As a result redboot hangs on boot on mips32 platform. I attached a patch
with possible solution, I hope it will be helpful.
Kirill.
Index: dns.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/redboot/current/src/net/dns.c,v
retrieving revision 1.5
diff -c -r1.5 dns.c
*** dns.c 29 Jan 2009 17:50:04 -0000 1.5
--- dns.c 22 Apr 2010 12:09:32 -0000
***************
*** 76,82 ****
dns_domain,
ALWAYS_ENABLED, true,
CONFIG_STRING,
! 0
);
#endif
--- 76,82 ----
dns_domain,
ALWAYS_ENABLED, true,
CONFIG_STRING,
! ""
);
#endif