Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Apr 2020 18:42:17 +0800
From:      ykla <yklaxds@gmail.com>
To:        freebsd-arm@freebsd.org
Subject:   Enc28j60 SPI not work on RPIB4
Message-ID:  <CA%2BPGaYCdq1%2BYVdEoi4OtxsiyuiaTzP_=HdQjw649k%2B=qhwJAew@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
I test it works well in raspbian. But not work in FreeBSD, it's looks like
SPI not work.  And I already add enc28j60.dtbo in overlays.
No network for rpi4b now then I try to install enc28j60 to rpi4b, but also
no net.


> *root@generic:~ # cat /boot/msdos/config.txt *
> *arm_control=0x200*
> *arm_64bit=1*
> *dtoverlay=disable-bt*
> *dtoverlay=mmc*
> *device_tree_address=0x4000*
> *kernel=u-boot.bin*
> *armstub=armstub8-gic.bin*
> *dtparam=spi=on*
> *dtoverlay=enc28j60*
> *#dtparam=i2c_arm=on*
> *enable_uart=1**root@generic:~ # *

----------------------------------------------------------------------------------------------------------------------------
* root@generic:~ # dmesg*











































































































































































































































*---<<BOOT>>---KDB: debugger backends: ddbKDB: current backend:
ddbCopyright (c) 1992-2020 The FreeBSD Project.Copyright (c) 1979, 1980,
1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994        The Regents of the
University of California. All rights reserved.FreeBSD is a registered
trademark of The FreeBSD Foundation.FreeBSD 13.0-CURRENT #0 r356767: Thu
Jan 16 08:31:45 UTC 2020
root@releng1.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC
arm64FreeBSD clang version 9.0.1 (git@github.com:llvm/llvm-project.git
c1a0a213378a458fbea1a5c77b315c7dce08fd05) (based on LLVM 9.0.1)WARNING:
WITNESS option enabled, expect reduced performance.VT(efifb): resolution
656x512module firmware already present!KLD file umodem.ko is missing
dependenciesStarting CPU 1 (1)Starting CPU 2 (2)Starting CPU 3
(3)FreeBSD/SMP: Multiprocessor System Detected: 4 CPUsrandom: unblocking
device.random: entropy device external interfaceMAP 39f53000 mode 2 pages
1MAP 39f57000 mode 2 pages 1MAP 3b360000 mode 2 pages 16MAP fe100000 mode 0
pages 1WARNING: Device "kbd" is Giant locked and may be deleted before
FreeBSD 13.0.kbd0 at kbdmux0WARNING: Device "openfirm" is Giant locked and
may be deleted before FreeBSD 13.0.ofwbus0: <Open Firmware Device
Tree>simplebus0: <Flattened device tree simple bus> on ofwbus0ofw_clkbus0:
<OFW clocks bus> on ofwbus0clk_fixed0: <Fixed clock> on
ofw_clkbus0clk_fixed1: <Fixed clock> on ofw_clkbus0simplebus1: <Flattened
device tree simple bus> on ofwbus0simplebus2: <Flattened device tree simple
bus> on ofwbus0regfix0: <Fixed Regulator> on ofwbus0regfix1: <Fixed
Regulator> on ofwbus0psci0: <ARM Power State Co-ordination Interface
Driver> on ofwbus0gic0: <ARM Generic Interrupt Controller> mem
0x40041000-0x40041fff,0x40042000-0x40043fff,0x40044000-0x40045fff,0x40046000-0x40047fff
irq 46 on simplebus0gic0: pn 0x2, arch 0x2, rev 0x1, implementer 0x43b irqs
256gpio0: <BCM2708/2835 GPIO controller> mem 0x7e200000-0x7e2000b3 irq
22,23 on simplebus0gpiobus0: <OFW GPIO bus> on gpio0gpioregulator0: <GPIO
controlled regulator> on ofwbus0gpioregulator0: cannot get pin
0gpioregulator0: cannot parse parametersdevice_attach: gpioregulator0
attach returned 6generic_timer0: <ARMv7 Generic Timer> irq 4,5,6,7 on
ofwbus0Timecounter "ARM MPCore Timecounter" frequency 54000000 Hz quality
1000Event timer "ARM MPCore Eventtimer" frequency 54000000 Hz quality
1000gpioregulator0: <GPIO controlled regulator> on ofwbus0gpioregulator0:
cannot get pin 0gpioregulator0: cannot parse parametersdevice_attach:
gpioregulator0 attach returned 6gpioregulator0: <GPIO controlled regulator>
on ofwbus0gpioregulator0: cannot get pin 0gpioregulator0: cannot parse
parametersdevice_attach: gpioregulator0 attach returned 6gpioregulator0:
<GPIO controlled regulator> on ofwbus0gpioregulator0: cannot get pin
0gpioregulator0: cannot parse parametersdevice_attach: gpioregulator0
attach returned 6gpioregulator0: <GPIO controlled regulator> on
ofwbus0gpioregulator0: cannot get pin 0gpioregulator0: cannot parse
parametersdevice_attach: gpioregulator0 attach returned 6usb_nop_xceiv0:
<USB NOP PHY> on ofwbus0gpioregulator0: <GPIO controlled regulator> on
ofwbus0gpioregulator0: cannot get pin 0gpioregulator0: cannot parse
parametersdevice_attach: gpioregulator0 attach returned 6bcm_dma0: <BCM2835
DMA Controller> mem 0x7e007000-0x7e007aff irq
9,10,11,12,13,14,15,16,17,18,19 on simplebus0bcmwd0: <BCM2708/2835
Watchdog> mem
0x7e100000-0x7e100113,0x7e00a000-0x7e00a023,0x7ec11000-0x7ec1101f on
simplebus0mbox0: <BCM2835 VideoCore Mailbox> mem 0x7e00b880-0x7e00b8bf irq
21 on simplebus0gpioc0: <GPIO controller> on gpio0uart0: <PrimeCell UART
(PL011)> mem 0x7e201000-0x7e2011ff irq 24 on simplebus0uart0: console
(115200,n,8,1)spi0: <BCM2708/2835 SPI controller> mem 0x7e204000-0x7e2041ff
irq 26 on simplebus0spibus0: <OFW SPI bus> on spi0spibus0: <unknown card>
at cs 0 mode 0spibus0: <unknown card> at cs 0 mode 0spibus0: <unknown card>
at cs 1 mode 0sdhci_bcm0: <Broadcom 2708 SDHCI controller> mem
0x7e340000-0x7e3400ff irq 60 on simplebus0mmc0: <MMC/SD bus> on
sdhci_bcm0sdhci_bcm1: <Broadcom 2708 SDHCI controller> mem
0x7e300000-0x7e3000ff irq 61 on simplebus0mmc1: <MMC/SD bus> on
sdhci_bcm1fb0: <BCM2835 VT framebuffer driver> on simplebus0fb0: keeping
existing fb bpp of 32fbd0 on fb0WARNING: Device "fb" is Giant locked and
may be deleted before FreeBSD 13.0.VT: Replacing driver "efifb" with new
"fb".fb0: 656x512(656x512@0,0) 32bppfb0: fbswap: 1, pitch 2624, base
0x3eab2000, screen_size 1343488cpulist0: <Open Firmware CPU Group> on
ofwbus0cpu0: <Open Firmware CPU> on cpulist0cpu1: <Open Firmware CPU> on
cpulist0cpu2: <Open Firmware CPU> on cpulist0cpu3: <Open Firmware CPU> on
cpulist0gpioled0: <GPIO LEDs> on ofwbus0gpioled0: <led1> failed to map
pingpioregulator0: <GPIO controlled regulator> on ofwbus0gpioregulator0:
cannot get pin 0gpioregulator0: cannot parse parametersdevice_attach:
gpioregulator0 attach returned 6cryptosoft0: <software crypto>Timecounters
tick every 1.000 msecObsolete code will be removed soon: random(9) is the
obsolete Park-Miller LCG from 1988usb_needs_explore_all: no devclassmmc0:
Card at relative address 1 failed to set high speed timingmmcsd0: 31GB
<SDHC SD 0.0 SN 2938428A MFG 05/2019 by 18 4V> at mmc0
0.4MHz/4bit/65535-blocksdhci_bcm1-slot0: Got command interrupt 0x00030000,
but there is no active command.sdhci_bcm1-slot0: ============== REGISTER
DUMP ==============sdhci_bcm1-slot0: Sys addr: 0x00000000 | Version:
 0x00009902sdhci_bcm1-slot0: Blk size: 0x00000000 | Blk cnt:
 0x00000000sdhci_bcm1-slot0: Argument: 0x000001aa | Trn mode:
0x00000000sdhci_bcm1-slot0: Present:  0x000f0000 | Host ctl:
0x00000001sdhci_bcm1-slot0: Power:    0x0000000f | Blk gap:
 0x00000000sdhci_bcm1-slot0: Wake-up:  0x00000000 | Clock:
 0x0000fa07sdhci_bcm1-slot0: Timeout:  0x00000000 | Int stat:
0x00000000sdhci_bcm1-slot0: Int enab: 0x01ff00bb | Sig enab:
0x01ff00bbsdhci_bcm1-slot0: AC12 err: 0x00000000 | Host
ctl2:0x00000000sdhci_bcm1-slot0: Caps:     0x00000000 | Caps2:
 0x00000000sdhci_bcm1-slot0: Max curr: 0x00000001 | ADMA err:
0x00000000sdhci_bcm1-slot0: ADMA addr:0x00000000 | Slot int:
0x00000000sdhci_bcm1-slot0:
===========================================sdhci_bcm1-slot0: Got command
interrupt 0x00030000, but there is no active command.sdhci_bcm1-slot0:
============== REGISTER DUMP ==============sdhci_bcm1-slot0: Sys addr:
0x00000000 | Version:  0x00009902sdhci_bcm1-slot0: Blk size: 0x00000000 |
Blk cnt:  0x00000000sdhci_bcm1-slot0: Argument: 0x000001aa | Trn mode:
0x00000000sdhci_bcm1-slot0: Present:  0x000f0000 | Host ctl:
0x00000001sdhci_bcm1-slot0: Power:    0x0000000f | Blk gap:
 0x00000000sdhci_bcm1-slot0: Wake-up:  0x00000000 | Clock:
 0x0000fa07sdhci_bcm1-slot0: Timeout:  0x00000000 | Int stat:
