cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
swawryk
Contributor
Contributor
8,082 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
Reply
3 Replies
swawryk
Contributor
Contributor
8,063 Views
Registered: ‎06-09-2014

 

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
Reply
linnj
Xilinx Employee
Xilinx Employee
8,048 Views
Registered: ‎09-10-2008

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
Reply
swawryk
Contributor
Contributor
8,027 Views
Registered: ‎06-09-2014

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
Reply