Re: armv7: banana pi, Allwinner A20 board

2014-10-29 Thread Jonathan Gray
On Mon, Oct 20, 2014 at 12:15:42PM +0200, Raphael Graf wrote: On Thu, October 16, 2014 11:40 pm, Patrick Wildt wrote: I do believe that this is a pmap issue. I just got hands on an Allwinner A20 and suffered the same issues: pool_setlowat crashing randomly, same for ahci and so on. I

Re: armv7: banana pi, Allwinner A20 board

2014-10-20 Thread Raphael Graf
On Thu, October 16, 2014 11:40 pm, Patrick Wildt wrote: I do believe that this is a pmap issue. I just got hands on an Allwinner A20 and suffered the same issues: pool_setlowat crashing randomly, same for ahci and so on. I believe we are not syncing the PTEs correctly. Here?s the snippet

Re: armv7: banana pi, Allwinner A20 board

2014-10-18 Thread SASANO Takayoshi
Hello, Theo gave a hint to check early console code and I found something curious. Here is a diff to printf debug... Index: sxiuart.c === RCS file: /cvs/src/sys/arch/armv7/sunxi/sxiuart.c,v retrieving revision 1.3 diff -u -p -r1.3

Re: armv7: banana pi, Allwinner A20 board

2014-10-16 Thread Patrick Wildt
I do believe that this is a pmap issue. I just got hands on an Allwinner A20 and suffered the same issues: pool_setlowat crashing randomly, same for ahci and so on. I believe we are not syncing the PTEs correctly. Here’s the snippet from PTE_SYNC(), but PTE_SYNC_RANGE() has the same issue:

Re: armv7: banana pi, Allwinner A20 board

2014-10-09 Thread Jonathan Gray
Here are some updated images with the fix for the interrupt controller on cortex a7/15. http://marc.info/?l=openbsd-cvsm=141278003609690w=2 http://jsg.id.au/openbsd/armv7/bsd.SUNXI.umg http://jsg.id.au/openbsd/armv7/bsd.rd.SUNXI.umg Though it sounds like A20/sun7i handles the timer in a

Re: armv7: banana pi, Allwinner A20 board

2014-10-09 Thread SASANO Takayoshi
Hello, Here is the log of new image. Booting with -c option, UKC still hangs up. I hope the log helps debugging. Regards, -- SASANO Takayoshi u...@mx5.nisiq.net U-Boot SPL 2014.04-10694-g2ae8b32-dirty (Oct 01 2014 - 17:40:04) Board: Bananapi DRAM: 1024 MiB CPU: 96000Hz, AXI/AHB/APB:

Re: armv7: banana pi, Allwinner A20 board

2014-10-07 Thread SASANO Takayoshi
Hi, Did you try disabling ehci to see if that makes a difference? Curiously, -c option in bootargs seems to be ignored. I tried it both uEnv.txt and U-Boot console. Here is the log. There is no problem to pass -c string to kernel. What is happening? Regards, U-Boot SPL

Re: armv7: banana pi, Allwinner A20 board

2014-10-07 Thread SASANO Takayoshi
Hi, here is the log using bsd.SUNXI.umg instead of bsd.rd.SUNXI.img. (thanks to Theo) -c invokes UKC, but hangs up at there. -- OpenBSD/sunxi booting ... arg0 0x0 arg1 0x10bb arg2 0x4100 atag core flags 0 pagesize 0 rootdev 0 atag cmdline [sd0i:/bsd -c] atag mem start 0x4000 size

Re: armv7: banana pi, Allwinner A20 board

2014-10-05 Thread Jonathan Gray
On Sat, Oct 04, 2014 at 06:26:29AM +0900, SASANO Takayoshi wrote: Hi, When using OpenBSD 5.6 (RAMDISK-SUNXI) #3: Sun Aug 31 18:46:49 EDT 2014 could you drop into config (pass -c to boot) and try to disable echi? What shoud I do pass boot -c string to armv7 kernel? On i386/amd64

Re: armv7: banana pi, Allwinner A20 board

