Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Oct 2010 12:19:26 -0700
From:      Xin LI <delphij@delphij.net>
To:        FreeBSD Current <freebsd-current@FreeBSD.ORG>
Subject:   [RFC] More meaningful information about ENOEXEC for kldload(8)
Message-ID:  <4CC5D83E.8030505@delphij.net>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------080707000109090009040800
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi,

Here is a simple patch that adds more meaning messages when kldload hits
ENOEXEC.

Before patch:

kldload: can't load geom_eli.ko: Exec format error

After patch:

kldload: can't load geom_eli.ko: Exec format error
kldload: Dependendent kernel module cannot be loaded from kern.module_path?

Comments?

Cheers,
- -- 
Xin LI <delphij@delphij.net>	http://www.delphij.net/
FreeBSD - The Power to Serve!	       Live free or die
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (FreeBSD)

iQEcBAEBCAAGBQJMxdg+AAoJEATO+BI/yjfBEasH/1vKrCT/HX0xEUFYLEK5mjNr
iZPJVIpe5R9jRWLzb1065qMQR5eMgiotig9p/ymOebq3azQAsDagOJDzzYa46ReS
yNlUYq6GnVHsOh15cBHxtRBkuJ0Q3jWammPAXf0oYmvFrPBQstLp7iyhS7PZUUBb
7DnFMPLh3FSiovli6JFwhHpYQSDwz7K4UPzj/Un0DwuMoz8fyGoyOz8ZRqAY6D5g
GwesbqBhjDaOuwJNFaNcjoEK4Eq/iwkotZCz7l38Skmlle7wwycuyYdEIuk9feiS
/dn4CyhzKwNVbVPqZOEJ99bAuxJUwsfDEpGeYLH97rGqz7U4Y6LM18R/fip+0DM=
=qeYL
-----END PGP SIGNATURE-----

--------------080707000109090009040800
Content-Type: text/plain;
 name="kldload.diff"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="kldload.diff"

SW5kZXg6IGtsZGxvYWQuYwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBrbGRsb2FkLmMJKHJldmlzaW9u
IDIxNDE0NikKKysrIGtsZGxvYWQuYwkod29ya2luZyBjb3B5KQpAQCAtMzMsNiArMzMsNyBA
QAogI2luY2x1ZGUgPHN5cy9zeXNjdGwuaD4KICNpbmNsdWRlIDxzeXMvc3RhdC5oPgogI2lu
Y2x1ZGUgPGVyci5oPgorI2luY2x1ZGUgPGVycm5vLmg+CiAjaW5jbHVkZSA8c3RkaW8uaD4K
ICNpbmNsdWRlIDxzdGRsaWIuaD4KICNpbmNsdWRlIDxzdHJpbmcuaD4KQEAgLTE3MSw2ICsx
NzIsOSBAQAogCQkJZmlsZWlkID0ga2xkbG9hZChhcmd2WzBdKTsKIAkJCWlmIChmaWxlaWQg
PCAwKSB7CiAJCQkJd2FybigiY2FuJ3QgbG9hZCAlcyIsIGFyZ3ZbMF0pOworCQkJCWlmIChl
cnJubyA9PSBFTk9FWEVDICYmICFxdWlldCkKKwkJCQkJd2FybngoIkRlcGVuZGVuZGVudCBr
ZXJuZWwgbW9kdWxlIGNhbid0IgorCQkJCQkgICAgImJlIGxvYWRlZCBmcm9tIGtlcm4ubW9k
dWxlX3BhdGg/Iik7CiAJCQkJZXJyb3JzKys7CiAJCQl9IGVsc2UgewogCQkJCWlmICh2ZXJi
b3NlKQo=
--------------080707000109090009040800--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4CC5D83E.8030505>