Re: NTPsec on MIPSbe

2017-05-23 Thread Trevor N. via devel
I just finished testing the refclocks supported by the Trimble driver on a sparc64 machine. The configure was able to set WORDS_BIGENDIAN 1 without any problem. I didn't notice any runtime problems besides what's likely due to serial port delays, but there were some warnings during the bui

Re: NTPsec on MIPSbe

2017-05-23 Thread Sanjeev Gupta via devel
On Wed, May 24, 2017 at 3:23 AM, Matthew Selsky via devel wrote: > > Sanjeev/Hal, > > Did waf's endian-ness test not detect this properly? It worked perfectly, no manual intervention or extra parameters required. -- Sanjeev Gupta +65 98551208 http://www.linkedin.com/in/ghane _

Re: NTPsec on MIPSbe

2017-05-23 Thread Hal Murray via devel
>> #define WORDS_BIGENDIAN 1 >Did waf's endian-ness test not detect this properly? waf's detection worked fine. The above #define is from config.h on a PowerPC indicating what it did. - > ISTR years ago seeing some C magic, where in a compile time declaration, one > packs bytes into a

Re: NTPsec on MIPSbe

2017-05-23 Thread Matthew Selsky via devel
On Tue, May 23, 2017 at 11:59:24AM -0700, Hal Murray via devel wrote: > If you are keeping track... > > It builds and runs on a 32 bit PowerPC MAC-Mini, both Debian and FreeBSD. > > #define WORDS_BIGENDIAN 1 > > There are problems with the firmware setting up the time keeping parameters > incor

Re: NTPsec on MIPSbe

2017-05-23 Thread Mark Atwood via devel
ISTR years ago seeing some C magic, where in a compile time declaration, one packs bytes into a struct union with an integer, and then at runtime looks at the integer value to determine the endianess on the fly. Downside: it has to be tested at runtime, which means the compile time optimizer is les

Re: NTPsec on MIPSbe

2017-05-23 Thread Hal Murray via devel
If you are keeping track... It builds and runs on a 32 bit PowerPC MAC-Mini, both Debian and FreeBSD. #define WORDS_BIGENDIAN 1 There are problems with the firmware setting up the time keeping parameters incorrectly. I can patch it via Open Firmware, but haven't figured out how to make it sti

Re: NTPsec on MIPSbe

2017-05-23 Thread Mark Atwood via devel
Thanks! On Mon, May 22, 2017 at 2:32 AM Sanjeev Gupta via devel wrote: > After a fruitless two months trying to find a big endian machine, I > finally booted a qemu instance. > > Running Debian 7, 256M RAM, 32 bit. gcc 4.6, kernel 3.2 > > buildprep fails because Debian 7 did not have libseccomp

NTPsec on MIPSbe

2017-05-22 Thread Sanjeev Gupta via devel
After a fruitless two months trying to find a big endian machine, I finally booted a qemu instance. Running Debian 7, 256M RAM, 32 bit. gcc 4.6, kernel 3.2 buildprep fails because Debian 7 did not have libseccomp. I installed python-dev, bison, and build-essential manually. waf configured, bui