× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

Linux Headers

linksolutions
Aspirant

Linux Headers

I need to install the Linux Headers for version 6.9.3 to try and get a linux backup agent working.

 

What is the best way to do it and what would the commands be in terminal.

Model: RN424| ReadyNAS 424 4-Bay with up to 40 TB total storage
Message 1 of 3
WhoCares_
Mentor

Re: Linux Headers

I assume what you want to do is to build a special software that needs a kernel driver. For everything else the headers present on the ReadyNAS should be sufficient. So, here's how to prepare a kernel tree (and in due course the header files) for building stuff that needs to work with the original kernel tree.

 

1) Get hold of the NETGEAR GPL sources for your firmware version from here -> https://kb.netgear.com/2649/NETGEAR-Open-Source-Code-for-Programmers-GPL

2) Unpack the file on the ReadyNAS (ideally you'll use the root account for that but preferrably NOT the root home directory. Some directory below /data will be fine

3) Copy the linux-kernel-* source directory for your architecture from the unpacked GPL archive to another place, say /data/kernel

4) Go to that directory and run "make clean && make && make install && make modules_install" (the last one is optional)

 

This should create all the symlinks within the /lib/modules/<your kernel version> that are needed for compiling software that needs access to the kernel sources.

 

Now, if I completely missed the point just let me know in more detail what you're trying to do and I'll see whether I can help you more.

 

-Stefan

Message 2 of 3
linksolutions
Aspirant

Re: Linux Headers

When building the headers I get an error about boot and LILO.

 

sh ./arch/x86/boot/install.sh 4.4.116.x86_64.1 arch/x86/boot/bzImage \
       System.map "/boot"
Cannot find LILO.
root@CAMNAS:/home/admin/Linux-Headers-DO-NOT-REMOVE/linux-kernel-headers/linux-4.4.116-x86_64#

Message 3 of 3
Top Contributors
Discussion stats
  • 2 replies
  • 876 views
  • 0 kudos
  • 2 in conversation
Announcements