File: README.floppy

package info (click to toggle)
emile 0.10-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,716 kB
  • ctags: 2,737
  • sloc: ansic: 18,908; makefile: 726; asm: 622; sh: 2
file content (92 lines) | stat: -rw-r--r-- 2,878 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
This file explains how to install EMILE to boot from a floppy

--------------------------------------------------------------------------------
How to Create a floppy from rescue disk image
--------------------------------------------------------------------------------

You can find floppy image from the package emile-rescue

Under linux, the command to dump image to floppy is:

	# dd if=emile-rescue-x.y.bin of=/dev/fd0 bs=512 conv=sync

then, you can eject floppy with:

	# eject /dev/fd0
	

If you are using MacOS, use MakeDebianFloppy AppleScript
(you must use a floppy image with a size of exactly 1474560 bytes).
If you are neither using linux, nor MacOS, please refer to rawrite page

--------------------------------------------------------------------------------
How to Change the kernel boot arguments
--------------------------------------------------------------------------------

The command to set kernel boot arguments is emile-set-cmdline:

        emile-set-cmdline <image> <cmdline>
        

    * <image> is the floppy image or a device file (/dev/fd0) to set
    * <cmdline> is new kernel boot arguments

For instance, to set root filesystem on disk 1 partition 4

 	# emile-set-cmdline floppy.img "root=/dev/sda4"
        

To set root filesystem on ramdisk

 	# emile-set-cmdline floppy.img "root=/dev/ramdisk ramdisk_size=2048"
 	

To set root filesystem on NFS

 	# emile-set-cmdline floppy.img \

	"root=/dev/nfs ip=dhcp nfsroot=192.168.100.1:/tftboot/192.168.100.51/"
	

You can also read current boot arguments from floppy:

	# emile-set-cmdline -r /dev/fd0
	Current command line: "root=/dev/ramdisk ramdisk_size=2048"
	
--------------------------------------------------------------------------------
How to Create your floppy image with your kernel
--------------------------------------------------------------------------------

First of all, you must "flatten" the kernel object:

	# objcopy -I elf32-big -O binary -R .note -R .comment -S vmlinux vmlinux.bin
	

To allocate correct buffer size during uncompress, EMILE needs to know the size of flattened kernel:

	# ls -l vmlinux.bin
	-rwxr-xr-x    1 m68k     users     1290240 2004-06-09 22:41 vmlinux.bin
	

You can now compress kernel with gzip (bzip2 is not supported by EMILE):

	# gzip -9 vmlinux.bin
	

You can copy first and second level bootloader and kernel to floppy:

	# emile-install -f first -s second -i vmlinux.bin.gz -b 1290240 /dev/fd0
	

And finally, you can set kernel boot arguments:

	# emile-set-cmdline /dev/fd0 "root=/dev/sda4"
	

If you have a ramdisk, the two last steps become:

	# emile-install -f first -s second -i vmlinux.bin.gz -b 1290240 -r ramdisk.gz /dev/fd0
	# emile-set-cmdline /dev/fd0 "root=/dev/ramdisk ramdisk_size=2048"
	
--------------------------------------------------------------------------------
Laurent Vivier <LaurentVivier@wanadoo.fr>