Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
53945296
Commit
53945296
authored
Mar 23, 2003
by
Alan Cox
Committed by
Linus Torvalds
Mar 23, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Osamu's updates to boot98
[From Osamu Tomita]
parent
190efe3f
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
11 deletions
+52
-11
arch/i386/boot98/Makefile
arch/i386/boot98/Makefile
+32
-5
arch/i386/boot98/compressed/Makefile
arch/i386/boot98/compressed/Makefile
+1
-1
arch/i386/boot98/mtools.conf.in
arch/i386/boot98/mtools.conf.in
+17
-0
arch/i386/boot98/tools/build.c
arch/i386/boot98/tools/build.c
+2
-5
No files found.
arch/i386/boot98/Makefile
View file @
53945296
...
...
@@ -25,9 +25,8 @@ SVGA_MODE := -DSVGA_MODE=NORMAL_VGA
#RAMDISK := -DRAMDISK=512
EXTRA_TARGETS
:=
vmlinux.bin bootsect bootsect.o
\
setup setup.o zImage bzImage
targets
:=
vmlinux.bin bootsect bootsect.o setup setup.o
\
zImage bzImage
subdir-
:=
compressed
host-progs
:=
tools/build
...
...
@@ -62,8 +61,36 @@ $(obj)/compressed/vmlinux: FORCE
$(Q)$(MAKE)
-f
scripts/Makefile.build
obj
=
$(obj)
/compressed
\
IMAGE_OFFSET
=
$(IMAGE_OFFSET)
$@
zdisk
:
$(BOOTIMAGE)
dd
bs
=
8192
if
=
$(BOOTIMAGE)
of
=
/dev/fd0
# Set this if you want to pass append arguments to the zdisk/fdimage kernel
FDARGS
=
$(obj)/mtools.conf
:
$(src)/mtools.conf.in
sed
-e
's|@OBJ@|
$(obj)
|g'
<
$<
>
$@
# This requires write access to /dev/fd0
zdisk
:
$(BOOTIMAGE) $(obj)/mtools.conf
MTOOLSRC
=
$(obj)
/mtools.conf mformat a:
;
sync
syslinux /dev/fd0
;
sync
echo
'default linux
$(FDARGS)
'
|
\
MTOOLSRC
=
$(src)
/mtools.conf mcopy - a:syslinux.cfg
MTOOLSRC
=
$(obj)
/mtools.conf mcopy
$(BOOTIMAGE)
a:linux
;
sync
# These require being root or having syslinux 2.02 or higher installed
fdimage fdimage144
:
$(BOOTIMAGE) $(obj)/mtools.conf
dd
if
=
/dev/zero
of
=
$(obj)
/fdimage
bs
=
1024
count
=
1440
MTOOLSRC
=
$(obj)
/mtools.conf mformat v:
;
sync
syslinux
$(obj)
/fdimage
;
sync
echo
'default linux
$(FDARGS)
'
|
\
MTOOLSRC
=
$(obj)
/mtools.conf mcopy - v:syslinux.cfg
MTOOLSRC
=
$(obj)
/mtools.conf mcopy
$(BOOTIMAGE)
v:linux
;
sync
fdimage288
:
$(BOOTIMAGE) $(obj)/mtools.conf
dd
if
=
/dev/zero
of
=
$(obj)
/fdimage
bs
=
1024
count
=
2880
MTOOLSRC
=
$(obj)
/mtools.conf mformat w:
;
sync
syslinux
$(obj)
/fdimage
;
sync
echo
'default linux
$(FDARGS)
'
|
\
MTOOLSRC
=
$(obj)
/mtools.conf mcopy - w:syslinux.cfg
MTOOLSRC
=
$(obj)
/mtools.conf mcopy
$(BOOTIMAGE)
w:linux
;
sync
zlilo
:
$(BOOTIMAGE)
if
[
-f
$(INSTALL_PATH)
/vmlinuz
]
;
then
mv
$(INSTALL_PATH)
/vmlinuz
$(INSTALL_PATH)
/vmlinuz.old
;
fi
...
...
arch/i386/boot98/compressed/Makefile
View file @
53945296
...
...
@@ -4,7 +4,7 @@
# create a compressed vmlinux image from the original vmlinux
#
EXTRA_TARGETS
:=
vmlinux vmlinux.bin vmlinux.bin.gz head.o misc.o piggy.o
targets
:=
vmlinux vmlinux.bin vmlinux.bin.gz head.o misc.o piggy.o
EXTRA_AFLAGS
:=
-traditional
LDFLAGS_vmlinux
:=
-Ttext
$(IMAGE_OFFSET)
-e
startup_32
...
...
arch/i386/boot98/mtools.conf.in
0 → 100644
View file @
53945296
#
# mtools configuration file for "make (b)zdisk"
#
# Actual floppy drive
drive a:
file="/dev/fd0"
# 1.44 MB floppy disk image
drive v:
file="@OBJ@/fdimage" cylinders=80 heads=2 sectors=18 filter
# 2.88 MB floppy disk image (mostly for virtual uses)
drive w:
file="@OBJ@/fdimage" cylinders=80 heads=2 sectors=36 filter
arch/i386/boot98/tools/build.c
View file @
53945296
...
...
@@ -149,13 +149,10 @@ int main(int argc, char ** argv)
sz
=
sb
.
st_size
;
fprintf
(
stderr
,
"System is %d kB
\n
"
,
sz
/
1024
);
sys_size
=
(
sz
+
15
)
/
16
;
/* 0x
28000*16 = 2.5 MB, conservativ
e estimate for the current maximum */
if
(
sys_size
>
(
is_big_kernel
?
0x
28
000
:
DEF_SYSSIZE
))
/* 0x
40000*16 = 4.0 MB, reasonabl
e estimate for the current maximum */
if
(
sys_size
>
(
is_big_kernel
?
0x
40
000
:
DEF_SYSSIZE
))
die
(
"System is too big. Try using %smodules."
,
is_big_kernel
?
""
:
"bzImage or "
);
if
(
sys_size
>
0xefff
)
fprintf
(
stderr
,
"warning: kernel is too big for standalone boot "
"from floppy
\n
"
);
while
(
sz
>
0
)
{
int
l
,
n
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment