[PATCH v5 2/5] Import b64dec from gpg-error

2024-09-08 Thread Vladimir Serbinenko
Base on libgpg-error 1.49 but with modifications to make it compile in GRUB environment Signed-off-by: Vladimir Serbinenko --- grub-core/lib/b64dec.c | 293 + 1 file changed, 293 insertions(+) create mode 100644 grub-core/lib/b64dec.c diff --git a/grub

[PATCH v5 4/5] Add DSA and RSA SEXP tests

2024-09-08 Thread Vladimir Serbinenko
This allows us to test purely the integration of the implementation of DSA and RSA from libgcrypt without concerning with additional code. Signed-off-by: Vladimir Serbinenko --- grub-core/tests/dsa_sexp_test.c | 125 grub-core/tests/rsa_sexp_test.c | 99

[PATCH v5 3/5] Adjust import script, definitions and API users for libgcrypt 1.11

2024-09-08 Thread Vladimir Serbinenko
Signed-off-by: Vladimir Serbinenko --- autogen.sh| 5 + conf/Makefile.common | 4 +- grub-core/Makefile.core.def | 36 ++- grub-core/commands/hashsum.c | 2 +- grub-core/commands/legacycfg.c

[PATCH v5 5/5] keccak: Disable acceleration with SSE asm

2024-09-08 Thread Vladimir Serbinenko
Libgcrypt code assumes that on x64 all SSE registers are fair game. While it's true that CPUs in question support it, we disable it in our compilation options. Disable the offending optimization. Signed-off-by: Vladimir Serbinenko --- .../lib/libgcrypt-patches/02_keccak_sse.patch

[PATCH v6 2/6] Import b64dec from gpg-error

2024-09-11 Thread Vladimir Serbinenko
Base on libgpg-error 1.49 but with modifications to make it compile in GRUB environment Signed-off-by: Vladimir Serbinenko --- grub-core/lib/b64dec.c | 293 + 1 file changed, 293 insertions(+) create mode 100644 grub-core/lib/b64dec.c diff --git a/grub

[PATCH v6 3/6] Adjust import script, definitions and API users for libgcrypt 1.11

2024-09-11 Thread Vladimir Serbinenko
Signed-off-by: Vladimir Serbinenko --- autogen.sh| 5 + conf/Makefile.common | 4 +- grub-core/Makefile.core.def | 36 ++- grub-core/commands/hashsum.c | 2 +- grub-core/commands/legacycfg.c

[PATCH v6 6/6] Implement __aeabi_uldivmod

2024-09-11 Thread Vladimir Serbinenko
Some arm compilers insert 64-bit division into the code compiled from libgcrypt source and possibly others. Rether than fighting it, simply provide the function in question. Signed-off-by: Vladimir Serbinenko --- grub-core/kern/arm/compiler-rt.S | 11 +++ include/grub/compiler-rt.h

[PATCH v6 4/6] Add DSA and RSA SEXP tests

2024-09-11 Thread Vladimir Serbinenko
This allows us to test purely the integration of the implementation of DSA and RSA from libgcrypt without concerning with additional code. Signed-off-by: Vladimir Serbinenko --- grub-core/tests/dsa_sexp_test.c | 125 grub-core/tests/rsa_sexp_test.c | 99

[PATCH v6 5/6] keccak: Disable acceleration with SSE asm

2024-09-11 Thread Vladimir Serbinenko
Libgcrypt code assumes that on x64 all SSE registers are fair game. While it's true that CPUs in question support it, we disable it in our compilation options. Disable the offending optimization. Signed-off-by: Vladimir Serbinenko --- .../lib/libgcrypt-patches/02_keccak_sse.patch

[PATCH 6/9] cmd_set_date: Ignore garbage line at shutdown

2024-09-11 Thread Vladimir Serbinenko
Fedora arm-efi and riscv64-efi are verbose and add a garbage line when shutting down. Ignore it Signed-off-by: Vladimir Serbinenko --- tests/grub_cmd_set_date.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/grub_cmd_set_date.in b/tests/grub_cmd_set_date.in index

[PATCH 7/9] partmap_test: Accept hd1 on arm-efi

2024-09-11 Thread Vladimir Serbinenko
Whether it's hd1 or hd2 depends on firmware. Just accept both variants. Signed-off-by: Vladimir Serbinenko --- tests/partmap_test.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/partmap_test.in b/tests/partmap_test.in index 4138e88fe..d67ad100f 100644 --- a/

[PATCH 1/9] grub-shell: Support riscv64-efi

2024-09-11 Thread Vladimir Serbinenko
Signed-off-by: Vladimir Serbinenko --- tests/util/grub-shell.in | 43 +++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/tests/util/grub-shell.in b/tests/util/grub-shell.in index ae5f711fe..04405a789 100644 --- a/tests/util/grub-shell.in +++ b

