All of lore.kernel.org
 help / color / mirror / Atom feed
* GRUB2 hangs on boot from floppy
@ 2004-03-18  8:39 Sergey Matveychuk
  2004-03-18 12:34 ` Yoshinori K. Okuji
  0 siblings, 1 reply; 9+ messages in thread
From: Sergey Matveychuk @ 2004-03-18  8:39 UTC (permalink / raw)
  To: The development of GRUB 2

Hello!

I've made a floppy as described in README file.
It start booting with message:
PUPA loadind kernel

clears screen and hangs with three flashed color chars in random positions.

When I press a reset button I can't boot with BIOS beeping. I need to 
turn off my computer on a few seconds and turn on again for the normal 
operation.

I have Epox 8RDA3+ motherboad with nForce2 Ultra400 chipset. Builtin 
ATA133 controller and two Maxtor disks.

Need you more info about my hardware?

I've build GRUB2 on FreeBSD. But I've write core.img on my floppy I've 
got this message:

# dd if=core.img of=/dev/fd0 bs=512 seek=1
dd: /dev/fd0: Invalid argument
41+1 records in
41+0 records out
20992 bytes transferred in 1.038010 secs (20223 bytes/sec)

I've tried different floppy disks to be sure they are good. With all of 
them I've got that message.

# ls -la boot.img core.img
-rwxr-xr-x  1 root  wheel    512 Mar 16 10:10 boot.img
-rw-r--r--  1 root  wheel  21256 Mar 16 10:11 core.img

It looks like dd can't write full core.img? Why?
How can I fix it?

(GRUB1 boots well for me)
-- 
Sem.



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: GRUB2 hangs on boot from floppy
  2004-03-18  8:39 GRUB2 hangs on boot from floppy Sergey Matveychuk
@ 2004-03-18 12:34 ` Yoshinori K. Okuji
  2004-03-18 13:17   ` Sergey Matveychuk
  2004-03-18 17:18   ` Marco Gerards
  0 siblings, 2 replies; 9+ messages in thread
From: Yoshinori K. Okuji @ 2004-03-18 12:34 UTC (permalink / raw)
  To: The development of GRUB 2

On Thursday 18 March 2004 09:39, Sergey Matveychuk wrote:
> # dd if=core.img of=/dev/fd0 bs=512 seek=1
> dd: /dev/fd0: Invalid argument
> 41+1 records in
> 41+0 records out
> 20992 bytes transferred in 1.038010 secs (20223 bytes/sec)
>
> I've tried different floppy disks to be sure they are good. With all
> of them I've got that message.
>
> # ls -la boot.img core.img
> -rwxr-xr-x  1 root  wheel    512 Mar 16 10:10 boot.img
> -rw-r--r--  1 root  wheel  21256 Mar 16 10:11 core.img
>
> It looks like dd can't write full core.img? Why?
> How can I fix it?

Apparently, dd fails in your environment. Doesn't your FreeBSD support 
seeking on a floppy device?

Okuji




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: GRUB2 hangs on boot from floppy
  2004-03-18 12:34 ` Yoshinori K. Okuji
@ 2004-03-18 13:17   ` Sergey Matveychuk
  2004-03-18 17:18   ` Marco Gerards
  1 sibling, 0 replies; 9+ messages in thread
From: Sergey Matveychuk @ 2004-03-18 13:17 UTC (permalink / raw)
  To: The development of GRUB 2

Yoshinori K. Okuji wrote:

> On Thursday 18 March 2004 09:39, Sergey Matveychuk wrote:
> 
>># dd if=core.img of=/dev/fd0 bs=512 seek=1
>>dd: /dev/fd0: Invalid argument
>>41+1 records in
>>41+0 records out
>>20992 bytes transferred in 1.038010 secs (20223 bytes/sec)
>>
>>I've tried different floppy disks to be sure they are good. With all
>>of them I've got that message.
>>
>># ls -la boot.img core.img
>>-rwxr-xr-x  1 root  wheel    512 Mar 16 10:10 boot.img
>>-rw-r--r--  1 root  wheel  21256 Mar 16 10:11 core.img
>>
>>It looks like dd can't write full core.img? Why?
>>How can I fix it?
> 
> 
> Apparently, dd fails in your environment. Doesn't your FreeBSD support 
> seeking on a floppy device?

Hmmm. I'm not sure. But I wrote GRUB1 floppy this way and it works.
May be we need something like sector align? I don't know dd deeply.

-- 
Sem.



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: GRUB2 hangs on boot from floppy
  2004-03-18 12:34 ` Yoshinori K. Okuji
  2004-03-18 13:17   ` Sergey Matveychuk
@ 2004-03-18 17:18   ` Marco Gerards
  2004-03-18 22:09     ` Sergey Matveychuk
  1 sibling, 1 reply; 9+ messages in thread
From: Marco Gerards @ 2004-03-18 17:18 UTC (permalink / raw)
  To: The development of GRUB 2

"Yoshinori K. Okuji" <okuji@enbug.org> writes:

>> It looks like dd can't write full core.img? Why?
>> How can I fix it?
>
> Apparently, dd fails in your environment. Doesn't your FreeBSD support 
> seeking on a floppy device?

That would be weird, but it looks like it.

Sergey, can you write to a file first and write that file to disk?

--
Marco




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: GRUB2 hangs on boot from floppy
  2004-03-18 17:18   ` Marco Gerards
