Jump to content

-- How to Upgrade the Kernel -NEW VERSION/UPDATED


  • Please log in to reply
159 replies to this topic

#41
TomA2

TomA2

    Amaranthine User

  • Members
  • PipPipPip
  • 124 posts
OK, I've run this thing, and as it progressed, I saw this... looks like it enountered a LOT of errors.

I hope this hasn't trashed my install....



Do you want to install the semthex's latest kernel ? [y/n]
yes
Backing Up the Old Kernel
cp: mach_kernel: No such file or directory
Backing Up The Old Kernel - ======DONE=====
Creating /kernel
We're going to get Semthex's Latest Kernel from his site. This could take a couple of seconds/minutes. Please have a cup of coffee !
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 223 100 223 0 0 318 0 --:--:-- --:--:-- --:--:-- 0
Voila - DONE
Archive: latest.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of latest.zip or
latest.zip.zip, and cannot find latest.zip.ZIP, period.
We're going to unzip it - DONE
We're going to remove the old Kernel and replace it with a new one
Replaced and now we're going to move the new kernel to root /
mv: rename /kernel/mach_kernel to /mach_kernel: No such file or directory
chmod: /mach_kernel: No such file or directory
Setting up the right permissions for the Kernel
chown: /mach_kernel: No such file or directory
Setting up the right owners for the Kernel
Everything is done. A Small Message from Semthex - PLEASE READ
cat: /kernel/semthex.txt: No such file or directory

2006 Prasys. All Rights Reserved. Thanks for using the script

We're going to reboot - Please keep your fingers crossed. TO REBOOT TYPE Y NOW !
Do you want to reboot now? [y/n]



Ok, I'm on my Powerbook now.

As I suspected, this damned thing has trashed my install.

On reboot, I get:

Loading Darwin/x86
Can't find mach_kernel

Now what?


#42
Rammjet

Rammjet

    InsanelyMac V.I.P.

  • Gurus
  • 5,302 posts
  • Gender:Male

On reboot, I get:

Loading Darwin/x86
Can't find mach_kernel

Now what?[/b]

At boot, hit F8 and at the prompt type: mach_kernel.old

#43
TomA2

TomA2

    Amaranthine User

  • Members
  • PipPipPip
  • 124 posts

At boot, hit F8 and at the prompt type: mach_kernel.old


It still says:

Loading Darwin/x86
Can't find mach_kernel

#44
Rammjet

Rammjet

    InsanelyMac V.I.P.

  • Gurus
  • 5,302 posts
  • Gender:Male
Boot into single-user mode (F8 then -s)

At the prompt, type:

mount -uw /
cd /
ls -al 

See if there is a "mach_kernel.old" or anything called "mach_kernel"
Whatever you find, put it as the first parameter in the following command:
 
cp -f mach_kernel.old mach_kernel
chown root:wheel mach_kernel*
chmod 644 mach_kernel*
reboot



#45
TomA2

TomA2

    Amaranthine User

  • Members
  • PipPipPip
  • 124 posts

Boot into single-user mode (F8 then -s)

At the prompt, type:

mount -uw /
cd /
ls -al 

See if there is a "mach_kernel.old" or anything called "mach_kernel"
Whatever you find, put it as the first parameter in the following command:
 
cp -f mach_kernel.old mach_kernel
chown root:wheel mach_kernel*
chmod 644 mach_kernel*
reboot



As soon as I type -s, I get the "Can't find mach_kernel" error.

#46
Rammjet

Rammjet

    InsanelyMac V.I.P.

  • Gurus
  • 5,302 posts
  • Gender:Male

As soon as I type -s, I get the "Can't find mach_kernel" error.

Boot your install DVD. Go to Terminal. Type:

cd /Volumes/(name-of-OSX-partition)
ls -al 

See if there is a "mach_kernel.old" or anything called "mach_kernel.(something)"
Whatever you find, put it as the first parameter in the following command:

