embeded/raspberry pi2016. 12. 16. 15:08

테스트 해보니.. maxcpus는 작동하지 않는듯


# replace N with the number of cores you want to keep using

maxcpus=N 

[링크 : http://raspberrypi.stackexchange.com/questions/32562/how-to-make-the-raspberry-pi-consume-less-power]


arm_freq Frequency of the ARM CPU in MHz. The default value is 700.

core_freq Frequency of the GPU processor core in MHz. It has an impact on CPU performance, since it drives the L2 cache. The default value is 250.

sdram_freq Frequency of the SDRAM in MHz. The default value is 400.


gpu_freq Sets core_freq, h264_freq, isp_freq, and  v3d_freq together. The default value is 250.

h264_freq Frequency of the hardware video block in MHz. The default value is 250.

isp_freq Frequency of the image sensor pipeline block in MHz. The default value is 250.

v3d_freq Frequency of the 3D block in MHz. The default value is 250.


arm_freq_min Minimum value of arm_freq used for dynamic frequency clocking. The default value is 700.

core_freq_min Minimum value of core_freq used for dynamic frequency clocking. The default value is 250.

sdram_freq_min Minimum value of sdram_freq used for dynamic frequency clocking. The default value is 400.


[링크 : https://www.raspberrypi.org/documentation/configuration/config-txt.md]

[링크 : http://raspberrypi.stackexchange.com/questions/23442/raspberry-pi-b-cpu-clock-manipulation]

[링크 : http://raspberrypi.stackexchange.com/questions/41517/low-enery-consumption-kernel]


+

길어서 cpu 1,2,3은 삭제

$ cpufreq-info

cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009

Report errors and bugs to cpufreq@vger.kernel.org, please.

analyzing CPU 0:

  driver: BCM2835 CPUFreq

  CPUs which run at the same hardware frequency: 0 1 2 3

  CPUs which need to have their frequency coordinated by software: 0 1 2 3

  maximum transition latency: 355 us.

  hardware limits: 600 MHz - 900 MHz

  available frequency steps: 600 MHz, 900 MHz

  available cpufreq governors: conservative, ondemand, userspace, powersave, performance

  current policy: frequency should be within 600 MHz and 900 MHz.

                  The governor "ondemand" may decide which speed to use

                  within this range.

  current CPU frequency is 600 MHz.


$ cat /boot/config.txt

#uncomment to overclock the arm. 700 MHz is the default.

#arm_freq=800

arm_freq_min=300


길어서 cpu 1,2,3은 삭제


$ cpufreq-info

cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009

Report errors and bugs to cpufreq@vger.kernel.org, please.

analyzing CPU 0:

  driver: BCM2835 CPUFreq

  CPUs which run at the same hardware frequency: 0 1 2 3

  CPUs which need to have their frequency coordinated by software: 0 1 2 3

  maximum transition latency: 355 us.

  hardware limits: 300 MHz - 900 MHz

  available frequency steps: 300 MHz, 900 MHz

  available cpufreq governors: conservative, ondemand, userspace, powersave, performance

  current policy: frequency should be within 300 MHz and 900 MHz.

                  The governor "ondemand" may decide which speed to use

                  within this range.

  current CPU frequency is 300 MHz.

  cpufreq stats: 300 MHz:16.33%, 900 MHz:83.67%  (7)


$ cat /boot/config.txt

arm_freq=600

arm_freq_min=100


$ cpufreq-info

cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009

Report errors and bugs to cpufreq@vger.kernel.org, please.

analyzing CPU 0:

  driver: BCM2835 CPUFreq

  CPUs which run at the same hardware frequency: 0 1 2 3

  CPUs which need to have their frequency coordinated by software: 0 1 2 3

  maximum transition latency: 355 us.

  hardware limits: 100.0 MHz - 600 MHz

  available frequency steps: 100.0 MHz, 600 MHz

  available cpufreq governors: conservative, ondemand, userspace, powersave, performance

  current policy: frequency should be within 100.0 MHz and 600 MHz.

                  The governor "ondemand" may decide which speed to use

                  within this range.

  current CPU frequency is 600 MHz.

  cpufreq stats: 100.0 MHz:0.00%, 600 MHz:100.00% 


테스트 해보니.. 0.04W 감소 월(30일)기준 28.8W 절약... 이라고 해야하나?

100MHz 1.70W -> 1.66W

Posted by 구차니
Programming/C Win32 MFC2016. 12. 16. 13:03

심심해서 오랫만에 짜본 초 허접 로또번호 생성 ㅋㅋㅋ

DDX 통해서 값 교환은 처음인가.. 어색하네?


아무튼 class wizard로 변수 연결해주다가 귀찮아서

소스에서 DDX 부분에 손봐서는 변수는 연결했는데

값이 안나오길래 검색해보니 UpdateData()라는 함수 발견


msdn은 설명이 어려운데

true 면은 컨트롤에서 연결된 변수로 값을 가져오고(UI쪽에서 끌어오기)

false 면은 연결된 변수의 값을 컨트롤러 넘겨준다(UI쪽으로 넘겨주기)


void CLottoDlg::OnButton1() 

{

// TODO: Add your control notification handler code here

int idx;

unsigned char flag[45];

unsigned char genval = 0;

CString *strarray[42] =

{

&m_edit1,&m_edit2,&m_edit3,&m_edit4,&m_edit5,&m_edit6,

&m_edit7,&m_edit8,&m_edit9,&m_edit10,&m_edit11,&m_edit12,

&m_edit13,&m_edit14,&m_edit15,&m_edit16,&m_edit17,&m_edit18,

&m_edit19,&m_edit20,&m_edit21,&m_edit22,&m_edit23,&m_edit24,

&m_edit25,&m_edit26,&m_edit27,&m_edit28,&m_edit29,&m_edit30,

&m_edit31,&m_edit32,&m_edit33,&m_edit34,&m_edit35,&m_edit36,

&m_edit37,&m_edit38,&m_edit39,&m_edit40,&m_edit41,&m_edit42

};


memset(flag, 0x00, sizeof(unsigned char) * 45);

srand(time(NULL));


for(idx = 0 ;idx < 42;idx++)

{

do

{

genval = rand() % 45;

}

while(flag[genval] != 0);

flag[genval] = 1;


strarray[idx]->Format("%d",genval + 1);

}


UpdateData(FALSE);


[링크 : http://lazypaul.tistory.com/232]

[링크 : https://msdn.microsoft.com/ko-kr/library/t9fb9hww.aspx]

'Programming > C Win32 MFC' 카테고리의 다른 글

win32 http 인증 관련  (0) 2017.02.28
MFC / stdlib / qsort example  (0) 2016.12.19
윈도우에서 dll 동적 라이브러리 사용하기  (0) 2016.04.04
가변 매크로 __VA_ARGS__  (0) 2016.03.18
#import ?  (0) 2015.12.21
Posted by 구차니
embeded/odroid2016. 12. 15. 21:21

odorid u3

eMMC 8GB + SD 16GB

100M 랜선 연결 idle 1.95W

랜선빼고 1.72W (-0.23W)

SD 카드는 영향을 주지 않음(내장형 SD)


USB 키보드 0.17W

USB 마우스 0.53W


평균 2W 먹음(idle)

2W * 24 * 30 = 1440W = 1.4KW



---

번외

라즈베리 파이

lan / hdmi 연결 안함  1.70W

lan만 연결 1.93W


hdmi 연결 하고 부팅 1.76W

hdmi + lan 2.01W

hdmi 연결부팅 후 hdmi 제거 1.76W


Posted by 구차니
Posted by 구차니
프로그램 사용/u-boot2016. 12. 14. 17:41

nand 자체를 초기화 하는 명령어

배드 섹터 넘쳐 날때 해주면 초기화 하는데

생겨나는건 여전...


# nand scrub


NAND scrub: device 0 whole chip

Warning: scrub option will erase all factory set bad blocks!

         There is no reliable way to recover them.

         Use this command only for testing purposes if you

         are sure of what you are doing!


Really scrub this NAND flash? <y/N>

Erasing at 0xffe0000 -- 100% complete.

OK 


[링크 : http://www.stlinux.com/howto/NAND/clean]

[링크 : http://damduc.tistory.com/317]

'프로그램 사용 > u-boot' 카테고리의 다른 글

uboot filesize 환경변수  (0) 2016.11.17
tftpd-hpa  (0) 2016.11.08
ubuntu 12.04 xinetd/tftpd 느린 이유  (0) 2016.11.08
uboot bootargs 기본값 설정하기  (0) 2015.02.09
uboot 메모리 관련 명령어  (0) 2015.01.08
Posted by 구차니

샘플 수가 적으면 노이즈 끼는 특이한 녀석


[링크 : https://en.wikipedia.org/wiki/Path_tracing]



[링크 : https://www.youtube.com/watch?v=BpT6MkCeP7Y]

[링크 : https://home.otoy.com/render/brigade/]

'이론 관련 > 3D 그래픽 관련' 카테고리의 다른 글

BSDF, BRDF, BTDF  (0) 2024.08.29
3D영상 종류 sbs tab  (2) 2017.06.12
visual SLAM - Simultaneous Localization and Mapping  (0) 2016.03.10
극좌표계, 구면좌표계...  (0) 2015.07.22
극좌표계 / 구면좌표계  (0) 2013.03.26
Posted by 구차니

요즘은 알파고 열풍이 지난지 백만년이라

AI가 다시 조류독감이 되는 시대인데..


인간을 위협하는건 아마도.. 나중에 나올 초자아를 가지거나

천재 수준을 뛰어넘는 기계 장치의 신급이 될 초지능/초지성의 인공지능이 아닌

중~고등학생 수준의 인지능력과 상황대응 능력을 지닌

인간으로 치면 IQ 80~100 정도의 평범한 성인 급의 AI가 아닐까 생각이 된다.


터미네이터 처럼 학습을 제한하더라도,

중학생 급의 지능이면 어느정도 무리없이 일을 시킬수 있고

이렇게 성장한 인공지능을 복제하여 라인에 인간형 몸체를 이용해서 투입하게 된다면


24시간 노동분쟁도 없이 상시 노동이 가능하기에

인간의 몰락이 시작되고, 특화된 수리 로봇이 그런 로봇들을 고치기 시작하면서

분업의 개념이 도입되고 점점 인간의 일자리 하나하나를 먹어 들어가지 않을까 싶어진다.



장기적으로는 국가나 대륙별 초지능의 AI들이 인류나 국가 대표로서 서로 정치를 하거나 하는 식으로

국가적 역량이 투입되는 슈퍼컴퓨터의 위치를 대신하여

AI가 슈퍼 컴퓨터의 리소스를 관리하여 사회 발전에 이바지를 하게 될 것이며

그러면서 스스로를 발전시켜(하드웨어적이나 소프트웨어적으로) 언젠가는 인간의 인지를 벗어난

그 이상의 존재로 발전하게 되지 않을까 생각이 된다.

물론 그 단계로 가기 전까지는 국가적 레벨에서 지원을 해야 할테니

종교적 색채를 담아(?) 다음 세기의 에덴에는 13명의 AI가 존재할 것이다~

라고 하면 그럴싸 하려나?


일단 국력이 되는 미국에서는 못해도 2~3개의 독립된 인격과 경험을 지닌 초지성체가 존재하게 될 거 같고

유럽에서도 EU 단위고 2~3의 초지성체가

러시아는 좀 삶이 요즘 궁핍해 보이니 1정도?

중국 / 인도 / 일본 도 1~2의 초지성체


근데 지금 현재 상태로 보건대..

우리나라는 초지성까진 못가고 끽해봤자 성인 수준이 한계일지도...

Posted by 구차니
Linux2016. 12. 12. 15:31

우분투에서 정상 기동했는데 런레벨이 2라고 뜨길래 허허헉?! 하면서 검색해보니

레드햇의 런레벨과는 좀 다른 구분을 한다고 한다.

$ runlevel

N 2 


아무튼 우분투는 1은 싱글 2는 멀티/GUI

레드햇은 3은 싱글 5는 멀티

[링크 : http://zetawiki.com/wiki/리눅스_런레벨]

'Linux' 카테고리의 다른 글

ctime mtime.. 엌?!  (0) 2016.12.31
base64 유틸리티  (0) 2016.12.28
yaffs2 / ext4 비교?  (0) 2016.11.04
dri drm ddx  (0) 2016.10.23
fdisk 파티션이 2048 부터 시작하는 이유  (0) 2016.10.22
Posted by 구차니

어라라라라라라라?!

간만에 업데이트 해둘겸들어갔더니

이상한게 있어서 찾아 봤더니


2016년 9월 15일 제공?!

[링크 : http://bbs.ruliweb.com/news/board/1003/read/2108748]

[링크 : https://www.youtube.com/watch?v=UzNS9KAG4xQ]

Posted by 구차니
개소리 왈왈2016. 12. 10. 21:01

주말에 열던 식당이 안여네..

한달내내 주말에 밥먹는 동안 5명도 채 안오던데

내가 사장이라도 토요일에 장사안했을듯


Posted by 구차니