From 973b41dc30f1174a4b5fdbbe990c8e76a96aac85 Mon Sep 17 00:00:00 2001 From: Matt Fleming Date: Fri, 19 Oct 2012 10:52:44 +0100 Subject: [PATCH] core: Print error message if we don't load ldlinux.c32 If the user forgot to install ldlinux.c32 they're greeted with the following unhelpful message, Boot failed: press a key to retry, or wait for reset... We should explicitly tell the user that the reason for the boot failing is that ldlinux.c32 could not be loaded. Signed-off-by: Matt Fleming --- core/elflink/load_env32.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/elflink/load_env32.c b/core/elflink/load_env32.c index 8e124a0..49c5989 100644 --- a/core/elflink/load_env32.c +++ b/core/elflink/load_env32.c @@ -141,6 +141,8 @@ void load_env32(com32sys_t * regs __unused) if (!search_dirs(&fp->i.fd, search_directories, filenames, realname)) start_ldlinux(argv); + + writestr("\nFailed to load ldlinux.c32"); } int create_args_and_load(char *cmdline) -- 2.7.4