헐? 2013년에 이미 완성된게 있으려나? 해봐야겠네 ㄷㄷㄷ


[링크 : http://www.cnx-software.com/2013/07/05/12mb-minimal-image-for-raspberry-pi-using-the-yocto-project/]

'프로그램 사용 > yocto project' 카테고리의 다른 글

imx8 yocto  (0) 2023.08.28
imx8 yocto build on ubuntu 22.04  (0) 2023.02.10
라즈베리 파이 with yocto project  (2) 2015.07.30
yocto project 구조  (0) 2015.07.29
rpi in yocto project  (0) 2015.04.29
Posted by 구차니
embeded/raspberry pi2015. 6. 8. 20:31

패키지로 다운로드 될줄 알았는데 안되네..


일단 사용한 녀석은


라즈베리 2

2015-05-05-raspbian-wheezy.img


wiringpi

pi@raspberrypi ~ $ sudo apt-get install git-core

pi@raspberrypi ~ $ mkdir src

pi@raspberrypi ~ $ cd src

pi@raspberrypi ~/src $ git clone git://git.drogon.net/wiringPi

Cloning into 'wiringPi'...

remote: Counting objects: 742, done.

remote: Compressing objects: 100% (676/676), done.

remote: Total 742 (delta 536), reused 96 (delta 58)

Receiving objects: 100% (742/742), 264.80 KiB | 128 KiB/s, done.

Resolving deltas: 100% (536/536), done.

pi@raspberrypi ~/src $ cd wiringPi/

pi@raspberrypi ~/src/wiringPi $ git pull origin

Already up-to-date.

pi@raspberrypi ~/src/wiringPi $ ./build

wiringPi Build script

=====================



WiringPi Library

[UnInstall]

[Compile] wiringPi.c

[Compile] wiringSerial.c

[Compile] wiringShift.c

[Compile] piHiPri.c

[Compile] piThread.c

[Compile] wiringPiSPI.c

[Compile] wiringPiI2C.c

[Compile] softPwm.c

[Compile] softTone.c

[Compile] mcp23008.c

[Compile] mcp23016.c

[Compile] mcp23017.c

[Compile] mcp23s08.c

[Compile] mcp23s17.c

[Compile] sr595.c

[Compile] pcf8574.c

[Compile] pcf8591.c

[Compile] mcp3002.c

[Compile] mcp3004.c

[Compile] mcp4802.c

[Compile] mcp3422.c

[Compile] max31855.c

[Compile] max5322.c

[Compile] sn3218.c

[Compile] drcSerial.c

[Compile] wpiExtensions.c

[Link (Dynamic)]

[Install Headers]

[Install Dynamic Lib]


WiringPi Devices Library

[UnInstall]

[Compile] ds1302.c

[Compile] piNes.c

[Compile] maxdetect.c

[Compile] gertboard.c

[Compile] piFace.c

[Compile] lcd128x64.c

[Compile] lcd.c

[Compile] piGlow.c

[Link (Dynamic)]

[Install Headers]

[Install Dynamic Lib]


GPIO Utility

[Compile] gpio.c

[Compile] readall.c

[Compile] pins.c

[Link]

[Install]


All Done.


NOTE: To compile programs with wiringPi, you need to add:

    -lwiringPi

  to your compile line(s) To use the Gertboard, MaxDetect, etc.

  code (the devLib), you need to also add:

    -lwiringPiDev

  to your compile line(s).


pi@raspberrypi ~/src/wiringPi $ gpio readall

 +-----+-----+---------+------+---+---Pi 2---+---+------+---------+-----+-----+

 | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |

 +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+

 |     |     |    3.3v |      |   |  1 || 2  |   |      | 5v      |     |     |

 |   2 |   8 |   SDA.1 |   IN | 1 |  3 || 4  |   |      | 5V      |     |     |

 |   3 |   9 |   SCL.1 |   IN | 1 |  5 || 6  |   |      | 0v      |     |     |

 |   4 |   7 | GPIO. 7 |   IN | 1 |  7 || 8  | 1 | ALT0 | TxD     | 15  | 14  |

 |     |     |      0v |      |   |  9 || 10 | 1 | ALT0 | RxD     | 16  | 15  |

 |  17 |   0 | GPIO. 0 |   IN | 0 | 11 || 12 | 0 | IN   | GPIO. 1 | 1   | 18  |

 |  27 |   2 | GPIO. 2 |   IN | 0 | 13 || 14 |   |      | 0v      |     |     |

 |  22 |   3 | GPIO. 3 |   IN | 0 | 15 || 16 | 0 | IN   | GPIO. 4 | 4   | 23  |

 |     |     |    3.3v |      |   | 17 || 18 | 0 | IN   | GPIO. 5 | 5   | 24  |

 |  10 |  12 |    MOSI |   IN | 0 | 19 || 20 |   |      | 0v      |     |     |

 |   9 |  13 |    MISO |   IN | 0 | 21 || 22 | 0 | IN   | GPIO. 6 | 6   | 25  |

 |  11 |  14 |    SCLK |   IN | 0 | 23 || 24 | 1 | IN   | CE0     | 10  | 8   |

 |     |     |      0v |      |   | 25 || 26 | 1 | IN   | CE1     | 11  | 7   |

 |   0 |  30 |   SDA.0 |   IN | 1 | 27 || 28 | 1 | IN   | SCL.0   | 31  | 1   |

 |   5 |  21 | GPIO.21 |   IN | 1 | 29 || 30 |   |      | 0v      |     |     |

 |   6 |  22 | GPIO.22 |   IN | 1 | 31 || 32 | 0 | IN   | GPIO.26 | 26  | 12  |

 |  13 |  23 | GPIO.23 |   IN | 0 | 33 || 34 |   |      | 0v      |     |     |

 |  19 |  24 | GPIO.24 |   IN | 0 | 35 || 36 | 0 | IN   | GPIO.27 | 27  | 16  |

 |  26 |  25 | GPIO.25 |   IN | 0 | 37 || 38 | 0 | IN   | GPIO.28 | 28  | 20  |

 |     |     |      0v |      |   | 39 || 40 | 0 | IN   | GPIO.29 | 29  | 21  |

 +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+

 | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |

 +-----+-----+---------+------+---+---Pi 2---+---+------+---------+-----+-----+ 


[링크 : http://wiringpi.com/download-and-install/]



pi4j

pi@raspberrypi ~/src/java $ wget http://get.pi4j.com/download/pi4j-1.0.deb

--2015-06-08 11:35:02--  http://get.pi4j.com/download/pi4j-1.0.deb

Resolving get.pi4j.com (get.pi4j.com)... 54.231.18.148

Connecting to get.pi4j.com (get.pi4j.com)|54.231.18.148|:80... connected.

HTTP request sent, awaiting response... 200 OK

Length: 616120 (602K) [application/octet-stream]

Saving to: `pi4j-1.0.deb'


100%[======================================>] 616,120      255K/s   in 2.4s


2015-06-08 11:35:05 (255 KB/s) - `pi4j-1.0.deb' saved [616120/616120]


pi@raspberrypi ~/src/java $ sudo dpkg -i pi4j-1.0.deb

Selecting previously unselected package pi4j.

(데이터베이스 읽는중 ...현재 77870개의 파일과 디렉터리가 설치되어 있습니다.)

pi4j 패키지를 푸는 중입니다 (pi4j-1.0.deb에서) ...

pi4j (1.0) 설정하는 중입니다 ...


pi@raspberrypi ~/src/java $ sudo apt-get install pi4j

패키지 목록을 읽는 중입니다... 완료

의존성 트리를 만드는 중입니다

상태 정보를 읽는 중입니다... 완료

pi4j 패키지는 이미 최신 버전입니다.

0개 업그레이드, 0개 새로 설치, 0개 제거 및 3개 업그레이드 안 함.



pi@raspberrypi ~/src/java $ ls -al /opt/pi4j/lib

합계 496

drwxr-xr-x 2 root root   4096  6월  8 11:35 .

drwxr-xr-x 5 root root   4096  6월  8 11:35 ..

-rw-r--r-- 1 root root 179187  4월 18 16:02 pi4j-core.jar

-rw-r--r-- 1 root root 217311  4월 18 16:02 pi4j-device.jar

-rw-r--r-- 1 root root  74078  4월 18 16:02 pi4j-gpio-extension.jar

-rw-r--r-- 1 root root  17663  4월 18 16:02 pi4j-service.jar


pi@raspberrypi ~/src/java $ vi TriggerGpio.java


import java.util.concurrent.Callable;


import com.pi4j.io.gpio.GpioController;

import com.pi4j.io.gpio.GpioFactory;

import com.pi4j.io.gpio.GpioPinDigitalInput;

import com.pi4j.io.gpio.GpioPinDigitalOutput;

import com.pi4j.io.gpio.PinPullResistance;

import com.pi4j.io.gpio.PinState;

import com.pi4j.io.gpio.RaspiPin;

import com.pi4j.io.gpio.trigger.GpioCallbackTrigger;

import com.pi4j.io.gpio.trigger.GpioPulseStateTrigger;

import com.pi4j.io.gpio.trigger.GpioSetStateTrigger;

import com.pi4j.io.gpio.trigger.GpioSyncStateTrigger;


public class TriggerGpio {


    public static void main(String[] args) throws InterruptedException {


        System.out.println("START");


        // create gpio controller

        final GpioController gpio = GpioFactory.getInstance();


        // provision gpio pin #02 as an input pin with its internal pull down resistor enabled

        final GpioPinDigitalOutput ledPin = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_07, PinState.LOW);


        ledPin.setState(PinState.HIGH);


    }

}


pi@raspberrypi ~/src/java $ date;javac -classpath .:classes:/opt/pi4j/lib/'*' TriggerGpio.java ;date

2015. 06. 08. (월) 11:40:03 UTC

2015. 06. 08. (월) 11:40:09 UTC 


pi@raspberrypi ~/src/java $ sudo java -classpath .:classes:/opt/pi4j/lib/'*' TriggerGpio

START


[링크 : http://pi4j.com/download.html]

Posted by 구차니

낮잠만 자다가 끝~!

ㅠㅠ


그래도 가계부 정리를 위한 기본 데이터는 정리 했고..

이제 엑세스로 분석만 하면 끝 ㅠㅠ

Posted by 구차니

개인적으로 만들어서 사용하던 로컬 저장소를 메인 소스에

소스가 아닌 히스토리까지 합치려고 하면

다음과 같이 하면 된다고 하는데..

딱히 합쳐볼 만한 프로젝트가 없어서 해보긴 겁나고.. ㄷㄷ


$ svnadmin dump > project<n>.dmp

$ svn mkdir "<repo url>/project<n>"

$ svnadmin load --parent-dir "project<n>" <filesystem path to repos>


[링크 : http://stackoverflow.com/questions/267256/combining-multiple-svn-repositories-into-one]

[링크 : https://blog.tinned-software.net/merge-two-svn-repositories/]

[링크 : http://geekswithblogs.net/kariemali/archive/2009/06/02/how-to-merge-two-svn-repositories.aspx]


2011/01/08 - [프로그램 사용/CVS / SVN / GIT / Mercurial] - SVN 저장소 합치기 - merging SVN repositories

2011/05/09 - [프로그램 사용/CVS / SVN / GIT / Mercurial] - svnadmin dump / load를 이용한 저장소 합치기



Posted by 구차니

문자 띠링띠링~

웬지.. 다들 환불하고 나중에 다시 신청을 받아서 9월 즈음에나 하게 될거 같은.. 스멜스멜?


하이서울 자전거대행진 사무국입니다.

현재 메르스의 확산 추세가 꺾이지 않고 있으며, 국민적 우려가 날로 커지는 상황에서 주최측에서는 이번 일요일 개최 예정인 ‘2015 하이서울 자전거대행진’의 연기를 결정하였습니다.

행사 참여를 계획하고 계셨던 분들의 양해를 부탁 드리며, 빠른 시일 내에 차기 행사 개최일을 확정하여 다시 고지 드리도록 하겠습니다.


참가를 예정했던 분들 중 행사 연기에도 불구하고 환불을 원하시는 분께서는 6월 8일(월)부터 홈페이지 공지사항을 참조하여 환불 신청을 부탁드리며 이미 환불을 신청하신 분들 중 행사 연기로 재 참여 의사가 있을시 “환불 취소” 메일을 부탁드립니다. 



Posted by 구차니
embeded/raspberry pi2015. 6. 4. 23:29

일단.. B+와 호환되는 녀석으로 알고 있으니..

음.. PCM_CLK는 말그대로 클럭이니.. PCM_DIN에 연결이 되어야 하는거 아닐려나?


아니면...

그냥 GPIO로 CPU 쪽쪽 빨아가면서 구현하는 걸려나?






[링크 : http://elinux.org/RPi_BCM2835_GPIOs]

Posted by 구차니
embeded/raspberry pi2015. 6. 4. 22:57

2012년 글에서는 I2S가 사라졌다고 하는데

리비전 2 부터는 P5 헤더에 존재하게 되엇다는데 끄응..

라즈베리 2에서 안되는거 같기도 하고... 미지수네


Moderator: this is an old thread! Since revision 2 the PI has a new header P5 which has I2S.

[링크 : https://www.raspberrypi.org/forums/viewtopic.php?f=7&t=2631]



  • P1: 26-pin (2x13) 2.54 mm header expansion, providing: see Low-level peripherals
    • GPIOs at 3v3
    • 2-pin UART serial console, 3v3 TTL (debug); or 2 GPIOs at 3v3
    • I²C interface (3v3); or 2 GPIOs at 3v3
    • SPI interface (3v3); or 5 GPIOs at 3v3
    • 3v3, 5v and GND supply pins
    • ARM JTAG (if pins are reconfigured in software - on Revision1.0 boards one signal would also need to be taken from S5)
    • I²S interface (if pins are reconfigured in software, hardware hack may be required[4])
  • P2: 8-pin 2.54 mm header expansion (header not fitted on Revision 2.0 boards), providing GPU JTAG (ARM11 pinout, pin 7 is nofit for locating)
  • P3: 7-pin 2.54 mm header expansion (header not fitted), providing LAN9512 JTAG (pin 6 is nofit for locating)
  • P4: 10/100Mb RJ45 Ethernet jack (Model B)
  • P5: 8-pin (2x4) 2.54 mm header expansion (header not fitted), on the bottom of the board, providing: see Low-level peripherals (Model B Revision 2.0 and Model A boards only)
    • GPIOs at 3v3
    • 3v3, 5v and GND supply pins
    • Second I²C interface (3v3) (if pins are reconfigured in software)
    • I²S interface (if pins are reconfigured in software)
    • Handshake signals for the UART on the P1 header (if pins are reconfigured in software)
  • P6: 2-pin 2.54 mm header expansion (header not fitted), providing an option to connect a hardware-reset button (Revision 2.0 boards only)

[링크 : http://elinux.org/RPi_Hardware#cite_note-i2s-4]


I2S 2015년 글. 라즈베리 2 일려나?

[링크 : https://www.raspberrypi.org/forums/viewtopic.php?f=44&t=8496]

Posted by 구차니

클라우드 / 마이피플 / 다음운세


음.. 클라우드는 유지비가 장난 아닐테고

마이피플은 메신저라 원래 돈이 안되는 녀석이고.. 카카오톡으로 인해 폐쇄는 예정된거지만...

다음 운세는 왜 갑자기?!?





'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

하드 도착!  (0) 2015.11.02
컴퓨터 포맷 예정! / 지름!  (3) 2015.08.10
굿바이 다음 클라우드  (0) 2015.06.02
하드가 슬슬 맛이 가려는구나 ㅠㅠ  (0) 2015.05.28
USB IR 키보드 + 마우스  (0) 2015.05.28
Posted by 구차니

아놔 MERS ㅠㅠ


따.. 딱히 옷 색이 마음에 안들어서 안갈려고 했던건 아냐 흥!



Posted by 구차니

화상 키보드가 얼마나 보안에 유리할지 모르겠지만

뒤에있는 사람에게 까지 유리하지 않을텐데..


그리고 화상 키보드로 입력해서

전송단에서 가로채면 이래저래 의미없을 뿐

오히려 사용자의 불편만 더 가중하는거 아닐까?



'개소리 왈왈 > 정치관련 신세한탄' 카테고리의 다른 글

텔레그램의 몰락?  (0) 2015.06.19
MERS 관련.. 잡솔  (0) 2015.06.10
5.18 광주민주화 항쟁  (0) 2015.05.18
서초 예비군 훈련장 총기사고  (0) 2015.05.13
i-pin이 보다 안전해집니다!  (0) 2015.04.17
Posted by 구차니