03/14/17 [imagej-elphel][dct] by AndreyFilippov: separating with flaps
AndreyFilippov committed changes to the Elphel git project :
separating with flaps
separating with flaps
03/14/17 [imagej-elphel][master] by AndreyFilippov: separating with flaps
AndreyFilippov committed changes to the Elphel git project :
separating with flaps
separating with flaps
03/13/17 [imagej-elphel][dct] by AndreyFilippov: next snapshot
AndreyFilippov committed changes to the Elphel git project :
next snapshot
next snapshot
03/13/17 [imagej-elphel][master] by AndreyFilippov: next snapshot
AndreyFilippov committed changes to the Elphel git project :
next snapshot
next snapshot
Template:Cad5
← Older revision
Revision as of 18:39, 13 March 2017
Line 7:
Line 7:
{| border="0" cellpadding="2" {| border="0" cellpadding="2"
|- |-
−|[[Image:{{{1}}}.jpeg|thumb|<span class="plainlinks" title="View model in the Web X3D Viewer">[http://community.elphel.com/x3d/index.html?nobuttons&animate&model=/files/x3d/{{{1}}}.x3d http://community.elphel.com/pictures/webx3dicon.png]</span><br/>[[Media:{{{1}}}.stp.tar.gz|3d (step)]] [[Media:{{{1}}}.dxf.tar.gz|2d (dxf)]] [[Media:{{{1}}}.pdf|2d (pdf)]]]] || +|[[Image:{{{1}}}.jpeg|thumb|<span class="plainlinks" title="View model in the Web X3D Viewer">[https://community.elphel.com/x3d/index.html?nobuttons&animate&model=/files/x3d/{{{1}}}.x3d https://community.elphel.com/pictures/webx3dicon.png]</span><br/>[[Media:{{{1}}}.stp.tar.gz|3d (step)]] [[Media:{{{1}}}.dxf.tar.gz|2d (dxf)]] [[Media:{{{1}}}.pdf|2d (pdf)]]]] ||
|- |-
|} |}
Oleg
Template:Cad4b
← Older revision
Revision as of 18:38, 13 March 2017
Line 9:
Line 9:
{| border="0" cellpadding="3" style="border:1px solid lightgray;border-collapse:collapse;" {| border="0" cellpadding="3" style="border:1px solid lightgray;border-collapse:collapse;"
|- |-
−| <span class="plainlinks">[http://community.elphel.com/files/production/{{{1}}}.jpeg http://community.elphel.com/files/production/{{{1}}}_resized.jpeg]</span>+| <span class="plainlinks">[https://community.elphel.com/files/production/{{{1}}}.jpeg https://community.elphel.com/files/production/{{{1}}}_resized.jpeg]</span>
−| <span class="plainlinks">[http://community.elphel.com/files/production/{{{1}}}_extra.jpeg http://community.elphel.com/files/production/{{{1}}}_extra_resized.jpeg]</span>+| <span class="plainlinks">[https://community.elphel.com/files/production/{{{1}}}_extra.jpeg https://community.elphel.com/files/production/{{{1}}}_extra_resized.jpeg]</span>
|- |-
| |
−<span class="plainlinks" title="View model in the Web X3D Viewer">[http://community.elphel.com/x3d/index.html?nobuttons&animate&model=/x3d/x3d_model_files/x3d/{{{1}}}.x3d http://community.elphel.com/pictures/webx3dicon.png]</span><br/>+<span class="plainlinks" title="View model in the Web X3D Viewer">[https://community.elphel.com/x3d/index.html?nobuttons&animate&model=/x3d/x3d_model_files/x3d/{{{1}}}.x3d https://community.elphel.com/pictures/webx3dicon.png]</span><br/>
−[http://community.elphel.com/files/production/{{{1}}}.stp.tar.gz 3d (step)] +[https://community.elphel.com/files/production/{{{1}}}.stp.tar.gz 3d (step)]
−[http://community.elphel.com/files/production/{{{1}}}.dxf.tar.gz 2d (dxf)] +[https://community.elphel.com/files/production/{{{1}}}.dxf.tar.gz 2d (dxf)]
−[http://community.elphel.com/files/production/{{{1}}}.pdf 2d (pdf)] +[https://community.elphel.com/files/production/{{{1}}}.pdf 2d (pdf)]
| |
|} |}
Oleg
Template:Cad4a
← Older revision
Revision as of 18:37, 13 March 2017
Line 9:
Line 9:
{| border="0" cellpadding="3" style="border:1px solid lightgray;border-collapse:collapse;" {| border="0" cellpadding="3" style="border:1px solid lightgray;border-collapse:collapse;"
|- |-
−| <span class="plainlinks">[http://community.elphel.com/files/production/{{{1}}}.jpeg http://community.elphel.com/files/production/{{{1}}}_resized.jpeg]</span>+| <span class="plainlinks">[https://community.elphel.com/files/production/{{{1}}}.jpeg https://community.elphel.com/files/production/{{{1}}}_resized.jpeg]</span>
|- |-
| |
−<span class="plainlinks" title="View model in the Web X3D Viewer">[http://community.elphel.com/x3d/index.html?nobuttons&animate&model=/x3d/x3d_model_files/x3d/{{{1}}}.x3d http://community.elphel.com/pictures/webx3dicon.png]</span><br/>+<span class="plainlinks" title="View model in the Web X3D Viewer">[https://community.elphel.com/x3d/index.html?nobuttons&animate&model=/x3d/x3d_model_files/x3d/{{{1}}}.x3d https://community.elphel.com/pictures/webx3dicon.png]</span><br/>
−[http://community.elphel.com/files/production/{{{1}}}.stp.tar.gz 3d (step)] +[https://community.elphel.com/files/production/{{{1}}}.stp.tar.gz 3d (step)]
−[http://community.elphel.com/files/production/{{{1}}}.dxf.tar.gz 2d (dxf)] +[https://community.elphel.com/files/production/{{{1}}}.dxf.tar.gz 2d (dxf)]
−[http://community.elphel.com/files/production/{{{1}}}.pdf 2d (pdf)] +[https://community.elphel.com/files/production/{{{1}}}.pdf 2d (pdf)]
|} |}
| |
Oleg
Template:Cad4
← Older revision
Revision as of 18:36, 13 March 2017
Line 7:
Line 7:
{| border="0" cellpadding="2" {| border="0" cellpadding="2"
|- |-
−| [[Image:{{{1}}}.jpeg|thumb|<span class="plainlinks" title="View model in the Web X3D Viewer">[http://community.elphel.com/x3d/index.html?nobuttons&animate&model=/files/x3d/{{{1}}}.x3d http://community.elphel.com/pictures/webx3dicon.png]</span><br/>[[Media:{{{1}}}.stp.tar.gz|3d (step)]] [[Media:{{{1}}}.dxf.tar.gz|2d (dxf)]] [[Media:{{{1}}}.pdf|2d (pdf)]]]] || +| [[Image:{{{1}}}.jpeg|thumb|<span class="plainlinks" title="View model in the Web X3D Viewer">[https://community.elphel.com/x3d/index.html?nobuttons&animate&model=/files/x3d/{{{1}}}.x3d https://community.elphel.com/pictures/webx3dicon.png]</span><br/>[[Media:{{{1}}}.stp.tar.gz|3d (step)]] [[Media:{{{1}}}.dxf.tar.gz|2d (dxf)]] [[Media:{{{1}}}.pdf|2d (pdf)]]]] ||
|- |-
| {{#if: {{{2|}}} | <span title="{{{2}}}" style="color:red;">Known problems</span> | }} | {{#if: {{{2|}}} | <span title="{{{2}}}" style="color:red;">Known problems</span> | }}
| |
|} |}
Oleg
Template:Cad4c assembly
← Older revision
Revision as of 18:33, 13 March 2017
Line 9:
Line 9:
{| border="0" cellpadding="3" style="border:1px solid lightgray;border-collapse:collapse;" {| border="0" cellpadding="3" style="border:1px solid lightgray;border-collapse:collapse;"
|- |-
−| <span class="plainlinks">[http://community.elphel.com/x3d/index.html?animate&model=/x3d/x3d_model_files/x3d/{{{1}}}-ASSY.x3d http://community.elphel.com/files/production/{{{1}}}_resized.jpeg]</span>+| <span class="plainlinks">[https://community.elphel.com/x3d/index.html?animate&model=/x3d/x3d_model_files/x3d/{{{1}}}-ASSY.x3d https://community.elphel.com/files/production/{{{1}}}_resized.jpeg]</span>
|- |-
| |
−<span class="plainlinks" title="View model in the Web X3D Viewer">[http://community.elphel.com/x3d2/index.html?animate&model=/x3d/x3d_model_files/x3d/{{{1}}}-ASSY.x3d http://community.elphel.com/pictures/webx3dicon.png]</span>+<span class="plainlinks" title="View model in the Web X3D Viewer">[https://community.elphel.com/x3d2/index.html?animate&model=/x3d/x3d_model_files/x3d/{{{1}}}-ASSY.x3d https://community.elphel.com/pictures/webx3dicon.png]</span>
| |
|} |}
Line 18:
Line 18:
Copyright © {{CURRENTYEAR}} Elphel Inc. Copyright © {{CURRENTYEAR}} Elphel Inc.
−Licensed under [http://ohwr.org/cernohl CERN OHL v.1.1], [http://www.gnu.org/copyleft/fdl.html GNU FDL v.1.3]+Licensed under [https://ohwr.org/cernohl CERN OHL v.1.1], [https://www.gnu.org/copyleft/fdl.html GNU FDL v.1.3]
|- |-
|{{#if: {{{2|}}} | <span title="{{{2}}}" style="color:red;">Known problems</span> | }} |{{#if: {{{2|}}} | <span title="{{{2}}}" style="color:red;">Known problems</span> | }}
| |
|} |}
Oleg
Main Page
Welcome to the Elphel Project Wiki
← Older revision Revision as of 18:29, 13 March 2017 Line 1: Line 1: __NOTOC__ __NOTOC__ <center> <center> −= Welcome to the Elphel Project Wiki =+= Welcome to Elphel Wiki = </center> <center>[[Image:Elphel logo 2.png]]</center> </center> <center>[[Image:Elphel logo 2.png]]</center> Oleg03/11/17 [imagej-elphel][dct] by AndreyFilippov: splitting clusters
AndreyFilippov committed changes to the Elphel git project :
splitting clusters
splitting clusters
03/11/17 [imagej-elphel][master] by AndreyFilippov: splitting clusters
AndreyFilippov committed changes to the Elphel git project :
splitting clusters
splitting clusters
03/10/17 [imagej-elphel][dct] by AndreyFilippov: working on tile processing
AndreyFilippov committed changes to the Elphel git project :
working on tile processing
working on tile processing
03/10/17 [imagej-elphel][master] by AndreyFilippov: working on tile processing
AndreyFilippov committed changes to the Elphel git project :
working on tile processing
working on tile processing
Template:Cad4c
Usage:
← Older revision Revision as of 22:13, 9 March 2017 Line 9: Line 9: {| border="0" cellpadding="3" style="border:1px solid lightgray;border-collapse:collapse;" {| border="0" cellpadding="3" style="border:1px solid lightgray;border-collapse:collapse;" |- |- −| <span class="plainlinks">[http://community.elphel.com/files/production/{{{1}}}.jpeg http://community.elphel.com/files/production/{{{1}}}_resized.jpeg]</span>+| <span class="plainlinks">[https://community.elphel.com/files/production/{{{1}}}.jpeg https://community.elphel.com/files/production/{{{1}}}_resized.jpeg]</span> |- |- | | −<span class="plainlinks" title="View model in the Web X3D Viewer">[http://community.elphel.com/x3d/index.html?nobuttons&animate&model=/x3d/x3d_model_files/x3d/{{{1}}}.x3d http://community.elphel.com/pictures/webx3dicon.png]</span><br/>+<span class="plainlinks" title="View model in the Web X3D Viewer">[https://community.elphel.com/x3d/index.html?nobuttons&animate&model=/x3d/x3d_model_files/x3d/{{{1}}}.x3d https://community.elphel.com/pictures/webx3dicon.png]</span><br/> −[http://community.elphel.com/files/production/{{{1}}}.stl 3d (stl)] +[https://community.elphel.com/files/production/{{{1}}}.stl 3d (stl)] −[http://community.elphel.com/files/production/{{{1}}}.stp.tar.gz 3d (step)] <br/>+[https://community.elphel.com/files/production/{{{1}}}.stp.tar.gz 3d (step)] <br/> −[http://community.elphel.com/files/production/{{{1}}}.dxf.tar.gz 2d (dxf)] +[https://community.elphel.com/files/production/{{{1}}}.dxf.tar.gz 2d (dxf)] −[http://community.elphel.com/files/production/{{{1}}}.pdf 2d (pdf)] +[https://community.elphel.com/files/production/{{{1}}}.pdf 2d (pdf)] | | |} |} Line 30: Line 30: |- |- |[[Image:{{{1}}}.jpeg|thumb|220px| |[[Image:{{{1}}}.jpeg|thumb|220px| −[http://community.elphel.com/files/production/{{{1}}}.stp.tar.gz 3d (step)] +[https://community.elphel.com/files/production/{{{1}}}.stp.tar.gz 3d (step)] −[http://community.elphel.com/files/production/{{{1}}}.dxf.tar.gz 2d (dxf)] +[https://community.elphel.com/files/production/{{{1}}}.dxf.tar.gz 2d (dxf)] −[http://community.elphel.com/files/production/{{{1}}}.pdf 2d (pdf)] ]]+[https://community.elphel.com/files/production/{{{1}}}.pdf 2d (pdf)] ]] |- |- |} |} --> --> OlegTemplate:Cad5a
Usage:
← Older revision Revision as of 22:11, 9 March 2017 Line 7: Line 7: {| border="0" cellpadding="2" {| border="0" cellpadding="2" |- |- −|[[Image:{{{1}}}.jpeg|thumb|<span class="plainlinks" title="View model in the Web X3D Viewer">[http://community.elphel.com/x3d/index.html?nobuttons&animate&model=/files/x3d/{{{1}}}.x3d http://community.elphel.com/pictures/webx3dicon.png]</span><br/>[[Media:{{{1}}}.stl|3d (stl)]] [[Media:{{{1}}}.stp.tar.gz|3d (step)]] [[Media:{{{1}}}.dxf.tar.gz|2d (dxf)]] [[Media:{{{1}}}.pdf|2d (pdf)]]]] || +|[[Image:{{{1}}}.jpeg|thumb|<span class="plainlinks" title="View model in the Web X3D Viewer">[https://community.elphel.com/x3d/index.html?nobuttons&animate&model=/files/x3d/{{{1}}}.x3d https://community.elphel.com/pictures/webx3dicon.png]</span><br/>[[Media:{{{1}}}.stl|3d (stl)]] [[Media:{{{1}}}.stp.tar.gz|3d (step)]] [[Media:{{{1}}}.dxf.tar.gz|2d (dxf)]] [[Media:{{{1}}}.pdf|2d (pdf)]]]] || |- |- |} |} OlegUsing FPGA SATA logs to debug or profile software
New page
SATA controller implemented in FPGA can write time stamps into specific memory region with 1/75 usec resolution. This feature called ''datascope'' was used to debug the controller itself, but it can also be used to debug or profile software. Each record in memory is a 32 bit value which is composed of a time stamp (28 lower bits) and a user defined tag (3 bits):0x<8 + user tag><time stamp>
To add a time stamp, write a user defined tag to a specific memory location in the SATA controller's memory region. The controller will combine the tag with timer value and write it to memory.
Here is a short example of using datascope in driver's code. First, create a couple of global (for simplicity) variables, one is a pointer to the ''datascope'' register and the other is a flag (optional) which enables writing to the register:
static void __iomem *dscope_reg = NULL;
static unsigned int dscope_en = 0;
Second, create memory mapping for ''datascope'' register somewhere in start up code:
const unsigned long reg_addr = 0x80000178;
// initialize data scope
if (dscope_reg == NULL) {
dscope_reg = ioremap(reg_addr, 4);
if (dscope_reg == NULL)
printk(KERN_ERR "Can not ioremap data scope register\n");
else
dscope_en = 1;
}
}
Here, ''reg_addr'' is the ''datascope'' register address which consists of the following parts: 0x80000000 is the start address of AHCI controller memory registers, 0x100 is port 0 start address and 0x78 is one register in vendor specific register space (0x70 - 0x7f, see Serial ATA Advanced Host Controller Interface specification);
Third, remove ''datascope'' memory mapping when finished:
if (dscope_reg != NULL) {
iounmap(dscope_reg);
dscope_reg = NULL;
}
Invoke this function from code to set time stamp with tag ''tag'':
void dscope_timestamp(unsigned int cmd)
{
uint32_t data;
if (dscope_reg != NULL && dscope_en) {
data = tag & 0x7;
iowrite32(data, dscope_reg);
}
}
''Datascope'' writes time stamps to a memory region starting from 0x80001000 and occupying one memory page. In-camera python script can be used to watch the content of this memory region:
# cd /usr/local/bin/; python
>>> import x393_mem
>>> mem = x393_mem.X393Mem(1,0,1)
>>> _=mem.mem_dump(0x80001000, 100, 4)
The controller can use this memory region for debug output during its operation. If such interference is undesirable - remove AHCI driver:
modprobe -r ahci_elphel
[[Category:393]] Mikhail
03/08/17 [x393_sata][master] by Oleg Dzhimiev: fixed a typo
Oleg Dzhimiev committed changes to the Elphel git project :
fixed a typo
fixed a typo
03/08/17 [x393_sata][master] by Oleg Dzhimiev: fixed a typo
Oleg Dzhimiev committed changes to the Elphel git project :
fixed a typo
fixed a typo
03/08/17 [elphel-apps-camogm][master] by Mikhail Karpenko: Fix 'invalid blocks on device' error during disk formatting
Mikhail Karpenko committed changes to the Elphel git project :
Fix 'invalid blocks on device' error during disk formatting
Fix 'invalid blocks on device' error during disk formatting
Pages
