Path: utzoo!utgpu!watmath!clyde!att!rutgers!gatech!hubcap!rwberry From: rwberry@hubcap.UUCP (Robert W Berry) Newsgroups: comp.os.minix Subject: wierd problem building boot disk (bad magic number) Keywords: kernel build magic number data space Message-ID: <3931@hubcap.UUCP> Date: 19 Dec 88 08:37:01 GMT Organization: Clemson University, Clemson, SC Lines: 29 Has anybody ever gotten an error from build saying: bad magic number in kernel data space I looked through build.c and found that it checks for a magic number at some wierd offset in the kernel binary. I looked through the kernel to try and find where the magic number is defined. I know that build has to patch some values into the kernel binary so it knows where the other tasks are. Where is this space reserved? Is it just some initialized variable? What bother's me is that I re-compiled and the error went away. I didn't change any of the files. It just went away. Wierd. Anybody have any insight into this? Another quick question: why do you not have to link /usr/lib/head.s into the kernel. I can understand bootblok.s not needing this header, but why the kernel? Does it have anything to do with the entry point to Minix being in assembler (mpx88.s?) Thanks in advance, and have a nice Christmas out there in NetLand. Bob -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -=- Bob Berry -=- PC-Guru's Inc. ! INTERNET:rwberry@hubcap.clemson.edu -=- -=- Good questions all, Sir. ! Voice: 803-654-7623 or 803-656-2635 -=- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-