Open IniterWorker opened 5 years ago
I tried to install the native kmod package from my docker container. I walked one step forward but I didn't get a full build because now the build uses the native to compute the target depmod operation.
| make: Entering directory '/workdir/build/tmp/work/linkit7688-poky-linux-musl/kernel-module-backports/git-r0/backports-2017-11-01'
| make[1]: 'Kconfig.versions' is up to date.
| make[3]: 'Kconfig.versions' is up to date.
| #
| # configuration written to .config
| #
| Building backport-include/backport/autoconf.h ... done.
| Building modules, stage 2.
| MODPOST 3 modules
| INSTALL /workdir/build/tmp/work/linkit7688-poky-linux-musl/kernel-module-backports/git-r0/backports-2017-11-01/compat/compat.ko
| INSTALL /workdir/build/tmp/work/linkit7688-poky-linux-musl/kernel-module-backports/git-r0/backports-2017-11-01/net/mac80211/mac80211.ko
| INSTALL /workdir/build/tmp/work/linkit7688-poky-linux-musl/kernel-module-backports/git-r0/backports-2017-11-01/net/wireless/cfg80211.ko
| DEPMOD 4.14.95-yocto-standard-custom
| modinfo: ERROR: Module alias mac80211 not found.
| depmod will prefer updates/ over kernel/ -- OK!
| depmod: ERROR: could not open directory /lib/modules/4.19.79-1-MANJARO: No such file or directory
| depmod: FATAL: could not search modules: No such file or directory
| Makefile.real:97: recipe for target 'install' failed
| make[1]: *** [install] Error 1
| Makefile:119: recipe for target 'modules_install' failed
| make: *** [modules_install] Error 2
| make: Leaving directory '/workdir/build/tmp/work/linkit7688-poky-linux-musl/kernel-module-backports/git-r0/backports-2017-11-01'
Looks very much like you the Makefile of the kernel modules you are trying to backport needs fixing. Especially the hardcoded path to /sbin/depmod
doesn't only scream for trouble but actually cause you the headcahes that you are seeing. I suggest to get rid of about everything besides the actual compile command, and let bitbake figure out the module packaging, we have mechanisms for that. Find more inforamtion here
@LetoThe2nd, I'd like to thank you a lot for your advice.
I got a build. But, I don't have much time to handle the test. I have some trouble with sysupgrade. I don't know how to use it correctly. Because I have tried to flash an ubifs, but I didn't get a boot. Some shitty magic code maybe unallowed by the u-boot of the product provider. Maybe, @micro-iot, could you share some examples about flashing your device?
B.r
@IniterWorker I would love to help, but flashing procedures are highly board specific, and I have never used that board, not even touched anything MIPS for over 10 years - Sorry. Your best chance is to reach out for @micro-iot as they seem to have experience concerning that board.
@IniterWorker Linkit Smart 7688 needed only downloading via TFTP and flashing (option nr. 2) in u-boot console, which was the original one supplied by Mediatek.
@micro-iot, can you describe a bit of your procedure in terms of command line? I don't have the mt7688. I have the mt7620.
Thanks for your advice.
Hello,
I'm using the warrior revision of poky. I don't think it's a big deal in this issue. I'm wondering if you know about this issue of
/sbin/depmod: Command not found
. Do you have any idea about the dependency problem?build/tmp/work/linkit7688-poky-linux-musl/kernel-module-backports/git-r0/backports-2017-11-01/Makefile.real