Imaging solutions with Free Software & Open Hardware

Who's online

There are currently 0 users online.

Subscribe to Wiki Recent Changes feed
Track the most recent changes to the wiki in this feed. MediaWiki 1.28.0
Updated: 39 min 35 sec ago

Poky migration from rocko to warrior

Wed, 07/31/2019 - 19:03

‎- Note 4: PHP causing 'unsupported FP instruction in kernel mode'

Show changes Oleg

Poky migration from rocko to warrior

Wed, 07/31/2019 - 13:59

‎- Note 11: test AHCI driver

Show changes Oleg

Poky migration from rocko to warrior

Wed, 07/31/2019 - 12:32

Poky migration from rocko to warrior

Wed, 07/31/2019 - 11:12

Poky migration from rocko to warrior

Wed, 07/31/2019 - 11:07

Poky migration from rocko to warrior

Tue, 07/30/2019 - 15:47

‎- Note 4

Show changes Oleg

Poky migration from rocko to warrior

Tue, 07/30/2019 - 13:38

‎Elphel's kernel tree

Show changes Oleg

Poky migration from rocko to warrior

Tue, 07/30/2019 - 12:39

Poky migration from rocko to warrior

Tue, 07/30/2019 - 11:56

‎[SOLVED] Note 6

← Older revision Revision as of 17:56, 30 July 2019 (15 intermediate revisions by the same user not shown)Line 1: Line 1: −==Note 1==+==<font color='green'>'''[SOLVED]'''</font> Note 1==  * /dev/xdevfg got obsolete - there's fpga manager instead which cannot load *.bit (only *.bin or *.bit.bin) * /dev/xdevfg got obsolete - there's fpga manager instead which cannot load *.bit (only *.bin or *.bit.bin)  * '''Solution:''' * '''Solution:''' −  Brought back the old driver (drivers/char/xilinx_devcfg.c)- it works+  Brought back the old driver (drivers/char/xilinx_devcfg.c and edited Kconfig and Makefile)- it works as it used to    −==Note 2==+==<font color='green'>'''[SOLVED]'''</font> Note 2== −* php 5.6.40 - EOL and won't build+* php 5.6.40 - EOL and won't build - mysql supposedly moved header files.  * '''Solution:''' * '''Solution:'''    Disabled mysql extension:   Disabled mysql extension: Line 11: Line 11:       PACKAGECONFIG[mysql] = "--without-mysql --without-mysqli --without-pdo-mysql"      PACKAGECONFIG[mysql] = "--without-mysql --without-mysqli --without-pdo-mysql"       CFLAGS += " -ldl"      CFLAGS += " -ldl"  +  +==<font color='green'>'''[SOLVED]'''</font> Note 3==  +* New package '''rng-tools''' is whining: ''Failed to init entropy source hwrng''  +* '''Solution:'''  + Leave as is for now. The full log is:  + <font size='1'>''Initalizing available sources  + Failed to init entropy source hwrng  + Enabling JITTER rng support  + Initalizing entropy source jitter''</font>  +* Comments:  +** Haven't found if Xilinx uses any driver for /dev/hwrng  +** TODO: Find out if the order of entropy sources can be changed  +  +==<font color='green'>'''-'''</font> Note 4==  +* php, what's that?  + <font size='1'>[  35.872118] BUG: unsupported FP instruction in kernel mode  + [  35.877621] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM  + [  35.883380] Modules linked in:  + [  35.886498] CPU: 1 PID: 1756 Comm: php Not tainted 4.14.0-xilinx-v2018.3 #1  + [  35.893459] Hardware name: Xilinx Zynq Platform  + [  35.897989] task: ee83f280 task.stack: ef1d6000  + [  35.902527] PC is at vfp_reload_hw+0x30/0x44  + [  35.906802] LR is at __und_usr_fault_32+0x0/0x8  + [  35.911338] pc : [<c0102e10>]    lr : [<c010c280>]    psr: a0000013  + [  35.917529] sp : ef1d7fb0  ip : 00000051  fp : 00000001  + [  35.922813] r10: ef1d61f8  r9 : c010c308  r8 : ee9893c0  + [  35.928040] r7 : 00000001  r6 : 00400100  r5 : c0138d08  r4 : ecd600f8  + [  35.934569] r3 : c0c6c064  r2 : b67bde8c  r1 : ecd9a224  r0 : eeb00a40  + [  35.941098] Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none  + [  35.948241] Control: 18c5387d  Table: 2cda404a  DAC: 00000051  + [  35.953993] Process php (pid: 1756, stack limit = 0xef1d6210)  + [  35.959740] Stack: (0xef1d7fb0 to 0xef1d8000)  + [  35.964020] 7fa0:                                    a5f43f50 a5f43e18 00000080 00000000  + [  35.972269] 7fc0: 00000000 a5f43f4c b687b338 000000ae 00000000 bedcdfe4 00000001 a5f43ffc  + [  35.980385] 7fe0: a5f43f50 a5f43d7c b676cf78 b67bde8c 60000010 ffffffff 00000000 00000000  + [  35.988626] Code: 128aa080 e89a0162 e3110102 0a000003 (eee96a10)  + [  35.994724] ---[ end trace 06029778db6d2d90 ]---  + [  35.999422] note: php[1756] exited with preempt_count 2</font>  +  +==<font color='green'>'''[SOLVED]'''</font> Note 5==  +* MAC is not read from NAND, displays the default: 00:0e:64:10:00:00  +* Problem?  + [    3.639851] elphel393-init: Flash page read, code -95  +* Comments:  +** Lookup what had changed.  +* '''Solution:''' (for xlnx_rebase_v4.14 branch of linux-xlnx):  + In drivers/mtd/nand_base.c in nand_scan_tail() they call nand_manufacturer_init()  + which is mapped to a new driver drivers/mtd/nand_micron.c.  + So, when it fails - the driver init fails - mtd functions do not get assigned.  + (And the driver (drivers/elphel/elphel393_init.c) that reads from OTP area returns  + -95 which is EOPNOTSUPP.)  + We just need to fall through for a quick fix.  +  + The reason that function exits with an error is it decides that it does not support  + forcefully enabled on-die ECC. And this needs to be investigated.  +  +==<font color='green'>'''[SOLVED]'''</font> Note 6==  +* Problem:  + [    5.817352] udevd[1478]: starting version 3.2.7  + [    5.918028] udevd[1478]: specified group 'kvm' unknown  + [    5.986364] udevd[1479]: starting eudev-3.2.7  + [    6.142897] udevd[1479]: specified group 'kvm' unknown  +  +* Solution:  + KVM == Kernel-based Virtual Machine. Remove for now (and maybe forever)  + .  + └── udev  +     ├── eudev  +     │   └── 50-udev-default.rules  +     └── eudev_3.2.7.bbappend  +  + 50-udev-default.rules - gets installed over the original file.  +  +==<font color='green'>'''[SOLVED]'''</font> Note 7==  +* Problem:  + Ethernet driver's structure has changed. It was split into several files.  + Lives at /driver/net/ethernet/cadence/  +* Soluton:  + For out ethernet chip (Atheros 80xx) a fixup had to be added to disable SmartEEE.  + It's a single function, call and a couple defines - added all back to the new driver structure. Oleg

Poky migration from rocko to warrior

Mon, 07/29/2019 - 16:14

‎[SOLVED] Note 6

← Older revision Revision as of 22:14, 29 July 2019 (12 intermediate revisions by the same user not shown)Line 1: Line 1: −==Note 1==+==<font color='green'>'''[SOLVED]'''</font> Note 1==  * /dev/xdevfg got obsolete - there's fpga manager instead which cannot load *.bit (only *.bin or *.bit.bin) * /dev/xdevfg got obsolete - there's fpga manager instead which cannot load *.bit (only *.bin or *.bit.bin)  * '''Solution:''' * '''Solution:''' −  Brought back the old driver (drivers/char/xilinx_devcfg.c)- it works+  Brought back the old driver (drivers/char/xilinx_devcfg.c and edited Kconfig and Makefile)- it works as it used to    −==Note 2==+==<font color='green'>'''[SOLVED]'''</font> Note 2== −* php 5.6.40 - EOL and won't build+* php 5.6.40 - EOL and won't build - mysql supposedly moved header files.  * '''Solution:''' * '''Solution:'''    Disabled mysql extension:   Disabled mysql extension: Line 11: Line 11:       PACKAGECONFIG[mysql] = "--without-mysql --without-mysqli --without-pdo-mysql"      PACKAGECONFIG[mysql] = "--without-mysql --without-mysqli --without-pdo-mysql"       CFLAGS += " -ldl"      CFLAGS += " -ldl"  +  +==<font color='green'>'''[SOLVED]'''</font> Note 3==  +* New package '''rng-tools''' is whining: ''Failed to init entropy source hwrng''  +* '''Solution:'''  + Leave as is for now. The full log is:  + <font size='1'>''Initalizing available sources  + Failed to init entropy source hwrng  + Enabling JITTER rng support  + Initalizing entropy source jitter''</font>  +* Comments:  +** Haven't found if Xilinx uses any driver for /dev/hwrng  +** TODO: Find out if the order of entropy sources can be changed  +  +==<font color='green'>'''-'''</font> Note 4==  +* php, what's that?  + <font size='1'>[  35.872118] BUG: unsupported FP instruction in kernel mode  + [  35.877621] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM  + [  35.883380] Modules linked in:  + [  35.886498] CPU: 1 PID: 1756 Comm: php Not tainted 4.14.0-xilinx-v2018.3 #1  + [  35.893459] Hardware name: Xilinx Zynq Platform  + [  35.897989] task: ee83f280 task.stack: ef1d6000  + [  35.902527] PC is at vfp_reload_hw+0x30/0x44  + [  35.906802] LR is at __und_usr_fault_32+0x0/0x8  + [  35.911338] pc : [<c0102e10>]    lr : [<c010c280>]    psr: a0000013  + [  35.917529] sp : ef1d7fb0  ip : 00000051  fp : 00000001  + [  35.922813] r10: ef1d61f8  r9 : c010c308  r8 : ee9893c0  + [  35.928040] r7 : 00000001  r6 : 00400100  r5 : c0138d08  r4 : ecd600f8  + [  35.934569] r3 : c0c6c064  r2 : b67bde8c  r1 : ecd9a224  r0 : eeb00a40  + [  35.941098] Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none  + [  35.948241] Control: 18c5387d  Table: 2cda404a  DAC: 00000051  + [  35.953993] Process php (pid: 1756, stack limit = 0xef1d6210)  + [  35.959740] Stack: (0xef1d7fb0 to 0xef1d8000)  + [  35.964020] 7fa0:                                    a5f43f50 a5f43e18 00000080 00000000  + [  35.972269] 7fc0: 00000000 a5f43f4c b687b338 000000ae 00000000 bedcdfe4 00000001 a5f43ffc  + [  35.980385] 7fe0: a5f43f50 a5f43d7c b676cf78 b67bde8c 60000010 ffffffff 00000000 00000000  + [  35.988626] Code: 128aa080 e89a0162 e3110102 0a000003 (eee96a10)  + [  35.994724] ---[ end trace 06029778db6d2d90 ]---  + [  35.999422] note: php[1756] exited with preempt_count 2</font>  +  +==<font color='green'>'''[SOLVED]'''</font> Note 5==  +* MAC is not read from NAND, displays the default: 00:0e:64:10:00:00  +* Problem?  + [    3.639851] elphel393-init: Flash page read, code -95  +* Comments:  +** Lookup what had changed.  +* '''Solution:''' (for xlnx_rebase_v4.14 branch of linux-xlnx):  + In drivers/mtd/nand_base.c in nand_scan_tail() they call nand_manufacturer_init()  + which is mapped to a new driver drivers/mtd/nand_micron.c.  + So, when it fails - the driver init fails - mtd functions do not get assigned.  + (And the driver (drivers/elphel/elphel393_init.c) that reads from OTP area returns  + -95 which is EOPNOTSUPP.)  + We just need to fall through for a quick fix.  +  + The reason that function exits with an error is it decides that it does not support  + forcefully enabled on-die ECC. And this needs to be investigated.  +  +==<font color='green'>'''[SOLVED]'''</font> Note 6==  +* Problem:  + [    5.817352] udevd[1478]: starting version 3.2.7  + [    5.918028] udevd[1478]: specified group 'kvm' unknown  + [    5.986364] udevd[1479]: starting eudev-3.2.7  + [    6.142897] udevd[1479]: specified group 'kvm' unknown  +  +* Solution:  + KVM == Kernel-based Virtual Machine. Remove for now (and maybe forever)  + .  + └── udev  +     ├── eudev  +     │   └── permissions.rules  +     └── eudev_3.2.7.bbappend  +  + permissions.rules - overrides the same file from the original recipe  +                    it does not have 'kvm' Oleg

Poky migration from rocko to warrior

Mon, 07/29/2019 - 13:44

‎- Note 5

← Older revision Revision as of 19:44, 29 July 2019 (9 intermediate revisions by the same user not shown)Line 1: Line 1: −==Note 1==+==<font color='green'>'''[SOLVED]'''</font> Note 1==  * /dev/xdevfg got obsolete - there's fpga manager instead which cannot load *.bit (only *.bin or *.bit.bin) * /dev/xdevfg got obsolete - there's fpga manager instead which cannot load *.bit (only *.bin or *.bit.bin)  * '''Solution:''' * '''Solution:''' −  Brought back the old driver (drivers/char/xilinx_devcfg.c)- it works+  Brought back the old driver (drivers/char/xilinx_devcfg.c and edited Kconfig and Makefile)- it works as it used to    −==Note 2==+==<font color='green'>'''[SOLVED]'''</font> Note 2== −* php 5.6.40 - EOL and won't build+* php 5.6.40 - EOL and won't build - mysql supposedly moved header files.  * '''Solution:''' * '''Solution:'''    Disabled mysql extension:   Disabled mysql extension: Line 11: Line 11:       PACKAGECONFIG[mysql] = "--without-mysql --without-mysqli --without-pdo-mysql"      PACKAGECONFIG[mysql] = "--without-mysql --without-mysqli --without-pdo-mysql"       CFLAGS += " -ldl"      CFLAGS += " -ldl"  +  +==<font color='green'>'''[SOLVED]'''</font> Note 3==  +* New package '''rng-tools''' is whining: ''Failed to init entropy source hwrng''  +* '''Solution:'''  + Leave as is for now. The full log is:  + <font size='1'>''Initalizing available sources  + Failed to init entropy source hwrng  + Enabling JITTER rng support  + Initalizing entropy source jitter''</font>  +* Comments:  +** Haven't found if Xilinx uses any driver for /dev/hwrng  +** TODO: Find out if the order of entropy sources can be changed  +  +==<font color='green'>'''-'''</font> Note 4==  +* php, what's that?  + <font size='1'>[  35.872118] BUG: unsupported FP instruction in kernel mode  + [  35.877621] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM  + [  35.883380] Modules linked in:  + [  35.886498] CPU: 1 PID: 1756 Comm: php Not tainted 4.14.0-xilinx-v2018.3 #1  + [  35.893459] Hardware name: Xilinx Zynq Platform  + [  35.897989] task: ee83f280 task.stack: ef1d6000  + [  35.902527] PC is at vfp_reload_hw+0x30/0x44  + [  35.906802] LR is at __und_usr_fault_32+0x0/0x8  + [  35.911338] pc : [<c0102e10>]    lr : [<c010c280>]    psr: a0000013  + [  35.917529] sp : ef1d7fb0  ip : 00000051  fp : 00000001  + [  35.922813] r10: ef1d61f8  r9 : c010c308  r8 : ee9893c0  + [  35.928040] r7 : 00000001  r6 : 00400100  r5 : c0138d08  r4 : ecd600f8  + [  35.934569] r3 : c0c6c064  r2 : b67bde8c  r1 : ecd9a224  r0 : eeb00a40  + [  35.941098] Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none  + [  35.948241] Control: 18c5387d  Table: 2cda404a  DAC: 00000051  + [  35.953993] Process php (pid: 1756, stack limit = 0xef1d6210)  + [  35.959740] Stack: (0xef1d7fb0 to 0xef1d8000)  + [  35.964020] 7fa0:                                    a5f43f50 a5f43e18 00000080 00000000  + [  35.972269] 7fc0: 00000000 a5f43f4c b687b338 000000ae 00000000 bedcdfe4 00000001 a5f43ffc  + [  35.980385] 7fe0: a5f43f50 a5f43d7c b676cf78 b67bde8c 60000010 ffffffff 00000000 00000000  + [  35.988626] Code: 128aa080 e89a0162 e3110102 0a000003 (eee96a10)  + [  35.994724] ---[ end trace 06029778db6d2d90 ]---  + [  35.999422] note: php[1756] exited with preempt_count 2</font>  +  +==<font color='green'>'''SOLVED'''</font> Note 5==  +* MAC is not read from NAND, displays the default: 00:0e:64:10:00:00  +* Problem?  + [    3.639851] elphel393-init: Flash page read, code -95  +* Comments:  +** Lookup what had changed.  +* '''Solution:''' (for xlnx_rebase_v4.14 branch of linux-xlnx):  + In drivers/mtd/nand_base.c in nand_scan_tail() they call nand_manufacturer_init()  + which is mapped to a new driver drivers/mtd/nand_micron.c.  + So, when it fails - the driver init fails - mtd functions do not get assigned.  + (And the driver (drivers/elphel/elphel393_init.c) that reads from OTP area returns  + -95 which is EOPNOTSUPP.)  + We just need to fall through for a quick fix.  +  + The reason that function exits with an error is it decides that it does not support  + forcefully enabled on-die ECC. And this needs to be investigated.  +  +==<font color='green'>'''-'''</font> Note 6==  + [    5.817352] udevd[1478]: starting version 3.2.7  + [    5.918028] udevd[1478]: specified group 'kvm' unknown  + [    5.986364] udevd[1479]: starting eudev-3.2.7  + [    6.142897] udevd[1479]: specified group 'kvm' unknown Oleg

Poky migration from rocko to warrior

Fri, 07/26/2019 - 12:18

← Older revision Revision as of 18:18, 26 July 2019 (8 intermediate revisions by the same user not shown)Line 1: Line 1: −==Note 1==+==<font color='green'>'''[SOLVED]'''</font> Note 1==  * /dev/xdevfg got obsolete - there's fpga manager instead which cannot load *.bit (only *.bin or *.bit.bin) * /dev/xdevfg got obsolete - there's fpga manager instead which cannot load *.bit (only *.bin or *.bit.bin)  * '''Solution:''' * '''Solution:''' −  Brought back the old driver (drivers/char/xilinx_devcfg.c)- it works+  Brought back the old driver (drivers/char/xilinx_devcfg.c and edited Kconfig and Makefile)- it works as it used to    −==Note 2==+==<font color='green'>'''[SOLVED]'''</font> Note 2== −* php 5.6.40 - EOL and won't build+* php 5.6.40 - EOL and won't build - mysql supposedly moved header files.  * '''Solution:''' * '''Solution:'''    Disabled mysql extension:   Disabled mysql extension: Line 11: Line 11:       PACKAGECONFIG[mysql] = "--without-mysql --without-mysqli --without-pdo-mysql"      PACKAGECONFIG[mysql] = "--without-mysql --without-mysqli --without-pdo-mysql"       CFLAGS += " -ldl"      CFLAGS += " -ldl"  +  +==<font color='green'>'''[SOLVED]'''</font> Note 3==  +* New package '''rng-tools''' is whining: ''Failed to init entropy source hwrng''  +* '''Solution:'''  + Leave as is for now. The full log is:  + <font size='1'>''Initalizing available sources  + Failed to init entropy source hwrng  + Enabling JITTER rng support  + Initalizing entropy source jitter''</font>  +* Comments:  +** Haven't found if Xilinx uses any driver for /dev/hwrng  +** TODO: Find out if the order of entropy sources can be changed  +  +==<font color='green'>'''-'''</font> Note 4==  +* php, what's that?  + <font size='1'>[  35.872118] BUG: unsupported FP instruction in kernel mode  + [  35.877621] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM  + [  35.883380] Modules linked in:  + [  35.886498] CPU: 1 PID: 1756 Comm: php Not tainted 4.14.0-xilinx-v2018.3 #1  + [  35.893459] Hardware name: Xilinx Zynq Platform  + [  35.897989] task: ee83f280 task.stack: ef1d6000  + [  35.902527] PC is at vfp_reload_hw+0x30/0x44  + [  35.906802] LR is at __und_usr_fault_32+0x0/0x8  + [  35.911338] pc : [<c0102e10>]    lr : [<c010c280>]    psr: a0000013  + [  35.917529] sp : ef1d7fb0  ip : 00000051  fp : 00000001  + [  35.922813] r10: ef1d61f8  r9 : c010c308  r8 : ee9893c0  + [  35.928040] r7 : 00000001  r6 : 00400100  r5 : c0138d08  r4 : ecd600f8  + [  35.934569] r3 : c0c6c064  r2 : b67bde8c  r1 : ecd9a224  r0 : eeb00a40  + [  35.941098] Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none  + [  35.948241] Control: 18c5387d  Table: 2cda404a  DAC: 00000051  + [  35.953993] Process php (pid: 1756, stack limit = 0xef1d6210)  + [  35.959740] Stack: (0xef1d7fb0 to 0xef1d8000)  + [  35.964020] 7fa0:                                    a5f43f50 a5f43e18 00000080 00000000  + [  35.972269] 7fc0: 00000000 a5f43f4c b687b338 000000ae 00000000 bedcdfe4 00000001 a5f43ffc  + [  35.980385] 7fe0: a5f43f50 a5f43d7c b676cf78 b67bde8c 60000010 ffffffff 00000000 00000000  + [  35.988626] Code: 128aa080 e89a0162 e3110102 0a000003 (eee96a10)  + [  35.994724] ---[ end trace 06029778db6d2d90 ]---  + [  35.999422] note: php[1756] exited with preempt_count 2</font>  +  +==<font color='green'>'''-'''</font> Note 5==  +* MAC is not read from NAND, displays the default: 00:0e:64:10:00:00  +* Problem?  + [    3.639851] elphel393-init: Flash page read, code -95  +* Comments:  +** Lookup what had changed.  +  +==<font color='green'>'''-'''</font> Note 6==  + [    5.817352] udevd[1478]: starting version 3.2.7  + [    5.918028] udevd[1478]: specified group 'kvm' unknown  + [    5.986364] udevd[1479]: starting eudev-3.2.7  + [    6.142897] udevd[1479]: specified group 'kvm' unknown Oleg

Poky migration from rocko to warrior

Fri, 07/26/2019 - 11:57

Created page with "==Note 1== * /dev/xdevfg got obsolete - there's fpga manager instead which cannot load *.bit (only *.bin or *.bit.bin) * '''Solution:''' Brought back the old driver (drivers/..."

New page

==Note 1==
* /dev/xdevfg got obsolete - there's fpga manager instead which cannot load *.bit (only *.bin or *.bit.bin)
* '''Solution:'''
Brought back the old driver (drivers/char/xilinx_devcfg.c)- it works

==Note 2==
* php 5.6.40 - EOL and won't build
* '''Solution:'''
Disabled mysql extension:
To meta-elphel393/recipes-devtools/php/php_5.6.%.bbappend:
PACKAGECONFIG[mysql] = "--without-mysql --without-mysqli --without-pdo-mysql"
CFLAGS += " -ldl" Oleg

Boot options 393

Thu, 07/18/2019 - 14:11

‎Regular micro SD card

← Older revision Revision as of 20:11, 18 July 2019 Line 29: Line 29:  Requirements: Requirements:  * &mu;USB-to-USB cable * &mu;USB-to-USB cable −* Linux: compile [https://sourceforge.net/p/elphel/cp210x_gpio/ci/master/tree/ cp210x driver]+* Linux: compile [https://git.elphel.com/Elphel/cp210x_gpio cp210x driver]  Instructions: Instructions:  * Power on * Power on Oleg

Tensorflow with gpu

Tue, 07/02/2019 - 17:32

‎Setup (guide)

← Older revision Revision as of 23:32, 2 July 2019 (17 intermediate revisions by the same user not shown)Line 1: Line 1:  ==Requirements== ==Requirements== −* Kubuntu 16.04.4 LTS+* Kubuntu 16.04 LTS  ==Setup (guide)== ==Setup (guide)==  Just follow: Just follow: −* [http://www.python36.com/install-tensorflow141-gpu/ '''this guide'''] (Ubuntu 16.04 64-bit, CUDA 9.1, cuDNN 7.1.2, python3) or+* The [[Tensorflow_with_gpu#Walkthrough_for_CUDA_10.1_.2820190602.29|'''walkthrough''']] in the bottom is for CUDA 10.1, cuDNN 7.6.1, python3 −* this [http://www.python36.com/how-to-install-tensorflow-gpu-with-cuda-9-2-for-python-on-ubuntu/ '''newer one'''] (Ubuntu 16.04 64-bit, CUDA 9.2, cuDNN 7.1.4, python3)+* [http://www.python36.com/how-to-install-tensorflow-gpu-with-cuda-9-2-for-python-on-ubuntu/ '''This guide'''] (Ubuntu 16.04 64-bit, CUDA 9.2, cuDNN 7.1.4, python3)  +* [http://www.python36.com/install-tensorflow141-gpu/ '''This guide'''] (Ubuntu 16.04 64-bit, CUDA 9.1, cuDNN 7.1.2, python3)     ==Setup (some details)== ==Setup (some details)== Line 130: Line 131:    # Solution:   # Solution:    <b>~$ sudo pip3 install setuptools --upgrade</b></font>   <b>~$ sudo pip3 install setuptools --upgrade</b></font>  +  +==Walkthrough for CUDA 10.1 (20190602)==  +  +===Install CUDA===  +* In this [https://www.tensorflow.org/install/gpu guide] there's a [https://developer.nvidia.com/cuda-toolkit-archive link to CUDA toolkit].  +** That toolkit (CUDA Toolkit 10.1 update1 (May 2019)) also updated the system driver to 418.67  +** Reboot  +===Install cuDNN===  +* Have to have an account with NVIDIA - downloaded [https://developer.nvidia.com/rdp/cudnn-download#a-collapse761-101 cuDNN v7.6.1 (June 24, 2019), for CUDA 10.1]  +  +===Option 1: installing tensorflow from source===  +Basically, [https://www.tensorflow.org/install/source '''this guide'''], some key notes:  +* [https://www.tensorflow.org/install/source#install_bazel Install bazel] - version 0.25.2 (newer will not work)  +* To build, read [https://www.tensorflow.org/install/source#download_the_tensorflow_source_code this link]:  + git clone https://github.com/tensorflow/tensorflow.git  + cd tensorflow  + git checkout r1.14  + ./configure  +   + bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package  + # 4-5 hours later  + ./bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg  + sudo pip3 install /tmp/tensorflow_pkg/tensorflow-[Tab]  +  +* Testing:  + ~$ python3  + >>> import tensorflow as tf  + >>> hello = tf.constant('Hello, World!')                                                                                                                                                                             + >>> sess = tf.Session()  +  +===Option 2: using docker===  +Follow [https://www.tensorflow.org/install/docker '''this guide''']. Key notes:  +* Tensorflow docker image requires nvidia docker image, nvidia docker image requires ''apt install nvidia-docker2'', ''nvidia-docker2'' requires ''apt install docker-ce'':  + - https://github.com/NVIDIA/nvidia-docker  + - https://docs.docker.com/install/linux/docker-ce/ubuntu/  +  +* Test run:  + # Test 1: GPU support inside container:  + sudo docker run --runtime=nvidia --rm nvidia/cuda:10.1-base nvidia-smi  + # Test 2: Test all together  + sudo docker pull tensorflow/tensorflow:latest-gpu-py3-jupyter  + sudo docker run --runtime=nvidia -it --rm tensorflow/tensorflow:latest-gpu-py3-jupyter python -c "import tensorflow as tf; tf.enable_eager_execution(); print(tf.reduce_sum(tf.random_normal([1000, 1000])))"  + # Test 3: Run a local script (and include a local dir) in contatiner:  + https://www.tensorflow.org/install/docker Oleg

Tensorflow with gpu

Tue, 07/02/2019 - 17:13

‎Option 2: using docker

← Older revision Revision as of 23:13, 2 July 2019 (9 intermediate revisions by the same user not shown)Line 130: Line 130:    # Solution:   # Solution:    <b>~$ sudo pip3 install setuptools --upgrade</b></font>   <b>~$ sudo pip3 install setuptools --upgrade</b></font>  +  +==Walkthrough for CUDA 10.1 (20190602)==  +  +===Install CUDA===  +* In this [https://www.tensorflow.org/install/gpu guide] there's a [https://developer.nvidia.com/cuda-toolkit-archive link to CUDA toolkit].  +** That toolkit (CUDA Toolkit 10.1 update1 (May 2019)) also updated the system driver to 418.67  +** Reboot  +===Install cuDNN===  +* Have to have an account with NVIDIA - downloaded [https://developer.nvidia.com/rdp/cudnn-download#a-collapse761-101 cuDNN v7.6.1 (June 24, 2019), for CUDA 10.1]  +  +===Option 1: installing tensorflow from source===  +Basically, [https://www.tensorflow.org/install/source '''this guide'''], some key notes:  +* [https://www.tensorflow.org/install/source#install_bazel Install bazel] - version 0.25.2 (newer will not work)  +* To build, read [https://www.tensorflow.org/install/source#download_the_tensorflow_source_code this link]:  + git clone https://github.com/tensorflow/tensorflow.git  + cd tensorflow  + git checkout r1.14  + ./configure  +  + bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package  + # 4-5 hours later  + ./bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg  + sudo pip3 install /tmp/tensorflow_pkg/tensorflow-[Tab]  +  +===Option 2: using docker===  +Follow [https://www.tensorflow.org/install/docker '''this guide''']. Key notes:  +* Tensorflow docker image requires nvidia docker image, nvidia docker image requires ''apt install nvidia-docker2'', ''nvidia-docker2'' requires ''apt install docker-ce'':  + - https://github.com/NVIDIA/nvidia-docker  + - https://docs.docker.com/install/linux/docker-ce/ubuntu/  +  +* Test run:  + # Test 1: GPU support inside container:  + sudo docker run --runtime=nvidia --rm nvidia/cuda:10.1-base nvidia-smi  + # Test 2: Test all together  + sudo docker pull tensorflow/tensorflow:latest-gpu-py3-jupyter  + sudo docker run --runtime=nvidia -it --rm tensorflow/tensorflow:latest-gpu-py3-jupyter python -c "import tensorflow as tf; tf.enable_eager_execution(); print(tf.reduce_sum(tf.random_normal([1000, 1000])))"  + # Test 3: Run a local script (and include a local dir) in contatiner:  + https://www.tensorflow.org/install/docker Oleg

Tensorflow with gpu

Tue, 07/02/2019 - 16:04

← Older revision Revision as of 22:04, 2 July 2019 (2 intermediate revisions by the same user not shown)Line 130: Line 130:    # Solution:   # Solution:    <b>~$ sudo pip3 install setuptools --upgrade</b></font>   <b>~$ sudo pip3 install setuptools --upgrade</b></font>  +  +==Walkthrough for CUDA 10.1==  +  +===CUDA===  +* In this [https://www.tensorflow.org/install/gpu guide] there's a [https://developer.nvidia.com/cuda-toolkit-archive link to CUDA toolkit].  +** That toolkit (CUDA Toolkit 10.1 update1 (May 2019)) also updated the system driver to 418.67  +** Reboot  +===cuDNN===  +* Have to have an account with NVIDIA - downloaded [https://developer.nvidia.com/rdp/cudnn-download#a-collapse761-101 cuDNN v7.6.1 (June 24, 2019), for CUDA 10.1] Oleg

103992

Tue, 06/11/2019 - 13:01

‎103992

← Older revision Revision as of 19:01, 11 June 2019 Line 8: Line 8:     Mechanical CAD files and 3D model: [[Elphel_camera_parts_0393-00#0393-00-992_-_103992_rev_0_Adapter_for_FLIR_Lepton-3_160x120_LWIR_sensor_module | 0393-00-992]] Mechanical CAD files and 3D model: [[Elphel_camera_parts_0393-00#0393-00-992_-_103992_rev_0_Adapter_for_FLIR_Lepton-3_160x120_LWIR_sensor_module | 0393-00-992]]  +  +{|  +|valign='top'|[[Image:103992_top.jpeg|thumb|200px|top view, sensor module installed]]  +|valign='top'|[[Image:103992_top_2.jpeg|thumb|200px|top view, socket only]]  +|valign='top'|[[Image:103992_bottom.jpeg|thumb|200px|bottom view]]  +|} Oleg

File:103992 bottom.jpeg

Tue, 06/11/2019 - 12:56

Oleg uploaded File:103992 bottom.jpeg

New page

== Licensing ==
{{CC }} Oleg

File:103992 top 2.jpeg

Tue, 06/11/2019 - 12:56

Oleg uploaded File:103992 top 2.jpeg

New page

== Licensing ==
{{CC }} Oleg

Pages