IRIX 4 USERS
#11
RE: IRIX 4 USERS
I have built a c++ library for reading binary spec files from inst packages on my github. I have some irix 4 packages to throw at it, but a few of them elude my reversing efforts of what format exactly is used.
Together with the mydb program here , it should indeed be possible to cobble up some irix 3/4 gendist together.
dexter1
Administrator

Trade Count: (1)
Posts: 297
Threads: 17
Joined: May 2018
Location: The Netherlands
Find Reply
10-11-2020, 07:31 PM
#12
RE: IRIX 4 USERS
Link to that github?  Here are some patches to mydb.c for extended functionality:

Code:
--- mydb.c      2003-06-02 11:16:02.000000000 -0400
+++ midb.c      2020-04-11 16:35:34.168016570 -0400
@@ -1,3 +1,4 @@
+/* XXX HRB 2020.04.11 cputype additions for IRIX 6.2, etc. */
/*******************************************************************************

    These routines where writen in an attemp to give me more flexibility
@@ -83,6 +84,8 @@
#define GR_SERVER  6
#define GR_ECLIPSE 7
#define GR_VENICE  8
+#define GR_NEWPORT 9
+#define GR_NEWPRESS 10

/* possible SUBGR values */
#define SG_EXPRESS  1
@@ -98,6 +101,11 @@
#define SG_MHPI    12
#define SG_ECLIPSE  13
#define SG_VENICE  14
+#define SG_IP19    15
+#define SG_IP21    16
+#define SG_I264    17
+#define SG_NG1      18
+#define SG_NEWPRESS 19

/* possible values for CPUBOARD */
#define CPU_IP5    1
@@ -109,11 +117,16 @@
#define CPU_IP4    7
#define CPU_IP20    8
#define CPU_R2300  9
+#define CPU_IP19    10
+#define CPU_IP22    11
+#define CPU_IP21    12
+#define CPU_IP26    13

/* possible values for CPUARCH */
#define ARCH_R2300  1
#define ARCH_R3000  2
#define ARCH_R4000  3
+#define ARCH_R8000  4

/* format and macros for a CPUARCH+CPUBOARD+GFXBOARD+SUBGR value
    bit 0-1 : CPUARCH
@@ -127,7 +140,7 @@
#define CPUBOARD_POS  2
#define GFXBOARD_MASK  0x0f
#define GFXBOARD_POS  6
-#define SUBGR_MASK    0x0f
+#define SUBGR_MASK    0x1f
#define SUBGR_POS      10
#define getall(val,mask,pos)  ((val>>pos)&mask)
#define get_cpuarch(val)  (getall(val,CPUARCH_MASK,CPUARCH_POS))
@@ -148,6 +161,8 @@
{"VGXT",    GR_STAPUFT,},
{"SKYWR",  GR_STAPUFT,},
{"VENICE",  GR_VENICE,},
+{"NEWPORT", GR_NEWPORT,},
+{"NEWPRESS",GR_NEWPRESS,},
NULL,
};
static LUTENT sg_lut[]={
@@ -158,6 +173,7 @@
{"IP4GT",  SG_IP4GT,},
{"IP5GT",  SG_IP5GT,},
{"IP7GT",  SG_IP7GT,},
+{"IP7",    SG_IP7GT,},
{"IP17",    SG_IP17,},
{"IP17SKY", SG_IP17SKY,},
{"LG1MC",  SG_LG1MC,},
@@ -165,6 +181,11 @@
{"VENICE",  SG_VENICE,},
{"MHPI",    SG_MHPI,},
{"SKYWR",  SG_IP17SKY,},
+{"IP19",    SG_IP19,},
+{"IP21",    SG_IP21,},
+{"I2_64",  SG_I264,},
+{"NG1",    SG_NG1,},
+{"NEWPRESS",SG_NEWPRESS,},
NULL,
};
static LUTENT cpu_lut[]={
@@ -177,6 +198,10 @@
{"IP17", CPU_IP17},
{"IP20", CPU_IP20},
{"R2300", CPU_R2300},
+{"IP19", CPU_IP19},
+{"IP22", CPU_IP22},
+{"IP21", CPU_IP21},
+{"IP26", CPU_IP26},
NULL,
};
static LUTENT arch_lut[]={
@@ -185,6 +210,7 @@
{"R3000", ARCH_R3000},
{"MIPS1", ARCH_R3000},
{"MIPS2", ARCH_R4000},
+{"R8000", ARCH_R8000},
NULL,
};

@@ -313,10 +339,12 @@
      {last_mask=0xffff<<SUBGR_POS;  return getlut(sg_lut, val)<<SUBGR_POS;}
    else if(!strcmp(type, "GFXBOARD"))
      {last_mask=0xffff<<GFXBOARD_POS;  return getlut(gr_lut, val)<<GFXBOARD_POS;}
+  else if(!strcmp(type, "MODE"))
+      {last_mask=0xffff<<MODE_POS;  return getlut(gr_lut, val)<<MODE_POS;}
    else
    {
      fprintf(stderr, "Unknown variable type (%s)\n", type);
-      exit(1);
+      /* exit(1); */
    }
}
static char unparse(SFILE *sfile)
hbent
4D/3D3

