Author Topic: CF Card Over Clocking on D4 Cams (5D2,50D & maybe7D)  (Read 1349 times)

reddeercity

  • Contributor
  • Hero Member
  • *****
  • Posts: 2293
CF Card Over Clocking on D4 Cams (5D2,50D & maybe7D)
« on: September 12, 2021, 08:08:43 AM »
Ok we are back at it again :) , working on over clocking D4 CF Card Bus speed.
Actually i trying to reproduce a old experiment a1ex did on the 5d2 years ago where he over clocked the
CF Card bus speed where he had success but never gave any number on speed .
I'm using the old (ml core) as his code was written in that , the branch is hdparm
I did try to merge it to the new core but it has too many error for me to fix .
So i had to re-install a old ml clone of ubuntu VM with the old tool chain so i just got it running ,
I can compile now but i keep getting a "fatal error" on the cf_acc.mo (module)
Code: [Select]
Building module cf_acc...
Updated HGVERSION
[ README   ]   module_strings.h
[ CC       ]   cf_acc.o
[ CC       ]   hdparm/identify.o
hdparm//identify.c:7:25: fatal error: linux/types.h: No such file or directory
 #include <linux/types.h>
                         ^
compilation terminated.
make[4]: *** [hdparm/identify.o] Error 1

Code: [Select]
hdparm//identify.c:7:25: fatal error: linux/types.h
The problem is there no "Linux/type.h" in the source code at all !
even in the the new core code . Tried to to edited it out but just made things worse .
 Can anybody shed any light on this ?
Here is the source code for the module cf_acc.zip

theBilalFakhouri

  • Developer
  • Hero Member
  • *****
  • Posts: 720
700D 1.1.5 | no more ISOless LV err 8 / SDR104 @ 240 MHz - Constant! | Fixed Scrambled LiveView in Higher resolution | Real-Time correct framing in the Way

names_are_hard

  • Developer
  • Senior
  • *****
  • Posts: 407
  • 200D idiot
Re: CF Card Over Clocking on D4 Cams (5D2,50D & maybe7D)
« Reply #2 on: September 12, 2021, 04:02:18 PM »
It's looking for a system header.  Probably should be at /usr/include/linux/types.h.  Do you have linux-libc-dev installed?

reddeercity

  • Contributor
  • Hero Member
  • *****
  • Posts: 2293
Re: CF Card Over Clocking on D4 Cams (5D2,50D & maybe7D)
« Reply #3 on: September 14, 2021, 01:11:39 AM »
Do you have linux-libc-dev installed?
no sure , did a find file and i guess i do  :)

But dose it need to be in the path with the ARM toolchain ?

@theBilalFakhouri look at the code closer under hdparm .

names_are_hard

  • Developer
  • Senior
  • *****
  • Posts: 407
  • 200D idiot
Re: CF Card Over Clocking on D4 Cams (5D2,50D & maybe7D)
« Reply #4 on: September 14, 2021, 01:28:18 AM »
Search using your package manager.  This differs per distro.  If you're using an apt based distro, you can do this:
Code: [Select]
apt search linux-libc-dev|grep linux-libc-dev|grep installed

reddeercity

  • Contributor
  • Hero Member
  • *****
  • Posts: 2293
Re: CF Card Over Clocking on D4 Cams (5D2,50D & maybe7D)
« Reply #5 on: September 14, 2021, 05:54:24 AM »
Search using your package manager.  This differs per distro.  If you're using an apt based distro, you can do this:
Code: [Select]
apt search linux-libc-dev|grep linux-libc-dev|grep installed
Ok got this , I should also mention that I'm using "Ubuntu Mate Desktop Environment 1.8.1" from 2014 i think
Code: [Select]
ml@ml-pc:~$ apt search linux-libc-dev|grep linux-libc-dev|grep installed

WARNING: apt does not have a stable CLI interface yet. Use with caution in scripts.