[PATCH 9/9] grub-shell: Explicitly specify firmware for i386-ieee1275

2024-09-11 Thread Vladimir Serbinenko
Signed-off-by: Vladimir Serbinenko --- tests/util/grub-shell.in | 6 ++ 1 file changed, 6 insertions(+) diff --git a/tests/util/grub-shell.in b/tests/util/grub-shell.in index 4b0900a32..de1eba83e 100644 --- a/tests/util/grub-shell.in +++ b/tests/util/grub-shell.in @@ -165,6 +165,12 @@ case

[PATCH 3/9] grub-shell: Update qemu name of the machine

2024-09-11 Thread Vladimir Serbinenko
--- tests/util/grub-shell.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/util/grub-shell.in b/tests/util/grub-shell.in index e79296ccd..84fb6682f 100644 --- a/tests/util/grub-shell.in +++ b/tests/util/grub-shell.in @@ -144,7 +144,7 @@ case "${grub_modinfo_target_cpu}-

[PATCH 4/9] grub-shell: Temporarily use reboot on fuloong2e

2024-09-11 Thread Vladimir Serbinenko
Until we figure out why normal shutdown doesn't work, use reboot instead Signed-off-by: Vladimir Serbinenko --- tests/util/grub-shell.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/util/grub-shell.in b/tests/util/grub-shell.in index 84fb6682f..35ecc28dc 1

[PATCH 5/9] grub-shell: Support Fedora arm-efi

2024-09-11 Thread Vladimir Serbinenko
This needs 2 adjustments: * No separate vars file * Shutdown command is too chatty so we need to trim it. Signed-off-by: Vladimir Serbinenko --- tests/util/grub-shell.in | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/util/grub-shell.in b/tests/util/grub

[PATCH 8/9] grub-shell: Ignore trailing garbage on loongarch64-efi

2024-09-11 Thread Vladimir Serbinenko
--- tests/util/grub-shell.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/util/grub-shell.in b/tests/util/grub-shell.in index b7a7dff01..4b0900a32 100644 --- a/tests/util/grub-shell.in +++ b/tests/util/grub-shell.in @@ -544,7 +544,7 @@ source "\$prefix/testcase.cfg" #

[PATCH 2/9] grub-shell: Support Fedora path for ovmf32

2024-09-11 Thread Vladimir Serbinenko
Signed-off-by: Vladimir Serbinenko --- tests/util/grub-shell.in | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/util/grub-shell.in b/tests/util/grub-shell.in index 04405a789..e79296ccd 100644 --- a/tests/util/grub-shell.in +++ b/tests/util/grub-shell.in @@ -192,6

[PATCH 8/8] configure: Try -msoft-float -mfloat-abi=soft on arm

2024-09-11 Thread Vladimir Serbinenko
Signed-off-by: Vladimir Serbinenko --- configure.ac | 5 + 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index d4a14bf93..2bca8814b 100644 --- a/configure.ac +++ b/configure.ac @@ -941,6 +941,11 @@ if test x"$platform" != xemu ; then AC_COMP

[PATCH 1/8] riscv64: Support riscv_align relocations

2024-09-11 Thread Vladimir Serbinenko
They are purely for optimization, so no need to do anything. Signed-off-by: Vladimir Serbinenko --- grub-core/kern/riscv/dl.c | 1 + util/grub-mkimagexx.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/grub-core/kern/riscv/dl.c b/grub-core/kern/riscv/dl.c index 896653bb4..c47db6959

[PATCH 3/8] Support clang integrated-as sparc64

2024-09-11 Thread Vladimir Serbinenko
--- asm-tests/sparc64.S| 2 +- grub-core/boot/sparc64/ieee1275/boot.S | 3 +++ grub-core/boot/sparc64/ieee1275/diskboot.S | 3 +++ grub-core/kern/sparc64/ieee1275/crt0.S | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/asm-tests/sparc64.S b/asm

[PATCH 4/8] powerpc-ieee1275: Fix warnings and alignment

2024-09-11 Thread Vladimir Serbinenko
Signed-off-by: Vladimir Serbinenko --- grub-core/kern/ieee1275/init.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/grub-core/kern/ieee1275/init.c b/grub-core/kern/ieee1275/init.c index dfbd0b899..e3abd51a8 100644 --- a/grub-core/kern/ieee1275/init.c

[PATCH 2/8] compiler-rt: Add __multi3

2024-09-11 Thread Vladimir Serbinenko
It's necessary for clang sparc64 support --- grub-core/kern/compiler-rt.c | 58 include/grub/compiler-rt.h | 7 + 2 files changed, 65 insertions(+) diff --git a/grub-core/kern/compiler-rt.c b/grub-core/kern/compiler-rt.c index eda689a0c..2902ed03d 10064