cp -f mach_kernel.(something) mach_kernel   <-- replace (something) with real suffix
chown root:wheel mach_kernel*
chmod 644 mach_kernel*

Quit Terminal
Quit Installer and reboot.

#47
TomA2

TomA2

    Amaranthine User

  • Members
  • PipPipPip
  • 124 posts
OK, trying this....

My partition is called Hard Drive

I've tried:

cd /Volumes/Hard_Drive

No such file or directory...

#48
A.I.Ghost

A.I.Ghost

    Vault 13 dweller

  • Members
  • PipPipPipPip
  • 212 posts
  • Gender:Male
  • Location:Prague - Czech Republic
  • Interests:Sex, Drugs (well... not really :-) ) and Rock'n'Roll.
    Mostly PC, now Mac too.
Funny thing is, that i have the same problem on the unzip step, since i do it myself and use this file as a reference, i still have working system. :P

computer:/kernel root# unzip -o latest.zip
Archive:  latest.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of latest.zip or
		latest.zip.zip, and cannot find latest.zip.ZIP, period.

i did that:
computer:/kernel root# cp latest.zip /Volumes/%DriveName%/latest.zip
and tried to uzip it manually.
Got this:
Unable to unarchive "latest.zip" into "%DriveName%"
(Error 1 - Operation not permitted.)
what the hell?

Edit
Since this file has only 4kb (command+i) on a copy, i'd assume that there is nothig to download right now.
Hope its because of the update being made.
Offline. :)

#49
Rammjet

Rammjet

    InsanelyMac V.I.P.

  • Gurus
  • 5,302 posts
  • Gender:Male

OK, trying this....

My partition is called Hard Drive

I've tried:

cd /Volumes/Hard_Drive

No such file or directory...

If you have a space in the name, you need to use quotes:

cd "/Volumes/Hard Drive"

#50
TomA2

TomA2

    Amaranthine User

  • Members
  • PipPipPip
  • 124 posts
The only items with mach or kernel in them are:


kernel
mach -> /mach.sym
mach (Mac OS 9) -> mach_kernel
mach (Mac OS 9) 1 -> /mach.sym
mach.sym
mach.sym (Mac OS 9)
mach.sym (Mac OS 9) 1
mach_kernel (Mac OS 9)
mach_kernel (Mac OS 9) 1

PS, thanks for your help on this!

#51
Rammjet

Rammjet

    InsanelyMac V.I.P.

  • Gurus
  • 5,302 posts
  • Gender:Male
cp -f "mach_kernel (Mac OS 9)" mach_kernel
rm -rf "mach_kernel (Mac OS 9) 1"
chown root:wheel mach_kernel*
chmod 644 mach_kernel*

Reboot with -f

#52
B612

B612

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 463 posts
Hi, guys.

I've got my computer screwed and after solving everything I have found the reason for this problem.

First of all, I will tell you how I fixed it: luckily I've got Windows XP on another partition, and from there, I gave a look to the hard disk of my MAC partition. There was no kernel at all, and in the folder /Kernel, there was a file called latest.zip, but this file was empty.
So I replaced an old copy of the mach_kernel I had backed up before and this way I could reboot my MAC OSX.

Then I opened the script that we have used to mess up everything and I noticed that it was downloading the new kernel from the address http://semthex.freef...dist/latest.zip. If you try to download it manually from your browser, you get a page in which there is the message "Forbidden". So you cannot download anything from that address. That's why we messed up our computers. Since there was no kernel in our hard disk, that script deleted our old kernel without replacing it with the right one.

I suggest everybody to wait for the address to be corrected or for further information from the creator of this script, before risking again to destroy everything! :)

BYE!

#53
semthex

semthex

    Shellcode Ninja

  • Members
  • PipPipPipPipPipPip
  • 430 posts
  • Gender:Male
  • Location:Vatikan State
I already created a thread about this issue.

http://forum.insanel...showtopic=34265

Sorry for the problems but read the thread and according blog article ... I could bump my head against a wall all day.

#54
TomA2

