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

reddeercity

  • Contributor
  • Hero Member
  • *****
  • Posts: 2289
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: 703
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: 401
  • 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: 2289
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: 401
  • 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: 2289
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: 401
  • 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.