Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buildroot patch fixup #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

iankuan
Copy link

@iankuan iankuan commented Apr 11, 2022

The modification could make the step, ~/buildroot $ git apply ../ELC2017/buildroot_patches/*.patch, success.

@iankuan
Copy link
Author

iankuan commented Apr 14, 2022

Permission denied for mctest.

yan@am-002b67307289:~/dev/rt-experiments/buildroot$ make
>>> mctest master Downloading
Doing shallow clone
Cloning into 'mctest-master'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Shallow clone failed, falling back to doing a full clone
Doing full clone
Cloning into 'mctest-master'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
--2022-04-13 16:56:38--  http://sources.buildroot.net/mctest-master.tar.gz
Resolving sources.buildroot.net (sources.buildroot.net)... 2606:4700:20::681a:25, 2606:4700:20::681a:125, 2606:4700:20::ac43:4838, ...
Connecting to sources.buildroot.net (sources.buildroot.net)|2606:4700:20::681a:25|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2022-04-13 16:56:39 ERROR 404: Not Found.

make[1]: *** [package/pkg-generic.mk:130: /home/yan/dev/rt-experiments/buildroot/output/build/mctest-master/.stamp_downloaded] Error 1
make: *** [Makefile:76: _all] Error 2

Due the permission denied of git fetch, let's go for
 http downloading
@iankuan
Copy link
Author

iankuan commented Apr 14, 2022

It turn out to this.

yan@am-002b67307289:~/dev/rt-experiments/buildroot$ make
>>> mctest master Building
cd /home/yan/dev/rt-experiments/buildroot/output/build/mctest-master; PATH="/home/yan/dev/rt-experiments/buildroot/output/host/bin:/home/yan/dev/rt-experiments/buildroot/output/host/sbin:/home/yan/dev/rt-experiments/buildroot/output/host/usr/bin:/home/yan/dev/rt-experiments/buildroot/output/host/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/snap/bin" ARCH=arm TARGET=user CROSS_COMPILE=/home/yan/dev/rt-experiments/buildroot/output/host/usr/bin/arm-buildroot-linux-gnueabihf- /usr/bin/make -j9
make[2]: *** No rule to make target 'motion', needed by 'user'.  Stop.
make[1]: *** [package/pkg-generic.mk:219: /home/yan/dev/rt-experiments/buildroot/output/build/mctest-master/.stamp_built] Error 2
make: *** [Makefile:76: _all] Error 2

@iankuan
Copy link
Author

iankuan commented Apr 14, 2022

Hi, I'll focus on KML first and try to solve the mctest compile issue later on.

Due the permission denied of git fetch, let's go for
 http downloading
@iankuan
Copy link
Author

iankuan commented Apr 14, 2022

Same issue & similar patch, but it turn out:

yan@am-002b67307289:~/dev/rt-experiments/buildroot$ make
>>> wastedcores master Downloading
URL transformed to HTTPS due to an HSTS policy
--2022-04-14 11:41:26--  https://github.com/sonicyang/wastedcores/tarball/master/wasredcores-master.tar.gz
Resolving github.com (github.com)... 52.192.72.89
Connecting to github.com (github.com)|52.192.72.89|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/sonicyang/wastedcores/legacy.tar.gz/refs/heads/master [following]
--2022-04-14 11:41:27--  https://codeload.github.com/sonicyang/wastedcores/legacy.tar.gz/refs/heads/master
Resolving codeload.github.com (codeload.github.com)... 13.112.159.149
Connecting to codeload.github.com (codeload.github.com)|13.112.159.149|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘/home/yan/dev/rt-experiments/buildroot/output/build/.wasredcores-master.tar.gz.oiOlhe/output’

/home/yan/dev/rt-experiment     [                                   <=>      ]  89.23M  11.9MB/s    in 10s     

2022-04-14 11:41:39 (8.95 MB/s) - ‘/home/yan/dev/rt-experiments/buildroot/output/build/.wasredcores-master.tar.gz.oiOlhe/output’ saved [93567487]

WARNING: no hash file for wasredcores-master.tar.gz
>>> wastedcores master Extracting
gzip -d -c /home/yan/dev/rt-experiments/buildroot/dl/wasredcores-master.tar.gz | tar --strip-components=1 -C /home/yan/dev/rt-experiments/buildroot/output/build/wastedcores-master   -xf -
>>> wastedcores master Patching
>>> wastedcores master Configuring
>>> wastedcores master Building
>>> wastedcores master Building kernel module(s)
PATH="/home/yan/dev/rt-experiments/buildroot/output/host/bin:/home/yan/dev/rt-experiments/buildroot/output/host/sbin:/home/yan/dev/rt-experiments/buildroot/output/host/usr/bin:/home/yan/dev/rt-experiments/buildroot/output/host/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/snap/bin" BR_BINARIES_DIR=/home/yan/dev/rt-experiments/buildroot/output/images /usr/bin/make -j9 -C /home/yan/dev/rt-experiments/buildroot/output/build/linux-4.4.12 HOSTCC="/usr/bin/gcc" HOSTCFLAGS="" ARCH=arm INSTALL_MOD_PATH=/home/yan/dev/rt-experiments/buildroot/output/target CROSS_COMPILE="/home/yan/dev/rt-experiments/buildroot/output/host/usr/bin/arm-buildroot-linux-gnueabihf-" DEPMOD=/home/yan/dev/rt-experiments/buildroot/output/host/sbin/depmod INSTALL_MOD_STRIP=1  PWD=/home/yan/dev/rt-experiments/buildroot/output/build/wastedcores-master/tools/sanity_checker_4.4/stap_monitor M=/home/yan/dev/rt-experiments/buildroot/output/build/wastedcores-master/tools/sanity_checker_4.4/stap_monitor modules
  CC [M]  /home/yan/dev/rt-experiments/buildroot/output/build/wastedcores-master/tools/sanity_checker_4.4/stap_monitor/stap_monitor.o
/home/yan/dev/rt-experiments/buildroot/output/build/wastedcores-master/tools/sanity_checker_4.4/stap_monitor/stap_monitor.c:31:8: error: unknown type name ‘buggy_state_t’
 static buggy_state_t cpu_status[NR_INV][NR_CPUS];
        ^
/home/yan/dev/rt-experiments/buildroot/output/build/wastedcores-master/tools/sanity_checker_4.4/stap_monitor/stap_monitor.c: In function ‘generate_bug_report_module’:
/home/yan/dev/rt-experiments/buildroot/output/build/wastedcores-master/tools/sanity_checker_4.4/stap_monitor/stap_monitor.c:39:4: error: implicit declaration of function ‘generate_bug_report’ [-Werror=implicit-function-declaration]
    generate_bug_report(cpu);
    ^
/home/yan/dev/rt-experiments/buildroot/output/build/wastedcores-master/tools/sanity_checker_4.4/stap_monitor/stap_monitor.c: At top level:
/home/yan/dev/rt-experiments/buildroot/output/build/wastedcores-master/tools/sanity_checker_4.4/stap_monitor/stap_monitor.c:47:48: error: unknown type name ‘buggy_state_t’
 void change_cpu_status(int cpu, int invariant, buggy_state_t status) {
                                                ^
/home/yan/dev/rt-experiments/buildroot/output/build/wastedcores-master/tools/sanity_checker_4.4/stap_monitor/stap_monitor.c:53:40: error: unknown type name ‘buggy_state_t’
 void change_cpus_status(int invariant, buggy_state_t *status) {
                                        ^
/home/yan/dev/rt-experiments/buildroot/output/build/wastedcores-master/tools/sanity_checker_4.4/stap_monitor/stap_monitor.c: In function ‘check_balancing_module’:
/home/yan/dev/rt-experiments/buildroot/output/build/wastedcores-master/tools/sanity_checker_4.4/stap_monitor/stap_monitor.c:70:4: error: unknown type name ‘buggy_state_t’
    buggy_state_t status[NR_CPUS];
    ^
/home/yan/dev/rt-experiments/buildroot/output/build/wastedcores-master/tools/sanity_checker_4.4/stap_monitor/stap_monitor.c:76:4: error: implicit declaration of function ‘rdtscll’ [-Werror=implicit-function-declaration]
    rdtscll(start);
    ^
/home/yan/dev/rt-experiments/buildroot/output/build/wastedcores-master/tools/sanity_checker_4.4/stap_monitor/stap_monitor.c:78:4: error: implicit declaration of function ‘check_idle_overloaded’ [-Werror=implicit-function-declaration]
    check_idle_overloaded(status);
    ^
/home/yan/dev/rt-experiments/buildroot/output/build/wastedcores-master/tools/sanity_checker_4.4/stap_monitor/stap_monitor.c:80:4: error: implicit declaration of function ‘change_cpus_status’ [-Werror=implicit-function-declaration]
    change_cpus_status(0, status);
    ^
/home/yan/dev/rt-experiments/buildroot/output/build/wastedcores-master/tools/sanity_checker_4.4/stap_monitor/stap_monitor.c:96:4: error: implicit declaration of function ‘check_useless_migrations’ [-Werror=implicit-function-declaration]
    check_useless_migrations(status);
    ^
/home/yan/dev/rt-experiments/buildroot/output/build/wastedcores-master/tools/sanity_checker_4.4/stap_monitor/stap_monitor.c: In function ‘stap_proc_write’:
/home/yan/dev/rt-experiments/buildroot/output/build/wastedcores-master/tools/sanity_checker_4.4/stap_monitor/stap_monitor.c:127:10: error: implicit declaration of function ‘change_cpu_status’ [-Werror=implicit-function-declaration]
          change_cpu_status(cpu, 0, enabled);
          ^
/home/yan/dev/rt-experiments/buildroot/output/build/wastedcores-master/tools/sanity_checker_4.4/stap_monitor/stap_monitor.c: In function ‘stap_do_work’:
/home/yan/dev/rt-experiments/buildroot/output/build/wastedcores-master/tools/sanity_checker_4.4/stap_monitor/stap_monitor.c:156:30: error: implicit declaration of function ‘get_reports’ [-Werror=implicit-function-declaration]
    struct sched_report **r = get_reports();
                              ^
/home/yan/dev/rt-experiments/buildroot/output/build/wastedcores-master/tools/sanity_checker_4.4/stap_monitor/stap_monitor.c:156:30: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
/home/yan/dev/rt-experiments/buildroot/output/build/wastedcores-master/tools/sanity_checker_4.4/stap_monitor/stap_monitor.c:161:24: error: ‘NR_SCHED_DOMAINS’ undeclared (first use in this function)
       for(sd = 0; sd < NR_SCHED_DOMAINS; sd++) {
                        ^
/home/yan/dev/rt-experiments/buildroot/output/build/wastedcores-master/tools/sanity_checker_4.4/stap_monitor/stap_monitor.c:161:24: note: each undeclared identifier is reported only once for each function it appears in
/home/yan/dev/rt-experiments/buildroot/output/build/wastedcores-master/tools/sanity_checker_4.4/stap_monitor/stap_monitor.c:162:10: error: invalid use of undefined type ‘struct sched_report’
          if(!r[cpu][sd].rdt)
          ^
/home/yan/dev/rt-experiments/buildroot/output/build/wastedcores-master/tools/sanity_checker_4.4/stap_monitor/stap_monitor.c:162:20: error: dereferencing pointer to incomplete type ‘struct sched_report’
          if(!r[cpu][sd].rdt)
                    ^
/home/yan/dev/rt-experiments/buildroot/output/build/wastedcores-master/tools/sanity_checker_4.4/stap_monitor/stap_monitor.c:165:10: error: invalid use of undefined type ‘struct sched_report’
          seq_printf(m, "Sched report for CPU %d rdt %lu name %s\n", r[cpu][sd].cpu, r[cpu][sd].rdt, r[cpu][sd].
          ^
/home/yan/dev/rt-experiments/buildroot/output/build/wastedcores-master/tools/sanity_checker_4.4/stap_monitor/stap_monitor.c:165:10: error: invalid use of undefined type ‘struct sched_report’
/home/yan/dev/rt-experiments/buildroot/output/build/wastedcores-master/tools/sanity_checker_4.4/stap_monitor/stap_monitor.c:165:10: error: invalid use of undefined type ‘struct sched_report’
/home/yan/dev/rt-experiments/buildroot/output/build/wastedcores-master/tools/sanity_checker_4.4/stap_monitor/stap_monitor.c:166:10: error: invalid use of undefined type ‘struct sched_report’
          seq_printf(m, r[cpu][sd].bug_report);
          ^
/home/yan/dev/rt-experiments/buildroot/output/build/wastedcores-master/tools/sanity_checker_4.4/stap_monitor/stap_monitor.c: At top level:
/home/yan/dev/rt-experiments/buildroot/output/build/wastedcores-master/tools/sanity_checker_4.4/stap_monitor/stap_monitor.c:31:22: warning: ‘cpu_status’ defined but not used [-Wunused-variable]
 static buggy_state_t cpu_status[NR_INV][NR_CPUS];
                      ^
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:265: /home/yan/dev/rt-experiments/buildroot/output/build/wastedcores-master/tools/sanity_checker_4.4/stap_monitor/stap_monitor.o] Error 1
make[2]: *** [Makefile:1385: _module_/home/yan/dev/rt-experiments/buildroot/output/build/wastedcores-master/tools/sanity_checker_4.4/stap_monitor] Error 2
make[1]: *** [package/pkg-generic.mk:220: /home/yan/dev/rt-experiments/buildroot/output/build/wastedcores-master/.stamp_built] Error 2
make: *** [Makefile:76: _all] Error 2

@iankuan
Copy link
Author

iankuan commented Apr 15, 2022

I had compile properly on ARM A9 system without select of wastedcore & mctest. Only hardcode for buildroot, not a patch yet. Could take look on this yan-kuan/buildroot. Several package are out of date & even unmaintained version, so I modified them to similar version. I don't have physical board. Hope it work properly on board!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant