Hi,
I have an openwrt with kernel version 4.14.53.
I need to compile Make on it to later compile a kernel module in OpenWRT.
How can I start?
Edit: OpenWrt 18.06
Hi,
I have an openwrt with kernel version 4.14.53.
I need to compile Make on it to later compile a kernel module in OpenWRT.
How can I start?
Edit: OpenWrt 18.06
You don't compile make, it's already there.
What are you trying to build/compile.
18.06 is EOL.
I've made a change to axp20x-pek.c linux driver, trying to compile it and load it.
Make is not already present in my system.
Are you attempting this on an OpenWrt device, or via the official OpenWrt SDK (software development kit) as per the Wiki?
The SDK should be used.
Make is a command for the build system.
Trying this on a device with an image of OPENWRT 18.06 installed.
To reiterate again:
To solve your issue, use the SDK instead of attempting to compile directly on an OpenWrt device.
By SDK you mean cross-compiling?
If your host device is not the same CPU as your OpenWrt - then yes it would be a "cross compile".
See: https://openwrt.org/docs/guide-developer/toolchain/using_the_sdk
Ok, so I have an SDK already.
I compile the packages with "make" command.
When I try to install the .ipk inside the openwrt device I get this result
Installing kmod-axp209-pek (4.14.53+0.1-1) to root...
Collected errors:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod- axp209-pek:
* kernel (= 4.14.53-1-a0d166502d21c91f09ed310b29b3f5d1) *
* opkg_install_cmd: Cannot install package kmod-axp209-pek.
Do I have to add any flag to make?
That's because the kernel water mark mismatch.
Any idea on how can I compile for that specific kernel?
What version of 18.06?
ubus call system board
I would suggest using the correct SDK.
Unfortunately the guy that worked on the device before me personalized the release version from 18.06.? to 2.0.0 1.0 for only God knows what reason.
Just FYI - it's assumed in the threads that you're running official OpenWrt when you make an inquiry.
So that we can verify your device is actually supported - what's the make/model of your device?
there should be a better thread about forcing a specific kernel magic ver, but I can't find it atm