From nobody Sun May 04 01:03:38 2025 X-Original-To: freebsd-riscv@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 4Zqmd83RSMz5tyB2 for ; Sun, 04 May 2025 01:03:56 +0000 (UTC) (envelope-from pusateri@keehole.org) Received: from kem.keehole.org (kem.keehole.org [136.41.224.255]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Zqmd81TRCz3y1h for ; Sun, 04 May 2025 01:03:56 +0000 (UTC) (envelope-from pusateri@keehole.org) Authentication-Results: mx1.freebsd.org; none Received: from smtpclient.apple (syn-107-013-239-254.res.spectrum.com [107.13.239.254]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by kem.keehole.org (Postfix) with ESMTPSA id 0454D13A9; Sat, 03 May 2025 21:03:48 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=keehole.org; s=202408; t=1746320629; bh=cnWFggRCEQYH0NDsXD0VQsWrAvb+wZVzwq0elxwj77w=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=DTDb21OxMWqSZIw31T7UkBJSnKWFIxAISadQsio5+WjSyXup0O5ivFwlz3Liw9bBw vIShNb3oE2ulhSrT0TLe+/KpjDHH0ccBj0haeepcpnAwS/JyA0tLgxSgidIITVX7e0 k9CnC6tWxHNc2P3i75m8dlrrDwR70wGIKt8BOLrKfH7Stpg76gV31+r8zoX02kr1h9 SV0XwntPx/C6LmDkKrFjD5/Lv1jJAPRHShajfs1Z2oo/XcD4ZTFXbdBJu4l/I/Zr+p l0fZQlfxB8c0sHCfrm5JlXUOyJVR4QBLW//x2wMXFfqCqFORojzujKwIgRRA6m18RY SQN4GnIPa/fIg== Content-Type: text/plain; charset=utf-8 List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-riscv@freebsd.org Sender: owner-freebsd-riscv@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51.11.2\)) Subject: Re: Orange Pi RV2 boot with some success From: Tom Pusateri In-Reply-To: <3bb24f21-8f2c-40c2-944c-b8c7eea285ff@smallcatbrain.com> Date: Sat, 3 May 2025 21:03:38 -0400 Cc: freebsd-riscv@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <8B847D37-7FB7-4615-98F3-91C3209C4197@keehole.org> References: <3bb24f21-8f2c-40c2-944c-b8c7eea285ff@smallcatbrain.com> To: Rich Dunkle X-Mailer: Apple Mail (2.3776.700.51.11.2) X-Rspamd-Queue-Id: 4Zqmd81TRCz3y1h X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16591, ipnet:136.32.0.0/11, country:US] X-Spamd-Bar: ---- > On May 3, 2025, at 2:04=E2=80=AFAM, Rich Dunkle = wrote: >=20 > It looks like the sd card device was recognized during boot. > I think you can actually boot FreeBSD 15 using this sd card image. = Burn this image and boot using a sd card. > Then it becomes a matter of getting the nic working. >=20 > = https://download.freebsd.org/ftp/snapshots/riscv/riscv64/ISO-IMAGES/15.0/F= reeBSD-15.0-CURRENT-riscv-riscv64-GENERICSD-20250501-f676c13d4226-276914.i= mg.xz >=20 >=20 Ok, tried the 15.0 snapshot image. Didn=E2=80=99t make it quite as far = as with the 14.2 image. It wedged after: =E2=80=9Cusb_needs_explore_all: no devclass=E2=80=9D Here=E2=80=99s the log from booting with the tf card. I also tried the = USB memory stick with the same result. U-Boot SPL 2022.10ky (Jan 07 2025 - 13:44:01 +0800) [ 0.345] DDR type LPDDR4X [ 0.357] lpddr4_silicon_init consume 12ms [ 0.358] Change DDR data rate to 2400MT/s [ 0.574] Boot from fit configuration x1_orangepi-rv2 [ 0.576] ## Checking hash(es) for config conf_14 ... OK [ 0.582] ## Checking hash(es) for Image opensbi ... OK [ 0.587] ## Checking hash(es) for Image uboot ... OK [ 0.592] ## Checking hash(es) for Image fdt_14 ... OK [ 0.637]=20 U-Boot 2022.10ky (Jan 07 2025 - 13:44:01 +0800) [ 0.640] CPU: rv64imafdcv [ 0.643] Model: ky x1 orangepi-rv2 board [ 0.647] DRAM: DDR size =3D 8192 MB [ 0.650] DDR size =3D 8192 MB [ 0.653] DDR size =3D 8192 MB [ 0.655] 8 GiB [ 0.730] reset driver probe start=20 [ 0.732] reset driver probe finish=20 [ 0.740] DCDC_REG1@dcdc1: enabling [ 0.742] DCDC_REG3@dcdc3: enabling [ 0.748] LDO_REG1@ldo1: enabling [ 0.752] SWITCH_REG1@switch1: enabling [ 0.752] SWITCH_REG2@pwr-event: enabling [ 0.756] SWITCH_REG3@pwr-int: enabling [ 0.760] SWITCH_REG4@rtc-ctrl: enabling [ 0.763] SWITCH_REG5@rtc-event: enabling [ 0.767] SWITCH_REG6@rtc-irq: enabling [ 0.771] SWITCH_REG7@power-down: enabling [ 0.775] SWITCH_REG8@reboot-flag: enabling [ 0.780] vcc3v3-pcie-regulator@vcc3v3_pcie: set 3300000 uV; enabling [ 0.785] DDR size =3D 8192 MB [ 0.791] Core: 416 devices, 30 uclasses, devicetree: board [ 0.804] WDT: Started PMIC_WDT with servicing (60s timeout) [ 0.809] WDT: Started watchdog@D4080000 with servicing (60s timeout) [ 0.817] MMC: sdh@d4280000: probe done. [ 0.824] sdh@d4281000: probe done. [ 0.824] sdh@d4280000: 0, sdh@d4281000: 2 [ 0.828] Loading Environment from SPIFlash... x1_qspi spi@d420c000: = qspi iobase:0x0x00000000d420c000, ahb_addr:0x0x00000000b8000000, = max_hz:26500000Hz [ 0.843] x1_qspi spi@d420c000: rx buf size:128, tx buf size:256, ahb = buf size=3D512 [ 0.851] x1_qspi spi@d420c000: AHB read enabled [ 0.855] x1_qspi spi@d420c000: bus clock: 26500000Hz, PMUap = reg[0xd4282860]:0x0000075b [ 0.863] x1_qspi spi@d420c000: AHB buf size: 512 [ 0.868] SF: Detected XM25QH128A with page size 256 Bytes, erase size = 64 KiB, total 16 MiB OK [ 0.890] Now init Rterm... [ 0.890] pcie prot id =3D 1, porta_init_done =3D 0 [ 0.894] Now waiting portA resister tuning done... [ 0.899] porta redonly_reg2: 00006d37 [ 0.902] pcie_rcal =3D 0x00006d37 [ 0.905] pcie port id =3D 1, lane num =3D 2 [ 0.909] Now int init_puphy... [ 0.912] waiting pll lock... [ 0.915] Now finish init_puphy.... [ 0.918] pcie_dw_x1 pcie@ca400000: Unable to get phy0 [ 0.923] pcie_dw_x1 pcie@ca400000: Unable to get phy1 [ 2.029] PCIE-0: Link down [ 2.034] sdh@d4281000: 74 clk wait timeout(100) [ 2.052] Card did not respond to voltage select! : -110 [ 2.054] mmc_init: -95, time 21 [ 2.074] Card did not respond to voltage select! : -110 [ 2.076] mmc_init: -95, time 19 [ 2.108] Found device 'hdmi@c0400500', disp_uc_priv=3D000000007deb4a70 [ 2.118] hdmi_phy_wait_for_hpd() hdmi get hpd signal=20 [ 2.120] fb=3D7f700000, size=3D1920x1080 [ 2.133] initialize_console_log_buffer [ 2.134] Have allocated memory for console log buffer [ 2.139] In: serial [ 2.141] Out: serial [ 2.143] Err: serial [ 2.147] Default to 100kHz [ 2.162] EEPROM: TlvInfo v1 len=3D38 [ 2.162] valid ethaddr: c0:74:2b:fc:fd:5a [ 2.166] Cannot find TLV data: part# [ 2.170] Cannot find TLV data: serial# [ 2.173] Cannot find TLV data: manufacture_date [ 2.178] Cannot find TLV data: manufacturer [ 2.182] Cannot find TLV data: device_version [ 2.186] Cannot find TLV data: sdk_version [ 2.190] All buttons probed successfully [ 2.195] Read PMIC reg ab value f0 [ 2.198] Failed to get fastboot key config: -19 [ 2.203] sdh@d4280000: 74 clk wait timeout(100) [ 2.340] Card did not respond to voltage select! : -110 [ 2.342] mmc_init: -95, time 19 [ 2.345] can not get available blk dev [ 2.349] Net: RGMII interface [ 2.352] eth0: ethernet@cac80000 [ 2.357] Autoboot in 0 seconds [ 2.368] starting USB... [ 2.368] Bus ehci1@c0980100: ehci_x1_ci ehci1@c0980100: ehci_mv_probe = Enter ...=20 [ 2.378] mv_usb_phy usbphy1@c09c0000: x1-ci-usb-phy-probe: Enter... [ 2.383] ehci_x1_ci ehci1@c0980100: ehci-x1-ci: init hccr c0980100 and = hcor c0980140 hc_length 64 [ 2.405] USB EHCI 1.00 [ 2.405] Bus dwc3@c0a00000: No USB maximum speed specified. Using = super speed [ 2.418] mv_usb_phy usb2phy@0xc0a30000: x1-ci-usb-phy-probe: Enter... [ 2.422] x1_combphy phy@c0b10000: USB3 PHY init. [ 2.426] dwc3-generic-host dwc3@c0a00000: this is a DesignWare USB3 = DRD Core [ 2.843] Register 2000140 NbrPorts 2 Starting the controller [ 2.845] USB XHCI 1.10 [ 2.848] scanning bus ehci1@c0980100 for devices... 1 USB Device(s) = found [ 3.986] scanning bus dwc3@c0a00000 for devices... 3 USB Device(s) = found [ 5.513] scanning usb for storage devices... 0 Storage = Device(s) found [ 5.517]=20 Device 0: unknown device [ 5.693] switch to partitions #0, OK [ 5.693] mmc0 is current device [ 5.783] Scanning mmc 0:3... [ 5.896] ** Unable to read file / ** [ 5.897] Failed to load '/' [ 5.930] ** Unable to read file /dtb/ ** [ 5.930] Failed to load '/dtb/' [ 5.956] Card did not respond to voltage select! : -110 [ 5.981] mmc_init: -95, time 17 [ 6.000] ** Unable to read file ubootefi.var ** [ 6.001] Failed to load EFI variables [ 6.211] BootOrder not defined [ 6.211] EFI boot manager: Cannot load any image [ 6.241] Found EFI removable media binary efi/boot/bootriscv64.efi [ 6.337] 712220 bytes read in 63 ms (10.8 MiB/s) [ 6.343] Booting /efi\boot\bootriscv64.efi [ 6.345]=20 Consoles: EFI console =20 Reading loader env vars from /efi/freebsd/loader.env Setting currdev to disk0p3: FreeBSD/riscv EFI loader, Revision 3.0 (Thu May 1 04:05:11 UTC 2025 root@releng3.nyi.freebsd.org) Command line arguments: earlycon=3Dsbi earlyprintk quiet splash = plymouth.ignore-serial-consoles plymouth.prefer-fbcon = console=3DttyS0,115200 loglevel=3D8 clk_ignore_unused swiotlb=3D65536 = rdinit=3D/init workqueue.default_affinity_scope=3Dsystem = mtdparts=3Dd420c000.spi-0:64K@0(bootinfo),64K@64K(private),256K@128K(fsbl)= ,64K@384K(env),192K@448K(opensbi),-@640K(uboot) root=3D rootfstype=3Dext4 Image base: 0x7dccd000 EFI version: 2.90 EFI Firmware: Das U-Boot (rev 8226.4096) Console: ttyS0,115200 (0) Load Path: /efi\boot\bootriscv64.efi Load Device: = /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/SD(0)/SD(0)/HD(3,GPT,5d6e0761= -2644-11f0-81ea-0cc47ad8b808,0x4000,0x1b000) Trying ESP: = /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/SD(0)/SD(0)/HD(3,GPT,5d6e0761= -2644-11f0-81ea-0cc47ad8b808,0x4000,0x1b000) Setting currdev to disk0p3: Trying: = /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/SD(0)/SD(0)/HD(1,GPT,5d6507b3= -2644-11f0-81ea-0cc47ad8b808,0x1000,0x1000) Setting currdev to disk0p1: Trying: = /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/SD(0)/SD(0)/HD(2,GPT,5d6b0457= -2644-11f0-81ea-0cc47ad8b808,0x2000,0x2000) Setting currdev to disk0p2: Trying: = /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/SD(0)/SD(0)/HD(4,GPT,5d6fe983= -2644-11f0-81ea-0cc47ad8b808,0x1f000,0xbe0f80) Setting currdev to disk0p4: 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=3D0x616880 text=3D0x1ac410 data=3D0x129378 = data=3D0xf60+0x287430 0x8+0x133218+0x8+0x11e137\ Loading configured modules... can't find '/boot/entropy' /boot/kernel/umodem.ko text=3D0x20c0 text=3D0x1290 data=3D0x700+0x4 = 0x8+0x6900+0x8+0xf04 loading required module 'ucom' /boot/kernel/ucom.ko text=3D0x266d text=3D0x2bf2 data=3D0x988+0x858 = 0x8+0xec10+0x8+0x1893 can't find '/etc/hostid' Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel]... =20 Using DTB provided by EFI at 0x7eed000. Kernel entry at 0x75600030... Kernel args: (null) Loading splash ok EFI framebuffer information: addr, size 0x7f700000, 0x7e9000 dimensions 1920 x 1080 stride 1920 masks 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000 This then transfered to the HDMI Console (converted from photo to text, = didn't happen in 14.2) -=E2=80=B9=E2=80=B9BOOT>>- GDB: debug ports: uart GDB: current port: uart KDB: debugger backends: ddb gdb KDB: current backend: ddb Copyright (c) 1992-2025 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 15.0-CURRENT #=C2=BA main-n276914-f676c13d4226: Thu May 1 = 84:24:25 UTC 2 = root@releng3.nyt.freebsd.org:/usr/obj/usr/sre/riscv.riscv64/sys/GENERIC = / FreeBSD clang version 19.1.7 Chttps://github.com/11vm/11vm-project.git = llvmorg-19.1.7-0-gcd708029e0b2 WARNING: WITNESS option enabled, expect reduced performance. VT(efifb): resolution 1928x1080 SBI: OpenSBI v1.3 SBI Specification Version: 1.0 CPU 0 : Vendor=3DUnknown Core=3DUnknown (Hart 0) marchid=3D0x8000000058000001, mimpid=3D0=C3=971000000049772200 MMU: 0x1<5v39> ISA: 0x112d S-mode Extensions: 0 real memory =3D 8589410304 (8191 MB) avail memory =3D 8311689216 (7926 MB) FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs CPU 1 : Vendor=3DUnknown Core=3DUnknown (Hart 1) CPU 2 : Vendor=3DUnknown Core=3DUnknown (Hart 2) CPU 3 : Vendor=3DUnknown Core=3DUnknown (Hart 3) CPU 4 : Vendor=3DUnknown Core=3DUnknown (Hart 4) CPU 5 : Vendor=3DUnknoun Core=3DUnknown (Hart 5) CPU 6 : Vendor=3DUnknown Core=3DUnknown (Hart 6) CPU 7 : Vendor=3DUnknown Core=3DUnknown (Hart 7) arc4random: WARNING: initial seeding bypassed the cryptographic random = device random: entropy device external interface kbd0 at kbdmux0 ofwbus0: =E2=80=B9Open Firmuare Device Tree> ofw_clkbus0; on ofwbus0 simplebus0; =E2=80=B9Flattened device tree simple bus=E2=80=BA on = ofwbus0 regfix0: =E2=80=B9Fixed Regulator> on ofwbus0 sbi0: =E2=80=B9RISC-V Supervisor Binary Interface> intc0; =E2=80=B9RISC-V Local Interrupt Controller> on ofwbus0 sbi_ipi0: =E2=80=B9RISC-V SBI Inter-Processor Interrupts> on sbi0 plic0: =E2=80=B9RISC-V PLIC=E2=80=BA mem 0xe0000000-0xe3ffffff irg = 16,17,18,19.20,21,22.23.24.25,26,27.28,29.30,31 on simplebus0 timer0: Timecounter "RISC-V Timecounter" frequency 24000000 Hz quality 1000 Event timer "RISC-V Eventtimer" frequency 24000008 Hz quality 1000 rcons0: =E2=80=B9RISC-V console> cpulist0: on ofwbus0 cpu0: on cpulist0 uart0: <16750 or compatible> mem 0xd4017000-0xd40170ff on simplebus0 uart0: debug port (109375,n,8,1) Timecounters tick every 1.000 msec usb_needs_explore_all: no devclass And this is where it hangs on both serial console and HDMI console. Tom