Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Anton Palgunov
mkimage-profiles
Commits
2b6c37af
Commit
2b6c37af
authored
Apr 22, 2021
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
grub, hdt: Add hdt support for grub-pc (memdisk + floppy image)
Note: syslinux --install needed /proc, so: @$(call set,GLOBAL_HSH_PROC,1) See-also: mkimage/doc/README.ru
parent
09d751fc
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
1 deletion
+37
-1
90hdt_bios.cfg
features.in/grub/cfg.in/90hdt_bios.cfg
+6
-0
config.mk
features.in/hdt/config.mk
+4
-1
10-hdt-img
features.in/hdt/stage1/scripts.d/10-hdt-img
+27
-0
No files found.
features.in/grub/cfg.in/90hdt_bios.cfg
0 → 100644
View file @
2b6c37af
if [ "$grub_platform" = "pc" ]; then
menuentry "Hardware Info" {
linux16 /boot/memdisk
initrd16 /boot/hdt.img
}
fi
features.in/hdt/config.mk
View file @
2b6c37af
# optimized out use/syslinux due to use/memtest
# optimized out use/syslinux due to use/memtest
ifeq (,$(filter-out i586 x86_64,$(ARCH)))
ifeq (,$(filter-out i586 x86_64,$(ARCH)))
use/hdt: use/memtest
use/hdt: use/
syslinux use/
memtest
@$(call add_feature)
@$(call add_feature)
@$(call add,STAGE1_PACKAGES,pciids)
@$(call add,STAGE1_PACKAGES,pciids)
@$(call add,STAGE1_PACKAGES,dosfstools)
@$(call add,SYSLINUX_MODULES,hdt)
@$(call add,SYSLINUX_MODULES,hdt)
@$(call add,GRUB_CFG,hdt_bios)
@$(call set,GLOBAL_HSH_PROC,1)
else
else
use/hdt: ; @:
use/hdt: ; @:
endif
endif
features.in/hdt/stage1/scripts.d/10-hdt-img
0 → 100755
View file @
2b6c37af
#!/bin/sh -efu
[
"
$GLOBAL_BOOTLOADER
"
=
grubpcboot
]
||
exit
0
cd
"
$WORKDIR
"
mkdir
-p
boot syslinux
cp
/usr/lib/syslinux/hdt.c32
"
$WORKDIR
"
/syslinux/
cat
>
syslinux/syslinux.cfg
<<
EOF
default hdt
label hdt
menu label ^Hardware info
com32 hdt.c32
append quiet
EOF
# floppy disk 720 KiB
dd
if
=
/dev/zero
of
=
boot/hdt.img
bs
=
512
count
=
"1440"
mkfs.fat
-n
HDT
-F
12 boot/hdt.img
mcopy
-i
boot/hdt.img
-s
syslinux ::
#dd if=/usr/lib/syslinux/ldlinux.bss of=boot/hdt.img conv=notrunc
syslinux
-d
/syslinux
--install
boot/hdt.img
rm
-r
syslinux
cp
/usr/lib/syslinux/memdisk boot
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