Re: FreeBSD-13.0-CURRENT-arm64-aarch64-ROCKPRO64-20201210-7578a4862f0 broken ?
Søren Schmidt <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.arm |
|---|---|
| Message-ID | <[email protected]> |
Hi gang On my quest on getting the pinebookpro booting again I think I can rule out u-boot for now. Back on the u-boot-2020.07 where a -current kernel from late July/early august would boot just fine a current kernel fails to talk to the SD card, the only change to an up to date current is not setting the 800Hmz cpll clock and that is known not to make any difference. Again the same SDcard works just dandy with net/openBSD also I 50Mhz mode. 1 in 10 boots finds the card as 25Mhz and then it “just works”. Any Ideas ? U-Boot TPL 2020.07 (Aug 09 2020 - 14:11:44) Channel 0: LPDDR4, 50MHz BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB Channel 1: LPDDR4, 50MHz BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB 256B stride 256B stride lpddr4_set_rate: change freq to 400000000 mhz 0, 1 lpddr4_set_rate: change freq to 800000000 mhz 1, 0 Trying to boot from BOOTROM Returning to boot ROM... U-Boot SPL 2020.07 (Aug 09 2020 - 14:11:44 +0200) Trying to boot from MMC1 U-Boot 2020.07 (Aug 09 2020 - 14:11:44 +0200) SoC: Rockchip rk3399 Reset cause: POR Model: Pine64 Pinebook Pro DRAM: 3.9 GiB PMIC: RK808 MMC: mmc@fe310000: 2, mmc@fe320000: 1, sdhci@fe330000: 0 Loading Environment from SPI Flash... SF: Detected gd25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB OK In: serial Out: vidconsole Err: vidconsole Model: Pine64 Pinebook Pro Net: No ethernet found. Card did not respond to voltage select! Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc1 is current device Scanning mmc 1:1... 80449 bytes read in 16 ms (4.8 MiB/s) Found EFI removable media binary efi/boot/bootaa64.efi Card did not respond to voltage select! Scanning disk [email protected]... Disk [email protected] not ready Scanning disk [email protected]... ** Unrecognized filesystem type ** Card did not respond to voltage select! Scanning disk [email protected]... Disk [email protected] not ready Found 3 disks BootOrder not defined EFI boot manager: Cannot load any image 1091484 bytes read in 123 ms (8.5 MiB/s) Consoles: EFI console Reading loader env vars from /efi/freebsd/loader.env Setting currdev to disk0p1: FreeBSD/arm64 EFI loader, Revision 1.1 (Thu Dec 31 13:17:08 CET 2020 [email protected]) Command line arguments: loader.efi Image base: 0xf3dfe000 EFI version: 2.80 EFI Firmware: Das U-Boot (rev 8224.1792) Console: comconsole (0) Load Path: /efi\boot\bootaa64.efi Load Device: /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/SD(1)/SD(0)/HD(1,GPT,319e202c-4b62-11eb-bf03-0800274503a7,0x8000,0x10000) Trying ESP: /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/SD(1)/SD(0)/HD(1,GPT,319e202c-4b62-11eb-bf03-0800274503a7,0x8000,0x10000) Setting currdev to disk0p1: Trying: /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/SD(1)/SD(0)/HD(2,GPT,319e202c-4b62-11eb-bf03-0800274503a7,0x18000,0x1e7fd8) Setting currdev to disk0p2: Loading /boot/defaults/loader.conf Loading Kernel and Modules (Ctrl-C to Abort) .................................................. /boot/kernel/kernel text=0x2a8 text=0x512fd8 text=0x1467b4 data=0x138930 data=0x0+0x52e000 syms=[0x8+0xb3730+0x8+0xbdce7] | Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel]... Using DTB provided by EFI at 0x80e9000. EFI framebuffer information: addr, size 0xf7800000, 0x3f4800 dimensions 1920 x 1080 stride 1920 masks 0x0000f800, 0x000007e0, 0x0000001f, 0x00000000 ---<<BOOT>>--- 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 #6 main-c255441-g4e4e43dc9e1a-dirty: Thu Dec 31 13:16:59 CET 2020 [email protected]:/usr/home/sos/FreeBSD/embedded/aarch64-obj/usr/home/sos/FreeBSD/git-current/arm64.aarch64/sys/PINEBOOKPRO arm64 FreeBSD clang version 11.0.0 ([email protected]:llvm/llvm-project.git llvmorg-11.0.0-0-g176249bd673) VT(efifb): resolution 1920x1080 real memory = 4158349312 (3965 MB) avail memory = 4033499136 (3846 MB) Starting CPU 1 (1) Starting CPU 2 (2) Starting CPU 3 (3) FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs arc4random: WARNING: initial seeding bypassed the cryptographic random device because it was not yet seeded and the knob 'bypass_before_seeding' was enabled. random: entropy device external interface MAP f3f0f000 mode 2 pages 1 MAP f3f12000 mode 2 pages 2 MAP f6f30000 mode 2 pages 16 WARNING: Device "openfirm" is Giant locked and may be deleted before FreeBSD 13.0. WARNING: Device "kbd" is Giant locked and may be deleted before FreeBSD 13.0. kbd0 at kbdmux0 ofwbus0: <Open Firmware Device Tree> clk_fixed0: <Fixed clock> on ofwbus0 simplebus0: <Flattened device tree simple bus> on ofwbus0 rk_grf0: <RockChip General Register Files> mem 0xff320000-0xff320fff on ofwbus0 rk3399_pmucru0: <Rockchip RK3399 PMU Clock and Reset Unit> mem 0xff750000-0xff750fff on ofwbus0 rk3399_cru0: <Rockchip RK3399 Clock and Reset Unit> mem 0xff760000-0xff760fff on ofwbus0 Cannot set frequency for clk: cpll, error: 22 rk3399_cru0: Failed to set cpll to a frequency of 800000000 rk_grf1: <RockChip General Register Files> mem 0xff770000-0xff77ffff on ofwbus0 regfix0: <Fixed Regulator> on ofwbus0 regfix1: <Fixed Regulator> on ofwbus0 regfix2: <Fixed Regulator> on ofwbus0 regfix3: <Fixed Regulator> on ofwbus0 regfix4: <Fixed Regulator> on ofwbus0 regfix5: <Fixed Regulator> on ofwbus0 regfix6: <Fixed Regulator> on ofwbus0 regfix7: <Fixed Regulator> on ofwbus0 regfix8: <Fixed Regulator> on ofwbus0 regfix9: <Fixed Regulator> on ofwbus0 regfix10: <Fixed Regulator> on ofwbus0 regfix11: <Fixed Regulator> on ofwbus0 simple_mfd0: <Simple MFD (Multi-Functions Device)> mem 0xff310000-0xff310fff on ofwbus0 psci0: <ARM Power State Co-ordination Interface Driver> on ofwbus0 gic0: <ARM Generic Interrupt Controller v3.0> mem 0xfee00000-0xfee0ffff,0xfef00000-0xfefbffff,0xfff00000-0xfff0ffff,0xfff10000-0xfff1ffff,0xfff20000-0xfff2ffff irq 18 on ofwbus0 its0: <ARM GIC Interrupt Translation Service> mem 0xfee20000-0xfee3ffff on gic0 rk_iodomain0: <RockChip IO Voltage Domain> mem 0xff320000-0xff320fff on rk_grf0 rk_iodomain1: <RockChip IO Voltage Domain> mem 0-0xff76ffff,0-0xffff on rk_grf1 rk_pinctrl0: <RockChip Pinctrl controller> on ofwbus0 gpio0: <RockChip GPIO Bank controller> mem 0xff720000-0xff7200ff irq 71 on rk_pinctrl0 gpiobus0: <OFW GPIO bus> on gpio0 gpio1: <RockChip GPIO Bank controller> mem 0xff730000-0xff7300ff irq 72 on rk_pinctrl0 gpiobus1: <OFW GPIO bus> on gpio1 gpio2: <RockChip GPIO Bank controller> mem 0xff780000-0xff7800ff irq 73 on rk_pinctrl0 gpiobus2: <OFW GPIO bus> on gpio2 gpio3: <RockChip GPIO Bank controller> mem 0xff788000-0xff7880ff irq 74 on rk_pinctrl0 gpiobus3: <OFW GPIO bus> on gpio3 gpio4: <RockChip GPIO Bank controller> mem 0xff790000-0xff7900ff irq 75 on rk_pinctrl0 gpiobus4: <OFW GPIO bus> on gpio4 rk_i2c0: <RockChip I2C> mem 0xff110000-0xff110fff irq 20 on ofwbus0 iicbus0: <OFW I2C bus> on rk_i2c0 rk_i2c1: <RockChip I2C> mem 0xff130000-0xff130fff irq 22 on ofwbus0 iicbus1: <OFW I2C bus> on rk_i2c1 rk_i2c2: <RockChip I2C> mem 0xff3c0000-0xff3c0fff irq 38 on ofwbus0 iicbus2: <OFW I2C bus> on rk_i2c2 syr8270: <Silergy SYR827 regulator> at addr 0x80 on iicbus2 rk_i2c3: <RockChip I2C> mem 0xff3d0000-0xff3d0fff irq 39 on ofwbus0 iicbus3: <OFW I2C bus> on rk_i2c3 rk805_pmu0: <RockChip RK805 PMIC> at addr 0x36 irq 76 on iicbus2 generic_timer0: <ARMv8 Generic Timer> irq 2,3,4,5 on ofwbus0 Timecounter "ARM MPCore Timecounter" frequency 24000000 Hz quality 1000 Event timer "ARM MPCore Eventtimer" frequency 24000000 Hz quality 1000 rk_tsadc0: <RockChip temperature sensors> mem 0xff260000-0xff2600ff irq 35 on ofwbus0 rk_usb2phy0: <Rockchip RK3399 USB2PHY> mem 0-0xff76ffff,0-0xffff on rk_grf1 rk_usb2phy1: <Rockchip RK3399 USB2PHY> mem 0-0xff76ffff,0-0xffff on rk_grf1 rk_emmcphy0: <Rockchip RK3399 eMMC PHY> mem 0-0xff76ffff,0-0xffff on rk_grf1 rk_pcie_phy0: <Rockchip RK3399 PCIe PHY> mem 0-0xff76ffff,0-0xffff on rk_grf1 rk_typec_phy0: <Rockchip RK3399 PHY TYPEC> mem 0xff7c0000-0xff7fffff on ofwbus0 rk_typec_phy1: <Rockchip RK3399 PHY TYPEC> mem 0xff800000-0xff83ffff on ofwbus0 cpulist0: <Open Firmware CPU Group> on ofwbus0 cpu0: <Open Firmware CPU> on cpulist0 cpufreq_dt0: <Generic cpufreq driver> on cpu0 cpu1: <Open Firmware CPU> on cpulist0 cpufreq_dt1: <Generic cpufreq driver> on cpu1 cpu2: <Open Firmware CPU> on cpulist0 cpufreq_dt2: <Generic cpufreq driver> on cpu2 cpu3: <Open Firmware CPU> on cpulist0 cpufreq_dt3: <Generic cpufreq driver> on cpu3 cpu4: <Open Firmware CPU> on cpulist0 cpufreq_dt4: <Generic cpufreq driver> on cpu4 cpufreq_dt4: Not attaching as cpu is not present device_attach: cpufreq_dt4 attach returned 6 cpu5: <Open Firmware CPU> on cpulist0 cpufreq_dt5: <Generic cpufreq driver> on cpu5 cpufreq_dt5: Not attaching as cpu is not present device_attach: cpufreq_dt5 attach returned 6 pmu0: <Performance Monitoring Unit> irq 0 on ofwbus0 pmu1: <Performance Monitoring Unit> irq 1 on ofwbus0 pcib0: <Rockchip PCIe controller> mem 0xf8000000-0xf9ffffff,0xfd000000-0xfdffffff irq 6,7,8 on ofwbus0 pci0: <PCI bus> on pcib0 pcib1: <PCI-PCI bridge> at device 0.0 on pci0 pcib0: failed to reserve resource for pcib1 pcib1: failed to allocate initial memory window: 0-0xfffff pci1: <PCI bus> on pcib1 nvme0: <Generic NVMe Device> at device 0.0 on pci1 rockchip_dwmmc0: <Synopsys DesignWare Mobile Storage Host Controller (RockChip)> mem 0xfe310000-0xfe313fff irq 10 on ofwbus0 rockchip_dwmmc0: Hardware version ID is 270a rockchip_dwmmc1: <Synopsys DesignWare Mobile Storage Host Controller (RockChip)> mem 0xfe320000-0xfe323fff irq 11 on ofwbus0 rockchip_dwmmc1: Hardware version ID is 270a mmc0: <MMC/SD bus> on rockchip_dwmmc1 sdhci_fdt0: <Rockchip RK3399 fdt SDHCI controller> mem 0xfe330000-0xfe33ffff irq 12 on ofwbus0 rk_emmcphy0: got emmcclk clock sdhci_fdt0-slot0: Hardware doesn't specify timeout clock frequency, setting BROKEN_TIMEOUT quirk. sdhci_fdt0: 1 slot(s) allocated mmc1: <MMC/SD bus> on sdhci_fdt0 ehci0: <Generic EHCI Controller> mem 0xfe380000-0xfe39ffff irq 13 on ofwbus0 usbus0: EHCI version 1.0 usbus0 on ehci0 ohci0: <Generic OHCI Controller> mem 0xfe3a0000-0xfe3bffff irq 14 on ofwbus0 usbus1 on ohci0 ehci1: <Generic EHCI Controller> mem 0xfe3c0000-0xfe3dffff irq 15 on ofwbus0 usbus2: EHCI version 1.0 usbus2 on ehci1 ohci1: <Generic OHCI Controller> mem 0xfe3e0000-0xfe3fffff irq 16 on ofwbus0 usbus3 on ohci1 rk_dwc30: <Rockchip RK3399 DWC3> on ofwbus0 xhci0: <Synopsys Designware DWC3> mem 0xfe800000-0xfe8fffff irq 83 on rk_dwc30 xhci0: 64 bytes context size, 32-bit DMA usbus4: trying to attach usbus4 on xhci0 rk_dwc31: <Rockchip RK3399 DWC3> on ofwbus0 xhci1: <Synopsys Designware DWC3> mem 0xfe900000-0xfe9fffff irq 84 on rk_dwc31 xhci1: 64 bytes context size, 32-bit DMA usbus5: trying to attach usbus5 on xhci1 iicbus0: <unknown card> at addr 0x22 iic0: <I2C generic I/O> on iicbus0 iic1: <I2C generic I/O> on iicbus1 uart0: <16750 or compatible> mem 0xff180000-0xff1800ff irq 26 on ofwbus0 uart1: <16750 or compatible> mem 0xff1a0000-0xff1a00ff irq 28 on ofwbus0 uart1: console (1500000,n,8,1) spi0: <Rockchip SPI> mem 0xff1d0000-0xff1d0fff irq 31 on ofwbus0 spibus0: <OFW SPI bus> on spi0 mx25l0: <M25Pxx Flash Family> at cs 0 mode 0 on spibus0 mx25l0: device type gd25q128, size 16384K in 256 sectors of 64K, erase size 4K iicbus2: <unknown card> at addr 0x82 iic2: <I2C generic I/O> on iicbus2 iicbus3: <unknown card> at addr 0x44 iic3: <I2C generic I/O> on iicbus3 pwm0: <Rockchip PWM> mem 0xff420000-0xff42000f on ofwbus0 pwmbus0: <OFW PWM bus> on pwm0 pwmc0: <PWM Control> channel 0 on pwmbus0 pwm1: <Rockchip PWM> mem 0xff420020-0xff42002f on ofwbus0 pwmbus1: <OFW PWM bus> on pwm1 pwmc1: <PWM Control> channel 0 on pwmbus1 gpioc0: <GPIO controller> on gpio0 gpioc1: <GPIO controller> on gpio1 gpioc2: <GPIO controller> on gpio2 gpioc3: <GPIO controller> on gpio3 gpioc4: <GPIO controller> on gpio4 gpioled0: <GPIO LEDs> on ofwbus0 cryptosoft0: <software crypto> Timecounters tick every 1.000 msec usbus0: 480Mbps High Speed USB v2.0 usbus1: 12Mbps Full Speed USB v1.0 ugen1.1: <Generic OHCI root HUB> at usbus1 ugen0.1: <Generic EHCI root HUB> at usbus0 uhub0 on usbus0 uhub0: <Generic EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0 uhub1 on usbus1 uhub1: <Generic OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1 usbus2: 480Mbps High Speed USB v2.0 usbus3: 12Mbps Full Speed USB v1.0 ugen2.1: <Generic EHCI root HUB> at usbus2 uhub2 on usbus2 uhub2: <Generic EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus2 ugen3.1: <Generic OHCI root HUB> at usbus3 uhub3 on usbus3 uhub3: <Generic OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3 usbus4: 5.0Gbps Super Speed USB v3.0 usbus5: 5.0Gbps Super Speed USB v3.0 uhub1: 1 port with 1 removable, self powered ugen4.1: <Synopsys XHCI root HUB> at usbus4 uhub4 on usbus4 uhub4: <Synopsys XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus4 ugen5.1: <Synopsys XHCI root HUB> at usbus5 uhub5 on usbus5 uhub5: <Synopsys XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus5 uhub3: 1 port with 1 removable, self powered nvd0: <INTEL SSDPEKNW512G8> NVMe namespace nvd0: 488386MB (1000215216 512 byte sectors) mmcsd0: 16GB <SDHC SD16G 3.0 SN 01E28E67 MFG 07/2017 by 39 PH> at mmc0 50.0MHz/4bit/2048-block mmc1: No compatible cards found on bus Release APs...done 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> Trying to mount root from ufs:/dev/mmcsd0p2 [rw,noatime]... Instruction Set Attributes 0 = <CRC32,SHA2,SHA1,AES+PMULL> Instruction Set Attributes 1 = <> Processor Features 0 = <GIC,AdvSIMD,FP,EL3 32,EL2 32,EL1 32,EL0 32> Processor Features 1 = <> Memory Model Features 0 = <TGran4,TGran64,SNSMem,BigEnd,16bit ASID,1TB PA> 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-A53 r0p4 affinity: 1 CPU 2: ARM Cortex-A53 r0p4 affinity: 2 CPU 3: ARM Cortex-A53 r0p4 affinity: 3 Unresolved linked clock found: clkin_gmac uhub4: 2 ports with 2 removable, self powered uhub0: 1 port with 1 removable, self powered mmc0: CMD7 failed, RESULT: 1 mmc0: Card at relative address 7 failed to select mmcsd0: Error indicated: 1 Timeout Fatal data abort: x0: ffffa00000cf9b00 x1: ffff000063dc9000 x2: 40 x3: ffff000040de1100 x4: ffff00005a1abaa0 x5: ffff00005a1ab7a0 x6: 0 x7: 6a0 x8: 0 x9: ffff0000006d2df0 x10: 2 x11: 0 x12: 1 x13: 2af8 x14: 43f x15: 2 x16: ffffffff x17: 3 x18: ffff00005a1ab860 x19: ffffa00000cf7c00 x20: 80 x21: ffff0000006f1000 x22: ffff0000006f1000 x23: ffff000064b43788 x24: 0 x25: ffffa00000cf5b80 x26: ffffa00000c2a3b4 x27: ffffa00000cf9e00 x28: ffffa00000cf5b80 x29: ffff00005a1ab860 sp: ffff00005a1ab860 lr: ffff0000004edfe8 elr: ffff0000004ee048 spsr: 145 far: 18 esr: 96000004 panic: vm_fault failed: ffff0000004ee048 cpuid = 3 time = 2 KDB: stack backtrace: db_trace_self() at db_trace_self_wrapper+0x30 pc = 0xffff0000004c79f0 lr = 0xffff00000002f360 sp = 0xffff00005a1ab280 fp = 0xffff00005a1ab480 db_trace_self_wrapper() at vpanic+0x194 pc = 0xffff00000002f360 lr = 0xffff0000002185a0 sp = 0xffff00005a1ab490 fp = 0xffff00005a1ab4f0 vpanic() at panic+0x44 pc = 0xffff0000002185a0 lr = 0xffff000000218408 sp = 0xffff00005a1ab500 fp = 0xffff00005a1ab5b0 panic() at data_abort+0x1d8 pc = 0xffff000000218408 lr = 0xffff0000004e89e0 sp = 0xffff00005a1ab5c0 fp = 0xffff00005a1ab630 data_abort() at do_el1h_sync+0x144 pc = 0xffff0000004e89e0 lr = 0xffff0000004e7acc sp = 0xffff00005a1ab640 fp = 0xffff00005a1ab680 do_el1h_sync() at handle_el1h_sync+0x78 pc = 0xffff0000004e7acc lr = 0xffff0000004ca078 sp = 0xffff00005a1ab690 fp = 0xffff00005a1ab7d0 handle_el1h_sync() at dwmmc_intr+0x94 pc = 0xffff0000004ca078 lr = 0xffff0000004edfe4 sp = 0xffff00005a1ab7e0 fp = 0xffff00005a1ab860 dwmmc_intr() at ithread_loop+0x418 pc = 0xffff0000004edfe4 lr = 0xffff0000001d67e8 sp = 0xffff00005a1ab870 fp = 0xffff00005a1ab8f0 ithread_loop() at fork_exit+0x90 pc = 0xffff0000001d67e8 lr = 0xffff0000001d1ecc sp = 0xffff00005a1ab900 fp = 0xffff00005a1ab950 fork_exit() at fork_trampoline+0x10 pc = 0xffff0000001d1ecc lr = 0xffff0000004e7818 sp = 0xffff00005a1ab960 fp = 0x0000000000000000 KDB: enter: panic [ thread pid 11 tid 100043 ] Stopped at dwmmc_intr+0xf8: ldr w8, [x8, #24] db> -- Søren Schmidt [email protected] <mailto:[email protected]> / [email protected] <mailto:[email protected]> "So much code to hack, so little time” _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-arm To unsubscribe, send any mail to "[email protected]"