NeXT Computers Forum Index NeXT Computers
www.NeXTComputers.org
 
Log in to check your private messagesLog in to check your private messages

Log inLog in  RegisterRegister


Profile  Search  Memberlist  FAQ  Usergroups
So I wanted to look at doing a cross compiler to NS

 
Post new topic   Reply to topic    NeXT Computers Forum Index -> Porting New Software
View previous topic :: View next topic  
Author Message
neozeed



Joined: 15 Apr 2006
Posts: 685
Location: Hong Kong

PostPosted: Mon Aug 10, 2015 7:47 am    Post subject: So I wanted to look at doing a cross compiler to NS Reply with quote

I found these disk images:

Code:
-rw-r--r--   1 jsteve  staff     2949166  4 Nov  2002 gnu2.1_1of5.diskimage
-rw-r--r--   1 jsteve  staff     2949166  4 Nov  2002 gnu2.1_2of5.diskimage
-rw-r--r--   1 jsteve  staff     2949166  4 Nov  2002 gnu2.1_3of5.diskimage
-rw-r--r--   1 jsteve  staff     2949166  4 Nov  2002 gnu2.1_4of5.diskimage
-rw-r--r--   1 jsteve  staff     2949166  4 Nov  2002 gnu2.1_5of5.diskimage


And as you can see they are 46 bytes too big. Crying or Very sad

So I dd to skip the 46 'hopeful' extra bytes of this weird headder

Code:
00000000  00 00 00 01 02 00 00 00  00 50 00 00 00 03 00 00  |.........P......|
00000010  00 07 00 00 00 03 00 2d  00 00 00 00 00 01 00 00  |.......-........|
00000020  02 00 02 00 00 00 00 24  1b 53 00 00 16 80        |.......$.S....|
0000002e


And I get what looks like a NeXTSTEP filesystem!


Code:

00000000  64 6c 56 33 00 00 00 00  00 00 00 00 32 2e 31 5f  |dlV3........2.1_|
00000010  47 4e 55 5f 53 6f 75 72  63 65 20 23 32 00 00 00  |GNU_Source #2...|
00000020  00 00 00 00 00 00 00 00  c9 b9 d7 a5 53 6f 6e 79  |............Sony|
00000030  20 4d 50 58 2d 31 31 31  4e 20 35 37 36 30 2d 35  | MPX-111N 5760-5|
00000040  31 32 00 00 72 65 6d 6f  76 61 62 6c 65 5f 72 77  |12..removable_rw|
00000050  5f 66 6c 6f 70 70 79 00  00 00 00 00 00 00 04 00  |_floppy.........|
00000060  00 00 00 02 00 00 00 12  00 00 00 50 00 00 01 2c  |...........P...,|
00000070  00 60 00 00 00 00 00 00  00 00 00 00 ff ff ff ff  |.`..............|
00000080  00 00 00 20 66 64 6d 61  63 68 00 00 00 00 00 00  |... fdmach......|
00000090  00 00 00 00 00 00 00 00  00 00 00 00 6c 6f 63 61  |............loca|
000000a0  6c 68 6f 73 74 00 00 00  00 00 00 00 00 00 00 00  |lhost...........|
000000b0  00 00 00 00 00 00 00 00  00 00 00 00 61 62 00 00  |............ab..|
000000c0  00 00 00 00 0d e0 20 00  04 00 74 00 00 20 10 00  |...... ...t.. ..|
000000d0  00 01 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000000e0  00 00 01 34 2e 33 42 53  44 00 00 00 ff ff ff ff  |...4.3BSD.......|
000000f0  ff ff ff ff ff ff ff ff  00 00 ff ff ff ff ff 00  |................|



So I try to mount it, and.. no go.

Quote:
Jasons-MacBook-Air:next jsteve$ ufs --dmg 2 --type nextstep /tmp/x
Jasons-MacBook-Air:next jsteve$ ls /tmp/x
2.1_GNU_Source.pkg
Jasons-MacBook-Air:next jsteve$ cat /tmp/x/2.1_GNU_Source.pkg/2.1_GNU_Source.info
Descriptionlds wThis package contains source code for NeXT's Release 2.1 GNU-based development tools. Use of this software is governed by the GNU General PubliJasons-MacBook-Air:next jsteve$ Source #%dand floppy locations
Jasons-MacBook-Air:next jsteve$ cp /tmp/x/2.1_GNU_Source.pkg/2.1_GNU_Source.tar.Z.2 tmp
cp: /tmp/x/2.1_GNU_Source.pkg/2.1_GNU_Source.tar.Z.2: Device not configured
cp: /tmp/x/2.1_GNU_Source.pkg/2.1_GNU_Source.tar.Z.2: could not copy extended attributes to tmp/2.1_GNU_Source.tar.Z.2: No such file or directory
Jasons-MacBook-Air:next jsteve$ ls -lh tmp/
total 2048
-r--r--r-- 1 jsteve staff 1.0M 10 Aug 22:45 2.1_GNU_Source.tar.Z.2



And of course NeXTSTEP on Previous with a SCSI floppy freaks out saying the filesystem is INVALID, and the only step to fix it is to format.

Does anyone have any idea what is going on??!

Better yet, does anyone have the GNU source packages for NS 0.8/0.9/1.0/2.0/3.x?? Laughing
_________________
# include <wittycomment.h>
Back to top
View user's profile Send private message Visit poster's website
t-rexky



Joined: 09 Jan 2011
Posts: 271
Location: Snowy Canada

PostPosted: Tue Aug 18, 2015 9:59 am    Post subject: Reply with quote

I started working on a cross-compiler of my port of gcc-4.6.3 (I think) running on PPC OS X 10.5. I got it to the point where it would compile stuff into object files and I could link those object files on my NS3.3 box into working executables. The biggest challenge is to create a cross development path, move all the libraries and headers into it and make sure that the cross compiler tools all know to use it...

I have unfortunately no time at the moment to continue any of this work...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NeXT Computers Forum Index -> Porting New Software All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2017 phpBB Group