From a718a694a87afcdd20491e941d120cb0d23063aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 28 Jul 2015 23:35:07 +0200 Subject: Add inittab and script --- root/cyclictest/overlay/etc/inittab | 3 +++ root/cyclictest/overlay/usr/bin/linux-conf-perf | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 root/cyclictest/overlay/etc/inittab create mode 100755 root/cyclictest/overlay/usr/bin/linux-conf-perf (limited to 'root') diff --git a/root/cyclictest/overlay/etc/inittab b/root/cyclictest/overlay/etc/inittab new file mode 100644 index 0000000..3290343 --- /dev/null +++ b/root/cyclictest/overlay/etc/inittab @@ -0,0 +1,3 @@ + +# linux-conf-perf init script +console::sysinit:/usr/bin/linux-conf-perf -L console 115200 vt100 diff --git a/root/cyclictest/overlay/usr/bin/linux-conf-perf b/root/cyclictest/overlay/usr/bin/linux-conf-perf new file mode 100755 index 0000000..7e548ad --- /dev/null +++ b/root/cyclictest/overlay/usr/bin/linux-conf-perf @@ -0,0 +1,3 @@ +#!/bin/sh + +echo Hello -- cgit v1.2.3 From 655f43cdac8c56cadc2b14f65cc7041d5eba5ee6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 6 Aug 2015 16:28:05 +0200 Subject: Fix boot problems Now cyclictest should be bootable. --- root/cyclictest/overlay/etc/inittab | 3 --- root/cyclictest/overlay/sbin/lcpinit | 5 +++++ root/cyclictest/overlay/usr/bin/linux-conf-perf | 3 --- 3 files changed, 5 insertions(+), 6 deletions(-) delete mode 100644 root/cyclictest/overlay/etc/inittab create mode 100755 root/cyclictest/overlay/sbin/lcpinit delete mode 100755 root/cyclictest/overlay/usr/bin/linux-conf-perf (limited to 'root') diff --git a/root/cyclictest/overlay/etc/inittab b/root/cyclictest/overlay/etc/inittab deleted file mode 100644 index 3290343..0000000 --- a/root/cyclictest/overlay/etc/inittab +++ /dev/null @@ -1,3 +0,0 @@ - -# linux-conf-perf init script -console::sysinit:/usr/bin/linux-conf-perf -L console 115200 vt100 diff --git a/root/cyclictest/overlay/sbin/lcpinit b/root/cyclictest/overlay/sbin/lcpinit new file mode 100755 index 0000000..e28aef2 --- /dev/null +++ b/root/cyclictest/overlay/sbin/lcpinit @@ -0,0 +1,5 @@ +#!/bin/sh + +echo Hello + +echo "NOVABOOT EXIT LINUX-CONF-PERF" diff --git a/root/cyclictest/overlay/usr/bin/linux-conf-perf b/root/cyclictest/overlay/usr/bin/linux-conf-perf deleted file mode 100755 index 7e548ad..0000000 --- a/root/cyclictest/overlay/usr/bin/linux-conf-perf +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -echo Hello -- cgit v1.2.3 From 6d7447ad132839bf63e960eb041db0f05cb8a15c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sat, 8 Aug 2015 09:37:37 +0200 Subject: Fix .gitignore in folder root/cyclictest/ Git was ignoring files in overlay folder --- root/cyclictest/.gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'root') diff --git a/root/cyclictest/.gitignore b/root/cyclictest/.gitignore index cf36401..0d00e53 100644 --- a/root/cyclictest/.gitignore +++ b/root/cyclictest/.gitignore @@ -3,4 +3,4 @@ !.gitignore !GNUmakefile !prepare_boot -!overlay/ +!overlay/** -- cgit v1.2.3 From 7837f70b9edfba6ce1f810ac0a7dec6861dbf364 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 11 Aug 2015 18:50:30 +0200 Subject: Set cyclictest exectuion Also used external package to buildroot for rt-tests to use latest master version. --- root/cyclictest/.br-external | 1 + root/cyclictest/.config | 7 +++- root/cyclictest/.gitignore | 5 ++- root/cyclictest/overlay/etc/init.d/S90lcp | 3 ++ root/cyclictest/overlay/sbin/lcpinit | 2 +- root/cyclictest/packages/Config.in | 1 + root/cyclictest/packages/external.mk | 1 + .../0001-Comment-undeclared-calls.patch | 34 +++++++++++++++++++ root/cyclictest/packages/rt-tests-master/Config.in | 34 +++++++++++++++++++ .../packages/rt-tests-master/rt-tests-master.mk | 39 ++++++++++++++++++++++ 10 files changed, 124 insertions(+), 3 deletions(-) create mode 100644 root/cyclictest/.br-external create mode 100755 root/cyclictest/overlay/etc/init.d/S90lcp create mode 100644 root/cyclictest/packages/Config.in create mode 100644 root/cyclictest/packages/external.mk create mode 100644 root/cyclictest/packages/rt-tests-master/0001-Comment-undeclared-calls.patch create mode 100644 root/cyclictest/packages/rt-tests-master/Config.in create mode 100644 root/cyclictest/packages/rt-tests-master/rt-tests-master.mk (limited to 'root') diff --git a/root/cyclictest/.br-external b/root/cyclictest/.br-external new file mode 100644 index 0000000..008a945 --- /dev/null +++ b/root/cyclictest/.br-external @@ -0,0 +1 @@ +BR2_EXTERNAL ?= /home/kocikare/linux-conf-perf/root/cyclictest/packages diff --git a/root/cyclictest/.config b/root/cyclictest/.config index 9691d02..0b86ab6 100644 --- a/root/cyclictest/.config +++ b/root/cyclictest/.config @@ -358,7 +358,7 @@ BR2_PACKAGE_MPLAYER_ARCH_SUPPORTS=y # BR2_PACKAGE_PV is not set # BR2_PACKAGE_RAMSMP is not set # BR2_PACKAGE_RAMSPEED is not set -BR2_PACKAGE_RT_TESTS=y +# BR2_PACKAGE_RT_TESTS is not set # BR2_PACKAGE_SPIDEV_TEST is not set # BR2_PACKAGE_STRACE is not set # BR2_PACKAGE_STRESS is not set @@ -1655,3 +1655,8 @@ BR2_LINUX_KERNEL_CUSTOM_GIT_VERSION="" # BR2_PACKAGE_INPUT_TOOLS_EVTEST is not set # BR2_BFIN_FDPIC is not set # BR2_BFIN_FLAT is not set + +# +# User-provided options +# +BR2_PACKAGE_RT_TESTS_MASTER=y diff --git a/root/cyclictest/.gitignore b/root/cyclictest/.gitignore index 0d00e53..482619e 100644 --- a/root/cyclictest/.gitignore +++ b/root/cyclictest/.gitignore @@ -2,5 +2,8 @@ !.config !.gitignore !GNUmakefile -!prepare_boot +!.br-external +!overlay/ !overlay/** +!packages/ +!packages/** diff --git a/root/cyclictest/overlay/etc/init.d/S90lcp b/root/cyclictest/overlay/etc/init.d/S90lcp new file mode 100755 index 0000000..b5a9076 --- /dev/null +++ b/root/cyclictest/overlay/etc/init.d/S90lcp @@ -0,0 +1,3 @@ +#!/bin/sh + +/sbin/lcpinit diff --git a/root/cyclictest/overlay/sbin/lcpinit b/root/cyclictest/overlay/sbin/lcpinit index e28aef2..e2c1f78 100755 --- a/root/cyclictest/overlay/sbin/lcpinit +++ b/root/cyclictest/overlay/sbin/lcpinit @@ -1,5 +1,5 @@ #!/bin/sh -echo Hello +cyclictest -n -p99 -t3 -l10000 -q | sed 's/^/! /' | sed 's/$/ ok/' echo "NOVABOOT EXIT LINUX-CONF-PERF" diff --git a/root/cyclictest/packages/Config.in b/root/cyclictest/packages/Config.in new file mode 100644 index 0000000..45dad4f --- /dev/null +++ b/root/cyclictest/packages/Config.in @@ -0,0 +1 @@ +source "$BR2_EXTERNAL/rt-tests-master/Config.in" diff --git a/root/cyclictest/packages/external.mk b/root/cyclictest/packages/external.mk new file mode 100644 index 0000000..d37f28a --- /dev/null +++ b/root/cyclictest/packages/external.mk @@ -0,0 +1 @@ +include $(BR2_EXTERNAL)/rt-tests-master/rt-tests-master.mk diff --git a/root/cyclictest/packages/rt-tests-master/0001-Comment-undeclared-calls.patch b/root/cyclictest/packages/rt-tests-master/0001-Comment-undeclared-calls.patch new file mode 100644 index 0000000..c593705 --- /dev/null +++ b/root/cyclictest/packages/rt-tests-master/0001-Comment-undeclared-calls.patch @@ -0,0 +1,34 @@ +From 3e6052ef340c939d689b7a69909c74d38915cee9 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= +Date: Tue, 11 Aug 2015 18:31:12 +0200 +Subject: [PATCH] Comment undeclared calls + +Those calls seems to be uninplemented or missing while compiling on +powerpc architecture. +--- + src/lib/rt-sched.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/lib/rt-sched.c b/src/lib/rt-sched.c +index 4a8e3c4..4984735 100644 +--- a/src/lib/rt-sched.c ++++ b/src/lib/rt-sched.c +@@ -31,7 +31,7 @@ int sched_setattr(pid_t pid, + const struct sched_attr *attr, + unsigned int flags) + { +- return syscall(__NR_sched_setattr, pid, attr, flags); ++ //return syscall(__NR_sched_setattr, pid, attr, flags); + } + + int sched_getattr(pid_t pid, +@@ -39,5 +39,5 @@ int sched_getattr(pid_t pid, + unsigned int size, + unsigned int flags) + { +- return syscall(__NR_sched_getattr, pid, attr, size, flags); ++ //return syscall(__NR_sched_getattr, pid, attr, size, flags); + } +-- +2.1.4 + diff --git a/root/cyclictest/packages/rt-tests-master/Config.in b/root/cyclictest/packages/rt-tests-master/Config.in new file mode 100644 index 0000000..a54eb3a --- /dev/null +++ b/root/cyclictest/packages/rt-tests-master/Config.in @@ -0,0 +1,34 @@ +config BR2_PACKAGE_RT_TESTS_MASTER + bool "rt-tests-master" + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_USE_MMU # fork() + help + This is additional copy of rt-test package to provide + master version of rt-tests. + + Set of utilities for testing the real-time behaviour of a + Linux system. + + All tools are simple C programs with no dependencies, except + the hwlatdetect utility, which is a Python script and + therefore requires the Python interpreter. It will only be + installed if a Python interpreter has been selected in the + Buildroot configuration. + + Note that this package requires a toolchain built with the + NPTL implementation of the pthread API (this is always the + case with glibc/eglibc toolchains, but may not necessarily + be the case with uClibc toolchains, since the thread + implementation is configurable). + + http://rt.wiki.kernel.org + + +comment "rt-tests may not work on MIPS with an external uClibc toolchain" + depends on BR2_PACKAGE_RT_TESTS_MASTER + depends on BR2_TOOLCHAIN_EXTERNAL_UCLIBC + depends on BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el + +comment "rt-tests needs a toolchain w/ threads" + depends on !BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_USE_MMU diff --git a/root/cyclictest/packages/rt-tests-master/rt-tests-master.mk b/root/cyclictest/packages/rt-tests-master/rt-tests-master.mk new file mode 100644 index 0000000..a210b74 --- /dev/null +++ b/root/cyclictest/packages/rt-tests-master/rt-tests-master.mk @@ -0,0 +1,39 @@ +################################################################################ +# +# rt-tests +# +################################################################################ + +RT_TESTS_MASTER_SITE = git://git.kernel.org/pub/scm/linux/kernel/git/clrkwllms/rt-tests.git +RT_TESTS_MASTER_VERSION = master +RT_TESTS_MASTER_LICENSE = GPLv2+ +RT_TESTS_MASTER_LICENSE_FILES = COPYING + +ifeq ($(BR2_PACKAGE_PYTHON),y) +RT_TESTS_MASTER_DEPENDENCIES = python +endif + +ifeq ($(BR2_TOOLCHAIN_HAS_THREADS_NPTL),y) +RT_TESTS_MASTER_HAVE_NPTL=yes +else +RT_TESTS_MASTER_HAVE_NPTL=no +endif + +define RT_TESTS_MASTER_BUILD_CMDS + $(MAKE) -C $(@D) \ + CC="$(TARGET_CC)" \ + HAVE_NPTL=$(RT_TESTS_MASTER_HAVE_NPTL) \ + CFLAGS="$(TARGET_CFLAGS)" \ + prefix=/usr NUMA=0 +endef + +define RT_TESTS_MASTER_INSTALL_TARGET_CMDS + $(MAKE) -C $(@D) \ + HAVE_NPTL=$(RT_TESTS_MASTER_HAVE_NPTL) \ + DESTDIR="$(TARGET_DIR)" \ + prefix=/usr \ + $(if $(BR2_PACKAGE_PYTHON),HASPYTHON=1 PYLIB=/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages/) \ + install +endef + +$(eval $(generic-package)) -- cgit v1.2.3 From 019a117cad97403710fda1d944288a076d9ccde0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 11 Aug 2015 19:34:22 +0200 Subject: Change master version to v0.92 of rt-tests --- root/cyclictest/packages/rt-tests-master/rt-tests-master.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'root') diff --git a/root/cyclictest/packages/rt-tests-master/rt-tests-master.mk b/root/cyclictest/packages/rt-tests-master/rt-tests-master.mk index a210b74..82fe53e 100644 --- a/root/cyclictest/packages/rt-tests-master/rt-tests-master.mk +++ b/root/cyclictest/packages/rt-tests-master/rt-tests-master.mk @@ -5,7 +5,7 @@ ################################################################################ RT_TESTS_MASTER_SITE = git://git.kernel.org/pub/scm/linux/kernel/git/clrkwllms/rt-tests.git -RT_TESTS_MASTER_VERSION = master +RT_TESTS_MASTER_VERSION = v0.92 RT_TESTS_MASTER_LICENSE = GPLv2+ RT_TESTS_MASTER_LICENSE_FILES = COPYING -- cgit v1.2.3