linux-libc-dev/trusty-updates,trusty-security,now 3.13.0-40.69 amd64 [installed,automatic]
ml@ml-pc:~$
I notice it says "amd64" I'm on 64bit Intel laptop (i5 Dell M430 2.27GHz) does this matter , or is this just
a default file for 64bit systems .

names_are_hard

  • Developer
  • Senior
  • *****
  • Posts: 407
  • 200D idiot
Re: CF Card Over Clocking on D4 Cams (5D2,50D & maybe7D)
« Reply #6 on: September 14, 2021, 08:40:42 AM »
Okay, so you have at least one version installed.  But it's not the one the compiler is looking for.  Could be 32 vs 64 bit, could be amd64 host vs ARM target.  You could use strace to determine where it's searching, which might give you some clues.  It will produce a lot of output, redirect it to file or filter it.

reddeercity

  • Contributor
  • Hero Member
  • *****
  • Posts: 2293
Re: CF Card Over Clocking on D4 Cams (5D2,50D & maybe7D)
« Reply #7 on: September 26, 2021, 03:55:50 AM »
..... You could use strace to determine where it's searching, which might give you some clues.  .....
Ok , i'm not good on linux command line stuff (i'm a windows user)
So i did a little search , and found this https://en.wikipedia.org/wiki/Strace
so i got an idea what it is , but the syntax is a little hard to get my head around .
would this be right ? if i'm in the 5d2 platform  compiling ml ?
Code: [Select]
ml@ml-pc:~$ strace make zipwould this out put a log file or something like that ?

reddeercity

  • Contributor
  • Hero Member
  • *****
  • Posts: 2293
