'분류 전체보기'에 해당되는 글 53건

  1. 2022.01.21 [VS][TIP] Multi-line TAB 삭제
  2. 2022.01.21 1Gbit = 128MByte
  3. 2020.06.30 [HW] Regulator
  4. 2020.04.02 [Hypervisor] Device Passthrough
  5. 2020.03.23 [Python] 추천 IDE
  6. 2019.12.03 [PS] man ps
  7. 2019.12.03 [VI] key list
  8. 2019.11.11 [ARMCC] No such file or directory
  9. 2019.10.17 [AutoTool] Troubleshooting
  10. 2019.10.17 [AutoTool] #2 Tutorial

--> (Shift + Alt) + 마우스로 Mult-line 선택 후 삭제

org  :

Subsequently, one may also ask, how do you indent in Vscode?

When writing code, to indent an entire block of code one level without changing each line individually, simply select the block and press "Tab". To unindent a block one level , select it and press " Shift+Tab ".

One may also ask, how do you Unindent multiple lines? With that installed, you can simply Shift + Tab as many times as needed.

  1. When multiple lines are selected, Tab and Shift - Tab indent and dedent these lines.
  2. When nothing is selected, Tab and Shift - Tab insert or remove whitespace to align the cursor on a tab boundary.

Hereof, how do you indent multiple lines in Python?

Highlight/ select the lines you want indented, then press TAB as often as needed until they reach the proper indent level. You can remove spaces with SHIFT TAB . You can also use CTRL+ALT+I to auto-indent the selection. Select the block that you want to indent then press TAB .

How do you select multiple lines or codes?

Select a bunch of lines, then Shift + Alt/Option + I will put a cursor at the end of every selected line.

Posted by kissuu
,

1G bit = 1024M Bit

-> 2^10 M bit 

-> 2^10 M bit / 8 = (2^10 / 2^3) M Byte

-> 2^7 M Byte

-> 128 M Byte

Posted by kissuu
,

1. What is Regulator?

 - 사저적 의미 : 조정기

 

2. Usage

 - 회로적 용도 : 회로에 일정한 전압(Voltage)을 제공하기 위해 사용

 

3. Regulator 종류

  Linear Regulator Switchding Regulator PMIC
Description - Transister(BJT or FET)를 사용하여, 과도한 전압을 제거해줌으로써 원하는 출력 전압을 생성 - PWM(Pulse Width Modulation)을 활용하여 Pulse폭을 변조시켜 스위치를 control하여 원하는 출력 전압을 생성
- 강압/승압 모두 가능
- Power Management Intergraed Circuit
- 전원 관리 집적 회로
Chip LDO - SMPS, DCDC Converter, Buck Converter, Boost Converter PMIC chip
Pros. Simple
Low Output Ripple Voltage
Line Regulation
Load Regulation
Low EMI
Low Cost
High Effiency
High Power
Various Output
Multiple Output
Power Management
Small Space
Cons. Low Efficiency
Heat Issue
High Cost
Low Transient Response
EMI Issue
Complexity
High Cost
Heavy Feature
Effort to control

 

 

 

Posted by kissuu
,

Ref. https://projectacrn.github.io/1.1/developer-guides/hld/hv-dev-passthrough.html

 

Device Passthrough — Project ACRN™ v 1.1 documentation

Device Passthrough A critical part of virtualization is virtualizing devices: exposing all aspects of a device including its I/O, interrupts, DMA, and configuration. There are three typical device virtualization methods: emulation, para-virtualization, and

projectacrn.github.io

A critical part of virtualization is virtualizing devices: exposing all aspects of a device including its I/O, interrupts, DMA, and configuration. There are three typical device virtualization methods: emulation, para-virtualization, and passthrough. Both emulation and passthrough are used in ACRN project. Device emulation is discussed in I/O Emulation high-level design and device passthrough will be discussed here.

(Kor) Virtualization의 Critical한 부분은 "virtualizing devices"이다

  -> I/O, Interrupts, DMA 그리고 configuration을포함한 Device의 모든부분을 노출하는것. 
  -> 3 가지 virtualization 방법이 있음 : emulation, para-virtualization, passthrough

 

The difference between device emulation and passthrough is shown in Figure 101. You can notice device emulation has a longer access path which causes worse performance compared with passthrough. Passthrough can deliver near-native performance, but can’t support device sharing.

(Kor) Device emulation과 Passthrough의 차이점은 아래 그림과 같다. Device emulation이 더 긴 access path 가지고 이는 passthrough 방식과 비교해 나쁜 performance를 야기시킨다. Passthrough은 native와 근접한 performance를 갖는다. 하지만, device sharing은 지원하지 않는다.

Figure 101 Difference between Emulation and passthrough

Posted by kissuu
,

1. pycharm

  - 무거움

  - 자동완성 뛰어남

  - 무료 (community version)

2. eclipse - pydev

  - 적당함

  - 자동완성 적당함

  - 무료

3. atom

4. 쥬피터 노트북 (온란인 base)

  - Online에서 가능

5. visual studio

  - 무거움