2014-10-05 Thread SASANO Takayoshi
Hi, I've put up a recently built ramdisk with the l1 pte change here: http://jsg.id.au/openbsd/bsd.rd.SUNXI.umg Thanks but not worked... And, Ethernet PHY(RTL8211E) is recognized as ukphy. I heard that the power of PHY is controlled by GPIO PH23. (see

Re: armv7: banana pi, Allwinner A20 board

2014-10-05 Thread Jonathan Gray
On Mon, Oct 06, 2014 at 05:10:58AM +0900, SASANO Takayoshi wrote: Hi, I've put up a recently built ramdisk with the l1 pte change here: http://jsg.id.au/openbsd/bsd.rd.SUNXI.umg Thanks but not worked... And, Ethernet PHY(RTL8211E) is recognized as ukphy. I heard that the power of PHY

Re: armv7: banana pi, Allwinner A20 board

2014-10-03 Thread Jonathan Gray
On Thu, Oct 02, 2014 at 09:16:43PM +0200, Patrick Wildt wrote: Hi, I remember that there has been an issue, only seen on Cortex-A7/A15, like the Allwinner A20. The fix for that issue is somewhere here[0]. Try this[1] kernel and have a look if it has the same issue or not. I do not

Re: armv7: banana pi, Allwinner A20 board

2014-10-03 Thread SASANO Takayoshi
Hi, When using OpenBSD 5.6 (RAMDISK-SUNXI) #3: Sun Aug 31 18:46:49 EDT 2014 could you drop into config (pass -c to boot) and try to disable echi? What shoud I do pass boot -c string to armv7 kernel? On i386/amd64 bootloader simply type it but armv7 uses U-Boot. Tweak uEnv.txt? --

armv7: banana pi, Allwinner A20 board

2014-10-02 Thread SASANO Takayoshi
Hello, I tried bsd.rd.SUNXI.umg snapshot on Banana Pi, cheap Allwinner A20 board like Raspberry Pi (see http://www.lemaker.org/). It booted but something wrong. Arch Linux (for Banana Pi) works fine so I think the board is not broken. This is my first OpenBSD/armv7 experience and I don't know

Re: armv7: banana pi, Allwinner A20 board

2014-10-02 Thread Patrick Wildt
Hi, I remember that there has been an issue, only seen on Cortex-A7/A15, like the Allwinner A20. The fix for that issue is somewhere here[0]. Try this[1] kernel and have a look if it has the same issue or not. I do not have an A20, so I can’t test it, sorry. But I’ll probably buy this[2][3]

Re: armv7: banana pi, Allwinner A20 board

2014-10-02 Thread Patrick Wildt
iirc this is the core of the issue: The L1 Section descriptors access permissions are still the old ones, not the v7 versions. arm/include/pmap.h: #define L1_S_PROT_U (L1_S_AP(AP_U)) #define L1_S_PROT_W (L1_S_AP(AP_W)) #define L1_S_PROT_MASK

Re: armv7: banana pi, Allwinner A20 board

2014-10-02 Thread SASANO Takayoshi
Hi, Try this[1] kernel and have a look if it has the same issue or not. Kernel did not started... U-Boot says checksum is ok, so maybe .umg file is not corrupted. Regards, -- SASANO Takayoshi u...@mx5.nisiq.net U-Boot SPL 2014.04-10694-g2ae8b32-dirty (Oct 01 2014 - 17:40:04) Board:

Re: armv7: banana pi, Allwinner A20 board

2014-10-02 Thread Alexey Suslikov
SASANO Takayoshi uaa at mx5.nisiq.net writes: Try this[1] kernel and have a look if it has the same issue or not. Kernel did not started... U-Boot says checksum is ok, so maybe .umg file is not corrupted. When using OpenBSD 5.6 (RAMDISK-SUNXI) #3: Sun Aug 31 18:46:49 EDT 2014 could you

Re: armv7: banana pi, Allwinner A20 board

2014-10-02 Thread Landry Breuil
On Thu, Oct 02, 2014 at 10:01:59PM +, Alexey Suslikov wrote: SASANO Takayoshi uaa at mx5.nisiq.net writes: Try this[1] kernel and have a look if it has the same issue or not. Kernel did not started... U-Boot says checksum is ok, so maybe .umg file is not corrupted. When using