aodv-uu icon indicating copy to clipboard operation
aodv-uu copied to clipboard

CROSS COMPILE FOR ARM.

Open lewiz-sunny opened this issue 6 years ago • 8 comments

Hello, I want to cross compile the AODV code for arm which has 4.15.0-106-generic kernel. Can you please guide me the changes I need to do, in order to make it work on arm device?

Thank you.

lewiz-sunny avatar Dec 12 '19 19:12 lewiz-sunny

This might help: https://github.com/lixiangyuan98/aodv-uu/commits/master

mwarning avatar Jun 07 '20 11:06 mwarning

@mwarning Thank you for redirecting me. That helped me with the cross compilation but, it does not compile the kernel module, I mean install the kernel module. Is there anyway to make it work on ARM64?

lewiz-sunny avatar Jun 24 '20 21:06 lewiz-sunny

If you target is Linux Kernel 5.0.0 and the link above does not help, then either downgrade the kernel (Debian Lenny, https://github.com/erimatnor/aodv-uu/pull/5/files) of your target or you can try my aodv-uu fork (https://github.com/mwarning/aodv-uu) - but I haven't actually tested it yet.

mwarning avatar Jun 24 '20 21:06 mwarning

If your problem is that your host kernel is not your target kernel, then I probably cannot help you. I haven't tried that.

mwarning avatar Jun 25 '20 00:06 mwarning

@mwarning I tried your code but it gave me an error when I do cross compilation: (make arm). Also I removed the bigendian flag.

make[1]: *** No rule to make target 'kaodv-arm'. Stop.

I just want to cross compile on my host kernel which is 4.15.0-106-generic

lewiz-sunny avatar Jun 25 '20 14:06 lewiz-sunny

Yes, I removed a lot of old build stuff. You would need to fix it for your setup.

mwarning avatar Jun 25 '20 14:06 mwarning

@mwarning I am very new to this, so sorry if my question is not relevant. Do you happen to know about this error?

./include/uapi/linux/types.h:5:10: fatal error: asm/types.h: No such file or directory #include <asm/types.h>

lewiz-sunny avatar Jun 25 '20 14:06 lewiz-sunny

Try to comment out that include line. If that does not work, check if the file is present somewhere else in ./include/uapi/linux/. If that else fails, fix the errors that happen when you have removed the include lines.

mwarning avatar Jun 25 '20 15:06 mwarning