Hi, Am Dienstag, Juli 14, 2020 17:48 CEST, schrieb Mark Kettenis <mark.kette...@xs4all.nl>:
> > Date: Tue, 14 Jul 2020 15:10:04 +1000 > > From: Jonathan Gray <j...@jsg.id.au> > > > > On Mon, Jul 13, 2020 at 11:26:12PM +0200, Sebastian Reitenbach wrote: > > > Hi, > > > > > > eventually got my hands on a PinebookPro, installation went fine. > > > > > > Prepard SD card for initial installation alike: > > > > > > mount /dev/${DEV}i /mnt > > > mkdir /mnt/rockchip > > > cp /usr/local/share/dtb/arm64/rockchip/rk3399-pinebook-pro.dtb > > > /mnt/rockchip > > > umount /mnt > > > > U-Boot includes a builtin dtb in this case, why use the linux one? > > > > > dd if=/usr/local/share/u-boot/pinebook-pro-rk3399/idbloader.img > > > of=/dev/${DEV}c seek=64 > > > dd if=/usr/local/share/u-boot/pinebook-pro-rk3399/u-boot.itb > > > of=/dev/${DEV}c seek=16384 > > > > > > DTB and u-boot files are from following packages: > > > dtb-5.7p0 Device Tree Blobs > > > u-boot-aarch64-2020.07 U-Boot firmware > > > > You are not using U-Boot 2020.07 in your dmesg. > > "U-Boot 2020.01-4-g908d441fef (Jan 20 2020 - 05:02:39 +0000) Manjaro ARM" > > The RK3399 SoC has the annoying property that it prefers eMMC over uSD > when booting. I believe that there is a switch inside the pinebook > pro to disable the eMMC. Alternatively you can wipe the start of the > eMMC or install the newer U-Boot on the eMMC. Thanks for these hints, and it really seemed to take the u-boot from the internal eMMC instead of the one on the uSD card. So, my first try was to disable the eMMC via the switch, but then the machine refused to start at all, had to reset as described here [1] once that solved, and it booted again, I installed u-boot-aarch64 package and I did that to the eMMC: dd if=/usr/local/share/u-boot/pinebook-pro-rk3399/idbloader.img of=/dev/sd0c seek=64 dd if=/usr/local/share/u-boot/pinebook-pro-rk3399/u-boot.itb of=/dev/sd0c seek=16384 and reboot. I kind of panicked, since the console stayed black, nothing moving, same to the display, I already thought I kind of bricked it. Also the power LED is not lit up. However, after a while, I suddenly saw the console login prompt again. I could login to the machine, reboot, and wait, nothing on the console after reboot, only after a minute or two, another fresh login prompt. However, dmesg seems to say: efi0: Das U-Boot rev 0x20200700 full dmesg below. Then, still on serial console, I entered: rcctl -f start xenodm The command returned, and serial console stopped taking input. I saw the display getting grey, with some odd vertical stripes. It seems, with CTRL-ALT F1 etc. I can switch between consoles and xenodm, however, also there, just more dark, and lighter vertical stripes. I could blindly login, and issue reboot command. Then on the console, I suddenly saw: syncing disks... done rebooting... dmesg, and Xorg.0.log below. Any hints on how to get the output of the u-boot, kernel etc. back onto the serial console? Try other, older versions of u-boot and dd that onto eMMC? Someone can recommend/knows a version better working? thanks, Sebastian [1] https://wiki.pine64.org/index.php/Pinebook_Pro#Pinebook_Pro_will_not_power_on_after_toggling_the_eMMC_enable.2Fdisable_switch OpenBSD 6.7-current (GENERIC.MP) #711: Fri Jul 10 13:46:35 MDT 2020 dera...@arm64.openbsd.org:/usr/src/sys/arch/arm64/compile/GENERIC.MP real mem = 4075687936 (3886MB) avail mem = 3875155968 (3695MB) random: good seed from bootblocks mainbus0 at root: Pine64 Pinebook Pro psci0 at mainbus0: PSCI 1.1, SMCCC 1.2 cpu0 at mainbus0 mpidr 0: ARM Cortex-A53 r0p4 cpu0: 32KB 64b/line 2-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache cpu0: 512KB 64b/line 16-way L2 cache cpu1 at mainbus0 mpidr 1: ARM Cortex-A53 r0p4 cpu1: 32KB 64b/line 2-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache cpu1: 512KB 64b/line 16-way L2 cache cpu2 at mainbus0 mpidr 2: ARM Cortex-A53 r0p4 cpu2: 32KB 64b/line 2-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache cpu2: 512KB 64b/line 16-way L2 cache cpu3 at mainbus0 mpidr 3: ARM Cortex-A53 r0p4 cpu3: 32KB 64b/line 2-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache cpu3: 512KB 64b/line 16-way L2 cache cpu4 at mainbus0 mpidr 100: ARM Cortex-A72 r0p2 cpu4: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache cpu4: 1024KB 64b/line 16-way L2 cache cpu5 at mainbus0 mpidr 101: ARM Cortex-A72 r0p2 cpu5: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache cpu5: 1024KB 64b/line 16-way L2 cache efi0 at mainbus0: UEFI 2.8 efi0: Das U-Boot rev 0x20200700 apm0 at mainbus0 agintc0 at mainbus0 sec shift 3:3 nirq 288 nredist 6 ipi: 0, 1: "interrupt-controller" agintcmsi0 at agintc0 syscon0 at mainbus0: "qos" syscon1 at mainbus0: "qos" syscon2 at mainbus0: "qos" syscon3 at mainbus0: "qos" syscon4 at mainbus0: "qos" syscon5 at mainbus0: "qos" syscon6 at mainbus0: "qos" syscon7 at mainbus0: "qos" syscon8 at mainbus0: "qos" syscon9 at mainbus0: "qos" syscon10 at mainbus0: "qos" syscon11 at mainbus0: "qos" syscon12 at mainbus0: "qos" syscon13 at mainbus0: "qos" syscon14 at mainbus0: "qos" syscon15 at mainbus0: "qos" syscon16 at mainbus0: "qos" syscon17 at mainbus0: "qos" syscon18 at mainbus0: "qos" syscon19 at mainbus0: "qos" syscon20 at mainbus0: "qos" syscon21 at mainbus0: "qos" syscon22 at mainbus0: "qos" syscon23 at mainbus0: "qos" syscon24 at mainbus0: "qos" syscon25 at mainbus0: "power-management" "power-controller" at syscon25 not configured syscon26 at mainbus0: "syscon" "io-domains" at syscon26 not configured rkclock0 at mainbus0 rkclock1 at mainbus0 syscon27 at mainbus0: "syscon" "io-domains" at syscon27 not configured "usb2-phy" at syscon27 not configured "usb2-phy" at syscon27 not configured rkemmcphy0 at syscon27 "pcie-phy" at syscon27 not configured rkpinctrl0 at mainbus0: "pinctrl" rkgpio0 at rkpinctrl0 rkgpio1 at rkpinctrl0 rkgpio2 at rkpinctrl0 rkgpio3 at rkpinctrl0 rkgpio4 at rkpinctrl0 pwmreg0 at mainbus0 syscon28 at mainbus0: "syscon" syscon29 at mainbus0: "syscon" "fit-images" at mainbus0 not configured rkdrm0 at mainbus0 drm0 at rkdrm0 "pmu_a53" at mainbus0 not configured "pmu_a72" at mainbus0 not configured agtimer0 at mainbus0: tick rate 24000 KHz "xin24m" at mainbus0 not configured simplebus0 at mainbus0: "bus" "dma-controller" at simplebus0 not configured "dma-controller" at simplebus0 not configured rkpcie0 at mainbus0 rkpcie0: link training timeout dwmmc0 at mainbus0: 50 MHz base clock sdmmc0 at dwmmc0: 4-bit, sd high-speed, dma dwmmc1 at mainbus0: 50 MHz base clock sdmmc1 at dwmmc1: 4-bit, sd high-speed, mmc high-speed, dma sdhc0 at mainbus0 sdhc0: SDHC 3.0, 200 MHz base clock sdmmc2 at sdhc0: 8-bit, sd high-speed, mmc high-speed, dma ehci0 at mainbus0 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 configuration 1 interface 0 "Generic EHCI root hub" rev 2.00/1.00 addr 1 ohci0 at mainbus0: version 1.0 ehci1 at mainbus0 usb1 at ehci1: USB revision 2.0 uhub1 at usb1 configuration 1 interface 0 "Generic EHCI root hub" rev 2.00/1.00 addr 1 ohci1 at mainbus0: version 1.0 rkdwusb0 at mainbus0: "usb" xhci0 at rkdwusb0, xHCI 1.10 usb2 at xhci0: USB revision 3.0 uhub2 at usb2 configuration 1 interface 0 "Generic xHCI root hub" rev 3.00/1.00 addr 1 rkdwusb1 at mainbus0: "usb" xhci1 at rkdwusb1, xHCI 1.10 usb3 at xhci1: USB revision 3.0 uhub3 at usb3 configuration 1 interface 0 "Generic xHCI root hub" rev 3.00/1.00 addr 1 "dp" at mainbus0 not configured "saradc" at mainbus0 not configured rkiic0 at mainbus0 iic0 at rkiic0 escodec0 at iic0 addr 0x11 rkiic1 at mainbus0 iic1 at rkiic1 com0 at mainbus0: ns16550, no working fifo com1 at mainbus0: ns16550, no working fifo com1: console "spi" at mainbus0 not configured rktemp0 at mainbus0 rkiic2 at mainbus0 iic2 at rkiic2 rkpmic0 at iic2 addr 0x1b: RK808 fanpwr0 at iic2 addr 0x40: SYR827, 1.00 VDC fanpwr1 at iic2 addr 0x41: SYR828, 1.00 VDC rkiic3 at mainbus0 iic3 at rkiic3 fusbtc0 at iic3 addr 0x22: unable to establish interrupt rkpwm0 at mainbus0 rkpwm1 at mainbus0 "video-codec" at mainbus0 not configured "iommu" at mainbus0 not configured "rga" at mainbus0 not configured "efuse" at mainbus0 not configured "phy" at mainbus0 not configured "phy" at mainbus0 not configured "watchdog" at mainbus0 not configured "rktimer" at mainbus0 not configured rkiis0 at mainbus0 rkvop0 at mainbus0: RK3399 VOPL "iommu" at mainbus0 not configured rkvop1 at mainbus0: RK3399 VOPB "iommu" at mainbus0 not configured "iommu" at mainbus0 not configured "iommu" at mainbus0 not configured simpleaudio0 at mainbus0 rkanxdp0 at mainbus0: eDP TX "gpu" at mainbus0 not configured "opp-table0" at mainbus0 not configured "opp-table1" at mainbus0 not configured "opp-table2" at mainbus0 not configured pwmbl0 at mainbus0 simplepanel0 at mainbus0 "gpio-key-lid" at mainbus0 not configured "gpio-key-power" at mainbus0 not configured "leds" at mainbus0 not configured "sdio-pwrseq" at mainbus0 not configured simpleaudio1 at mainbus0 simpleamp0 at mainbus0 "vcc-sysin" at mainbus0 not configured "vcc-12v" at mainbus0 not configured "vcc3v3-sys" at mainbus0 not configured "vcc5v0-usb-regulator" at mainbus0 not configured "vcc-0v9" at mainbus0 not configured "vcc1v8-s3" at mainbus0 not configured "vcc3v0-sd" at mainbus0 not configured "vcc3v3-panel" at mainbus0 not configured "vcc3v3-ssd" at mainbus0 not configured "vcc5v0-otg" at mainbus0 not configured "vbus-5vout" at mainbus0 not configured "vcca0v9-s3" at mainbus0 not configured "dc-charger" at mainbus0 not configured "dfi" at mainbus0 not configured "dmc" at mainbus0 not configured usb4 at ohci0: USB revision 1.0 uhub4 at usb4 configuration 1 interface 0 "Generic OHCI root hub" rev 1.00/1.00 addr 1 usb5 at ohci1: USB revision 1.0 uhub5 at usb5 configuration 1 interface 0 "Generic OHCI root hub" rev 1.00/1.00 addr 1 audio0 at simpleaudio1 bwfm0 at sdmmc0 function 1 manufacturer 0x02d0, product 0xa9bf at sdmmc0 function 2 not configured manufacturer 0x02d0, product 0xa9bf at sdmmc0 function 3 not configured scsibus0 at sdmmc2: 2 targets, initiator 0 sd0 at scsibus0 targ 1 lun 0: <Sandisk, DA4064, 0000> removable sd0: 59640MB, 512 bytes/sector, 122142720 sectors uhub6 at uhub1 port 1 configuration 1 interface 0 "Genesys Logic USB2.0 Hub" rev 2.00/85.36 addr 2 axe0 at uhub6 port 1 configuration 1 interface 0 "ASIX Electronics AX88772B" rev 2.00/0.01 addr 3 axe0: AX88772B, address 00:60:6e:d5:a1:eb ukphy0 at axe0 phy 16: Generic IEEE 802.3u media interface, rev. 1: OUI 0x000ec6, model 0x0008 uvideo0 at uhub6 port 2 configuration 1 interface 0 "Sonix Technology Co., Ltd. USB Camera" rev 2.00/0.00 addr 4 video0 at uvideo0 uhidev0 at uhub4 port 1 configuration 1 interface 0 "HAILUCK CO.,LTD USB KEYBOARD" rev 1.10/1.00 addr 2 uhidev0: iclass 3/1 ukbd0 at uhidev0: 8 variable keys, 6 key codes wskbd0 at ukbd0 mux 1 uhidev1 at uhub4 port 1 configuration 1 interface 1 "HAILUCK CO.,LTD USB KEYBOARD" rev 1.10/1.00 addr 2 uhidev1: iclass 3/0, 35 report ids umt0 at uhidev1: clickpad, 4 contacts wsmouse0 at umt0 mux 0 vscsi0 at root scsibus1 at vscsi0: 256 targets softraid0 at root scsibus2 at softraid0: 256 targets bootfile: sd0a:/bsd boot device: sd0 root on sd0a (fa51e58f1a688110.a) swap on sd0b dump on sd0b rkvop0: using CRTC 0 for RK33 cat /var/log/Xorg.0.log [ 135.176] (--) Using wscons driver on /dev/ttyC4 [ 135.227] X.Org X Server 1.20.8 X Protocol Version 11, Revision 0 [ 135.227] Build Operating System: OpenBSD 6.7 arm64 [ 135.227] Current Operating System: OpenBSD defiant.l00-bugdead-prods.de 6.7 GENERIC.MP#711 arm64 [ 135.229] Build Date: 10 July 2020 03:03:42PM [ 135.229] [ 135.229] Current version of pixman: 0.38.4 [ 135.229] Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. [ 135.229] Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. [ 135.230] (==) Log file: "/var/log/Xorg.0.log", Time: Tue Jul 14 23:35:24 2020 [ 135.237] (==) Using system config directory "/usr/X11R6/share/X11/xorg.conf.d" [ 135.241] (==) No Layout section. Using the first Screen section. [ 135.242] (==) No screen section available. Using defaults. [ 135.242] (**) |-->Screen "Default Screen Section" (0) [ 135.242] (**) | |-->Monitor "<default monitor>" [ 135.247] (==) No monitor specified for screen "Default Screen Section". Using a default monitor configuration. [ 135.247] (==) Automatically adding devices [ 135.247] (==) Automatically enabling devices [ 135.247] (==) Not automatically adding GPU devices [ 135.248] (==) Max clients allowed: 256, resource mask: 0x1fffff [ 135.274] (==) FontPath set to: /usr/X11R6/lib/X11/fonts/misc/, /usr/X11R6/lib/X11/fonts/TTF/, /usr/X11R6/lib/X11/fonts/OTF/, /usr/X11R6/lib/X11/fonts/Type1/, /usr/X11R6/lib/X11/fonts/100dpi/, /usr/X11R6/lib/X11/fonts/75dpi/ [ 135.274] (==) ModulePath set to "/usr/X11R6/lib/modules" [ 135.275] (II) The server relies on wscons to provide the list of input devices. If no devices become available, reconfigure wscons or disable AutoAddDevices. [ 135.275] (II) Loader magic: 0x19240b0000 [ 135.275] (II) Module ABI versions: [ 135.275] X.Org ANSI C Emulation: 0.4 [ 135.275] X.Org Video Driver: 24.1 [ 135.276] X.Org XInput driver : 24.1 [ 135.276] X.Org Server Extension : 10.0 [ 135.278] (II) LoadModule: "glx" [ 135.285] (II) Loading /usr/X11R6/lib/modules/extensions/libglx.so [ 135.362] (II) Module glx: vendor="X.Org Foundation" [ 135.362] compiled for 1.20.8, module version = 1.0.0 [ 135.362] ABI class: X.Org Server Extension, version 10.0 [ 135.364] (==) Matched modesetting as autoconfigured driver 0 [ 135.364] (==) Assigned the driver to the xf86ConfigLayout [ 135.364] (II) LoadModule: "modesetting" [ 135.366] (II) Loading /usr/X11R6/lib/modules/drivers/modesetting_drv.so [ 135.372] (II) Module modesetting: vendor="X.Org Foundation" [ 135.372] compiled for 1.20.8, module version = 1.20.8 [ 135.372] Module class: X.Org Video Driver [ 135.372] ABI class: X.Org Video Driver, version 24.1 [ 135.373] (II) modesetting: Driver for Modesetting Kernel Drivers: kms [ 135.374] (WW) Falling back to old probe method for modesetting [ 135.376] (II) modeset(0): using default device [ 135.377] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support [ 135.380] (II) modeset(0): Creating default Display subsection in Screen section "Default Screen Section" for depth/fbbpp 24/32 [ 135.380] (==) modeset(0): Depth 24, (==) framebuffer bpp 32 [ 135.380] (==) modeset(0): RGB weight 888 [ 135.380] (==) modeset(0): Default visual is TrueColor [ 135.380] (II) Loading sub module "glamoregl" [ 135.380] (II) LoadModule: "glamoregl" [ 135.386] (II) Loading /usr/X11R6/lib/modules/libglamoregl.so [ 135.449] (II) Module glamoregl: vendor="X.Org Foundation" [ 135.449] compiled for 1.20.8, module version = 1.0.1 [ 135.449] ABI class: X.Org ANSI C Emulation, version 0.4 [ 136.756] (EE) modeset(0): eglInitialize() failed [ 136.834] (EE) modeset(0): glamor initialization failed [ 136.834] (II) modeset(0): ShadowFB: preferred NO, enabled NO [ 136.838] (II) modeset(0): Output eDP-1 has no monitor section [ 136.841] (II) modeset(0): EDID for output eDP-1 [ 136.842] (II) modeset(0): Printing probed modes for output eDP-1 [ 136.843] (II) modeset(0): Modeline "1920x1080"x60.0 148.50 1920 1968 2000 2200 1080 1083 1088 1125 (67.5 kHz eP) [ 136.843] (II) modeset(0): Output eDP-1 connected [ 136.844] (II) modeset(0): Using exact sizes for initial modes [ 136.844] (II) modeset(0): Output eDP-1 using initial mode 1920x1080 +0+0 [ 136.844] (==) modeset(0): Using gamma correction (1.0, 1.0, 1.0) [ 136.844] (==) modeset(0): DPI set to (96, 96) [ 136.844] (II) Loading sub module "fb" [ 136.844] (II) LoadModule: "fb" [ 136.848] (II) Loading /usr/X11R6/lib/modules/libfb.so [ 136.855] (II) Module fb: vendor="X.Org Foundation" [ 136.855] compiled for 1.20.8, module version = 1.0.0 [ 136.855] ABI class: X.Org ANSI C Emulation, version 0.4 [ 136.938] (==) modeset(0): Backing store enabled [ 136.938] (==) modeset(0): Silken mouse enabled [ 136.950] (II) modeset(0): Initializing kms color map for depth 24, 8 bpc. [ 136.953] (==) modeset(0): DPMS enabled [ 136.953] (II) Initializing extension Generic Event Extension [ 136.959] (II) Initializing extension SHAPE [ 136.964] (II) Initializing extension MIT-SHM [ 136.969] (II) Initializing extension XInputExtension [ 136.975] (II) Initializing extension XTEST [ 136.980] (II) Initializing extension BIG-REQUESTS [ 136.985] (II) Initializing extension SYNC [ 136.992] (II) Initializing extension XKEYBOARD [ 136.998] (II) Initializing extension XC-MISC [ 137.003] (II) Initializing extension SECURITY [ 137.009] (II) Initializing extension XFIXES [ 137.014] (II) Initializing extension RENDER [ 137.020] (II) Initializing extension RANDR [ 137.029] (II) Initializing extension COMPOSITE [ 137.036] (II) Initializing extension DAMAGE [ 137.041] (II) Initializing extension MIT-SCREEN-SAVER [ 137.047] (II) Initializing extension DOUBLE-BUFFER [ 137.053] (II) Initializing extension RECORD [ 137.058] (II) Initializing extension DPMS [ 137.063] (II) Initializing extension Present [ 137.068] (II) Initializing extension DRI3 [ 137.069] (II) Initializing extension X-Resource [ 137.074] (II) Initializing extension XVideo [ 137.080] (II) Initializing extension XVideo-MotionCompensation [ 137.080] (II) Initializing extension GLX [ 137.088] (II) AIGLX: Screen 0 is not DRI2 capable [ 137.359] (II) IGLX: Loaded and initialized swrast [ 137.359] (II) GLX: Initialized DRISWRAST GL provider for screen 0 [ 137.359] (II) Initializing extension XFree86-VidModeExtension [ 137.364] (II) Initializing extension XFree86-DGA [ 137.369] (II) Initializing extension XFree86-DRI [ 137.371] (II) Initializing extension DRI2 [ 137.377] (II) modeset(0): Damage tracking initialized [ 137.377] (II) modeset(0): Setting screen physical size to 508 x 285 [ 138.681] (II) config/wscons: checking input device /dev/wskbd [ 138.681] (II) wskbd: using layout us [ 138.683] (II) LoadModule: "kbd" [ 138.686] (II) Loading /usr/X11R6/lib/modules/input/kbd_drv.so [ 138.691] (II) Module kbd: vendor="X.Org Foundation" [ 138.691] compiled for 1.20.8, module version = 1.9.0 [ 138.692] Module class: X.Org XInput Driver [ 138.692] ABI class: X.Org XInput driver, version 24.1 [ 138.692] (II) Using input driver 'kbd' for '/dev/wskbd' [ 138.692] (**) /dev/wskbd: always reports core events [ 138.692] (**) /dev/wskbd: always reports core events [ 138.692] (**) Option "Protocol" "standard" [ 138.692] (**) Option "XkbRules" "base" [ 138.693] (**) Option "XkbModel" "pc105" [ 138.693] (**) Option "XkbLayout" "us" [ 138.693] (II) XINPUT: Adding extended input device "/dev/wskbd" (type: KEYBOARD, id 6) [ 138.720] (II) config/wscons: checking input device /dev/wsmouse0 [ 138.720] (II) LoadModule: "ws" [ 138.724] (II) Loading /usr/X11R6/lib/modules/input/ws_drv.so [ 138.730] (II) Module ws: vendor="X.Org Foundation"