Re: CF Card Over Clocking on D4 Cams (5D2,50D & maybe7D)
« Reply #8 on: September 26, 2021, 05:33:59 AM »
Ok run "strace" on make "cf_acc.mo" like this
Code: [Select]
ml@ml-pc:~/CF_Card-Over-Clocking_magic-lantern/modules/cf_acc$ strace make zipIt didn't compile but give a print out what was going on , the only this i could understand was
Code: [Select]
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
the "= -1 ENOENT (No such file or directory)" comes up a lot
here the output
Code: [Select]
ml@ml-pc:~/CF_Card-Over-Clocking_magic-lantern/modules/cf_acc$ strace make zip
execve("/usr/bin/make", ["make", "zip"], [/* 52 vars */]) = 0
brk(0)                                  = 0xd72000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f79d839c000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=81835, ...}) = 0
mmap(NULL, 81835, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f79d8388000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\37\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1845024, ...}) = 0
mmap(NULL, 3953344, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f79d7db6000
mprotect(0x7f79d7f71000, 2097152, PROT_NONE) = 0
mmap(0x7f79d8171000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1bb000) = 0x7f79d8171000
mmap(0x7f79d8177000, 17088, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f79d8177000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f79d8387000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f79d8385000
arch_prctl(ARCH_SET_FS, 0x7f79d8385740) = 0
mprotect(0x7f79d8171000, 16384, PROT_READ) = 0
mprotect(0x627000, 4096, PROT_READ)     = 0
mprotect(0x7f79d839e000, 4096, PROT_READ) = 0
munmap(0x7f79d8388000, 81835)           = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
setrlimit(RLIMIT_STACK, {rlim_cur=RLIM64_INFINITY, rlim_max=RLIM64_INFINITY}) = 0
brk(0)                                  = 0xd72000
brk(0xd93000)                           = 0xd93000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=10047008, ...}) = 0
mmap(NULL, 10047008, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f79d7421000
close(3)                                = 0
rt_sigaction(SIGHUP, {0x405aa0, [HUP], SA_RESTORER|SA_RESTART, 0x7f79d7decc30}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGQUIT, {0x405aa0, [QUIT], SA_RESTORER|SA_RESTART, 0x7f79d7decc30}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGINT, {0x405aa0, [INT], SA_RESTORER|SA_RESTART, 0x7f79d7decc30}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGTERM, {0x405aa0, [TERM], SA_RESTORER|SA_RESTART, 0x7f79d7decc30}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGXCPU, {0x405aa0, [XCPU], SA_RESTORER|SA_RESTART, 0x7f79d7decc30}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGXFSZ, {0x405aa0, [XFSZ], SA_RESTORER|SA_RESTART, 0x7f79d7decc30}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGCHLD, {SIG_DFL, [CHLD], SA_RESTORER|SA_RESTART, 0x7f79d7decc30}, {SIG_DFL, [], 0}, 8) = 0
getcwd("/home/ml/CF_Card-Over-Clocking_magic-lantern/modules/cf_acc", 4096) = 60
stat("/usr/include", {st_mode=S_IFDIR|0755, st_size=20480, ...}) = 0
stat("/usr/gnu/include", 0x7fffad4e6cd0) = -1 ENOENT (No such file or directory)
stat("/usr/local/include", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/include", {st_mode=S_IFDIR|0755, st_size=20480, ...}) = 0
rt_sigaction(SIGCHLD, {0x40de00, [CHLD], SA_RESTORER|SA_RESTART, 0x7f79d7decc30}, {SIG_DFL, [CHLD], SA_RESTORER|SA_RESTART, 0x7f79d7decc30}, 8) = 0
rt_sigaction(SIGUSR1, {0x410540, [USR1], SA_RESTORER|SA_RESTART, 0x7f79d7decc30}, {SIG_DFL, [], 0}, 8) = 0
stat(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
openat(AT_FDCWD, ".", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
getdents(3, /* 9 entries */, 32768)     = 296
getdents(3, /* 0 entries */, 32768)     = 0
close(3)                                = 0
open("Makefile", O_RDONLY)              = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=742, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f79d839b000
read(3, "\n# define the module name - make"..., 4096) = 742
open("../Makefile.modules", O_RDONLY)   = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=2739, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f79d839a000
read(4, "    TOP_DIR?=../..\nML_SETUP_DISA"..., 4096) = 2739
open("../../Makefile.setup", O_RDONLY)  = 5
fstat(5, {st_mode=S_IFREG|0644, st_size=2787, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f79d8399000
read(5, "# Generic makefile\n# Include def"..., 4096) = 2787
open("../../Makefile.top", O_RDONLY)    = 6
fstat(6, {st_mode=S_IFREG|0644, st_size=1759, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f79d8398000
read(6, "MAKE=make\nRM=rm\nMV=mv\nMKDIR=mkdi"..., 4096) = 1759
read(6, "", 4096)                       = 0
close(6)                                = 0
munmap(0x7f79d8398000, 4096)            = 0
open("../../Makefile.user.default", O_RDONLY) = 6
fstat(6, {st_mode=S_IFREG|0644, st_size=4099, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f79d8398000
read(6, "#User-defined values for ML buil"..., 4096) = 4096
pipe([7, 8])                            = 0
vfork()                                 = 3984
close(8)                                = 0
read(7, "Linux\n", 200)                 = 6
read(7, "", 194)                        = 0
close(7)                                = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 3984
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=3984, si_status=0, si_utime=0, si_stime=0} ---
rt_sigreturn()                          = 3984
pipe([7, 8])                            = 0
vfork()                                 = 3985
close(8)                                = 0
read(7, "", 200)                        = 0
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=3985, si_status=1, si_utime=0, si_stime=0} ---
rt_sigreturn()                          = 0
close(7)                                = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 3985
pipe([7, 8])                            = 0
vfork()                                 = 3988
close(8)                                = 0
read(7, "2021Sep26\n", 200)             = 10
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=3988, si_status=0, si_utime=0, si_stime=0} ---
rt_sigreturn()                          = 10
read(7, "", 190)                        = 0
close(7)                                = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 3988
read(6, " n\n", 4096)                   = 3
read(6, "", 4096)                       = 0
close(6)                                = 0
munmap(0x7f79d8398000, 4096)            = 0
open("../../Makefile.user", O_RDONLY)   = -1 ENOENT (No such file or directory)
open("/usr/include/../../Makefile.user", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/include/../../Makefile.user", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/include/../../Makefile.user", O_RDONLY) = -1 ENOENT (No such file or directory)
open("Makefile.setup.default", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/include/Makefile.setup.default", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/include/Makefile.setup.default", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/include/Makefile.setup.default", O_RDONLY) = -1 ENOENT (No such file or directory)
open("Makefile.setup.user", O_RDONLY)   = -1 ENOENT (No such file or directory)
open("/usr/include/Makefile.setup.user", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/include/Makefile.setup.user", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/include/Makefile.setup.user", O_RDONLY) = -1 ENOENT (No such file or directory)
open("Makefile.modules.default", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/include/Makefile.modules.default", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/include/Makefile.modules.default", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/include/Makefile.modules.default", O_RDONLY) = -1 ENOENT (No such file or directory)
open("Makefile.modules.user", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/include/Makefile.modules.user", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/include/Makefile.modules.user", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/include/Makefile.modules.user", O_RDONLY) = -1 ENOENT (No such file or directory)
read(5, "", 4096)                       = 0
close(5)                                = 0
munmap(0x7f79d8399000, 4096)            = 0
open("cf_acc.d", O_RDONLY)              = -1 ENOENT (No such file or directory)
open("/usr/include/cf_acc.d", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/include/cf_acc.d", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/include/cf_acc.d", O_RDONLY) = -1 ENOENT (No such file or directory)
open("../../Makefile.filerules", O_RDONLY) = 5
fstat(5, {st_mode=S_IFREG|0644, st_size=1604, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f79d8399000
read(5, "\n#\n# generate dependencies\n#\nCOB"..., 4096) = 1604
read(5, "", 4096)                       = 0
close(5)                                = 0
munmap(0x7f79d8399000, 4096)            = 0
pipe([5, 6])                            = 0
vfork()                                 = 3990
close(6)                                = 0
read(5, "hgid: 1af20c52fbe4", 200)      = 18
read(5, "", 182)                        = 0
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=3990, si_status=0, si_utime=14, si_stime=1} ---
rt_sigreturn()                          = 0
close(5)                                = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 3990
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0x7f79d839a000, 4096)            = 0
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x7f79d839b000, 4096)            = 0
brk(0xdb4000)                           = 0xdb4000
stat("/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
openat(AT_FDCWD, "/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
stat("../../src", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0
openat(AT_FDCWD, "../../src", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
stat("RCS", 0x7fffad4e6c80)             = -1 ENOENT (No such file or directory)
stat("SCCS", 0x7fffad4e6c80)            = -1 ENOENT (No such file or directory)
stat("../../Makefile.filerules", {st_mode=S_IFREG|0644, st_size=1604, ...}) = 0
stat("cf_acc.d", 0x7fffad4e4c60)        = -1 ENOENT (No such file or directory)
stat("Makefile.modules.user", 0x7fffad4e4c60) = -1 ENOENT (No such file or directory)
stat("Makefile.modules.default", 0x7fffad4e4c60) = -1 ENOENT (No such file or directory)
stat("Makefile.setup.user", 0x7fffad4e4c60) = -1 ENOENT (No such file or directory)
stat("Makefile.setup.default", 0x7fffad4e4c60) = -1 ENOENT (No such file or directory)
stat("../../Makefile.user", 0x7fffad4e4c60) = -1 ENOENT (No such file or directory)
stat("../../Makefile.user.default", {st_mode=S_IFREG|0644, st_size=4099, ...}) = 0
stat("../../Makefile.top", {st_mode=S_IFREG|0644, st_size=1759, ...}) = 0
stat("../../Makefile.setup", {st_mode=S_IFREG|0644, st_size=2787, ...}) = 0
stat("../Makefile.modules", {st_mode=S_IFREG|0644, st_size=2739, ...}) = 0
stat("Makefile", {st_mode=S_IFREG|0644, st_size=742, ...}) = 0
stat("../..", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
openat(AT_FDCWD, "../..", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 5
getdents(5, /* 31 entries */, 32768)    = 976
getdents(5, /* 0 entries */, 32768)     = 0
close(5)                                = 0
stat("../../RCS", 0x7fffad4e57b0)       = -1 ENOENT (No such file or directory)
stat("../../SCCS", 0x7fffad4e57b0)      = -1 ENOENT (No such file or directory)
stat("../../", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("../../../../src", 0x7fffad4e4360) = -1 ENOENT (No such file or directory)
stat("../../../../src/RCS", 0x7fffad4e2f00) = -1 ENOENT (No such file or directory)
stat("../../../../src/SCCS", 0x7fffad4e2f00) = -1 ENOENT (No such file or directory)
stat("../..//RCS", 0x7fffad4e2f10)      = -1 ENOENT (No such file or directory)
stat("../..//SCCS", 0x7fffad4e2f10)     = -1 ENOENT (No such file or directory)
getdents(3, /* 29 entries */, 32768)    = 784
getdents(3, /* 0 entries */, 32768)     = 0
close(3)                                = 0
getdents(4, /* 228 entries */, 32768)   = 7696
getdents(4, /* 0 entries */, 32768)     = 0
close(4)                                = 0
stat("/RCS", 0x7fffad4e2f40)            = -1 ENOENT (No such file or directory)
stat("/SCCS", 0x7fffad4e2f40)           = -1 ENOENT (No such file or directory)
stat("../../src/RCS", 0x7fffad4e2f40)   = -1 ENOENT (No such file or directory)
stat("../../src/SCCS", 0x7fffad4e2f40)  = -1 ENOENT (No such file or directory)
stat("..", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
openat(AT_FDCWD, "..", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
getdents(3, /* 54 entries */, 32768)    = 1776
getdents(3, /* 0 entries */, 32768)     = 0
close(3)                                = 0
stat("../RCS", 0x7fffad4e57c0)          = -1 ENOENT (No such file or directory)
stat("../SCCS", 0x7fffad4e57c0)         = -1 ENOENT (No such file or directory)
stat("../", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("../../../src", 0x7fffad4e4370)    = -1 ENOENT (No such file or directory)
stat("../../../src/RCS", 0x7fffad4e2f20) = -1 ENOENT (No such file or directory)
stat("../../../src/SCCS", 0x7fffad4e2f10) = -1 ENOENT (No such file or directory)
stat("..//RCS", 0x7fffad4e2f20)         = -1 ENOENT (No such file or directory)
stat("..//SCCS", 0x7fffad4e2f20)        = -1 ENOENT (No such file or directory)
stat("zip", 0x7fffad4e4b70)             = -1 ENOENT (No such file or directory)
open("/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=2570, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f79d839b000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2570
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x7f79d839b000, 4096)            = 0
open("/usr/share/locale/en_US/LC_MESSAGES/make.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/make.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en_US/LC_MESSAGES/make.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en/LC_MESSAGES/make.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "make: *** ", 10make: *** )              = 10
write(2, "No rule to make target `zip'", 28No rule to make target `zip') = 28
write(2, ".  Stop.\n", 9.  Stop.
)               = 9
chdir("/home/ml/CF_Card-Over-Clocking_magic-lantern/modules/cf_acc") = 0
close(1)                                = 0
exit_group(2)                           = ?
+++ exited with 2 +++
ml@ml-pc:~/CF_Card-Over-Clocking_magic-lantern/modules/cf_acc$
Here it says it's open up the linux stuff but in the the ml compile file it says it's can't find "linux/types.h"
Code: [Select]
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
this is starting to drive my crazy  :(

Edit:found out what "ENOENT" is from https://stackoverflow.com/questions/19902828/why-does-enoent-mean-no-such-file-or-directory
Quote
It's an abbreviation of Error NO ENTry (or Error NO ENTity)
so back to linux/types.h not being where it should be . >:(

names_are_hard

  • Developer
  • Senior
  • *****
  • Posts: 407
  • 200D idiot
Re: CF Card Over Clocking on D4 Cams (5D2,50D & maybe7D)
« Reply #9 on: September 26, 2021, 02:05:44 PM »
It's normal for strace to show lots of ENOENT during a build, that in itself is not a problem.  The idea is to show where it's looking when it doesn't find them, to get a clue on how your system is configured.  Then we can try to find out what way it's badly configured.

The most interesting part is not strace itself, but this:
Code: [Select]
ml@ml-pc:~/CF_Card-Over-Clocking_magic-lantern/modules/cf_acc$ strace make zip

You shouldn't use "make zip" inside a module directory.  You want to run just "make".

reddeercity

  • Contributor
  • Hero Member
  • *****
  • Posts: 2293
Re: CF Card Over Clocking on D4 Cams (5D2,50D & maybe7D)
« Reply #10 on: September 26, 2021, 11:56:11 PM »
You shouldn't use "make zip" inside a module directory.  You want to run just "make".
My mistake , it's been a year since I have done any compiling on ml .
but i may have found a clue where the Linux issue is
Here the contents of the Makefile in the cf_acc module
Code: [Select]
# define the module name - make sure name is max 8 characters
MODULE_NAME=cf_acc
MODULE_OBJS=cf_acc.o hdparm/identify.o hdparm/hdparm-routines.o hdparm-ml-shim.o

# include modules environment
include ../Makefile.modules

LINUX_PATH=$(HOME)/src/linux-3.19

CFLAGS += -Ihdparm
CFLAGS += -Idietlibc/include
CFLAGS += -I$(LINUX_PATH)/arch/arm/include/uapi
CFLAGS += -I$(LINUX_PATH)/arch/arm/include
CFLAGS += -I$(LINUX_PATH)/include/uapi
CFLAGS += -I$(LINUX_PATH)/include

# fixme: properly handle generic-y from Linux makefiles
# (hack: copy and rename folders around manually)
CFLAGS += -I$(LINUX_PATH)/generic

test: FORCE
gcc hdparm-test.c hdparm-ml-shim.c hdparm/identify.c hdparm/hdparm-routines.c -Ihdparm -o hdparm-test
./hdparm-test
this is the path to the linux stuff
Code: [Select]
LINUX_PATH=$(HOME)/src/linux-3.1so I assume this is the path to Linux source ml is looking for ?
Is this a path at's in Ubuntu ?

names_are_hard

  • Developer
  • Senior
  • *****
  • Posts: 407
  • 200D idiot
Re: CF Card Over Clocking on D4 Cams (5D2,50D & maybe7D)
« Reply #11 on: September 27, 2021, 05:36:58 AM »
That Makefile is very different to mine.  What repo & branch are you using?

reddeercity

  • Contributor
  • Hero Member
  • *****
  • Posts: 2293
Re: CF Card Over Clocking on D4 Cams (5D2,50D & maybe7D)
« Reply #12 on: September 27, 2021, 06:36:32 AM »
That Makefile is very different to mine.  What repo & branch are you using?
Old core (old 1st gen .raw video before .mlv or mlv_lite) , here the complete source code , 
I downloaded it before ml was deleted CF_Card-Over-Clocking_magic-lantern.zip
here the old link before bitbucket deleted it  https://bitbucket.org/hudson/magic-lantern/branch/hdparm
from a post of a1ex https://www.magiclantern.fm/forum/index.php?topic=19336.msg207053#msg207053

Edit: I extracted the chance set from them the failed build (only cf_acc.mo fail to build) autoexec.bin
Code: [Select]
Changeset: 1af20c52fbe4+ (hdparm)

names_are_hard

  • Developer
  • Senior
  • *****
  • Posts: 407
  • 200D idiot
Re: CF Card Over Clocking on D4 Cams (5D2,50D & maybe7D)
« Reply #13 on: September 27, 2021, 03:22:16 PM »
Okay, hdparm branch, that's on heptapod too.  Yes, the hardcoded 3.19 is likely breaking your build, it points to a location in /home.  That's very hackish.  It suggests whoever was working on this had linux source directly there (and that this code is not at all ready for release).

The clean solution is probably to work out why there's a dependency on types.h and remove it.  Likely not too hard.