Re: [PATCH]: grub: Partitions can start at zero.

2009-04-22 Thread David Miller
From: Vladimir Serbinenko 
Date: Mon, 20 Apr 2009 18:53:35 +0200

> On Mon, Apr 20, 2009 at 2:30 AM, David Miller  wrote:
> 
>>
>> With Sun partitions, individual partitions can start at disk
>> address zero.  That's right, zero.
>>
>> This works because UFS and EXT{2,3,4} superblocks are offset
>> far enough into the partition that it won't overwrite the
>> disk label nor the boot block.
>>
>> I added an, arguably hackish, heuristic to handle this properly.
>> Basically if the OS device name does not end in a digit we'll believe
>> that a zero hdg.start value can be a partition.
>>
>> If anyone has a better way to handle this, let me know :-)
>>
> What about the way I proposed in thread on implementing nested partitions?

Yes it seems that it should be able to handle this situation.

I cannot say %100 for sure until I see the code you end up
writing, of course :)


___
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel


Re: Trouble booting CF card in PCMCIA port from GRUB2

2009-04-22 Thread Urja Rannikko
Hi,

> grub> ls
> (ata0) (ata0,1) (ata0,2) (ata0,3)
>
> As you see, only ata0 is shown, which is the target laptop's harddrive.
>  The PCMCIA slot or the card in it isn't shown!

The problem is that grub2 would need a driver for the PCMCIA host
controller - that would enable the PCMCIA CF-card to be seen by the
ata driver (AFAIK).
I'm thinking that you have 3 options:
- boy a laptop IDE<->CF adapter and put the CF card to where the
laptop's main hard disk is (install grub2 on the CF)
- use linux+kexec (as already said)
- or wait for somebody to write (or write it yourself) a PCMCIA
subsystem for grub2


___
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel


Re: [PATCH]: grub: Handle the case where the root node has size-cells but not address-cells.

2009-04-22 Thread David Miller
From: David Miller 
Date: Sun, 19 Apr 2009 17:24:54 -0700 (PDT)

> 2009-04-19  David S. Miller  
> 
>   * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
>   is larger than address_cells, use that value for address_cells too.

Committed.


___
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel


Re: [PATCH]: grub: Exliminate fixed length string buffers in child and devalias iterators.

2009-04-22 Thread David Miller
From: David Miller 
Date: Sun, 19 Apr 2009 17:27:53 -0700 (PDT)

> 2009-04-19  David S. Miller  
> 
>   * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
>   IEEE1275_MAX_PATH_LEN): Define.
>   * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
>   allocate 'childtype', 'childpath', 'childname', and 'fullname'.
>   (grub_devalias_iterate): Dynamically allocate 'aliasname' and
>   'devtype'.  Explicitly NULL terminate devalias expansion.

Committed.


___
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel


Re: [PATCH]: grub: Add sparc64 support code.

2009-04-22 Thread David Miller
From: David Miller 
Date: Sun, 19 Apr 2009 17:42:18 -0700 (PDT)

> 2009-04-19  David S. Miller  
> 
>   * util/sparc64/ieee1275/misc.c: New file.
>   * util/sparc64/ieee1275/grub-setup.c: New file.
>   * util/sparc64/ieee1275/grub-ofpathname.c: New file.
>   * util/sparc64/ieee1275/grub-mkimage.c: New file.
>   * util/sparc64/ieee1275/grub-install.in: New file.
>   * util/ieee1275/ofpath.c: New file.
>   * util/ieee1275/devicemap.c: New file.
>   * util/devicemap.c: New file.
>   * util/deviceiter.c: New file.
>   * kern/sparc64/ieee1275/init.c: New file.
>   * include/grub/util/ofpath.h: New file.
>   * include/grub/util/deviceiter.h: New file.
>   * util/grub-mkdevicemap.c: Include deviceiter.h.
>   Implement using grub_util_emit_devicemap_entry and
>   grub_util_iterate_devices.
>   * conf/i386-corebook.rmk: Build util/deviceiter.c and
>   util/devicemap.c into grub-mkdevicemap
>   * conf/i386-efi.rmk: Likewise.
>   * conf/i386-ieee1275.rmk: Likewise.
>   * conf/i386-pc.rmk: Likewise.
>   * conf/powerpc-ieee1275.rmk: Likewise.
>   * conf/sparc64-ieee1275.rmk: Add rules to build boot block
>   images and installation utilities.  Build kernel as image
>   instead of as elf binary.  Use common rules as much as possible.

Committed.


___
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel


Re: [PATCH] FreeBSD 64-bit kernel support

2009-04-22 Thread Chip Panarchy
Hi

Thanks

Great, I'll be waiting till it's committed!

WOOT

Panarchy

On Wed, Apr 22, 2009 at 7:10 AM, Vladimir Serbinenko  wrote:
> Hello, here is the version with changelog, fix for freebsd_module and
> licencing corrections.
> If nobody objects I'll commit it soon
> Enjoy
>
>
> On Sun, Apr 12, 2009 at 9:19 PM, Bean  wrote:
>>
>> Hi,
>>
>> This patch allows you to load amd64 freebsd kernel directly, here is an
>> example:
>>
>> set root=(hd0,1,a)
>> freebsd /boot/kernel/kernel
>> freebsd_loadenv /boot/device.hints
>> set FreeBSD.vfs.root.mountfrom=ufs:/dev/ad0s1a
>> boot
>>
>> Test successfully on FreeBSD 7.1 amd64.
>>
>> --
>> Bean
>>
>> ___
>> Grub-devel mailing list
>> Grub-devel@gnu.org
>> http://lists.gnu.org/mailman/listinfo/grub-devel
>>
>
>
> ___
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
>
>


___
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel