embeded/odroid2016. 10. 3. 20:26

eMMC 8GB 냐 32GB냐... (중고라서 1만 / 2만.. 고민되네)



일단 스펙상으로는


32Gbyte eMMC Version 5.0 interface from Sandisk. 

Note! Exynos4412 eMMC host version is 4.41


[링크 : http://www.hardkernel.com/main/products/prdt_info.php?g_code=G140489172644]


나중에 쓸만하면... 라즈베리에다가 eMMC 리더 사용해서 SD에 꽂으면 성능이 좀더 오를려나?

'embeded > odroid' 카테고리의 다른 글

odroid eMMC 중고 지름  (0) 2016.10.05
odroid eMMC 설정  (0) 2016.10.04
odroid u3 전력소모량 체크  (0) 2016.10.01
odroid 가버너 관련  (0) 2016.09.12
odroid u3 kernel build  (0) 2016.09.11
Posted by 구차니
embeded/odroid2016. 10. 1. 18:47

powersave 2.66W

>> kernl -j4 2.67W

>> kernl -j2 2.86W


performance 2.77W

>> kernel -j4 6.3W



음.. 의외로 조금 먹네?

'embeded > odroid' 카테고리의 다른 글

odroid eMMC 설정  (0) 2016.10.04
odoroid 지름... 예정?  (0) 2016.10.03
odroid 가버너 관련  (0) 2016.09.12
odroid u3 kernel build  (0) 2016.09.11
odroid cpufrequtils를 이용한 클럭 조절  (0) 2016.09.11
Posted by 구차니
embeded/Cortex-M4 Ti2016. 9. 28. 20:54



[링크 : http://stackoverflow.com/questions/31887470/get-the-timestamp-from-microcontroller-tm4c123-in-c]

[링크 : http://forum.43oh.com/topic/7533-tm4c129-hibernation-rtc-and-calendar-mode/]


tm4c123x 에서 tm4c129x로 가야 할지도 모르겠네 -_-

[링크 : http://www.deyisupport.com/.../an01296-Differences-Between-TM4C123x-and-TM4C129x-MCUs.pdf]

'embeded > Cortex-M4 Ti' 카테고리의 다른 글

tm4c HibernateEnableExpClk() 차이점  (0) 2016.10.22
tm4c ..어라? hibernate...  (0) 2016.10.20
tm4c uart fifo/buffer 문제  (0) 2016.09.28
lm3s tm4c 시스템 클럭 차이점  (0) 2016.09.24
ek-tm4c123gxl launchpad 클럭  (0) 2016.09.24
Posted by 구차니
embeded/Cortex-M4 Ti2016. 9. 28. 20:00

lm3s에서 tm4c로 바꾸었는데.. (아니 바꾸는 중?)

웬지 모르게 uart1의 RX가 5byte buffer(fifo)를 가지고 덜 뱉어내는 기분?


분명히


UARTFIFODisable(UART0_BASE);

UARTFIFODisable(UART1_BASE);


을 해줘서 둘다 fifo를 껐는데도 왜이러지? ㅠㅠ


[링크 : https://e2e.ti.com/support/microcontrollers/tiva_arm/f/908/t/323362]

[링크 : https://e2e.ti.com/support/microcontrollers/tiva_arm/f/908/t/264861]


[링크 : http://www.deyisupport.com/.../an01296-Differences-Between-TM4C123x-and-TM4C129x-MCUs.pdf]

'embeded > Cortex-M4 Ti' 카테고리의 다른 글

tm4c ..어라? hibernate...  (0) 2016.10.20
tm4c123 rtc hibernate module  (0) 2016.09.28
lm3s tm4c 시스템 클럭 차이점  (0) 2016.09.24
ek-tm4c123gxl launchpad 클럭  (0) 2016.09.24
tm4c 에서 8 MHz 클럭으로 adc 작동...  (0) 2016.09.24
Posted by 구차니

안되는건가? ㅠㅠ

기본적으로 hostname에서 조회하는거라

저번에 wins 통해서 resolve한게 정상이 아니었던거 같기도 하고.

테스트 해볼게 많네.. ㅠㅠ


[링크 : http://wiki.maemo.org/Distcc?pagewanted=all]

[링크 : https://forums.gentoo.org/viewtopic-t-130450-start-0.html]

[링크 : http://distcc.samba.narkive.com/NKokMWjn/discovering-the-distccd-hosts-on-a-dhcp-lan]

[링크 : https://debian-administration.org/article/112/Speed_up_compiling_software_with_distcc]


+

dhcp통해 hostname 업데이트 하기

이게 편리해보이네

[링크 : http://askubuntu.com/questions/104918/how-to-get-the-hostname-from-a-dhcp-server]

Posted by 구차니

영 안되네..

odroid 커널 빌드 해보려고 하는데

CC=distcc make -j8 해도

make -j8 CC=distcc 해도 안되서

이래저래 찾아 보는중


$ time make -j8 CC=distcc

kernel compilation using single machine :

real 50m55.498s

user 71m4.967s

sys 6m55.030s


kernel compilation using three machines:

real 28m21.146s

user 17m32.862s

sys 4m35.537s 


[링크 : http://linuxdeveloper.blogspot.com/2012/03/distributed-kernel-compilation-in.html]

[링크 : http://askubuntu.com/.../how-to-speed-up-compilation-of-ubuntu-apps-make-cmake-gcc]

[링크 : http://pointclouds.org/documentation/advanced/distcc.php]


역시.. 진리(?)의 makefile 수정 뿐인가?

Edit the Makefile 

Fire up your favourite editor and load /usr/src/linux/Makefile. Find this section:

Code:

# Include the make variables (CC, etc...) 


And change "gcc" in the CC line to 

Code:


CC              = $(CROSS_COMPILE)distcc 


Append this line to the section: 

Code:


DISTCC_HOSTS=slave1 slave2 slave3 ... slaveN  


[링크 : https://forums.gentoo.org/viewtopic-p-7189488.html]

'프로그램 사용 > distcc & ccache' 카테고리의 다른 글

distcc zeroconf 와 avahi  (0) 2016.10.17
distcc 를 DHCP 에서..  (0) 2016.09.28
distcc-pump error  (0) 2016.09.25
distcc 크로스 컴파일/커널 빌드 관련  (0) 2016.09.13
distcc 로 valgrind-3.6.1 컴파일 실패?  (0) 2014.12.12
Posted by 구차니
embeded/raspberry pi2016. 9. 26. 20:55

커널 빌드 할 때

arm-linux-gnueabihf-gcc

이런걸 볼 수 있는데

ARM용 리눅스에 있는 gcc 패키지랑은 차이가 있을까?


$ gcc -v

Using built-in specs.

COLLECT_GCC=gcc

COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.9/lto-wrapper

Target: arm-linux-gnueabihf

Configured with: ../src/configure -v --with-pkgversion='Raspbian 4.9.2-10' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libitm --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-armhf --with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-sjlj-exceptions --with-arch=armv6 --with-fpu=vfp --with-float=hard --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf

Thread model: posix

gcc version 4.9.2 (Raspbian 4.9.2-10) 


~/tools/arm-bcm2708/arm-bcm2708hardfp-linux-gnueabi/bin $ arm-linux-gnueabihf-gcc -v

Using built-in specs.

COLLECT_GCC=arm-linux-gnueabihf-gcc

COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.9/lto-wrapper

Target: arm-linux-gnueabihf

Configured with: ../src/configure -v --with-pkgversion='Raspbian 4.9.2-10' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libitm --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-armhf --with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-sjlj-exceptions --with-arch=armv6 --with-fpu=vfp --with-float=hard --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf

Thread model: posix

gcc version 4.9.2 (Raspbian 4.9.2-10)


비교해보니 차이가 없다?!?

즉, 우분투에 들은 gcc는 커널빌드 하는데 써도 문제 없는 동일한 녀석이다 라는거?


[링크 : http://stackoverflow.com/.../arm-gcc-toolchain-as-arm-elf-or-arm-none-eabi-what-is-the-difference]

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

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

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


+

~/tools/arm-bcm2708 $ ll

total 20

drwxr-xr-x 7 pi pi 4096 Sep 26 23:28 arm-bcm2708hardfp-linux-gnueabi

drwxr-xr-x 7 pi pi 4096 Sep 26 23:26 arm-bcm2708-linux-gnueabi

drwxr-xr-x 8 pi pi 4096 Sep 26 23:28 arm-rpi-4.9.3-linux-gnueabihf

drwxr-xr-x 7 pi pi 4096 Sep 26 23:30 gcc-linaro-arm-linux-gnueabihf-raspbian

drwxr-xr-x 7 pi pi 4096 Sep 26 23:29 gcc-linaro-arm-linux-gnueabihf-raspbian-x64 


일단은 다 x86/x86-64용 크로스컴파일러네..

$ file arm-bcm2708hardfp-linux-gnueabi/bin/arm-bcm2708hardfp-linux-gnueabi-gcc

arm-bcm2708hardfp-linux-gnueabi/bin/arm-bcm2708hardfp-linux-gnueabi-gcc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.15, BuildID[sha1]=e2801f48a84144e2b40d6083baac317057662b3c, stripped


$ file arm-bcm2708-linux-gnueabi/bin/arm-bcm2708-linux-gnueabi-gcc

arm-bcm2708-linux-gnueabi/bin/arm-bcm2708-linux-gnueabi-gcc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.15, BuildID[sha1]=7b34f10a2af2e57b673121196522143f50868487, stripped


$ file arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc
arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24, BuildID[sha1]=e0df943f126fe91df411d950dd26652126a1e06d, stripped

$ file gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-gcc-4.8.3
gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-gcc-4.8.3: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.15, stripped

 $ file gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-gcc-4.8.3
gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-gcc-4.8.3: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24, BuildID[sha1]=04d49c97b46fb3d971e496e6721137f6bab56342, stripped

얘는 라즈베리 gcc 패키지

 $ file /usr/bin/gcc-4.9

/usr/bin/gcc-4.9: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 2.6.32, BuildID[sha1]=f711b7c3e25f3a887b6908bb3ef6d1cefba92340, stripped



Posted by 구차니

한번 오랫만에 시간이 나서 마음먹고 해보려는데

에러! ㅠㅠ

다음번에 재시도를 해봐야지..


$ distcc-pump --startup

/usr/bin/distcc-pump: error: pump mode requested, but distcc hosts list does not contain any hosts with ',cpp' option


$ distcc-pump make -j8 CC=ditscc

__________Using distcc-pump from /usr/bin

/usr/bin/distcc-pump: error: pump mode requested, but distcc hosts list does not contain any hosts with ',cpp' option 


어디서 저 옵션이 들어가나 뒤져보니 목록에 옵션으로 넣는거였네..

conf 파일에는 불가능하려나? zeroconf로 받아온다거나?


DISTCC_HOSTS=",cpp" 

[링크: https://wiki.archlinux.org/index.php/Distcc]


+ 2016-09-26

[링크 : https://forums.gentoo.org/...?sid=0b18b85927db5c54fa1bff47ee829527]

Posted by 구차니
embeded/Cortex-M4 Ti2016. 9. 24. 12:19

lm3s1607 메인 클럭 트리

tm4c1231 메인 클럭 트리

PLL 이후 DIV400 이라는 녀석이 추가 되었다.


데이터 시트 상으로는 2_5 이런식으로 되어 있는 클럭으로 설정하면 80MHz를 쓸 수 있을 것 같은데

막상 설정해보니 부팅이 안되네.. 다른 무언가가 있는건가?

(아니면 새로뜬 보드가 잘못 설계되었거나?)


런치패드에서 빌드가 되어서 돌아가는 거 봐서는..

회로 레벨에서 무언가 차이가 있는 건가?

'embeded > Cortex-M4 Ti' 카테고리의 다른 글

tm4c123 rtc hibernate module  (0) 2016.09.28
tm4c uart fifo/buffer 문제  (0) 2016.09.28
ek-tm4c123gxl launchpad 클럭  (0) 2016.09.24
tm4c 에서 8 MHz 클럭으로 adc 작동...  (0) 2016.09.24
lm3s tm4c 내장 온도센서 범위  (0) 2016.09.24
Posted by 구차니
embeded/Cortex-M4 Ti2016. 9. 24. 11:39

데이터 시트 / 메뉴얼? 상에는 일단 16MHz 크리스탈과

하이버네이트 모듈을 위한 32.768KHz 의 크리스탈이 달려있는데


16MHz 짜리는 검은색 반도체 같이 생겨 먹었고

32.768KHz 짜리는 일반적인 깡통형이다.


걍.. 16MHz 짜리 쓸까.. 속편하게..


[링크 : http://www.ti.com/lit/ug/spmu296/spmu296.pdf]






Posted by 구차니