SliTaz SliTaz Forum

You are not logged in.

#1 2023-02-04 15:31:57

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Something wrong in grub4dos compile_rules()

The [c]grub4dos-linux[/c] package does not install grub4dos correctly:

in nik57's case, the screen freezes at boot with the message [c]GRUB Loading stage 1.5[/c];

in my case, the computer reboots immediately after [c]GRUB Loading stage 1.5[/c] is displayed.

Installing [c]grub4dos[/c] from Slitaz 4.0 is OK.

I compared files 4.0 / Rolling; the main difference is in the [c]stage2[/c] file size (166.7 kB in Rolling, 209.1 kB in 4.0).

Recompiling grub4dos after having commented the 3 lines

[c]sed -i 's|-O binary conftest|--only-section=.text &|' acinclude.m4 configure
sed -i 's|-O binary|--only-section=.text &|' stage?/Makefile*
sed -i 's|-Wl,-Ttext|-Wl,--section-start=.note.gnu.property=1000 &|' stage2/Makefile*[/c]
in [c]compile_rules()[/c] in the [c]grub4dos[/c] package's receipt allows then to produce a valid [c]grub4dos-linux[/c] package.

(these 3 lines do not exist in the 4.0 receipt)

Offline

#2 2023-02-06 08:28:35

alanyih
Administrator
Registered: 2011-04-02
Posts: 532

Re: Something wrong in grub4dos compile_rules()

@Ceel,

Try grub4dos-0.4.6a-2022-12-22

build

#! /bin/sh

#

# Script to build binary

#

# Usage:

#    sh build

# or

#    ./build

SOURCE_DIR=[c]pwd[/c]

VER=[c]cat grub4dos_version[/c]

https://github.com/chenall/grub4dos/blob/0.4.6a/build

Source code(tar.gz)

https://github.com/chenall/grub4dos/archive/refs/tags/0.4.6a.tar.gz

or

official build

grub4dos-0.4.6a-2022-12-22.7z          548 KB Dec 22, 2022

https://github.com/chenall/grub4dos/releases/download/0.4.6a/grub4dos-0.4.6a-2022-12-22.7z

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.018 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]