Trade Count: (0)
Posts: 12
Threads: 6
Joined: Nov 2018
Location: The Overland
Find Reply
10-22-2020, 11:32 PM
#13
RE: IRIX 4 USERS
I'd like to see if we can use gitea on IRIXCE.org for this. Github doesn't even work over http. I'm going to be applying some upgrades and configuration fixes to it tonight and tomorrow.

I think that it's rather unfit. to use a service that doesn't even try to cater to older machines.

You can also use source hut or something.

(I'm applying updates to gitea!)

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
(This post was last modified: 10-23-2020, 07:36 AM by Raion.)
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,240
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
10-23-2020, 12:32 AM
#14
RE: IRIX 4 USERS
(10-22-2020, 11:32 PM)hbent Wrote:  Link to that github?

It's over here

Thanks for the mydb update. The tool is a bit crude (so is my specfile program ;-) ) but it does give us some lead on how irix4 packages are built up.
dexter1
Administrator

Trade Count: (1)
Posts: 297
Threads: 17
Joined: May 2018
Location: The Netherlands
Find Reply
10-24-2020, 08:42 AM
#15
RE: IRIX 4 USERS
Looks good guys.

I'd like to eventually make something, I guess we could call it "libtardist" which could be used as a basis to make package creation programs.

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,240
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
10-24-2020, 06:23 PM
#16
RE: IRIX 4 USERS
In the meantime, please enjoy putty and doom, which should really be all you need to get started in life.  Both are mips2.


Attached Files
.gz sgixdoom.gz Size: 455.22 KB  Downloads: 222
.gz putty.gz Size: 1.89 MB  Downloads: 229
hbent
4D/3D3

Trade Count: (0)
Posts: 12
Threads: 6
Joined: Nov 2018
Location: The Overland
Find Reply
10-24-2020, 09:36 PM
#17
RE: IRIX 4 USERS
I'll make a repo for these if hbent wants these packages.

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,240
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
10-24-2020, 09:54 PM
#18
RE: IRIX 4 USERS
I have 4.0.5 on the Indigo R3k (and, if you want to be even older, 3.3.2 on the 4D/25), but frankly I'm too lazy/ time pressed to do much on either. Use them mostly as "progression of IRISes" type stuff, but don't even have much of anything beyond the demos that runs on the 3.3.2 box.
6.2/6.5 is much easier.
saq
O2

Trade Count: (0)
Posts: 18
Threads: 1
Joined: Mar 2021
Location: Renton, WA
Find Reply
03-08-2021, 01:16 AM


Forum Jump:


Users browsing this thread: 1 Guest(s)