UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Explorer
Explorer
3,896 Views
Registered: ‎05-14-2017

Kernel build and install process error

Hello,

 

I am trying to compile the kernel version 4.9.0 from xilinx (can be found here: https://github.com/Xilinx/linux-xlnx), and install it in a custom subdirectory (to been copied into uSD later).

 

The build process end up right.

The install process fails, with the following error:

 

run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.9.10-xilinx /path/to/kernel/source/linux-kernels/xilinx/linux-4.9.10/install/vmlinuz-4.9.10-xilinx
/etc/kernel/postinst.d/apt-auto-removal: 84: /etc/kernel/postinst.d/apt-auto-removal: cannot create /etc/apt/apt.conf.d//01autoremove-kernels.dpkg-new: Permission denied
run-parts: /etc/kernel/postinst.d/apt-auto-removal exited with return code 2
arch/arm/boot/Makefile:96: recipe for target 'install' failed
make[2]: *** [install] Error 1
arch/arm/Makefile:333: recipe for target 'install' failed
make[1]: *** [install] Error 2
Makefile:525: recipe for target '__build_one_by_one' failed
make: *** [__build_one_by_one] Error 2
Warning (unit_address_vs_reg): Node /memory has a reg or ranges property, but no unit name
Warning (unit_address_vs_reg): Node /pmu has a reg or ranges property, but no unit name
Warning (unit_address_vs_reg): Node /fixedregulator@0 has a unit name, but no reg property

 

As it seems, the install process tries to access to my system directories, which of course is not what I want.

The problem does not come up when I try to compile a kernel version 4.1.33 with the same exact method.

 

Do you have an idea or any suggestion to what is causing this problem and how to solve ?

Thank you in advance.

Regards,

Simon

0 Kudos
7 Replies
3,889 Views
Registered: ‎03-27-2014

Re: Kernel build and install process error


@simozz wrote:

 


/etc/kernel/postinst.d/apt-auto-removal: 84: /etc/kernel/postinst.d/apt-auto-removal: cannot create /etc/apt/apt.conf.d//01autoremove-kernels.dpkg-new: Permission denied


you don't have write permission in destination folder,

try to change the destination

 

make install DESTDIR=/somewhere/else

@simozz wrote:

 


Warning (unit_address_vs_reg): Node /memory has a reg or ranges property, but no unit name
Warning (unit_address_vs_reg): Node /pmu has a reg or ranges property, but no unit name
Warning (unit_address_vs_reg): Node /fixedregulator@0 has a unit name, but no reg property

 

 


build should pass but the devicetree seems corrupted

G.W.,
NIST - Time Frequency metrology
0 Kudos
Explorer
Explorer
3,872 Views
Registered: ‎05-14-2017

Re: Kernel build and install process error

Hello @guillaumebres,

 

>> you don't have write permission in destination folder

Well, I create the destination folder.

The script used to execute the make command is the same I used for an older kernel, which works.

 

The problem is related with the script

 

/arch/arm/boot/install.sh

 

When is executed by the build process, the command line is:

 

/bin/bash ./arch/arm/boot/install.sh "4.9.10-s-1.0.0"

 

Looking at arch/arm/boot/install.sh it results that this script takes 4 arguments:

 

#!/bin/sh
#
# arch/arm/boot/install.sh
#
# This file is subject to the terms and conditions of the GNU General Public
# License.  See the file "COPYING" in the main directory of this archive
# for more details.
#
# Copyright (C) 1995 by Linus Torvalds
#
# Adapted from code in arch/i386/boot/Makefile by H. Peter Anvin
# Adapted from code in arch/i386/boot/install.sh by Russell King
#
# "make install" script for arm architecture
#
# Arguments:
#   $1 - kernel version
#   $2 - kernel image file
#   $3 - kernel map file
#   $4 - default install path (blank if root directory)
#

 

$2, $3 & $4 are missing. I still don't know why..

 

Regards,

Simon

0 Kudos
Explorer
Explorer
3,732 Views
Registered: ‎05-14-2017

Re: Kernel build and install process error

Hello,

 

Do someone from the Xilinx staff knows how to solve this problem ?

 

Thank you,

Simon

0 Kudos
Visitor madisonquinn
Visitor
3,716 Views
Registered: ‎06-20-2017

Re: Kernel build and install process error

Hello,

 

This will copy all the modules to a new directory, "/lib/modules/a.b.c" where a.b.c is the kernel version

 

make modules_install

 

Installing with dpkg

Using apt is so convenient that it makes it easy to forget about the lower-level tools, but the easiest way of installing a compiled kernel is to use a command such as dpkg -i package.deb, where package.deb is the name of a linux-image package such as linux-image-3.16.7-ckt4-falcot_1_amd64.deb.
 
The configuration steps described in this chapter are basic and can lead both to a server system or a workstation, and it can be massively duplicated in semi-automated ways. However, it is not enough by itself to provide a fully configured system. A few pieces are still in need of configuration, starting with low-level programs known as the “Unix services”.
 
Thanks.
0 Kudos
Explorer
Explorer
3,696 Views
Registered: ‎05-14-2017

Re: Kernel build and install process error

Hello @madisonquinn

 

The problem happens only with linux-xlnx kernel.

The make command I use to compile is:

 

 

make all uImage modules_install install INSTALL_PATH=${INSTALLDIR} INSTALL_MOD_PATH=${INSTALLDIR} ARCH=arm CROSS_COMPILE=${CROSS} LOADADDR=${LOADADDR}

where INSTALLDIR is a custom local dir inside the kernel source directory.

This command works fine with older kernel sources (e.g. 4.1.33).

 

Regards,

Simon

 

0 Kudos
3,443 Views
Registered: ‎07-19-2017

Re: Kernel build and install process error

There should be recipe provided to do this in the recipes-kernel/linux area.  There is a recipe for pulling in the prebuilt.  Where is the recipe that creates that?

0 Kudos
Newbie jyothi_9
Newbie
571 Views
Registered: ‎12-29-2018

Re: Kernel build and install process error

it is very much useful for me to understand many concepts and helped me a lot.

web-methods training

windows-server training

0 Kudos