FROMA UART Debug Code

Posted in 개인/ㄴFROMA by

FROMA 개발 시 디버깅 목적을 위한 코드

## ASM : 특정 문자열 출력 ##

UART_SEND:
  ldr   r1,=0x48020014  // UART3 LSR
  ldr   r2,[r1]
  and   r2,r2,#0x20
  cmp   r2,#0x00
  beq   UART_SEND
  ldr   r1,=0x48020000
  mov   r2,#0x61    //r3
  str   r2,[r1]


## C : 특정 문자열 출력 ##

while((((*(volatile unsigned int *)(0x48020014))&0x20)>>5)==0);
(*(volatile unsigned int *)(0x48020000)) = 0x61;


## C : 입력한 키 값을 +1하여 반환 ##

#define REG32(addr) (*(volatile unsigned int *)(addr))

unsigned int reg=0x00;

while(1){
  while(REG32(0x48020014)&0x01==0);
  reg = REG32(0x48020000);
  
  if(reg>0){
    while((REG32(0x48020014)&0x20)>>5)==0);
    REG32(0x48020000) = reg + 1;
}


U-boot Reference URL

Posted in 개인/ㄴOS by

## U-boot 관련 ###

U-boot Doc

http://www.denx.de/wiki/DULG/Manual


u-boot 분석 참고자료 IAMROOT

http://www.iamroot.org/xe/Kernel_9_ARM/78389


[펌][S5PV210] Booting Sequence of S5PV210( S5PV210의 부팅 순서 )

http://myje.tistory.com/entry/%ED%8E%8CS5PV210-Booting-Sequence-of-S5PV210-S5PV210%EC%9D%98-%EB%B6%80%ED%8C%85-%EC%88%9C%EC%84%9C


U-Boot 분석(1)~(5)

http://blog.naver.com/idrukawa/100054094629


U-boot (Universal Boot Loader, #1)

http://flylhs83.tistory.com/entry/U-boot-Universal-Boot-Loader-1


부트로더 동작원리 분석

http://embedded.dankook.ac.kr/~baeksj/course/2009_Project2/LN_2_Bootloader.pdf


[Uboot] u-boot.lds 파일 분석 -이솝사이트 펌- 

http://blog.naver.com/rainofsoul81/130109949043



## 리눅스 부팅 관련 ###

리눅스 부팅 프로세스 연구 2

http://blog.naver.com/dicecorp/73064579


리눅스 SMP부팅 

http://blog.naver.com/snowgoddess/106184187


## Pandaboard 관련 ###

Pandaboard Omap Bootloader Project

http://www.omappedia.com/wiki/Bootloader_Project


u boot와 x loader의 관계

http://sol2man2diary.wordpress.com/2012/11/21/u-boot%EC%99%80-x-loader%EC%9D%98-%EA%B4%80%EA%B3%84/


U-Boot SPL framework becomes generic

http://www.emlinews.net/2012/10/u-boot-spl-framework-becomes-generic/


Virtualbox Ubuntu에서 adb devices 안잡힐 때

Posted in 개인/ㄴAndroid by

Virtualbox는 USB 2.0를 사용하기 위해선 Virtualbox Extension Pack을 설치해줘야한다.


https://www.virtualbox.org/wiki/Downloads

위 사이트에서 Oracle VM VirtualBox Extension Pack을 다운받는다.

Virtualbox 관리자를 실행시키고 파일-환경설정-확장에서 패키지 추가를 통해 다운받은 파일을 추가해준다.

그리고 해당 가상머신에서 설정-USB-USB 2.0 EHCI 컨트롤러 사용하기를 선택한 후 사용할 USB장치를 추가시켜주면 된다.