10-20-2015 01:15 AM
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.
10-21-2015 09:29 PM
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?
10-22-2015 05:37 AM
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
10-25-2015 06:53 PM
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!!!