Adding patch to kernel

Hi, someone can explane me how to add patch to kernel for a my own personal kernel?
Thanks a lot,
Riccardo

Edit: k i'm compiling my kernel but i see some warning like this:
arch/i386/kernel/apm.c: In function 'suspend':
arch/i386/kernel/apm.c:1192: warning: 'pm_send_all' is deprecated (declared at include/linux/pm_legacy.h:20)
arch/i386/kernel/apm.c:1227: warning: 'pm_send_all' is deprecated (declared at include/linux/pm_legacy.h:20)
arch/i386/kernel/apm.c: In function 'check_events':
arch/i386/kernel/apm.c:1340: warning: 'pm_send_all' is deprecated (declared at include/linux/pm_legacy.h:20)
it's a problem?
Last edited by Bola (2007-10-26 16:10:28)

Similar Messages

  • Wondering if this was the correct way to patch my kernel for CFLAGS?

    Hello. I use to build the zen-sources kernel but stopped many months ago. I didn't really need all of those patches but I did miss the Custom CFLAGS/MAKEFLAGS option that the zen kernel had. I also missed the 432HZ Timer frequency setting available in the zen patch.
    So I researched a bit and grabbed these parts from the zen patch to add to the Arch kernel:
    For the CFLAGS/MAKEFLAGS
    diff --git a/Makefile b/Makefile
    index 1ab3ebf..472fe73 100644
    --- a/Makefile
    +++ b/Makefile
    @@ -328,13 +328,12 @@ CHECK = sparse
    CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \
    -Wbitwise -Wno-return-void $(CF)
    MODFLAGS = -DMODULE
    -CFLAGS_MODULE = $(MODFLAGS)
    -AFLAGS_MODULE = $(MODFLAGS)
    -LDFLAGS_MODULE =
    -CFLAGS_KERNEL =
    +CFLAGS_MODULE = $(MODFLAGS) $(CUSTOM_CFLAGS)
    +AFLAGS_MODULE = $(MODFLAGS)
    +LDFLAGS_MODULE =
    +CFLAGS_KERNEL = $(CUSTOM_CFLAGS)
    AFLAGS_KERNEL =
    # Use LINUXINCLUDE when you must reference the include/ directory.
    # Needed to be compatible with the O= option
    LINUXINCLUDE := -Iinclude \
    @@ -344,6 +343,9 @@ LINUXINCLUDE := -Iinclude \
    KBUILD_CPPFLAGS := -D__KERNEL__
    +# Apply custom flags
    +KBUILD_CFLAGS += $(CUSTOM_CFLAGS)
    +
    KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
    -fno-strict-aliasing -fno-common \
    -Werror-implicit-function-declaration
    diff --git a/init/Kconfig b/init/Kconfig
    index 6a5c5fe..7b2f4b5 100644
    --- a/init/Kconfig
    +++ b/init/Kconfig
    @@ -672,6 +734,32 @@ config CC_OPTIMIZE_FOR_SIZE
    If unsure, say Y.
    +menu "Custom Build Flags"
    +
    +config CUSTOM_CFLAGS
    + string "Custom CFLAGS for kernel"
    + default ""
    + help
    + You can use this to easily set custom gcc CFLAGS to be used for the
    + entire kernel (including modules).
    +
    + No warning for you, i can't fix stupidity.
    +
    + If unsure, leave blank.
    +
    +config CUSTOM_MAKEFLAGS
    + string "Custom MAKEFLAGS for kernel"
    + default ""
    + help
    + You can use this to easily set custom MAKEFLAGS to be used for building
    + the entire kernel.
    +
    + (Or just use the options when you run make?)
    +
    + If unsure, leave blank.
    +
    +endmenu
    +
    config SYSCTL
    bool
    and for the Timer frequency:
    diff --git a/kernel/Kconfig.hz b/kernel/Kconfig.hz
    index 94fabd5..7a830d4 100644
    --- a/kernel/Kconfig.hz
    +++ b/kernel/Kconfig.hz
    @@ -4,7 +4,7 @@
    choice
    prompt "Timer frequency"
    - default HZ_250
    + default HZ_1000
    help
    Allows the configuration of the timer frequency. It is customary
    to have the timer interrupt run at 1000 Hz but 100 Hz may be more
    @@ -23,6 +23,30 @@ choice
    with lots of processors that may show reduced performance if
    too many timer interrupts are occurring.
    + config HZ_108
    + bool "108 HZ"
    + help
    + 864 HZ is the best value for desktop systems. Most responsive
    + out of all the options. This is for Eight core/Processor systems only
    + as timer frequencies * NR_CPUS = actual frequency.
    + Try this if you have a Eight Core/Processor processor system and a desktop environment.
    +
    + config HZ_144
    + bool "144 HZ"
    + help
    + 864 HZ is the best value for desktop systems. Most responsive
    + out of all the options. This is for Six Core/Processor systems only
    + as timer frequencies * NR_CPUS = actual frequency.
    + Try this if you have a Six core/processor system and a desktop environment.
    +
    + config HZ_216
    + bool "216 HZ"
    + help
    + 864 HZ is the best value for desktop systems. Most responsive
    + out of all the options. This is for Quad-core/Processor systems only
    + as timer frequencies * number of processors = actual frequency.
    + Try this if you have a quad-core/dual processor system and a desktop environment.
    +
    config HZ_250
    bool "250 HZ"
    help
    @@ -39,6 +63,22 @@ choice
    on SMP and NUMA systems and exactly dividing by both PAL and
    NTSC frame rates for video and multimedia work.
    + config HZ_432
    + bool "432 HZ"
    + help
    + 864 HZ is the best value for desktop systems. Most responsive
    + out of all the options. This is for Dual Core/Processor systems only
    + as timer frequencies * number of processors = actual frequency.
    + Try this if you have a dual-core/dual processor system and a desktop environment.
    +
    + config HZ_864
    + bool "864 HZ"
    + help
    + 864 HZ is the best value for desktop systems. Most responsive
    + out of all the options. The only reason it is not default is
    + because it may break few drivers. Give it a try if you have
    + a desktop :).
    +
    config HZ_1000
    bool "1000 HZ"
    help
    @@ -50,8 +90,13 @@ endchoice
    config HZ
    int
    default 100 if HZ_100
    + default 108 if HZ_108
    + default 144 if HZ_144
    + default 216 if HZ_216
    default 250 if HZ_250
    default 300 if HZ_300
    + default 432 if HZ_432
    + default 864 if HZ_864
    default 1000 if HZ_1000
    config SCHED_HRTICK
    Well the code was added to my make menuconfig kernel settings, and is in the .config of my newly compiled kernel..... I'm just wondering if I did this correctly. (I'm pretty sure that I did a crappy job of patching since I just grabbed the pieces of the zen patch that I thought were the correct one)..... This is the message from the patch:
    patching file Makefile
    patching file init/Kconfig
    patch unexpectedly ends in middle of line
    Hunk #1 succeeded at 734 with fuzz 2.
    patching file kernel/Kconfig.hz
    patch unexpectedly ends in middle of line
    Hunk #4 succeeded at 90 with fuzz 1.
    So if someone can tell me a better way to patch the kernel26 for custom CFLAGS and 432HZ Timer frequency (for dual core) I would appreciate it. Thanks.

    I'm still trying to find out if I needed to patch any other parts of the kernel source when I added CFLAGS to the kernel modules? I also would like to know if I did the Timing part correctly (so I could use the 432HZ setting for a dual core).
    ..... so far this kernel has worked ok for the last 4 days. Does anybody know how I can benchmark it and compare it to other kernels that I have built with different settings?
    Any info is appreciated.
    Last edited by methuselah (2009-05-19 15:20:55)

  • [SOLVED]How to patch the kernel? And other questions

    Like the same user who started this thread I'm suffering from hibernation resuming troubles using kernel 2.6.38. In that thread was posted a soluttion that involves patching the kernel.
    The patch to apply is this:
    http://git.kernel.org/?p=linux/kernel/g … e3e9fc8684
    Waiting for the bug to be corrected and a new version supplied is not an option, because this laptop is my main computer and I heavly rely on hibernation.
    Here's my trouble now. I don't know if it is possible to patch without recompiling the whole kernel, or it has to be compiled with that patch applied. I have seen the archlinux's wiki guide about compiling the kernel, but found nothing about applying patches (maybe I didn't searched with enought depth).
    In case there is needed a full compilation, should I use the vanilla kernel, the Arch Linux one or any of the AUR ones (I said AUR because they're the first that came to my mind)? Should i expect a performance gain with this (apart from fixing the hibernation bug)?
    Maybe i'm just doing a bunch of dumb questions, and the only thing I need is to search deeply on the wiki. In that case, please tell me. If not, I rather get some answers around kernel patching and / or compiling questions.
    Edit: In addittion, it is possible that all this questions are just newbie ones, I don't know, but as I am willing to learn from this I will appreciate any info or documentation about it.
    Thank you.
    Last edited by ethail (2011-04-12 06:30:48)

    From the source tree (/usr/src/linux-whatever) execute
    patch -p1 < /path/to/fix.patch
    then recompile kernel from the source tree.
    Basically that consists of executing the following commands from the source tree:
    make menuconfig
    make
    make modules_install
    cp -v System.map /boot/System.map-CUSTOM
    cp -v arch/x86/boot/bzImage /boot/vmlinuz-CUSTOM
    mkinitcpio -k 2.6.38-CUSTOM -g /boot/kernel-CUSTOM.img
    and you need to add menu entry in /boot/grub/menu.lst
    -k 2.6.38-CUSTOM should corespond to /lib/modules/2.6.38-CUSTOM (replace 2.6.38-CUSTOM with the name of your module directory, name depends on the kernel version and suffix that you gave in menuconfig). Regarding kernel configuration in menuconfig - I can't help you, you could use arch stock kernel config (zcat /proc/config.gz > /usr/src/linux-whatever/.config)
    I do these kind of things this way - maybe someone else have a more elegant solution.

  • Permission problem when trying to patch the kernel

    Hello, my name is Rodrigo and I have a VAIO laptop. The problem with it is that it has soo many privative components that are very hard to get to work under Linux. Fortunately, I found a project http://code.google.com/p/vaio-f11-linux/, which aims to provide full suport to VAIOs in Linux.
    In order to do this I had to patch the Kernel http://code.google.com/p/vaio-f11-linux … nelSupport
    So I started to follow the instructions.
    1) I downloaded from kernel.org the lastest stable release (2.6.39)
    2) I made cd /usr/src/linux and unpacked the tar contnents from the kernel file into this directory
    3) I made "sudo curl http://www.absence.it/vaio-acpi/source/ … 6.39.patch | patch p1" and I got this:
    patching file include/linux/sonypi.h
    patch: **** Can't rename file /tmp/poSN3DW6 to include/linux/sonypi.h : Permission denied
    I don't know if I'm the problem or if the patch is "bad".I already submitted the problem to the Issues page from the project, but maybe I made something wrong, any help would be apreciated
    Rodrigo

    I don't think sudo was meant for strange things like downloading a patch and then piping it into the patch command. If you want that to work, you should either run "su" to make sure you are root beforehand, or split up the commands like so:
    sudo curl http://www.absence.it/vaio-acpi/source/patches/vaio-2.6.39.patch >vaio-2.6.39.patch
    sudo patch p1 <vaio-2.6.39.patch
    The generic instructions for using this patch will probably work but it will be cleaner if you look at the wiki page for Arch's take on custom kernels.
    Last edited by ConnorBehan (2011-05-25 03:15:06)

  • Need help patching a kernel to use new ALSA

    I have a friend who's just starting out with Arch, and I've been getting him started on his install. His system uses a Biostar 6100-939 motherboard and an Athlon64 processor.
    Everything has been working so far except sound. According to documentation, the correct ALSA driver for his nForce4 chipset should be the snd_intel8x0 module. However, loading this module didn't make any soundcards available to alsamixer.
    We started to investigate the problem, and recently found this: http://jrbelvin.freeshell.org/weblog/linux/mcp51-alsa stating that the problem is fixed with the 1.0.11rc3 release of ALSA. We also found this : http://www.nvnews.net/vbulletin/showthread.php?t=60493 covering the same issue. We tried applying the patch listed in that forum to a build of the ArchCK kernel. While we were able to confirm that our patch really did patch the kernel, and that the patched kernel built, the snd_intel8x0 module still didn't work when we loaded our patched kernel.
    So now it seems like we'll have to properly use the 1.0.11rc3 release of ALSA to get sound working on his computer until 1.0.11 is finalized and merged into the kernel. Does anyone have any experience on patching a kernel to use a different release of ALSA? Any help would be appreciated.
    Woogie

    I had the same problem with my new computer (less than a week old) using an ASRock K8NF4G-SATA2 board. For me the problem stopped when I switched to the 2.6.16 kernel then in testing but now in current. If it's not working with that kernel try modprobing snd-intel8x0 by hand and running alsaconf.
    I actually made packages of alsa-lib and alsa-driver 1.0.11rc4 for myself in the process, but I've switched away from those again, so I don't think they should be needed for NF4/MCP51 to work. That said if your problem doesn't go away I'll be happy to post the PKGBUILDs I modified or even send the packages themselves (with absolutely no guarantees).

  • [SOLVED] How do I patch the kernel?

    EDIT (again): Doesn't seem like the patch is needed anymore. 3.3.1 kernel from the repos seems identical to my custom kernel (also 3.3.1).
    EDIT: The patches are for an older kernel but I was able to apply them manually.
    Hello. I'm trying to patch the kernel using the patch found on this page: http://lists.freedesktop.org/archives/i … 09584.html
    Now, I don't know much about patching but the patch in that post looks more like the program output of several diff commands. How do I format this to create a valid .patch file?
    Last edited by Splooshie123 (2012-04-10 04:52:40)

    To get back to my original question, making a patch out of what was in that mailing list post:
    Does this look ok?
    drivers/gpu/drm/i915/i915_drv.c | 4 ++++
    drivers/gpu/drm/i915/i915_drv.h | 1 +
    drivers/gpu/drm/i915/intel_display.c | 34 +++++++++++++++++++++-------------
    3 files changed, 26 insertions(+), 13 deletions(-)
    diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
    index 004880aa3a948669b8b4e23d9ad73d132cff81d0..1d88f059a27321ecb681e2b7927bb69029fcb49a 100644
    --- a/drivers/gpu/drm/i915/i915_drv.c
    +++ b/drivers/gpu/drm/i915/i915_drv.c
    @@ -49,6 +49,10 @@ module_param_named(powersave, i915_powersave, int, 0600);
    unsigned int i915_lvds_fixed = 1;
    module_param_named(lvds_fixed, i915_lvds_fixed, int, 0600);
    +unsigned int i915_lvds_channels = 0;
    +module_param_named(lvds_channels, i915_lvds_channels, int, 0600);
    +MODULE_PARM_DESC(lvds_channels, "LVDS channels in use: 0=(default) probe hardware 1=single 2=dual");
    +
    unsigned int i915_lvds_downclock = 0;
    module_param_named(lvds_downclock, i915_lvds_downclock, int, 0400);
    diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
    index 3fa8681459aa596e12e885568e5b48f0c9a60719..a6aab43e5f39f2d5b92a69a284bf8f72a254ea7c 100644
    --- a/drivers/gpu/drm/i915/i915_drv.h
    +++ b/drivers/gpu/drm/i915/i915_drv.h
    @@ -886,6 +886,7 @@ extern int i915_max_ioctl;
    extern unsigned int i915_fbpercrtc;
    extern unsigned int i915_powersave;
    extern unsigned int i915_lvds_fixed;
    +extern unsigned int i915_lvds_channels;
    extern unsigned int i915_lvds_downclock;
    extern unsigned int i915_lvds_24bit;
    diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
    index 09f57f29c30c371c213944be473090a780a287db..4dc91400edd8935be45a229cf91292339bca0ce8 100644
    --- a/drivers/gpu/drm/i915/intel_display.c
    +++ b/drivers/gpu/drm/i915/intel_display.c
    @@ -642,6 +642,20 @@ static const intel_limit_t intel_limits_ironlake_display_port = {
    .find_pll = intel_find_pll_ironlake_dp,
    +static int intel_is_dual_channel_mode(struct drm_crtc *crtc)
    +{
    + struct drm_device *dev = crtc->dev;
    + struct drm_i915_private *dev_priv = dev->dev_private;
    + if (i915_lvds_channels) {
    + /* User has specified desired channel mode */
    + return (i915_lvds_channels == 2);
    + }
    +
    + /* User has not specified mode so let's see
    + what the hardware is doing. */
    + return ((I915_READ(LVDS) & LVDS_CLKB_POWER_MASK) == LVDS_CLKB_POWER_UP);
    +}
    +
    static const intel_limit_t *intel_ironlake_limit(struct drm_crtc *crtc)
    struct drm_device *dev = crtc->dev;
    @@ -653,8 +667,7 @@ static const intel_limit_t *intel_ironlake_limit(struct drm_crtc *crtc)
    if (dev_priv->lvds_use_ssc && dev_priv->lvds_ssc_freq == 100)
    refclk = 100;
    - if ((I915_READ(PCH_LVDS) & LVDS_CLKB_POWER_MASK) ==
    - LVDS_CLKB_POWER_UP) {
    + if (intel_is_dual_channel_mode(crtc)) {
    /* LVDS dual channel */
    if (refclk == 100)
    limit = &intel_limits_ironlake_dual_lvds_100m;
    @@ -677,18 +690,16 @@ static const intel_limit_t *intel_ironlake_limit(struct drm_crtc *crtc)
    static const intel_limit_t *intel_g4x_limit(struct drm_crtc *crtc)
    - struct drm_device *dev = crtc->dev;
    - struct drm_i915_private *dev_priv = dev->dev_private;
    const intel_limit_t *limit;
    if (intel_pipe_has_type(crtc, INTEL_OUTPUT_LVDS)) {
    - if ((I915_READ(LVDS) & LVDS_CLKB_POWER_MASK) ==
    - LVDS_CLKB_POWER_UP)
    + if (intel_is_dual_channel_mode(crtc)) {
    /* LVDS with dual channel */
    limit = &intel_limits_g4x_dual_channel_lvds;
    - else
    - /* LVDS with dual channel */
    + } else {
    + /* LVDS with single channel */
    limit = &intel_limits_g4x_single_channel_lvds;
    + }
    } else if (intel_pipe_has_type(crtc, INTEL_OUTPUT_HDMI) ||
    intel_pipe_has_type(crtc, INTEL_OUTPUT_ANALOG)) {
    limit = &intel_limits_g4x_hdmi;
    @@ -821,8 +832,7 @@ intel_find_best_PLL(const intel_limit_t *limit, struct drm_crtc *crtc,
    * reliably set up different single/dual channel state, if we
    * even can.
    - if ((I915_READ(LVDS) & LVDS_CLKB_POWER_MASK) ==
    - LVDS_CLKB_POWER_UP)
    + if (intel_is_dual_channel_mode(crtc))
    clock.p2 = limit->p2.p2_fast;
    else
    clock.p2 = limit->p2.p2_slow;
    @@ -871,7 +881,6 @@ intel_g4x_find_best_PLL(const intel_limit_t *limit, struct drm_crtc *crtc,
    int target, int refclk, intel_clock_t *best_clock)
    struct drm_device *dev = crtc->dev;
    - struct drm_i915_private *dev_priv = dev->dev_private;
    intel_clock_t clock;
    int max_n;
    bool found;
    @@ -886,8 +895,7 @@ intel_g4x_find_best_PLL(const intel_limit_t *limit, struct drm_crtc *crtc,
    lvds_reg = PCH_LVDS;
    else
    lvds_reg = LVDS;
    - if ((I915_READ(lvds_reg) & LVDS_CLKB_POWER_MASK) ==
    - LVDS_CLKB_POWER_UP)
    + if (intel_is_dual_channel_mode(crtc))
    clock.p2 = limit->p2.p2_fast;
    else
    clock.p2 = limit->p2.p2_slow;

  • Adding patches to dwm

    I have been using wmii for the past year or so, and decided to switch to dwm due to it's even lighter weight, and better handling of dual heads. I have it all up and running, and there is great arch-specific documentation in the wiki, but decided I wanted to add a patch, push. So, I downloaded the build scripts from abs, downloaded push.c, modified source.h to trigger push, and when I try to build it, I get
    ==> Validating source files with md5sums...
    dwm-5.8.2.tar.gz ... Passed
    config.h ... FAILED
    dwm.desktop ... Passed
    ==> ERROR: One or more files did not pass the validity check!
    How do I implement this patch?
    Thanks.
    Last edited by chapatt (2011-02-20 17:59:02)

    Meyithi wrote:
    See below PKGBUILD for example of adding patch.
    # $Id: PKGBUILD 18861 2010-06-16 09:09:52Z spupykin $
    Are you sure that this works?
    When I tried this, the patched config.h got overwritten by the one that comes with the abs.
    This Version Worked for me
    # $Id: PKGBUILD 18861 2010-06-16 09:09:52Z spupykin $
    # Maintainer: Sergej Pupykin <[email protected]>
    # Contributor: Dag Odenhall <[email protected]>
    # Contributor: Grigorios Bouzakis <[email protected]>
    pkgname=dwm
    pkgver=5.8.2
    pkgrel=2
    pkgdesc="A dynamic window manager for X"
    url="http://dwm.suckless.org"
    arch=('i686' 'x86_64')
    license=('MIT')
    options=(zipman)
    depends=('libx11' 'libxinerama')
    install=dwm.install
    source=(http://dl.suckless.org/dwm/dwm-$pkgver.tar.gz \
    config.h
    dwm.desktop
    dwm-5.9-uselessgap.diff)
    build() {
    cd $srcdir/$pkgname-$pkgver
    cp $srcdir/config.h config.def.h
    patch -Np1 -i ../dwm-5.9-uselessgap.diff || return 1
    sed -i 's/CPPFLAGS =/CPPFLAGS +=/g' config.mk
    sed -i 's/CFLAGS =/CFLAGS +=/g' config.mk
    sed -i 's/LDFLAGS =/LDFLAGS +=/g' config.mk
    make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 || return 1
    make PREFIX=/usr DESTDIR=$pkgdir install || return 1
    install -m644 -D LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE && \
    install -m644 -D README $pkgdir/usr/share/doc/$pkgname/README && \
    install -m644 -D $srcdir/dwm.desktop $pkgdir//etc/X11/sessions/dwm.desktop
    md5sums=('f0b422bfeaa812d66c6dd15c3cc92a6b'
    'b2e7ebdeb77ecb075ae67400f70d70b6'
    '939f403a71b6e85261d09fc3412269ee'
    'bf8bf3ed1edc0a72ab77135b73a0c8cc')

  • Adding patches to an offline .WIM file

    Hi guys
    I am trying to update my companies Windows Server 2008 R2 x64 install.wim file with some patches I have downloaded from the Microsoft Catalogue.
    So a little background, I have taken the install.wim file from the sources directory of our server image which is saved on our deployment server, and I have copied it locally to my PC. I am a domain admin and I am also a local admin on my PC.
    I downloaded the latest ADK and ran the Deployment and Imaging Tools Environment tool as an administrator. I mounted the install.wim file to a mount folder with no problems.
    When I try to inject a single patch using this command line DISM /image: <mount_directory> /Add-Package /Packagepath: <msu_file> (obviously replacing mount_directory and msu_file with the correct paths) I get the below error.
    Image version: 6.17600.16385Processing 1 of 1 – adding package…………(package path details ect)
    99.5%
    An error occurred applying the Unattend.xml file from the .msu package.
    For more information, review the log file.
    Error: 0x80070005
    Error: 5
    Access is denied.
    Edited copy of the log file:
    2014-11-13 11:02:46, Error                 DISM   DISM Package Manager: PID=9880 Failed processing package changes - CDISMPackageManager::ProcessChanges(hr:0x80070005)
    2014-11-13 11:02:46, Error                 DISM   DISM Package Manager: PID=9880 Failed to process package changes in unattend file. - CPackageManagerUnattendHandler::Apply(hr:0x80070005)
    2014-11-13 11:02:46, Error                 DISM   DISM Package Manager: PID=9880 Failed to Apply the unattend. - CDISMPackageManager::Apply(hr:0x80070005)
    2014-11-13 11:02:46, Error                 DISM   DISM Unattend Manager: PID=9880 d:\w7rtm\base\ntsetup\opktools\dism\providers\unattendprovider\dll\unattendmanager.cpp:400 - CUnattendManager::Apply(hr:0x80070005)
    2014-11-13 11:02:46, Error                 DISM   DISM Package Manager: PID=9880 Failed applying the unattend file from the MSU package. - CMsuPackage::ApplyMsuUnattend(hr:0x80070005)
    2014-11-13 11:02:46, Error                 DISM   DISM Package Manager: PID=9880 Failed to apply the MSU unattend file to the image. - CMsuPackage::Install(hr:0x80070005)
    When looking at the Security tab under properties of the mount folder I can see that the account CREATOR OWNER has no permissions. When I tried to give it full control I get access is denied on the following folders:
    C:\mount\program files
    C:\mount\program files (x86)
    C:\mount\windows
    If I check the permissions for my account name, it does have full control of the mount folder.
    I am wondering if anyone can help me get rid of this error?
    Or even better still as I have 63 patches to inject into this .wim file, can anyone suggest an easier way, as I wouldn’t like to sit here all day doing one patch at a time?
    Thanks in advance.
    Dave

    Hi David Smale,
    From your current description and base on my experience, it usually caused by the WIM file corrupt, please try to copy a new Wim file then try to patch again, if it not work,
    please post your DISM error log, you can refer the following KB to get the DISM log.
    This error also can caused by the Mcafee AV.
    DISM.exe generates an Error: 5 or Access Denied when VSE 8.8 Access Protection is enabled
    https://kc.mcafee.com/corporate/index?page=content&id=KB76867&locale=zh_CN
    I’m glad to be of help to you!
    *** This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control
    these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the
    use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet. ***
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Adding patch jar file while starting Managed Server through Node Manager

    Hi,
    I am using Weblogic Express 10.0 on Linux env, Jrockit JVM.
    I have a patch jar file from BEA, I added it to Weblogic start script, when I start the Managed server by using startManagedWeblogic.sh script, I can see that patch jar file is added to classpath when I grep for Java process.(ps -ef | grep -i java).
    But when I start the Managed server through NodeManager and grep for java process, I dont see the patch jar file added to classpath of Managed server process which is started.
    Can someone let me know if I have to add the patch jar file somewhere else along with Weblogic start script if starting Managed server through Node Manager?
    Weblogic Consultant

    Thanks for your response.
    I found another way to do this.
    Edit nodemanager.properties file and set StartScriptEnabled=true (By default it is false), and then restart the Node Manager process.
    Enabling this setting to true will enable the NodeManager process to use startManagedWeblogic.sh script while starting the managed server, all the added jar files, memory settings will be taken from start script of Weblogic
    Weblogic Consultant

  • [SOLVED]How to patch a kernel using PKGBUILD

    Hello guys,
    Sorry if my question looks stupid but I'm trying to compile my first kernel following this wiki page and I wonder how to apply a patchset...
    The patchset to apply is the ck one and I've downloaded the patch file from http://ck.kolivas.org/patches/3.0/3.3/3 … .3-ck1.bz2 and placed the patch itself at the root of my PKGBUILD folder.
    At my first attempt to run makepkg, I could see several 'found xxx.patch' (the other patches which were already in the abs tree) but not my ck patch.
    After taking a look in my PKGBUILD file I modified the source instruction as follow to include my pach:
    source=("http://www.kernel.org/pub/linux/kernel/v3.x/linux-3.3.tar.xz"
            "http://www.kernel.org/pub/linux/kernel/ … pkgver}.xz"
            # the main kernel config files
            'config' 'config.x86_64'
            # standard config files for mkinitcpio ramdisk
            "${pkgname}.preset"
            'fix-acerhdf-1810T-bios.patch'
            'change-default-console-loglevel.patch'
            'i915-fix-ghost-tv-output.patch'
            'ext4-options.patch'
        'patch-3.3-ck1')
    Now when I run makepkg, it founds my patch but right after I get  a md5 cheksum error:
    -> Found config
    -> Found config.x86_64
    -> Found linux-custom.preset
    -> Found fix-acerhdf-1810T-bios.patch
    -> Found change-default-console-loglevel.patch
    -> Found i915-fix-ghost-tv-output.patch
    -> Found ext4-options.patch
    -> Found patch-3.3-ck1
    ==> ERROR: Integrity checks (md5) differ in size from the source array.
    [sclarckone@archLaptop linux]$
    I could disable the checksum in makepkg.conf but maybe I'm doing it wrong so I'd like to know the clean way to do it ;-)
    Thanks for your help.
    Last edited by sclarckone (2012-04-18 19:42:01)

    makepkg -g >> PKGBUILD will do this automatically for ya.  FYI, there is a linux-ck package in the AUR you can use as a model if you wish.

  • Expdp has errors after adding patches set?

    Hi there,
    After adding Oracle patches set and upgrade the database from 10.2.01 to 10.2.0.3, we got the following errors:
    UDE-00008: operation generated ORACLE error 31626
    ORA-31626: job does not exist
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 79
    ORA-06512: at "SYS.DBMS_DATAPUMP", line 2747
    ORA-39086: cannot retrieve job information
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 79
    ORA-06512: at "SYS.KUPV$FT_INT", line 1489
    ORA-12805: parallel query server died unexpectedly
    ORA-06512: at "SYS.DBMS_DATAPUMP", line 3712
    ORA-06512: at line 1
    Notes: expdp used to work in version 10.2.0.1.
    now it has errors above in version 10.2.0.3
    What should we do to fix it?
    Thanks,

    Check this metalink note:
    EXPDP CLIENT GETS UDE-00008 ORA-31626 ORA-39086
    Doc ID: NOTE:549781.1
    Despite of the error stack, expdp may be run successfully.
    Werner

  • Add patch to kernel so solve Touchpad bug

    Hi!
    The Touchpad for some ASUS models was not being recognized. A patch has been released here:
    https://bugzilla.redhat.com/show_bug.cgi?id=1110011
    I would like to know if this patch will be applied to Arch Linux kernel or I should start a bug ticket. As of linux 3.16.3-1 the patch doesn't seem to be implemented.
    PS: If I wanted to implement the patch what would be the easiest way? I'm guessing I should get the kernel source, apply the patch and compile, but I don't know how could I install it afterwards in Arch Linux so I can easily uninstall it without harm if it doesn't work.
    Regards!

    jasonwryan wrote:
    Read the Kernel compilation page on the wiki (using the ABS method).
    You can install your patched kernel alongside the vanilla Arch one and choose which you would like to boot from. Simple.
    Hi, thank you for your answer, I tried that and got a patched kernel running which almost solves the problem. Should I open a bug issue about this or will it eventually be implemented? I think it already is in Fedora, for example.

  • Help patching a kernel

    I've read the three wikis:
    http://wiki.archlinux.org/index.php/Ker … _Patchsets
    http://wiki.archlinux.org/index.php/Cus … n_with_ABS
    http://wiki.archlinux.org/index.php/Ker … n_with_ABS
    and am still pretty lost as to what I have to do or which way is best. At the moment, I'm looking at the fallen patchset because of gensplash and suspend2. I'm just not sure where to start and if I could save my old kernel just in case I decide to go back.

    Sorry for the stupid mistake and for one (hopefully) last question. Torwards the end I get
    patching file drivers/char/keyboard.c
    Hunk #1 succeeded at 1144 with fuzz 1 (offset -20 lines).
    patching file drivers/char/n_tty.c
    Hunk #1 succeeded at 1307 (offset 11 lines).
    patching file drivers/char/vt.c
    Hunk #1 succeeded at 3970 (offset 155 lines).
    patching file drivers/video/bootsplash/bootsplash.c
    patching file drivers/video/bootsplash/bootsplash.h
    patching file drivers/video/bootsplash/decode-jpg.c
    patching file drivers/video/bootsplash/decode-jpg.h
    patching file drivers/video/bootsplash/Kconfig
    patching file drivers/video/bootsplash/Makefile
    patching file drivers/video/bootsplash/render.c
    patching file drivers/video/console/bitblit.c
    patching file drivers/video/console/fbcon.c
    Hunk #1 succeeded at 92 (offset 1 line).
    Hunk #2 succeeded at 108 with fuzz 2.
    Hunk #3 succeeded at 587 (offset 21 lines).
    Hunk #4 succeeded at 1172 (offset 40 lines).
    Hunk #5 succeeded at 1855 with fuzz 1 (offset 68 lines).
    Hunk #6 succeeded at 1920 (offset 45 lines).
    Hunk #7 succeeded at 2097 (offset 74 lines).
    Hunk #8 succeeded at 2184 (offset 45 lines).
    Hunk #9 succeeded at 2346 (offset 74 lines).
    Hunk #10 succeeded at 2521 (offset 45 lines).
    patching file drivers/video/console/fbcon.h
    patching file drivers/video/Kconfig
    Hunk #1 succeeded at 1868 (offset 205 lines).
    patching file drivers/video/Makefile
    Hunk #1 FAILED at 13.
    1 out of 1 hunk FAILED -- saving rejects to file drivers/video/Makefile.rej
    patching file drivers/video/vesafb.c
    patching file include/linux/console_struct.h
    Hunk #1 succeeded at 105 (offset 6 lines).
    patching file include/linux/fb.h
    Hunk #1 succeeded at 833 (offset 38 lines).
    ==> ERROR: Build Failed. Aborting...
    How do I teel what hunk #1 is?

  • Creating initial config when patching a kernel w/ ABS

    Hey all, I have a long standing issue with patching kernels that I can't seem to get to the bottom of. My understanding is that coping the config from the stock kernel and patching should provide you with any new options available when the build gets to the menuconfig stage. Do I have to do make config first then rebuild it? Make oldconfig? I can provide more details if need be.
    EDIT:
    I tried  make config and worked through the new options. Then I killed the compilation and copied .config back to the build dir as config. Now the config file shows options correctly. I deleted the src dir and changed the PKGBUILD back to make menuconfig. I ran makepkg but at menuconfig I STILL can't see the options! How is this possible?
    Thanks!
    Ben
    Last edited by btartsa (2007-08-27 14:34:20)

    What exactly are you trying to accomplish here?
    If i understand correctly you're
    1. making your own patchset
    2. copying in the config from a stock arch-kernel. (Are you trying to keep it as similar as possible to the stock arch-kernel? If so, why?)
    3. toggle some options for the patches you applied and save those to ${startdir}/src/linux-x.yy.zz/.config
    4. copy ${startdir}/src/linux-x.yy.zz/.config to ${startdir}/config
    5. start a new build, which cats ${startdir}/config to ${startdir}/src/linux-x.yy.zz/.config, and starts make menuconfig
    6. wonder why the options you selected in step 3 are still selected in step 5???
    I may be missing something here, but i quit smoking 2 days ago...

  • Adding Patches

    We have some patches that is required in our environment (802.1x authentication). These patches are not in the "released" channels for Microsoft, so they do not show in either Windows Update or downloaded patches in ZPM.
    My question is, is there a specific format that bundles need to be in before adding them to ZPM? I found the documentation on how to add, but not how to formulate the bundle before adding.
    We are running ZENworks 11.3.2.

    I am curious about adding a patch remediation bundle/content manually. Do you have a reference for it?
    When we have needed to do this sort of thing we usually just create a manual bundle to copy down and launch the .exe or if it is an MSU file we copy the file down, launch WUSA and pass it the required parameters.

Maybe you are looking for

  • MEDURCK  Purchase order form

    Hi,     I am copying the standard MEDRUCK form to ZMEDRUCK. I believe standard MEDRUK form will be used for new purchase orders as well changed purchased orders and for the changed purchase orders it will print only changed lines and header.  In the

  • Can convert HTML to PDF in website  ?What software  do I need to buy?

    Hi all, I'd like to insert save to PDF button in my developed web site.So is there anyone can help to point me , Whicih Languages(ASP/PHP) do I need to develop and which acrobat server do I need to installed? and currently , I embedded the flash for

  • Can I use "g" and "n" AXs at the same time for Airtunes?

    Hi, hope someone can help with this. I currently have a wireless "g" network made up of a Netgear DG834PN router handling DHCP and with wireless off, an AEBS "n" as a wirelss base station and 4 AXs (2 "g" and 2"n") doing extended wireless and airtune

  • Help me about built-in functions like regexp_substr,regexp_replace

    Hi everybody Can anyone help me to understand these functions like regexp_substr,regexp_replace ... Will be better if documantation include examples with different situations or it may be links Thx

  • PHP page link is trying to download instead of displaying

    Hello - I created a php login page that had User Authentication and a Dynamic List on it. The login page was displayed when a user clicked on a button from a previous page. At the beginning the php login page would display correctly after pressing th