From owner-freebsd-arm@freebsd.org Fri Oct 9 12:55:35 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 0791B3F9F9B for ; Fri, 9 Oct 2020 12:55:35 +0000 (UTC) (envelope-from maciphone2@googlemail.com) Received: from mail-ed1-x541.google.com (mail-ed1-x541.google.com [IPv6:2a00:1450:4864:20::541]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 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 4C77N63wmFz4MMF; Fri, 9 Oct 2020 12:55:34 +0000 (UTC) (envelope-from maciphone2@googlemail.com) Received: by mail-ed1-x541.google.com with SMTP id x1so9237554eds.1; Fri, 09 Oct 2020 05:55:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=K+s0jwHd6pxf9sQ/v8cRhYb8ZXcidvYNBMGewhhL+H4=; b=nU4xAo86SRRi0cW0d/KLfcdpNZ/GrSwG0ohlyZI+p5BH1qhGNZRhSs6rx5QKgoVCWI iRE+KO2Rafvycg+X7jlNsn3mlu+CWNCtEe9KG/+ZIdr9dFP75cXK8VXfgqIk31wOCds9 yJIYnmv8GzeA//MnAGg/lHijYjXnX6E2EQ2zPJ70l/xLIy59zAfeBHQ5lgiEYLZEPCDb Wj41BifNqkVHiin5lUinxr4HdOa3wSU/vNLlNQkVZXU5ZXo4TFNX5A4Ij6aRE3Isb/jL jXxmHXW/hn7K1j2G1lFNh2vAmoSnDV/GJSmEAbpiTRm3e05mtttpcirwRmoZ1ruzx4jk 7bUw== X-Gm-Message-State: AOAM5312UsMV3BlX4GwlEXzD9TwWjj5BP5X4f24ozGfuu9soJOqIQF4d Nv/Kqdr9lgkiN80/vweYnpkXSIqwF+w= X-Google-Smtp-Source: ABdhPJxWzaVhVxBqgYSYX9yI3VtmPrrXqRgK46B8gYnIyZKq6kZus/YSZQMMvKr9MKEYQVfpEF+IaQ== X-Received: by 2002:a5d:468f:: with SMTP id u15mr830043wrq.154.1602247821758; Fri, 09 Oct 2020 05:50:21 -0700 (PDT) Received: from [192.168.1.167] (dynamic-046-114-106-131.46.114.pool.telefonica.de. [46.114.106.131]) by smtp.googlemail.com with ESMTPSA id w11sm12035814wrn.27.2020.10.09.05.50.20 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Oct 2020 05:50:20 -0700 (PDT) From: Klaus Cucinauomo Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.0.3.2.52\)) Subject: Re: RPi4B: emmc2bus dma-range handling does not track the boot-time-FDT (u-boot based booting) Date: Fri, 9 Oct 2020 14:50:16 +0200 References: <98BC985D-EAAB-4AFB-AA8F-7391A45C4EBF@yahoo.com> <91324D35-B66A-4674-AE37-45F3DDB736FD@yahoo.com> <2B3F0409-88F2-4EBD-9C39-37929F973C77@yahoo.com> To: Mark Millard , freebsd-arm@freebsd.org, Kyle Evans In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.3654.0.3.2.52) X-Rspamd-Queue-Id: 4C77N63wmFz4MMF X-Spamd-Bar: +++++++ X-Spamd-Result: default: False [7.25 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GREYLIST(0.00)[pass,body]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; FREEMAIL_FROM(0.00)[googlemail.com]; R_SPF_ALLOW(0.00)[+ip6:2a00:1450:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[googlemail.com:+]; DMARC_POLICY_ALLOW(0.00)[googlemail.com,quarantine]; NEURAL_HAM_SHORT(-0.27)[-0.268]; FREEMAIL_TO(0.00)[yahoo.com,freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[googlemail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[googlemail.com:dkim]; ARC_NA(0.00)[]; RECEIVED_SPAMHAUS_XBL(5.00)[46.114.106.131:received]; R_DKIM_ALLOW(0.00)[googlemail.com:s=20161025]; RECEIVED_SPAMHAUS_PBL(0.00)[46.114.106.131:received]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; SH_EMAIL_DBL_DONT_QUERY_IPS(0.00)[0.0.0.0:email]; MIME_GOOD(-0.10)[text/plain]; NEURAL_SPAM_MEDIUM(0.99)[0.995]; BAD_REP_POLICIES(0.10)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DBL_PROHIBIT(0.00)[0.0.0.0:email]; NEURAL_SPAM_LONG(1.02)[1.024]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::541:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-arm] X-Spam: Yes X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Oct 2020 12:55:35 -0000 > Am 09.10.2020 um 12:02 schrieb Mark Millard : >=20 >=20 >=20 > On 2020-Oct-8, at 23:01, Mark Millard wrote: >=20 >> On 2020-Oct-8, at 21:29, Mark Millard wrote: >>=20 >>> On 2020-Oct-8, at 20:06, Mark Millard wrote: >>>=20 >>>> On 2020-Oct-8, at 06:27, Klaus Cucinauomo wrote: >>>>=20 >>>>>> Am 08.10.2020 um 11:01 schrieb Mark Millard via freebsd-arm = : >>>>>>=20 >=20 > Having reverted back to u-boot 2020.10 without > compatibility list adjustments and with xhci-pci > in place again, trying a 4 GiByte RPi4 without a > microsd card boots as far as the rainbow square > on the monitor but hangs there, never displaying > even the: >=20 > U-Boot 2020.10 (Oct 09 2020 - 06:50:04 +0000) >=20 >=20 >=20 the following `dmesg` of the 4GB is with the copied-over whole = msdos-partition of the Original RPI-ubuntu-distribution /ubuntu DOESN`T use the latest fw-files from rpi-github(which also fail = with me to the hdmi-rainbow-screen), Copying over =E2=80=9Eour=E2=80=9C old bcm2711-rpi-4-b.dtb, booted a bit = more (until gpio or so afaik)=E2=80=A6.it`s all about DeviceTree=20 and I guess Kyle Evans & friends unfortunately will have more = adjustment-work in the brcm285..dtsi=E2=80=A6 for 2020.10 I unfortunately totally fail in my time-management but will tell more = about the 8GB - VL805-videoCore-firmware-thing when finding time..=20 I didn=E2=80=99t yet apply kevans-patches, will test them it later.. Directly from SSD(no SD-card inserted): =E2=80=94-config.txt : =E2=80=94 arm_control=3D0x200 dtparam=3Daudio=3Don,i2c_arm=3Don,spi=3Don enable_uart=3D1 uart_2ndstage=3D1 dtoverlay=3Dminiuart-bt dtoverlay=3Dmmc dtoverlay=3Dpwm device_tree_address=3D0x4000 kernel=3Du-boot.bin =E2=80=94-------------------------------------------------- recover4.elf not found (6) recovery.elf not found (6) HUB [03:01] 2.00 000003:01 init port 1 speed 3 DEV [05:03] 2.00 000013:01 class 9 VID 045b PID 0209 HUB init [05:03] 2.00 000013:01 Read start4.elf bytes 2272992 hnd 0x000002e7 hash '319662b44a4c80d5' Read fixup4.dat bytes 5405 hnd 0x000001bf hash '0c1a6c6f96114a3f' 0x00c03111 0x00000000 0x0000001f MEM GPU: 76 ARM: 947 TOTAL: 1023 Starting start4.elf @ 0xfeb00200 partition 0 U-Boot 2020.10-rc5 (Oct 05 2020 - 03:08:23 +0000) DRAM: 3.9 GiB RPI 4 Model B (0xc03111) MMC: mmc@7e300000: 1, emmc2@7e340000: 0 Loading Environment from FAT... In: serial Out: vidconsole Err: vidconsole Net: eth0: ethernet@7d580000 PCIe BRCM: link up, 5.0 Gbps x1 (SSC) starting USB... Bus xhci_pci: Register 5000420 NbrPorts 5 Starting the controller USB XHCI 1.00 scanning bus xhci_pci for devices... 8 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found Hit any key to stop autoboot: 0=20 Card did not respond to voltage select! Device 0: Vendor: JMicron Rev: 3202 Prod: Tech =20 Type: Hard Disk Capacity: 114473.4 MB =3D 111.7 GB (234441648 x 512) ... is now current device Scanning usb 0:1... Found EFI removable media binary efi/boot/bootaa64.efi libfdt fdt_check_header(): FDT_ERR_BADMAGIC Scanning disk mmc@7e300000.blk... Disk mmc@7e300000.blk not ready Card did not respond to voltage select! Scanning disk emmc2@7e340000.blk... Disk emmc2@7e340000.blk not ready Scanning disk usb_mass_storage.lun0... ** Unrecognized filesystem type ** Found 3 disks No EFI system partition BootOrder not defined EFI boot manager: Cannot load any image 688192 bytes read in 6 ms (109.4 MiB/s) libfdt fdt_check_header(): FDT_ERR_BADMAGIC Booting /efi\boot\bootaa64.efi Consoles: EFI console =20 Reading loader env vars from /efi/freebsd/loader.env Setting currdev to disk0p1: FreeBSD/arm64 EFI loader, Revision 1.1 (Thu Jun 11 07:40:35 UTC 2020 root@releng1.nyi.freebsd.org) Command line arguments: loader.efi Image base: 0x39d83000 EFI version: 2.80 EFI Firmware: Das U-Boot (rev 8224.4096) Console: comconsole (0) Load Path: /efi\boot\bootaa64.efi Load Device: = /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/UsbClass(0x0,0x0,0x9,0x0,0x3)= /UsbClass(0x152d,0x578,0x0,0x0,0x0)/HD(1,0x01,0,0x81f,0x18fa8) Trying ESP: = /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/UsbClass(0x0,0x0,0x9,0x0,0x3)= /UsbClass(0x152d,0x578,0x0,0x0,0x0)/HD(1,0x01,0,0x81f,0x18fa8) Setting currdev to disk0p1: Trying: = /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/UsbClass(0x0,0x0,0x9,0x0,0x3)= /UsbClass(0x152d,0x578,0x0,0x0,0x0)/HD(2,0x01,0,0x197c7,0x76da839) Setting currdev to disk0p2: Loading /boot/defaults/loader.conf Loading /boot/defaults/loader.conf Loading /boot/device.hints Loading /boot/loader.conf Loading /boot/loader.conf.local Loading kernel... /boot/kernel/kernel text=3D0x2a8 text=3D0x7a7060 text=3D0x1b0d9c = data=3D0x194600 data=3D0x0+0x302da6 syms=3D[0x8+0x178ba8+0x8+0x156776] Loading configured modules... /boot/kernel/umodem.ko text=3D0x1be0 text=3D0xfb0 data=3D0x618+0x8 = syms=3D[0x8+0xe40+0x8+0xa8c] /etc/hostid size=3D0x25 /boot/entropy size=3D0x1000 Hit [Enter] to boot immediately, or any other key for command prompt. Type '?' for a list of commands, 'help' for more detailed help. OK boot Using DTB provided by EFI at 0x7ef1000. EFI framebuffer information: addr, size 0x3e3dc000, 0x6d8c00 dimensions 1824 x 984 stride 1824 masks 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000 ---<>--- KDB: debugger backends: ddb KDB: current backend: ddb Copyright (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 #39 a1d832e8c08-c271678(master): Fri Jul 17 = 04:56:52 UTC 2020 root@generic:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC-NODEBUG = arm64 FreeBSD clang version 11.0.0 (git@github.com:llvm/llvm-project.git = llvmorg-11.0.0-rc2-0-g414f32a9e86) VT(efifb): resolution 1824x984 module firmware already present! KLD file umodem.ko is missing dependencies real memory =3D 4146876416 (3954 MB) avail memory =3D 4023062528 (3836 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 39e34000 mode 2 pages 1 MAP 39e38000 mode 2 pages 3 MAP 39e3c000 mode 2 pages 4 MAP 3b250000 mode 2 pages 16 MAP fe100000 mode 0 pages 1 WARNING: Device "kbd" is Giant locked and may be deleted before FreeBSD = 13.0. kbd0 at kbdmux0 WARNING: Device "openfirm" is Giant locked and may be deleted before = FreeBSD 13.0. ofwbus0: simplebus0: on ofwbus0 ofw_clkbus0: on ofwbus0 clk_fixed0: on ofw_clkbus0 clk_fixed1: on ofw_clkbus0 clk_fixed2: on ofwbus0 simplebus1: on ofwbus0 regfix0: on ofwbus0 regfix1: on ofwbus0 simplebus2: on ofwbus0 simplebus3: on ofwbus0 regfix2: on ofwbus0 simple_mfd0: mem = 0x7d5d2000-0x7d5d2eff on simplebus0 psci0: on ofwbus0 gic0: mem = 0x40041000-0x40041fff,0x40042000-0x40043fff,0x40044000-0x40045fff,0x400460= 00-0x40047fff irq 31 on simplebus0 gic0: pn 0x2, arch 0x2, rev 0x1, implementer 0x43b irqs 256 gpio0: mem 0x7e200000-0x7e2000b3 irq = 15,16 on simplebus0 gpiobus0: on gpio0 mbox0: mem 0x7e00b880-0x7e00b8bf irq 14 on = simplebus0 bcm2835_firmware0: on simplebus0 gpio1: on bcm2835_firmware0 gpiobus1: on gpio1 gpioregulator0: on ofwbus0 generic_timer0: irq 4,5,6,7 on ofwbus0 Timecounter "ARM MPCore Timecounter" frequency 54000000 Hz quality 1000 Event timer "ARM MPCore Eventtimer" frequency 54000000 Hz quality 1000 usb_nop_xceiv0: on ofwbus0 gpioc0: on gpio0 uart0: mem 0x7e201000-0x7e2011ff irq 17 on = simplebus0 uart0: console (115200,n,8,1) spi0: mem 0x7e204000-0x7e2041ff irq 19 on = simplebus0 spibus0: on spi0 spibus0: at cs 0 mode 0 spibus0: at cs 1 mode 0 uart1: mem 0x7e215040-0x7e21507f irq 22 on = simplebus0 iichb0: mem 0x7e804000-0x7e804fff irq 27 = on simplebus0 bcm_dma0: mem 0x7e007000-0x7e007aff irq = 32,33,34,35,36,37,38,39,40,41,42 on simplebus0 bcmwd0: mem = 0x7e100000-0x7e100113,0x7e00a000-0x7e00a023,0x7ec11000-0x7ec1101f on = simplebus0 gpioc1: on gpio1 sdhci_bcm0: mem 0x7e300000-0x7e3000ff = irq 63 on simplebus0 mmc0: on sdhci_bcm0 fb0: on simplebus0 fb0: keeping existing fb bpp of 32 fbd0 on fb0 WARNING: Device "fb" is Giant locked and may be deleted before FreeBSD = 13.0. VT: Replacing driver "efifb" with new "fb". fb0: 1824x984(1824x984@0,0) 32bpp fb0: fbswap: 1, pitch 7296, base 0x3e3dc000, screen_size 7237632 pmu0: irq 0,1,2,3 on ofwbus0 cpulist0: on ofwbus0 cpu0: on cpulist0 bcm2835_cpufreq0: on cpu0 cpu1: on cpulist0 cpu2: on cpulist0 cpu3: on cpulist0 pcib0: mem = 0x7d500000-0x7d50930f irq 69,70 on simplebus1 pcib0: hardware identifies as revision 0x304. pci0: on pcib0 pcib1: irq 81 at device 0.0 on pci0 pci1: on pcib1 bcm_xhci0: irq 82 at = device 0.0 on pci1 bcm_xhci0: 32 bytes context size, 64-bit DMA usbus0 on bcm_xhci0 genet0: mem 0x7d580000-0x7d58ffff irq 71,72 on = simplebus1 genet0: GENET version 5.0 phy 0x0000 miibus0: on genet0 brgphy0: PHY 1 on miibus0 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, = 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto genet0: Ethernet address: dc:a6:32:21:e9:57 gpioled0: on ofwbus0 sdhci_bcm1: mem 0x7e340000-0x7e3400ff = irq 80 on simplebus3 mmc1: on sdhci_bcm1 =E2=80=94- hanging here=E2=80=94 just GUESSING ;-) (absolutely NO proof:-): It comes to boot problems short before xhci will be initialized from the = DeviceTree