정보  :https://makersweb.net/

전자공작 Misra : https://cafe.naver.com/circuitsmanual

Opencv Face Matching


Gray :http://kevinlq.com/2017/11/14/QImage-learn/


REAME 파일 : https://github.com/Samsung/cynara




cynara 는 빠르고 간단하며 안전한 정책검사기 서비스이다. 





'Yocto > AGL' 카테고리의 다른 글

[AGL] Application FrameWork  (0) 2018.10.10
[AGL] 링크 통합  (0) 2018.10.10
[AGL] security-manager  (0) 2018.10.10
[AGL] app-framework-binder  (0) 2018.10.10
[rpi] AGL Build  (0) 2018.10.08


자료 정리 및 파악중



afb-daemon


http://paume-no-ki.hatenablog.com/entry/2017/10/07/121334


 git clone https://gerrit.automotivelinux.org/gerrit/src/app-framework-main 


cmake .. -DCMAKE_INSTALL_PREFIX=/opt/afm-daemon


--   No package 'openssl' found

--   No package 'xmlsec1' found

--   No package 'xmlsec1-openssl' found



http://paume-no-ki.hatenablog.com/entry/2017/10/07/121334


-- Checking for module 'libzip>=0.11'

--   No package 'libzip' found

-- Checking for module 'libsystemd>=222'

--   No package 'libsystemd' found

-- Checking for modules 'afb-daemon>=4.99;libafbwsc>=4.99'

--   No package 'afb-daemon' found

--   No package 'libafbwsc' found

-- Checking for module 'security-manager'

--   No package 'security-manager' found

CMake Error at /usr/share/cmake-3.10/Modules/FindPkgConfig.cmake:415 (message):

  A required package was not found

Call Stack (most recent call first):

  /usr/share/cmake-3.10/Modules/FindPkgConfig.cmake:593 (_pkg_check_modules_internal)

  src/CMakeLists.txt:84 (pkg_check_modules)



-- Configuring incomplete, errors occurred!





-- Checking for module 'libzip>=0.11'

--   No package 'libzip' found

-- Checking for module 'libsystemd>=222'

--   No package 'libsystemd' found

-- Checking for modules 'afb-daemon>=4.99;libafbwsc>=4.99'

--   No package 'afb-daemon' found

--   No package 'libafbwsc' found

-- Checking for module 'security-manager'

--   No package 'security-manager' found





링크 참조

https://qiita.com/propella/items/0258163c18a506f12a55

https://github.com/iotbzh/agl-homescreen



'Linux > Yocto' 카테고리의 다른 글

[Yocto] Protobuf Build Error  (0) 2018.04.11
[Linux] fsck  (0) 2017.11.30
[Yocto] syslog제거  (0) 2017.11.11
[Yocto] 추가 관련건  (0) 2016.12.22



CvCapture *cap = cvCaptureFromCAM(0);



1. cvCaptureFromCAM()


2. cvCapture


VideoCapture



VIDEOIO ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV

Unable to stop the stream: Device or resource busy

