Recent posts

#21
Quote from: names_are_hard on April 19, 2024, 03:16:20 PMWhere's the code to generate the logs?  Lots of people have 5d3 and can run tests.

dm-spy-experiments, io_trace and io_trace_full branches from official repo, compile with:
CONFIG_DEBUG_INTERCEPT_STARTUP = yin Makefile.user.default file.

There are some differences among these branches, startup log might be broken in io_trace_full (last time I tested the camera froze), but dm-spy-experiments worked.

For logging MMIO, compile with:
CONFIG_MMIO_TRACE = y
Not sure if MMIO with startup logging works (probably not in io_trace_full branch), it might require hardcoded buffer for io_trace_full, io_trace might work, check:
https://www.magiclantern.fm/forum/index.php?topic=2388.msg197313#msg197313
#22
Quote from: reddeercityJust assumed that after 10 years there would a lot Log file around.

I think after 10 years most of those log files will be lost, or the people that had them no longer read the forum :)  And people that joined less than 10 years ago definitely don't have what you want.  If you give builds, people can make new logs.
#23
crop_rec and derived builds / Re: 3K/UHD 5D2 Raw development...
Last post by reddeercity - April 21, 2024, 06:33:18 AM
It looks like i my have found the CF card controller routines. I was searching all my ML Logs files  from my old Win7 PC AMD-FX SSD HD
(FX board blow all the Caps around CPU) I found 5D2 FA_Capture(Test-Image) Log from Qemu. It use this to run ./run_canon_fw.sh 5D2,firmware=boot=1
This what I'm looking for [   CSMgrTask:ffbdb7d8 ] (22:06) GetFirstTuple: CISTPL_CONFIG
[   CSMgrTask:ffb8c454 ] (22:06) GetConfigurationTuple
[   CSMgrTask:ffb8bcb0 ] (22:01) RequestConfiguration: pLStorage=0x685504
[   CSMgrTask:ffb8bcc8 ] (22:01)                       ConfigBase=0x200, StatusReg=0
[   CSMgrTask:ffb8bce0 ] (22:01)                       PinRepReg=0, CopyReg=0
[   CSMgrTask:ffb8bcf8 ] (22:01)                       ConfigIndex=0x1, Present=0xf
[CFATA] at CSMgrTas:FFB8BD04:FFB8BD04 [0xC0628100] -> 0x0       : ???
[CFATA] at CSMgrTas:FFB8BD0C:FFB8BD04 [0xC0628100] <- 0x0       : ???
[CFATA] at CSMgrTas:FFB8BD18:FFB8BD18 [0xC0628100] <- 0x0       : ???
[CFATA] at CSMgrTas:FFB8BD24:FFB8BD24 [0xC0628100] -> 0x0       : ???
[CFATA] at CSMgrTas:FFB8BD2C:FFB8BD24 [0xC0628100] <- 0x2       : ???
[CFATA] at CSMgrTas:FFB8BD38:FFB8BD38 [0xC0628100] <- 0x2       : ???
[CFATA] at CSMgrTas:FFB8BD48:FFB8BD44 [0xC0628044] <- 0x0       : Interrupt related?
[CFATA] at CSMgrTas:FFB8BD5C:FFB8BD54 [0xC0620200] <- 0x41      : ???
[CFATA] at CSMgrTas:FFB8BD68:FFB8BD68 [0xC0620200] -> 0x0       : ???
[   CSMgrTask:ffb8bd80 ] (22:01) RequestConfiguration: Base = 200, Data = 0
[CFATA] at CSMgrTas:FFB8BD98:FFB8BD94 [0xC0620202] <- 0x0       : ???
[CFATA] at CSMgrTas:FFB8BDB0:FFB8BDAC [0xC0620204] <- 0x0       : ???
[CFATA] at CSMgrTas:FFB8BDC8:FFB8BDC4 [0xC0620206] <- 0x0       : ???
[   CSMgrTask:ffb8bde0 ] (22:01) RequestConfiguration: SUCCESS


"0xC0620200"by changing 0xC0620200 -> 0xCxxx201 etc. ...is not enough by it self
need more , I still don't know what "ConfigIndex=0x1, Present=0xf" are .
Here some more CF contoller HD commands
[HPTimer] at DbgMgr:FF9B36D8:FF86BFD4 [0xC0243300] -> 0x1000    : Which timer(s) triggered
[HPTimer] at DbgMgr:FF9B3650:FF86C074 [0xC02431A0] <- 0x0       : HPTimer #10: disabled?
[HPTimer] at DbgMgr:FF9B36A0:FF86C07C [0xC02432A4] <- 0x0       : HPTimer #10: reset trigger?
[HPTimer] at DbgMgr:FF9B36A4:FF86C07C [0xC02432A4] -> 0x0       : HPTimer #10: ???
[HPTimer] at DbgMgr:FF9B36D8:FF86C188 [0xC0243300] -> 0x0       : Which timer(s) triggered
[CFATA] at CSMgrTas:FFB89A40:FFB89A40 [0xC0622007] -> 0x50      : ATA command/status
[CFATA] at CSMgrTas:FFB89B98:FFB89B94 [0xC062200E] <- 0x0       : ATA device control: int enable
[CFATA] at CSMgrTas:FFB8C0C4:FFB8C0C4 [0xC0622007] -> 0x50      : ATA command/status
[   CSMgrTask:ffb89be8 ] (22:01) cfSoftReset SUCCESS
[   CSMgrTask:ffbdb86c ] (22:01) &CurCardInfo=0x4c9f0
[CFATA] at CSMgrTas:FFB8ABE8:FFB8ABE4 [0xC0628040] <- 0x0       : Interrupt enable?
[CFATA] at CSMgrTas:FFB89A40:FFB89A40 [0xC0622007] -> 0x50      : ATA command/status
[CFATA] at CSMgrTas:FFB8AC64:FFB8AC64 [0xC0622006] <- 0x0       : ATA drive/head port
[CFATA] at CSMgrTas:FFB8AC74:FFB8AC70 [0xC0622007] <- 0xEC      : ATA command/status
[CFATA] at CSMgrTas:FFB8AC84:FFB8AC80 [0xC0628040] <- 0x1       : Interrupt enable?
   186:   442.624 [CF] ERROR GetFirstTuple: CISTPL_CONFIG
   187:   442.624 [CF] ERROR GetConfigurationTuple
[CFATA] at PowerMgr:FFB8B8DC:FFB8B8DC [0xC0628044] -> 0x1       : Interrupt related?
[CFATA] at PowerMgr:FFB8B8EC:FFB8B8E8 [0xC0628044] <- 0xFFFFFFFE: Interrupt related?
[CFATA] at PowerMgr:FFB8B918:FFB8B918 [0xC0622007] -> 0x58      : ATA command/status
[CFATA] at CSMgrTas:FFB8ACC0:FFB8ACC0 [0xC0628040] <- 0x0       : Interrupt enable?
[CFATA] at CSMgrTas:FFB89C48:FFB89C48 [0xC0622007] -> 0x58      : ATA command/status