'Language > Python' 카테고리의 다른 글

[Python] 악몽같던 error : tk_agg tkinter  (0) 2017.12.28
Posted by kissuu
,

[PS] man ps

Linux/Debugging 2019. 12. 3. 21:55

제일 잘 쓰는것.~

ps aux -T

 

 

EXAMPLES                                                                                               

       To see every process on the system using standard syntax:                                        
          ps -e                                                                                         
          ps -ef                                                                                        
          ps -eF                                                                                        
          ps -ely                                                                                       
                                                                                                        
       To see every process on the system using BSD syntax:                                             
          ps ax                                                                                         
          ps axu                                                                                        
                                                                                                        
       To print a process tree:                                                                         
          ps -ejH                                                                                       
          ps axjf                                                                                       
                                                                                                        
       To get info about threads:                                                                       
          ps -eLf                                                                                       
          ps axms                                                                                       
                                                                                                        
       To get security info:                                                                            
          ps -eo euser,ruser,suser,fuser,f,comm,label                                                   
          ps axZ                                                                                        
          ps -eM                                                                                        
                                                                                                        
       To see every process running as root (real & effective ID) in user format:                       
          ps -U root -u root u                                                                          
                                                                                                        
       To see every process with a user-defined format:                                                 
          ps -eo pid,tid,class,rtprio,ni,pri,psr,pcpu,stat,wchan:14,comm                                
          ps axo stat,euid,ruid,tty,tpgid,sess,pgrp,ppid,pid,pcpu,comm                                  
          ps -Ao pid,tt,user,fname,tmout,f,wchan                                                        
                                                                                                        
       Print only the process IDs of syslogd:                                                           
          ps -C syslogd -o pid=                                                                         
                                                                                                        
       Print only the name of PID 42:                                                                   
          ps -q 42 -o comm=   

 

 

 State    

PROCESS STATE CODES                                                                                                      
       Here are the different values that the s, stat and state output specifiers (header "STAT" or "S") will display to 
       describe the state of a process:                                                                                  
                                                                                                                         
               D    uninterruptible sleep (usually IO)                                                                   
               R    running or runnable (on run queue)                                                                   
               S    interruptible sleep (waiting for an event to complete)                                               
               T    stopped by job control signal                                                                        
               t    stopped by debugger during the tracing                                                               
               W    paging (not valid since the 2.6.xx kernel)                                                           
               X    dead (should never be seen)                                                                          
               Z    defunct ("zombie") process, terminated but not reaped by its parent                                  
                                                                                                                         
       For BSD formats and when the stat keyword is used, additional characters may be displayed:                        
                                                                                                                         
               <    high-priority (not nice to other users)                                                              
               N    low-priority (nice to other users)                                                                   
               L    has pages locked into memory (for real-time and custom IO)                                           
               s    is a session leader                                                                                  
               l    is multi-threaded (using CLONE_THREAD, like NPTL pthreads do)                                        
               +    is in the foreground process group                                                                   

                                                                 

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

[Trace] gpio  (0) 2019.07.18
Posted by kissuu
,

[VI] key list

잘좀하자 개발 2019. 12. 3. 19:34

필요한데 자꾸 까먹는거

   
ctrl + G 현재 file명 보여주기
n/N (shift + n) 검색 후 next, previous
G (shift + g) 문서의 제일 아래로
# (shift + 3) 동일한 function에 대해 highlight 
K (shift + k) 해당 cursor의 function에 대해 man page 로 연결
   

 

 

 

Basic Key

삽입

키기능

i 커서 위치에 Insert
I 줄 맨 앞에서 Insert
a 커서 다음에 Insert
A 줄 맨 뒤에서 Insert
o 커서 아래로 한 줄 띄우고 Insert
O 커서 위로 한 줄 띄우고 Insert

이동

키기능

w 단어 첫 글자 기준으로 다음으로 이동
W 공백 기준으로 다음(단어의 시작)으로 이동
b 단어 첫 글자 기준으로 이전으로 이동
B 공백 기준으로 이전으로 이동
e 단어 마지막 글자 기준으로 다음으로 이동
E 공백 기준으로 다음(단어의 끝)으로 이동
gg 문서 맨 앞으로 이동
G 문서 맨 아래로 이동
^ 문장 맨 앞으로 이동
$ 문장 맨 뒤로 이동

'잘좀하자 개발' 카테고리의 다른 글

[ECLIPSE] 주석  (0) 2016.06.30
[TERM] Front-end & Back-end  (0) 2016.02.22
[Google]Cloud Test Lab  (0) 2016.02.01
[VI]Settings  (0) 2015.09.01
[PHP] OOP로 다가가자 - eclipse PDT include path 하기  (0) 2015.08.18
Posted by kissuu
,

[ARMCC] No such file or directory

2019. 11. 11. 20:31

보호되어 있는 글입니다.
내용을 보시려면 비밀번호를 입력하세요.

1AM_INTIT_AUTOMAKE' not found in

1.1.Error

configure.ac:12: warning: macro 'AM_INTIT_AUTOMAKE' not found in library

