From owner-freebsd-arm@freebsd.org Sun Apr 12 10:42:30 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EACFF2B9CBB for ; Sun, 12 Apr 2020 10:42:30 +0000 (UTC) (envelope-from yklaxds@gmail.com) Received: from mail-io1-xd41.google.com (mail-io1-xd41.google.com [IPv6:2607:f8b0:4864:20::d41]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 490Sxf1kwnz3yL5 for ; Sun, 12 Apr 2020 10:42:30 +0000 (UTC) (envelope-from yklaxds@gmail.com) Received: by mail-io1-xd41.google.com with SMTP id h6so6508139iok.11 for ; Sun, 12 Apr 2020 03:42:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=r01foW924Guxv/AX1Mo8ssBLA8m0HQhmorcrb2kWZBk=; b=vViS0jzFQFhsc3Gilv9rvVTQ7RDzo/T/kueyQYjWfzPl59plPeGGP5XPhTzD0h/7MV wF1iwF3zr8gTYj7bhVJLTSEUumLXq6g8kaGRrqSmv5+r3P1ATLjS8m4AZdB2SscB+gON Db8g5h6IzUvLmr5kMC5KrQTiGb6kDyobYgQ+3onTwsKECuvClxs5cch+eFEMWbfhO/a8 J5FP4mfZRuBpxnqWXhnhXAgY/tEd2X7q8J1ivpLj5e5tKLXVQ8u6yZcDGulKwZl8P7dL IwS3LbepY+N4z0pyhhMzykRhamKupu/27ff1D52c74NGFnmn4oK1gEZDw/KtgFHQF61K ovFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=r01foW924Guxv/AX1Mo8ssBLA8m0HQhmorcrb2kWZBk=; b=C+FeRwJAbtjpNTBu+ap5vTjE+zw0MK9On0g5gQVq6GJIZ2UKj3xb0hRwk91A82NapH Bq61yDsJGsvfowx1yQCh/GEDv/SG4JTSirdz6M1gEY6EqDANoGQAhta5dLVp9bBaPb+F kv3V9akaumftF4iS9vpOXWxO4Mtedt5bAJwQcsiCKaJ8OTx99Z3a2MChRs3ztn/rN078 Nahbz4+9oo40QYI9zQH992qbWnvwc49gZvJn3xRz+9zo8wk7pNHh0XuGIfTqLXHB7Y8p ETNVt1jBjR2zozImgz2ocWKYCEiXaVkPsIabPpE6tYPeAHvVakGxjLFqUL6UCTTAGbAv FtJQ== X-Gm-Message-State: AGi0PuYZfqHda9K6Pj8g8GT09GzVxb7jyDxsoPn4EjRe0+ln5hJ1vnNK N84mM9uzR5bQV7Gwde/NdUmXtgepTqNBRpDf+beN+PCG X-Google-Smtp-Source: APiQypJ4MeMoh3yrzR6mEBWyn4ZvJuRptihXYbcFIytHNHmTEss4/LJngzaeoekjqucYciKGFZzpE2iPZvRc0x9Oo5g= X-Received: by 2002:a5d:9ac1:: with SMTP id x1mr11494230ion.144.1586688148718; Sun, 12 Apr 2020 03:42:28 -0700 (PDT) MIME-Version: 1.0 From: ykla Date: Sun, 12 Apr 2020 18:42:17 +0800 Message-ID: Subject: Enc28j60 SPI not work on RPIB4 To: freebsd-arm@freebsd.org X-Rspamd-Queue-Id: 490Sxf1kwnz3yL5 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=vViS0jzF; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of yklaxds@gmail.com designates 2607:f8b0:4864:20::d41 as permitted sender) smtp.mailfrom=yklaxds@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (0.21), ipnet: 2607:f8b0::/32(-0.33), asn: 15169(-0.43), country: US(-0.05)]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; SH_EMAIL_DBL_DONT_QUERY_IPS(0.00)[0.0.0.0]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; SH_EMAIL_ZRD(0.00)[0.0.0.0]; RCVD_IN_DNSWL_NONE(0.00)[1.4.d.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Apr 2020 10:42:31 -0000 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* *---<>---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: simplebus0: on ofwbus0ofw_clkbus0: on ofwbus0clk_fixed0: on ofw_clkbus0clk_fixed1: on ofw_clkbus0simplebus1: on ofwbus0simplebus2: on ofwbus0regfix0: on ofwbus0regfix1: on ofwbus0psci0: on ofwbus0gic0: mem 0x40041000-0x40041fff,0x40042000-0x40043fff,0x40044000-0x40045fff,0x40046000-0x40047fff irq 46 on simplebus0gic0: pn 0x2, arch 0x2, rev 0x1, implementer 0x43b irqs 256gpio0: mem 0x7e200000-0x7e2000b3 irq 22,23 on simplebus0gpiobus0: on gpio0gpioregulator0: on ofwbus0gpioregulator0: cannot get pin 0gpioregulator0: cannot parse parametersdevice_attach: gpioregulator0 attach returned 6generic_timer0: irq 4,5,6,7 on ofwbus0Timecounter "ARM MPCore Timecounter" frequency 54000000 Hz quality 1000Event timer "ARM MPCore Eventtimer" frequency 54000000 Hz quality 1000gpioregulator0: on ofwbus0gpioregulator0: cannot get pin 0gpioregulator0: cannot parse parametersdevice_attach: gpioregulator0 attach returned 6gpioregulator0: on ofwbus0gpioregulator0: cannot get pin 0gpioregulator0: cannot parse parametersdevice_attach: gpioregulator0 attach returned 6gpioregulator0: on ofwbus0gpioregulator0: cannot get pin 0gpioregulator0: cannot parse parametersdevice_attach: gpioregulator0 attach returned 6gpioregulator0: on ofwbus0gpioregulator0: cannot get pin 0gpioregulator0: cannot parse parametersdevice_attach: gpioregulator0 attach returned 6usb_nop_xceiv0: on ofwbus0gpioregulator0: on ofwbus0gpioregulator0: cannot get pin 0gpioregulator0: cannot parse parametersdevice_attach: gpioregulator0 attach returned 6bcm_dma0: mem 0x7e007000-0x7e007aff irq 9,10,11,12,13,14,15,16,17,18,19 on simplebus0bcmwd0: mem 0x7e100000-0x7e100113,0x7e00a000-0x7e00a023,0x7ec11000-0x7ec1101f on simplebus0mbox0: mem 0x7e00b880-0x7e00b8bf irq 21 on simplebus0gpioc0: on gpio0uart0: mem 0x7e201000-0x7e2011ff irq 24 on simplebus0uart0: console (115200,n,8,1)spi0: mem 0x7e204000-0x7e2041ff irq 26 on simplebus0spibus0: on spi0spibus0: at cs 0 mode 0spibus0: at cs 0 mode 0spibus0: at cs 1 mode 0sdhci_bcm0: mem 0x7e340000-0x7e3400ff irq 60 on simplebus0mmc0: on sdhci_bcm0sdhci_bcm1: mem 0x7e300000-0x7e3000ff irq 61 on simplebus0mmc1: on sdhci_bcm1fb0: 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: on ofwbus0cpu0: on cpulist0cpu1: on cpulist0cpu2: on cpulist0cpu3: on cpulist0gpioled0: on ofwbus0gpioled0: failed to map pingpioregulator0: on ofwbus0gpioregulator0: cannot get pin 0gpioregulator0: cannot parse parametersdevice_attach: gpioregulator0 attach returned 6cryptosoft0: 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 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 = Trying to mount root from ufs:/dev/ufs/rootfs [rw]... Instruction Set Attributes 1 = <> Processor Features 0 = Processor Features 1 = <> Memory Model Features 0 = 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:~ # * *------------------------------------------------------------------------------------------------------------------------*