Re: [Elphel-support] elphel393 setup.py

2017-03-31 Thread Frank Bennett

  
  
Oleg:
  Stuff in build/tmp/deploy/images/elphel393 looks good.
  Yocto looks promising for MicroZed work...
  
  I noticed a "create_img_iso.py" script in elphel-tools-update. 
  How is this used with the build stuff to get a sdimage.iso? 
  How does the BOOT_FILE_LIST files link to the build output?
  
  thanks,
  Frank Bennett

On 03/31/2017 11:25 AM, Oleg wrote:


  Hi,


I forgot:

  $ bitbake linux-xlnx -c link -f
  $ bitbake linux-xlnx




  I don't think it is described
anywhere at the moment:
  
* ./linux-elphel/src/drivers/elphel/x393.h

this file (and all the others from our tree) gets
  linked to the kernel source by an extra task added to the
  kernel recipe (in elphel393_fixold/meta/meta-elphel393/recipes-kernel/linux/linux-xlnx_4.0.bbappend)
  -
  
  addtask do_link before
do_kernel_configme after do_patch
  which is before do_compile where bitbake stopped.
  
  
  What happened:
  * python-numpy was missing
  * scripts failed to generate x393.h
and it wasn't linked to the source
  * bitbake was up to do_compile task,
so 'bitbake linux-xlnx' would not get back to do_link.
  
  
  Best regards,
Oleg Dzhimiev
Electronics Engineer
phone: +1 801 783  x124
Elphel, Inc.
  
  
On 31 March 2017 at 09:24, Frank
  Bennett 
  wrote:
  
 Oleg:
Got python-numpy
reviewed poky manual
rm projects.json
./setup.py
still no x393.h in poky/build path only in:
fwb@fw:/s/opt/elphel/elphel393$ find . -name
x393.h
./fpga-elphel/x393/py393/generated/x393.h
./linux-elphel/src/drivers/elphel/x393.h
only mention in setup output:
...
X393SensCmprs: BUFFER_ADDRESS=0x2550
X393SensCmprs: BUFFER_LEN=0x1900
Running in simulated mode, using hard-coded
addresses:
BUFFER_ADDRESS_LOGGER=0x2d00
BUFFER_LEN_LOGGER=0x40
Running task: ['export_all']
typedef definitions for the x393 hardware registers
are written to  to /s/opt/elphel/elphel393/fpga-elphel/x393/py393/generated/x393_types.h
Constants definitions and functions declarations to
access x393 hardware registers are written to  to
/s/opt/elphel/elphel393/fpga-elphel/x393/py393/generated/x393.h
Functions definitions to access x393 hardware
registers are written to  to
/s/opt/elphel/elphel393/fpga-elphel/x393/py393/generated/x393.c
Constants and hardware addresses definitions to
access x393 hardware registers are written to  to
/s/opt/elphel/elphel393/fpga-elphel/x393/py393/generated/x393_defs.h
Sorted hardware addresses map is written to  to
/s/opt/elphel/elphel393/fpga-elphel/x393/py393/generated/x393_map.h
    Result: OK



   

___
Support-list mailing list
Support-list@support.elphel.com
http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com
   

  

  


  


___
Support-list mailing list
Support-list@support.elphel.com
http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com


Re: [Elphel-support] elphel393 setup.py

2017-03-31 Thread Frank Bennett

  
  
Andrey:
    Greeting, I've been in contract with Oleg trying to get the
  kernel to build but
  in drivers/elphel a reference to x393.h can't be found.
  
  Nice work for boot.bin and not having to learn SystemVerilog,
  -Frank

On 03/31/2017 09:46 AM, Elphel Support
  wrote:


  
  Hello
Frank,

the
  "test_mcntrl.py" program (now just a historic name - initially
  it was for testing memory controller and adjustment of per-pin
  delays using LMA -
https://blog.elphel.com/2015/04/fpga-to-ddr3-memory-interface-step-by-step-timing-calibration-and-set-up/)
  is a multi-purpose program that runs in the camera, and on the
  host computer: during simulation with cocotb
(https://blog.elphel.com/2016/07/i-will-not-have-to-learn-systemverilog/)
  and (as in your case) to export definitions from Verilog to C
  header files
  https://blog.elphel.com/2016/03/synchronizing-verilog-python-and-c/
  The program was initially made to be able to read and use
  Verilog parameters and defines so it was natural to add C
  language export to it.
  
  Numpy is only needed for matrix operations for LMA
  (https://en.wikipedia.org/wiki/Levenberg%E2%80%93Marquardt_algorithm),
  but as it is the same single program, it wanted it for C
  header files generation too.
  
  Andrey


  
 On Fri, 31 Mar 2017 08:24:35 -0700 Frank
  Bennett wrote  
  
  

 Oleg:
Got python-numpy
reviewed poky manual
rm projects.json
./setup.py
still no x393.h in poky/build path only in:
fwb@fw:/s/opt/elphel/elphel393$ find . -name x393.h
./fpga-elphel/x393/py393/generated/x393.h
./linux-elphel/src/drivers/elphel/x393.h
only mention in setup output:
...
X393SensCmprs: BUFFER_ADDRESS=0x2550
X393SensCmprs: BUFFER_LEN=0x1900
Running in simulated mode, using hard-coded addresses:
BUFFER_ADDRESS_LOGGER=0x2d00
BUFFER_LEN_LOGGER=0x40
Running task: ['export_all']
typedef definitions for the x393 hardware registers are
written to  to
/s/opt/elphel/elphel393/fpga-elphel/x393/py393/generated/x393_types.h
Constants definitions and functions declarations to
access x393 hardware registers are written to  to
/s/opt/elphel/elphel393/fpga-elphel/x393/py393/generated/x393.h
Functions definitions to access x393 hardware registers
are written to  to
/s/opt/elphel/elphel393/fpga-elphel/x393/py393/generated/x393.c
Constants and hardware addresses definitions to access
x393 hardware registers are written to  to
/s/opt/elphel/elphel393/fpga-elphel/x393/py393/generated/x393_defs.h
Sorted hardware addresses map is written to  to
/s/opt/elphel/elphel393/fpga-elphel/x393/py393/generated/x393_map.h
    Result: OK



   ___ 
  Support-list mailing list 
  Support-list@support.elphel.com
  
  http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com
  

  
  


  


  


___
Support-list mailing list
Support-list@support.elphel.com
http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com


Re: [Elphel-support] elphel393 setup.py

2017-03-30 Thread Frank Bennett

  
  


On 03/30/2017 02:10 PM, Oleg wrote:


  
Hi,


Try:
$ sudo apt-get install python-numpy

  
  
  It might be missing.
  
  
  
  Are you following this
  guide?

  

no, I will check it out.
thanks,
Frank Bennett

  

  
  
  Best regards,
Oleg Dzhimiev
Electronics Engineer
phone: +1 801 783  x124
Elphel, Inc.

  


  


___
Support-list mailing list
Support-list@support.elphel.com
http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com


Re: [Elphel-support] elphel393 setup.py

2017-03-30 Thread Oleg
Hi,

Try:
$ sudo apt-get install python-numpy

It might be missing.

Are you following this guide ?

Best regards,
Oleg Dzhimiev
Electronics Engineer
phone: +1 801 783  x124
Elphel, Inc.
___
Support-list mailing list
Support-list@support.elphel.com
http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com