configure.ac:12: error: possibly undefined macro: AM_INTIT_AUTOMAKE

      If this token and others are legitimate, please use m4_pattern_allow.

      See the Autoconf documentation.

1.2.Solution

1.2.1.자기실수

Configure.ac 철차 또는 문법 오류

 

1.2.2.depcomp 삭제 copy

[woring] $ rm ./depcomp

[woring] $ cp -a /usr/share/automake-X.XX/depcomp .

'잘좀하자 개발 > Yocto' 카테고리의 다른 글

[AutoTool] #2 Tutorial  (0) 2019.10.17
[AutoTool] #1 Install  (0) 2019.10.17
[Bitbake] CMD  (0) 2019.10.17
[BitBake] Tutorial  (0) 2019.03.12
Posted by kissuu
,

Ref. https://linuxspot.tistory.com/45

make 는 실제로 소스를 컴파일하는 명령어입니다. make install은 make 명령어를 통해 빌드된 바이너리와 라이브러리를 prefix(configure 스크립트의 옵션 중 하나)로 지정된 폴더에 설치하는 명령어입니다. 

 

현재 개발중인 소스에 Autotools를 적용하려면 다음의 두 파일을 작성해야 됩니다. 

 

'Makefile.am'                 An input to automake  

'configure.ac'                 An input to autoconf

Makefile.am은 automake 명령어의 입력으로 사용되는데, automake는 Makefile.am을 기반으로 Makefile.in 파일을 생성합니다. Makefile.in은 Makefile을 생성하기위한 템플릿이라고 보면 될 것 같습니다. 

 

configure.ac는 autoconf 명령어의 입력으로 사용되는 파일입니다. 내부적으로 복잡한 과정을 거치지만 결과적으로 configure 스크립트를 생성하게 됩니다. configure.ac의 경우 autoscan 이라는 명령어를 통해 configure.scan 이라는 기본 파일을 생성할 수 있습니다. 일반적으로 configure.scan 파일을 configure.ac로 복사한 후 필요한 옵션들을 추가하는 방법을 사용합니다.

 

 

1.code 작성

2.autotool

  • $autoscan
  • configure.scan에서 아래내용을 수정후 파일명을 configure.ac로 변경
  • Makefile.am 생성
  • $autoreconf --install
  • $./configure
  • make

 

Example) Hello1

Tutorial

Learning the GNU developement tools에 나와있는 예제를 바탕으로 간단한 tutorial을 소개하겠습니다. (http://autotoolset.sourceforge.net/tutorial.html#SEC50)

작업 디레토리를 hello로 생성 한 뒤, 아래의 파일들을 생성합니다. 

 

hello/Makefile.am

SUBDIRS = src

 

hello/src/hello.c 

#include <stdio.h>

 

int main(void)

{

printf("Hello autotools\n");

return 0;

}

 

hello/src/Makefile.am

bin_PROGRAMS = hello

hello_SOURCES = hello.c

 

hello 폴더에 있는 Makefile.am은 SUBDIRS 변수를 이용해 source가 있는 하위 디렉토리(src)를 설정합니다. 여러 폴더에 소스가 있는 경우 상위 폴더에서 위와 같이 작성하면 빌드시 재귀적으로 Makefile이 수행 됩니다. 

 

src 폴더의 Makefile.am는 실제 컴파일 될 소스와 target을 작성합니다. 위의 경우 실행파일 hello를 생성할 것이며 hello 바이너리를 생성하기 위한 source로 hello.c 파일을 컴파일 한다는 의미입니다. 

 

이제 configure.ac 파일을 만들기 위해서 autoscan 명령어를 입력합니다. 

 

hello $] autoscan 

 

autoscan 입력 후 configure.scan 파일이 생성된 것을 확인할 수 있습니다. 

 

hello $] ls 

autoscan.log  configure.scan  Makefile.am  src

 

configure.scan 파일을 configure.ac로 복사한 후, 편집기로 configure.ac 파일에 다음을 추가합니다.

 

 

[configure.scan]

 

[configure.ac]

#                                               -*- Autoconf -*-

# Process this file with autoconf to produce a configure script.

 

AC_PREREQ(2.61)

AC_INIT(hello, 1.0, bug@repot-address.com)

AM_INIT_AUTOMAKE(hello, 1.0)

AC_CONFIG_SRCDIR([src/hello.c])

AC_CONFIG_HEADER([config.h])

 

# Checks for programs.

AC_PROG_CC

 

# Checks for libraries.

 

# Checks for header files.

 

# Checks for typedefs, structures, and compiler characteristics.

 

# Checks for library functions.

 

AC_CONFIG_FILES([Makefile

                  src/Makefile])

AC_OUTPUT

 

'잘좀하자 개발 > Yocto' 카테고리의 다른 글

[AutoTool] Troubleshooting  (0) 2019.10.17
[AutoTool] #1 Install  (0) 2019.10.17
[Bitbake] CMD  (0) 2019.10.17
[BitBake] Tutorial  (0) 2019.03.12
Posted by kissuu
,