[RP64] rkpcie

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[RP64] rkpcie

Olivier BURELLI
Hello all,

In first, i would like to wish you happy new years celebrations, enjoy !

I would like to know if, for ROCK PRO64 i have issue or not.

_ From : https://github.com/jasperla/openbsd-rockpro64 and the image provided, the dmesg is containing a detection of rkpcie
        --> rkpcie0 at mainbus0
_ From the Mark's firmware that i am using, my dmesg does not contain any rkpcie device. (see below)


Questions :

_ Does my board is broken ?
_ Do we have to put some instructions to scan the pci-e slot ? (in the second part of u-boot)
_ Does the Mark's firmware includes rkpie device ?

Thanks‌ in advance.


******** DMESG *********

OpenBSD 6.6 (GENERIC.MP) #4: Tue Dec 17 14:55:16 MST 2019
    [hidden email]:/usr/src/sys/arch/arm64/compile/GENERIC.MP
real mem  = 4094271488 (3904MB)
avail mem = 3895148544 (3714MB)
mainbus0 at root: Pine64 RockPro64
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
efi0 at mainbus0: UEFI 2.8
efi0: Das U-Boot rev 0x20191000
apm0 at mainbus0
psci0 at mainbus0: PSCI 1.1, SMCCC 1.1
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
syscon27 at mainbus0: "syscon"
syscon28 at mainbus0: "syscon"
rkclock0 at mainbus0
rkclock1 at mainbus0
syscon29 at mainbus0: "syscon"
"io-domains" at syscon29 not configured
"usb2-phy" at syscon29 not configured
"usb2-phy" at syscon29 not configured
"phy" at syscon29 not configured
rkpinctrl0 at mainbus0: "pinctrl"
rkgpio0 at rkpinctrl0
rkgpio1 at rkpinctrl0
rkgpio2 at rkpinctrl0
rkgpio3 at rkpinctrl0
rkgpio4 at rkpinctrl0
pwmreg0 at mainbus0
"fit-images" at mainbus0 not configured
"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: "amba"
"dma-controller" at simplebus0 not configured
"dma-controller" at simplebus0 not configured
dwge0 at mainbus0: address ff:ff:ff:ff:ff:ff
rgephy0 at dwge0 phy 0: RTL8169S/8110S/8211 PHY, rev. 6
dwmmc0 at mainbus0: 50 MHz base clock
sdmmc0 at dwmmc0: 4-bit, sd high-speed, mmc high-speed, dma
sdhc0 at mainbus0
sdhc0: SDHC 3.0, 200 MHz base clock
sdmmc1 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
"saradc" at mainbus0 not configured
rkiic0 at mainbus0
iic0 at rkiic0
rkiic1 at mainbus0
iic1 at rkiic1
com0 at mainbus0: ns16550, no working fifo
com1 at mainbus0: ns16550, no working fifo
com1: console
"thermal-zones" 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
"pwm" at mainbus0 not configured
"pwm" at mainbus0 not configured
"dmc" 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
"i2s" at mainbus0 not configured
"i2s" at mainbus0 not configured
"i2s" at mainbus0 not configured
"vop" at mainbus0 not configured
"iommu" at mainbus0 not configured
"vop" at mainbus0 not configured
"iommu" at mainbus0 not configured
"hdmi" at mainbus0 not configured
"gpu" at mainbus0 not configured
"opp-table0" at mainbus0 not configured
"opp-table1" at mainbus0 not configured
"opp-table2" at mainbus0 not configured
"external-gmac-clock" at mainbus0 not configured
"gpio-keys" at mainbus0 not configured
"leds" at mainbus0 not configured
"sdio-pwrseq" at mainbus0 not configured
"vcc12v-dcin" at mainbus0 not configured
"vcc1v8-s3" at mainbus0 not configured
"vcc3v3-pcie-regulator" at mainbus0 not configured
"vcc3v3-sys" at mainbus0 not configured
"vcc5v0-host-regulator" at mainbus0 not configured
"vcc5v0-typec-regulator" at mainbus0 not configured
"vcc5v0-sys" at mainbus0 not configured
"vcc5v0-usb" at mainbus0 not configured
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
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
scsibus0 at sdmmc0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <SD/MMC, SL32G, 0080> removable
sd0: 30436MB, 512 bytes/sector, 62333952 sectors
sdmmc1: can't enable card
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 (bc1a5f8ea620f100.a) swap on sd0b dump on sd0b
***********************************************************

