본문 바로가기
반응형

kernel13

[Kernel Porting-5] H-Smart4412 FND(7-Segment) 점멸하기 작업 환경 -메인 OS : Windows 8.1K(Intel Core i5-4590) -작업 OS : Ubuntu 14.04 64bit(VirtualBox) -장 비 명 : H-Smart4412 1. fnd.c - FND에 '0000' 띄우기 #include #include #include #include #define fnd "/dev/fnd" int main() { int fnd_d; unsigned char fnd_data[4]; if((fnd_d = open(fnd,O_RDWR)) < 0) { perror("open"); exit(1); } fnd_data[0] = 0xC0; fnd_data[1] = 0xC0; fnd_data[2] = 0xC0; fnd_data[3] = 0xC0; write(fn.. 2016. 12. 15.
[Kernel Porting-4] H-Smart4412 LED 점멸하기 작업 환경 -메인 OS : Windows 8.1K(Intel Core i5-4590) -작업 OS : Ubuntu 14.04 64bit(VirtualBox) -장 비 명 : H-Smart4412 1. led.c - LED 점멸하기 #include #include #include #include #include #include #include #define led "/dev/led" int main() { int dev, i; unsigned char data; if((dev = open(led, O_RDWR)) < 0) { printf("Can't Open\n"); exit(0); } for(i=0;i1; data |= 0x80; write(dev,&data,sizeof(unsigned char)); u.. 2016. 12. 14.
[Kernel Porting-3] H-Smart4412 Hello World 만들기 작업 환경 -메인 OS : Windows 8.1K(Intel Core i5-4590) -작업 OS : Ubuntu 14.04 64bit(VirtualBox) -장 비 명 : H-Smart4412 1. 초기 설정 sudo apt-get install gcc-4.4 g++-4.4 g++-4.4-multilib gcc-4.4-multilib lib32z1 2. hello 실행 파일 생성 hello.c 코드 작성 #include int main() { printf("Hello World\n"); return 0; } /opt/gnueabi/opt/ext-toolchain/bin/arm-linux-gnueabihf-gcc -o hello hello.c 실행 3. hello 파일 Upload 윈도우로 hello 파.. 2016. 12. 14.
[Kernel Porting-2] H-Smart4412 SD카드 설정 작업 환경 -메인 OS : Windows 8.1K(Intel Core i5-4590) -작업 OS : Ubuntu 14.04 64bit(VirtualBox) -장 비 명 : H-Smart4412 1. 초기 설정 SD카드 연결 후 fdisk -l 로 드라이브 경로 확인(/dev/sdb) 2. SD카드 설정 ~/Development/Source/bootloader/uboot_4412/sd_fuse 이동 후 tar xvf p4412.tar ./sd_fusing_4412.sh /dev/sdb SD카드 설정 완료. 2016. 12. 14.
반응형