Re: PINE64 ROCK64 Board - Gigabit Network

2018-06-09 Thread Johannes Krottmayer
On Sat, Jun 09, 2018 At 23:27:12 +0200, Mark Kettenis wrote: > > That's a very basic start in the right direction. > Thanks! I'm new in OpenBSD driver and ARM development. I have experience with AVR microcontroller and now I want use OpenBSD for my embedded projects. But today it is enough wi

Re: PINE64 ROCK64 Board - Gigabit Network

2018-06-09 Thread Johannes Krottmayer
Sorry, have forgotten to add a...@opnebsd.org to CC. On Sat, Jun 09, 2018 At 23:50:18 +0200, Johannes Krottmayer wrote: > On Sat, Jun 09, 2018 At 22:32:07 +0200, Mark Kettenis wrote: >> Works fine for me, but my board is connected to a 100Mbit/s switch. >> >> I suspect this is related to the tx_de

Re: PINE64 ROCK64 Board - Gigabit Network

2018-06-09 Thread Mark Kettenis
> From: Johannes Krottmayer > Date: Sat, 9 Jun 2018 22:22:44 +0200 > > Hi Mark! > > I inform you that I try to write a spi driver for the rk3328. Called > it rkspi (rkspi.c). Currently I have implement a early version of the > match and attach functions and it works. > > It is based on your rki

Re: PINE64 ROCK64 Board - Gigabit Network

2018-06-09 Thread Mark Kettenis
> From: Johannes Krottmayer > Date: Sat, 9 Jun 2018 17:23:09 +0200 > > Hi Mark! > > I have installed the dtb package. And copied the rk3328-rock64.dtb in > the FAT boot partition. Now I see all boot messages from the kernel. > > But with this dtb file, the ethernet is unstable: > > $ ping 10.4

Re: PINE64 ROCK64 Board - Gigabit Network

2018-06-09 Thread Johannes Krottmayer
Hi Mark! I inform you that I try to write a spi driver for the rk3328. Called it rkspi (rkspi.c). Currently I have implement a early version of the match and attach functions and it works. It is based on your rkiic driver. _The match function_ int rkspi_match(struct device *parent, void *match,

Re: PINE64 ROCK64 Board - Gigabit Network

2018-06-09 Thread Johannes Krottmayer
Hi Mark! I have installed the dtb package. And copied the rk3328-rock64.dtb in the FAT boot partition. Now I see all boot messages from the kernel. But with this dtb file, the ethernet is unstable: $ ping 10.42.42.1 PING 10.42.42.1 (10.42.42.1): 56 data bytes 64 bytes from 10.42.42.1: icmp_seq=9

Re: PINE64 ROCK64 Board - Gigabit Network

2018-06-08 Thread Johannes Krottmayer
Oh... Sorry, i have over read your text where you have explained the state of the rkgpio. On Fri, Jun 08, 2018 At 22:28:10 +0200, Johannes Krottmayer wrote: > Hi Mark! > > Thanks for the answer. That's very pity. > > But i run in a other problem with the GPIO. I have written > the follwing small

Re: PINE64 ROCK64 Board - Gigabit Network

2018-06-08 Thread Johannes Krottmayer
Hi Mark! Thanks for the answer. That's very pity. But i run in a other problem with the GPIO. I have written the follwing small piece of code: #include #include #include #include #include int main(int argc, char *argv[]) { int fd; printf("Open GPIO port\n"); fd = open("/dev/gp

Re: PINE64 ROCK64 Board - Gigabit Network

2018-06-08 Thread Mark Kettenis
> From: Johannes Krottmayer > Date: Fri, 8 Jun 2018 03:54:37 +0200 > > Hello Mark! > > I have found the necessary information to control the GPIO. > But what about the I2C and SPI interface? > > I don't find usefull information about this. I want native > support for my projects. Don't want to

Re: PINE64 ROCK64 Board - Gigabit Network

2018-06-07 Thread Johannes Krottmayer
Hello Mark! I have found the necessary information to control the GPIO. But what about the I2C and SPI interface? I don't find usefull information about this. I want native support for my projects. Don't want to make a software based (bit-bang) I2C or SPI interface with the GPIO pins. Best regar

Re: PINE64 ROCK64 Board - Gigabit Network

2018-06-07 Thread Johannes Krottmayer
Hello Mark, I just installed OpenBSD sucessfully on the ROCK64 media board. That's very cool. Thanks for your good statement. Best reagards, Johannes On Fri, Jun 08, 2018 At 00:52:51 +0200, Johannes Krottmayer wrote: > Hello Mark, > > I have an additional question. Don't want start a new thread

Re: PINE64 ROCK64 Board - Gigabit Network

2018-06-07 Thread Johannes Krottmayer
Hello Mark, I have an additional question. Don't want start a new thread for this. Are the GPIO, the I2C and the SPI interface working? An how can i use this. Is there a short example code available? I'm new in this. I have experience in bare-metal programming with AVR devices. Now I want use th

Re: PINE64 ROCK64 Board - Gigabit Network

2018-06-07 Thread Johannes Krottmayer
Hello Mark, Thanks for the fast reply and this information! I will try this steps. Best regards, Johannes Krottmayer On Fri, Jun 08, 2018 At 00:20:30 +0200, Mark Kettenis wrote: >> From: Johannes Krottmayer >> Date: Thu, 7 Jun 2018 23:23:21 +0200 >> >> Hello, >> >> Currently the Gigabit network

Re: PINE64 ROCK64 Board - Gigabit Network

2018-06-07 Thread Mark Kettenis
> From: Johannes Krottmayer > Date: Thu, 7 Jun 2018 23:23:21 +0200 > > Hello, > > Currently the Gigabit network of the ROCK64 media board > doesn't work with OpenBSD 6.3. > > Is there a chance in further releases to get this work? > It would be great! It works in -current. There is also DMA s