Current-Users archive

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

Re: Raspberry Pi camera under NetBSD current



On Wednesday 27 Oct 2021 20:07:53 Dave Tyson wrote:
> On Wednesday 27 Oct 2021 18:28:31 Michael van Elst wrote:
> > dtyson%anduin.org.uk@localhost (Dave Tyson) writes:
> > >I have been trying to get the raspberry pi camera to work on a model B
> > >under a recent current snapshot.
> > >
> > > NetBSD 9.99.88 (RPI) #0: Fri Sep 24 18:47:29 UTC 2021
> > > mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/evbarm/compile/RPI
> > >
> > >As standard booting off the sdcard works fine with the default
> > >config.txt,
> > >but to use the camera you need to modify this to add  start_x=1 and set
> > >the
> > >gpu mem to 128.  With the changed options you need different microcode
> > >files in the /boot partition start_x.elf and fixup_x.dat. NetBSD doesn't
> > >supply these, but I pulled versions from the git repository.
> > >
> > >The problem is that the system boots, but fails to attach the sdcard and
> > >thus cannot find root,

The attached diff of the boot messages shows some extra commands are issued to 
the bcmsdhost module in the failing case. I guess the calling sdmmc module 
doesn't like some of the data from the calls, tries to recover and fails. I'll 
try and understand the logic...

