dear all, i recompiled kernel (and world) and it does not boot anymore. even loader does not start. :-(( [note: version 6.0-release] now, when i think of it, i suspect the reason might be CPUTYPE=pentium-m -- long time ago i read either in freebsd or linux mailing lists something along the lines that CPU is not fully initialised when it may encounter a pentium-m specific instruction generated by compiler. i'm not sure whether this is the case but if it is, it definetely should be clearly noted somewhere in make.conf example and man pages and the handbook. (!) now, that my system no longer boots, what can i do to make it run again pls?? mind that i'd like not to reinstall from scratch, rather to recompile and reinstall the faulty kernel. (and keep my data of course) any advice appreciated! many thanks in advance, martin
I use CPUTYPE=pentium-m without any problems, and I'm pretty sure that the kernel gets compiled without any optimizing, so I think you'll need to look somewhere else for this problem. -----Oprindelig meddelelse----- Fra: owner-freebsd-stable@freebsd.org [mailto:owner-freebsd-stable@freebsd.org] P? vegne af martinko Sendt: 22. november 2005 18:26 Til: freebsd-stable@freebsd.org Cc: freebsd-questions@freebsd.org Emne: recompiled 6.0 does not boot -- need help !! dear all, i recompiled kernel (and world) and it does not boot anymore. even loader does not start. :-(( [note: version 6.0-release] now, when i think of it, i suspect the reason might be CPUTYPE=pentium-m -- long time ago i read either in freebsd or linux mailing lists something along the lines that CPU is not fully initialised when it may encounter a pentium-m specific instruction generated by compiler. i'm not sure whether this is the case but if it is, it definetely should be clearly noted somewhere in make.conf example and man pages and the handbook. (!) now, that my system no longer boots, what can i do to make it run again pls?? mind that i'd like not to reinstall from scratch, rather to recompile and reinstall the faulty kernel. (and keep my data of course) any advice appreciated! many thanks in advance, martin _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 4549 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20051122/64b55dd8/smime.bin
> now, when i think of it, i suspect the reason might be CPUTYPE=pentium-mThe relevant bug is 75898, which I filed almost a year ago. It has been fixed and MFC'd though, so it should not be affecting 6.0-release (I am using CPUTYPE=pentium-m on 6.0 myself). Most likely, something else went wrong. Still, all is not lost. When your system is starting up, hit any key after the BIOS has finished initializing the computer and before FreeBSD has given you any output on the screen. You'll end up in a prompt where you can select the boot loader. When you installed a new kernel, the previous loader got renamed to loader.old and that's the one you want to run. On my system, the prompt is: Default: 0:ad(0,a)/boot/loader boot: Simply copy the default line and append ".old", as in: boot: 0:ad(0,a)/boot/loader.old Once the boot loader has started up, it will count down a few seconds before starting the kernel. Since you're saying your kernel might be b0rked as well, you should hit any key but enter to get another prompt. It will look like this: OK Here, you can tell the loader to boot the previous kernel: OK boot /boot/kernel.old This should get you up and running again. You certainly should try to build a new, working kernel. But you should *absolutely* make sure to back up loader.old and kernel.old first, because if you install another kernel, those two will be overwritten by your current, broken loader and kernel. Simply run (as root): cp /boot/loader.old /boot/loader.good cp -R /boot/kernel.old /boot/kernel.good This way, you can always revert to loader.good and kernel.good if something goes wrong. Actually, it doesn't hurt to have a working kernel and loader lying around just in case. Update it periodically and you will always have a little safeguard in case you render your system unbootable. - Bartosz
> boot: > > Simply copy the default line and append ".old", as in: > > boot: 0:ad(0,a)/boot/loader.oldloader.old??? AFAIK loader is not rebuilt while compiling kernel and there is no such file like loader.old created!> Here, you can tell the loader to boot the previous kernel: > > OK boot /boot/kernel.old >looks better :)