프로그램 사용/xen2012. 3. 27. 22:58

검색을 해보니 커널이 xen 커널이 아닐경우 이런 에러가 발생한다고 한다.

그나저나 linux-image-virtual 패키지로 깔면 USB 키보드가 안되는걸 어쩌라구 ㅠ.ㅠ

그냥 10.04 LTS에 xen은 포기하고 12.04가 나오길 기다리거나 11.10에 해봐야하려나?


$ xm list

ERROR Internal error: Could not obtain handle on privileged command interface (2 = No such file or directory)

Traceback (most recent call last):

  File "/usr/sbin/xm", line 8, in <module>

    from xen.xm import main

  File "/usr/lib/python2.6/dist-packages/xen/xm/main.py", line 61, in <module>

    xc = xen.lowlevel.xc.xc()

xen.lowlevel.xc.Error: (1, 'Internal error', 'Could not obtain handle on privileged command interface (2 = No such file or directory)') 


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

xen / kvm / virtualbox 성능비교  (0) 2012.03.29
xen on ubuntu 11.10  (0) 2012.03.28
ubuntu 10.04 LTS에 xen 설치하기  (0) 2012.03.27
Xen on Ubuntu 11.10  (0) 2012.03.25
kvm - Kernel mode Virtual Machine  (0) 2012.03.06
Posted by 구차니
프로그램 사용/xen2012. 3. 27. 22:50

10.04 LTS에서는 딱히 된다 안된다는 말은 없지만, 

대부분의 링크내용들이 직접 컴파일 하는것 봐서는 64bit desktop 버전을 깔아도 딱히 될것 같진 않다.

[링크 : http://blog.naver.com/wja30/100122757469]


일단 필요한 기본 패키지는 아래와 같은데

$ sudo apt-get install xen-hypervisor-3.3 xen-utils-3.3 xenwatch xen-docs-3.3


$ sudo apt-get install virtinst virt-viewer virt-manager


$ apt-cache search linux-image


머.. virtual 이 가상화 커널 같긴한데, 마우스도 안 먹고 먹통이 되네 후우..

그냥 속편하게(?) 11.10 으로 다시 시도를 해봐야 하려나?

[링크 : http://packages.ubuntu.com/lucid/linux-image-virtual]



---

2012.3.31 추가

11.10 에서 해보고 와서 10.04 에서 해보니 xen-hypervisor-3.3을 설치해도 커널이 추가되진 않는듯 하다.

grub에서 해당 xen 메뉴가 뜨지 않는다.

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

xen on ubuntu 11.10  (0) 2012.03.28
xm list 에러  (0) 2012.03.27
Xen on Ubuntu 11.10  (0) 2012.03.25
kvm - Kernel mode Virtual Machine  (0) 2012.03.06
xen 사용가능한 cpu 확인하기  (0) 2012.01.25
Posted by 구차니
embeded/ARM2012. 3. 27. 16:38

실험적으로 1900인건 찾았는데 음..

일단 아래의 메뉴얼은 deprecated 된 녀석이라 현재 버전의 stellarisware에는 존재하지 않는 내용이고

[링크 : http://www.ti.com/lit/ug/spmu063/spmu063.pdf]


KEIL MDK에서 epoch 관련 검색을 해보고는 있지만 딱히 눈에 띄지 않고 있다.

그나저나 이런 epoch가 라이브러리 차이라면..

MDK냐 code sorcery냐 codered 냐에 따라서도 다를수 있다는 의미이려나?


2012/03/27 - [Linux] - localtime() 과 mktime()을 이용하기


Posted by 구차니
Linux2012. 3. 27. 14:46

mktime()을 사용하기 전에 1970을 빼고 값을 넣어준다면

localtime()으로 struct tm 형으로 받을 때에는 ts->tm_year + 1970 으로 출력을 해주어야 한다.

다른 시스템과의 혼용을 하지 않은다면은 1970을 빼지 않고 사용해도 되지만

유닉스 / 리눅스 시스템과 시간을 같이 사용하기 위해서는 1970 epoch를 계산해주어야 한다.


#include "stdio.h"
#include "time.h"

int main(void)
{
    time_t     now;
    struct tm  tmtm;
    struct tm  *ts;
    char       buf[80];

    /* Get the current time */
    //now = time(NULL);
    time(&now);

    /* Format and print the time, "ddd yyyy-mm-dd hh:mm:ss zzz" */
    ts = localtime(&now);
    strftime(buf, sizeof(buf), "%a %Y-%m-%d %H:%M:%S %Z", ts);
    printf("%s\n", buf);
    printf("%d\n",ts->tm_year);

    return 0;
}


2009/12/09 - [Linux] - 시간관련 함수/구조체 - time API on linux

---

혹시나 해서 찾아봤는데 시스템에 따라서는 epoch가 1900일수도 있다고 한다.

유닉스 계열은 1970 / NTP에서는 1900을 epoch로 사용한다.


[링크 : http://en.wikipedia.org/wiki/Epoch_(reference_date)]

'Linux' 카테고리의 다른 글

리눅스를 위한 아이튠스 서버 만들기  (0) 2012.07.08
G840 cpuinfo  (0) 2012.04.14
partitionless disk  (2) 2012.01.06
sudo와 selinux  (0) 2011.12.25
조이스틱 / 조이패드 on ubuntu  (2) 2011.12.23
Posted by 구차니
개소리 왈왈/블로그2012. 3. 27. 14:16

머.. 이미지를 나란히 올린수 있고, 표도 1x1로 수정안해도 되서 좋긴한데


엔터로 인한 줄 간격이 br이 아닌 p로 강제 변환되면서 글 간격이 멀어진건 그닥 마음에 안드는데 -_-
아무튼, 쉬프트 누른다고 손에 쥐나겠다!!!



 

게다가 이 넘의 에디터가 WYSIWYG 이 지원을 안하면 머하는데 쓰라구!!!

왼쪽이 내용이고 오른쪽이 에디터 화면인데 멀 어쩌란거야?


게다가 이미지 수정시에는 전에처럼 편하게 안되나? 꼭 확인을 눌러야 하는데다가

가로 길이만 조정하면 세로는 알아서 되던게 이제 수동으로 계산해서 가로 세로 길이를 줄여줘야 한다.



또한 이미지 첨부할때는 왜 매번 올리겠냐고 물어 보는겨? -_-


 현재로서 가장 불편한 점은 아마도 아래와 같은 카테고리의 부재가 아닐까 생각된다. 왼쪽은 구버전 오른쪽은 신버전인데, 구버전에는 2단계 카테고리를 지원했지만, 지금은 1단계로만 지원하고 있어서 제대로 보이지 않는다.

 


대충 정리 하자면.
장점
1. 이미지를 나란히 넣어도 문제가 생기지 않는다.
2. 표를 만들때 3 x 3을 수정안해도 된다!

단점
1. 글쓸때 카테고리 시발! 
2. 쉬프트 엔터.. 시발
3. 뒷북치는 일방적인 공지 니미럴!

'개소리 왈왈 > 블로그' 카테고리의 다른 글

우비는 주말에도 일을 하나 -ㅁ-!!  (0) 2012.05.06
요즘 스팸댓글이 왜케 많이 달려?  (0) 2012.03.30
sns 는 쇄락중?  (2) 2012.02.02
우비 woobi.co.kr  (2) 2012.01.26
왈도체 댓글?  (0) 2011.12.15
Posted by 구차니
개소리 왈왈/컴퓨터2012. 3. 26. 23:11
데탑을 하나 대충 만들고 나서 부터
노트북 두대가 자리를 빼앗긴 상황 -ㅁ-


남는 부품 모아서 두세 세대 만들려고 했던게 욕심이었을까?
아무튼.. 하나는 파기하고 하나는 분양하고 하나는 교환해주고 머 그렇게 살면 되겠...지? ㅋ 

'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

지름목록(예정)  (0) 2012.04.03
super talent SSD 8GB IDE vertical type  (0) 2012.03.28
740g 와 780g 내장 그래픽 성능차이  (1) 2012.03.16
...  (2) 2012.03.14
ATI HD2100 과 X550 성능비교(?)  (1) 2012.03.11
Posted by 구차니
프로그램 사용/xen2012. 3. 25. 23:19
혹시나 해서 신버전(?)으로 찾아보니
$ sudo apt-get install xen-hypervisor-4.1-amd64 xen-utils-4.1 xenwatch xen-tools xen-utils-common xenstore-utils  
[링크 : http://www.beyondlinux.com/2011/11/02/install-xen-4-1-and-setup-your-cloud-os-on-ubuntu-11-10/]   
xen 하이퍼바이저 바이너리가 존재한다.

With kernels 2.6.39+ for the first time it is possible to provide a dom0 and domU without the kernel patch.
[링크 : http://martincarstenbach.wordpress.com/.../getting-started-with-xen-virtualisation-on-ubuntu-11-10/


---
+ 혹시나 해서 10.04 LTS에서 검색을 xen-hypervisor로 검색을 하니 3.3 버전이 나온다.
음.. 12.04가 코앞이니 머 상관없으려나?
[링크 : http://packages.ubuntu.com/search?keywords=xen-hypervisor-3.3

$ sudo apt-cache search xen | grep ^xen
xen-docs-3.3 - documentation for XEN, a Virtual Machine Monitor
xen-hypervisor-3.3 - The Xen Hypervisor for i386 and amd64.
xen-utils-3.3 - XEN administrative tools
xenner - An xen emulator without the need of a xen hypervisor.
xenomai-doc - Xenomai documentation
xenomai-runtime - Xenomai runtime utilities
xenwatch - Virtualization utilities, mostly for Xen 
 

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

xm list 에러  (0) 2012.03.27
ubuntu 10.04 LTS에 xen 설치하기  (0) 2012.03.27
kvm - Kernel mode Virtual Machine  (0) 2012.03.06
xen 사용가능한 cpu 확인하기  (0) 2012.01.25
xen 설치관련 문서링크  (0) 2010.11.14
Posted by 구차니
embeded/ARM2012. 3. 23. 10:16
리셋이 안된다고 배째는데
아무튼 TAP 값은 맞으니까 칩 종류를 받아오는 것일테고 -_-
의심이 가는건 nTRST 연결 상태?

  • nSRST bi-directional (open collector)
    This pin serves two purposes. It can be used by the adapter to reset the target board, which is most useful during remote debugging. Furthermore, the adapter is able to detect that the reset is triggered on the target by another event, like pressing the reset button or a watchdog timeout.
  • nTRST from adapter to target
    According to the JTAG standard, the TAP controller is reset to a known state by keeping TMS high for five consecutive TCK cycles. However, some targets have problems with this sequence and thus require a hardware reset, which is marked optional in the IEEE specification. On several chips, like the AT91R40008 used on Ethernut 3, nSRST and nTRST are internally tied together. The disadvantage with this design is, that you can’t trigger a breakpoint immediately after a target hardware reset. If this signal is not used on the target, it is recommended to pull up this line with 10kOhm.
[링크 : http://www.jtagprogrammer.com/jtag-signals/]
2010/06/26 - [embeded/ARM] - ARM JTAG - Wiggler 14pin , 20pin pinout

arm 설명에서는 반드시있을 이유는 없지만, 하는걸 권장한다고 한다.
2012/03/23 - [embeded/ARM] - KEIL MDK(ARM)에 H-JTAG 사용하기

[링크 : http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka3887.html]
    [링크 : http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka3894.html] nTRST 
    [링크 : http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka3895.html] nSRST

nTRST는 Target ReSeT 인거 같은데
nSRST는 무슨 리셋이려나? 
Posted by 구차니
embeded/ARM2012. 3. 23. 09:50
MDK with Wiggler parallel jtag

Step 1. H-JTAG을 설치하고 메뉴에서 ToolConf 를 실행한다.
           기본값대로 KEIL MDK를 설치했다면 "C:\Keil" 경로를 선택한다.


Step 2. Utilities 와 Debug 탭에서 Target Driver를 H-JTAG 으로 변경한다.



Step 3. H-JTAG를 실행하여 tray에 들어갔는지 확인한다.
          H-JTAG 프로그램을 실행하지 않은 상태라면 아래와 같은 에러가 발생한다.


Step 4. 굽는다.




그런데 회사에서 사용하는 보드가 JTAG 케이블이 잘못 연결되었는지
장치 인식은 되지만 TAP configuration을 확인하라면서 정작 구워지지는 않는다.


[링크 : http://www.hjtag.com/en/upimg/H-JTAG%20USER%20MANUAL%20(EN).rar]
2012/01/27 - [embeded/ARM] - Cortex-M3 LM3S1968 Evaluation board

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

TI LM3S1607 time epoch  (0) 2012.03.27
H-JTAG 에러이유?  (0) 2012.03.23
lm flash example  (0) 2012.03.13
TI LM3S 시리즈 특징 - hibernate module / non-volatile memory  (0) 2012.03.06
arm-linux-gcc 와 arm-elf-gcc의 차이점  (2) 2012.01.16
Posted by 구차니
특정 파일을 선택한 후 우클릭 - TortoiseSVN - Properties에서
Add Property를 하면 아래의 창이 뜨고 원하는 속성을 추가하면 된다.



 [링크 : http://johnbokma.com/mexit/2008/09/30/subversion-svn-keywords-property.html]

---
2012.03.23 추가
소스에서 $Rev$를 추가하고
위의 과정을 통해 snv:keywords 에서 property value를 Rev로 입력해준다.
그리고 나서 커밋을 하면 아래와 같이 소스가 변경된다.


다시 해제 하면 아래와 같이 소스가 변경됨을 알 수 있다.


 
Posted by 구차니