04-16-2016, 09:42 PM
(04-16-2016, 06:33 PM)rahlquist Wrote: longsleep,
Normally to build a module I would install the appropriate headers. I pulled https://www.stdin.xyz/downloads/people/l...-19.tar.xz but am still getting errors on the build, specifically,
When I check;Code:make -C /lib/modules/3.10.65-5-pine64-longsleep/build SUBDIRS=/root/rt5370sta-master/os/linux modules
make[1]: *** /lib/modules/3.10.65-5-pine64-longsleep/build: No such file or directory. Stop.
Suggestions? Its probably been 6 years since I compiled a module in linux.Code:ls /lib/modules/3.10.65-5-pine64-longsleep/ -al
total 420
drwxrwxr-x 3 root root 4096 Apr 15 16:05 .
drwxrwxr-x 6 root root 4096 Apr 15 16:05 ..
lrwxrwxrwx 1 root root 48 Apr 16 20:20 build -> /medilongsleep/Storage/Pine64/linux/linux-pine64
I was trying to compile a module also. It was for CH34x driver, the usb serial converter on the Chinese Arduino clones so I could use the Arduino IDE. I got the same problem. The make compiler is looking for a directory that does not exist. You will need to create it and you will need SU or root privelege to do so. Go into your terminal and type 'sudo bash', then enter password 'ubuntu'. You will have a terminal with all root priveleges and file system ownership.
Create the directory build where the compiler is seeking it and place the makefile and any libraries in the build directory and then try the make command from there. It will at least try to compile. That was as far as I got because my particular example froze at like line 4700 or so in the compile. I am pretty rusty at this and not sure if I have all the required dependancies in the install or what the problem is. But it took me quite a while to figure out that the compiler wanted the build files in the build directory and that I had to create it myself. Maybe you will have better luck with your module.