Giter Site home page Giter Site logo

Comments (14)

kej715 avatar kej715 commented on September 4, 2024

from dtcyber.

robbo007 avatar robbo007 commented on September 4, 2024

Hi Kevin,
Unfortunately I do as its the only version that seems to work with my hardware. Is there a work around for this?

from dtcyber.

kej715 avatar kej715 commented on September 4, 2024

from dtcyber.

wschaub avatar wschaub commented on September 4, 2024

I pulled out a copy of sarge via the magic of docker and played around, it looks like what we need is hidden behind feature macro tests.

Try replacing the CFLAGS line in your Makefile with this and tell me how it goes, I got it to compile with the latest github checkout with this in the sarge docker container but I haven't tested the resulting binary.

CFLAGS = -O2 -D_GNU_SOURCE -I. $(INCL) -std=gnu99

from dtcyber.

robbo007 avatar robbo007 commented on September 4, 2024

@wschaub Amazing thanks :) That seemed to compile ok. I forgot to install the libx11-dev package as well so I added them. I now need to configure and see if I can get it loading. I'll keep you posted. Regards.

from dtcyber.

wschaub avatar wschaub commented on September 4, 2024

I just did another test on the sarge container, this time to test if the ancient glibc supports nanosleep. looks like it does, and without any need to set a define, pulling in <time.h> will get you the definition of timespec and nanosleep.

The sarge manpage for nanosleep has this in the BUGS section:
`BUGS
The current implementation of nanosleep is based on the normal kernel timer mechanism, which has a resolution of 1/HZ s (i.e, 10 ms on Linux/i386 and 1 ms on Linux/Alpha).
Therefore, nanosleep pauses always for at least the specified time, however it can take up to 10 ms longer than specified until the process becomes runnable again. For the same
reason, the value returned in case of a delivered signal in *rem is usually rounded to the next larger multiple of 1/HZ s.

Old behaviour
In order to support applications requiring much more precise pauses (e.g., in order to control some time-critical hardware), nanosleep would handle pauses of up to 2 ms by busy
waiting with microsecond precision when called from a process scheduled under a real-time policy like SCHED_FIFO or SCHED_RR. This special extension was removed in kernel
2.5.39, hence is still present in current 2.4 kernels, but not in 2.6 kernels.
`

from dtcyber.

kej715 avatar kej715 commented on September 4, 2024

from dtcyber.

wschaub avatar wschaub commented on September 4, 2024

I went through and tried to get everything working possible on sarge, I got enough working to run the automation scripts to build NOS1.3 and NOS2.8.7 but I wasn't able to get git-lfs working because Go does not support 2.6 and below kernels anymore.

I uploaded the updated curl, openssl, git, tcl and expect here https://steubentech.com/sarge-tools/

from dtcyber.

robbo007 avatar robbo007 commented on September 4, 2024

Hi @wschaub,
Does this mean NOS won't run then. Not having support for git-lfs-3.2.0 and go1.18.2? Should I concentrate getting my hardware to work with maybe Debian Lenny?

from dtcyber.

wschaub avatar wschaub commented on September 4, 2024

dtcyber and NOS will run just fine, only git-lfs doesn't work. Basically what that means is you would probably need to fetch dtcyber on a machine that you can install git-lfs on and then copy the tap.bz2 files over to the sarge machine. I have a snapshot of Dtcyber on that page from earlier today that has all the tape files expanded so you can easily test.

from dtcyber.

robbo007 avatar robbo007 commented on September 4, 2024

@wschaub ok thanks for clarifying that. I've manged to get it compiled. I have all the files that Tom Hunter gave me back in the day.

dtcyber loads but then dumps back to Debian with a "could not open display" error. Could this be because Xwindows is holding the resources?

Desktop CYBER 5.6.1 - Copyright (C) Tom Hunter
Licensed under the terms of the GNU General Public License version 3

Starting initialisation
Unexpected length of CM backing file, clearing CM
CPU model CYBER865 initialised (CM: 4000000, ECS: 0)
Unexpected length of PPM backing file, clearing PPM
PPs initialised (number of PPUs 24)
Channels initialised (number of channels 40)
Using gettimeofday() clock at 1.000000 MHz
Status/Control Register initialised on channel 16
Status/Control Register initialised on channel 36
Disk with 843 cylinders initialised on channel 1 unit 0
Disk with 843 cylinders initialised on channel 2 unit 0
Disk with 843 cylinders initialised on channel 3 unit 0
Disk with 843 cylinders initialised on channel 4 unit 0
Disk with 843 cylinders initialised on channel 1 unit 1
Disk with 843 cylinders initialised on channel 2 unit 1
Disk with 843 cylinders initialised on channel 3 unit 1
Disk with 843 cylinders initialised on channel 4 unit 1
Disk with 843 cylinders initialised on channel 1 unit 2
Disk with 843 cylinders initialised on channel 2 unit 2
Disk with 843 cylinders initialised on channel 3 unit 2
Disk with 843 cylinders initialised on channel 4 unit 2
Console initialised on channel 10
Equipment 07, Unit 00 attached to DCC6681 on channel 7
LP3555/512 initialised on channel 7 equipment 7
Equipment 07, Unit 00 attached to DCC6681 on channel 11
CR3447 initialised on channel 11 equipment 7
Equipment 06, Unit 00 attached to DCC6681 on channel 11
CP3446 initialised on channel 11 equipment 6
MT679 initialised on channel 13 equipment 0 unit 0
MT679 initialised on channel 13 equipment 0 unit 1
MT679 initialised on channel 13 equipment 0 unit 2
MT679 initialised on channel 13 equipment 0 unit 3
Two port MUX initialised on channel 15
NPU initialised on channel 5 equipment 7
       Host ID: CYBER
  Coupler node: 1
      NPU node: 2

Desktop CYBER 5.6.1 - Copyright (C) Tom Hunter.
Licensed under the terms of the GNU General Public License version 3.
For details see included text file 'license-gpl-3.0.txt' or visit
'http://www.gnu.org/licenses'.

Operator interface
Please enter 'help' to get a list of commands

Operator>/cyber/CybisRelease1#

from dtcyber.

kej715 avatar kej715 commented on September 4, 2024

from dtcyber.

robbo007 avatar robbo007 commented on September 4, 2024

Got it working :) Thanks to you both. Problem was with Xwindows.

from dtcyber.

kej715 avatar kej715 commented on September 4, 2024

from dtcyber.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.