search for: patt_of_cpu

Displaying 12 results from an estimated 12 matches for "patt_of_cpu".

2014 Apr 26
2
[supermin] Be smarter about finding suitable kernel images
--- src/kernel.ml | 43 ++++++++++++++++++++++++++++--------------- 1 file changed, 28 insertions(+), 15 deletions(-) diff --git a/src/kernel.ml b/src/kernel.ml index ed5aea3..436b1b0 100644 --- a/src/kernel.ml +++ b/src/kernel.ml @@ -23,6 +23,19 @@ open Utils open Ext2fs open Fnmatch +let patt_of_cpu host_cpu = + let models = + match host_cpu with + | "mips" | "mips64" -> [host_cpu; "*-malta"] + | "ppc" | "powerpc" -> ["ppc"; "powerpc"] + | "sparc" | "sparc64" -> ["sparc"; &...
2016 Nov 21
2
[PATCH 1/2] kernel: refactor build_kernel & find_kernel
...with no behaviour changes. --- src/kernel.ml | 89 +++++++++++++++++++++++++++++------------------------------ 1 file changed, 44 insertions(+), 45 deletions(-) diff --git a/src/kernel.ml b/src/kernel.ml index 9b0e8a2..2e061d8 100644 --- a/src/kernel.ml +++ b/src/kernel.ml @@ -40,28 +40,7 @@ let patt_of_cpu host_cpu = let rec build_kernel debug host_cpu dtb_wildcard copy_kernel kernel dtb = (* Locate the kernel. *) - let kernel_name, kernel_version = - find_kernel debug host_cpu copy_kernel kernel in - - (* If the user passed --dtb option, locate dtb. *) - (match dtb_wildcard with - | Non...
2014 Apr 28
2
Re: [supermin] Be smarter about finding suitable kernel images
...insertions(+), 15 deletions(-) >> >> diff --git a/src/kernel.ml b/src/kernel.ml >> index ed5aea3..436b1b0 100644 >> --- a/src/kernel.ml >> +++ b/src/kernel.ml >> @@ -23,6 +23,19 @@ open Utils >> open Ext2fs >> open Fnmatch >> >> +let patt_of_cpu host_cpu = >> + let models = >> + match host_cpu with >> + | "mips" | "mips64" -> [host_cpu; "*-malta"] >> + | "ppc" | "powerpc" -> ["ppc"; "powerpc"] looks like I missed powerpc64. >&...
2016 Nov 11
1
[PATCH] Add hppa, hppa64, ppc64el architectures
--- src/kernel.ml | 2 ++ src/utils.ml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/kernel.ml b/src/kernel.ml index 356ac4b..9b0e8a2 100644 --- a/src/kernel.ml +++ b/src/kernel.ml @@ -30,6 +30,8 @@ let patt_of_cpu host_cpu = | "ppc" | "powerpc" | "powerpc64" -> ["ppc"; "powerpc"; "powerpc64"] | "sparc" | "sparc64" -> ["sparc"; "sparc64"] | "amd64" | "x86_64" -> [&quo...
2014 May 31
2
Re: libguestfs error
...s-test-tool: failed to launch appliance > libguestfs: closing guestfs handle 0x10016848 (state 0) > libguestfs: command: run: rm > libguestfs: command: run: \ -rf /tmp/libguestfsvnUxG2 This is actually a bug in supermin. However I think it is fixed in recent supermin. Have a look at the patt_of_cpu function here: https://github.com/libguestfs/supermin/blob/master/src/kernel.ml#L26 This was added by Hilko's patch: https://github.com/libguestfs/supermin/commit/e8dd485a1737da365bc6af4afb5945817219393e and I suspect you will need to include this patch in your version of supermin. You'...
2014 Jun 02
2
Re: libguestfs error
...ing guestfs handle 0x10016848 (state 0) >> > libguestfs: command: run: rm >> > libguestfs: command: run: \ -rf /tmp/libguestfsvnUxG2 >> >> This is actually a bug in supermin. However I think it is fixed in >> recent supermin. >> >> Have a look at the patt_of_cpu function here: >> >> https://github.com/libguestfs/supermin/blob/master/src/kernel.ml#L26 >> >> This was added by Hilko's patch: >> >> >> https://github.com/libguestfs/supermin/commit/e8dd485a1737da365bc6af4afb5945817219393e >> >> and I susp...
2017 Aug 03
14
[PATCH supermin 0/9] kernel: Multiple fixes to handling of kernels (RHBZ#1477758).
This patch series fixes several problems in the way that supermin handles kernels. The most pressing problem is that supermin doesn't handle bogus vmlinuz files which aren't actual kernels. Along the way there is a lot of clean up. The patches look much better if you view them with ‘-w’. This series will require plenty of time to be tested in Fedora, especially on non-x86 arches.
2016 Nov 21
0
[PATCH 2/2] kernel: find vmlinuz kernels in modules path (RHBZ#1394699)
...--- src/kernel.ml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/src/kernel.ml b/src/kernel.ml index 2e061d8..b4e89da 100644 --- a/src/kernel.ml +++ b/src/kernel.ml @@ -22,6 +22,7 @@ open Printf open Utils open Ext2fs open Fnmatch +open Glob let patt_of_cpu host_cpu = let models = @@ -60,7 +61,28 @@ let rec build_kernel debug host_cpu dtb_wildcard copy_kernel kernel dtb = let modpath = find_modpath debug kernel_version in kernel_env, kernel_name, kernel_version, modpath with Not_found -> - find_kernel debug host_cpu kerne...
2014 Jun 03
2
Re: libguestfs supermin error
Hi Rich But there is no src/kernel.ml file on my ubuntu powerpc to which the above patch is reffering. I have installed supermin as supermin_5.1.8-2_powerpc.deb debian package. Thanks On Tue, Jun 3, 2014 at 7:16 PM, Richard W.M. Jones <rjones@redhat.com> wrote: > On Tue, Jun 03, 2014 at 06:55:49PM +0530, abhishek jain wrote: > > supermin: failed to find a suitable kernel
2014 Jun 04
2
Re: libguestfs supermin error
...NU General Public License > * along with this program; if not, write to the Free Software > * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA > 02110-1301 USA > *) > > open Unix > open Printf > > open Utils > open Ext2fs > open Fnmatch > > let patt_of_cpu host_cpu = > let models = > match host_cpu with > | "mips" | "mips64" -> [host_cpu; "*-malta"] > | "ppc" | "powerpc" | "powerpc64" -> ["ppc"; "powerpc"; "powerpc64"] > |...
2014 May 29
2
Re: libguestfs error
Glad Buddy.:-) It worked. Thanks a lot. I'm having some urgent deliverable and this would really help me alot. Thanks again. Would love to trouble you again . On Thu, May 29, 2014 at 9:34 PM, Richard W.M. Jones <rjones@redhat.com> wrote: > On Thu, May 29, 2014 at 09:30:45PM +0530, abhishek jain wrote: > [...] > > checking for main in -lreadline... no > >
2016 Dec 07
5
[PATCH 0/3] Miscellaneous improvements to supermin.
Document what each module does, using *.mli files. Remove the --dtb option, it's obsolete. Rename modules according to their purpose. Rich.