Running Real Time Simple Program

i installed linux real time but i can't run modules because i can't locate rtl.mk file that is needed to run rt modules

so plz any help???
is there other way to run rt modules without rtl.mk file???

thanx in advance


Similar Content



What Does Kernel Refer To Load Modules At Boot Time/

lsmod is command to list loaded modules and I referred man page of lsmod that shows it refers to /proc/modules file. In terms of my os platform, Ubuntu, almost available modules are in /lib/module directory. I think OS kernel naturally loads modules in there. So, What does kernel refer to load modules at boot time?

Is there any files to be refereed for loading or mechanism can't know easily for end user?

Iptables Help

trying to run iptables but i get these errors

bdoulx007:/etc# uname -a
Linux bdoulx007 2.6.26-2-686-bigmem #1 SMP Wed Aug 19 06:34:05 UTC 2009 i686 GNU/Linux
bdoulx007:/etc# modprobe ip_tables
libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not open moddep file '/lib/modules/2.6.26-2-686-bigmem/modules.dep.bin'
bdoulx007:/etc# modprobe ip_conntrack
libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not open moddep file '/lib/modules/2.6.26-2-686-bigmem/modules.dep.bin'
bdoulx007:/etc# modprobe iptable_filter
libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not open moddep file '/lib/modules/2.6.26-2-686-bigmem/modules.dep.bin'
bdoulx007:/etc# modprobe ipt_state
libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not open moddep file '/lib/modules/2.6.26-2-686-bigmem/modules.dep.bin'

Thanks!

Getting An Error When Running Make.

Trying to install software/drivers for wireless dongle on my Fedora Linux box. I have downloaded and expanded my files into my /home/me/Downloads.

In my example: /home/cjh/Downloads/LinuxDriver4Fedora_v2.5.0.3
This is where the make file is.

I run make and get an error:
"make -C /lib/modules/3.4.2-1.fc16.i686/build SUBDIRS=/home/cjh/Downloads/LinuxDriver4Fedora_v2.5.0.3/os/linux modules
make: *** /lib/modules/3.4.2-1.fc16.i686/build: No such file or directory. Stop.
make: *** [LINUX] Error 2"

The directory "/home/cjh/Downloads/LinuxDriver4Fedora_v2.5.0.3/os/linux" does exist.

What am I missing? I have run it as myself and root and get the same error.

Any assistance greatly appreciated.

TIA,

Skip

Need Kernel Header File

Hi folks,

I'm trying to install the drivers for my "legacy" nvidia graphics card.
I've downloaded the file from nvidia's website to install the driver, but during the process I get this message...

Kernel header file ' /lib/modules/3.13.0-37-generic/build/include/linux/version.h ' does not exist .

The most likely reason is the kernel source files in ' /lib/modules/3.13.0-37-generic/build ' have not been configured.

Anyone know how to configure this file? I've been working on this for a few days now...it's getting old!

Thanks for your help.

Joe

Install Wireless Adapter (TP-Link Archer T4U) On Kali Virtual Machine

Hi all,

I'm new to Kali and couldnt get my wireless adapter working. I followed some tutorials on the internet but when I tried to install the driver I get the this:

PHP Code:
root@kali:~/rtl8812AU_8821AU_linux# make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/3.18.0-kali3-amd64/build M=/root/rtl8812AU_8821AU_linux  modules
make: *** /lib/modules/3.18.0-kali3-amd64/build: No such file or directory.  Stop.
make: *** [modules] Error 2 


Is there someone how made it with the installation and can help me?
If something is missing, please ask me.

Sorry for my English :P

Wzalm

How To Know The Loading Sequence/time Of Modules During Boot?

Hello,
the "lsmod" give the list of the loaded modules/drivers.
How to know when was theier loading time (start/end) ?
Is there any existing log file where that information can be seen ?
For another topic, see http://www.linuxquestions.org/questi...ml#post5362257, I am thinking the unfinished loading of a specific module (ehci-pci or other pci driver) or the loading of a module before another one, could disturb the loading of a module e1000e during a cold boot.
Thanks a lot for any help.

Printing a bootchart? http://www.bootchart.org/images/bootchart.png
Something else?

