Re: grub2 boot root-on-zfs errors

2013-09-23 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 30.08.2013 09:23, Raif S. Berent wrote:
 My system is FreeBSD_9.2-stable_amd64_HDD-layout=GPT
 grub version=grub2-2.00_1, and grub is on its own partition (/boot/grub)
 zpool version: 5000, with root on the zpool
 FreeBSD's bootloader is able to boot this pool, while various grub2
 attempts have failed. I think the reason is that grub2 has problems with
 recognizing FreeBSD's zpools. As an example of why I think this:
 
 # grub-probe /dev/ada0p2 (partition where zpool resides)
 grub-probe: error: cannot find a device for /dev/ada0p2 (is /dev mounted?).
 
This doesn't demonstrate anything else than that you didn't use tools
correctly. It's either
grub-probe -d /dev/ada0p2
or
grub-probe /
Other than this this report doesn't contain any description of symptoms.
 # ls /dev/ada0*
 /dev/ada0   /dev/ada0p1  /dev/ada0p2  /dev/ada0p3
 
 Regards.
 
 
 ___
 Grub-devel mailing list
 Grub-devel@gnu.org
 https://lists.gnu.org/mailman/listinfo/grub-devel
 




signature.asc
Description: OpenPGP digital signature
___
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel


Re: [PATCH] Re: Missing USB devices.

2013-09-23 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 31.08.2013 23:12, Aleš Nesrsta wrote:
 -   grub_boot_time (Ownership of EHCI port taken);
 +   grub_boot_time (Ownership of EHCI controller taken);
This has to be after SMI_EN is written as writes to SMI_EN may cause SMI
which would take time and may cause trouble. Other than this go ahead
for the patch



signature.asc
Description: OpenPGP digital signature
___
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel


Re: GRUB2 on OpenBSD 5.3-amd64: linking problem

2013-09-23 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 23.09.2013 17:59, Ilya Bakulin wrote:
 Hi Vladimir,
 So I'm preparing a OpenBSD port of GRUB2. I have chosen a revision 5152
 for the initial version of the port.
I already did couple revisions ago. After that I made further
simplifications to multi-OS mess and it's possible that there is minor
brokenness
The issue I didn't solve yet is OpenBSD using double/float in the
headers (but you can comment out those 2 lines in Makefile.common).
Other than that it should work.
Checking out r5152 and porting it would be you duplicating my work,
please don't.
Rather help us testing, look into a way to avoid double/float for sure
on OpenBSD and identify which other features are needed/helpful for
OpenBSD (RAID? LFS?)




signature.asc
Description: OpenPGP digital signature
___
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel


Re: [PATCH] Re: Missing USB devices.

2013-09-23 Thread Aleš Nesrsta

OK, committed.
I simply removed the line you mentioned...
BR, Ales

Dne 23.9.2013 14:47, Vladimir 'φ-coder/phcoder' Serbinenko napsal(a):

On 31.08.2013 23:12, Aleš Nesrsta wrote:

- grub_boot_time (Ownership of EHCI port taken);
+ grub_boot_time (Ownership of EHCI controller taken);

This has to be after SMI_EN is written as writes to SMI_EN may cause SMI
which would take time and may cause trouble. Other than this go ahead
for the patch



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



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


Re: GRUB2 on OpenBSD 5.3-amd64: linking problem

2013-09-23 Thread Ilya Bakulin
Hi Vladimir,
So I'm preparing a OpenBSD port of GRUB2. I have chosen a revision 5152
for the initial version of the port.
Unfortunately, the build fails when using -Werror.
I suspect that the ports framework overrides some values that are usually 
guessed by ./configure, and this causes build to fail.

The build log are available here:
Build with -Werror:
http://dl.bakulin.de/openbsd/grub-build/make_werror.log

Build without -Werror: 
http://dl.bakulin.de/openbsd/grub-build/make_no_werror.log

