You are not logged in.
Pages: 1
Hello every-Slitazer 
I am a totaly noob in the linux world and I'm trying to figure out how to run the make command. Im trying to make use of fmem (a tool found on the internet), and it is said that "make" must be run from a terminal in the folder.
However I get this:
root@slitaz:/home/tux/Documents/fmem/fmem_1.6-0# make
rm -f *.ko *.mod.c Module.symvers Module.markers modules.order \.*.o.cmd \.*.ko.cmd \.*.o.d
rm -rf \.tmp_versions
make -C /lib/modules/ 'uname -r'/build SUBDIRS='pwd' modules
make[1]: Entering directory '/lib/modules/2.6.37-slitaz-build'
make[1]: *** No rule to make target 'modules'. Stop.
make[1]: Leaving directory '/lib/modules/2.6.37-slitaz-build'
make: *** [fmem] Error 2
Also I manually created the build folder in the /lib/modules/2.6.37-slitaz directory, for wich I got an error such as 'no such file or directory' before the 'make[1]....' line.
Thanks for making me see clearer
ps: pardon my english
)
Offline
For a newbie you picked one of the hardest things to compile first. fmem is a linux kernel module which means to compile it you will need a copy of the kernel's source code too. First step for you would be to install the slitaz-toolchain, slitaz-dev-pkgs and linux-source packages. Then to follow the standard ./configure, make and make install route.
Offline
[c]# tazpkg -gi slitaz-toolchain[/c]
[c]# tazpkg -gi linux-module-headers[/c]
No linux-source or slitaz-dev-pkgs required.
root@slitaz:/home/tux/Downloads/fmem_1.6-0# make
rm -f *.o *.ko *.mod.c Module.symvers Module.markers modules.order \.*.o.cmd \.*.ko.cmd \.*.o.d
rm -rf \.tmp_versions
make -C /lib/modules/[c]uname -r[/c]/build SUBDIRS=[c]pwd[/c] modules
make[1]: Entering directory `/usr/src/linux-2.6.37-slitaz'
CC [M] /home/tux/Downloads/fmem_1.6-0/lkm.o
LD [M] /home/tux/Downloads/fmem_1.6-0/fmem.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/tux/Downloads/fmem_1.6-0/fmem.mod.o
LD [M] /home/tux/Downloads/fmem_1.6-0/fmem.ko
make[1]: Leaving directory `/usr/src/linux-2.6.37-slitaz'
root@slitaz:/home/tux/Downloads/fmem_1.6-0# sh run.sh
Module: insmod fmem.ko a1=0xc102eea8 : OK
Device: /dev/fmem
----Memory areas: -----
reg00: base=0x000000000 ( 0MB), size= 2048MB, count=1: write-back
reg01: base=0x0d0000000 ( 3328MB), size= 256MB, count=1: write-combining
-----------------------
!!! Don't forget add "count=" to dd !!!
root@slitaz:/home/tux/Downloads/fmem_1.6-0#
Offline
Well, I learned something. Would have saved me a ~50mb download if I just installed the headers. I'd still recommend slitaz-dev-pkgs because it eases users into compiling programs by installing a large chunk of the *-dev packages.
Offline
Oh, thanks for your quick replies.
I'll try your suggestions.
This forum is better than most supports
.
Offline
Ok guys here's the result:
root@slitaz:/home/tux/Documents/fmem/fmem_1.6-0# make
rm -f *.o *.ko *.mod.c Module.symvers Module.markers modules.order \.*.o.cmd \.*.ko.cmd \.*.o.d
rm -rf \.tmp_versions
make -C /lib/modules/[c]uname -r[/c]/build SUBDIRS=[c]pwd[/c] modules
make[1]: Entering directory `/usr/src/linux-2.6.37-slitaz'
CC [M] /home/tux/Documents/fmem/fmem_1.6-0/lkm.o
LD [M] /home/tux/Documents/fmem/fmem_1.6-0/fmem.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/tux/Documents/fmem/fmem_1.6-0/fmem.mod.o
LD [M] /home/tux/Documents/fmem/fmem_1.6-0/fmem.ko
make[1]: Leaving directory `/usr/src/linux-2.6.37-slitaz'
root@slitaz:/home/tux/Documents/fmem/fmem_1.6-0# sh run.sh
Module: insmod fmem.ko a1=0xc102eea8 : OK
Device: /dev/fmem
----Memory areas: -----
reg00: base=0x000000000 ( 0MB), size= 512MB, count=1: write-back
reg01: base=0x020000000 ( 512MB), size= 256MB, count=1: write-back
reg02: base=0x030000000 ( 768MB), size= 128MB, count=1: write-back
reg03: base=0x0c0000000 ( 3072MB), size= 256MB, count=2: write-combining
-----------------------
!!! Don't forget add "count=" to dd !!!
root@slitaz:/home/tux/Documents/fmem/fmem_1.6-0#
Thanks
oh by the way I followed mojo's way. Easy and fast as hell
)
Offline
please clear more . I got also this error in kali.
How can i use
# tazpkg -gi slitaz-toolchain
# tazpkg -gi linux-module-headers
Offline
@bakie,
Install slitaz-toolchain and linux-module-headers packages from tazpanel or
[*]open a terminal; prompt is [c]tux@slitaz:~$[/c]
[*]become root: type [c]su[/c] and hit [Enter] key
[*]enter password [c]root[/c]; nothing will be displayed
[*]prompt is now [c]root@slitaz:/home/tux#[/c]
type [c]tazpkg -gi slitaz-toolchain[/c]
[*]when slitaz-toolchain is inslalled, prompt is [c]root@slitaz:/home/tux#[/c] again
type [c]tazpkg -gi linux-module-headers[/c]
That's all
Offline
Can i user for Debain ( Kali ) ?
My kernel is 3.10-3-686-pae
Offline
SliTaz's tools have been build for... SliTaz.
And Tazpkg is the packages manager for... SliTaz.
SliTaz's kernel is 2.6.37 on 4.0 or 3.2.53 on Cooking/Rolling.
For Debian support, the best is you look at Debian forum.
Offline
Pages: 1
[ Generated in 0.022 seconds, 7 queries executed - Memory usage: 1.55 MiB (Peak: 1.77 MiB) ]