Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: on RPI2/evbarmv7hf - can't find builtin dependency `i2c_bitbang'



(This is probably not specific to port-arm, so I'm cross-posting to tech-kern ...)

Can you please rebuild with the attached patch?

Then, use 'boot -d -x -s', and when you get to the ddb(4) prompt, enter

	module_verbose_on=1
	cont

and provide the entire dmesg.

If you make it all the way to single-user mode, please provide the output from the modstat(8) command.

Thanks!


On Sun, 19 Jun 2016, Michael Plass wrote:

Running on a recent current (source of 2016/06/15 05:01:58), I'm seeing
dmesg warnings about i2c_bitbang:

NetBSD 7.99.30 (RPI2) #0: Fri Jun 17 13:50:22 PDT 2016
      michael@mipi:/usr/obj/sys/arch/evbarm/compile/RPI2
total memory = 944 MB
avail memory = 925 MB
sysctl_createv: sysctl_create(machine_arch) returned 17
timecounter: Timecounters tick every 10.000 msec
WARNING: module error: can't find builtin dependency `i2c_bitbang'
mainbus0 (root)
cpu0 at mainbus0 core 0: 600 MHz Cortex-A7 r0p5 (Cortex V7A core)
cpu0: DC enabled IC enabled WB disabled EABT branch prediction enabled
...

likely related to the recent changes to make a loadable module of i2c_bitbang?

Also, the message comes out a second time later on, but there seems to
be a newline missing:

...
uhub0 at usb0: vendor 0000 DWC2 root hub, class 9/0, rev 2.00/1.00, addr 1
uhub0: 1 port with 1 removable, self powered
ld0 at sdmmc0: <0x03:0x5344:SU08G:0x80:0x611ed633:0x0e5>
ld0: 7580 MB, 3850 cyl, 64 head, 63 sec, 512 bytes/sect x 15523840 sectors
IPsec: Initialized Security Association Processing.
WARNING: module error: can't find builtin dependency `i2c_bitbang'ld0: 4-bit width,
High-Speed/SDR25, 50.000 MHz
uhub1 at uhub0 port 1: vendor 0424 product 9514, class 9/0, rev 2.00/2.00, addr 2
uhub1: multiple transaction translators
uhub1: 5 ports with 4 removable, self powered
...

Thanks,
- Michael
!DSPAM:5767034442661997166666!



+------------------+--------------------------+------------------------+
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:      |
| (Retired)        | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com   |
| Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd.org |
+------------------+--------------------------+------------------------+
Index: kern_module.c
===================================================================
RCS file: /cvsroot/src/sys/kern/kern_module.c,v
retrieving revision 1.111
diff -u -p -r1.111 kern_module.c
--- kern_module.c	16 Jun 2016 23:09:44 -0000	1.111
+++ kern_module.c	19 Jun 2016 22:10:22 -0000
@@ -509,6 +509,8 @@ module_init_class(modclass_t modclass)
 			    module_do_builtin(mi->mi_name, NULL, NULL) != 0) {
 				TAILQ_REMOVE(&module_builtins, mod, mod_chain);
 				TAILQ_INSERT_TAIL(&bi_fail, mod, mod_chain);
+				module_print("%s failed for %s", __func__,
+				    mi->mi_name);
 			}
 			break;
 		}
@@ -814,6 +816,9 @@ module_do_builtin(const char *name, modu
 			}
 			error = module_do_builtin(buf, &mod2, NULL);
 			if (error != 0) {
+				module_print("%s: built-in dependency %s "
+				    "for module %s failed", __func__, buf,
+				    mi->mi_name);
 				return error;
 			}
 			mod->mod_required[mod->mod_nrequired++] = mod2;
@@ -918,6 +923,8 @@ module_do_load(const char *name, bool is
 		} else {
 			error = module_do_builtin(name, modp, props);
 			depth--;
+			if (error != 0)
+				module_print("%s: failed for module %s", name);
 			return error;
 		}
 	}


Home | Main Index | Thread Index | Old Index