tech-kern 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'



On Jun 19, 2016, at 3:18 PM, Paul Goyette wrote:

> 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!
> 

Done - I added a missing __func__ in your last print, and set module_verbose_on in the source because my kernel doesn't have symbols right now.

diff --git a/sys/kern/kern_module.c b/sys/kern/kern_module.c
index a371c0d..795bdde 100644
--- a/sys/kern/kern_module.c
+++ b/sys/kern/kern_module.c
@@ -66,7 +66,7 @@ struct modlist        module_builtins = TAILQ_HEAD_INITIALIZER(module_builtins);
 static struct modlist module_bootlist = TAILQ_HEAD_INITIALIZER(module_bootlist);
 
 static module_t        *module_active;
-static bool    module_verbose_on;
+static bool    module_verbose_on = true;
 #ifdef MODULAR_DEFAULT_AUTOLOAD
 static bool    module_autoload_on = true;
 #else
@@ -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, module_t **modp, prop_dictionary_t props)
                        }
                        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 isdep, int flags,
                } else {
                        error = module_do_builtin(name, modp, props);
                        depth--;
+                       if (error != 0)
+                               module_print("%s: failed for module %s", __func__, name);
                        return error;
                }
        }


rebooting...

NetBSD/evbarm (rpi) booting ...
[ Kernel symbol table missing! ]
Stopped in pid 0.1 (system) at  80017e0c:       bx      r14
db{0}> cont
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 7.99.30 (RPI2) #2: Sun Jun 19 19:24:07 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
WARNING: module error: can't find builtin dependency `i2c_bitbang'
DEBUG: module: module_do_builtin: built-in dependency i2c_bitbang for module iic failed
DEBUG: module: module_init_class failed for iic
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
cpu0: 32KB/32B 2-way L1 VIPT Instruction cache
cpu0: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
cpu0: 512KB/64B 8-way write-through L2 PIPT Unified cache
vfp0 at cpu0: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
cpu1 at mainbus0 core 1
cpu2 at mainbus0 core 2
cpu3 at mainbus0 core 3
obio0 at mainbus0
bcmicu0 at obio0: Multiprocessor
armgtmr0 at obio0: ARMv7 Generic 64-bit Timer (19200 kHz)
armgtmr0: interrupting on irq 3
bcmmbox0 at obio0 intr 193: VC mailbox
vcmbox0 at bcmmbox0
vchiq0 at obio0 intr 194: BCM2835 VCHIQ
bcmpm0 at obio0: Power management, Reset and Watchdog controller
bcmdmac0 at obio0: DMA0 DMA2 DMA4 DMA5 DMA8 DMA9 DMA10
bcmrng0 at obio0: RNG
plcom0 at obio0 intr 185
plcom0: txfifo disabled
plcom0: console
genfb0 at obio0
wsdisplay0 at genfb0 kbdmux 1
sdhc0 at obio0 intr 190: SDHC controller
sdhc0: interrupting on intr 190
dwctwo0 at obio0 intr 137: USB controller
bcmspi0 at obio0 intr 182: SPI
spi0 at bcmspi0: SPI bus
bsciic0 at obio0 intr 181: BSC0
iic0 at bsciic0: I2C bus
bsciic1 at obio0 intr 181: BSC1
iic1 at bsciic1: I2C bus
bcmgpio0 at obio0: GPIO [0...31]
gpio0 at bcmgpio0: 32 pins
bcmgpio1 at obio0: GPIO [32...53]
gpio1 at bcmgpio1: 22 pins
bcmcm at obio0 not configured
bcmpwm at obio0 not configured
usb0 at dwctwo0: USB revision 2.0
cpu1: 600 MHz Cortex-A7 r0p5 (Cortex V7A core)
cpu1: DC enabled IC enabled WB disabled EABT branch prediction enabled
cpu1: 32KB/32B 2-way L1 VIPT Instruction cache
cpu1: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
cpu1: 512KB/64B 8-way write-through L2 PIPT Unified cache
vfp1 at cpu1: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
cpu2: 600 MHz Cortex-A7 r0p5 (Cortex V7A core)
cpu2: DC enabled IC enabled WB disabled EABT branch prediction enabled
cpu2: 32KB/32B 2-way L1 VIPT Instruction cache
cpu2: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
cpu2: 512KB/64B 8-way write-through L2 PIPT Unified cache
vfp2 at cpu2: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
cpu3: 600 MHz Cortex-A7 r0p5 (Cortex V7A core)
cpu3: DC enabled IC enabled WB disabled EABT branch prediction enabled
cpu3: 32KB/32B 2-way L1 VIPT Instruction cache
cpu3: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
cpu3: 512KB/64B 8-way write-through L2 PIPT Unified cache
vfp3 at cpu3: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
sdhc0: SDHC 3.0, rev 153, platform DMA, 250000 kHz, HS SDR50 3.3V, re-tuning mode 1, 1024 byte blocks
sdmmc0 at sdhc0 slot 0
uhub0 at usb0: vendor 0000 DWC2 root hub, class 9/0, rev 2.00/1.00, addr 1
ld0 at sdmmc0: <0x03:0x5344:SU08G:0x80:0x611ed633:0x0e5>
ld0: 7580 MB, 3850 cyl, 64 head, 63 sec, 512 bytes/sect x 15523840 sectors
WARNING: module error: can't find builtin dependency `i2c_bitbang'ld0: 4-bit width,
 High-Speed/SDR25,DEBUG: module:  50.000 MHz
module_do_builtin: built-in dependency i2c_bitbang for module iic failed
DEBUG: module: module_init_class failed for iic
uhub1 at uhub0 port 1: vendor 0424 product 9514, class 9/0, rev 2.00/2.00, addr 2
uhub1: multiple transaction translators
usmsc0 at uhub1 port 1
usmsc0: vendor 0424 product ec00, rev 2.00/2.00, addr 3
usmsc0: Ethernet address b8:27:eb:19:a8:ec
ukphy0 at usmsc0 phy 1: OUI 0x00800f, model 0x000c, rev. 3
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
umass0 at uhub1 port 3 configuration 1 interface 0
umass0: vendor 04b4 Cypress AT2LP RC42, rev 2.00/4.20, addr 4
scsibus0 at umass0: 2 targets, 1 lun per target
uhub0: illegal enable change, port 1
sd0 at scsibus0 target 0 lun 0: <SAMSUNG, SP1604N, 0000> disk fixed
sd0: 149 GB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 312581808 sectors
boot device: ld0
root on ld0a dumps on ld0b
root file system type: ffs
kern.module.path=/stand/evbarm/7.99.30/modules
vchiq: local ver 6 (min 3), remote ver 6.
vcaudio0 at vchiq0: auds
WARNING: no TOD clock present
WARNING: using filesystem time
WARNING: CHECK AND RESET THE DATE!
audio0 at vcaudio0: half duplex, playback, capture, independent
Enter pathname of shell or RETURN for /bin/sh: 



Home | Main Index | Thread Index | Old Index