Android 빌드 시 u-boot image 생성을 위한 tool 설치방법
OS : Ubuntu 14.04.5 LTS
Command
$ sudo apt-get install u-boot-mkimage
Error Message
"mkimage" command not found - U-Boot images will not be built
make[1]: *** [arch/arm/boot/uImage] Error 1
make: *** [uImage] Error 2
ERROR: build kernel Failed
2020년 1월 10일 금요일
2019년 4월 15일 월요일
매일프로그래밍 - 코딩테스트 문제 30
매일프로그래밍 - 코딩테스트 문제 30
Given an integer, count number of 1s in binary representation of an integer.
시간 복잡도: O(log n)
input: 6 // 110
output: 2
input: 13 // 1101
output: 3
----------------------------------------------------------------------------
1 #include <stdio.h>
2 #include <string.h>
3 #include <stdlib.h>
4
5 void getCount(int input)
6 {
7 int count = 0;
8
9 fprintf(stdout, "input[%5d]\t[0x%04x]\t", input, input);
10 while (input > 0) {
11 if ( (input % 2) == 1 )
12 count++;
13 input = input/2 ;
14 }
15 fprintf(stdout, "Count[%d]\n",count);
16 }
17
18 int main(int argc, char** argv)
19 {
20 #ifdef __TBD__
21 int loopCnt = 0;
22
23 for (loopCnt = 1; loopCnt < argc; loopCnt++) {
24 getCount(atoi(argv[loopCnt]));
25 }
26 #else
27
28 while (argc > 1) {
29 *argv++;
30 argc--;
31 getCount(atoi(*argv));
32 }
33 #endif
34
35 return 0;
36 }
2019년 3월 28일 목요일
[TIP] Source Insight 3.x 한글(utf-8)주석처리
Source Insight 사용 시 한글 주석이 깨져 보이는 경우에 대한 처리방법에 대해 기술합니다.
( Ref : https://embeddedaroma.tistory.com/31 )
아래 경로에서 파일을 다운로드 받은 후,
- http://www.cnblogs.com/Red_angelX/p/3713935.htm
source insight 가 설치되어 있는 경로 (ex. C:\Program Files (x86)\Source Insight 3)에 압축해제하여 적용합니다.

( Ref : https://embeddedaroma.tistory.com/31 )
아래 경로에서 파일을 다운로드 받은 후,
- http://www.cnblogs.com/Red_angelX/p/3713935.htm
source insight 가 설치되어 있는 경로 (ex. C:\Program Files (x86)\Source Insight 3)에 압축해제하여 적용합니다.
압축해제 파일 중 siutf8.dll 만 적용해도 한글깨지는 현상은 개선이 됩니다.
- sihook.dll 파일을 적용하면 상단 파일탭에 추가로 오픈된 파일리스트가 나와서 적용하지 않음. (개인적인 취향에 맞지 않으므로... :) )
2019년 3월 25일 월요일
Google+ 자료 백업을 완료하며...
2014년 부터 사용해 왔던 google+ 서비스 종료로 인해 과거의 글들을 모두 Blogger로 옮겨왔다.
"기술관련 검색의 기록과 관심사들의 변화를 다시 돌아보는 기회가 되는 것 같다" 라는 말로 애써 위안을 삼아본다.
사라져 버린 링크, 기록을 하다가 마무리 하지 못하고 남겨둔 글들...
오랜 흔적들을 다시 정리했으니 새로운 내용들로 채워보자~!!!
"기술관련 검색의 기록과 관심사들의 변화를 다시 돌아보는 기회가 되는 것 같다" 라는 말로 애써 위안을 삼아본다.
사라져 버린 링크, 기록을 하다가 마무리 하지 못하고 남겨둔 글들...
오랜 흔적들을 다시 정리했으니 새로운 내용들로 채워보자~!!!
[Kernel] CONFIG_USB_CDC_PHONET
Kernel CONFIG_USB_CDC_PHONET: CDC Phonet support
General informations
- The Linux kernel configuration item CONFIG_USB_CDC_PHONET:
* prompt: CDC Phonet support
* type: tristate
* depends on: CONFIG_PHONET
* defined in drivers/net/usb/Kconfig
* found in Linux kernels: 2.6.31–2.6.39, 3.0–3.16, 3.17-rc+HEAD
* modules built: cdc-phonet
* Help text : Choose this option to support the Phonet interface to a Nokia cellular modem, as found on most Nokia handsets with the "PC suite" USB profile.
- https://cateee.net/lkddb/web-lkddb/USB_CDC_PHONET.html
[Kernel] usb 3G USB Dongle 사용을 위한 kernel configs
Kernel #usb 3G USB Dongle bug fix
1. Bug : "unable to enumerate USB device on port "
2. Resolve : enable below kernel configs
+ CONFIG_USB_ARCH_HAS_EHCI=y
+ CONFIG_USB_ACM=y
+ CONFIG_USB_SERIAL_QUALCOMM=y
[Kernel] CONFIG_USB_HWA_HCD
Kernel - CONFIG_USB_HWA_HCD
Host Wire Adapter (HWA) driver (EXPERIMENTAL) found in drivers/usb/host/KconfigThe configuration item CONFIG_USB_HWA_HCD:
* prompt: Host Wire Adapter (HWA) driver (EXPERIMENTAL)
* type: tristate
* depends on: ( CONFIG_EXPERIMENTAL ) && ( CONFIG_USB && CONFIG_UWB )
* defined in drivers/usb/host/Kconfig
* found in Linux kernels: 2.6.28–2.6.39, 3.0–3.6
* modules built: wusb-wa
* Help text
- This driver enables you to connect Wireless USB devices to your system using a Host Wire Adaptor USB dongle. This is an UWB Radio Controller and WUSB Host Controller connected to your machine via USB (specified in WUSB1.0).
To compile this driver a module, choose M here: the module will be called "hwa-hc".
- https://cateee.net/lkddb/web-lkddb/USB_HWA_HCD.html
피드 구독하기:
글 (Atom)