OpenCV Error: Unspecified error (GStreamer: unable to start pipeline


빌드시 옵션

g++ -ggdb video.cpp -o video `pkg-config --cflags --libs opencv`





참고 사이트

동영상녹화 : http://blog.naver.com/PostView.nhn?blogId=sangtakeg&logNo=120092132260


'OpenCV' 카테고리의 다른 글

GStreamer사용법  (0) 2016.05.15
OpenCV 설치  (0) 2015.04.21
  • Download
  $ repo init -b eel -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo
  $ repo sync


  • Building the AGL Demo Platform for QEMU

  $ source meta-agl/scripts/aglsetup.sh -m qemux86-64 agl-demo agl-netboot agl-appfw-smack   
  
  $ bitbake agl-demo-platform


'Yocto' 카테고리의 다른 글

[AGL] rpi3  (2) 2018.07.20
[BBB] Image 올리기  (0) 2018.06.07
[BBB] Yocto Build 환경셋팅  (0) 2018.06.04
우분투 x32 비트 사용  (0) 2018.05.29
An upgrade strategy for embedded Linux systems  (0) 2017.07.16

Setting 

  • 우측상단의 setting 클릭


  사용자 정보를 입력후 확인버튼을 누르면 해당 email 주소로 확인 메일이 전송된다.


  • User 생성
홈페이지 상단에 스페너 모양 클릭 admin 항목

root 권한 user 생성







공식사이트 : https://www.tensorflow.org/?hl=ko


  • tf.placeholderrnn

  1. dtype: The type of elements in the tensor to be fed.
  2. shape: The shape of the tensor to be fed (optional). If the shape is not specified, you can feed a tensor of any shape.
  3. name:  A name for the operation (optional).

  • tf.contrib.rnn.BasicLSTMCell
    일부 사용하는 arg 를 기입해놈
  1. num_units : int 형의 유닛 갯수
  2. state_is_tuple : true 일시 두개의 state 를 돌려주고 false 일시 하나의 state로 돌려준다.
  •  tf.nn.dynamic_rnn
 arg

cell,

inputs,

sequence_length=None,

initial_state=None,

dtype=None,

parallel_iterations=None,

swap_memory=False,

time_manjor=False,

scope=None 

  1. cell : 

returns:

 (outputs,state)

  1. outputs : The RNN output Tensor
 time_major == False (default) 일 경우 Tensor shaped : [batch_size, max_time, cell.output_size]
 time_major == True 일경우 [max_time, batch_size, cell.output_size]

shape 모양이 바뀐다. 


'딥러닝' 카테고리의 다른 글

[딥러닝] 1.Tensorflow 개발환경설정  (0) 2018.05.23

https://www.joinc.co.kr/w/Site/Development/Forum/manager/gitserver




 sudo adduser git-admin


 sudo adduser git-repo


sudo su - git-repo

'Linux' 카테고리의 다른 글

정적라이브러리, 동적라이브러리  (0) 2018.07.19
[Linux] 오픈소스 웹 스트리밍 감시카메라  (0) 2018.07.13
[Linux]Samba 설정  (0) 2017.10.06
[libudev] 함수정리  (0) 2017.04.18
Gstreamer 파이프라인 디버깅  (0) 2017.04.14


라즈베리파이 커널 다운로드


Yocto recipes 파일의 커널 파일을 찾아보자


/home/kj/RPI3/AGL_RPI3/meta-raspberrypi/recipes-kernel/linux


해당 파일들은 다음과 같다.

linux-raspberrypi  linux-raspberrypi_4.9.bb  linux-raspberrypi-dev  linux-raspberrypi-dev.bb  linux-raspberrypi.inc  linux-rpi.inc



linux-raspberrypi_4.9.bb 파일의 내용

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"


LINUX_VERSION ?= "4.9.50"


SRCREV = "46e2d4d1bd2c17e2f84dd90768321ee0bbaa6b8a"

SRC_URI = "git://github.com/raspberrypi/linux.git;branch=rpi-4.9.y"


require linux-raspberrypi.inc


# A LOADADDR is needed when building a uImage format kernel. This value is not

# set by default in rpi-4.8.y and later branches so we need to provide it

# manually. This value unused if KERNEL_IMAGETYPE is not uImage.

KERNEL_EXTRA_ARGS += "LOADADDR=0x00008000"



리눅스 버전 4.9.50

ERNEL_EXTRA_ARGS += "LOADADDR=0x00008000"


defconfig 파일을 참조하며 

라즈베리파이3의 경우 KERNEL_DEFCONFIG_raspberrypi3-64 ?= "bcmrpi3_defconfig" 파일을 참조한다.



require linux-rpi.inc
inherit linux-raspberrypi-base
파일을 참조한다.

커널 옵션 defconfig  활성화를 아래와같이 변경하는 것으로 추정된다.
kernel_configure_variable INET y



Yocto 소스코드 다운로드 


환경 Ubuntu 18.04


$ repo init -b eel -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo

$ repo sync


export AGL_TOP=$HOME/workspace_agl

mkdir -p $AGL_TOP


source meta-agl/scripts/aglsetup.sh -m raspberrypi3 agl-demo agl-netboot agl-appfw-smack

bitbake agl-demo-platform


$ source AGL_RPI3/meta-agl/scripts/aglsetup.sh -m raspberrypi3 agl-demo agl-netboot agl-appfw-smack

------------ aglsetup.sh: Starting

Generating configuration files:

   Build dir: /home/kj/RPI3/build

   Machine: raspberrypi3

   Features: agl-appfw-smack agl-demo agl-devel agl-hmi-framework agl-netboot 

   Running /home/kj/RPI3/AGL_RPI3/poky/oe-init-build-env

   Templates dir: /home/kj/RPI3/AGL_RPI3/meta-agl/templates/base

   Config: /home/kj/RPI3/build/conf/bblayers.conf

   Config: /home/kj/RPI3/build/conf/local.conf

   Setup script: /home/kj/RPI3/build/conf/setup.sh

   Executing setup script ... --- beginning of setup script

--- fragment /home/kj/RPI3/AGL_RPI3/meta-agl/templates/base/01_setup_EULAfunc.sh

--- fragment /home/kj/RPI3/AGL_RPI3/meta-agl/templates/base/99_setup_EULAconf.sh

--- end of setup script

OK

Generating setup file: /home/kj/RPI3/build/agl-init-build-env ... OK

------------ aglsetup.sh: Done


### Shell environment set up for builds. ###


You can now run 'bitbake <target>'


Common targets are:

  - meta-agl:          (core system)

    agl-image-minimal

    agl-image-minimal-qa

    

    agl-image-ivi

    agl-image-ivi-qa

    agl-image-ivi-crosssdk

    

    agl-image-weston


  - meta-agl-demo:     (demo with UI)

    agl-demo-platform  (* default demo target)

    agl-demo-platform-qa

    agl-demo-platform-crosssdk

    

    agl-demo-platform-html5







Booting AGL Demo Platform on Raspberry Pi


Output Image location in build machine for Raspberry Pi 3: tmp/deploy/images/raspberrypi3/agl-demo-platform-raspberrypi3.wic.xz


sudo umount [sdcard device]

xzcat [output image] | sudo dd of=[sdcard device] bs=4M

sync


disable Homescreen services:

           # systemctl disable HomeScreenAppFrameworkBinderAGL.service
           # systemctl disable HomeScreen.service
           # systemctl disable InputEventManager.service
           # systemctl disable WindowManager.service



Commercial Licensed Packages

# For libomxil

LICENSE_FLAGS_WHITELIST = "commercial"


IMAGE_INSTALL_append = " libomxil"



Touchscreen with Rotation


root@raspberrypi3:/etc/xdg/weston# cat weston.ini
[core]
backend=drm-backend.so
shell=desktop-shell.so

[shell]
locking=true
# Uncomment below to hide panel
#panel-location=none

[launcher]
icon=/usr/share/weston/terminal.png
path=/usr/bin/weston-terminal

[launcher]
icon=/usr/share/weston/icon_flower.png
path=/usr/bin/weston-flower

[output]
name=DSI-1
transform=270


Yocto Build Error


1. e2fsprogs_1.43.4.bb

 - 

|  static errcode_t copy_file_range(ext2_filsys fs, int fd, ext2_file_t e2_file,

|                   ^

| In file included from ../../git/debugfs/../misc/create_inode.c:19:0:

| /usr/include/unistd.h:1110:9: note: previous declaration of ‘copy_file_range’ was here

|  ssize_t copy_file_range (int __infd, __off64_t *__pinoff,

|          ^



/home/kj/RPI3/build/tmp/work/x86_64-linux/e2fsprogs-native/1.43.4-r0/git/misc

copy_file_range 주석처리함


처리되지 않아 웹검색을 통해 http://recipes.yoctoproject.org/rrs/recipedetail/181/

open-embedded 소스를 비교해 보기로 하였다.



$ git clone git://git.openembedded.org/openembedded-core


해당 레시피 복사 후 해결


2. qemu error

| /usr/include/x86_64-linux-gnu/bits/mman-shared.h:46:5: note: previous declaration of ‘memfd_create’ was here

 - memfd_create 펑션 주석처리하여 해결


참고

AGL 설치사이트 : https://wiki.automotivelinux.org/agl-distro/agl-raspberrypi


'Yocto' 카테고리의 다른 글

[AGL] 셋업qemu  (0) 2018.08.03
[BBB] Image 올리기  (0) 2018.06.07
[BBB] Yocto Build 환경셋팅  (0) 2018.06.04
우분투 x32 비트 사용  (0) 2018.05.29
An upgrade strategy for embedded Linux systems  (0) 2017.07.16

+ Recent posts