Hi Randy,
Nice that you are experimenting with 64bit.
I think I know the problem. The 64 bit system timer of the pi 4 is located at 0xfe003004. This is not aligned at 64 bit but at 32 bit. (you cannot divide the address by 8). This doesn't matter for 32 bit systems as it cannot handle 64 bit integers in one operation anyway.
One solution I can think of is copying the 8 bytes of the timer to a properly aligned 64 bit int every time we want to use it. Does anyone know a better solution?
we could also just keep using the same 32 bit version for both 32 an 64 bit systems but then we stil need to debug the dgtpicom.so problem. Can you send me the output of the 32bit debug2 version of dgtpicom.so when starting Picochess?
kind regards,
Lucas van der Ploeg | DGT
Thanks for testing,
It looks like we cannot use a 32 bit library (.so file) in a 64bit version of python.
This means we would have to create two versions of the library both for 32 bit an 64 bit. We would also have to think of how to automatically choose the right one from python.
I can take a look at fixing the 64 bit version later this week.
Best regards,
Lucas van der Ploeg | DGT
From: pico...@googlegroups.com [mailto:pico...@googlegroups.com]
On Behalf Of RandyR
Sent: 24 August 2020 15:54
To: PicoChess <pico...@googlegroups.com>
Subject: Re: Bus error using dgtpicom RpiOS64
Hi Lucas,
--
You received this message because you are subscribed to the Google Groups "PicoChess" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
picochess+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/picochess/24f232e5-74cf-4b2a-8425-82159b13b332n%40googlegroups.com.
Hi,
I have pushed a potential fix for 64 bit compilation to my git page,
I have not tested it, so if it does not help, please let me know. If this solves the problem, enjoy!
regards,
Lucas van der Ploeg | DGT
Hi,
I have pushed a potential fix for 64 bit compilation to my git page,
I have not tested it, so if it does not help, please let me know. If this solves the problem, enjoy!
regards,
Lucas van der Ploeg | DGT
At least the location of the error changed,
I have made another change, hope it helps, thanks for testing!
regards,
Lucas van der Ploeg | DGT
At least the location of the error changed,
I have made another change, hope it helps, thanks for testing!
regards,
Lucas van der Ploeg | DGT
hopefully 3rd try is the charm.
regards,
Lucas van der Ploeg | DGT
hopefully 3rd try is the charm.
regards,
Lucas van der Ploeg | DGT
Hi Randy,
Well, at least it runs now so that's progress. I have no Idea what this new problem could be. So if you have any ideas yourself of what it could be or any additional information I will take a look at it. Not next week because I will be on holiday.
regards,
Lucas van der Ploeg | DGT
Today I thought it would be interesting to see if I could get RPiOS64 working on my DGTPi. I compiled dgtpicom and dgtpicom.so from Lucas' github site but it failswith a bus error. This is the output from the debug2 build:pi@raspberrypi:~/Temp/DGTPi/dgtpi-master $ sudo ./dgtpicom "hello"
Reset I2C device, core freq = 250 MHz-> 10 20 06 0b 39 b9 = Change State
Bus errorThis causes picochess to fail. Does anyone (Lucas?) know what needs to change to support RpiOS64 on a DGTPi (RPi3B)?Randy
Hey Randy,
you were right suspecting a timing issue, having multiple 10ms timeouts withing 1ms should nog be possible, the strange thing is the printing of the time is correct. (Assuming your pi has been on for 60s at the first error message). I have changed something to the timer that might help.
let me know if this helps.
regards,
Lucas van der Ploeg | DGT
Hallo RandyR. I'm looking for a finished img with Stockfish 12 NNUE for Rasberry 4b Buster. Does that already exist?
Hey Randy,
you were right suspecting a timing issue, having multiple 10ms timeouts withing 1ms should nog be possible, the strange thing is the printing of the time is correct. (Assuming your pi has been on for 60s at the first error message). I have changed something to the timer that might help.
let me know if this helps.
regards,
Lucas van der Ploeg | DGT
Thanks for testing,
I ran out of ideas on what I can try. I will have to create a 64-bit image and test myself at a later date.
kind regards,
Lucas van der Ploeg | DGT
Thanks for testing,
I ran out of ideas on what I can try. I will have to create a 64-bit image and test myself at a later date.
kind regards,
Lucas van der Ploeg | DGT
Hi Randy,
I have not spend any time on it lately. I ran out of ideas on what it could possibly be. I am a bit busy at the moment as I will be moving to Norway next month. Having an image would definitely help so take a look at the problem myself.
kind regards,
Lucas van der Ploeg | DGT