--
burelli.fr <[hidden email]>

Reply | Threaded
Open this post in threaded view
|

Re: [RP64] rkpcie

Mark Kettenis
> Date: Tue, 31 Dec 2019 00:28:23 +0100
> From: Olivier <[hidden email]>
>
> Hello all,
>
> In first, i would like to wish you happy new years celebrations, enjoy !
>
> I would like to know if, for ROCK PRO64 i have issue or not.
>
> _ From : https://github.com/jasperla/openbsd-rockpro64 and the image provided, the dmesg is containing a detection of rkpcie
> --> rkpcie0 at mainbus0
> _ From the Mark's firmware that i am using, my dmesg does not contain any rkpcie device. (see below)
>
>
> Questions :
>
> _ Does my board is broken ?
> _ Do we have to put some instructions to scan the pci-e slot ? (in the second part of u-boot)
> _ Does the Mark's firmware includes rkpie device ?
>
> Thanks‌ in advance.

You should probably use the firmware from the u-boot-aarch64-2020.01
package that is now available for -current.

Reply | Threaded
Open this post in threaded view
|

Re: [RP64] rkpcie

Olivier BURELLI
On Thu, 9 Jan 2020 22:16:38 +0100 (CET)
Mark Kettenis <[hidden email]> wrote:

> > Date: Tue, 31 Dec 2019 00:28:23 +0100
> > From: Olivier <[hidden email]>
> >
> > Hello all,
> >
> > In first, i would like to wish you happy new years celebrations, enjoy !
> >
> > I would like to know if, for ROCK PRO64 i have issue or not.
> >
> > _ From : https://github.com/jasperla/openbsd-rockpro64 and the image provided, the dmesg is containing a detection of rkpcie
> > --> rkpcie0 at mainbus0
> > _ From the Mark's firmware that i am using, my dmesg does not contain any rkpcie device. (see below)
> >
> >
> > Questions :
> >
> > _ Does my board is broken ?
> > _ Do we have to put some instructions to scan the pci-e slot ? (in the second part of u-boot)
> > _ Does the Mark's firmware includes rkpie device ?
> >
> > Thanks‌ in advance.
>
> You should probably use the firmware from the u-boot-aarch64-2020.01
> package that is now available for -current.

Hi Mark, thanks for your answers.

I already use it since the 4th January :)

In fact i done also a mistake on my side. I did not put the dtb file in the i partition. Now i am using your firmware, great ^^.

I whould like precise my mistakes for another people that run too fast like me :)


2 way to work on Rock64 / RockPro64 : using the Jasperla / Ayufan work or MArk's and OpenBSD's works :)

case 1) - Deprecated since the last u-boot-aarch64 package
Using dtb file
--> put the dtb file : dtb/rockchip/rk3399-rockpro64.dtb on the sdxi partition. From the last ayufan image : https://github.com/ayufan-rock64/linux-kernel/releases/download/4.4.202-1237-rockchip-ayufan/linux-image-4.4.202-1237-rockchip-ayufan-gfd4492386213-dbg_4.4.202-1237-rockchip-ayufan_arm64.deb

case 2) - The way to follow.
Using snapshots/aarch64/u-boot-aarch64 package on the emmc / sdc.
_ Install the package u-boot-aarch64
# dd if=/usr/local/share/idbloader.img of=/dev/sdxc seek=64
# dd if=/usr/local/share/u-boot/u-boot.itb of=/dev/sdxc seek=16384


Thank you a lot for all the works :)

--
burelli.fr <[hidden email]>