Re: [GITGRUB] Support new object format for powerpc-ieee1275

2009-08-22 Thread Bean
Hi, Add support for OpenBIOS. it would detect OpenBIOS and add flags for the OpenBIOS platform. The problem with OpenBIOS: /memory/available is present, but the value is different from olpc, instead of start-size pair, it's four number consist of: 0 min_mem max_mem total_mem The current mmap e

[PATCH] Use extcmd to handle bsd arguments.

2009-08-22 Thread Vladimir 'phcoder' Serbinenko
Hello. Currently bsd loaders inspects argv[1] for boot options but the treat argv[1] as if it always was prefixed by dash ('-') and completely ignores options in argv[n], n>1. This leads to unexpected results like freebsd /kernel verbose is parsed like verbose ('v'), dfltroot ('r') and single ('s')

[PATCH] Eliminate script line length limit

2009-08-22 Thread Vladimir 'phcoder' Serbinenko
Making GNU GRUB more GNU ;) -- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git diff --git a/script/sh/function.c b/script/sh/function.c index 1e49c70..a3950a8 100644 --- a/script/sh/function.c +++ b/script/sh/function.c @@ -99,7 +99,7 @@ grub_

[PATCH] Replace ad-hoc format in efiemu (for variables) and XNU (for device tree) by environment variables

2009-08-22 Thread Vladimir 'phcoder' Serbinenko
-- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git diff --git a/conf/common.rmk b/conf/common.rmk index b0d3785..b5a6048 100644 --- a/conf/common.rmk +++ b/conf/common.rmk @@ -617,3 +617,8 @@ pkglib_MODULES += setjmp.mod setjmp_mod_SOURCES = l

os-detect lua space fix

2009-08-22 Thread adrian15
Here you a have a patch that fixes the error that osdetect.lua script had with spaces around the equals sign. Now it does not complain when assigning the variable. adrian15 -- Support free software. Donate to Super Grub Disk. Apoya el software libre. Dona a Super Grub Disk. http://www.supergru

os-detect lua uuid fix

2009-08-22 Thread adrian15
Here you a have a patch that fixes the error that osdetect.lua script had uuid not being set. Now the linux kernel does not complain about not finding root device. The only problem that this patch has is that is made with grub shell in mind instead of lua. I suppose that we can do the same th

Re: Report: compil error on OSX for target=i386

2009-08-22 Thread Vladimir 'phcoder' Serbinenko
On Mon, Aug 10, 2009 at 1:41 PM, Robert Millan wrote: > On Sat, Aug 08, 2009 at 10:44:25PM +0800, Bean wrote: >> Hi, >> >> I also encounter this problem with apple gcc 4.0, the fix is to replace: >> >> asm volatile ("jmp *%2" : : "b" (0), "S" (real_mode_mem), "g" >> (params->code32_start)); >> >> W

Grub2 LUA API?

2009-08-22 Thread adrian15
Hi, I have been playing a bit with osdetect.lua file. I have seen many calls to grub.addmenu, grub.file_exist and so on. I am now interested in making a table where to store all the uuid associated to each one of the kernel that I find (I mean kernel's filesystem's uuid). As long as I s

Re: Grub2 LUA API?

2009-08-22 Thread Bean
Hi, You can use grub.enum_device, which pass the uuid to the callback function, then you can store the device->uuid mapping in a table. If you're looking for source code, check out script/lua/grub_lib.c On Sun, Aug 23, 2009 at 2:57 AM, adrian15 wrote: > Hi, > >        I have been playing a bit

[PATCH] Fix hfsplus.

2009-08-22 Thread Vladimir 'phcoder' Serbinenko
Hello. In multiple places hfsplus aborts if read_file returns 0. But in this case grub_error isn't set so the errors aren't propagated. Here is fix. -- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git diff --git a/fs/hfsplus.c b/fs/hfsplus.c in

[PATCH] Simplify Apple CC support by adding LOCAL(x) when needed

2009-08-22 Thread Vladimir 'phcoder' Serbinenko
-- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git diff --git a/commands/i386/pc/drivemap_int13h.S b/commands/i386/pc/drivemap_int13h.S index 4403496..b460cd7 100644 --- a/commands/i386/pc/drivemap_int13h.S +++ b/commands/i386/pc/drivemap_int1

Re: Re[2]: 'password' command in GRUB 2?

2009-08-22 Thread Vladimir 'phcoder' Serbinenko
Updated. one bug fixed and now compileable with Apple's CC On Fri, Aug 21, 2009 at 1:30 PM, Vladimir 'phcoder' Serbinenko wrote: >> >>> +grub_err_t >>> +grub_auth_check_authentication (const char *userlist) >>> +{ >>> +  char login[1024] = {0}; >> >> Please avoid arbitrary limits.  If the grub_cmd