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: 
Contributor
Contributor
7,985 Views
Registered: ‎06-09-2014

Failed to enable module component

I'm trying to add a driver module to my PetaLinux project with:

 

        petalinux-create -t modules -n riu_card --enable

 

in the project directory as instructed in ug1144 PetaLinux Reference Guide.  The output I get is:

 

        INFO: Create modules: riu_card
        INFO: New modules successfully created in /home/stevenw/development/firmware/pico-trial/pico_riu/components/modules/riu_card
        INFO: Enabling created component...
        make[3]: *** [oldconfig] Error 1
        make[2]: *** [oldconfig] Error 2
        make[1]: *** [sub-make] Error 2
        make: *** [oldconfig] Error 2
        ERROR: Failed to oldconfig linux/kernel!
        ERROR: Failed to configure subcomponent linux/kernel for linux
        ERROR: Failed to config subcomponents of linux!
        ERROR: Failed to config component linux/rootfs
        ERROR: Failed to enable the component because of configuration failure.
        ERROR: However, failed to enable created component.

 

Without "--enable" it creates the module component without error, but obviously it doesn't "enable" it, whatever that means.

 

I am using PetaLinux SDK 2014.4.  The project, kernel and rootfs have previously been configured with petalinux-config without problems.

 

I have not been able to find the same issue here, or anywhere with google.

 

0 Kudos
3 Replies
Contributor
Contributor
7,966 Views
Registered: ‎06-09-2014

Re: Failed to enable module component

 

I also get the error when I do "petalinux-config -c rootfs" (which I didn't get before I created the module).

 

At the bottom of build/config.log there are following lines:

 

         [INFO ] oldconfig linux/kernel
         arch/arm/Kconfig:283: can't open file "init/Kconfig"
         make[3]: *** [oldconfig] Error 1
         make[2]: *** [oldconfig] Error 2
         make[1]: *** [sub-make] Error 2
         make: *** [oldconfig] Error 2

 

Line 283 of arch/arm/Kconfig is:

 

        source "init/Kconfig"

 

There isn't an "init" directory anywhere in the project, so why is it looking for an "init/Kconfig" file when it doesn't create one?

 

0 Kudos
Xilinx Employee
Xilinx Employee
7,951 Views
Registered: ‎09-10-2008

Re: Failed to enable module component

I would think there is some kind of install issue with your host.  No specific details but just a hunch.

 

I would review all the package requirements and make sure they are all good.

 

Thanks

John

0 Kudos
Contributor
Contributor
7,930 Views
Registered: ‎06-09-2014

Re: Failed to enable module component

Thatnks for the suggestion John.  I've checked all the prerequisites to no avail.

 

After this problem started, I found that I basically can't do anything any more.  Even "petalinux-build" would produce this error when it didn't before.  Then I created a new test project and couldn't even do a "petalinux-config -vv --get-hw-description -p blah" without this error.

 

Finally, I reinstalled petalinux and suddenly everything's ok again!!!  I haven't been able to discren any difference between the new installation and the old, moved version!!!

0 Kudos