How To Recover From A Botched Graphics Card Driver Install

OK,

Lastnight I decided to finally attempt to install the dedicated ATI/AMD Catylist drivers. After all I was successfull with the HP drivers, right...

No matter which grub selection I make, getting in is broken, except of course for the Windows XP Pro x64 entry, that works just fine. I'm here with you today, because of the Fedora 21 Live DVD, (slooooww).

Here is the drivers log file:

==========================================================
Supported adapter detected.
Check if system has the tools required for installation.
Uninstalling any previously installed drivers.
Unloading radeon module...
rmmod: ERROR: Module radeon is in use
Unloading drm module...
rmmod: ERROR: Module drm is in use by: ttm drm_kms_helper radeon
[Message] Kernel Module : Trying to install a precompiled kernel module.
[Message] Kernel Module : Precompiled kernel module version mismatched.
[Message] Kernel Module : Found kernel module build environment, generating kernel module now.
AMD kernel module generator version 2.1
doing Makefile based build for kernel 2.6.x and higher
rm -rf *.c *.h *.o *.ko *.a .??* *.symvers
make -C /lib/modules/3.18.3-201.fc21.x86_64/build SUBDIRS=/usr/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory '/usr/src/kernels/3.18.3-201.fc21.x86_64'
CC [M] /usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
/usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:6396:12: warning: ‘KCL_fpu_save_init’ defined but not used [-Wunused-function]
static int KCL_fpu_save_init(struct task_struct *tsk)
^
CC [M] /usr/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.o
/usr/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c: In function ‘KCL_ACPI_Slot_No_Hotplug’:
/usr/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:845:21: error: ‘struct acpi_device_flags’ has no member named ‘no_hotplug’
tdev->flags.no_hotplug = true;
^
scripts/Makefile.build:257: recipe for target '/usr/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.o' failed
make[2]: *** [/usr/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.o] Error 1
Makefile:1385: recipe for target '_module_/usr/lib/modules/fglrx/build_mod/2.6.x' failed
make[1]: *** [_module_/usr/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[1]: Leaving directory '/usr/src/kernels/3.18.3-201.fc21.x86_64'
Makefile:88: recipe for target 'kmod_build' failed
make: *** [kmod_build] Error 2
build failed with return value 2
[Error] Kernel Module : Failed to compile kernel module - please consult readme.
[Reboot] Kernel Module : dracut
==========================================================

I just rebooted without attempting to configure the card, as per the ATI/AMD warning stating that it's important to do so, because my thinking was derailed due to seeing errors, and the install program said I needed to reboot. Afterall, I just couln't believe that with a "Failed to compile kernel module" error, it would actually keep the changes I'd made, that surely Linux had a failsafe in place for such circumstances. In other words, I'm also a newbie, and just don't know how many hoops of fire one has to jump through to be at peace with linux.

Can anyone please help be get back into my install, I've already set up so many things, there's just got to be a way, right?


Thanks in Advance!


JustAnotherHuman

Cross Compiling Apache-2.4.12 For Arm

Dear all,

I am trying to cross compile Apache httpd-2.4.12 for ARM, but after solving some errors I arrived to a point where I get an error in the make process that I do not know how to solve it.

I am using apr-1.5.2, apr-util-1.5.4 and PCRE-8.37 which I copied to httpd-2.4.12/srclib/ with the names apr, apr-util and pcre.

For compile htttp I use:
Code:
./configure --prefix='/usr/local/apache' CC=arm-xilinx-linux-gnueabi-gcc --host=arm-xilinx-linux-gnueabi --with-included-apr ac_cv_file__dev_zero="yes" ac_cv_func_setpgrp_void="yes"C ap_cv_void_ptr_lt_long="no" ac_cv_struct_rlimit="yes"

The output is:

make[1]: Entering directory `/home/usr/Xilinx/Software_arm/httpd-2.4.12'
arm-xilinx-linux-gnueabi-gcc -std=gnu99 -g -O2 -DLINUX -D_REENTRANT -D_GNU_SOURCE -I. -I/home/usr/Xilinx/Software_arm/httpd-2.4.12/os/unix -I/home/usr/Xilinx/Software_arm/httpd-2.4.12/include -I/home/usr/Xilinx/Software_arm/httpd-2.4.12/srclib/apr/include -I/home/usr/Xilinx/Software_arm/httpd-2.4.12/srclib/apr-util/include -I/home/usr/Xilinx/Software_arm/httpd-2.4.12/srclib/apr-util/xml/expat/lib -I/home/usr/Xilinx/Software_arm/pcre/include -I/home/usr/Xilinx/Software_arm/httpd-2.4.12/modules/aaa -I/home/usr/Xilinx/Software_arm/httpd-2.4.12/modules/cache -I/home/usr/Xilinx/Software_arm/httpd-2.4.12/modules/core -I/home/usr/Xilinx/Software_arm/httpd-2.4.12/modules/database -I/home/usr/Xilinx/Software_arm/httpd-2.4.12/modules/filters -I/home/usr/Xilinx/Software_arm/httpd-2.4.12/modules/ldap -I/home/usr/Xilinx/Software_arm/httpd-2.4.12/modules/loggers -I/home/usr/Xilinx/Software_arm/httpd-2.4.12/modules/lua -I/home/usr/Xilinx/Software_arm/httpd-2.4.12/modules/proxy -I/home/usr/Xilinx/Software_arm/httpd-2.4.12/modules/session -I/home/usr/Xilinx/Software_arm/httpd-2.4.12/modules/ssl -I/home/usr/Xilinx/Software_arm/httpd-2.4.12/modules/test -I/home/usr/Xilinx/Software_arm/httpd-2.4.12/server -I/home/usr/Xilinx/Software_arm/httpd-2.4.12/modules/arch/unix -I/home/usr/Xilinx/Software_arm/httpd-2.4.12/modules/dav/main -I/home/usr/Xilinx/Software_arm/httpd-2.4.12/modules/generators -I/home/usr/Xilinx/Software_arm/httpd-2.4.12/modules/mappers -c /home/usr/Xilinx/Software_arm/httpd-2.4.12/server/buildmark.c
/home/usr/Xilinx/Software_arm/httpd-2.4.12/srclib/apr/libtool --silent --mode=link arm-xilinx-linux-gnueabi-gcc -std=gnu99 -g -O2 -L/home/usr/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/arm-xilinx-linux-gnueabi/libc/lib -o httpd modules.lo buildmark.o -export-dynamic server/libmain.la modules/core/libmod_so.la modules/http/libmod_http.la server/mpm/event/libevent.la os/unix/libos.la -L/home/usr/Xilinx/Software_arm/pcre/lib -lpcre /home/usr/Xilinx/Software_arm/httpd-2.4.12/srclib/apr-util/libaprutil-1.la /home/usr/Xilinx/Software_arm/httpd-2.4.12/srclib/apr-util/xml/expat/libexpat.la /home/usr/Xilinx/Software_arm/httpd-2.4.12/srclib/apr/libapr-1.la -lrt -lcrypt -ldl
/home/usr/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/bin/../lib/gcc/arm-xilinx-linux-gnueabi/4.6.1/../../../../arm-xilinx-linux-gnueabi/bin/ld: server/mpm/event/.libs/libevent.a(event.o): undefined reference to symbol 'pthread_sigmask@@GLIBC_2.4'
/home/usr/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/bin/../lib/gcc/arm-xilinx-linux-gnueabi/4.6.1/../../../../arm-xilinx-linux-gnueabi/bin/ld: note: 'pthread_sigmask@@GLIBC_2.4' is defined in DSO /home/usr/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/bin/../arm-xilinx-linux-gnueabi/libc/lib/libpthread.so.0 so try adding it to the linker command line
/home/usr/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/bin/../arm-xilinx-linux-gnueabi/libc/lib/libpthread.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[1]: *** [httpd] Error 1
make[1]: Leaving directory `/home/usr/Xilinx/Software_arm/httpd-2.4.12'
make: *** [all-recursive] Error 1

Could anyone please help me? Any suggestion suggestions?
Thanks in advance and best regards.

Unable To Install Driver

Hi, I am trying to install a smartcard reader driver onto my ubuntu machine. I am not able run the make file.

The output of makefile is as follows:
Code:
amit@ubuntu:~/Downloads/Linux Driver/rts_pstor$ sudo make
sed "s/RTSX_MK_TIME/`date +%y.%m.%d.%H.%M`/" timestamp.in > timestamp.h
cp -f ./define.release ./define.h
make -C /lib/modules/3.16.0-36-generic/build SUBDIRS=/home/amit/Downloads/Linux Driver/rts_pstor modules
make[1]: Entering directory `/usr/src/linux-headers-3.16.0-36-generic'
arch/x86/Makefile:136: CONFIG_X86_X32 enabled but no binutils support
Makefile:652: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler
make[1]: *** No rule to make target `Driver/rts_pstor'.  Stop.
make[1]: Leaving directory `/usr/src/linux-headers-3.16.0-36-generic'
make: *** [default] Error 2
amit@ubuntu:~/Downloads/Linux Driver/rts_pstor$

The make file for this driver is as follows:

Code:
TARGET_MODULE := rts_pstor

EXTRA_CFLAGS := -Idrivers/scsi 

obj-m += $(TARGET_MODULE).o

$(TARGET_MODULE)-objs := rtsx.o rtsx_chip.o rtsx_transport.o rtsx_scsi.o rtsx_card.o \
			 general.o sd.o xd.o ms.o spi.o

default:
	sed "s/RTSX_MK_TIME/`date +%y.%m.%d.%H.%M`/" timestamp.in > timestamp.h
	cp -f ./define.release ./define.h
	make -C /lib/modules/$(shell uname -r)/build SUBDIRS=$(shell pwd) modules
debug:
	sed "s/RTSX_MK_TIME/`date +%y.%m.%d.%H.%M`/" timestamp.in > timestamp.h
	cp -f ./define.debug ./define.h
	make -C /lib/modules/$(shell uname -r)/build SUBDIRS=$(shell pwd) modules
install:
	cp $(TARGET_MODULE).ko /lib/modules/$(shell uname -r)/kernel/drivers/scsi -f
clean:
	rm -f *.o *.ko
	rm -f $(TARGET_MODULE).mod.c

Please let me know any of your comments.

Thanks,
Amit

Linux Kernel Module Installation And Other Questions Related To Kernel Module Install

I have installed Linux 3.5 kernel and have compiled e2fsprogs as well. I have my own version of ext3 file system - lets say it is myfs. I have compiled myfs as well. Now I have few questions:

1.How to insert myfs module and where? When I do modprobe myfs (.ko file) it says module not found. When I simply do insmod myfs.ko it works but I am not sure where is it putting the .ko file. Also the displays I have added (on mkdir call) are not showing up (kernel debug level is also set to 8) when I try to create a directory in mounted folder

Makefile in myfs directory looks like this:

KERNEL_TREE ?= /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)

obj-m := iext3.o

iext3-objs := balloc.o bitmap.o dir.o file.o fsync.o ialloc.o inode.o \
ioctl.o namei.o super.o symlink.o hash.o resize.o ext3_jbd.o \
xattr.o xattr_user.o xattr_trusted.o acl.o xattr_security.o icefs.o \
transaction.o commit.o recovery.o checkpoint.o revoke.o journal.o

all:
make -C $(KERNEL_TREE) M=$(PWD) modules

clean:
rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions *.markers *.order *.symvers

and I am compiling myfs from my own directory: /home/myname/soft/myfs.

Also, I don't see any ext2/ext3/ext4 directories in /lib/modules/linuxversion/kernel/fs/ -- not sure if this is right or wrong.

2.Mount is working fine. I can see myfs is mounted on /dev/sda3 by doing df -a. When I unmount It says - umount: /home/..../mnt: not mounted and then if I do df -a the file system is unmounted. This is strange as its unmounting but still throwing error.

Some Background: Directory where I have everything: /home/soft myfs/ mye2fs/ Linux-3.5/ mnt/

Step1: cd Linux-3.5 --> 1) make 2) make modules 3) make modules_install 4) make install 5) reboot

Step2: compile myfs (my version of ext3) and insert the myfs kernel module --> cd myfs/ --> make --> insmod myfs.ko

Step3: compiled mye2fs for mkfs

Step4: use mye2fs to create myfilesystem on a device --> mount --> test printk statements put under myfs modules