As you can see its using the 0xC062200x & 0xC06280x , before when i tested a few years ago i changed
0xC062200 to 0xC062203 and lockup/crashed but not before i did a R/W test , i writing @ 80Mb/s & reading @ 2200Mb/s then it crashed
( did get a screen shot throu) sound like the read was internal ram read I/O , after see this i see i need more regs like 0xCo6280xx maybe?
More research is needed for sure , i my need to start working in Qemu
Last I found I think the Timers Regs for CF/HD contoller
[HPTimer] at CSMgrT:FF9B3680:FF86D404 [0xC0243280] <- 0x0       : HPTimer #8: inactive
[HPTimer] at CSMgrT:FF9B3650:FF86D40C [0xC0243180] <- 0x0       : HPTimer #8: disabled?
[HPTimer] at CSMgrT:FF9B35D4:FF86D418 [0xC0243184] -> 0xCBF00   : HPTimer #8: output compare
[HPTimer] at CSMgrT:FF9B35E8:FF86D418 [0xC0243184] <- 0xEC50A   : HPTimer #8: output compare (delay 10 microseconds)
[HPTimer] at CSMgrT:FF9B36A0:FF86D420 [0xC0243284] <- 0x0       : HPTimer #8: reset trigger?
[HPTimer] at CSMgrT:FF9B36A4:FF86D420 [0xC0243284] -> 0x0       : HPTimer #8: ???
[HPTimer] at CSMgrT:FF9B3640:FF86D428 [0xC0243180] <- 0x1       : HPTimer #8: enabled?
[HPTimer] at CSMgrT:FF9B3650:FF86D454 [0xC0243180] <- 0x0       : HPTimer #8: disabled?
[HPTimer] at CSMgrT:FF9B36A0:FF86D45C [0xC0243284] <- 0x0       : HPTimer #8: reset trigger?
[HPTimer] at CSMgrT:FF9B36A4:FF86D45C [0xC0243284] -> 0x0       : HPTimer #8: ???
[HPTimer] at CSMgrT:FF9B3660:FF86D468 [0xC0243280] <- 0x1       : HPTimer #8: active
[CFATA] at CSMgrTas:FFB89B68:FFB89B64 [0xC062200E] <- 0x2       : ATA device control: int disable
[HPTimer] at CSMgrT:FF9B3680:FF86D404 [0xC0243290] <- 0x0       : HPTimer #9: inactive
[HPTimer] at CSMgrT:FF9B3650:FF86D40C [0xC0243190] <- 0x0       : HPTimer #9: disabled?
[HPTimer] at CSMgrT:FF9B35D4:FF86D418 [0xC0243194] -> 0xCC300   : HPTimer #9: output compare
[HPTimer] at CSMgrT:FF9B35E8:FF86D418 [0xC0243194] <- 0xECBE8   : HPTimer #9: output compare (delay 1000 microseconds)
[HPTimer] at CSMgrT:FF9B36A0:FF86D420 [0xC0243294] <- 0x0       : HPTimer #9: reset trigger?
[HPTimer] at CSMgrT:FF9B36A4:FF86D420 [0xC0243294] -> 0x0       : HPTimer #9: ???
[HPTimer] at CSMgrT:FF9B3640:FF86D428 [0xC0243190] <- 0x1       : HPTimer #9: enabled?
[HPTimer] at CSMgrT:FF9B3660:FF86D444 [0xC0243290] <- 0x1       : HPTimer #9: active
[GPIO]   at HotPlug:FF81DF88:FF816CB8 [0xC0220044] -> 0x1       : GPIO_17
[HPTimer] Firing HPTimer #9
[HPTimer] at DbgMgr:FF9B36D8:FF86BFD4 [0xC0243300] -> 0x400     : Which timer(s) triggered
[HPTimer] at DbgMgr:FF9B3650:FF86C074 [0xC0243190] <- 0x0       : HPTimer #9: disabled?
[HPTimer] at DbgMgr:FF9B36A0:FF86C07C [0xC0243294] <- 0x0       : HPTimer #9: reset trigger?
[HPTimer] at DbgMgr:FF9B36A4:FF86C07C [0xC0243294] -> 0x0       : HPTimer #9: ???
[HPTimer] at DbgMgr:FF9B36D8:FF86C188 [0xC0243300] -> 0x0       : Which timer(s) triggered
[HPTimer] at CSMgrT:FF9B3680:FF86D404 [0xC02432A0] <- 0x0       : HPTimer #10: inactive
[HPTimer] at CSMgrT:FF9B3650:FF86D40C [0xC02431A0] <- 0x0       : HPTimer #10: disabled?
[HPTimer] at CSMgrT:FF9B35D4:FF86D418 [0xC02431A4] -> 0xCC700   : HPTimer #10: output compare
[HPTimer] at CSMgrT:FF9B35E8:FF86D418 [0xC02431A4] <- 0xED0E8   : HPTimer #10: output compare (delay 1000 microseconds)
[HPTimer] at CSMgrT:FF9B36A0:FF86D420 [0xC02432A4] <- 0x0       : HPTimer #10: reset trigger?
[HPTimer] at CSMgrT:FF9B36A4:FF86D420 [0xC02432A4] -> 0x0       : HPTimer #10: ???
[HPTimer] at CSMgrT:FF9B3640:FF86D428 [0xC02431A0] <- 0x1       : HPTimer #10: enabled?
[HPTimer] at CSMgrT:FF9B3660:FF86D444 [0xC02432A0] <- 0x1       : HPTimer #10: active
 [HPTimer] Firing HPTimer #10
  184:   360.192 [CF] ERROR GetRotatingDeviceInfo
   185:   400.896 [CF] ERROR GetMakerAndVersionTuple : SearchTuple (CISTPL_VERS_1)

