본문 바로가기

2019/01

trace32 - set conditional breakpoint using arm register value UI 창에서는 입력이 어려우나 아래와 같이 command 로 입력하면 된다. Break.Set function_name /Program /CONDition Register(X0)==699 더보기
Git 유용한 명령어들 commit 한 내용을 roll back 하기 local repository 에 마지막 commit 을 날릴 수 있다. git reset --hard HEAD^ git reset HEAD^^^ "^" 의 갯수만큼 back 으로 돌아가나.. 파일자체는 원본으로 남아있어서 해당 파일이 modified 상태가 된다. 위 상태에서 아래와 같이 --head 옵션을 주면, 서버의 상태로 파일이 원복된다. git reset --hard HEAD 위 두 명령어를 합치면 아래와 같다. git reset --hard HEAD^^^ git status 에서 modified file 이 붉은 색으로 표시된다면 아직, add 가 안되어 workspace 에서 stage 로 가지 못한 것이다. 아래 문구도 유심히 보면 된다. n.. 더보기
arm interrupt mask / unmask 의 의미 mask -> disable 하겠다. unmask -> enable 하겠다. 더보기
linux shell 의 sysfs에서 device-tree 뽑아내는 방법 dtc 라는 tool 을 사용하면 된다. dtc -I fs -O dts -o output.dts /proc/device-tree 더보기
arm sysmmu 와 mmu 의 차이 core ---(mmu stage 1)--> (mmu stage 2)--> DRAM peripheral --(sys mmu stage 1) --> (sysmmu stage 2) --> DRAM 더보기
find and grep on linux shell Sometimes, we want to perform 'grep' command among results of 'find' command.I'll introduce how can we do this easier. The way is very simple - magic keyword is "--include=" Example, below command find "PAGE" word among the files what has ".dts" string in file name. grep -snra --include="*.dts*" "PAGE" 더보기