0x00000000sdhci_bcm1-slot0: Int enab: 0x01ff00bb | Sig enab:
0x01ff00bbsdhci_bcm1-slot0: AC12 err: 0x00000000 | Host
ctl2:0x00000000sdhci_bcm1-slot0: Caps:     0x00000000 | Caps2:
 0x00000000sdhci_bcm1-slot0: Max curr: 0x00000001 | ADMA err:
0x00000000sdhci_bcm1-slot0: ADMA addr:0x00000000 | Slot int:
0x00000000sdhci_bcm1-slot0:
===========================================sdhci_bcm1-slot0: Got command
interrupt 0x00030000, but there is no active command.sdhci_bcm1-slot0:
============== REGISTER DUMP ==============sdhci_bcm1-slot0: Sys addr:
0x00000000 | Version:  0x00009902sdhci_bcm1-slot0: Blk size: 0x00000000 |
Blk cnt:  0x00000000sdhci_bcm1-slot0: Argument: 0x000001aa | Trn mode:
0x00000000sdhci_bcm1-slot0: Present:  0x000f0000 | Host ctl:
0x00000001sdhci_bcm1-slot0: Power:    0x0000000f | Blk gap:
 0x00000000sdhci_bcm1-slot0: Wake-up:  0x00000000 | Clock:
 0x0000fa07sdhci_bcm1-slot0: Timeout:  0x00000000 | Int stat:
0x00000000sdhci_bcm1-slot0: Int enab: 0x01ff00bb | Sig enab:
0x01ff00bbsdhci_bcm1-slot0: AC12 err: 0x00000000 | Host
ctl2:0x00000000sdhci_bcm1-slot0: Caps:     0x00000000 | Caps2:
 0x00000000sdhci_bcm1-slot0: Max curr: 0x00000001 | ADMA err:
0x00000000sdhci_bcm1-slot0: ADMA addr:0x00000000 | Slot int:
0x00000000sdhci_bcm1-slot0:
===========================================sdhci_bcm1-slot0: Got command
interrupt 0x00030000, but there is no active command.sdhci_bcm1-slot0:
============== REGISTER DUMP ==============sdhci_bcm1-slot0: Sys addr:
0x00000000 | Version:  0x00009902sdhci_bcm1-slot0: Blk size: 0x00000000 |
Blk cnt:  0x00000000sdhci_bcm1-slot0: Argument: 0x000001aa | Trn mode:
0x00000000sdhci_bcm1-slot0: Present:  0x000f0000 | Host ctl:
0x00000001sdhci_bcm1-slot0: Power:    0x0000000f | Blk gap:
 0x00000000sdhci_bcm1-slot0: Wake-up:  0x00000000 | Clock:
 0x0000fa07sdhci_bcm1-slot0: Timeout:  0x00000000 | Int stat:
0x00000000sdhci_bcm1-slot0: Int enab: 0x01ff00bb | Sig enab:
0x01ff00bbsdhci_bcm1-slot0: AC12 err: 0x00000000 | Host
ctl2:0x00000000sdhci_bcm1-slot0: Caps:     0x00000000 | Caps2:
 0x00000000sdhci_bcm1-slot0: Max curr: 0x00000001 | ADMA err:
0x00000000sdhci_bcm1-slot0: ADMA addr:0x00000000 | Slot int:
0x00000000sdhci_bcm1-slot0:
===========================================sdhci_bcm1-slot0: Got command
interrupt 0x00030000, but there is no active command.sdhci_bcm1-slot0:
============== REGISTER DUMP ==============sdhci_bcm1-slot0: Sys addr:
0x00000000 | Version:  0x00009902sdhci_bcm1-slot0: Blk size: 0x00000000 |
Blk cnt:  0x00000000sdhci_bcm1-slot0: Argument: 0x00000000 | Trn mode:
0x00000000sdhci_bcm1-slot0: Present:  0x000f0000 | Host ctl:
0x00000001sdhci_bcm1-slot0: Power:    0x0000000f | Blk gap:
 0x00000000sdhci_bcm1-slot0: Wake-up:  0x00000000 | Clock:
 0x0000fa07sdhci_bcm1-slot0: Timeout:  0x00000000 | Int stat:
0x00000000sdhci_bcm1-slot0: Int enab: 0x01ff00bb | Sig enab:
0x01ff00bbsdhci_bcm1-slot0: AC12 err: 0x00000000 | Host
ctl2:0x00000000sdhci_bcm1-slot0: Caps:     0x00000000 | Caps2:
 0x00000000sdhci_bcm1-slot0: Max curr: 0x00000001 | ADMA err:
0x00000000sdhci_bcm1-slot0: ADMA addr:0x00000000 | Slot int:
0x00000000sdhci_bcm1-slot0:
===========================================sdhci_bcm1-slot0: Got command
interrupt 0x00030000, but there is no active command.sdhci_bcm1-slot0:
============== REGISTER DUMP ==============sdhci_bcm1-slot0: Sys addr:
0x00000000 | Version:  0x00009902sdhci_bcm1-slot0: Blk size: 0x00000000 |
Blk cnt:  0x00000000sdhci_bcm1-slot0: Argument: 0x00000000 | Trn mode:
0x00000000sdhci_bcm1-slot0: Present:  0x000f0000 | Host ctl:
0x00000001sdhci_bcm1-slot0: Power:    0x0000000f | Blk gap:
 0x00000000sdhci_bcm1-slot0: Wake-up:  0x00000000 | Clock:
 0x0000fa07sdhci_bcm1-slot0: Timeout:  0x00000000 | Int stat:
0x00000000sdhci_bcm1-slot0: Int enab: 0x01ff00bb | Sig enab:
0x01ff00bbsdhci_bcm1-slot0: AC12 err: 0x00000000 | Host
ctl2:0x00000000sdhci_bcm1-slot0: Caps:     0x00000000 | Caps2:
 0x00000000sdhci_bcm1-slot0: Max curr: 0x00000001 | ADMA err:
0x00000000sdhci_bcm1-slot0: ADMA addr:0x00000000 | Slot int:
0x00000000sdhci_bcm1-slot0:
===========================================sdhci_bcm1-slot0: Got command
interrupt 0x00030000, but there is no active command.sdhci_bcm1-slot0:
============== REGISTER DUMP ==============sdhci_bcm1-slot0: Sys addr:
0x00000000 | Version:  0x00009902sdhci_bcm1-slot0: Blk size: 0x00000000 |
Blk cnt:  0x00000000sdhci_bcm1-slot0: Argument: 0x00000000 | Trn mode:
0x00000000sdhci_bcm1-slot0: Present:  0x000f0000 | Host ctl:
0x00000001sdhci_bcm1-slot0: Power:    0x0000000f | Blk gap:
 0x00000000sdhci_bcm1-slot0: Wake-up:  0x00000000 | Clock:
 0x0000fa07sdhci_bcm1-slot0: Timeout:  0x00000000 | Int stat:
0x00000000sdhci_bcm1-slot0: Int enab: 0x01ff00bb | Sig enab:
0x01ff00bbsdhci_bcm1-slot0: AC12 err: 0x00000000 | Host
ctl2:0x00000000sdhci_bcm1-slot0: Caps:     0x00000000 | Caps2:
 0x00000000sdhci_bcm1-slot0: Max curr: 0x00000001 | ADMA err:
0x00000000sdhci_bcm1-slot0: ADMA addr:0x00000000 | Slot int:
0x00000000sdhci_bcm1-slot0:
===========================================mmc1: No compatible cards found
on busRelease APs...doneCPU  0: ARM Cortex-A72 r0p3 affinity:
 0 Instruction Set Attributes 0 = <CRC32>Trying to mount root from
ufs:/dev/ufs/rootfs [rw]... Instruction Set Attributes 1 = <>
 Processor Features 0 = <AdvSIMD,FP,EL3 32,EL2 32,EL1 32,EL0 32>
 Processor Features 1 = <>      Memory Model Features 0 =
<TGran4,TGran64,SNSMem,BigEnd,16bit ASID,16TB PA>      Memory Model
Features 1 = <8bit VMID>      Memory Model Features 2 = <32bit CCIDX,48bit
VA>             Debug Features 0 = <2 CTX BKPTs,4 Watchpoints,6
Breakpoints,PMUv3,Debugv8>             Debug Features 1 = <>
 Auxiliary Features 0 = <>         Auxiliary Features 1 = <>CPU  1: ARM
Cortex-A72 r0p3 affinity:  1CPU  2: ARM Cortex-A72 r0p3 affinity:  2CPU  3:
ARM Cortex-A72 r0p3 affinity:  3WARNING: WITNESS option enabled, expect
reduced performance.WARNING:  was not properly dismountedWarning: no
time-of-day clock registered, system time will not be set accuratelylo0:
link state changed to UProot@generic:~ # *
*------------------------------------------------------------------------------------------------------------------------*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BPGaYCdq1%2BYVdEoi4OtxsiyuiaTzP_=HdQjw649k%2B=qhwJAew>