TomA2

    Amaranthine User

  • Members
  • PipPipPip
  • 124 posts
Ok Rammjet just saved my :censored2: .

Thanks a lot, man!




In the mean time, given the above from semthex, the mods need to delete that script until:

1. The link is fixed
and
2. The script knows how to determine whether the link is working in the first place!

Whatever was added to it to make it "safe" is definitely NOT working as intended.

#55
Prasys

Prasys

    Cheese Cheese cheese

  • Retired Developers
  • 338 posts
  • Gender:Male
I just got back , guys since semthex's site is down. I am re-routing it back. I might have to re-upload it back to my site . Thats the whole issue


BTW , a simple trick is just to boot with mach_kernel.old , you dont have to worry about that , if you get any errors that Website is not found blah blah blah , just press Control+C

#56
Rammjet

Rammjet

    InsanelyMac V.I.P.

  • Gurus
  • 5,302 posts
  • Gender:Male

BTW , a simple trick is just to boot with mach_kernel.old , you dont have to worry about that

This is what TomA2 was left with - no mach_kernel.old:

kernel
mach -> /mach.sym
mach (Mac OS 9) -> mach_kernel
mach (Mac OS 9) 1 -> /mach.sym
mach.sym
mach.sym (Mac OS 9)
mach.sym (Mac OS 9) 1
mach_kernel (Mac OS 9)
mach_kernel (Mac OS 9) 1

Just read all of the posts above about trying to save his installation.

if you get any errors that Website is not found blah blah blah , just press Control+C

But it is incumbent upon the programmer to make use of the error codes from curl and other processes to determine if the script should just stop what it is doing. Curl will tell you if there is a problem (like file unavailable) if you ask it. Atmosfear warned you in a previous post in this thread: http://forum.insanel...&...st&p=234298

#57
Prasys

Prasys

    Cheese Cheese cheese

  • Retired Developers
  • 338 posts
  • Gender:Male
Fixed backup issues
I will be working on error messages
Updated to beta7 kernel - Now this is the very latest kernel out there !


I will working with semthex again on the auto-updater thingy. Now it should download. I have fixed it !

#58
TorqueX86

TorqueX86

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 186 posts
  • Gender:Male
ok my system is totally screwed. no kernel message. i boot with the dvd and try to cp the mach_kernel I have in the /backup folder.

cp -f mach_kernel /

No luck. Read-Only File system.

Please help, what am I supposed to do now to fix it? :)

#59
Rammjet

Rammjet

    InsanelyMac V.I.P.

  • Gurus
  • 5,302 posts
  • Gender:Male

ok my system is totally screwed. no kernel message. i boot with the dvd and try to cp the mach_kernel I have in the /backup folder.

cp -f mach_kernel /

No luck. Read-Only File system.

Please help, what am I supposed to do now to fix it? :)

cd "/Volumes/(name-of-OSX-partition)"

(verify that there is a mach_kernel in backup folder:)
ls backup/mach*

cp -f backup/mach_kernel mach_kernel
chown root:wheel mach_kernel
chmod 644 mach_kernel


#60
TorqueX86

TorqueX86

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 186 posts
  • Gender:Male

cd "/Volumes/(name-of-OSX-partition)"

(verify that there is a mach_kernel in backup folder:)
ls backup/mach*

cp -f backup/mach_kernel mach_kernel
chown root:wheel mach_kernel
chmod 644 mach_kernel


Unfortunately that still didnt work. So I did it the non-civilised way :)

I copied mach_kernel from the installation dvd, then I rebooted successfully. I then downloaded the latest script for bets7 kernel and yeah, it did work.

Problems:

- RAM is still not recognised. Still 0 MHz SDRAM

- Hybernate still doesnt work

- In my root folder I have a LOAD of kernel files: mach_kernel.1 mach_kernel.2 mach_kernel.3 mach_kernel.4 mach_kernel.old

Which ones can I delete?

Apart of that, the system is fast as it has never been before and all peripherals are recognised correctly. \o/





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   Web hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy