Linux2014. 12. 14. 21:52
일반적으로. 요즘 시스템은 EXT4를 많이 채용하지만
이녀석이 비록 SSD 대응하도록 만들어져 있긴 하지만 wear leveling 보다는 trim 지원 정도라고 해야하려나?
아무튼 wear leveling이 없다 보니 sd 메모리와 같은 MTD 장비에는 적합하지 않고
그로 인해 ext4를 쓰다 보면 파일 테이블에 손상을 입고 부팅이 불가능해질 가능성이 높다.

정식으로 MTD를 지원하는 파일 시스템은
JFFS / JFSS2 / YAFS / UBIFS 정도이고
EXT4는 MTD를 정식 지원하진 않는다.

임베디드 시스템에서의 커널변수 및 관련 자료
[링크 : http://free-electrons.com/blog/managing-flash-storage-with-linux/ ]

[링크 : http://en.wikipedia.org/wiki/Flash_file_system]
2010/11/21 - [개소리 왈왈/핸드폰(안드로이드)] - 갤럭시S 프로요, 그리고 부두
2012/04/04 - [Linux/Ubuntu] - 우분투 SSD 설정하기 

'Linux' 카테고리의 다른 글

dd / progress  (0) 2014.12.22
udev rule  (0) 2014.12.18
TTY / PTS 약자  (0) 2014.12.14
expect - shell script  (0) 2014.12.10
tty / pts redirect  (0) 2014.12.09
Posted by 구차니
Linux2014. 12. 14. 21:16
리눅스 장치명으로 콘솔은
/dev/tty(시리얼) 나 /dev/pts(ssh)로 대개 잡히는데
약자를 찾아보니..

Teletypewriter
Pseudo terminal slave

일려나?

[링크 : http://en.wikipedia.org/wiki/PTS]
[링크 : http://en.wikipedia.org/wiki/TTY

'Linux' 카테고리의 다른 글

udev rule  (0) 2014.12.18
플래시용 파일 시스템과 EXT4  (0) 2014.12.14
expect - shell script  (0) 2014.12.10
tty / pts redirect  (0) 2014.12.09
rootfs / 부트 속도 향상하기  (0) 2014.12.07
Posted by 구차니
35주년이라는 말에 웬지 피식
이걸 몇 주년 챙길 정도로 좋은일일까.... 

[링크 : http://media.daum.net/politics/others/newsview?newsid=20141212105714063 ]

'개소리 왈왈 > 정치관련 신세한탄' 카테고리의 다른 글

태풍전야의 고요?  (0) 2015.02.26
네이트온 비밀대화라...  (0) 2014.12.21
대졸 신입 월급 278만원?  (0) 2014.11.30
8.15 광복절  (0) 2014.08.15
면접 보고 옴  (0) 2014.07.08
Posted by 구차니
configure 상으로는 차이가 없으나
$ CC="distcc gcc" ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether ln -s works... yes
checking for gcc... distcc gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether distcc gcc accepts -g... yes
checking for distcc gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of distcc gcc... gcc3
checking whether distcc gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... distcc gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for ranlib... ranlib
checking for a sed that does not truncate output... /bin/sed
checking for ar... /usr/bin/ar
checking for perl... /usr/bin/perl
checking for gdb... /usr/bin/gdb
checking dependency style of distcc gcc... gcc3
$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for ranlib... ranlib
checking for a sed that does not truncate output... /bin/sed
checking for ar... /usr/bin/ar
checking for perl... /usr/bin/perl
checking for gdb... /usr/bin/gdb
checking dependency style of gcc... gcc3

distcc 안되는 경우
make[3]: Entering directory `/mnt/disk1/home/minimonk/work/valgrind/valgrind-3.6.1/memcheck'
../coregrind/link_tool_exe_linux 0x38000000 distcc gcc  -Wno-long-long  -Wno-pointer-sign -fno-stack-protector   -o memcheck-x86-linux -m32 -mpreferred-stack-boundary=2 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -O2 -static -nodefaultlibs -nostartfiles -u _start -Wl,--build-id=none -m32 memcheck_x86_linux-mc_leakcheck.o memcheck_x86_linux-mc_malloc_wrappers.o memcheck_x86_linux-mc_main.o memcheck_x86_linux-mc_translate.o memcheck_x86_linux-mc_machine.o memcheck_x86_linux-mc_errors.o ../coregrind/libcoregrind-x86-linux.a ../VEX/libvex-x86-linux.a -lgcc
cc: gcc: 그런 파일이나 디렉터리가 없습니다
distcc[14875] ERROR: compile (null) on localhost failed

로컬 컴파일 되는 경우
make[3]: Entering directory `/mnt/disk1/home/minimonk/work/valgrind/valgrind-3.6.1/memcheck'
gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I../include -I../VEX/pub -DVGA_x86=1 -DVGO_linux=1 -DVGP_x86_linux=1  -m32 -mpreferred-stack-boundary=2 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -O2 -Wno-long-long  -Wno-pointer-sign -fno-stack-protector -MT memcheck_x86_linux-mc_leakcheck.o -MD -MP -MF .deps/memcheck_x86_linux-mc_leakcheck.Tpo -c -o memcheck_x86_linux-mc_leakcheck.o `test -f 'mc_leakcheck.c' || echo './'`mc_leakcheck.c
mv -f .deps/memcheck_x86_linux-mc_leakcheck.Tpo .deps/memcheck_x86_linux-mc_leakcheck.Po
gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I../include -I../VEX/pub -DVGA_x86=1 -DVGO_linux=1 -DVGP_x86_linux=1  -m32 -mpreferred-stack-boundary=2 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -O2 -Wno-long-long  -Wno-pointer-sign -fno-stack-protector -MT memcheck_x86_linux-mc_malloc_wrappers.o -MD -MP -MF .deps/memcheck_x86_linux-mc_malloc_wrappers.Tpo -c -o memcheck_x86_linux-mc_malloc_wrappers.o `test -f 'mc_malloc_wrappers.c' || echo './'`mc_malloc_wrappers.c
mv -f .deps/memcheck_x86_linux-mc_malloc_wrappers.Tpo .deps/memcheck_x86_linux-mc_malloc_wrappers.Po
gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I../include -I../VEX/pub -DVGA_x86=1 -DVGO_linux=1 -DVGP_x86_linux=1  -m32 -mpreferred-stack-boundary=2 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -O2 -Wno-long-long  -Wno-pointer-sign -fno-stack-protector -MT memcheck_x86_linux-mc_main.o -MD -MP -MF .deps/memcheck_x86_linux-mc_main.Tpo -c -o memcheck_x86_linux-mc_main.o `test -f 'mc_main.c' || echo './'`mc_main.c
mv -f .deps/memcheck_x86_linux-mc_main.Tpo .deps/memcheck_x86_linux-mc_main.Po
gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I../include -I../VEX/pub -DVGA_x86=1 -DVGO_linux=1 -DVGP_x86_linux=1  -m32 -mpreferred-stack-boundary=2 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -O2 -Wno-long-long  -Wno-pointer-sign -fno-stack-protector -MT memcheck_x86_linux-mc_translate.o -MD -MP -MF .deps/memcheck_x86_linux-mc_translate.Tpo -c -o memcheck_x86_linux-mc_translate.o `test -f 'mc_translate.c' || echo './'`mc_translate.c
mv -f .deps/memcheck_x86_linux-mc_translate.Tpo .deps/memcheck_x86_linux-mc_translate.Po
gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I../include -I../VEX/pub -DVGA_x86=1 -DVGO_linux=1 -DVGP_x86_linux=1  -m32 -mpreferred-stack-boundary=2 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -O2 -Wno-long-long  -Wno-pointer-sign -fno-stack-protector -MT memcheck_x86_linux-mc_machine.o -MD -MP -MF .deps/memcheck_x86_linux-mc_machine.Tpo -c -o memcheck_x86_linux-mc_machine.o `test -f 'mc_machine.c' || echo './'`mc_machine.c
mv -f .deps/memcheck_x86_linux-mc_machine.Tpo .deps/memcheck_x86_linux-mc_machine.Po
gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I../include -I../VEX/pub -DVGA_x86=1 -DVGO_linux=1 -DVGP_x86_linux=1  -m32 -mpreferred-stack-boundary=2 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -O2 -Wno-long-long  -Wno-pointer-sign -fno-stack-protector -MT memcheck_x86_linux-mc_errors.o -MD -MP -MF .deps/memcheck_x86_linux-mc_errors.Tpo -c -o memcheck_x86_linux-mc_errors.o `test -f 'mc_errors.c' || echo './'`mc_errors.c
mv -f .deps/memcheck_x86_linux-mc_errors.Tpo .deps/memcheck_x86_linux-mc_errors.Po
../coregrind/link_tool_exe_linux 0x38000000 gcc  -Wno-long-long  -Wno-pointer-sign -fno-stack-protector   -o memcheck-x86-linux -m32 -mpreferred-stack-boundary=2 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -O2 -static -nodefaultlibs -nostartfiles -u _start -Wl,--build-id=none -m32 memcheck_x86_linux-mc_leakcheck.o memcheck_x86_linux-mc_malloc_wrappers.o memcheck_x86_linux-mc_main.o memcheck_x86_linux-mc_translate.o memcheck_x86_linux-mc_machine.o memcheck_x86_linux-mc_errors.o ../coregrind/libcoregrind-x86-linux.a ../VEX/libvex-x86-linux.a -lgcc 

머가 문제인지 모르겠으나..
아마도..(?) -lgcc로 gcc.a라던가 이런게 전송이 안되서 그런게 아닐까 추측이 된다. 

ubuntu 12.04 기준
/usr/lib/gcc/i686-linux-gnu/4.6.3/libgcc.a 가 존재한다.
[링크 : http://askubuntu.com/questions/346377/cannot-find-lgcc-s]

아마도.. 두개의 시스템 gcc 버전이 상이하거나 아키텍쳐 상의 차이로
디렉토리가 달라 libgcc.a 의 경로를 찾지 못해 에러가 난 것으로 보인다.
즉.. distcc를 구성할때는 동일한 배포판, 동일한 버전으로 설치해야 사용이 용이할 것으로 보인다.

--

임시 파일은 /tmp에 생성된다.
/tmp$ ll
합계 804
drwxrwxrwt  8 root     root     245760 12월 12 13:36 ./
drwxr-xr-x 23 root     root       4096  6월 11  2014 ../
drwxrwxrwt  2 root     root       4096 12월 12 10:38 .ICE-unix/
-r--r--r--  1 root     root         11 12월 12 10:37 .X0-lock
drwxrwxrwt  2 root     root       4096 12월 12 10:37 .X11-unix/
-rw-------  1 distccd  nogroup  315392 12월 12 13:36 ccIxjVed.s
-rw-------  1 distccd  nogroup       0 12월 12 13:35 distcc_d37970ab.stderr
-rw-r--r--  1 distccd  nogroup       0 12월 12 13:35 distcc_d41570ab.stdout
-rw-------  1 distccd  nogroup  225936 12월 12 13:35 distccd_c84770ab.i
-rw-------  1 distccd  nogroup       0 12월 12 13:35 distccd_d70770ab.o
drwx------  2 minimonk minimonk   4096 12월 12 10:38 keyring-ZMR3zZ/
drwx------  2 minimonk minimonk   4096 12월 12 10:38 pulse-Gj2NwjL3C0so/
drwx------  2 root     root       4096 12월 12 10:37 pulse-PKdhtXMmr18n/
drwx------  2 minimonk minimonk   4096 12월 12 10:38 ssh-vFvOqnIn1567/
-rw-rw-r--  1 minimonk minimonk      0 12월 12 10:37 unity_support_test.0 

[링크 : http://manpages.ubuntu.com/manpages/maverick/man1/distccd.1.html]

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

distcc-pump error  (0) 2016.09.25
distcc 크로스 컴파일/커널 빌드 관련  (0) 2016.09.13
distcc 작동모드  (0) 2014.12.09
ccache & distcc  (0) 2014.12.08
distcc on ubuntu  (0) 2014.12.08
Posted by 구차니
Programming/qt2014. 12. 11. 09:41
qt를 웹으로 띄울바에는..
차라리 V8로 교체하고 webkit으로 웹 브라우저를 띄운후.
이걸 HTML5를 통해 VNC 접속하게 하는게 편할거 같아서 일단 조사...

JSC는 JavaScript default Core 의 약자 이려나?

[링크 : http://webkit.sed.hu/blog/20101216/benchmarking-qtwebkit-v8-linux]
[링크 : http://blog.qt.digia.com/blog/2010/02/02/how-to-improve-webkit-performance/]
[링크 : http://blog.qt.digia.com/blog/2012/09/13/qt-4-8-3-released/] Qt4.8.3에는 webkit 2.2.3
[링크 : http://stackoverflow.com/questions/14680047/build-qtwebkit-with-v8]
[링크 : http://qt-project.org/wiki/V8_Port]

'Programming > qt' 카테고리의 다른 글

php - c shared memory  (0) 2014.12.16
qt fancybrowser  (0) 2014.12.16
Qt for Embedded Linux 와 VNC  (0) 2014.12.11
qt dialog / webkit 연동  (0) 2014.12.10
qt signal & slot - connect / disconnect / emit  (0) 2014.11.21
Posted by 구차니
Programming/qt2014. 12. 11. 09:40
일단 이걸 활성화 하려면..
Qt 4.8 에서는 -qt-gfx-vnc를 해줘야 하는데
음.. gfx??? 프레임 버퍼를 바로 보내주는 걸려나?

platform
QtEmbedded 컴파일 필요
$ cd path/to/QtEmbedded
$ ./configure -qt-gfx-vnc
$ make

Qt Application
$ ./analogclock -qws -display VNC:0 


[링크 : http://qt-project.org/doc/qt-4.8/qt-embedded-vnc.html]
2014/12/11 - [프로그램 사용/VNC] - VNC web 버전?

'Programming > qt' 카테고리의 다른 글

qt fancybrowser  (0) 2014.12.16
qt webkit javascript 엔진 V8로 교체하기?  (0) 2014.12.11
qt dialog / webkit 연동  (0) 2014.12.10
qt signal & slot - connect / disconnect / emit  (0) 2014.11.21
qt 프로젝트 파일 연관  (0) 2014.11.20
Posted by 구차니
프로그램 사용/VNC2014. 12. 11. 09:32
HTML5 / websocket을 이용한다는데
쓸만한지 클라이언트측 부하는 얼마나 걸릴지 체크할 필요는 있어보인다.


[링크 : http://stackoverflow.com/questions/3240633/web-based-vnc-client]
    [링크 : http://kanaka.github.io/noVNC/]
    [링크 : http://guac-dev.org/]
[링크 : https://chrome.google.com/webstore/detail/vnc%C2%AE-viewer-for-google-ch/...a] 크롬 확장

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

rfb(remote framebuffer) protocol  (0) 2022.01.26
gconf-editor / ubuntu 14.04 LTS vino + VNC 접속불가  (0) 2015.03.22
VNC 5.0.5  (0) 2013.09.04
tsclient에 VNC 추가하기  (0) 2011.12.31
UVNC - Ultra VNC  (2) 2010.11.26
Posted by 구차니
Programming/qt2014. 12. 10. 22:42
QT 다이얼로그 자체를 편리하게 웹으로 바로 출력하는 건 없고
Dialog에 webkit을 불러 사용하는 방법 정도다 -_ㅠ

하긴.. 다이얼로그를 변환없이 바로 웹으로 출력이 되면 그건 혁명이지..



실제로 가능한진 실제로 구현해 봐야겠지만
Qtwui나
QtWebkit 도 있는데 대부분 검색으로 나오는건 Diaglog에 웹 브라우저를 넣는것이 대부분인 것으로 보인다.

[링크 : http://ariya.ofilabs.com/2011/10/hybrid-nativeweb-using-dialog-boxes.html]
[링크 : http://qt-project.org/doc/qt-4.8/qwebframe.html#addToJavaScriptWindowObject
[링크 : http://qt-project.org/doc/qt-4.8/qtwebkit-bridge.html ]

'Programming > qt' 카테고리의 다른 글

qt webkit javascript 엔진 V8로 교체하기?  (0) 2014.12.11
Qt for Embedded Linux 와 VNC  (0) 2014.12.11
qt signal & slot - connect / disconnect / emit  (0) 2014.11.21
qt 프로젝트 파일 연관  (0) 2014.11.20
QT font 관련  (0) 2014.11.06
Posted by 구차니
embeded2014. 12. 10. 20:06
MMU는 Memory Management Unit
RTOS는 Real Time OS 인데 ucLinux 에서 MMU 없이 RTOS에 가깝게 구현하다 보니
헷갈리는게 있는건가 싶기도 한데..

[링크 : http://en.wikipedia.org/wiki/Memory_management_unit]
[링크 : http://en.wikipedia.org/wiki/Real-time_operating_system]

일단 MMU가 없으면 가상주소를 쓸수 없어 물리 주소를 바로 맵핑하기에
context switching에 장점이 있을수 있다고 한다.
암튼, MMU가 없다고 RTOS 인건 아닌데 도대체 어디서 헷갈린걸까 -_-

[링크 : https://kldp.org/node/63733]
[링크 : http://xenostudy.tistory.com/10]
[링크 : http://www.freertos.org

uclinux는 micro-computer linux로
MMU가 없는 마이크로 프로세서에 대한 linux port 라고 한다.
[링크 : http://www.uclinux.org/ ]

'embeded' 카테고리의 다른 글

PowerQUICC  (0) 2015.04.02
S29AL016J 플래시 메모리 BYTE/WORD MODE  (0) 2014.12.23
ltib / rc.conf  (0) 2014.11.24
Z80 M6800  (0) 2014.01.27
기즈모 스피어 / 라즈베리 파이  (0) 2014.01.02
Posted by 구차니
Linux2014. 12. 10. 09:34
옆 사람에게 듣게 된 녀석인데..
과거(?) 이야기나 통신프로그램에서 자동응답 하듯
리눅스 쉘에 나오는 글씨에 대해서 반응하는 스크립트를 작성할수 있는 녀석

예를들어
expect로
login: 이라는 것과 password: 라는 것에
자동으로 아이디와 비밀번호를 넣어 줄수 있다고 한다!!!

[링크 : http://linux.die.net/man/1/expect]
[링크 : http://en.wikipedia.org/wiki/Expect]

[링크 : http://ktdsoss.tistory.com/151
[링크 : http://forum.falinux.com/zbxe/index.php?document_srl=791984&mid=lecture_tip

'Linux' 카테고리의 다른 글

플래시용 파일 시스템과 EXT4  (0) 2014.12.14
TTY / PTS 약자  (0) 2014.12.14
tty / pts redirect  (0) 2014.12.09
rootfs / 부트 속도 향상하기  (0) 2014.12.07
tar.gz 의 내용은 갱신이.. 안됨  (0) 2014.12.06
Posted by 구차니