Port-arm archive

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

Re: Fwd: Gumstix Verdex not booting with NetBSD 7.0 and newer



tested several combinations. If xscale_cache_clean_addr is not set the kernel can't be initalized. Then I tested three combination.
10.txt: With modified KERNEL_VM_BASE+SIZE and mapallmem set to false
11.txt: With modified KERNEL_VM_BASE+SIZE and mapallmem set to true
12.txt: With original KERNEL_VM_BASE+SIZE and mapallmem set to true
some additional printf-lines to narrow down the gpio problem and a workaround to prevent the panic still in place (see diff.txt). For me this does't make any difference. With all variants I have either the gpio panic or this PR:
http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=51528
of course maybe it is related to the gpio issue which could also be related to the memory allocation still not solved right. I try to investigate the gpio issue next.

Best Regards

Stephan
xcale_cache_clean_addr + 0xc8000000 + !mapallmem:

NetBSD/evbarm (gumstix) booting ...
system serial: 0xffff0015c900afa2
ram_size: 134217728 KERNEL_VM: 0xc8000000 KERNEL_BASE: 0xc0000000
no DIRECT_MAPPED_PHYS
after arm32_kernel_vm_init
[ Kernel symbol table missing! ]
Loaded initial symtab at 0xc06d42e4, strtab at 0xc0715ef4, # entries 16816
pmap_postinit: Allocated 35 static L1 descriptor tables
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017
    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.59 (GUMSTIX) #10: Sat Jan 21 14:43:05 CET 2017
        root@netbsd:/usr/obj/sys/arch/evbarm/compile/GUMSTIX