Build using ./configure --disable-silent-rules LEX=/usr/local/bin/gflex, out 
of ports framework (in this case ./configure doesn't use any cached values):
http://dl.bakulin.de/openbsd/grub-build/make_standalone.log

I am not familiar with the GNU configure, but AFAIK the product of ./configure
is the set of config-*.h files. If it is right, there are two files for GRUB2,
config.h and config-util.h. Here is a diff between config-util.h generated 
during standalone and port build:

$ diff config-util.h_standalone  config-util.h_portbuild


1040c1040
 /* #undef HAVE_SYS_MOUNT_H */
---
 #define HAVE_SYS_MOUNT_H 1
1518c1518
 #define restrict __restrict
---
 #define restrict __restrict__

That is, HAVE_SYS_MOUNT_H is defined when building the port, and restrict is 
__restrict__.

Could you please help me to debug this error?

--
Ilya

On Wednesday 18 September 2013 13:49:38 Vladimir 'φ-coder/phcoder' Serbinenko 
wrote:
 On 30.08.2013 19:33, Douglas Ray wrote:
  calomel.org asserts that, as of OpenBSD 5.1, all their random devices
  use the arc4 library;  /dev/urandom now gives as good as /dev/arandom.

 This is good enough. We are not crypto society which goes into security
 holes in other software. Also impact of bad random is minor in GRUB
 case. If X is considered the right to get random on given OS then it's ok.



signature.asc
Description: This is a digitally signed message part.
___
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel


grub2 boot root-on-zfs errors

2013-09-23 Thread Beeblebrox
  This doesn't demonstrate anything else than that you didn't use tools
correctly. It's:  grub-probe -d /dev/ada0p2

Thank you very much - I ran the command you instructed and see that
the FS is identified correctly.
$ grub-probe -d /dev/ada0p2
zfs

I cannot, however, boot from grub directly into zfs-root. After the
grub menu comes up, and I fall to command-prompt, listing the drives
shows no ZFS paths and the various menu variations I have tried do not
work.

Unfortunately, there is not much accurate documentation for
FreeBSD+ZFS+grub, and the linux solutions to the problem do not work
for FreeBSD.

The main problem form the grub loader / command line, is that I cannot
get any code loaded which is located on a ZPOOL:

menuentry 'FreeBSD-ZFS' {
insmod zfs
set root='hd0,gpt2'
kfreebsd /boot/loader  }

Fails because grub cannot find bootloader and gives no such file error.
Please let me know what ıther info I can provide to debug the problem.

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


Re: grub2 boot root-on-zfs errors

2013-09-23 Thread Massimo Maggi
2013/9/23 Beeblebrox zap...@berentweb.com

 menuentry 'FreeBSD-ZFS' {
 insmod zfs
 set root='hd0,gpt2'
 kfreebsd /boot/loader  }

 Fails because grub cannot find bootloader and gives no such file error.


You didn't specify the dataset (or snapshot) which has the /boot/loader
file you're interested in.
For instance:
tankpool/mydataset/myfolder/myfile
should be written as (hd0,gpt2)/mydataset/@/myfolder/myfile.
You can check the syntax by using the Grub interactive command line and
tab-completion.
Regards,
Massimo Maggi
___
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel


Re: grub2 boot root-on-zfs errors

2013-09-23 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 23.09.2013 20:59, Beeblebrox wrote:
  This doesn't demonstrate anything else than that you didn't use tools
 correctly. It's:  grub-probe -d /dev/ada0p2
 
 Thank you very much - I ran the command you instructed and see that
 the FS is identified correctly.
 $ grub-probe -d /dev/ada0p2
 zfs
 
 I cannot, however, boot from grub directly into zfs-root. After the
 grub menu comes up, and I fall to command-prompt, listing the drives
 shows no ZFS paths and the various menu variations I have tried do not
 work.
 
 Unfortunately, there is not much accurate documentation for
 FreeBSD+ZFS+grub, and the linux solutions to the problem do not work
 for FreeBSD.
 
 The main problem form the grub loader / command line, is that I cannot
 get any code loaded which is located on a ZPOOL:
 
 menuentry 'FreeBSD-ZFS' {
 insmod zfs
 set root='hd0,gpt2'
 kfreebsd /boot/loader  }
 
 Fails because grub cannot find bootloader and gives no such file error.
 Please let me know what ıther info I can provide to debug the problem.
 
Syntax is:
(DISK)/VOLUME@[SNAPSHOT]/FILE
I think it's described somewhere in manual
 ___
 Grub-devel mailing list
 Grub-devel@gnu.org
 https://lists.gnu.org/mailman/listinfo/grub-devel
 




signature.asc
Description: OpenPGP digital signature
___
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel


Re: grub2 boot root-on-zfs errors

2013-09-23 Thread Andrey Borzenkov
В Mon, 23 Sep 2013 21:28:41 +0200
Vladimir 'φ-coder/phcoder' Serbinenko phco...@gmail.com пишет:

 On 23.09.2013 20:59, Beeblebrox wrote:
   This doesn't demonstrate anything else than that you didn't use tools
  correctly. It's:  grub-probe -d /dev/ada0p2
  
  Thank you very much - I ran the command you instructed and see that
  the FS is identified correctly.
  $ grub-probe -d /dev/ada0p2
  zfs
  
  I cannot, however, boot from grub directly into zfs-root. After the
  grub menu comes up, and I fall to command-prompt, listing the drives
  shows no ZFS paths and the various menu variations I have tried do not
  work.
  
  Unfortunately, there is not much accurate documentation for
  FreeBSD+ZFS+grub, and the linux solutions to the problem do not work
  for FreeBSD.
  
  The main problem form the grub loader / command line, is that I cannot
  get any code loaded which is located on a ZPOOL:
  
  menuentry 'FreeBSD-ZFS' {
  insmod zfs
  set root='hd0,gpt2'
  kfreebsd /boot/loader  }
  
  Fails because grub cannot find bootloader and gives no such file error.
  Please let me know what ıther info I can provide to debug the problem.
  
 Syntax is:
 (DISK)/VOLUME@[SNAPSHOT]/FILE
 I think it's described somewhere in manual

No, it is not. There are examples using zfs with this syntax (but
without snapshot)s).

I'm not sure where should it go ... in File name syntax probably?


signature.asc
Description: PGP signature
___
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel