From owner-freebsd-arm@freebsd.org Mon Aug 6 18:40:05 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A38151061741 for ; Mon, 6 Aug 2018 18:40:04 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic310-21.consmr.mail.gq1.yahoo.com (sonic310-21.consmr.mail.gq1.yahoo.com [98.137.69.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1DDAD83917 for ; Mon, 6 Aug 2018 18:40:03 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: kUeegtEVM1lEnGe4iNDe1PPeu_k_5e1NGTLto133SFIclZbTjqXS4RzatsuNPYa b3jh8IzWcQiqzTqSSZkPkVNSFyYpdC9oHhuKx8dMW6Z0cZaOBR1HWi224l0T3EPq7wa6.sX0IctO FD6XKM_hX83rZKSK.mUQ_Osakk.UqtT5PnF5JQO8ocPjySop8.iYB51zrfuJam3VFixAw.2tFf1M 6TxqrUp9T3tdrBZ3fFAIGRPbRZCKTS6OO2V3D5y57.6_Jozk3vpdx1vDkvQFI0RxE8SXxeV.RXpK 1nRs0_pleyt_c5Q2pooIPZVWwta1FqEmlN1S59YYn1ZK1uuUjyT65mcj2TSELw3.o3kG5U8BXoQc 26kxIUhK1bl_AuzelLEnUcP0dITDHuwh1915kqzKDe_5OhrUZT9NLbcPLuJMH.zT5R9LPTHUdxuf X4jql0Yzh2nacGpinOkEtQjNpD2tpWUS1ZOvKNuA.NPxgYBIeytC0LXC3WWCEBTjy9xiv.eQFwJg 8jFHAyKTDMFs.s510jAC60gGr8QJsXQCtqsjzxj7UNZKKSZY6D087O0Fssblw86RIbBf6Ik3VRxu uXK_t0iRrw2fcSY9B3YKsVahnI9zFk1hkFVEkjU_gP6vJ20pWC4_uyE0Q69_U6ZMlyt50AmwVwgS mjEYlIPCp_ETvV22r5WVrM3Y9sATSeRmmOFRRIIdv2mP2QWqWzEJ2OtBFlMbGJlQFyn9GxqOJYxA SeDxo2tW1A1hsFFyVB1vvWzsquVM5_fPXewVXtdS2fhyqPM.Hjjm8DCpEvDHR3v7ZwiMSqOsjwGs SmMhOuPirYK4pKGv6mV7ZaaZAWlZDAwg8D0Ammuo.O5iPj8o4n.0q71AZF03Db2iUPYROr4M4TF7 anBRgalGGxPHnGoPDJLBJvrway.JPvL9f5l5BHMIR8tqaW171x_PAkkpYHcOSOVLbCtsv791QL_s QM2y4J_pu3lVlKqbM3vtHhVoroP2f0BIIaCX.J_74snR5y2Y.56LcwyJiOQFJGMYtiiBkvuqRDXn W.3.xoiApHU2_p3RWsVtp_cwEm6tJnCL05nQhO9uR84abknbd_bAS6rVdjIc3PH1cZ1WMAmji1KW 9t8D3oqLDZvAyOQtB Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.gq1.yahoo.com with HTTP; Mon, 6 Aug 2018 18:39:57 +0000 Received: from ip70-189-131-151.lv.lv.cox.net (EHLO [192.168.0.105]) ([70.189.131.151]) by smtp422.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 0b547705ac48bb2f0149ec983863b4a8; Mon, 06 Aug 2018 18:39:52 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: Attempted large jump to head -r337347 for pine64+ 2GB did not finish the boot: eventual MMC handling problems before root file system is mounted From: Mark Millard In-Reply-To: <05447ED6-3E61-4D67-B300-3182CB07079A@yahoo.com> Date: Mon, 6 Aug 2018 11:39:51 -0700 Cc: Mark Millard via freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: <93D377C9-9123-40AF-AF5F-B3437831A91D@yahoo.com> References: <0918383D-5A5A-40A0-ADCB-08C500153BE1@yahoo.com> <20180806124421.0b622761272370d2946cac29@bidouilliste.com> <0FF066AF-D9F3-4523-8203-B9405091F10A@yahoo.com> <20180806193755.8c4e9a63bcd0870d55fe3969@bidouilliste.com> <05447ED6-3E61-4D67-B300-3182CB07079A@yahoo.com> To: Emmanuel Vadot X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Aug 2018 18:40:05 -0000 [Fixing a confusing "slower" reference . . .] On 2018-Aug-6, at 11:26 AM, Mark Millard wrote: > On 2018-Aug-6, at 10:37 AM, Emmanuel Vadot = wrote: >=20 >> On Mon, 6 Aug 2018 10:12:43 -0700 >> Mark Millard wrote: >>=20 >>> On 2018-Aug-6, at 3:44 AM, Emmanuel Vadot = wrote: >>>=20 >>>> On Mon, 6 Aug 2018 02:48:57 -0700 >>>> Mark Millard via freebsd-arm wrote: >>>>=20 >>>>> I amd64 -> aarch64 cross built -r337347 and installed it >>>>> (and 2018.07 u-boot-sunxi-with-spl.bin and loader.efi as >>>>> bootaa64.efi) as an update. My attempted synchronization >>>>> of loader.conf and ttys and devd.conf may be incorrect. >>>>> (Previous to this the Pine64+ 2GB seemed to be working >>>>> okay but it was at a very old build.) >>>>>=20 >>>>> The kernel config has GENERIC included but the various >>>>> debug features disabled. (My typical operating >>>>> environment.) >>>>>=20 >>>>> For all I know what the below shows might be expected >>>>> at this point. The kernel seems to have problems with >>>>> the MMC (that the kernel was loaded from). No other >>>>> media are attached. mmcsd0 is really an 128 GiByte >>>>> emmc on an adapter. (This historically worked for me.) >>>>=20 >>>> emmc to sd ? that's weird ... >>>=20 >>> An example of the adapter I've used for this is: >>>=20 >>> = https://ameridroid.com/collections/storage-emmc-and-microsd/products/emmc-= adapter >>=20 >> So this is a passive adapter, maybe that's something that should work >> but it's definitly is something that calls for problems. >>=20 >>> emmc is multi-mode for its allowed modes of operation. Thus >>> its ability to frequently be used this way, such as via HS200. >>> emmc is commonly more robust as I understand. >>=20 >> I didn't understand a word. >=20 > I got the HS200 reference from the boot -v output. Such is currently = from the > JEDEC standard "JESD84-B51 e.MMC v5.1" from looking around . (JEDEC > members have free access, others do not.) >=20 > The output reported: >=20 > mmc0: Card at relative address 0x0002 added: > mmc0: card: MMCHC DJNB4R 0.7 SN MFG 06/2016 by 21 0x0000 > mmc0: quirks: 0 > mmc0: bus: 4bit, 200MHz (HS200 timing) > mmc0: memory: 244277248 blocks, erase sector 1024 blocks >=20 > The e.MMC bus speed modes with I/O Voltage 3V allowed are: >=20 > Backwards Compatibility with legacy MMC card, data rate single, 3V = allowed, bus widths 1,4,8, 0-26 MHz >=20 > High Speed SDR, data rate single, 3V allowed, bus widths 1,4,8, 0-52 = MHz >=20 > High Speed DDR, Data rate dual, 3V allowed, bus widths 4,8, 0-52 MHz >=20 > (The last being the fastest for maximum transfer rate with 3V.) >=20 > There is another 1.8V/1.2V mode: HS400 that is dual data rate and = always 8 bit, > unlike HS200's single data rate and 4 or 8 bit. Both are 0-200 MHz. = HS400 > is optional and sufficiently old e.MMC standard vintages would likely = not > even have it. >=20 > So a slower 3.? V mode of use used to be selected (based on the = constraints > on the board's voltages in some way, possibly hard coded). "slower" lacks context: I should have said . . . "a slower than HS200 3.? V mode" As I remember, the 3V range is from 2.7 V to 3.6 V or some such. So 3.3 V would be in range, at least if I remember right. >>>=20 >>> (I had to modify the case the pine64+ 2GB is in in order for >>> the adapter/emmc combination to fit in all the way.) >>>=20 >>>> Can you boot -v and post the result please ? >>>=20 >>> Glad to . . . >>>=20 >>> DRAM: 2048 MiB >>> Trying to boot from MMC1 >>>=20 >>>=20 >>> U-Boot SPL 2018.07 (Aug 02 2018 - 18:42:28 +0000) >>> DU-Boot 2018.07 (Aug 02 2018 - 18:42:28 +0000) Allwinner Technology >>>=20 >>> CPU: Allwinner A64 (SUN50I) >>> Model: Pine64+ >>> DRAM: 2 GiB >>> MMC: SUNXI SD/MMC: 0 >>> Loading Environment from FAT... *** Warning - bad CRC, using default = environment >>>=20 >>> Failed (-5) >>> In: serial >>> Out: serial >>> Err: serial >>> Net: phy interface7 >>> eth0: ethernet@1c30000 >>> starting USB... >>> USB0: USB EHCI 1.00 >>> USB1: USB OHCI 1.0 >>> scanning bus 0 for devices... 1 USB Device(s) found >>> scanning usb for storage devices... 0 Storage Device(s) found >>> Hit any key to stop autoboot: 0=20 >>> switch to partitions #0, OK >>> mmc0(part 0) is current device >>> Scanning mmc 0:1... >>> Found EFI removable media binary efi/boot/bootaa64.efi >>> libfdt fdt_check_header(): FDT_ERR_BADMAGIC >>> Scanning disks on usb... >>> Disk usb0 not ready >>> Disk usb1 not ready >>> Disk usb2 not ready >>> Disk usb3 not ready >>> Scanning disks on mmc... >>> MMC Device 1 not found >>> MMC Device 2 not found >>> MMC Device 3 not found >>> Found 3 disks >>> 477384 bytes read in 25 ms (18.2 MiB/s) >>> libfdt fdt_check_header(): FDT_ERR_BADMAGIC >>> ## Starting EFI application at 40080000 ... >>> Consoles: EFI console =20 >>> FreeBSD/arm64 EFI loader, Revision 1.1 >>>=20 >>> Command line arguments: loader.efi >>> EFI version: 2.70 >>> EFI Firmware: Das U-Boot (rev 0.00) >>> Console: efi (0) >>> Load Path: /\efi\boot\bootaa64.efi >>> Load Device: = /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/USB(0x6,0x0)/HD(1,0x01,0,0x40= 3b,0x1ffe0) >>> Trying ESP: = /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/USB(0x6,0x0)/HD(1,0x01,0,0x40= 3b,0x1ffe0) >>> Setting currdev to disk0p1: >>> Trying: = /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/USB(0x6,0x0)/HD(2,0x01,0,0x24= 400,0xe600000) >>> Setting currdev to disk0p2: >>> Loading /boot/defaults/loader.conf >>> /boot/kernel/kernel text=3D0x8ce84a data=3D0x148020+0x72caac = syms=3D[0x8+0x11d000+0x8+0x1108a8] >>> /boot/entropy size=3D0x1000 >>> /boot/kernel/umodem.ko text=3D0x2168 text=3D0x1410 = data=3D0x102d0+0xfd40 syms=3D[0x8+0xf30+0x8+0xb73] >>>=20 >>> Hit [Enter] to boot immediately, or any other key for command = prompt. >>> Booting [/boot/kernel/kernel] in 9 seconds...=20 >>>=20 >>> Type '?' for a list of commands, 'help' for more detailed help. >>> OK boot -v >>> Booting... >>> Using DTB provided by EFI at 0x47ffc000. >>> EHCI failed to shut down host controller. >>> KDB: debugger backends: ddb >>> KDB: current backend: ddb >>> Type Physical Virtual #Pages Attr >>> ConventionalMemory 000040000000 40000000 00007ffc WB=20 >>> Reserved 000047ffc000 47ffc000 00000003 WB=20 >>> RuntimeServicesData 000047fff000 47fff000 00000001 WB RUNTIME >>> Reserved 000048000000 48000000 00000003 WB=20 >>> RuntimeServicesData 000048003000 48003000 00000001 WB RUNTIME >>> ConventionalMemory 000048005000 40000000 00068ea1 WB=20 >>> LoaderData 0000b0ea6000 b0ea6000 00000001 WB=20 >>> Reserved 0000b0ea7000 b0ea7000 00000001 WB=20 >>> Reserved 0000b0ea8000 b0ea8000 00000001 WB=20 >>> LoaderData 0000b0ea9000 b0ea9000 00004000 WB=20 >>> LoaderData 0000b4ea9000 b4ea9000 00004000 WB=20 >>> LoaderCode 0000b8ea9000 b8ea9000 00000075 WB=20 >>> Reserved 0000b8f1e000 b8f1e000 00000001 WB=20 >>> Reserved 0000b8f1f000 b8f1f000 00000001 WB=20 >>> RuntimeServicesData 0000b8f20000 b8f20000 00000001 WB RUNTIME >>> Reserved 0000b8f21000 b8f21000 00000001 WB=20 >>> Reserved 0000b8f22000 b8f22000 00000001 WB=20 >>> Reserved 0000b8f23000 b8f23000 00000001 WB=20 >>> Reserved 0000b8f24000 b8f24000 00000001 WB=20 >>> LoaderData 0000b8f25000 b8f25000 00005094 WB=20 >>> RuntimeServicesCode 0000bdfb9000 bdfb9000 00000002 WB RUNTIME >>> LoaderData 0000bdfbb000 b8f25000 00002045 WB=20 >>> Physical memory chunk(s): >>> 0x40000000 - 0x47ffbfff, 127 MB ( 32764 pages) >>> 0x47fff000 - 0x47ffffff, 0 MB ( 1 pages) >>> 0x48003000 - 0x48003fff, 0 MB ( 1 pages) >>> 0x48005000 - 0xb0ea6fff, 1678 MB ( 429730 pages) >>> 0xb0ea9000 - 0xb8f1dfff, 128 MB ( 32885 pages) >>> 0xb8f20000 - 0xb8f20fff, 0 MB ( 1 pages) >>> 0xb8f25000 - 0xbdfb8fff, 80 MB ( 20628 pages) >>> 0xbdfbb000 - 0xbfffffff, 32 MB ( 8261 pages) >>> Excluded memory regions: >>> 0x47ffc000 - 0x48003fff, 0 MB ( 8 pages) NoAlloc=20 >>> 0xb0ea7000 - 0xb0ea8fff, 0 MB ( 2 pages) NoAlloc=20 >>> 0xb1000000 - 0xb25e1fff, 21 MB ( 5602 pages) NoAlloc=20 >>> 0xb8f1e000 - 0xb8f24fff, 0 MB ( 7 pages) NoAlloc=20 >>> 0xbdfb9000 - 0xbdfbafff, 0 MB ( 2 pages) NoAlloc=20 >>> Found 4 CPUs in the device tree >>> Copyright (c) 1992-2018 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 12.0-CURRENT r337347M arm64 >>> FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based = on LLVM 6.0.1) >>> VT: init without driver. >>> Preloaded elf kernel "/boot/kernel/kernel" at 0xffff0000013b9000. >>> Preloaded boot_entropy_cache "/boot/entropy" at 0xffff0000013c2020. >>> Preloaded elf module "/boot/kernel/umodem.ko" at 0xffff0000013c2078. >>> KLD file umodem.ko is missing dependencies >>> Starting CPU 1 (1) >>> Starting CPU 2 (2) >>> Starting CPU 3 (3) >>> FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs >>> random: read 3840 bytes from preloaded cache >>> random: unblocking device. >>> arc4random: read 32 bytes from preloaded cache >>> VIMAGE (virtualized network stack) enabled >>> ULE: setup cpu 0 >>> ULE: setup cpu 1 >>> ULE: setup cpu 2 >>> ULE: setup cpu 3 >>> random: entropy device external interface >>> MAP 47fff000 mode 2 pages 1 >>> MAP 48003000 mode 2 pages 1 >>> MAP b8f20000 mode 2 pages 1 >>> MAP bdfb9000 mode 2 pages 2 >>> nfslock: pseudo-device >>> crypto: >>> kbd0 at kbdmux0 >>> mem: >>> null: >>> openfirm: >>> random: harvesting attach, 8 bytes (4 bits) from nexus0 >>> ofwbus0: >>> clk_fixed0: on ofwbus0 >>> random: harvesting attach, 8 bytes (4 bits) from clk_fixed0 >>> clk_fixed1: on ofwbus0 >>> random: harvesting attach, 8 bytes (4 bits) from clk_fixed1 >>> clk_fixed2: on ofwbus0 >>> random: harvesting attach, 8 bytes (4 bits) from clk_fixed2 >>> simplebus0: on ofwbus0 >>> ccu_a64ng0: mem = 0x1c20000-0x1c203ff on simplebus0 >>> ccu_a64ng0: Setting pll_periph0 as parent for ahb1 >>> ccu_a64ng0: Setting pll_periph0 as parent for ahb2 >>> ccu_a64ng0: Setting pll_ddr0 as parent for dram >>> Clock: pll_cpux, parent: osc24M(0), freq: 816000000 >>> Clock: pll_audio, parent: osc24M(0), freq: 24571428 >>> Clock: pll_periph0_2x, parent: osc24M(0), freq: 600000000 >>> Clock: pll_periph1_2x, parent: osc24M(0), freq: 600000000 >>> Clock: pll_ddr0, parent: osc24M(0), freq: 408000000 >>> Clock: pll_ddr1, parent: osc24M(0), freq: 1344000000 >>> Clock: pll_video0, parent: osc24M(0), freq: 30303 >>> Clock: pll_video1, parent: osc24M(0), freq: 30303 >>> Clock: pll_ve, parent: osc24M(0), freq: 30303 >>> Clock: pll_gpu, parent: osc24M(0), freq: 30303 >>> Clock: pll_de, parent: osc24M(0), freq: 30303 >>> Clock: pll_hsic, parent: osc24M(0), freq: 1200000 >>> Clock: apb2, parent: osc24M(1), freq: 24000000 >>> Clock: nand, parent: osc24M(0), freq: 24000000 >>> Clock: mmc0, parent: pll_periph0_2x(1), freq: 50000000 >>> Clock: mmc1, parent: osc24M(0), freq: 24000000 >>> Clock: mmc2, parent: osc24M(0), freq: 24000000 >>> Clock: ts, parent: osc24M(0), freq: 24000000 >>> Clock: ce, parent: osc24M(0), freq: 24000000 >>> Clock: spi0, parent: osc24M(0), freq: 24000000 >>> Clock: spi1, parent: osc24M(0), freq: 24000000 >>> Clock: spdif, parent: pll_audio(0), freq: 24571428 >>> Clock: dram, parent: pll_ddr0(0), freq: 408000000 >>> Clock: de, parent: pll_periph0_2x(0), freq: 600000000 >>> Clock: deinterlace, parent: pll_periph0(0), freq: 300000000 >>> Clock: csi-sclk, parent: pll_periph0(0), freq: 300000000 >>> Clock: csi-mclk, parent: osc24M(0), freq: 24000000 >>> Clock: ve, parent: pll_ve(0), freq: 30303 >>> Clock: hdmi, parent: pll_video0(0), freq: 30303 >>> Clock: mbus, parent: pll_periph0_2x(1), freq: 200000000 >>> Clock: gpu, parent: pll_gpu(0), freq: 30303 >>> Clock: ahb1, parent: pll_periph0(3), freq: 300000000 >>> Clock: ahb2, parent: pll_periph0(1), freq: 150000000 >>> Clock: cpux, parent: pll_cpux(2), freq: 816000000 >>> Clock: i2s0mux, parent: pll_audio-8x(0), freq: 196571424 >>> Clock: i2s1mux, parent: pll_audio-8x(0), freq: 196571424 >>> Clock: i2s2mux, parent: pll_audio-8x(0), freq: 196571424 >>> Clock: axi, parent: cpux(0), freq: 204000000 >>> Clock: apb1, parent: ahb1(0), freq: 75000000 >>> Clock: apb, parent: cpux(0), freq: 272000000 >>> Clock: thsdiv, parent: osc24M(0), freq: 12000000 >>> Clock: osc12M, parent: osc24M(0), freq: 12000000 >>> Clock: pll_periph0, parent: pll_periph0_2x(0), freq: 300000000 >>> Clock: pll_periph1, parent: pll_periph1_2x(0), freq: 300000000 >>> Clock: pll_audio-2x, parent: pll_audio(0), freq: 49142856 >>> Clock: pll_audio-4x, parent: pll_audio(0), freq: 98285712 >>> Clock: pll_audio-8x, parent: pll_audio(0), freq: 196571424 >>> Clock: bus-mipi-dsi, parent: ahb1(0), freq: 300000000 >>> Clock: bus-ce, parent: ahb1(0), freq: 300000000 >>> Clock: bus-dma, parent: ahb1(0), freq: 300000000 >>> Clock: bus-mmc0, parent: ahb1(0), freq: 300000000 >>> Clock: bus-mmc1, parent: ahb1(0), freq: 300000000 >>> Clock: bus-mmc2, parent: ahb1(0), freq: 300000000 >>> Clock: bus-nand, parent: ahb1(0), freq: 300000000 >>> Clock: bus-dram, parent: ahb1(0), freq: 300000000 >>> Clock: bus-emac, parent: ahb2(0), freq: 150000000 >>> Clock: bus-ts, parent: ahb1(0), freq: 300000000 >>> Clock: bus-hstimer, parent: ahb1(0), freq: 300000000 >>> Clock: bus-spi0, parent: ahb1(0), freq: 300000000 >>> Clock: bus-spi1, parent: ahb1(0), freq: 300000000 >>> Clock: bus-otg, parent: ahb1(0), freq: 300000000 >>> Clock: bus-ehci0, parent: ahb1(0), freq: 300000000 >>> Clock: bus-ehci1, parent: ahb2(0), freq: 150000000 >>> Clock: bus-ohci0, parent: ahb1(0), freq: 300000000 >>> Clock: bus-ohci1, parent: ahb2(0), freq: 150000000 >>> Clock: bus-ve, parent: ahb1(0), freq: 300000000 >>> Clock: bus-tcon0, parent: ahb1(0), freq: 300000000 >>> Clock: bus-tcon1, parent: ahb1(0), freq: 300000000 >>> Clock: bus-deinterlace, parent: ahb1(0), freq: 300000000 >>> Clock: bus-csi, parent: ahb1(0), freq: 300000000 >>> Clock: bus-hdmi, parent: ahb1(0), freq: 300000000 >>> Clock: bus-de, parent: ahb1(0), freq: 300000000 >>> Clock: bus-gpu, parent: ahb1(0), freq: 300000000 >>> Clock: bus-msgbox, parent: ahb1(0), freq: 300000000 >>> Clock: bus-spinlock, parent: ahb1(0), freq: 300000000 >>> Clock: bus-codec, parent: apb1(0), freq: 75000000 >>> Clock: bus-spdif, parent: apb1(0), freq: 75000000 >>> Clock: bus-pio, parent: apb1(0), freq: 75000000 >>> Clock: bus-ths, parent: apb1(0), freq: 75000000 >>> Clock: bus-i2s0, parent: apb1(0), freq: 75000000 >>> Clock: bus-i2s1, parent: apb1(0), freq: 75000000 >>> Clock: bus-i2s2, parent: apb1(0), freq: 75000000 >>> Clock: bus-i2c0, parent: apb2(0), freq: 24000000 >>> Clock: bus-i2c1, parent: apb2(0), freq: 24000000 >>> Clock: bus-i2c2, parent: apb2(0), freq: 24000000 >>> Clock: bus-src, parent: apb2(0), freq: 24000000 >>> Clock: bus-uart0, parent: apb2(0), freq: 24000000 >>> Clock: bus-uart1, parent: apb2(0), freq: 24000000 >>> Clock: bus-uart2, parent: apb2(0), freq: 24000000 >>> Clock: bus-uart3, parent: apb2(0), freq: 24000000 >>> Clock: bus-uart4, parent: apb2(0), freq: 24000000 >>> Clock: bus-dbg, parent: ahb1(0), freq: 300000000 >>> Clock: ths, parent: thsdiv(0), freq: 12000000 >>> Clock: usb-phy0, parent: osc24M(0), freq: 24000000 >>> Clock: usb-phy1, parent: osc24M(0), freq: 24000000 >>> Clock: usb-hsic, parent: pll_hsic(0), freq: 1200000 >>> Clock: usb-hsic-12M, parent: osc12M(0), freq: 12000000 >>> Clock: usb-ohci0, parent: osc12M(0), freq: 12000000 >>> Clock: usb-ohci1, parent: usb-ohci0(0), freq: 12000000 >>> Clock: dram-ve, parent: dram(0), freq: 408000000 >>> Clock: dram-csi, parent: dram(0), freq: 408000000 >>> Clock: dram-deinterlace, parent: dram(0), freq: 408000000 >>> Clock: dram-ts, parent: dram(0), freq: 408000000 >>> Clock: csi-misc, parent: osc24M(0), freq: 24000000 >>> Clock: ac-dig, parent: pll_audio(0), freq: 24571428 >>> Clock: ac-dig-4x, parent: pll_audio-4x(0), freq: 98285712 >>> Clock: avs, parent: osc24M(0), freq: 24000000 >>> Clock: hdmi-ddc, parent: osc24M(0), freq: 24000000 >>> random: harvesting attach, 8 bytes (4 bits) from ccu_a64ng0 >>> iichb0: mem = 0x1c2b000-0x1c2b3ff irq 21 on simplebus0 >>> iicbus0: on iichb0 >>> random: harvesting attach, 8 bytes (4 bits) from iicbus0 >>> random: harvesting attach, 8 bytes (4 bits) from iichb0 >>> random: harvesting attach, 8 bytes (4 bits) from simplebus0 >>> regfix0: on ofwbus0 >>> random: harvesting attach, 8 bytes (4 bits) from regfix0 >>> random: harvesting attach, 8 bytes (4 bits) from ofwbus0 >>> ccu_sun8i_r0: mem = 0x1f01400-0x1f014ff on simplebus0 >>> Clock: ar100, parent: osc32k(0), freq: 32768 >>> Clock: apb0, parent: ahb0(0), freq: 32768 >>> Clock: ahb0, parent: ar100(0), freq: 32768 >>> Clock: ir, parent: osc32k(0), freq: 32768 >>> Clock: apb0-pio, parent: apb0(0), freq: 32768 >>> Clock: apb0-ir, parent: apb0(0), freq: 32768 >>> Clock: apb0-timer, parent: apb0(0), freq: 32768 >>> Clock: apb0-rsb, parent: apb0(0), freq: 32768 >>> Clock: apb0-uart, parent: apb0(0), freq: 32768 >>> Clock: apb0-i2c, parent: apb0(0), freq: 32768 >>> Clock: apb0-twd, parent: apb0(0), freq: 32768 >>> random: harvesting attach, 8 bytes (4 bits) from ccu_sun8i_r0 >>> psci0: on ofwbus0 >>> psci0: PSCI version 0.2 compatible >>> random: harvesting attach, 8 bytes (4 bits) from psci0 >>> gic0: mem = 0x1c81000-0x1c81fff,0x1c82000-0x1c83fff,0x1c84000-0x1c85fff,0x1c86000-0x1c= 87fff irq 23 on simplebus0 >>> gic0: pn 0x2, arch 0x2, rev 0x1, implementer 0x43b irqs 224 >>> random: harvesting attach, 8 bytes (4 bits) from gic0 >>> gpio0: mem 0x1c20800-0x1c20bff = irq 12,13,14 on simplebus0 >>> gpiobus0: on gpio0 >>> random: harvesting attach, 8 bytes (4 bits) from gpiobus0 >>> Processing 1 pin-config node(s) in pinctrl-0 for mmc@1c0f000 >>> Processing 1 pin-config node(s) in pinctrl-0 for serial@1c28000 >>> Processing 1 pin-config node(s) in pinctrl-0 for i2c@1c2b000 >>> Processing 1 pin-config node(s) in pinctrl-0 for ethernet@1c30000 >>> Processing 1 pin-config node(s) in pinctrl-0 for mmc@1c0f000 >>> Processing 1 pin-config node(s) in pinctrl-0 for serial@1c28000 >>> Processing 1 pin-config node(s) in pinctrl-0 for i2c@1c2b000 >>> Processing 1 pin-config node(s) in pinctrl-0 for ethernet@1c30000 >>> random: harvesting attach, 8 bytes (4 bits) from gpio0 >>> gpio1: mem 0x1f02c00-0x1f02fff = irq 26 on simplebus0 >>> gpiobus1: on gpio1 >>> random: harvesting attach, 8 bytes (4 bits) from gpiobus1 >>> Processing 1 pin-config node(s) in pinctrl-0 for mmc@1c0f000 >>> Processing 1 pin-config node(s) in pinctrl-0 for serial@1c28000 >>> Processing 1 pin-config node(s) in pinctrl-0 for i2c@1c2b000 >>> Processing 1 pin-config node(s) in pinctrl-0 for ethernet@1c30000 >>> Processing 1 pin-config node(s) in pinctrl-0 for mmc@1c0f000 >>> Processing 1 pin-config node(s) in pinctrl-0 for serial@1c28000 >>> Processing 1 pin-config node(s) in pinctrl-0 for i2c@1c2b000 >>> Processing 1 pin-config node(s) in pinctrl-0 for ethernet@1c30000 >>> random: harvesting attach, 8 bytes (4 bits) from 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 >>> random: harvesting attach, 8 bytes (4 bits) from generic_timer0 >>> rtc0: mem 0x1f00000-0x1f00053 irq 24,25 on = simplebus0 >>> rtc0: Using external oscillator >>> rtc0: registered as a time-of-day clock, resolution 1.000000s >>> random: harvesting attach, 8 bytes (4 bits) from rtc0 >>> awusbphy0: mem = 0x1c19400-0x1c19413,0x1c1a800-0x1c1a803,0x1c1b800-0x1c1b803 on = simplebus0 >>> random: harvesting attach, 8 bytes (4 bits) from awusbphy0 >>> efirtc0: cannot read EFI realtime clock >>> cpulist0: on ofwbus0 >>> cpu0: on cpulist0 >>> cpu0: missing 'clock-frequency' property >>> arm64_cpu0: register <0> >>> random: harvesting attach, 8 bytes (4 bits) from arm64_cpu0 >>> random: harvesting attach, 8 bytes (4 bits) from cpu0 >>> cpu1: on cpulist0 >>> cpu1: missing 'clock-frequency' property >>> arm64_cpu1: register <1> >>> random: harvesting attach, 8 bytes (4 bits) from arm64_cpu1 >>> random: harvesting attach, 8 bytes (4 bits) from cpu1 >>> cpu2: on cpulist0 >>> cpu2: missing 'clock-frequency' property >>> arm64_cpu2: register <2> >>> random: harvesting attach, 8 bytes (4 bits) from arm64_cpu2 >>> random: harvesting attach, 8 bytes (4 bits) from cpu2 >>> cpu3: on cpulist0 >>> cpu3: missing 'clock-frequency' property >>> arm64_cpu3: register <3> >>> random: harvesting attach, 8 bytes (4 bits) from arm64_cpu3 >>> random: harvesting attach, 8 bytes (4 bits) from cpu3 >>> random: harvesting attach, 8 bytes (4 bits) from cpulist0 >>> aw_mmc0: mem = 0x1c0f000-0x1c0ffff irq 4 on simplebus0 >>> aw_mmc0: vmmc-supply regulator found >>> mmc0: on aw_mmc0 >>> random: harvesting attach, 8 bytes (4 bits) from mmc0 >>> random: harvesting attach, 8 bytes (4 bits) from aw_mmc0 >>> simplebus0: mem 0x1c10000-0x1c10fff irq 5 disabled = compat allwinner,sun50i-a64-mmc (no driver attached) >>> simplebus0: mem 0x1c11000-0x1c11fff irq 6 disabled = compat allwinner,sun50i-a64-emmc (no driver attached) >>> simplebus0: mem 0x1c19000-0x1c193ff irq 7 compat = allwinner,sun8i-a33-musb (no driver attached) >>> simplebus0: mem 0x1c1a000-0x1c1a0ff irq 8 disabled = compat allwinner,sun50i-a64-ehci (no driver attached) >>> simplebus0: mem 0x1c1a400-0x1c1a4ff irq 9 disabled = compat allwinner,sun50i-a64-ohci (no driver attached) >>> ehci0: mem = 0x1c1b000-0x1c1b0ff irq 10 on simplebus0 >>> usbus0: EHCI version 1.0 >>> usbus0 on ehci0 >>> ehci0: usbpf: Attached >>> random: harvesting attach, 8 bytes (4 bits) from usbus0 >>> random: harvesting attach, 8 bytes (4 bits) from ehci0 >>> ohci0: mem 0x1c1b400-0x1c1b4ff irq 11 on = simplebus0 >>> usbus1 on ohci0 >>> ohci0: usbpf: Attached >>> random: harvesting attach, 8 bytes (4 bits) from usbus1 >>> random: harvesting attach, 8 bytes (4 bits) from ohci0 >>> gpioc0: on gpio0 >>> random: harvesting attach, 8 bytes (4 bits) from gpioc0 >>> simplebus0: mem 0x1c21400-0x1c21407 disabled compat = allwinner,sun50i-a64-pwm (no driver attached) >>> uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 15 on = simplebus0 >>> uart0: console (115384,n,8,1) >>> uart0: fast interrupt >>> uart0: PPS capture mode: DCD >>> random: harvesting attach, 8 bytes (4 bits) from uart0 >>> simplebus0: mem 0x1c28400-0x1c287ff irq 16 disabled = compat snps,dw-apb-uart (no driver attached) >>> simplebus0: mem 0x1c28800-0x1c28bff irq 17 disabled = compat snps,dw-apb-uart (no driver attached) >>> simplebus0: mem 0x1c28c00-0x1c28fff irq 18 disabled = compat snps,dw-apb-uart (no driver attached) >>> simplebus0: mem 0x1c29000-0x1c293ff irq 19 disabled = compat snps,dw-apb-uart (no driver attached) >>> simplebus0: mem 0x1c2ac00-0x1c2afff irq 20 disabled = compat allwinner,sun6i-a31-i2c (no driver attached) >>> iic0: on iicbus0 >>> random: harvesting attach, 8 bytes (4 bits) from iic0 >>> simplebus0: mem 0x1c2b400-0x1c2b7ff irq 22 disabled = compat allwinner,sun6i-a31-i2c (no driver attached) >>> gpioc1: on gpio1 >>> random: harvesting attach, 8 bytes (4 bits) from gpioc1 >>> syscon_generic0: mem 0x1c00000-0x1c00fff on simplebus0 >>> random: harvesting attach, 8 bytes (4 bits) from syscon_generic0 >>> awg0: mem 0x1c30000-0x1c3ffff irq 27 on = simplebus0 >>> simplebus0: no default resources for rid =3D 1, type =3D 3 >>> awg0: PHY type: rgmii, conf mode: reg >>> awg0: EMAC clock: 0x00000006 >>> awg0: AHB frequency 150000000 Hz, MDC div: 0x2 >>> miibus0: on awg0 >>> rgephy0: PHY 0 on = miibus0 >>> rgephy0: OUI 0x00e04c, model 0x0011, rev. 5 >>> rgephy0: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, = 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, = 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, = 1000baseT-FDX-flow-master, auto, auto-flow >>> random: harvesting attach, 8 bytes (4 bits) from rgephy0 >>> rgephy1: PHY 1 on = miibus0 >>> rgephy1: OUI 0x00e04c, model 0x0011, rev. 5 >>> rgephy1: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, = 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, = 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, = 1000baseT-FDX-flow-master, auto, auto-flow >>> random: harvesting attach, 8 bytes (4 bits) from rgephy1 >>> random: harvesting attach, 8 bytes (4 bits) from miibus0 >>> awg0: bpf attached >>> awg0: Ethernet address: 02:ba:b1:c5:93:b7 >>> random: harvesting attach, 8 bytes (4 bits) from awg0 >>> cryptosoft0: >>> crypto: assign cryptosoft0 driver id 0, flags 0x6000000 >>> crypto: cryptosoft0 registers alg 1 flags 0 maxoplen 0 >>> crypto: cryptosoft0 registers alg 2 flags 0 maxoplen 0 >>> crypto: cryptosoft0 registers alg 3 flags 0 maxoplen 0 >>> crypto: cryptosoft0 registers alg 4 flags 0 maxoplen 0 >>> crypto: cryptosoft0 registers alg 5 flags 0 maxoplen 0 >>> crypto: cryptosoft0 registers alg 16 flags 0 maxoplen 0 >>> crypto: cryptosoft0 registers alg 6 flags 0 maxoplen 0 >>> crypto: cryptosoft0 registers alg 7 flags 0 maxoplen 0 >>> crypto: cryptosoft0 registers alg 32 flags 0 maxoplen 0 >>> crypto: cryptosoft0 registers alg 18 flags 0 maxoplen 0 >>> crypto: cryptosoft0 registers alg 19 flags 0 maxoplen 0 >>> crypto: cryptosoft0 registers alg 20 flags 0 maxoplen 0 >>> crypto: cryptosoft0 registers alg 8 flags 0 maxoplen 0 >>> crypto: cryptosoft0 registers alg 15 flags 0 maxoplen 0 >>> crypto: cryptosoft0 registers alg 9 flags 0 maxoplen 0 >>> crypto: cryptosoft0 registers alg 10 flags 0 maxoplen 0 >>> crypto: cryptosoft0 registers alg 13 flags 0 maxoplen 0 >>> crypto: cryptosoft0 registers alg 14 flags 0 maxoplen 0 >>> crypto: cryptosoft0 registers alg 34 flags 0 maxoplen 0 >>> crypto: cryptosoft0 registers alg 35 flags 0 maxoplen 0 >>> crypto: cryptosoft0 registers alg 36 flags 0 maxoplen 0 >>> crypto: cryptosoft0 registers alg 37 flags 0 maxoplen 0 >>> crypto: cryptosoft0 registers alg 11 flags 0 maxoplen 0 >>> crypto: cryptosoft0 registers alg 22 flags 0 maxoplen 0 >>> crypto: cryptosoft0 registers alg 23 flags 0 maxoplen 0 >>> crypto: cryptosoft0 registers alg 25 flags 0 maxoplen 0 >>> crypto: cryptosoft0 registers alg 24 flags 0 maxoplen 0 >>> crypto: cryptosoft0 registers alg 26 flags 0 maxoplen 0 >>> crypto: cryptosoft0 registers alg 27 flags 0 maxoplen 0 >>> crypto: cryptosoft0 registers alg 28 flags 0 maxoplen 0 >>> crypto: cryptosoft0 registers alg 21 flags 0 maxoplen 0 >>> crypto: cryptosoft0 registers alg 17 flags 0 maxoplen 0 >>> crypto: cryptosoft0 registers alg 29 flags 0 maxoplen 0 >>> crypto: cryptosoft0 registers alg 30 flags 0 maxoplen 0 >>> crypto: cryptosoft0 registers alg 31 flags 0 maxoplen 0 >>> random: harvesting attach, 8 bytes (4 bits) from cryptosoft0 >>> Found SMCCC version 1.0 >>> Device configuration finished. >>> procfs registered >>> Timecounters tick every 1.000 msec >>> vlan: initialized, using hash tables with chaining >>> lo0: bpf attached >>> arc4random: read 32 bytes from preloaded cache >>> arc4random: read 32 bytes from preloaded cache >>> arc4random: read 32 bytes from preloaded cache >>> tcp_init: net.inet.tcp.tcbhashsize auto tuned to 16384 >>> IPsec: Initialized Security Association Processing. >>> usbus0: 480Mbps High Speed USB v2.0 >>> usbus1: 12Mbps Full Speed USB v1.0 >>> aw_mmc0: Powering up sd/mmc >>> mmc0: Probing bus >>> ugen0.1: at usbus0 >>> uhub0: = on usbus0 >>> ugen1.1: at usbus1 >>> uhub1: on = usbus1 >>> aw_mmc0: error rint: 0x00000100 >>> AW_MMC_INT_RESP_TIMEOUT=20 >>> aw_mmc0: error rint: 0x00000100 >>> AW_MMC_INT_RESP_TIMEOUT=20 >>> aw_mmc0: error rint: 0x00000100 >>> AW_MMC_INT_RESP_TIMEOUT=20 >>> aw_mmc0: error rint: 0x00000100 >>> AW_MMC_INT_RESP_TIMEOUT=20 >>> aw_mmc0: error rint: 0x00000100 >>> AW_MMC_INT_RESP_TIMEOUT=20 >>> aw_mmc0: error rint: 0x00000100 >>> AW_MMC_INT_RESP_TIMEOUT=20 >>> aw_mmc0: error rint: 0x00000100 >>> AW_MMC_INT_RESP_TIMEOUT=20 >>> aw_mmc0: error rint: 0x00000100 >>> AW_MMC_INT_RESP_TIMEOUT=20 >>> mmc0: SD probe: failed >>> mmc0: MMC probe: OK (OCR: 0x40ff8080) >>> mmc0: Current OCR: 0x00ff8080 >>> mmc0: Probing cards >>> mmc0: New card detected (CID 150100444a4e423452079f43b2e7636f) >>> mmc0: New card detected (CSD d02701320f5903fff6dbffef8e40400d) >>> aw_mmc0: error rint: 0x00008010 >>> AW_MMC_INT_DATA_END_BIT_ERR >>> mmc0: Card at relative address 0x0002 added: >>> mmc0: card: MMCHC DJNB4R 0.7 SN MFG 06/2016 by 21 0x0000 >>> mmc0: quirks: 0 >>> mmc0: bus: 4bit, 200MHz (HS200 timing) >=20 > The above is where I got the HS200. (I had to look up the details > for this note.) >=20 >>> mmc0: memory: 244277248 blocks, erase sector 1024 blocks >>> aw_mmc0: error rint: 0x00000100 >>> AW_MMC_INT_RESP_TIMEOUT=20 >>> aw_mmc0: error rint: 0x00000100 >>> AW_MMC_INT_RESP_TIMEOUT=20 >>> aw_mmc0: error rint: 0x00000100 >>> AW_MMC_INT_RESP_TIMEOUT=20 >>> aw_mmc0: error rint: 0x00000100 >>> AW_MMC_INT_RESP_TIMEOUT=20 >>> mmc0: setting transfer rate to 52.000MHz (dual data rate timing) >>> mmc0: Failed to set VCCQ for card at relative address 2 >>=20 >> So the driver is selecting DDR52 transfer rate but, of course, >> cannot switch the IO voltage to 1.8V as on this board the IO voltage >> for the SD card is tied to 3.3V >=20 > As I understand the following is allowed for e.MMC in all/most > vintages of the standard: >=20 > High Speed DDR, Data rate dual, 3V allowed, bus widths 4,8, 0-52 MHz >=20 > So no need for 1.8 V or 1.2 V for that much. >=20 > This is not the HS200 mode that the output references. But the > reference is probably just indicate what the e.MMC itself allows > as the fastest speed, not indicating the limitations of the context > of the connection. >=20 >>> uhub1: 1 port with 1 removable, self powered >>> random: harvesting attach, 8 bytes (4 bits) from uhub1 >>> uhub0: 1 port with 1 removable, self powered >>> random: harvesting attach, 8 bytes (4 bits) from uhub0 >>> aw_mmc0: controller timeout >>> aw_mmc0: timeout updating clock >>> aw_mmc0: controller timeout >>> aw_mmc0: timeout updating clock >>> aw_mmc0: controller timeout >>> aw_mmc0: timeout updating clock >>> aw_mmc0: controller timeout >>> aw_mmc0: Spurious interrupt - no active request, rint: 0x00000000 >>>=20 >>> mmcsd0: Error reading EXT_CSD Timeout >>=20 >> This seems weird, I have a board with an eMMC IO voltage tied to 3.3V >> (Olinuxino-A64), I'll try HEAD on this board. >>=20 >>> device_attach: mmcsd0 attach returned 6 >>> Release APs...done >>> Trying to mount root from ufs:/dev/ufs/PINE64P2Grootfs = [rw,noatime]... >>> CPU 0: ARM Cortex-A53 r0p4mountroot: waiting for device = /dev/ufs/PINE64P2Grootfs... >>> affinity: 0 >>> Instruction Set Attributes 0 =3D >>> Instruction Set Attributes 1 =3D <> >>> Processor Features 0 =3D >>> Processor Features 1 =3D <0> >>> Memory Model Features 0 =3D <4k Granule,64k = Granule,MixedEndian,S/NS Mem,16bit ASID,1TB PA> >>> Memory Model Features 1 =3D <> >>> Memory Model Features 2 =3D <32b CCIDX,48b VA> >>> Debug Features 0 =3D <2 CTX Breakpoints,4 Watchpoints,6 = Breakpoints,PMUv3,Debug v8> >>> Debug Features 1 =3D <0> >>> Auxiliary Features 0 =3D <0> >>> Auxiliary Features 1 =3D <0> >>> CPU 1: ARM Cortex-A53 r0p4 affinity: 1 >>> CPU 2: ARM Cortex-A53 r0p4 affinity: 2 >>> CPU 3: ARM Cortex-A53 r0p4 affinity: 3 >>> regulator: shutting down vcc3v3 >>> Mounting from ufs:/dev/ufs/PINE64P2Grootfs failed with error 19. >>>=20 >>> Loader variables: >>> vfs.root.mountfrom=3Dufs:/dev/ufs/PINE64P2Grootfs >>> vfs.root.mountfrom.options=3Drw,noatime >>>=20 >>> Manual root filesystem specification: >>> : [options] >>> Mount using filesystem >>> and with the specified (optional) option list. >>>=20 >>> eg. ufs:/dev/da0s1a >>> zfs:tank >>> cd9660:/dev/cd0 ro >>> (which is equivalent to: mount -t cd9660 -o ro /dev/cd0 /) >>>=20 >>> ? List valid disk boot devices >>> . Yield 1 second (for background tasks) >>> Abort manual input >>>=20 >>> mountroot>=20 >>>=20 >=20 =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)