@ 2004-03-18 22:09     ` Sergey Matveychuk
  2004-03-19 10:16       ` Yoshinori K. Okuji
  0 siblings, 1 reply; 9+ messages in thread
From: Sergey Matveychuk @ 2004-03-18 22:09 UTC (permalink / raw)
  To: The development of GRUB 2

Marco Gerards wrote:
> "Yoshinori K. Okuji" <okuji@enbug.org> writes:
>>Apparently, dd fails in your environment. Doesn't your FreeBSD support 
>>seeking on a floppy device?
> 
> 
> That would be weird, but it looks like it.
> 
> Sergey, can you write to a file first and write that file to disk?

Magic? :)
Does not work. The same result.

-- 
Sem.



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: GRUB2 hangs on boot from floppy
  2004-03-18 22:09     ` Sergey Matveychuk
@ 2004-03-19 10:16       ` Yoshinori K. Okuji
  2004-03-19 11:01         ` Sergey Matveychuk
  0 siblings, 1 reply; 9+ messages in thread
From: Yoshinori K. Okuji @ 2004-03-19 10:16 UTC (permalink / raw)
  To: The development of GRUB 2

On Thursday 18 March 2004 23:09, Sergey Matveychuk wrote:
> Does not work. The same result.

Sergey, could you try your floppy image file with Bochs?

Okuji




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: GRUB2 hangs on boot from floppy
  2004-03-19 10:16       ` Yoshinori K. Okuji
@ 2004-03-19 11:01         ` Sergey Matveychuk
  2004-03-19 11:58           ` Yoshinori K. Okuji
  0 siblings, 1 reply; 9+ messages in thread
From: Sergey Matveychuk @ 2004-03-19 11:01 UTC (permalink / raw)
  To: The development of GRUB 2

Yoshinori K. Okuji wrote:

> On Thursday 18 March 2004 23:09, Sergey Matveychuk wrote:
> 
>>Does not work. The same result.
> 
> 
> Sergey, could you try your floppy image file with Bochs?

I installed bochs about a half year ago. But I couldn't to learn how can 
I debug grub with it.

The problem was descided with:

# dd if=core.img of=/dev/fd0 seek=1 conv=osync
41+1 records in
42+0 records out
21504 bytes transferred in 1.839696 secs (11689 bytes/sec)

grub2 has loaded and looks works. But when I press the reset button I 
still can't boot. I need to power off and on to boot my computer again.

-- 
Sem.



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: GRUB2 hangs on boot from floppy
  2004-03-19 11:01         ` Sergey Matveychuk
@ 2004-03-19 11:58           ` Yoshinori K. Okuji
  2004-03-19 12:40             ` Sergey Matveychuk
  0 siblings, 1 reply; 9+ messages in thread
From: Yoshinori K. Okuji @ 2004-03-19 11:58 UTC (permalink / raw)
  To: The development of GRUB 2

On Friday 19 March 2004 12:01, Sergey Matveychuk wrote:
> I installed bochs about a half year ago. But I couldn't to learn how
> can I debug grub with it.

Bochs is very convenient for debugging GRUB, so please study how to use 
it. :)

Basically, you just need to make a config file for bochs, based on a 
sample config file, and run bochs. And, you will know if your problem 
is hardware-specific or not.

Regards,
Okuji




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: GRUB2 hangs on boot from floppy
  2004-03-19 11:58           ` Yoshinori K. Okuji
@ 2004-03-19 12:40             ` Sergey Matveychuk
  0 siblings, 0 replies; 9+ messages in thread
From: Sergey Matveychuk @ 2004-03-19 12:40 UTC (permalink / raw)
  To: The development of GRUB 2

Yoshinori K. Okuji wrote:

> Bochs is very convenient for debugging GRUB, so please study how to use 
> it. :)
> 
> Basically, you just need to make a config file for bochs, based on a 
> sample config file, and run bochs. And, you will know if your problem 
> is hardware-specific or not.

I see. I've made bochs running. But I thought I can to debug grub with 
bochs with more profound way.

-- 
Sem.



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-03-19 12:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-18  8:39 GRUB2 hangs on boot from floppy Sergey Matveychuk
2004-03-18 12:34 ` Yoshinori K. Okuji
2004-03-18 13:17   ` Sergey Matveychuk
2004-03-18 17:18   ` Marco Gerards
2004-03-18 22:09     ` Sergey Matveychuk
2004-03-19 10:16       ` Yoshinori K. Okuji
2004-03-19 11:01         ` Sergey Matveychuk
2004-03-19 11:58           ` Yoshinori K. Okuji
2004-03-19 12:40             ` Sergey Matveychuk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.