본문 바로가기
반응형

전체 글247

E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/t apt-get 수행시 문제 해결 제목과 같이 에러가 발생할 때 아래와 같이 수행을 하면 에러가 해결됨. # sudo apt-get install --reinstall libappstream4 2022. 11. 29.
E: Unable to lock the administration directory (/var/lib/dpkg/) 에러 해결 apt-get 같은 기능을 사용시 제목과 같이 에러가 발생하면서 정상 설치 또는 업데이트가 되지 않을 때 아래와 같이 관련 파일 삭제 도는 초기화를 수행하면 해결됨. sudo rm /var/lib/apt/lists/lock sudo rm /var/cache/apt/archives/lock sudo rm /var/lib/dpkg/lock dpkg --configure -a 2022. 11. 29.
[Xilinx] DMA 사용을 위한 dma_requeat_chan 사용 법 하드웨어 구성에서 기 생성된 DMA 채널을 다른 하드웨어 블럭에서 컨트롤 하고 싶을 때 dma_request_chan 함수를 사용한다. 이 함수의 2번째 인자로 name 이 들어가야 되는데 이 값은 device-tree 에서 dma-name 값을 참조하여 설정된 환경을 읽어와서 dma_chan Context 를 생성해서 리턴하는 역활을 해준다. 우선 아래와 같은 dma 가 일반적으로 생성이 되어 있고. axi_dma_0: dma@40400000 { #dma-cells = ; clock-names = "s_axi_lite_aclk", "m_axi_s2mm_aclk"; clocks = , ; compatible = "xlnx,axi-dma-7.1", "xlnx,axi-dma-1.00.a"; interrupt.. 2022. 10. 26.
module_param 매크로 용도 linux 에서 드라이버를 개발할 때 드라이버가 로딩 시점에 특정 변수를 전달 인자로 사용할 수 있도록 하는 기능이 필요하여 개발 되었다. 물론 다른 용도로 외부에서 사용할 수 있을 것이다. 1. 드라이버 예제 #include #include #include MODULE_LICENSE("Dual BSD/GPL"); static char *who = "world"; static int times = 1; module_param(times,int,S_IRUSR); module_param(who,charp,S_IRUSR); static int hello_init() { int i; for(i = 0;i < times;i++) printk(KERN_ALERT"(%d)hello,%s! /n",i,who); ret.. 2022. 10. 20.
[SytemTrading] ZigZag 패턴 알고리즘 시계열 데이터에서 파동 또는 패턴을 분석하기 위한 알고리즘중에 아래와 같은 코드가 있어서 분석해 보았다. 이런 자료들은 메타트레이더 관련 사이트에서 얻을 수 있는 것 같으니 참고 바란다. https://www.mql5.com/en/articles/4502 Developing the oscillator-based ZigZag indicator. Example of executing a requirements specification The article demonstrates the development of the ZigZag indicator in accordance with one of the sample specifications described in the article "How to prepa.. 2022. 10. 6.
반응형