This is very promising , very good info this well definitely help 100%  :D
 
#24
crop_rec and derived builds / Re: 3K/UHD 5D2 Raw development...
Last post by reddeercity - April 21, 2024, 05:45:29 AM
Quote from: names_are_hard on April 19, 2024, 03:16:20 PMWhere's the code to generate the logs?  Lots of people have 5d3 and can run tests.
Just assumed that after 10 years there would a lot Log file around.
After looking at Logs generated by Real Cam hardware its not giving the detailed information i needed 
I'll need detailed Logs out of qemu with camera rom
#25
Raw Video / Re: Recording Raw on a DJI Gim...
Last post by kytai90 - April 19, 2024, 05:34:49 PM
Quote from: vastunghia on March 11, 2024, 08:05:33 AMGlad it helped. I'm on a 5D3 and own a DJI gimbal too, first time I connected it I was so disappointed... took a while to find a way.
Your sokution worked on webill S, i had the same problem.
Now it's stable. Just dont use the LV button (center of the wheel) since it cause can not stop the record.
#26
Where's the code to generate the logs?  Lots of people have 5d3 and can run tests.
#27
crop_rec and derived builds / Re: 3K/UHD 5D2 Raw development...
Last post by reddeercity - April 19, 2024, 06:59:28 AM
I thought i had some 5D3 log file but it seems i don't anymore ,
is there anyone with a 5D3 startup log? or any 5D3 logs that has any CF card info?
:)
#28
crop_rec and derived builds / Re: 3K/UHD 5D2 Raw development...
Last post by reddeercity - April 19, 2024, 06:49:48 AM
found some interesting stuff in the MPU-ROM.BIN from my 5D2 ,seems to be a lot of stuff going on in the MPU
-. Switch State Information . LockSw : .UnLock(On).Lock(Off).
CardCover: .Open.Close. BatCover
CFDetectSw : .On.Off. ELButton
SubDialLockSw: .UnLock.Lock. Sw1: . Sw2
AELockButton
AFStartButton
SpdnButton
AFFrameSelectButton
AFModeButton
MeteringModeButton
ISOButton
InfoButton
EraseButton
EasyDirectButton
PictureStyleButton
MultiContoller
Center.Up.UpRight.UpLeft.Right.Left.DownRight.DownLeft.Down.None.... ModeDial
Program.Tv.Av.Manual.Bulb.A DEP.Green.CreativeGreen.NightPortrait.Sports.Portrait.Landscape.Closeup.FlashOff.Custom
1.Custom2.Custom3. MainDial
SubDial
MIF