[PATCH 6/8] btrfs: Add an explicit GRUB_PACKED

2024-09-11 Thread Vladimir Serbinenko
Otherwise clang on arm complains --- grub-core/fs/btrfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grub-core/fs/btrfs.c b/grub-core/fs/btrfs.c index ba0c58352..0b06bc824 100644 --- a/grub-core/fs/btrfs.c +++ b/grub-core/fs/btrfs.c @@ -222,7 +222,7 @@ struct grub_btrfs_ex

[PATCH 5/8] efi/linux: Silence warning

2024-09-11 Thread Vladimir Serbinenko
--- grub-core/loader/efi/linux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/grub-core/loader/efi/linux.c b/grub-core/loader/efi/linux.c index bfbd95aee..bcb39c40a 100644 --- a/grub-core/loader/efi/linux.c +++ b/grub-core/loader/efi/linux.c @@ -55,6 +55,7 @@ static bool initrd_use_loadfile

[PATCH 7/8] Enable __clzsi2/__clzdi2 on arm

2024-09-11 Thread Vladimir Serbinenko
It's emitted by clang --- grub-core/kern/compiler-rt.c | 4 +--- include/grub/compiler-rt.h | 5 + 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/grub-core/kern/compiler-rt.c b/grub-core/kern/compiler-rt.c index 2902ed03d..17ae435c1 100644 --- a/grub-core/kern/compiler-rt.c +

Sendkey, activate, bash

2005-08-01 Thread Vladimir Serbinenko
Also I wrote new module: activate. It's also pc-specific. It's analog of makeactive but with other syntax: active PARTITION. like: activate (hd0,2) Vladimir Serbinenko 2005-08-01 Vladimir Serbinenko <[EMAIL PROTECTED]> Sendkey

Re: Bug-fixing and keystroke