total memory = 128 MB
avail memory = 119 MB
sysctl_createv: sysctl_create(machine_arch) returned 17
running cgd selftest aes-xts-256 aes-xts-512 done
mainbus0 (root)
cpu0 at mainbus0 core 0: PXA27x rev 8 (XScale V5TE core)
cpu0: DC enabled IC enabled WB enabled LABT branch prediction enabled
cpu0: 32KB/32B 32-way L1 VIVT Instruction cache
cpu0: 32KB/32B 32-way write-back-locking L1 VIVT Data cache
pxaip0 at mainbus0: Onchip Peripheral Bus
pxaip0: CPU clock = 623.960 MHz
pxaip0: kernel is configured for PXA250 and PXA270, cpu type is PXA270
pxaintc0 at pxaip0 addr 0x40d00000-0x40d0001f: Interrupt Controller
pxagpio0 at pxaip0 addr 0x40e00000-0x40e0014f: GPIO Controller
com0 at pxaip0 a: ns16550a, working fifo
com0: console
gpio: 46 vs. 121
gpio: 47 vs. 121
com1 at pxaip0 addr 0x40700000-0x4070001f intr 20: ns16550a, working fifo
gpio: 42 vs. 121
gpio: 43 vs. 121
com2 at pxaip0 addr 0x40200000-0x4020001f intr 21: ns16550a, working fifo
ohci0 at pxaip0 addr 0x4c000000-0x4c00006f intr 3
ohci0: OHCI version 1.0
usb0 at ohci0: USB revision 1.0
saost0 at pxaip0 addr 0x40a00000-0x40a0001f
saost0: SA-11x0 OS Timer
lcd0 at pxaip0 addr 0x44000000-0x4400021f: PXA2x0 LCD controller
gpio: 74 vs. 121
gpio: 75 vs. 121
gpio: 76 vs. 121
gpio: 77 vs. 121
gpio: 73 vs. 121
gpio: 72 vs. 121
gpio: 71 vs. 121
gpio: 70 vs. 121
gpio: 69 vs. 121
gpio: 68 vs. 121
gpio: 67 vs. 121
gpio: 66 vs. 121
gpio: 65 vs. 121
gpio: 64 vs. 121
gpio: 63 vs. 121
gpio: 62 vs. 121
gpio: 61 vs. 121
gpio: 60 vs. 121
gpio: 59 vs. 121
gpio: 58 vs. 121
wsdisplay0 at lcd0 kbdmux 1
pxadmac0 at pxaip0 addr 0x40000000-0x400002ff intr 25: DMA Controller
gpio: 28 vs. 121
gpio: 30 vs. 121
pxaacu0 at pxaip0 addr 0x40500000-0x405005ff intr 14: AC97 Controller
pxaacu0: Primary codec not ready
pxaudc0 at pxaip0 addr 0x40600000-0x4060045f: USB Device Controller
pxaudc0: WARNING: powerhook_establish is deprecated
gpio: 48 vs. 121
gpio: 49 vs. 121
gpio: 50 vs. 121
gpio: 51 vs. 121
gpio: 55 vs. 121
gpio: 56 vs. 121
gpio: 57 vs. 121
pxapcic0 at pxaip0 addr 0x20000000gpio: 48 vs. 121
gpio: 52 vs. 121
gpio: 53 vs. 121
gpio: 0 vs. 121
gpio: 52 vs. 121
gpio: 53 vs. 121
gpio: 48 vs. 121
gpio: 48 vs. 121
gpio: 52 vs. 121
gpio: 53 vs. 121
gpio: 11 vs. 121
gpio: 48 vs. 121
gpio: 48 vs. 121
gpio: 11 vs. 121
gpio: 48 vs. 121
gpio: 48 vs. 121
gpio: 11 vs. 121
gpio: 48 vs. 121
gpio: 48 vs. 121
gpio: 11 vs. 121
gpio: 48 vs. 121
gpio: 48 vs. 121
gpio: 11 vs. 121
gpio: 48 vs. 121
gpio: 48 vs. 121
gpio: 11 vs. 121
gpio: 48 vs. 121
gpio: 48 vs. 121
gpio: 11 vs. 121
gpio: 48 vs. 121
gpio: 48 vs. 121
gpio: 11 vs. 121
gpio: 48 vs. 121
gpio: 48 vs. 121
gpio: 0 vs. 121
gpio: 48 vs. 121
gpio: 52 vs. 121
gpio: 53 vs. 121
: 1 slot
pcmcia0 at pxapcic0
gpio: 0 vs. 121
gpio: 0 vs. 121
gpio: 0 vs. 121
pxartc0 at pxaip0 addr 0x40900000-0x4090003b: Real-time Clock
pxartc0: using wristwatch register
gpio: 32 vs. 121
gpio: 92 vs. 121
gpio: 109 vs. 121
gpio: 110 vs. 121
gpio: 111 vs. 121
gpio: 112 vs. 121
pxamci0 at pxaip0 addr 0x41100000-0x4110004f: MMC/SD Controller
pxamci0: using DMA transfer
sdmmc0 at pxamci0
gxio0 at pxaip0
smsh0 at gxio0 addr 0x4000300 gpirq 99: SMSC LAN9117 Rev 2
smsh0: MAC address 02:15:c9:00:af:91
ukphy0 at smsh0 phy 1: OUI 0x00800f, model 0x000d, rev. 1
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
gpio: 99 vs. 121
gxiic0 at pxaip0 addr 0x40300000-0x403016a3
iic0 at gxiic0: I2C bus
clock: hz=100 stathz=64
gpio: 4294967295 vs. 121
pxagpio0: pinnnsuhub0 at usb0: PXA27x OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
WARNING: module error: compat_netbsd32_sysvipc: can't find builtin dependency `sysv_ipc'
WARNING: module error: compat_netbsd32: can't find builtin dependency `sysv_ipc'
WARNING: module error: compat_netbsd32_mqueue: can't find builtin dependency `compat_netbsd32'
WARNING: module error: compat_netbsd32_ptrace: can't find builtin dependency `compat_netbsd32'
WARNING: module error: compat_linux: can't find builtin dependency `sysv_ipc'
sdmmc0: sdmmc_mem_enable failed with error 8
sdmmc0: couldn't enable card: 8
umass0 at uhub0 port 2 configuration 1 interface 0
umass0: Generic Mass Storage Device, rev 2.00/1.00, addr 2
scsibus0 at umass0: 2 targets, 4 luns per target
sd0 at scsibus0 target 0 lun 0: <Generic, Compact Flash, 0.00> disk removable
sd0: drive offline
sd1 at scsibus0 target 0 lun 1: <Generic, SD/MMC, 0.00> disk removable
sd1: fabricating a geometry
sd1: 958 MB, 958 cyl, 64 head, 32 sec, 512 bytes/sect x 1961984 sectors
sd2 at scsibus0 target 0 lun 2: <Generic, MS/MS-PRO, 0.00> disk removable
sd2: drive offline
sd3 at scsibus0 target 0 lun 3: <Generic, SM/xD-Picture, 0.00> disk removable
sd3: drive offline
WARNING: 4 errors while detecting hardware; check system log.
boot device: <unknown>
root device: sd1a
dump device (default sd1b): 
file system (default generic): 
root on sd1a dumps on sd1b
sd1: fabricating a geometry
mountroot: trying lfs...
mountroot: trying ext2fs...
mountroot: trying ffs...
root file system type: ffs
kern.module.path=/stand/evbarm/7.99.59/modules
init path (default /sbin/init): 
init: copying out path `/sbin/init' 11
panic: kernel diagnostic assertion "offset < dma->udma_block->size" failed: file "/usr/src/sys/dev/usb/usb_mem.c", line 392 offset 65536 vs 65536
Stopped in pid 0.6 (system) at  netbsd:cpu_Debugger+0x4:        bx      r14
xcale_cache_clean_addr + 0xc8000000 + mapallmem:

NetBSD/evbarm (gumstix) booting ...
system serial: 0xffff0015c900afa2
ram_size: 134217728 KERNEL_VM: 0xc8000000 KERNEL_BASE: 0xc0000000
no DIRECT_MAPPED_PHYS
after arm32_kernel_vm_init
[ Kernel symbol table missing! ]
Loaded initial symtab at 0xc06d42e4, strtab at 0xc0715ef4, # entries 16816
pmap_postinit: Allocated 35 static L1 descriptor tables
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017
    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.59 (GUMSTIX) #11: Sat Jan 21 17:28:07 CET 2017
        root@netbsd:/usr/obj/sys/arch/evbarm/compile/GUMSTIX
total memory = 128 MB
avail memory = 119 MB
sysctl_createv: sysctl_create(machine_arch) returned 17
running cgd selftest aes-xts-256 aes-xts-512 done
mainbus0 (root)
cpu0 at mainbus0 core 0: PXA27x rev 8 (XScale V5TE core)
cpu0: DC enabled IC enabled WB enabled LABT branch prediction enabled
cpu0: 32KB/32B 32-way L1 VIVT Instruction cache
cpu0: 32KB/32B 32-way write-back-locking L1 VIVT Data cache
pxaip0 at mainbus0: Onchip Peripheral Bus
pxaip0: CPU clock = 623.964 MHz
pxaip0: kernel is configured for PXA250 and PXA270, cpu type is PXA270
pxaintc0 at pxaip0 addr 0x40d00000-0x40d0001f: Interrupt Controller
pxagpio0 at pxaip0 addr 0x40e00000-0x40e0014f: GPIO Controller
com0 at pxaip0 a: ns16550a, working fifo
com0: console
gpio: 46 vs. 121
gpio: 47 vs. 121
com1 at pxaip0 addr 0x40700000-0x4070001f intr 20: ns16550a, working fifo
gpio: 42 vs. 121
gpio: 43 vs. 121
com2 at pxaip0 addr 0x40200000-0x4020001f intr 21: ns16550a, working fifo
ohci0 at pxaip0 addr 0x4c000000-0x4c00006f intr 3
ohci0: OHCI version 1.0
usb0 at ohci0: USB revision 1.0
saost0 at pxaip0 addr 0x40a00000-0x40a0001f
saost0: SA-11x0 OS Timer
lcd0 at pxaip0 addr 0x44000000-0x4400021f: PXA2x0 LCD controller
gpio: 74 vs. 121
gpio: 75 vs. 121
gpio: 76 vs. 121
gpio: 77 vs. 121
gpio: 73 vs. 121
gpio: 72 vs. 121
gpio: 71 vs. 121
gpio: 70 vs. 121
gpio: 69 vs. 121
gpio: 68 vs. 121
gpio: 67 vs. 121
gpio: 66 vs. 121
gpio: 65 vs. 121
gpio: 64 vs. 121
gpio: 63 vs. 121
gpio: 62 vs. 121
gpio: 61 vs. 121
gpio: 60 vs. 121
gpio: 59 vs. 121
gpio: 58 vs. 121
wsdisplay0 at lcd0 kbdmux 1
pxadmac0 at pxaip0 addr 0x40000000-0x400002ff intr 25: DMA Controller
gpio: 28 vs. 121
gpio: 30 vs. 121
pxaacu0 at pxaip0 addr 0x40500000-0x405005ff intr 14: AC97 Controller
pxaacu0: Primary codec not ready
pxaudc0 at pxaip0 addr 0x40600000-0x4060045f: USB Device Controller
pxaudc0: WARNING: powerhook_establish is deprecated
gpio: 48 vs. 121
gpio: 49 vs. 121
gpio: 50 vs. 121
gpio: 51 vs. 121
gpio: 55 vs. 121
gpio: 56 vs. 121
gpio: 57 vs. 121
pxapcic0 at pxaip0 addr 0x20000000gpio: 48 vs. 121
gpio: 52 vs. 121
gpio: 53 vs. 121
gpio: 0 vs. 121
gpio: 52 vs. 121
gpio: 53 vs. 121
gpio: 48 vs. 121
gpio: 48 vs. 121
gpio: 52 vs. 121
gpio: 53 vs. 121
gpio: 11 vs. 121
gpio: 48 vs. 121
gpio: 48 vs. 121
gpio: 11 vs. 121
gpio: 48 vs. 121
gpio: 48 vs. 121
gpio: 11 vs. 121
gpio: 48 vs. 121
gpio: 48 vs. 121
gpio: 11 vs. 121
gpio: 48 vs. 121
gpio: 48 vs. 121
gpio: 11 vs. 121
gpio: 48 vs. 121
gpio: 48 vs. 121
gpio: 11 vs. 121
gpio: 48 vs. 121
gpio: 48 vs. 121
gpio: 11 vs. 121
gpio: 48 vs. 121
gpio: 48 vs. 121
gpio: 11 vs. 121
gpio: 48 vs. 121
gpio: 48 vs. 121
gpio: 0 vs. 121
gpio: 48 vs. 121
gpio: 52 vs. 121
gpio: 53 vs. 121
: 1 slot
pcmcia0 at pxapcic0
gpio: 0 vs. 121
gpio: 0 vs. 121
gpio: 0 vs. 121
pxartc0 at pxaip0 addr 0x40900000-0x4090003b: Real-time Clock
pxartc0: using wristwatch register
gpio: 32 vs. 121
gpio: 92 vs. 121
gpio: 109 vs. 121
gpio: 110 vs. 121
gpio: 111 vs. 121
gpio: 112 vs. 121
pxamci0 at pxaip0 addr 0x41100000-0x4110004f: MMC/SD Controller
pxamci0: using DMA transfer
sdmmc0 at pxamci0
gxio0 at pxaip0
smsh0 at gxio0 addr 0x4000300 gpirq 99: SMSC LAN9117 Rev 2
smsh0: MAC address 02:15:c9:00:af:91
ukphy0 at smsh0 phy 1: OUI 0x00800f, model 0x000d, rev. 1
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
gpio: 99 vs. 121
gxiic0 at pxaip0 addr 0x40300000-0x403016a3
iic0 at gxiic0: I2C bus
clock: hz=100 stathz=64
gpio: 4294967295 vs. 121
pxagpio0: pinnnsuhub0 at usb0: PXA27x OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
WARNING: module error: compat_netbsd32_sysvipc: can't find builtin dependency `sysv_ipc'
WARNING: module error: compat_netbsd32: can't find builtin dependency `sysv_ipc'
WARNING: module error: compat_netbsd32_mqueue: can't find builtin dependency `compat_netbsd32'
WARNING: module error: compat_netbsd32_ptrace: can't find builtin dependency `compat_netbsd32'
WARNING: module error: compat_linux: can't find builtin dependency `sysv_ipc'
sdmmc0: sdmmc_mem_enable failed with error 8
sdmmc0: couldn't enable card: 8
umass0 at uhub0 port 2 configuration 1 interface 0
umass0: Generic Mass Storage Device, rev 2.00/1.00, addr 2
scsibus0 at umass0: 2 targets, 4 luns per target
sd0 at scsibus0 target 0 lun 0: <Generic, Compact Flash, 0.00> disk removable
sd0: drive offline
sd1 at scsibus0 target 0 lun 1: <Generic, SD/MMC, 0.00> disk removable
sd1: fabricating a geometry
sd1: 958 MB, 958 cyl, 64 head, 32 sec, 512 bytes/sect x 1961984 sectors
sd2 at scsibus0 target 0 lun 2: <Generic, MS/MS-PRO, 0.00> disk removable
sd2: drive offline
sd3 at scsibus0 target 0 lun 3: <Generic, SM/xD-Picture, 0.00> disk removable
sd3: drive offline
WARNING: 4 errors while detecting hardware; check system log.
boot device: <unknown>
root device: sd1a
dump device (default sd1b): 
file system (default generic): 
root on sd1a dumps on sd1b
sd1: fabricating a geometry
mountroot: trying lfs...
mountroot: trying ext2fs...
mountroot: trying ffs...
root file system type: ffs
kern.module.path=/stand/evbarm/7.99.59/modules
init path (default /sbin/init): 
init: copying out path `/sbin/init' 11
panic: kernel diagnostic assertion "offset < dma->udma_block->size" failed: file "/usr/src/sys/dev/usb/usb_mem.c", line 392 offset 65536 vs 65536
Stopped in pid 0.6 (system) at  netbsd:cpu_Debugger+0x4:        bx      r14
xcale_cache_clean_addr + 0xc1000000 + !mapallmem:

NetBSD/evbarm (gumstix) booting ...
system serial: 0xffff0015c900afa2
ram_size: 134217728 KERNEL_VM: 0xc1000000 KERNEL_BASE: 0xc0000000
no DIRECT_MAPPED_PHYS
after arm32_kernel_vm_init
[ Kernel symbol table missing! ]
Loaded initial symtab at 0xc06d42e4, strtab at 0xc0715ef4, # entries 16816
pmap_postinit: Allocated 35 static L1 descriptor tables
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017
    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.59 (GUMSTIX) #12: Sat Jan 21 18:04:09 CET 2017
        root@netbsd:/usr/obj/sys/arch/evbarm/compile/GUMSTIX
total memory = 128 MB
avail memory = 119 MB
sysctl_createv: sysctl_create(machine_arch) returned 17
running cgd selftest aes-xts-256 aes-xts-512 done
mainbus0 (root)
cpu0 at mainbus0 core 0: PXA27x rev 8 (XScale V5TE core)
cpu0: DC enabled IC enabled WB enabled LABT branch prediction enabled
cpu0: 32KB/32B 32-way L1 VIVT Instruction cache
cpu0: 32KB/32B 32-way write-back-locking L1 VIVT Data cache
pxaip0 at mainbus0: Onchip Peripheral Bus
pxaip0: CPU clock = 623.958 MHz
pxaip0: kernel is configured for PXA250 and PXA270, cpu type is PXA270
pxaintc0 at pxaip0 addr 0x40d00000-0x40d0001f: Interrupt Controller
pxagpio0 at pxaip0 addr 0x40e00000-0x40e0014f: GPIO Controller
com0 at pxaip0 a: ns16550a, working fifo
com0: console
gpio: 46 vs. 121
gpio: 47 vs. 121
com1 at pxaip0 addr 0x40700000-0x4070001f intr 20: ns16550a, working fifo
gpio: 42 vs. 121
gpio: 43 vs. 121
com2 at pxaip0 addr 0x40200000-0x4020001f intr 21: ns16550a, working fifo
ohci0 at pxaip0 addr 0x4c000000-0x4c00006f intr 3
ohci0: OHCI version 1.0
usb0 at ohci0: USB revision 1.0
saost0 at pxaip0 addr 0x40a00000-0x40a0001f
saost0: SA-11x0 OS Timer
lcd0 at pxaip0 addr 0x44000000-0x4400021f: PXA2x0 LCD controller
gpio: 74 vs. 121
gpio: 75 vs. 121
gpio: 76 vs. 121
gpio: 77 vs. 121
gpio: 73 vs. 121
gpio: 72 vs. 121
gpio: 71 vs. 121
gpio: 70 vs. 121
gpio: 69 vs. 121
gpio: 68 vs. 121
gpio: 67 vs. 121
gpio: 66 vs. 121
gpio: 65 vs. 121
gpio: 64 vs. 121
gpio: 63 vs. 121
gpio: 62 vs. 121
gpio: 61 vs. 121
gpio: 60 vs. 121
gpio: 59 vs. 121
gpio: 58 vs. 121
wsdisplay0 at lcd0 kbdmux 1
pxadmac0 at pxaip0 addr 0x40000000-0x400002ff intr 25: DMA Controller
gpio: 28 vs. 121
gpio: 30 vs. 121
pxaacu0 at pxaip0 addr 0x40500000-0x405005ff intr 14: AC97 Controller
pxaacu0: Primary codec not ready
pxaudc0 at pxaip0 addr 0x40600000-0x4060045f: USB Device Controller
pxaudc0: WARNING: powerhook_establish is deprecated
gpio: 48 vs. 121
gpio: 49 vs. 121
gpio: 50 vs. 121
gpio: 51 vs. 121
gpio: 55 vs. 121
gpio: 56 vs. 121
gpio: 57 vs. 121
pxapcic0 at pxaip0 addr 0x20000000gpio: 48 vs. 121
gpio: 52 vs. 121
gpio: 53 vs. 121
gpio: 0 vs. 121
gpio: 52 vs. 121
gpio: 53 vs. 121
gpio: 48 vs. 121
gpio: 48 vs. 121
gpio: 52 vs. 121
gpio: 53 vs. 121
gpio: 11 vs. 121
gpio: 48 vs. 121
gpio: 48 vs. 121
gpio: 11 vs. 121
gpio: 48 vs. 121
gpio: 48 vs. 121
gpio: 11 vs. 121
gpio: 48 vs. 121
gpio: 48 vs. 121
gpio: 11 vs. 121
gpio: 48 vs. 121
gpio: 48 vs. 121
gpio: 11 vs. 121
gpio: 48 vs. 121
gpio: 48 vs. 121
gpio: 11 vs. 121
gpio: 48 vs. 121
gpio: 48 vs. 121
gpio: 11 vs. 121
gpio: 48 vs. 121
gpio: 48 vs. 121
gpio: 11 vs. 121
gpio: 48 vs. 121
gpio: 48 vs. 121
gpio: 0 vs. 121
gpio: 48 vs. 121
gpio: 52 vs. 121
gpio: 53 vs. 121
: 1 slot
pcmcia0 at pxapcic0
gpio: 0 vs. 121
gpio: 0 vs. 121
gpio: 0 vs. 121
pxartc0 at pxaip0 addr 0x40900000-0x4090003b: Real-time Clock
pxartc0: using wristwatch register
gpio: 32 vs. 121
gpio: 92 vs. 121
gpio: 109 vs. 121
gpio: 110 vs. 121
gpio: 111 vs. 121
gpio: 112 vs. 121
pxamci0 at pxaip0 addr 0x41100000-0x4110004f: MMC/SD Controller
pxamci0: using DMA transfer
sdmmc0 at pxamci0
gxio0 at pxaip0
smsh0 at gxio0 addr 0x4000300 gpirq 99: SMSC LAN9117 Rev 2
smsh0: MAC address 02:15:c9:00:af:91
ukphy0 at smsh0 phy 1: OUI 0x00800f, model 0x000d, rev. 1
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
gpio: 99 vs. 121
gxiic0 at pxaip0 addr 0x40300000-0x403016a3
iic0 at gxiic0: I2C bus
clock: hz=100 stathz=64
gpio: 4294967295 vs. 121
pxagpio0: pinnnsuhub0 at usb0: PXA27x OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
WARNING: module error: compat_netbsd32_sysvipc: can't find builtin dependency `sysv_ipc'
WARNING: module error: compat_netbsd32: can't find builtin dependency `sysv_ipc'
WARNING: module error: compat_netbsd32_mqueue: can't find builtin dependency `compat_netbsd32'
WARNING: module error: compat_netbsd32_ptrace: can't find builtin dependency `compat_netbsd32'
WARNING: module error: compat_linux: can't find builtin dependency `sysv_ipc'
sdmmc0: sdmmc_mem_enable failed with error 8
sdmmc0: couldn't enable card: 8
umass0 at uhub0 port 2 configuration 1 interface 0
umass0: Generic Mass Storage Device, rev 2.00/1.00, addr 2
scsibus0 at umass0: 2 targets, 4 luns per target
sd0 at scsibus0 target 0 lun 0: <Generic, Compact Flash, 0.00> disk removable
sd0: drive offline
sd1 at scsibus0 target 0 lun 1: <Generic, SD/MMC, 0.00> disk removable
sd1: fabricating a geometry
sd1: 958 MB, 958 cyl, 64 head, 32 sec, 512 bytes/sect x 1961984 sectors
sd2 at scsibus0 target 0 lun 2: <Generic, MS/MS-PRO, 0.00> disk removable
sd2: drive offline
sd3 at scsibus0 target 0 lun 3: <Generic, SM/xD-Picture, 0.00> disk removable
sd3: drive offline
WARNING: 4 errors while detecting hardware; check system log.
boot device: <unknown>
root device: sd1a
dump device (default sd1b): 
file system (default generic): 
root on sd1a dumps on sd1b
sd1: fabricating a geometry
mountroot: trying lfs...
mountroot: trying ext2fs...
mountroot: trying ffs...
root file system type: ffs
kern.module.path=/stand/evbarm/7.99.59/modules
init path (default /sbin/init): 
init: copying out path `/sbin/init' 11
panic: kernel diagnostic assertion "offset < dma->udma_block->size" failed: file "/usr/src/sys/dev/usb/usb_mem.c", line 392 offset 65536 vs 65536
Stopped in pid 0.6 (system) at  netbsd:cpu_Debugger+0x4:        bx      r14
Index: sys/arch/arm/xscale/pxa2x0_gpio.c
===================================================================
RCS file: /cvsroot/src/sys/arch/arm/xscale/pxa2x0_gpio.c,v
retrieving revision 1.16
diff -u -r1.16 pxa2x0_gpio.c
--- sys/arch/arm/xscale/pxa2x0_gpio.c	12 Nov 2012 18:00:38 -0000	1.16
+++ sys/arch/arm/xscale/pxa2x0_gpio.c	21 Jan 2017 17:28:17 -0000
@@ -443,6 +443,11 @@
 	struct pxagpio_softc *sc = pxagpio_softc;
 	uint32_t rv, io;
 
+	printf("gpio: %u vs. %u\n", gpio, GPIO_NPINS);
+	if(gpio > GPIO_NPINS) {
+		aprint_error_dev(sc->sc_dev, "pinnns");
+		return -1;
+	}
 	KDASSERT(gpio < GPIO_NPINS);
 
 	rv = pxagpio_reg_read(sc, GPIO_FN_REG(gpio)) >> GPIO_FN_SHIFT(gpio);


Home | Main Index | Thread Index | Old Index