Dave
 NetBSD/evbarm (fdt) booting 										 NetBSD/evbarm (fdt) booting 
 [ Kernel symbol table missing! 									 [ Kernel symbol table missing! 
 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,				 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,				     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
     2018, 2019, 2020, 2021 The NetBSD Foundation, Inc  All rights reserved				     2018, 2019, 2020, 2021 The NetBSD Foundation, Inc  All rights reserved
 Copyright (c) 1982, 1986, 1989, 1991, 1993								 Copyright (c) 1982, 1986, 1989, 1991, 1993
     The Regents of the University of California  All rights reserved					     The Regents of the University of California  All rights reserved
 NetBSD 9.99.92 (RPI) #2: Tue Oct 26 21:20:04 BST 2021							 NetBSD 9.99.92 (RPI) #2: Tue Oct 26 21:20:04 BST 2021
 	root@cruncheranduinorguk:/usr/armobj/sys/arch/evbarm/compile/RPI				 	root@cruncheranduinorguk:/usr/armobj/sys/arch/evbarm/compile/RPI
 total memory = 384 MB										   |	 total memory = 128 MB
 avail memory = 366 MB										   |	 avail memory = 115 MB
 armfdt0 (root)												 armfdt0 (root)
 simplebus0 at armfdt0: Raspberry Pi Model B Rev 2							 simplebus0 at armfdt0: Raspberry Pi Model B Rev 2
 simplebus1 at simplebus0										 simplebus1 at simplebus0
 simplebus2 at simplebus0										 simplebus2 at simplebus0
 simplebus3 at simplebus0										 simplebus3 at simplebus0
 cpus0 at simplebus0											 cpus0 at simplebus0
 cpu0 at cpus0: 700 MHz ARM1176JZ-S r0p7 (ARM11J V6ZK core)						 cpu0 at cpus0: 700 MHz ARM1176JZ-S r0p7 (ARM11J V6ZK core)
 cpu0: DC enabled IC enabled WB enabled LABT								 cpu0: DC enabled IC enabled WB enabled LABT
 cpu0: L1 16KB/32B 4-way (128 set) VIPT Instruction cache						 cpu0: L1 16KB/32B 4-way (128 set) VIPT Instruction cache
 cpu0: L1 16KB/32B 4-way (128 set) write-back-locking-C VIPT Data cache					 cpu0: L1 16KB/32B 4-way (128 set) write-back-locking-C VIPT Data cache
 vfp0 at cpu0: VFP11, rounding, exceptions								 vfp0 at cpu0: VFP11, rounding, exceptions
 fclock0 at simplebus2: 19200000 Hz fixed clock (osc)							 fclock0 at simplebus2: 19200000 Hz fixed clock (osc)
 fclock1 at simplebus2: 480000000 Hz fixed clock (otg)							 fclock1 at simplebus2: 480000000 Hz fixed clock (otg)
 simplebus4 at simplebus1										 simplebus4 at simplebus1
 bcmicu0 at simplebus1											 bcmicu0 at simplebus1
 bcmcprman0 at simplebus1: BCM283x Clock Controller							 bcmcprman0 at simplebus1: BCM283x Clock Controller
 bcmtmr0 at simplebus1: VC System Timer									 bcmtmr0 at simplebus1: VC System Timer
 bcmtmr0: interrupting on icu irq 3									 bcmtmr0: interrupting on icu irq 3
 bcmaux0 at simplebus1											 bcmaux0 at simplebus1
 /soc/thermal@7e212000 at simplebus1 not configured							 /soc/thermal@7e212000 at simplebus1 not configured
 /soc/dsi@7e209000 at simplebus1 not configured								 /soc/dsi@7e209000 at simplebus1 not configured
 bcmgpio0 at simplebus1: GPIO controller 2835								 bcmgpio0 at simplebus1: GPIO controller 2835
 bcmgpio0: pins 031 interrupting on icu irq 49								 bcmgpio0: pins 031 interrupting on icu irq 49
 bcmgpio0: pins 3254 interrupting on icu irq 50								 bcmgpio0: pins 3254 interrupting on icu irq 50
 gpio0 at bcmgpio0: 54 pins										 gpio0 at bcmgpio0: 54 pins
 bcmdmac0 at simplebus1: DMA0 DMA2 DMA4 DMA5 DMA6 DMA7 DMA8 DMA9 DMA10 DMA11				 bcmdmac0 at simplebus1: DMA0 DMA2 DMA4 DMA5 DMA6 DMA7 DMA8 DMA9 DMA10 DMA11
 /soc/power at simplebus1 not configured								 /soc/power at simplebus1 not configured
 /phy at simplebus0 not configured									 /phy at simplebus0 not configured
 bsciic0 at simplebus1: Broadcom Serial Controller							 bsciic0 at simplebus1: Broadcom Serial Controller
 bsciic0: interrupting on icu irq 53									 bsciic0: interrupting on icu irq 53
 iic0 at bsciic0: I2C bus										 iic0 at bsciic0: I2C bus
 bcmpmwdog0 at simplebus1: Power management, Reset and Watchdog controller				 bcmpmwdog0 at simplebus1: Power management, Reset and Watchdog controller
 bcmmbox0 at simplebus1: VC mailbox									 bcmmbox0 at simplebus1: VC mailbox
 bcmmbox0: interrupting on icu irq 65									 bcmmbox0: interrupting on icu irq 65
 vcmbox0 at bcmmbox0											 vcmbox0 at bcmmbox0
 /soc/txp@7e004000 at simplebus1 not configured								 /soc/txp@7e004000 at simplebus1 not configured
 plcom0 at simplebus1: ARM PL011 UART									 plcom0 at simplebus1: ARM PL011 UART
 plcom0: txfifo disabled										 plcom0: txfifo disabled
 plcom0: console											 plcom0: console
 plcom0: interrupting on icu irq 57									 plcom0: interrupting on icu irq 57
 bcmsdhost0 at simplebus1: SD HOST controller								 bcmsdhost0 at simplebus1: SD HOST controller
 bcmsdhost0: interrupting on icu irq 56									 bcmsdhost0: interrupting on icu irq 56
 bsciic1 at simplebus1: Broadcom Serial Controller							 bsciic1 at simplebus1: Broadcom Serial Controller
 bsciic1: interrupting on icu irq 53									 bsciic1: interrupting on icu irq 53
 iic1 at bsciic1: I2C bus										 iic1 at bsciic1: I2C bus
 /soc/pwm@7e20c000 at simplebus1 not configured								 /soc/pwm@7e20c000 at simplebus1 not configured
 bsciic2 at simplebus1: Broadcom Serial Controller							 bsciic2 at simplebus1: Broadcom Serial Controller
 bsciic2: interrupting on icu irq 53									 bsciic2: interrupting on icu irq 53
 iic2 at bsciic2: I2C bus										 iic2 at bsciic2: I2C bus
 /soc/vec@7e806000 at simplebus1 not configured								 /soc/vec@7e806000 at simplebus1 not configured
 dwctwo0 at simplebus1: USB controller									 dwctwo0 at simplebus1: USB controller
 dwctwo0: interrupting on icu irq 9									 dwctwo0: interrupting on icu irq 9
 /soc/hdmi@7e902000 at simplebus1 not configured							 /soc/hdmi@7e902000 at simplebus1 not configured
 /soc/gpu at simplebus1 not configured									 /soc/gpu at simplebus1 not configured
 genfb0 at simplebus1no data for est mode 640x480x67							 genfb0 at simplebus1no data for est mode 640x480x67
 wsdisplay0 at genfb0 kbdmux 1										 wsdisplay0 at genfb0 kbdmux 1
 vchiq0 at simplebus1: BCM2835 VCHIQ									 vchiq0 at simplebus1: BCM2835 VCHIQ
 /arm-pmu at simplebus0 not configured									 /arm-pmu at simplebus0 not configured
 gpioleds0 at simplebus0: ACT										 gpioleds0 at simplebus0: ACT
 bcmrng0 at simplebus1: RNG										 bcmrng0 at simplebus1: RNG
 entropy: ready												 entropy: ready
 bcmsdhost0: width = 1											 bcmsdhost0: width = 1
 sdmmc0 at bcmsdhost0											 sdmmc0 at bcmsdhost0
 usb0 at dwctwo0: USB revision 20									 usb0 at dwctwo0: USB revision 20
 uhub0 at usb0: NetBSD (0x0000) DWC2 root hub (0x0000), class 9/0, rev 200/100, addr 1			 uhub0 at usb0: NetBSD (0x0000) DWC2 root hub (0x0000), class 9/0, rev 200/100, addr 1
 bcmsdhost0: opcode 52 flags 0x4032 data 0x0 datalen 0 blklen 0						 bcmsdhost0: opcode 52 flags 0x4032 data 0x0 datalen 0 blklen 0
 bcmsdhost0: SDCMD: 0x4034										 bcmsdhost0: SDCMD: 0x4034
 bcmsdhost0: command failed with error 5								 bcmsdhost0: command failed with error 5
 sdmmc0: direct I/O error 5, r=6 p=0xc8733f14 write						   |	 sdmmc0: direct I/O error 5, r=6 p=0xc424bf14 write
 bcmsdhost0: opcode 5 flags 0x4302 data 0x0 datalen 0 blklen 0						 bcmsdhost0: opcode 5 flags 0x4302 data 0x0 datalen 0 blklen 0
 bcmsdhost0: SDCMD: 0x4005										 bcmsdhost0: SDCMD: 0x4005
 bcmsdhost0: command failed with error 5								 bcmsdhost0: command failed with error 5
 bcmsdhost0: opcode 0 flags 0x600 data 0x0 datalen 0 blklen 0						 bcmsdhost0: opcode 0 flags 0x600 data 0x0 datalen 0 blklen 0
 bcmsdhost0: opcode 55 flags 0x4432 data 0x0 datalen 0 blklen 0						 bcmsdhost0: opcode 55 flags 0x4432 data 0x0 datalen 0 blklen 0
 bcmsdhost0: opcode 41 flags 0x4702 data 0x0 datalen 0 blklen 0						 bcmsdhost0: opcode 41 flags 0x4702 data 0x0 datalen 0 blklen 0
 bcmsdhost0: opcode 0 flags 0x600 data 0x0 datalen 0 blklen 0						 bcmsdhost0: opcode 0 flags 0x600 data 0x0 datalen 0 blklen 0
 bcmsdhost0: opcode 8 flags 0x5732 data 0x0 datalen 0 blklen 0						 bcmsdhost0: opcode 8 flags 0x5732 data 0x0 datalen 0 blklen 0
 bcmsdhost0: opcode 55 flags 0x4432 data 0x0 datalen 0 blklen 0						 bcmsdhost0: opcode 55 flags 0x4432 data 0x0 datalen 0 blklen 0
 bcmsdhost0: opcode 41 flags 0x4702 data 0x0 datalen 0 blklen 0						 bcmsdhost0: opcode 41 flags 0x4702 data 0x0 datalen 0 blklen 0
 bcmsdhost0: opcode 55 flags 0x4432 data 0x0 datalen 0 blklen 0						 bcmsdhost0: opcode 55 flags 0x4432 data 0x0 datalen 0 blklen 0
 bcmsdhost0: opcode 41 flags 0x4702 data 0x0 datalen 0 blklen 0						 bcmsdhost0: opcode 41 flags 0x4702 data 0x0 datalen 0 blklen 0
 bcmsdhost0: opcode 55 flags 0x4432 data 0x0 datalen 0 blklen 0						 bcmsdhost0: opcode 55 flags 0x4432 data 0x0 datalen 0 blklen 0
 bcmsdhost0: opcode 41 flags 0x4702 data 0x0 datalen 0 blklen 0						 bcmsdhost0: opcode 41 flags 0x4702 data 0x0 datalen 0 blklen 0
												   >	 bcmsdhost0: opcode 55 flags 0x4432 data 0x0 datalen 0 blklen 0
												   >	 bcmsdhost0: opcode 41 flags 0x4702 data 0x0 datalen 0 blklen 0
												   >	 bcmsdhost0: opcode 55 flags 0x4432 data 0x0 datalen 0 blklen 0
												   >	 bcmsdhost0: opcode 41 flags 0x4702 data 0x0 datalen 0 blklen 0
 bcmsdhost0: opcode 2 flags 0x431a data 0x0 datalen 0 blklen 0						 bcmsdhost0: opcode 2 flags 0x431a data 0x0 datalen 0 blklen 0
 bcmsdhost0: opcode 3 flags 0x332 data 0x0 datalen 0 blklen 0						 bcmsdhost0: opcode 3 flags 0x332 data 0x0 datalen 0 blklen 0
 bcmsdhost0: opcode 2 flags 0x431a data 0x0 datalen 0 blklen 0						 bcmsdhost0: opcode 2 flags 0x431a data 0x0 datalen 0 blklen 0
 bcmsdhost0: SDCMD: 0x4202										 bcmsdhost0: SDCMD: 0x4202
 bcmsdhost0: command failed with error 5								 bcmsdhost0: command failed with error 5
 bcmsdhost0: opcode 9 flags 0x1a data 0x0 datalen 0 blklen 0						 bcmsdhost0: opcode 9 flags 0x1a data 0x0 datalen 0 blklen 0
 bcmsdhost0: opcode 7 flags 0x32 data 0x0 datalen 0 blklen 0						 bcmsdhost0: opcode 7 flags 0x32 data 0x0 datalen 0 blklen 0
 bcmsdhost0: opcode 16 flags 0x432 data 0x0 datalen 0 blklen 0						 bcmsdhost0: opcode 16 flags 0x432 data 0x0 datalen 0 blklen 0
 bcmsdhost0: opcode 55 flags 0x432 data 0x0 datalen 0 blklen 0						 bcmsdhost0: opcode 55 flags 0x432 data 0x0 datalen 0 blklen 0
 bcmsdhost0: opcode 51 flags 0x572 data 0x81181000 datalen 8 blklen 8				   |	 bcmsdhost0: opcode 51 flags 0x572 data 0x80c99000 datalen 8 blklen 8
 bcmsdhost0: opcode 55 flags 0x432 data 0x0 datalen 0 blklen 0						 bcmsdhost0: opcode 55 flags 0x432 data 0x0 datalen 0 blklen 0
 bcmsdhost0: opcode 6 flags 0x32 data 0x0 datalen 0 blklen 0						 bcmsdhost0: opcode 6 flags 0x32 data 0x0 datalen 0 blklen 0
 bcmsdhost0: width = 4											 bcmsdhost0: width = 4
 bcmsdhost0: opcode 6 flags 0x572 data 0x81182000 datalen 64 blklen 64				   |	 bcmsdhost0: opcode 6 flags 0x572 data 0x80c9a000 datalen 64 blklen 64
 bcmsdhost0: opcode 6 flags 0x572 data 0x81183000 datalen 64 blklen 64				   |	 bcmsdhost0: opcode 6 flags 0x572 data 0x80c9b000 datalen 64 blklen 64
 bcmsdhost0: opcode 55 flags 0x432 data 0x0 datalen 0 blklen 0						 bcmsdhost0: opcode 55 flags 0x432 data 0x0 datalen 0 blklen 0
 bcmsdhost0: opcode 13 flags 0x572 data 0x81184000 datalen 64 blklen 64				   |	 bcmsdhost0: opcode 13 flags 0x572 data 0x80c9c000 datalen 64 blklen 64
 sdmmc0: SD card status: 4-bit, C6								   |	 bcmsdhost0: SDCMD: 0x404d
 ld0 at sdmmc0: <0x03:0x5344:SU08G:0x80:0x020d4db4:0x0c5>					   |	 bcmsdhost0: command failed with error 5
 ld0: 7580 MB, 3850 cyl, 64 head, 63 sec, 512 bytes/sect x 15523840 sectors			   |	 sdmmc0: can't get SD status: 5
 bcmsdhost0: opcode 17 flags 0x8572 data 0x97fa1000 datalen 512 blklen 512			   |	 sdmmc0: mem init failed
 bcmsdhost0: opcode 13 flags 0xc32 data 0x0 datalen 0 blklen 0					   |	 sdmmc0: init failed
												   >	 bcmsdhost0: opcode 7 flags 0x0 data 0x0 datalen 0 blklen 0
												   >	 bcmsdhost0: width = 1


Home | Main Index | Thread Index | Old Index