[FG_BATT_SEND]...[FG]SioToVldet..[FG]VldetToSio..ÿÿ.[FG_ERR]RcvCmdSize > Buff..
[FG_ERR]CheckSumErr...[FG_IC_RCV]..[FG_BATT_RCV]...[FG]NinshoOK..
[FG]NinshoNG...COFFS:..RC:..SC:.[FG_ERR]ComErr..[FG_ERR]OverRetryCnt..[FG_ERR]BattReWakeUp..
[FG]FgInit..BGM-E6.[FG]VLDET..[FG_ERR]Timeout..[FG]FirstWakeUp..[FG]IcInitComp...
[FG_BATT]FirstWakeup..[FG]:WftBattOpen..ÿÿ.[FG_IC_SEND]...[FG_ICU]Slot:..
[FG_ICU]Type:..[FG_ICU]Level:...[FG]:WftConnect..
[FG]:WftDisConnect...BattRomRead:...PowerChange:.BC.%x.%2x..RCP:...H.êƒ,.[ƒh..ÿÿ..ÿÿ.E0Off..
[MAIN]:<TIMEOUT>strobo func get..[MAIN]:<TIMEOUT>strobo func set..
[MAIN]:<TIMEOUT>strobo func reset..[MAIN]:<TIMEOUT>strobo cfn get..
[MAIN]:<TIMEOUT>strobo cfn set..[MAIN]:<TIMEOUT>strobo cfn reset..
[MAIN]:<TIMEOUT>strobo wireless get..[MAIN]:<TIMEOUT>strobo wireless set..ÿÿÿ
[MAIN]:<TIMEOUT>lv ae..ÿ[Mecha]E
K218 is the 5D2
K218 Debug Monitor (Ver 0.00)
MakeFile K218_eep.mot.S00F00006B3231385F6565702E6D6F74D3..ÿ....k218_ÿÿÿ%lx..
[Error] ƒpƒ‰ƒ..[ƒ^•s'«,Å,·...[Error] ƒpƒ‰ƒ..[ƒ^ƒ~ƒX...
[Error] –³Œø,ȃRƒ}ƒ"ƒh,Å S315.S70500000000FA.address   0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
DUMPB.DUMPW.DUMPL.%lx.?....  . .MMOT.
MakeFile (MPU)..
DEF_MPU_S0LINE.S315.S70500000000FA..ÿÿÿÿ.äreturn code error
Please Reset and Retry
MPU Ver...0x.  MPU code   area check sum...0x....ÿÿÿ.error code : %03d.,%03d...usage: release [<Tv> <Av> <Xout>]..ex. release..ex. release 68 38 1
TestRelease..%x.usage: shutterready [<Tv> <Av> <Xout>]..ex. shutterready..ex. shutterready 68 38 1 ...TestShutterReady
TestMirrorUp...TestChargeShutter...TestChargeMirror...Test1stShutterRun...Test2ndShutterRun...TestMirrorDown...TestShutterOpen...usage: fgcomm <target> <command>
<data>...TestFgComm...OK...NG...usase : SetCoffs <coffs>...SetCoffs...usase : SetOffs <offs>...SetOffs...GetRcp...GetRc...GetSc...EficTemp:

H.MPU Send RAM Program.....EEP write start....format error1..format error2
format error3..format error4..format error5..format error6...
Please Send *.bny..Update Bin ERR1..Update End..Update Bin ERR3...Update Bin ERR4..
File input error!!...File format error!!..*....mload Complete....Complete...ÿ.MON>>
E1ON.MON>>..E1OFF..ÿÿÿð.............ÿþýüûúÿÿ...D. ...ÿMCell

cyc_main.alm_uitimer1.alm_uitimer3.alm_uitimer6.alm_uitimer7.alm_uitimer8.alm_uitimer9.
alm_uitimer10.alm_uiackwait.alm_uiirwait.alm_main_afclosewait.alm_mecha_mirror_motor.
timeout.alm_mecha_shutter_motor_timeout.alm_mecha_bccomm.alm_main_dl_timer.alm_main_
studio_sp_mode_interval_timer.alm_main_caprdy_enable_timer
alm_mecha_check_x_timer.alm_main_rel_conti_timer.
alm_main_fg_timer.alm_main_fg_ic_timer
alm_main_shutter_over_run.alm_main_mirror_over_run.alm_main_ae_accum_timeout_timer

that all i could read in text , need to decompile the EPU ROM.BIN file , there a lot of function
in there , if we could offload some of ML tasks in the MPU chip and hack in to them i would think would free up a lot of overhead . Thou this all highly speculative but it seems logical i think  :D 



#29
Quote from: iaburn on April 18, 2024, 05:54:41 PMIt looks old, you can try the on on this post:
magiclantern-Nightly.2020Jul16.6D116.zip


thank you, got it, LV raw type field is there, i will test it.
#30
crop_rec and derived builds / Re: Levas' crop_rec_4k experim...
Last post by iaburn - April 18, 2024, 05:54:41 PM
Quote from: SpasatelMalibu on April 18, 2024, 04:26:19 PMcan't find this one. What build should i use? currently on crop_rec_4k.2018Jul22.6D116 + overwritten crop-rec module.

It looks old, you can try the on on this post:
magiclantern-Nightly.2020Jul16.6D116.zip