00:00
<
bonda_000 >
somehow cpi.h and cam0.h both are at 7e800000 and register names are different, but this CPI bit may change the way how these registers are used
00:00
<
bonda_000 >
tried poking at those AVEIN_ clocks but no success
00:02
<
bonda_000 >
I probably did it all wrong and I need to set clocks to ALT3 rather than ALT4
00:02
<
bonda_000 >
but, tomorrow. now I'm gonna get some rest
00:36
<
clever >
its possible that cpi is only present on other chips, that dont have unicam
00:36
<
clever >
and its a choice by broadcom about which one to include in the chip
00:40
bonda_000 has quit [Ping timeout: 256 seconds]
01:29
bonda_000 has joined ##raspberrypi-internals
01:29
<
bonda_000 >
clever: I get it
01:30
<
bonda_000 >
but if I'm taking ADC values in, and supplying the clock to it, data bits should be AVEIN_ and clocks should be AVEOUT_
01:30
<
bonda_000 >
by the logic of things, if that's how it works
01:50
bonda_000 has quit [Quit: Leaving]
02:22
bonda_000 has joined ##raspberrypi-internals
02:44
jcea has quit [Ping timeout: 240 seconds]
02:55
bonda_000 has quit [Remote host closed the connection]
03:03
bonda_000 has joined ##raspberrypi-internals
03:10
<
bonda_000 >
clever: what is the start_db.elf file? It weight an extra 1.1MB compared to my current elf
03:13
<
clever >
bonda_000: a debug build, it has a lot more logging statements
03:14
<
bonda_000 >
oh nice
03:14
<
clever >
the idea being, if you have a bug with the firmware, set start_db=1, reproduce the bug, and send it to the engineers
03:14
<
clever >
i'm not sure if db has the extra stuff from start_x
03:15
<
bonda_000 >
I just tried with AVEOUT_ clocks and there's nothing on the scope
03:15
<
bonda_000 >
I fed CM_CAM0CTL with PLLD as a source
03:16
<
bonda_000 >
then did something similar to the unicam_reset_cpi()
03:16
<
bonda_000 >
there are descriptions of CAM bitfields in the android drop in mach-rhea but its all acronyms, hard to understand
03:19
<
bonda_000 >
maybe you can recognize some of these since you've been doing this for several years now
03:21
<
bonda_000 >
What I see so far, is there is a set of registers that starts with an 'I': ICTL, ISTA, IDI and that stands for CTL, STA, DI for some "I"
03:21
<
clever >
bonda_000: nothing immediately stands out from there
03:21
<
clever >
but the DAT0 and DAT1 kind of feel like this is a 2 lane CSI interface
03:22
<
bonda_000 >
and a set of registers that starts with a 'D': DCS, DBSA, DBEA that stands for CS, BSA, BEA for some "D"
03:22
<
bonda_000 >
BEA is a buffer I believe
03:22
<
bonda_000 >
so a D-buffer and an I-buffer
03:23
<
bonda_000 >
#define CAM_MISC_CPI_SELECT_SHIFT 17
03:23
<
bonda_000 >
that's the one I mentioned earlier
03:25
<
bonda_000 >
#define CAM_ANA_PTATADJ_SHIFT 8
03:25
<
bonda_000 >
#define CAM_ANA_CTATADJ_SHIFT 4
03:26
<
bonda_000 >
PTATADJ is a '7' when nothing's going on
03:26
<
bonda_000 >
same as CTATADJ
03:26
<
bonda_000 >
#define CAM_ANA_AR_SHIFT 2
03:27
<
bonda_000 >
#define CAM_ANA_BPD_SHIFT 1
03:27
<
bonda_000 >
#define CAM_ANA_APD_SHIFT 0
03:27
<
clever >
i should get off to bed now, its 27 past midnight
03:27
<
bonda_000 >
makes a '7'
03:27
<
bonda_000 >
I couldnt go sleep
03:28
<
bonda_000 >
nothing works and I can't even take a scope capture
03:28
<
bonda_000 >
trying some linux freeware atm
04:17
dolphinana has joined ##raspberrypi-internals
05:41
dolphinana has quit [Remote host closed the connection]
06:18
bonda_000 has quit [Ping timeout: 260 seconds]
09:52
f_ has joined ##raspberrypi-internals
10:12
f_ has joined ##raspberrypi-internals
10:12
f_ has quit [Changing host]
10:12
f_ has joined ##raspberrypi-internals
10:13
f_ has quit [Client Quit]
10:14
f_ has joined ##raspberrypi-internals
11:54
pavelow has quit [Quit: No Ping reply in 180 seconds.]
11:55
pavelow has joined ##raspberrypi-internals
12:35
jcea has joined ##raspberrypi-internals
13:44
Stromeko has quit [Ping timeout: 260 seconds]
13:49
Stromeko has joined ##raspberrypi-internals
14:18
vriska has quit [Read error: Connection reset by peer]
14:20
vriska has joined ##raspberrypi-internals
14:21
bonda_000 has joined ##raspberrypi-internals
14:34
bonda_000 has quit [Quit: Leaving]
15:43
f_ has joined ##raspberrypi-internals
17:45
bonda_000 has joined ##raspberrypi-internals
17:46
bonda_000 has quit [Client Quit]
19:53
bonda_000 has joined ##raspberrypi-internals
20:50
<
bonda_000 >
clever: any new findings?
20:51
<
clever >
been busy today with groceries and fixing the washing machine
20:54
<
bonda_000 >
clever: do you know what a hisr/lisr ir?
20:55
<
bonda_000 >
there are plenty of functions named like this in different blocks
20:55
<
clever >
bonda_000: interrupt service routine
20:55
<
bonda_000 >
and what is h/l?
20:55
<
bonda_000 >
high/low?
20:57
<
bonda_000 >
and what does vchiq stand for?
20:57
<
bonda_000 >
i just realized something
20:58
<
bonda_000 >
I always associated vchiq with mmal
20:58
<
bonda_000 >
vchiq_mmal, the communication between linux and vpu
20:58
<
bonda_000 >
but mmal appears to be a part of something called "vchiq"
20:58
<
bonda_000 >
on the vpu
21:00
<
bonda_000 >
vchi to be more general
21:01
<
bonda_000 >
found it
21:01
<
bonda_000 >
Videocore Host Interface
21:02
<
clever >
bonda_000: omx, mmal, broadcom gl, dispmanx, and many more, all run over vchiq
21:04
<
bonda_000 >
ilcs = OpenMAX IL component service
21:05
<
bonda_000 >
is also a part of it
21:05
<
clever >
there is also a shared memory service
21:05
<
clever >
which lets you allocate objects in the gpu mem (or import arm objects)
21:06
<
clever >
and then you can use those objects in the other services
21:08
<
bonda_000 >
so this OS is built around the servicing requests from another processor
21:09
<
bonda_000 >
threadx part is very thin and is just responsible for multitasking
21:09
<
bonda_000 >
so it doesn't really do much on its' own until it gets a request from ARM
21:10
<
clever >
yeah, thats the current design
21:10
<
bonda_000 >
and that's when a task is created, that allocates required components, ports
21:11
<
clever >
the old broadcom gl would RPC every bbl
21:11
<
bonda_000 >
every what?
21:14
<
clever >
every opengl function call to the firmware
21:20
<
bonda_000 >
I noticed
21:21
<
bonda_000 >
some camera data labels are actually missing in the unstripped elf
21:23
<
bonda_000 >
if you set the gp=0ef07e00 on unicam_open()
21:23
<
bonda_000 >
does it look like this to you?
21:27
<
bonda_000 >
all the &DAT's
23:22
bonda_000 has quit [Quit: Leaving]