LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-24-2016, 08:02 AM   #1
Mr486
Member
 
Registered: Nov 2013
Posts: 41

Rep: Reputation: 0
Kernel 2.0.40: Loading...... bootloader boot loop


Hi, On a 486, I am booting linux 2.0.40 from a floppy but wonder if I have done something wrong in the building of the kernel image + bootloader:

zImage has been written to the disk.

I get the Loading...... (presubably from linux/boot/head.S"

Then the computer reboots itself straight after the last "." (i.e. I don't get the "Uncompressing Linux" message (from arch/i386/boot/compressed)

What could be the most likely reasons for the reboot?

I made the Kernel with

make menuconfig (choose some options....)
make dep ; make clean
make zdisk (kernel gets built then the floppy disk goes chug chug for a while)


Thanks in advance...
 
Old 12-24-2016, 08:09 AM   #2
Mr486
Member
 
Registered: Nov 2013
Posts: 41

Original Poster
Rep: Reputation: 0
The output from the building of the kernel is:

tools/build bootsect setup compressed /vmlinux.out CURRENT > zImage
Root Device is (22,1)
Boot Sector is 512 bytes
Setup is 4380 bytes
System is 285 bytes
sync
Leaving .....arch/i386/boot

I used to be able to build bootable floppies without issue but something must have changed.....
 
Old 12-24-2016, 09:29 AM   #3
Mr486
Member
 
Registered: Nov 2013
Posts: 41

Original Poster
Rep: Reputation: 0
Any help/pointer appreciated. I am guessing the issue is nothing to do with the kernel as such but something to do with the bootloader not being happy?
 
Old 12-24-2016, 01:10 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,669

Rep: Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657
so is this computer also from the erly 1990's

the 2.0 kernel is 20 years old
 
Old 12-25-2016, 06:37 AM   #5
Mr486
Member
 
Registered: Nov 2013
Posts: 41

Original Poster
Rep: Reputation: 0
ye it is an old 486. I needed to rebuild the kernel because of a change of network card.

Its 2.0.40 running on 486 building kernels and booting of floppies used to work fine on this machine - last build was done about 18 months ago.

I don't know all the caused of getting a reboot after "Loading.........." but before "Uncompressing Linux" that suggests that the bootloader has some problem?
 
Old 01-04-2017, 04:44 AM   #6
Mr486
Member
 
Registered: Nov 2013
Posts: 41

Original Poster
Rep: Reputation: 0
My latest attempt is that I have grabbed an archive of the 2.0.20 kernel and created a bare minimum kernel and built a zImage and copied to a floppy. That still has the issue of the computer rebooting right before the "Uncompressing Linux" message. I blank the floppy first to made sure the image that I create is the image that is the one on the floppy.

I have now had the idea to copy vmlinux straight to the floppy....That will get round the need to uncompress the kernel.... I haven't had a chance to try that yet.

Any ideas still welcome.
 
Old 01-05-2017, 04:11 AM   #7
Mr486
Member
 
Registered: Nov 2013
Posts: 41

Original Poster
Rep: Reputation: 0
Here is an update: The vmlinux idea didn't work as the machine started reading the disk and then just got stuck at a blank screen.

The last time I built a successful floppy was November 2015 which was kernel 2.0.40

I am guessing the issue must be some environmental wherby something goes wrong creating the zImage/vmlinux. If any old hands have any ideas that would be really helpful.

What I am going to try now is to build a zImage on a different system (build a kernel targeted at 486). That should be a way to create a successful bootable image.

Thanks for spending the time looking at this question.
 
Old 01-06-2017, 08:21 AM   #8
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: One main distro, & some smaller ones casually.
Posts: 5,753

Rep: Reputation: Disabled
How old is the floppy disk - maybe some bad sectors?
 
  


Reply

Tags
bootloader


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Loading firmware into kernel at boot andrixnet Slackware 4 02-20-2014 10:29 AM
how to boot linux kernel with my own simple bootloader mhdjavanmardi Linux - Kernel 5 07-16-2012 01:15 AM
Bootloader not loading? yan0 Linux - Software 3 09-17-2007 10:36 PM
Kernel not loading all modules on boot fobster Linux - Newbie 5 01-05-2006 01:32 PM
Bootloader not loading Purest Warrior Linux - Newbie 3 02-14-2003 08:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration