From nobody Wed May 18 18:39:30 2022 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id D3E0F1B3D8F2 for ; Wed, 18 May 2022 18:39:47 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [IPv6:2a02:21e0:16e0:fe::101:1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "raven.bwct.de", Issuer "raven.bwct.de" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4L3MGp65lkz3htv for ; Wed, 18 May 2022 18:39:46 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from mail.cicely.de (mail.cicely.de [IPv6:2a02:21e0:16e0:20fe:0:0:101:c]) by raven.bwct.de (8.15.2/8.15.2) with ESMTPS id 24IIdYKw050125 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=FAIL) for ; Wed, 18 May 2022 20:39:37 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cicely.de; s=default; t=1652899177; bh=Q5M5DpQWC5uEyPsOlCs+SP77DaFIYGJWIngkqnAeiFs=; h=Date:From:To:Cc:Subject:Reply-To; b=Fdru5/qdQ7gm3FTcTUn1nERwDNMiw1hxzHVl3+3Ic3ry750TrrMvFmUgGr9frAe/Z 6E95DiEtOlus/6eFUZ0AwlPxVEr2Ri5n+QOKyya+jUY5j6om5qik3wxwJ1wRfOMbq7 DU1DUrWlgw45neqSHaWgYutACMys01ArNvAcPC4w= Received: from cicely7.cicely.de (c7-old.cicely.de [IPv6:2a02:21e0:16e0:20fe:0:0:101:d]) by mail.cicely.de (8.16.1/8.16.1) with ESMTPS id 24IIdVSr054279 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 18 May 2022 20:39:31 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.16.1/8.16.1) with ESMTP id 24IIdUlv016746; Wed, 18 May 2022 20:39:30 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.16.1/8.16.1/Submit) id 24IIdUun016745; Wed, 18 May 2022 20:39:30 +0200 (CEST) (envelope-from ticso) Date: Wed, 18 May 2022 20:39:30 +0200 From: Bernd Walter To: freebsd-arm@freebsd.org Cc: Bernd Walter Subject: Only 400kHz on eMMC with Allwinner Pinebook on 13.1-RELEASE Message-ID: Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD cicely7.cicely.de 13.0-RELEASE-p8 amd64 X-Spam-Status: No, score=-1.5 required=4.5 tests=BAYES_00=-1.9,KHOP_HELO_FCRDNS=0.398,SPF_HELO_NONE=0.001,SPF_NONE=0.001 autolearn=no autolearn_force=no version=3.4.5 X-Spam-Checker-Version: SpamAssassin 3.4.5 (2021-03-20) on spamd.cicely.de X-Rspamd-Queue-Id: 4L3MGp65lkz3htv X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cicely.de header.s=default header.b="Fdru5/qd"; dmarc=none; spf=none (mx1.freebsd.org: domain of ticso@cicely7.cicely.de has no SPF policy when checking 2a02:21e0:16e0:fe::101:1) smtp.mailfrom=ticso@cicely7.cicely.de X-Spamd-Result: default: False [-3.28 / 15.00]; HAS_REPLYTO(0.00)[ticso@cicely.de]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[cicely.de:s=default]; FREEFALL_USER(0.00)[ticso]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.982]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; DMARC_NA(0.00)[cicely.de]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cicely.de:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[freebsd-arm]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:44700, ipnet:2a02:21e0::/32, country:DE]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N I did a binary update from 13.0 with freebsd-update I did no U-Boot update however. Installing and booting kernel seemed to work, but it came up rather slow. And installing the userland took 6h. I have an internal eMMC and an additional uSD card. The uSD card worked fine and probes at 50MHz. The eMMC however is probed with 400kHz only and the pmc fails to attach. WARNING: Cannot find freebsd,dts-version property, cannot check DTB compliance Copyright (c) 1992-2021 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.1-RELEASE releng/13.1-n250148-fc952ac2212 GENERIC arm64 FreeBSD clang version 13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303) VT(efifb): resolution 1920x1080 module firmware already present! real memory = 2139090944 (2039 MB) avail memory = 2058932224 (1963 MB) Starting CPU 1 (1) Starting CPU 2 (2) Starting CPU 3 (3) FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs random: unblocking device. random: entropy device external interface MAP 47ef8000 mode 2 pages 16 MAP b8f2e000 mode 2 pages 1 MAP b8f33000 mode 2 pages 1 MAP bdf50000 mode 2 pages 16 kbd0 at kbdmux0 ofwbus0: clk_fixed0: on ofwbus0 clk_fixed1: on ofwbus0 clk_fixed2: on ofwbus0 simplebus0: on ofwbus0 regfix0: on ofwbus0 regfix1: on ofwbus0 psci0: on ofwbus0 rtc0: mem 0x1f00000-0x1f00053 irq 36,37 on simplebus0 rtc0: Having only 2 clocks instead of 3, aborting rtc0: registered as a time-of-day clock, resolution 1.000000s ccu_a64ng0: mem 0x1c20000-0x1c203ff on simplebus0 ccu_sun8i_r0: mem 0x1f01400-0x1f014ff on simplebus0 gic0: mem 0x1c81000-0x1c81fff,0x1c82000-0x1c83fff,0x1c84000-0x1c85fff,0x1c86000-0x1c87fff irq 34 on simplebus0 gic0: pn 0x2, arch 0x2, rev 0x1, implementer 0x43b irqs 224 aw_r_intc_gicp0: mem 0x1f00c00-0x1f00fff irq 38 on simplebus0 gpio0: mem 0x1c20800-0x1c20bff irq 17,18,19 on simplebus0 gpiobus0: on gpio0 iichb0: mem 0x1f02400-0x1f027ff irq 39 on simplebus0 iicbus0: on iichb0 gpio1: mem 0x1f02c00-0x1f02fff irq 40 on simplebus0 gpiobus1: on gpio1 generic_timer0: irq 0,1,2,3 on ofwbus0 Timecounter "ARM MPCore Timecounter" frequency 24000000 Hz quality 1000 Event timer "ARM MPCore Eventtimer" frequency 24000000 Hz quality 1000 a10_timer0: mem 0x1c20c00-0x1c20c2b irq 4,5 on simplebus0 Timecounter "a10_timer timer0" frequency 24000000 Hz quality 2000 aw_syscon0: mem 0x1c00000-0x1c00fff on simplebus0 aw_sid0: mem 0x1c14000-0x1c143ff on simplebus0 mmc_pwrseq0: on ofwbus0 awusbphy0: mem 0x1c19400-0x1c19413,0x1c1a800-0x1c1a803,0x1c1b800-0x1c1b803 on simplebus0 iichb1: mem 0x1f03400-0x1f037ff irq 41 on simplebus0 iicbus1: on iichb1 axp8xx_pmu0: at addr 0x746 irq 43 on iicbus1 axp8xx_pmu0: cannot allocate resources for device device_attach: axp8xx_pmu0 attach returned 6 cpulist0: on ofwbus0 cpu0: on cpulist0 cpu1: on cpulist0 cpu2: on cpulist0 cpu3: on cpulist0 a31dmac0: mem 0x1c02000-0x1c02fff irq 6 on simplebus0 aw_mmc0: mem 0x1c0f000-0x1c0ffff irq 9 on simplebus0 aw_mmc1: mem 0x1c10000-0x1c10fff irq 10 on simplebus0 aw_mmc2: mem 0x1c11000-0x1c11fff irq 11 on simplebus0 ehci0: mem 0x1c1a000-0x1c1a0ff irq 13 on simplebus0 usbus0: EHCI version 1.0 usbus0 on ehci0 ohci0: mem 0x1c1a400-0x1c1a4ff irq 14 on simplebus0 usbus1 on ohci0 ehci1: mem 0x1c1b000-0x1c1b0ff irq 15 on simplebus0 usbus2: EHCI version 1.0 usbus2 on ehci1 ohci1: mem 0x1c1b400-0x1c1b4ff irq 16 on simplebus0 usbus3 on ohci1 gpioc0: on gpio0 uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 23 on simplebus0 uart0: console (115384,n,8,1) pwm0: mem 0x1c21400-0x1c217ff on simplebus0 pwmbus0: on pwm0 pwmc0: channel 0 on pwmbus0 iicbus0: at addr 0x70 iic0: on iicbus0 gpioc1: on gpio1 axp8xx_pmu0: at addr 0x746 irq 43 on iicbus1 axp8xx_pmu0: cannot allocate resources for device device_attach: axp8xx_pmu0 attach returned 6 iic1: on iicbus1 aw_wdog0: mem 0x1c20ca0-0x1c20cbf irq 42 on simplebus0 armv8crypto0: Timecounters tick every 1.000 msec ZFS filesystem version: 5 ZFS storage pool version: features support (5000) usbus0: 480Mbps High Speed USB v2.0 usbus1: 12Mbps Full Speed USB v1.0 CPU 0: ARM Cortex-A53 r0p4 affinity: 0 Cache Type = <64 byte D-cacheline,64 byte I-cacheline,VIPT ICache,64 byte ERG,64 byte CWG> Instruction Set Attributes 0 = 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 = Debug Features 1 = <> Auxiliary Features 0 = <> Auxiliary Features 1 = <> AArch32 Instruction Set Attributes 5 = AArch32 Media and VFP Features 0 = AArch32 Media and VFP Features 1 = CPU 1: ARM Cortex-A53 r0p4 affinity: 1 CPU 2: ARM Cortex-A53 r0p4 affinity: 2 CPU 3: ARM Cortex-A53 r0p4 affinity: 3 Release APs...done usbus2: 480Mbps High Speed USB v2.0 usbus3: 12Mbps Full Speed USB v1.0 ugen0.1: at usbus0 mmc0: Trying to mount root from zfs:zroot/ROOT/default []... on aw_mmc2 uhub0 on usbus0 ugen2.1: at usbus2 ugen3.1: at usbus3 uhub0: on usbus0 ugen1.1: at usbus1 uhub1 on usbus2 uhub2 on usbus3 uhub3 on usbus1 uhub1: on usbus2 uhub2: on usbus3 uhub3: on usbus1 mmc0: Failed to set VCCQ for card at relative address 2 mmc0: Failed to set VCCQ for card at relative address 2 mmcsd0: 62GB at mmc0 0.4MHz/8bit/4096-block mmcsd0boot0: 4MB partition 1 at mmcsd0 mmcsd0boot1: 4MB partition 2 at mmcsd0 mmcsd0rpmb: 4MB partition 3 at mmcsd0 mmc1: on aw_mmc1 mmc1: No compatible cards found on bus aw_mmc1: Spurious interrupt - no active request, rint: 0x00000004 mmc2: on aw_mmc0 uhub3: 1 port with 1 removable, self powered uhub2: 1 port with 1 removable, self powered mmcsd1: 128GB at mmc2 50.0MHz/4bit/32768-block uhub0: 1 port with 1 removable, self powered uhub1: 1 port with 1 removable, self powered ugen2.2: at usbus2 uhub4 on uhub1 uhub4: on usbus2 uhub4: 4 ports with 1 removable, self powered ugen2.3: at usbus2 ukbd0 on uhub4 ukbd0: on usbus2 kbd1 at ukbd0 ums0 on uhub4 ums0: on usbus2 ums0: 5 buttons and [XYZT] coordinates ID=1 mmc2: Failed to set VCCQ for card at relative address 58916 ugen2.4: at usbus2 ukbd1 on uhub4 ukbd1: on usbus2 kbd2 at ukbd1 ums1 on uhub4 ums1: on usbus2 ums1: 6 buttons and [XYZT] coordinates ID=1 ugen2.5: at usbus2 Dual Console: Video Primary, Serial Secondary pwm_backlight0: on ofwbus0 lo0: link state changed to UP Security policy loaded: MAC/ntpd (mac_ntpd) ugen0.2: at usbus0 run0 on uhub0 run0: <1.0> on usbus0 run0: MAC/BBP RT5390 (rev 0x0502), RF RT5370 (MIMO 1T1R), address 08:da:35:e1:23:39 run0: [HT] Enabling 802.11n ieee80211_load_module: load the wlan_amrr module by hand for now. wlan0: Ethernet address: 08:da:35:e1:23:39 run0: firmware RT3071 ver. 0.33 loaded wlan0: link state changed to UP -- B.Walter https://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.