2005-08-02 Thread Vladimir Serbinenko
> > >Serbinenko Vladimir <[EMAIL PROTECTED]> writes: > >>/ 2) How can user call the help? Especially how can user know the/ >>/ available keys? Perhaps this question is more general and we have to/ >>/ extend "help" command?/ > >How about something like `sendkeys --list-keys'. Does that make >sens

Re: grub-probefs

2005-08-02 Thread Vladimir Serbinenko
Yoshinori K. Okuji wrote: >I have implemented grub-probefs which probes a filesystem module right now. If >you have a PC, please test it. Running it has no harm. > >Okuji > > >___ >Grub-devel mailing list >Grub-devel@gnu.org >http://lists.gnu.org/mailma

Re: doc on memory management

2005-08-02 Thread Vladimir Serbinenko
You made an error in grub_memalign prototype: it's void *grub_memalign (grub_size_t align, grub_size_t size); Not: void grub_memalign (grub_size_t align, grub_size_t size); Vladimir ___

Re: Dos in cdrom?

2005-08-03 Thread Vladimir Serbinenko
Look at http://syslinux.zytor.com/memdisk.php And http://bootcd.narod.ru/index_e.htm Vladimir ___ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listin

New patch

2005-08-04 Thread Vladimir Serbinenko
I send a new version of my patch. I added parttype and hide/unhide commands. Can someone have a look at it? (I haven't tested it a lot but it works fine for me ) Vladimir 2005-08-02 Vladimir Serbinenko <[EMAIL P

[DISCUSSION] Journal playback

2005-08-08 Thread Vladimir Serbinenko
I've seen that journal playback is one of TODO items. I think it's bad idea because: 1) It'll increase the size of FS modules. And fs modules are often embed in core image. So their size is critical 2) It'll decrease safety because now GRUB doesn't write to FS and then it'll be so the GRUB's bugs

[BUGFIX] pc_partition_map and grub_setup

2005-08-08 Thread Vladimir Serbinenko
I tried to install GRUB2 to a partition and found a bug in pc_partition_map: in pc_partition_map_iterate pcdata was a local variable and its address was written to p and p was returned. 2005-08-08 Vladimir Serbinenko <[EMAIL PROTECTED]> * partmap/pc.c (pc_partition_map_iterate):

Re: [DISCUSSION] Journal playback

2005-08-08 Thread Vladimir Serbinenko
Marco Gerards wrote: >Vladimir Serbinenko <[EMAIL PROTECTED]> writes: > > > >>I've seen that journal playback is one of TODO items. I think it's bad >>idea because: >> >>1) It'll increase the size of FS modules. And fs modules a

hexcat + grub_ncurses_getwh

2005-08-08 Thread Vladimir Serbinenko
I wrote a new patch: grub_ncurses_getwh + hexcat. hexcat shows the contents of file like hex editors. Vladimir 2005-08-08 Vladimir Serbinenko <[EMAIL PROTECTED]> * commands/hexcat.c: ne

Re: GRUB 1.90 is released

2005-08-10 Thread Vladimir Serbinenko
Vernon Mauery wrote: >Vincent Pelletier wrote: > > >>Vernon Mauery wrote: >> >> >> I am seeing unaligned pointer messages when I use grub2 on /dev/hda2. If I type 'root (hd0,2)', I get 'unaligned pointer 0x7ff94' and if I type 'insmod (hd0,2)/boot/grub/mulitboot.mod', I get 'unal

Re: GRUB 1.90 is released

2005-08-11 Thread Vladimir Serbinenko
Yoshinori K. Okuji wrote: > >Besides that, we must learn from the history. Many years ago, nobody could >imagine that computers would have more than 1MB memory. So the braindead Gate >A20 had to be invented. Likewise, nobody could imagine that hard disks would >exceed 500MB. So LBA mode had to

Re: x86 serial support

2005-08-12 Thread Vladimir Serbinenko
>The only thing I can think of is to disable the menu and replace clear >screen with a newline, which is what Legacy does IIRC. > > > But GRUB Legacy has also a dumb menu support even if it's horrible. Perhaps we must do it like LILO does? Or should we do it more universally? I propose to make m

Re: GRUB 1.90 is released

2005-08-14 Thread Vladimir Serbinenko
Yoshinori K. Okuji wrote: > >Do you mean 80386? Of course, no. I don't have such an old CPU. > > > But some people use old PC like a home servers. But 80386 I suppose is not very used because it can't have more than a few hundred Mb hard disk, which is important criteria for home server, more im

[DISCUSSION] Scripts and menus

2005-08-14 Thread Vladimir Serbinenko
IMHO. Current system with title command is ugly because: -grub.cfg requires the separate parser. IMHO it should be parsed the same way as user input. -Even when scripting support will be ready it's impossible to create multiple menus of the same kind by just a loop (like for x in /boot/

Re: [DISCUSSION] Scripts and menus

2005-08-14 Thread Vladimir Serbinenko
Douglas Wade Needham wrote: >The problem with your idea is that it at least appears to be too >Linux-centric, and forgets entirely about other operating systems, >invalidating the "unified" part of the GRUB name. And I get fed up >when on my machine which as FC3 has one of the OSes (along with Ne

Re: GRUB 1.90 is released

2005-08-14 Thread Vladimir Serbinenko
Yoshinori K. Okuji wrote: >Only if you prove that the current implementation does not work, I will >consider it. > >I have already investigated how other systems deal with Gate A20. For example, >Linux does not do such a thing, but nobody has reported that it does not >work. > > > Ok. after a

Re: [DISCUSSION] Scripts and menus

2005-08-14 Thread Vladimir Serbinenko
Yoshinori K. Okuji wrote: >I have already proposed my idea of making each entry a function before. First, >please describe why you don't think this is not enough. > > > It's only a question of syntax so it's ok but IMHO 2 points are important: 1) It must be possible to set additional attrib

Re: vesafb terminal for testing.

2005-08-14 Thread Vladimir Serbinenko
Vesa Jääskeläinen wrote: >I can try to draft out features that I think is needed and then we can > > >see what is still missing and when it is good enough then implement it. > > > But we need to let the room for the future growth. One of far-looking plans is "eye-candy" menu interface and we d

Re: [DISCUSSION] Scripts and menus

2005-08-14 Thread Vladimir Serbinenko
cuted? Yoshinori K. Okuji wrote: >On Sunday 14 August 2005 18:03, Vladimir Serbinenko wrote: > > >>It's only a question of syntax so it's ok but IMHO 2 points are important: >>1) It must be possible to set additional attributes to a menu entry >> >

Re: vesafb terminal for testing.

2005-08-15 Thread Vladimir Serbinenko
>I see four options here: > >1) design graphics drivers interface and register it when loading >module. Pros is that it is easy to write new graphics drivers. Cons is >that we need to have then virtual screen support (not hard to make). > > > Perhaps the best way >2) improve terminal interface.

Re: vesafb terminal for testing.

2005-08-15 Thread Vladimir Serbinenko
Vincent Pelletier wrote: > Yoshinori K. Okuji wrote: > > >Just to give you some ideas, > > > Same here :) (from simple to ambitious) : > -Pictures corresponding to entries (set a background/in front > of/near/instead of) > -customisable positions for menu entries (ubuntu could out them in > circle

Re: Grub 2 Grub Super Disk WishList

2005-08-18 Thread Vladimir Serbinenko
Marco Gerards wrote: >>PROPOSAL 1) - Device autodetection >> >>Grub 2 should be able to autodetect where the >>main/first menu.lst is. >>Grub 2 should be able to store automagically this device >>into a constant called >>GRUB_DEVICE >> >> > >Is this the same as the prefix variable

Re: Removal of conf/*.mk files?

2005-08-24 Thread Vladimir Serbinenko
Hollis Blanchard wrote: > > They might be there because not many people use ruby? > BUT CVS is for developpers, isn't it? conf/*.mk could be generated for releases and ruby would be needed only for CVS version

[Patch] Scripting engine

2005-08-24 Thread Vladimir Serbinenko
I wrote the preciew version of scripting engine. I'll add some comments soonly. Parser parses everytime one command because the commands could be entered from commandline. Bison converts in kind of pseudocode. Arithmethic support will be done by separate parser because arithmetic parse is very diff

Re: [Patch] Scripting engine

2005-08-28 Thread Vladimir Serbinenko
>I'd like to see a kind of "design document", since it is a bit hard for others >to understand. > > Ok. I hope to write it this week (my studies begin tomorrow) > >We must wait until your assignment is finished. How is it going? > > > > No problem. I meant after assignment. I sent it back to

Re: [Patch] Scripting engine

2005-09-04 Thread Vladimir Serbinenko
Marco Gerards wrote: > >Can't this be done in the same bison parser? Or what do you mean? > > I don't think so. Even the tokenization is very differetn. Ex: 2+3*5 is one token for normal parsing, but five for arithmethic and yylex knows nothing about what parsing is now. If it would always issu

Re: [Patch] Scripting engine

2005-09-25 Thread Vladimir Serbinenko
Unfortunately I haven't had a lot of time to work with GRUB2. I'll have some more when my holidays begin in mid October. Yoshinori K. Okuji wrote: > >I'd like to see a kind of "design document", since it is a bit hard for others >to understand. > > Ok. I send one with this mail. Perhaps it wo

Re: Scripting support

2005-10-22 Thread Vladimir Serbinenko
Marco Gerards wrote: Hi, Last days I have been thinking about scripting support. With my last patch it should be easy to implement. I hope Vladimir is still interested in this. Yes. Exactly now I'm on holiday so I have a lot of time. And also I have some ideas for some new GRUB features b

Re: Scripting support

2005-10-22 Thread Vladimir Serbinenko
Hello In bash when you define a function it appears under environment variables. IMHO it's useless to store completely the source code as an environment variables. I propose that the functions will be preparsed (converted to internal format ready for execution) because it will gretelya simp

Re: Scripting support

2005-10-22 Thread Vladimir Serbinenko
Marco Gerards wrote: Vladimir Serbinenko <[EMAIL PROTECTED]> writes: I think we first have to determine: 1) Which commands should be supported. What about && || ! case do done elif else esac fi for function if in then until while { } [[ ]] in scripting engine. I thin

Re: Scripting framework

2005-10-27 Thread Vladimir Serbinenko
I wrote the scripting support. The patch can be found under http://phcoder.hut1.ru/bash.patch As in this version there is no arithmethic support I added commands true5 and false 5 for testing They return five times true and then false (true5) or inverse (false5) TODO: 1) Positional arguments li

Re: Scripting framework

2005-10-27 Thread Vladimir Serbinenko
I wrote the scripting support. The patch can be found under http://phcoder.hut1.ru/bash.patch This URL does not work for me. Could you try to enter the site (http://phcoder.hut1.ru/) then click on Scripting support->patch for scripting support. It seems that hoster blocks if you try

Re: Automatic backup with grub

2005-10-27 Thread Vladimir Serbinenko
So what needs to be done is place an image back once in a while. It should be possible to create a GRUB command for that, I guess. :-) Why a command? A better way, IMO, is using some variables stored in file. It could be presented as array SAVED_INTEGER of integers and SAVED_FLAGS of flag

Re: copyright management

2005-10-28 Thread Vladimir Serbinenko
1. When you have not signed a copyright assignment yet, we will ask you if you accept assigning your copyright on GRUB to the FSF. I myself have signed the agreement. Now I'm waiting for the form for my mother because I'm 17 years old only. With her there is no problem IIRC, these people a

Re: Scripting support (PATCH)

2005-10-30 Thread Vladimir Serbinenko
After discussion with Marco on IRC we decided that his code is better for the core features and other things are fast to implement. But the next questions are menu entries. I propose the following syntax: menu [arguments] name { Commands } arguments can be --default, --fallback perhaps some m

Re: Scripting support (PATCH)

2005-10-30 Thread Vladimir Serbinenko
Marco Gerards wrote: I didn't know that bison had such buffer. It doesn't. This buffer is created by lexer in my example. And menu is always stored unparsed and parsed only just before execution. Than editing is no problem. I think you have to parse it immediately and both store p

Re: Scripting support (PATCH)

2005-10-30 Thread Vladimir Serbinenko
Marco Gerards wrote: Vladimir Serbinenko <[EMAIL PROTECTED]> writes: So the problem with approach #1 is doing double work, less obvious integration with the rest of the parser and memory leakage. Of course in real code it would be freed. It was just schemathical Right. The only

MBR management

2006-06-05 Thread Vladimir Serbinenko
Hello. I'm back after long time of inactivity. I would like to expose my idea: Many of commercial OS have some weird conditions on where they are installed (e.g. it must be installed on primary active partiotion, ...) and what we can do is 1st possibility: function that transform primary<-> logi

Re: GRUB 1.95 is released

2006-10-15 Thread Vladimir Serbinenko
Stefan Reinauer wrote: * Yoshinori K. Okuji <[EMAIL PROTECTED]> [061015 16:51]: * Number partitions from 1 instead of 0. For instance, the first partition of "hd0" is now "hd0,1" but not "hd0,0". Hm. What's the reason for being inconsistent here? If changing the partition naming sch

[PATCH v8 9/9] Implement __aeabi_uldivmod

2025-04-05 Thread Vladimir Serbinenko
Some arm compilers insert 64-bit division into the code compiled from libgcrypt source and possibly others. Rether than fighting it, simply provide the function in question. Signed-off-by: Vladimir Serbinenko --- grub-core/kern/arm/compiler-rt.S | 11 +++ include/grub/compiler-rt.h

[PATCH 3/7] Adjust import script, definitions and API users for libgcrypt 1.10

2025-04-05 Thread Vladimir Serbinenko
Signed-off-by: Vladimir Serbinenko --- autogen.sh | 7 +- conf/Makefile.common| 4 +- grub-core/Makefile.core.def | 36 ++- grub-core/commands/hashsum.c| 2 +- grub-core/commands/legacycfg.c

[PATCH v8 7/9] libgcrypt: Fix coverity warnings

2025-04-05 Thread Vladimir Serbinenko
Signed-off-by: Vladimir Serbinenko --- .../libgcrypt-patches/03_mpiutil_alloc.patch | 20 ++ .../lib/libgcrypt-patches/03_sexp_free.patch | 37 +++ 2 files changed, 57 insertions(+) create mode 100644 grub-core/lib/libgcrypt-patches/03_mpiutil_alloc.patch create mode

[PATCH] datetime: Specify license in emu module

2025-04-05 Thread Vladimir Serbinenko
Other platforms specify license in platform-specific files but corresponding code for emu is in kernel, so datetime ends up without license section. Signed-off-by: Vladimir Serbinenko --- grub-core/lib/datetime.c | 5 + 1 file changed, 5 insertions(+) diff --git a/grub-core/lib/datetime.c

[PATCH] loongarch64: Use la.pcrel instead of la.

2025-04-05 Thread Vladimir Serbinenko
la.pcrel unlike la should work even above 4GiB mark. Signed-off-by: Vladimir Serbinenko --- grub-core/kern/loongarch64/efi/startup.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grub-core/kern/loongarch64/efi/startup.S b/grub-core/kern/loongarch64/efi/startup.S index

[PATCH] Add convenience TARGET_CROSS

2025-03-27 Thread Vladimir Serbinenko
Setting all TARGET_* variables is cumbersome. This convenience macro allows to set them all in one go Signed-off-by: Vladimir Serbinenko --- configure.ac | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index ad1e7bea5..34f4f9415 100644

[PATCH] configure: Add -mno-relax on riscv*

2025-03-27 Thread Vladimir Serbinenko
Without this option compiler sometimes emits R_RISCV_ALIGN relocs. Unlike other relocs this one requires the linker to do NOP deletions and we can't ignore them. Just instruct compiler not to emit them Signed-off-by: Vladimir Serbinenko --- configure.ac | 25 + 1

[PATCH 0/3] Use -shared compilation instead of -Wl,-r

2025-04-08 Thread Vladimir Serbinenko
-Wl,-r is a partial linking and this file is only intended as intermediate result for linker, not really intended for any other use. To make them usable we end up doing all the linker job twice over: in mkimage and in runtime. -shared on the other hand is meant to be loaded and relocated and hence

[PATCH 0/3] Use -shared compilation instead of -Wl,-r

2025-04-08 Thread Vladimir Serbinenko
-Wl,-r is a partial linking and this file is only intended as intermediate result for linker, not really intended for any other use. To make them usable we end up doing all the linker job twice over: in mkimage and in runtime. -shared on the other hand is meant to be loaded and relocated and hence

[PATCH 2/3] loongarch64: Use la.pcrel instead of la.

2025-04-08 Thread Vladimir Serbinenko
la.pcrel unlike la should work even above 4GiB mark. Signed-off-by: Vladimir Serbinenko --- grub-core/kern/loongarch64/efi/startup.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grub-core/kern/loongarch64/efi/startup.S b/grub-core/kern/loongarch64/efi/startup.S index

[PATCH v9 04/11] Adjust import script, definitions and API users for libgcrypt 1.11

2025-04-08 Thread Vladimir Serbinenko
This patches modifies the GRUB-libgcrypt API to match new libgcrypt 1.11 Signed-off-by: Vladimir Serbinenko --- autogen.sh| 5 + conf/Makefile.common | 4 +- grub-core/Makefile.core.def | 20 +- grub-core

[PATCH v9 00/11] Update libgcrypt to 1.11

2025-04-08 Thread Vladimir Serbinenko
This series of patches upgrades libgcrypt to 1.11. Differences to version 8: * Add back missing file * Fix mips compilation * Silence the warnings * Enabled blake hashes ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/list

[PATCH v9 02/11] Import b64dec from gpg-error

2025-04-08 Thread Vladimir Serbinenko
Imported from libgpg-error 1.51 Signed-off-by: Vladimir Serbinenko --- grub-core/lib/b64dec.c | 279 + 1 file changed, 279 insertions(+) create mode 100644 grub-core/lib/b64dec.c diff --git a/grub-core/lib/b64dec.c b/grub-core/lib/b64dec.c new file mode

[PATCH v9 03/11] b64dec: Adjust for compilation in GRUB environment

2025-04-08 Thread Vladimir Serbinenko
Signed-off-by: Vladimir Serbinenko --- grub-core/lib/b64dec.c | 36 +--- 1 file changed, 25 insertions(+), 11 deletions(-) diff --git a/grub-core/lib/b64dec.c b/grub-core/lib/b64dec.c index 868d98568..8aafa9700 100644 --- a/grub-core/lib/b64dec.c +++ b/grub-core

[PATCH v9 08/11] Remove now unneeded gcrypt compilation flag

2025-04-08 Thread Vladimir Serbinenko
HAVE_STRTOUL is now defined in stdlib.h. Include it in g10lib.h rather than defining on command line Signed-off-by: Vladimir Serbinenko --- conf/Makefile.common | 2 +- util/import_gcry.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/conf/Makefile.common b/conf

[PATCH v9 07/11] libgcrypt: Fix coverity warnings

2025-04-08 Thread Vladimir Serbinenko
Signed-off-by: Vladimir Serbinenko --- .../libgcrypt-patches/03_mpiutil_alloc.patch | 20 ++ .../lib/libgcrypt-patches/03_sexp_free.patch | 37 +++ 2 files changed, 57 insertions(+) create mode 100644 grub-core/lib/libgcrypt-patches/03_mpiutil_alloc.patch create mode

[PATCH v9 09/11] Implement __aeabi_uldivmod

2025-04-08 Thread Vladimir Serbinenko
Some arm compilers insert 64-bit division into the code compiled from libgcrypt source and possibly others. Rether than fighting it, simply provide the function in question. Signed-off-by: Vladimir Serbinenko --- grub-core/kern/arm/compiler-rt.S | 11 +++ include/grub/compiler-rt.h

[PATCH v9 06/11] keccak: Disable acceleration with SSE asm

2025-04-08 Thread Vladimir Serbinenko
Libgcrypt code assumes that on x64 all SSE registers are fair game. While it's true that CPUs in question support it, we disable it in our compilation options. Disable the offending optimization. Signed-off-by: Vladimir Serbinenko --- .../lib/libgcrypt-patches/02_keccak_sse.patch

[PATCH v9 10/11] gcry: Ignore sign-compare warnings

2025-04-08 Thread Vladimir Serbinenko
libgcrypt itself is compiled with -Wno-sign-compare. Do the same for consistency Signed-off-by: Vladimir Serbinenko --- conf/Makefile.common | 2 +- grub-core/Makefile.core.def | 10 +- grub-core/kern/compiler-rt.c | 32 ++-- include/grub/compiler

[PATCH v9 11/11] libgcrypt: Import blake family of hashes

2025-04-08 Thread Vladimir Serbinenko
Signed-off-by: Vladimir Serbinenko --- .../lib/libgcrypt-patches/06_blake.patch | 80 +++ include/grub/crypto.h | 6 ++ util/import_gcry.py | 36 +++-- 3 files changed, 115 insertions(+), 7 deletions(-) create mode

[PATCH v9 05/11] Add DSA and RSA SEXP tests

2025-04-08 Thread Vladimir Serbinenko
This allows us to test purely the integration of the implementation of DSA and RSA from libgcrypt without concerning with additional code. Signed-off-by: Vladimir Serbinenko --- grub-core/Makefile.core.def | 16 grub-core/tests/dsa_sexp_test.c | 127

[PATCH 1/3] Use ET_DYN instead of ET_REL modules

2025-04-08 Thread Vladimir Serbinenko
ut as a possibility but it simplifies the code, so it's useful independently of Rust Signed-off-by: Vladimir Serbinenko --- conf/Makefile.common | 10 +- conf/i386-modules.sc | 35 +++ configure.ac

[PATCH v10 04/12] Adjust import script, definitions and API users for libgcrypt 1.11

2025-04-08 Thread Vladimir Serbinenko
This patches modifies the GRUB-libgcrypt API to match new libgcrypt 1.11 Signed-off-by: Vladimir Serbinenko --- autogen.sh| 5 + conf/Makefile.common | 4 +- grub-core/Makefile.core.def | 20 +- grub-core

[PATCH v10 09/12] Implement __aeabi_uldivmod

2025-04-08 Thread Vladimir Serbinenko
Some arm compilers insert 64-bit division into the code compiled from libgcrypt source and possibly others. Rether than fighting it, simply provide the function in question. Signed-off-by: Vladimir Serbinenko --- grub-core/kern/arm/compiler-rt.S | 11 +++ include/grub/compiler-rt.h

[PATCH v10 12/12] libgcrypt: Import blake family of hashes

2025-04-08 Thread Vladimir Serbinenko
Signed-off-by: Vladimir Serbinenko --- .../lib/libgcrypt-patches/06_blake.patch | 80 +++ include/grub/crypto.h | 6 ++ util/import_gcry.py | 36 +++-- 3 files changed, 115 insertions(+), 7 deletions(-) create mode

[PATCH v10 03/12] b64dec: Adjust for compilation in GRUB environment

2025-04-08 Thread Vladimir Serbinenko
Signed-off-by: Vladimir Serbinenko --- grub-core/lib/b64dec.c | 36 +--- 1 file changed, 25 insertions(+), 11 deletions(-) diff --git a/grub-core/lib/b64dec.c b/grub-core/lib/b64dec.c index 868d98568..8aafa9700 100644 --- a/grub-core/lib/b64dec.c +++ b/grub-core

[PATCH v10 02/12] Import b64dec from gpg-error

2025-04-08 Thread Vladimir Serbinenko
Imported from libgpg-error 1.51 Signed-off-by: Vladimir Serbinenko --- grub-core/lib/b64dec.c | 279 + 1 file changed, 279 insertions(+) create mode 100644 grub-core/lib/b64dec.c diff --git a/grub-core/lib/b64dec.c b/grub-core/lib/b64dec.c new file mode

[PATCH v10 11/12] gcry: Ignore sign-compare warnings

2025-04-08 Thread Vladimir Serbinenko
libgcrypt itself is compiled with -Wno-sign-compare. Do the same for consistency Signed-off-by: Vladimir Serbinenko --- conf/Makefile.common| 2 +- grub-core/Makefile.core.def | 10 +- util/import_gcry.py | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff

[PATCH v10 10/12] Enable udivdi3 and umoddi3 for mips

2025-04-08 Thread Vladimir Serbinenko
Some mips compilers insert 64-bit division into the code compiled from libgcrypt source and possibly others. Rether than fighting it, simply provide the function in question. Signed-off-by: Vladimir Serbinenko --- grub-core/kern/compiler-rt.c | 32 ++-- include/grub

[PATCH v10 00/12] Upgrade libgcrypt to 1.11

2025-04-08 Thread Vladimir Serbinenko
Changes from v9: * Split accidentally squashed unrelated patches ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel

[PATCH] ia64: Disable optimizations using floating-point arithmetics

2025-04-10 Thread Vladimir Serbinenko
They don't work in ski emulator and we don't really need them Signed-off-by: Vladimir Serbinenko --- configure.ac| 4 ++-- grub-core/Makefile.core.def | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 25f3ff932.

[PATCH] Disable gfxterm_menu and cmdline_cat tests

2025-04-10 Thread Vladimir Serbinenko
Those tests fail depending on the version of unifont. As we don't distribute our own unifont it fails for most users. Disable them so that they don't mask real failures. They can be reinstated once we solve unifont problem Signed-off-by: Vladimir Serbinenko --- grub-core/Makefil

[PATCH 4/7] Add DSA and RSA SEXP tests

2025-04-01 Thread Vladimir Serbinenko
This allows us to test purely the integration of the implementation of DSA and RSA from libgcrypt without concerning with additional code. Signed-off-by: Vladimir Serbinenko --- grub-core/tests/dsa_sexp_test.c | 125 grub-core/tests/rsa_sexp_test.c | 99

[PATCH 2/7] Import b64dec from gpg-error

2025-04-01 Thread Vladimir Serbinenko
Base on libgpg-error 1.49 but with modifications to make it compile in GRUB environment Signed-off-by: Vladimir Serbinenko --- grub-core/lib/b64dec.c | 293 + 1 file changed, 293 insertions(+) create mode 100644 grub-core/lib/b64dec.c diff --git a/grub

<    1   2   3   4   >