flat assembler
Message board for the users of flat assembler.

Index > MenuetOS > small tip to install menuetos in Linux.

Author
Thread Post new topic Reply to topic
fasm9



Joined: 19 Jun 2003
Posts: 439
fasm9 02 Aug 2004, 05:22
or any OS image,

if you have menuetos.img and have to install it floppy under Linux,
Try this and boycott DD command :)

debian:~# cat menuetos.img > /dev/fd0

if you have to install SolOS in Linux

debian:~# cat os8.flp > /dev/fd0

see? it's just easy as hell! :)

--
Post 02 Aug 2004, 05:22
View user's profile Send private message Reply with quote
spideros1



Joined: 17 Jan 2004
Posts: 77
Location: Poland
spideros1 02 Aug 2004, 06:11
I wrote small stub that allows you to load Menuet kernel from any linux loader.
http://menuetlibc.sourceforge.net/mldr.tar.bz2
cat ldr with kernel.mnt

e.g.
cat ldr kernel.mnt > kernel.bin

and load kernel.bin from any linux loader. Loader thinks that it loads linux kernel.
Post 02 Aug 2004, 06:11
View user's profile Send private message Visit poster's website Reply with quote
crc



Joined: 21 Jun 2003
Posts: 637
Location: Penndel, PA [USA]
crc 02 Aug 2004, 07:57
I prefer to use 'dd' as it can be slightly more reliable than 'cat' for this task:

Code:
  dd if=floppy.img of=/dev/fd0

OR:

  cp ldr.bin kernel.bin
  dd if=floppy.img >>kernel.bin
    
Post 02 Aug 2004, 07:57
View user's profile Send private message Visit poster's website Reply with quote
spideros1



Joined: 17 Jan 2004
Posts: 77
Location: Poland
spideros1 02 Aug 2004, 10:32
crc wrote:
I prefer to use 'dd' as it can be slightly more reliable than 'cat' for this task:

Code:
  dd if=floppy.img of=/dev/fd0OR:  cp ldr.bin kernel.bin  dd if=floppy.img >>kernel.bin    


This is bad for ldr.bin. You have to concat. ldr & kernel.mnt to get kernel image with fake bootsector & setup code, so that linux loader think that they load linux image.
Post 02 Aug 2004, 10:32
View user's profile Send private message Visit poster's website Reply with quote
crc



Joined: 21 Jun 2003
Posts: 637
Location: Penndel, PA [USA]
crc 02 Aug 2004, 10:47
Quote:
This is bad for ldr.bin. You have to concat. ldr & kernel.mnt to get kernel image with fake bootsector & setup code, so that linux loader think that they load linux image.


I think I see the mistake. It should have been:

Code:
cp ldr.bin kernel.bin
dd if=kernel.mnt >>kernel.bin
    


I had it concating ldr.bin with the floppy image at first...
Post 02 Aug 2004, 10:47
View user's profile Send private message Visit poster's website Reply with quote
fasm9



Joined: 19 Jun 2003
Posts: 439
fasm9 02 Aug 2004, 11:26
Thanks!

and as of now, i can't use it,
i am running console-linux(ext3,JFS), there is no FAT16/32 in my HDD.

spideros1 wrote:
I wrote small stub that allows you to load Menuet kernel from any linux loader.
http://menuetlibc.sourceforge.net/mldr.tar.bz2
cat ldr with kernel.mnt

e.g.
cat ldr kernel.mnt > kernel.bin

and load kernel.bin from any linux loader. Loader thinks that it loads linux kernel.
Post 02 Aug 2004, 11:26
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.