embeded/Cortex-M4 Ti2016. 10. 26. 14:29

희한하네..


암튼 ek-tm4c123 쪽 보다는 

dk-tm4c123 쪽이 더 비싸고 좋고(어?)

예제도 많은듯

[링크 : https://github.com/yuvadm/tiva-c/tree/master/boards/dk-tm4c123g]

[링크 : https://github.com/yuvadm/tiva-c]




[링크 : http://www.ti.com/lit/sg/spmt285d/spmt285d.pdf]

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

tm4c FIFO 길이  (0) 2016.10.26
tm4c hibernate module oscillator 관련  (0) 2016.10.26
tm4c HibernateEnableExpClk() 차이점  (0) 2016.10.22
tm4c ..어라? hibernate...  (0) 2016.10.20
tm4c123 rtc hibernate module  (0) 2016.09.28
Posted by 구차니

최순실 게이트라고 명명된 이번 사건을 보고 있노라면...


이명박 단독회견때부터 개입해 왔고

요 근래 까지도 계속 내부문건을 유출해와서 실질적으로 지시를 다 내려서 수행해왔다면...

도대체.. 대통령의 정체가 멀까? 싶어진다.


많은 사람들이 좋아한 영화 "아바타"는 이걸 예견한건가...


[링크 : http://movie.daum.net/moviedb/main?movieId=42148]

Posted by 구차니

청년 미디어 라는 생소한 단어를 접하게 된 것은

요 근래 다음에서 서비스 중인 1boon 이라는 곳을 통해서 인데..

미스핏츠 라는 곳이 희한하게 자꾸 눈에 걸려서 아니 거슬려서 한번 끄적여 본다.


처음 이 언론(?)을 접하게 된 건 인기절정의 "메갈리아"와 "페미니즘"관련

쓰레기 기사들이 범람할 때 였고 그 논조 자체가 마음에 들지 않은 건지

아니면 내가 단순히 남자였기 때문에 남성성에 위해를 가하려는 괘씸한(?) 이 사이트가 눈에 걸린건진 모르겠지만

기승전 "페미니즘"의 내용을 보면서 도대체 이건 머하는 놈들이야? 생각이 들었고


검색을 해보니..

내 예상과는 다르게 misfits 부적응자.

영화로도 있는 바람에 인지도가 딸려서 검색 상단에 걸리지는 않는 신생 청년 인터넷 신문사

(원래 예상한건 논조에 맞게 miss + fits 여성에 딱 맞춘이라는 의미..)


[링크 : http://1boon.kakao.com/slownews/59192] 청년 미디어를 전망한다


"청년 미디어를 전망한다" 라는 글에 내용에 덧붙이자면..

어쩌면 인기가 있어야 살아갈 수 있는

소비자 지향적인 인터넷 언론의 태생적 한계로 인해

잘 먹혀 들고, 어그로를 끌어 한번이라도 더 접속해서 댓글로 싸워댈 수 있게 해야만 하는 주제를 가지고

이야기를 해야 살아갈 수 있는 트롤러로 태어날 수 밖에 없는 운명인가 싶다.


[링크 : http://misfits.kr/]

[링크 : https://1boon.kakao.com/publy/kaist1] 걸스로봇 / women at KAIST



---

여기 부터가 진짜로 내가 하고 싶은 말


엄밀하게 나 스스로를 스스로가 정의하자면, 절대 페미니스트는 아니며 평등주의자에 가깝다고 생각을 한다.

그렇기에 여성평등을 외치면서 여성우월주의 혹은 여성상위주의를 외치는 저 것(!)들을 좋아하지 않는다.

물론 양성평등으로 가기위한 수단으로서의 여성주의/페미니즘은 찬성하지만.



희한하게 말이 안써지네.. 담에 끄적여야지..

Posted by 구차니
embeded/odroid2016. 10. 25. 21:24

root로 로그인 하니 되서

/root/.Xauthority 를 /home/odroid 에 복사하니 되긴하는데..

기본 작업관리자라던가 전부 뜨지 않고


openbox로 구동되긴 했는지

휠 클릭은 작업공간 변경(workspace)

우클릭에서는 각종 프로그램들을 구동할 수는 있게 되어 있다.


도대체 머가 문제지.. ㅠㅠ



+

lxsession을 실행하니 원래 비슷하게 나오네..

어디선가 세션을 실행못해서 그런가?


Xwin -> openbox -> lxsession

X윈도 -> 윈도매니저 -> 세션매니저

순서로 구동이 되는건가?

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

odroid u3 - mali 400  (0) 2016.11.02
odroid eMMC 8GB 작구나...  (0) 2016.10.29
X 시작을 못하는 이유..?  (0) 2016.10.24
odroid에서 blender 재시도.. 실패 -_-  (0) 2016.10.23
odorid u3 emmc+sd 설치 순서  (0) 2016.10.22
Posted by 구차니

TextFX는 기본이었나? 기억이 안나네..

없으면 깔고 ㅋ


TextFX - TextFX Viz 에서

Visible / InVisible 관련 copy / delete를 하면된다.

그런데.. Copy Visible Selection을 하면 엔터가 죄다 날아가서 붙는지라

가장 편한건(?) 원본을 복사해서 접은 다음 Delete Invisible Selection을 해서 삭제하고


접혔던 부분은 공백으로 남아 버리니

편집 - 줄단위 편집 - 빈줄 제거 (공백 문자 포함)

해주는게 가장 안정적인 방법인 듯

[링크 : https://sourceforge.net/p/notepad-plus/discussion/331754/thread/54db02cc/]

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

notepad++ ascii만 검색하기  (0) 2017.06.15
notepad++ 정규표현식을 이용한 아이피 추출  (0) 2017.02.09
notepad++ timestamp 찍기  (0) 2016.08.10
notepad++ 플러그인(ctags/vi)  (0) 2015.01.08
notepad2 와 notepad++  (16) 2008.12.30
Posted by 구차니

흐음.. 업데이트 한진 좀 되었는데

망할 touch ID가 없어서 여전히 잠금 푸는게 귀찮고


업데이트의 영향인지

기존에는 느려도 pc USB 전원으로 잘 충전했는데

이제는 아예 되지를 않는다 -_-

'개소리 왈왈 > 모바일 생활' 카테고리의 다른 글

샤오미 10400mAh 분해  (0) 2017.02.07
포코팡 서비스 종료  (2) 2016.11.07
lg g5 USB HID (조이스틱) 미지원?  (0) 2016.09.19
아이폰 뚫려 두둥?!  (0) 2016.03.29
아이나비 X1 dash 소감  (0) 2016.03.21
Posted by 구차니
embeded/odroid2016. 10. 24. 09:20

DDX 교체하고 나서 odroid로 암호까지 쳐도

autologin 되어있어도 못들어 가는 문제가 생기는 바람에

밀어야 하나 고쳐봐야 하나 고민..


고치는걸로 오기 발동중인데.. 확 밀어 버려? -_-


.Xauthority in the home folder of the user odroid?

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

Posted by 구차니
embeded/odroid2016. 10. 23. 20:54

일단 다시 검색해서 해보려는데 영안되는건 마찬가지네..

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


$ blender

Color management: using fallback mode for management

connect failed: No such file or directory

libGL error: MESA-LOADER: malformed or no PCI ID

libGL error: dlopen /usr/lib/arm-linux-gnueabihf/dri/exynos_dri.so failed (/usr/lib/arm-linux-gnueabihf/dri/exynos_dri.so: cannot open shared object file: No such file or directory)

libGL error: dlopen ${ORIGIN}/dri/exynos_dri.so failed (${ORIGIN}/dri/exynos_dri.so: cannot open shared object file: No such file or directory)

libGL error: dlopen /usr/lib/dri/exynos_dri.so failed (/usr/lib/dri/exynos_dri.so: cannot open shared object file: No such file or directory)

libGL error: unable to load driver: exynos_dri.so

libGL error: driver pointer missing

libGL error: failed to load driver: exynos

Writing: /tmp/blender.crash.txt

Segmentation fault 


/usr/lib/arm-linux-gnueabihf$ ll libdrm_exynos.*

-rw-r--r-- 1 root root 12118 may 12 03:41 libdrm_exynos.a

lrwxrwxrwx 1 root root    22 may 12 03:40 libdrm_exynos.so -> libdrm_exynos.so.1.0.0

lrwxrwxrwx 1 root root    22 may 12 03:40 libdrm_exynos.so.1 -> libdrm_exynos.so.1.0.0

-rw-r--r-- 1 root root 13732 may 12 03:41 libdrm_exynos.so.1.0.0 


drm은 존재하나 dri는 존재하지 않는다!?!?

/usr/lib/arm-linux-gnueabihf/dri$ ll

total 21116

drwxr-xr-x  2 root root    4096 oct  8 21:28 ./

drwxr-xr-x 94 root root   94208 oct 23 21:11 ../

-rw-r--r--  1 root root   13884 abr 16  2014 dummy_drv_video.so

-rw-r--r--  1 root root 2632560 ene 13  2016 nouveau_dri.so

-rw-r--r--  4 root root 2482560 ene 13  2016 nouveau_vieux_dri.so

-rw-r--r--  4 root root 2482560 ene 13  2016 r200_dri.so

-rw-r--r--  1 root root 2186172 ene 13  2016 r300_dri.so

-rw-r--r--  1 root root 2550644 ene 13  2016 r600_dri.so

-rw-r--r--  4 root root 2482560 ene 13  2016 radeon_dri.so

-rw-r--r--  1 root root 2086952 ene 13  2016 radeonsi_dri.so

-rw-r--r--  4 root root 2482560 ene 13  2016 swrast_dri.so

-rw-r--r--  1 root root 2096024 ene 13  2016 vmwgfx_dri.so 


odroid-utiltity.sh 실행중에 업데이트 되는 녀석이 있는데

얘는 X11 DDX 인가. .먼가 그거 업데이트 하는 녀석

$ armsoc.sh

bash: /usr/local/bin/armsoc.sh: Permission denied 


$ cat /usr/local/bin/armsoc.sh

#!/bin/bash


rebuild_armsoc() { 

get_board 

if [ "$BOARD" = "odroidxu" ]; then

armsoc_err_not_supported

return

fi

if [ "$BOARD" = "odroidc" ]; then

apt-get -y update

apt-get -y dist-upgrade

msgbox "All updates performed. You don't need to run any other updates."

return

fi

do_5422_1504_apt_update

if [ "$DISTRO" = "ubuntu" ]; then

armsoc_rebuild_ubuntu

elif [ "$DISTRO" = "debian" ]; then

armsoc_rebuild_debian

else

armsoc_err_not_supported

fi

}


armsoc_rebuild_ubuntu() { 

if [ "$BOARD" = "odroidxu3" ]; then

msgbox "ODROID-XU3 isn't supported yet"

return

fi

root=/tmp/armsoc-update

buildlog=/root/armsoc-update-$DATE.txt

mkdir -p $root

cd $root

# Install dependencies.

apt-get -y build-dep xserver-xorg-video-armsoc

# Download the blobs

dlf builder.mdrjr.net/tools/u3/4412_r5p0_x11.tar.xz "Downloading Mali Binaries" $root/mali.tar.xz

# Download armsoc DDX from github

dlf https://github.com/mdrjr/xf86-video-armsoc/archive/r4p0.zip "Downloading ARMSOC DDX Sources from Github" $root/ddx.zip

echo "Building Mali DDX and Installing Binaries. Please wait"

echo "Saving build logs to $buildlog"

# Unpack

xz -d mali.tar.xz &>> $buildlog

tar xf mali.tar &>> $buildlog

unzip -qq ddx.zip &>> $buildlog

# Build DDX

cd xf86-video-armsoc-r4p0

./autogen.sh --with-drmmode=exynos --prefix=/usr &>> $buildlog

make -j4 &>> $buildlog

make install &>> $buildlog

cd ..

# Install new Binaries

cd mali

cp -aRP lib* /usr/lib

cp -aRP lib* /usr/lib/arm-linux-gnueabihf/mali-egl

ldconfig

cp config/xorg.conf /etc/X11/xorg.conf

sync

msgbox "Mali is now updated. If something fails or isn't working report on the forums with the following file: $buildlog"

}


armsoc_rebuild_debian() { 

if [ "$BOARD" = "odroidxu3" ]; then

msgbox "ODROID-XU3 isn't supported yet"

return

fi

root=/tmp/armsoc-update

buildlog=/root/armsoc-update-$DATE.txt

mkdir -p $root

cd $root

echo "Debian requires some extra packages to build. We are installing it.. Please wait."

# debian requires some extra packages to build the DDX. So.. lets install it

apt-get -y build-dep xserver-xorg-video-modesetting xserver-xorg-video-nouveau &>> $buildlog

apt-get -y install build-essential git xz-utils xserver-xorg-dev libudev-dev &>> $buildlog

# Download the blobs

dlf builder.mdrjr.net/tools/u3/4412_r5p0_x11.tar.xz "Downloading Mali Binaries" $root/mali.tar.xz

# Download armsoc DDX from github

dlf https://github.com/mdrjr/xf86-video-armsoc/archive/r4p0.zip "Downloading ARMSOC DDX Sources from Github" $root/ddx.zip

echo "Building Mali DDX and Installing Binaries. Please wait"

echo "Saving build logs to $buildlog"

# Unpack

xz -d mali.tar.xz &>> $buildlog

tar xf mali.tar &>> $buildlog

unzip -qq ddx.zip &>> $buildlog

# Build DDX

cd xf86-video-armsoc-r4p0

./autogen.sh --with-drmmode=exynos --prefix=/usr &>> $buildlog

make -j4 &>> $buildlog

make install &>> $buildlog

cd ..

# Install new Binaries

cd mali

cp -aRP lib* /usr/lib

ldconfig

cp config/xorg.conf /etc/X11/xorg.conf

cd /tmp && rm -fr $root

sync

msgbox "Mali is now updated. If something fails or isn't working report on the forums with the following file: $buildlog"

}


armsoc_err_not_supported() {

msgbox "ARMSOC: Your distro isn't supported. Report this on the forums -> Distro $DISTRO and board $BOARD"

}


DDX 깔고 나니 먼가 추가되긴 한데...

/usr/lib/arm-linux-gnueabihf/mali-egl$ ll

total 1172

drwxr-xr-x  2 root root    4096 oct 23 22:19 ./

drwxr-xr-x 94 root root   94208 oct 23 21:11 ../

-rw-r--r--  1 root root      38 may  8  2014 ld.so.conf

lrwxrwxrwx  1 root root      11 feb 18  2015 libEGL.so -> libEGL.so.1*

lrwxrwxrwx  1 root root      13 feb 18  2015 libEGL.so.1 -> libEGL.so.1.4*

lrwxrwxrwx  1 root root      10 feb 18  2015 libEGL.so.1.4 -> libMali.so*

lrwxrwxrwx  1 root root      17 feb 18  2015 libGLESv1_CM.so -> libGLESv1_CM.so.1*

lrwxrwxrwx  1 root root      19 feb 18  2015 libGLESv1_CM.so.1 -> libGLESv1_CM.so.1.1*

lrwxrwxrwx  1 root root      10 feb 18  2015 libGLESv1_CM.so.1.1 -> libMali.so*

lrwxrwxrwx  1 root root      14 feb 18  2015 libGLESv2.so -> libGLESv2.so.2*

lrwxrwxrwx  1 root root      16 feb 18  2015 libGLESv2.so.2 -> libGLESv2.so.2.0*

lrwxrwxrwx  1 root root      10 feb 18  2015 libGLESv2.so.2.0 -> libMali.so*

-rwxr-xr-x  1 root root 1066735 feb 18  2015 libMali.so*

-rw-r--r--  1 root root   22232 feb 22  2013 libUMP.so


Open Source Mali GPUs Linux EXA/DRI2 and X11 Display Drivers

[링크 : http://malideveloper.arm.com/.../open-source-mali-gpus-linux-exadri2-and-x11-display-drivers/...]



log$ grep "EE" Xorg.0.log

[   593.576] (EE) AIGLX error: dlopen of /usr/lib/arm-linux-gnueabihf/dri/armsoc_dri.so failed (/usr/lib/arm-linux-gnueabihf/dri/armsoc_dri.so: cannot open shared object file: No such file or directory)

[   593.576] (EE) AIGLX: reverting to software rendering 


아놔.. 이거 하고 나니 이제 odroid 계정으로 xwin을 구동할수도 없네 -_-

머야?!?!

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

X 시작을 못하는 이유..2  (0) 2016.10.25
X 시작을 못하는 이유..?  (0) 2016.10.24
odorid u3 emmc+sd 설치 순서  (0) 2016.10.22
odroid u3 릴리즈 노트의 중요한... 내용?  (0) 2016.10.22
넌 또 왜 난리니 ㅠㅠ  (0) 2016.10.21
Posted by 구차니
Linux2016. 10. 23. 20:24

The Device Dependent X (DDX) is the part of the x-server that interacts with the hardware.

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


The Direct Rendering Infrastructure (DRI) is a framework for allowing direct access to graphics hardware under the X Window System in a safe, efficient way.

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


In computing, the Direct Rendering Manager (DRM), a subsystem of the Linux kernel, interfaces with the GPUs of modern video cards. DRM exposes an API that user-space programs can use to send commands and data to the GPU, and to perform operations such as configuring the mode setting of the display.

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

'Linux' 카테고리의 다른 글

리눅스 런레벨  (0) 2016.12.12
yaffs2 / ext4 비교?  (0) 2016.11.04
fdisk 파티션이 2048 부터 시작하는 이유  (0) 2016.10.22
hostname을 이용한 자신의 아이피 받아오기  (0) 2016.10.18
파티션 label 변경하기  (0) 2016.10.15
Posted by 구차니
embeded/Cortex-M4 Ti2016. 10. 22. 14:27

음.. lm3s랑 tm4c driverlib을 보다 보니..


tm4c

static void

_HibernateWriteComplete(void)

{

    //

    // Spin until the write complete bit is set.

    //

    while(!(HWREG(HIB_CTL) & HIB_CTL_WRC))

    {

    }

}


void

HibernateEnableExpClk(uint32_t ui32HibClk)

{

    //

    // Turn on the clock enable bit.

    //

    HWREG(HIB_CTL) |= HIB_CTL_CLK32EN;


    //

    // Wait for write complete following register load (above).

    //

    _HibernateWriteComplete();


코드 분위기를 보아하니.. HibernateEnableExpClk()는 쓰지 말고, 얘를 쓰면 될 듯?

void

HibernateClockConfig(uint32_t ui32Config)

{

    uint32_t ui32HIBCtl;


    ASSERT((ui32Config & ~(HIBERNATE_OSC_HIGHDRIVE | HIBERNATE_OSC_LOWDRIVE |

                           HIBERNATE_OSC_DISABLE)) == 0);


    ui32HIBCtl = HWREG(HIB_CTL);


    //

    // Clear the current configuration bits.

    //

    ui32HIBCtl &= ~(HIBERNATE_OSC_HIGHDRIVE | HIBERNATE_OSC_LOWDRIVE |

                    HIBERNATE_OSC_LFIOSC | HIBERNATE_OSC_DISABLE);


    //

    // Set the new configuration bits.

    //

    ui32HIBCtl |= ui32Config & (HIBERNATE_OSC_HIGHDRIVE |

                                HIBERNATE_OSC_LOWDRIVE |

                                HIBERNATE_OSC_LFIOSC |

                                HIBERNATE_OSC_DISABLE);


    //

    // Must be sure that the 32KHz clock is enabled if the hibernate is about

    // to switch to it.

    //

    if(ui32Config & HIBERNATE_OSC_LFIOSC)

    {

        ui32HIBCtl |= HIB_CTL_CLK32EN;

    }


    //

    // Set the hibernation clocking configuration.

    //

    HWREG(HIB_CTL) = ui32HIBCtl;


    //

    // Wait for write completion

    //

    _HibernateWriteComplete();


    //

    // Write the output clock configuration for devices that support

    // controlling the output clocks from the hibernate module.

    //

    if(HIBERNATE_CLOCK_OUTPUT)

    {

        HWREG(HIB_CC) = ui32Config & (HIBERNATE_OUT_SYSCLK |

                                      HIBERNATE_OUT_ALT1CLK);

    }


lm3s

void

HibernateEnableExpClk(unsigned long ulHibClk)

{

    //

    // Turn on the clock enable bit.

    //

    HWREG(HIB_CTL) |= HIB_CTL_CLK32EN;


    //

    // For Fury-class devices, compute the number of delay loops that must be

    // used to achieve the desired delay for writes to the hibernation

    // registers.  This value will be used in calls to SysCtlDelay().

    //

    if(CLASS_IS_FURY)

    {

        g_ulWriteDelay = (((ulHibClk / 1000) * DELAY_USECS) /

                          (1000L * LOOP_CYCLES));

        g_ulWriteDelay++;

    }

}


tm4c 레지스터

WRC는 WR Complete 확인용인데 여기서 벗어나질 못하네



CLK32EN은.. tm4c 되면서 클럭이 무조건 32k로 바뀌었으니..



+

크리스탈이 발진 안하면 루프를 못 빠져 나오나?


The only time that I know of if the code loops like this is if the 32768Hz clock is not getting started. if this is a custom board can you make sure that the 32768Hz crystal is well mounted/soldered?

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

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

tm4c hibernate module oscillator 관련  (0) 2016.10.26
tm4c 비교표  (0) 2016.10.26
tm4c ..어라? hibernate...  (0) 2016.10.20
tm4c123 rtc hibernate module  (0) 2016.09.28
tm4c uart fifo/buffer 문제  (0) 2016.09.28
Posted by 구차니