embeded/odroid2016. 10. 5. 11:14

흐음...


사자니 돈 아깝고...

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


2.5mm pitch니까 조금 어거지로 해서 2.54mm 핀헤더로 어떻게 안되려나? ㅠㅠ

[링크 : http://odroid.com/dokuwiki/doku.php?id=en:usb_uart_kit]


커넥터 비싸... ㅠㅠ 망할 몰렉스

[링크 : http://eleparts.co.kr/EPX3G74U]

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

molex 50-37-5043 커넥터 고찰?  (0) 2016.10.06
odroid reboot가 안되는 경우  (0) 2016.10.05
odroid eMMC 중고 지름  (0) 2016.10.05
odroid eMMC 설정  (0) 2016.10.04
odoroid 지름... 예정?  (0) 2016.10.03
Posted by 구차니
embeded/odroid2016. 10. 5. 10:51

일단.. 8GB 2개 질러서

둘다 적용해보고

그 다음에... 심심하면(?) sd 어댑터에 연결해서 라즈베리에 해봐야지



[링크 : http://cafe.naver.com/joonggonara/338041369]

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

odroid reboot가 안되는 경우  (0) 2016.10.05
odroid USB uart  (0) 2016.10.05
odroid eMMC 설정  (0) 2016.10.04
odoroid 지름... 예정?  (0) 2016.10.03
odroid u3 전력소모량 체크  (0) 2016.10.01
Posted by 구차니
embeded/odroid2016. 10. 4. 13:02

찾아보니.. eMMC는 부트영역이 따로 설정되서 그냥은 못 건드리니

uboot에서 명령을 통해서 설정해야 하는 듯?


일단 SD 메모리만 꽂고(eMMC가 부팅 우선순위를 가지니)

1. 복구 이미지를 SD에 구워서 부팅후 eMMC를 꽂으면 복구

2. uart를 이용해서 uboot에서 "movi init 1" 와 "run copy_uboot_sd2emmc"명령을 통해 복구


Case 1: Using the Recovery image


1.Download Recovery Image file.

2.Unzip with 7-Zip (Windows) or Linux using “xz -d”

3.Prepare a microSD card and flash the attached image. flashing → refer this link

4.Boot with the microSD without eMMC.

5.Turn on U2/U3 and wait a few seconds and blue LED will blink.

6.Plug your eMMC module into U2/U3

7.Plug micro-USB cable into U2/U3 and connect other side to your PC USB host or ODROID's USB host port.

  (This is a trigger to start the recovery)

8.After recovery process (only a few seconds), the blue LED will turn off automatically.

9.Finish. Install OS on your eMMC with as usual.


Case 2 : Boot from SD card and access the eMMC


You need the USB-UART and serial terminal program like a Putty.


1. Boot the board with a Ubuntu SD Card without eMMC.

2. Enter into the u-boot prompt by Enter key or Space key in 3 seconds.

3. Install the eMMC module on the board.

4. Issue a command to connect the eMMC.


Exynos4412 # movi init 1

5. Copy the boot code from SD to eMMC.


Exynos4412 # run copy_uboot_sd2emmc

6. Remove the SD card and power on with the eMMC. The Blue LED should be on by eMMC boot loader.


[링크 : http://odroid.com/dokuwiki/doku.php?id=en:emmc_recovery_u3]


[링크 : http://odroid.com/dokuwiki/doku.php?id=en:emmc_recovery]

    [링크 : http://odroid.com/dokuwiki/doku.php?id=en:emmc_recovery_u3]

    [링크 : http://codewalkerster.blogspot.com/2014/02/how-to-recovery-emmcemmc-50-u-boot-on.html]


링크도 깨져있고..XU4용은 안드로이드고..

그냥 eMMC 구매하는건 포기할까?

웬지 이걸써서 라즈베리에서 SD 리더용 어댑터로 부팅이 안될거 같은데..


+

[링크 : http://codewalkerster.blogspot.com/2014/02/how-to-recovery-emmcemmc-50-u-boot-on.html]

[링크 : http://forum.odroid.com/viewtopic.php?f=53&t=969]

[링크 : http://forum.odroid.com/download/file.php?id=2841] u3용 이미지

exynos4412_emmc_recovery_from_sd_20140629.zip


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

odroid USB uart  (0) 2016.10.05
odroid eMMC 중고 지름  (0) 2016.10.05
odoroid 지름... 예정?  (0) 2016.10.03
odroid u3 전력소모량 체크  (0) 2016.10.01
odroid 가버너 관련  (0) 2016.09.12
Posted by 구차니
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 구차니
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 구차니
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 구차니