+zeroconf

This option is only available if distcc was compiled with Avahi support enabled at configure time. When this special entry is present in the hosts list, distcc will use Avahi Zeroconf DNS Service Discovery (DNS-SD) to locate any available distccd servers on the local network. This avoids the need to explicitly list the host names or IP addresses of the distcc server machines. The distccd servers must have been started with the "--zeroconf" option to distccd. An important caveat is that in the current implementation, pump mode (",cpp") and compression (",lzo") will never be used for hosts located via zeroconf. 

[링크 : https://linux.die.net/man/1/distcc]


avahi 데몬이 있어야 zeroconf가 가능하대서 확인해보니 없.. 다?!

ubuntu 14.04 LTS for odroid

$ distcc -v

Using built-in specs.

COLLECT_GCC=/usr/bin/gcc-4.8.real

COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.8/lto-wrapper

Target: arm-linux-gnueabihf

Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.3' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --disable-libitm --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-armhf/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-armhf --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-armhf --with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --enable-multilib --disable-sjlj-exceptions --with-arch=armv7-a --with-fpu=vfpv3-d16 --with-float=hard --with-mode=thumb --disable-werror --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf

Thread model: posix

gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.3) 


요건 라즈베리 jessie

음따!

$ distcc -v

Using built-in specs.

COLLECT_GCC=cc

COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.9/lto-wrapper

Target: arm-linux-gnueabihf

Configured with: ../src/configure -v --with-pkgversion='Raspbian 4.9.2-10' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libitm --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-armhf --with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-sjlj-exceptions --with-arch=armv6 --with-fpu=vfp --with-float=hard --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf

Thread model: posix

gcc version 4.9.2 (Raspbian 4.9.2-10) 


고로.. zeroconf는 사용불가!


export DISTCC_HOSTS="+zeroconf"

[링크 : https://wiki.debian.org/Distcc]

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

distcc 를 DHCP 에서.. 2?  (0) 2016.10.18
distcc /etc/distcc/hosts와 DISTCC_HOSTS  (0) 2016.10.17
distcc 를 DHCP 에서..  (0) 2016.09.28
distcc kernel compile 재시도..  (0) 2016.09.28
distcc-pump error  (0) 2016.09.25
Posted by 구차니
프로그램 사용/bind2016. 10. 17. 18:57




A Address

CNAME Canonical Name

MX Mail eXchange

NS  NameServer

PTR PoinTeR record

SOA Start Of Authority



@     IN     SOA    <primary-name-server> <hostmaster-email> (

<serial-number>

<time-to-refresh>

<time-to-retry>

<time-to-expire>

<minimum-TTL> )


The @ symbol places the $ORIGIN directive

[링크 : https://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-bind-zone.html]

[링크 : https://help.ubuntu.com/community/BIND9ServerHowto]


$ORIGIN example.com.     ; designates the start of this zone file in the namespace

$TTL 1h                  ; default expiration time of all resource records without their own TTL value

example.com.  IN  SOA   ns.example.com. username.example.com. ( 2007120710 1d 2h 4w 1h )

example.com.  IN  NS    ns                    ; ns.example.com is a nameserver for example.com

example.com.  IN  NS    ns.somewhere.example. ; ns.somewhere.example is a backup nameserver for example.com

example.com.  IN  MX    10 mail.example.com.  ; mail.example.com is the mailserver for example.com

@             IN  MX    20 mail2.example.com. ; equivalent to above line, "@" represents zone origin

@             IN  MX    50 mail3              ; equivalent to above line, but using a relative host name

example.com.  IN  A     192.0.2.1             ; IPv4 address for example.com

              IN  AAAA  2001:db8:10::1        ; IPv6 address for example.com

ns            IN  A     192.0.2.2             ; IPv4 address for ns.example.com

              IN  AAAA  2001:db8:10::2        ; IPv6 address for ns.example.com

www           IN  CNAME example.com.          ; www.example.com is an alias for example.com

wwwtest       IN  CNAME www                   ; wwwtest.example.com is another alias for www.example.com

mail          IN  A     192.0.2.3             ; IPv4 address for mail.example.com

mail2         IN  A     192.0.2.4             ; IPv4 address for mail2.example.com

mail3         IN  A     192.0.2.5             ; IPv4 address for mail3.example.com 

[링크 : https://en.wikipedia.org/wiki/Zone_file]

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

bind 설치 및 설정  (0) 2016.10.17
nslookup / bind  (0) 2014.08.25
Posted by 구차니
프로그램 사용/bind2016. 10. 17. 18:34

dns 데몬 설치

$ sudo apt-get install bind9 


dns zone 설정

$ ll /etc/bind

합계 56

-rw-r--r-- 1 root root 2389  9월 28 08:35 bind.keys

-rw-r--r-- 1 root root  237  9월 28 08:35 db.0

-rw-r--r-- 1 root root  271  9월 28 08:35 db.127

-rw-r--r-- 1 root root  237  9월 28 08:35 db.255

-rw-r--r-- 1 root root  353  9월 28 08:35 db.empty

-rw-r--r-- 1 root root  270  9월 28 08:35 db.local

-rw-r--r-- 1 root bind  275 10월 17 18:25 db.minimonk.net

-rw-r--r-- 1 root root 3048  9월 28 08:35 db.root

-rw-r--r-- 1 root bind  463  9월 28 08:35 named.conf

-rw-r--r-- 1 root bind  567 10월 17 18:24 named.conf.default-zones

-rw-r--r-- 1 root bind  165  9월 28 08:35 named.conf.local

-rw-r--r-- 1 root bind  890 10월 17 17:58 named.conf.options

-rw-r----- 1 bind bind   77 10월 17 17:58 rndc.key

-rw-r--r-- 1 root root 1317  9월 28 08:35 zones.rfc1918 


도메인 설정

$ cat named.conf.default-zones

// prime the server with knowledge of the root servers

zone "." {

        type hint;

        file "/etc/bind/db.root";

};


// be authoritative for the localhost forward and reverse zones, and for

// broadcast zones as per RFC 1912


zone "localhost" {

        type master;

        file "/etc/bind/db.local";

};


zone "127.in-addr.arpa" {

        type master;

        file "/etc/bind/db.127";

};


zone "minimonk.net" IN {

        type master;

        file "/etc/bind/db.minimonk.net";

};

zone "0.in-addr.arpa" {

        type master;

        file "/etc/bind/db.0";

};


zone "255.in-addr.arpa" {

        type master;

        file "/etc/bind/db.255";

}; 


$ cat db.netcam4u.net

;

; BIND reverse data file for local loopback interface

;

$TTL    604800

@       IN      SOA     minimonk.net. root.minimonk.net. (

                              1         ; Serial

                         604800         ; Refresh

                          86400         ; Retry

                        2419200         ; Expire

                         604800 )       ; Negative Cache TTL

;

@       IN      NS      ns.minimonk.

        IN      A       192.168.10.13 


dns 서버 재기동

$ sudo service bind9 restart 


zone 파일만 다시 읽어 적용하기

$ sudo service bind9 reload 


dns 조회-간이

$ nslookup "조회할 도메인" "dns 서버" 


명령어 없을 경우

$ sudo apt-get install dnsutils 


dns 조회-설정

/etc/resolv.conf 바꾸거나 알아서 잘?


어찌 되건 조회는 되는 기분인데.. 잘 되는진 모르겠네


[링크 : http://webdir.tistory.com/163]

[링크 : http://thisstory.tistory.com/entry/우분투ubunt-DNS-서버-구축-내부-DNS-서버를-만들기]

[링크 : http://cissnei.tistory.com/166]

[링크 : http://sangchul.kr/199]

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

bind zone 파일 내용  (0) 2016.10.17
nslookup / bind  (0) 2014.08.25
Posted by 구차니

모토쿼티 살때 준 USB 케이블

끊어져서 더이상 쓸 수 없어서 쓰레기통 행




와.. 6년이나 버텨줬네 ㄷㄷ

2010/08/24 - [개소리 왈왈/핸드폰(안드로이드)] - 스마트 폰 - 결국 월 7만원


'개소리 왈왈 > 사진과 수다' 카테고리의 다른 글

EOS M 1년 남짓한 컷수..  (0) 2017.02.16
내가 예민한거 였을까?  (2) 2016.10.30
쌍무지개  (0) 2016.08.29
장노출 테스트 - 자동차 궤적사진  (0) 2016.08.13
밑장 빼다 손목 날아간 그녀  (0) 2016.07.25
Posted by 구차니
embeded/odroid2016. 10. 16. 00:16

어우.. 뜬금없는 해결책 ㅠㅠ

다행히도.. 8핀 커넥터 쪽에 UART0이 빠져있어서 이걸로 해결?


그래도 UART1을 살리고 싶긴한데 흑.. 영 안되네..

왜 RX는 되는데 TX가 안될까?


일단 선 배선은

앞에서 보는 기준으로

J4 - TX(2) / RX(3)

UART- TX(2) / RX(3)

적당히 꼬아주면 된다.




그나저나.. 시간 겁나 짧게 해놨네.. ㄷㄷㄷ 가뜩이나 어댑터 전원 꼽기 힘든데

1초 해둔거 같다???


OK


U-Boot 2010.12-svn (May 12 2014 - 15:05:46) for Exynox4412



CPU: S5PC220 [Samsung SOC on SMP Platform Base on ARM CortexA9]

APLL = 1000MHz, MPLL = 880MHz

DRAM:  2 GiB


PMIC VERSION : 0x00, CHIP REV : 2

TrustZone Enabled BSP

BL1 version: 20121128



Checking Boot Mode ... EMMC4.41

REVISION: 2.0

Manufacture ID 0x11 [ 7456MB ]

NAME: S5P_MSHC4

MMC Device 0: 7456 MB

ÿMMC Device 1: 15193 MB

MMC Device 2 not found

*** Warning - using default environment


USB3503 NINT = OUTPUT LOW!

ModeKey Check... run normal_boot

No ethernet found.

Hit any key to stop autoboot:  0

Exynos4412 #


Exynos4412 # ?

?       - alias for 'help'

base    - print or set address offset

bdinfo  - print Board Info structure

boot    - boot default, i.e., run 'bootcmd'

bootd   - boot default, i.e., run 'bootcmd'

bootelf - Boot from an ELF image in memory

bootm   - boot application image from memory

bootp   - boot image via network using BOOTP/TFTP protocol

bootvx  - Boot vxWorks from an ELF image

cfgload - cfgload - boot.ini textfile load from FAT32


check_64gb- check_64gb  - mmc total size check for sd/mmc.


check_mmc_size- check_mmc_size  - mmc size check for sd/mmc.


check_value- check_value        - value check.


chpart  - change active partition

cmp     - memory compare

coninfo - print console devices and information

cp      - memory copy

crc32   - checksum calculation

dcache  - enable or disable data cache

dnw     - dnw     - initialize USB device and ready to receive for Windows serv)


echo    - echo args to console

editenv - edit environment variable

emmc    - Open/Close eMMC boot Partition

env     - environment handling commands

exit    - exit script

ext4load- load binary file from a Ext4 filesystem

ext4ls  - list files in a directory (default /)

false   - do nothing, unsuccessfully

fastboot- fastboot- use USB Fastboot protocol


fatformat- fatformat - disk format by FAT32


fatinfo - print information about filesystem

fatload - load binary file from a dos filesystem

fatls   - list files in a directory (default /)

fdisk   - fdisk - fdisk for sd/mmc.


fdt     - flattened device tree utility commands

get_mmc_block_count- check_mmc_block_count       - get mmc total block count fo.


go      - start application at address 'addr'

help    - print command description/usage

icache  - enable or disable instruction cache

iminfo  - print header information for application image

imxtract- extract a part of a multi-image

itest   - return true/false on integer compare

load    - load binary file from a filesystem

loadb   - load binary file over serial line (kermit mode)

loads   - load S-Record file over serial line

loady   - load binary file over serial line (ymodem mode)

loop    - infinite loop on address range

ls      - list files in a directory (default /)

md      - memory display

mm      - memory modify (auto-incrementing address)

mmc     - MMC sub system

mmcinfo - mmcinfo <dev num>-- display MMC info

movi    - movi  - sd/mmc r/w sub system for SMDK board

mtdparts- define flash/nand partitions

mtest   - simple RAM read/write test

mw      - memory write (fill)

nfs     - boot image via network using NFS protocol

nm      - memory modify (constant address)

ping    - send ICMP ECHO_REQUEST to network host

printenv- print environment variables

reginfo - print register information

reset   - Perform RESET of the CPU

run     - run commands in an environment variable

saveenv - save environment variables to persistent storage

setenv  - set environment variables

setexpr - set environment variable as the result of eval expression

showvar - print local hushshell variables

sleep   - delay execution for some time

source  - run script from memory

system_update- system update - system update by FAT32 or EXT4


test    - minimal test like /bin/sh

tftpboot- boot image via network using TFTP protocol

true    - do nothing, successfully

usb     - USB sub-system

usbboot - boot from USB device

version - print monitor version

wait_usb_trigger- wait_usb_trigger - wait usb trigger detect for recovery


wipeenv - Wipe uboot env. 


Exynos4412 # emmc open 0

eMMC OPEN Success.!!

                        !!!Notice!!!

!You must close eMMC boot Partition after all image writing!

!eMMC boot partition has continuity at image writing time.!

!So, Do not close boot partition, Before, all images is written.!

Exynos4412 # emmc close 0

eMMC CLOSE Success.!!


boot.txt가 아니라 boot.ini로 하면 더 편하려나?

Exynos4412 # boot

do_fat_cfgload : cmd = fatload mmc 0:1 0x41000000 boot.ini

reading boot.ini

** Unable to read file boot.ini **

NAME: S5P_MSHC4

NAME: S5P_MSHC4

>>> Load Boot Script from mmc 0:1 <<<

reading boot.scr

Warning : Reads a file that is smaller than the cluster size.

355 bytes read in 33 ms (9.8 KiB/s)

## Executing script at 40008000

reading zImage

2355768 bytes read in 57 ms (39.4 MiB/s)

reading uInitrd

2190770 bytes read in 31 ms (67.4 MiB/s)

Boot with zImage

## Loading init Ramdisk from Legacy Image at 42000000 ...

   Image Name:   uInitrd 3.8.13.30

   Image Type:   ARM Linux RAMDisk Image (uncompressed)

   Data Size:    2190706 Bytes = 2.1 MiB

   Load Address: 00000000

   Entry Point:  00000000


Starting kernel ...


Uncompressing Linux... done, booting the kernel. 


+

2016.10.17

[링크 : http://odroid.com/dokuwiki/doku.php?id=en:u3_ioport_uart]

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

odroid 커널 빌드(on odroid) 실패  (0) 2016.10.17
odroid 커널 distcc 성공?  (0) 2016.10.17
odroid u3 uart 마지막... 희망(?)  (0) 2016.10.15
odroid u3 커널 빌드  (0) 2016.10.15
odroid kernel boot args 설정 관련  (0) 2016.10.15
Posted by 구차니
embeded/odroid2016. 10. 15. 23:57

얘네는 참.. pdf 메뉴얼이라던가.. pcb 위치별 1번 핀이라던가 이런거 알려주는게 참 부실해..

정 안되면.. UART1은 포기하고 UART0

GPIO 핀 쪽에 있는 저녀석을 써보는 수밖에..




[링크 : http://odroid.com/dokuwiki/doku.php?id=en:u3_enhancement_ioport]

[링크 : https://drive.google.com/file/d/0B4UPrML8Nk9lSk5aai1MQ1VVTmc/edit]



[링크 : http://odroid.com/dokuwiki/doku.php?id=en:u3_hardware]

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

odroid 커널 distcc 성공?  (0) 2016.10.17
odroid UART0 ...  (0) 2016.10.16
odroid u3 커널 빌드  (0) 2016.10.15
odroid kernel boot args 설정 관련  (0) 2016.10.15
fat32에서는 실행이 안되네?!?!  (0) 2016.10.14
Posted by 구차니
embeded/odroid2016. 10. 15. 18:01

얘네는 확신이 없고

$ sudo apt-get install libc6-i386 zlib1g


일단 얘네는 확실히 설치해야 할 듯..

그나저나 왜.. 64bit 가 아니라 32bit 용으로 밖에 arm용 gcc를 제공하지 않는거지?

$ sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 ncurses-dev


[링크 : http://rin2papa.tistory.com/48]


$ wget http://dn.odroid.com/toolchains/gcc-linaro-arm-linux-gnueabihf-4.7-2013.04-20130415_linux.tar.bz2

$ sudo mkdir -p /opt/toolchains

$ sudo tar jxvf gcc-linaro-arm-linux-gnueabihf-4.7-2013.04-20130415_linux.tar.bz2 -C /opt/toolchains/


export ARCH=arm

export CROSS_COMPILE=arm-linux-gnueabihf-

export PATH=/opt/toolchains/gcc-linaro-arm-linux-gnueabihf-4.7-2013.04-20130415_linux/bin:$PATH


$ git clone --depth 1 https://github.com/hardkernel/linux.git -b odroid-3.8.y

$ cd linux

$ make odroidu_defconfig

$ make menuconfig

$ make 


[링크 : http://odroid.com/dokuwiki/doku.php?id=en:u3_building_kernel&s[]=u3&s[]=build]


사양이 좋진 않아서 한 30분 넘게 빌드 하고..

게다가 cpu가 발열을 못버텨 자꾸 죽어서 듀얼인데 싱글 코어로 돌려서

더 한참 ㅋㅋ


그나저나 머가 문제인지... 받는건 되는데 보내는건 안되고

minicom을 끄면 먹통이 되어버리고 putty를 끊고 다시 해야 한다 -ㅁ-?? 머지?!?!?

$ sudo minicom -s


Welcome to minicom 2.7


OPTIONS: I18n

Compiled on Jan  1 2014, 17:08:55.

Port /dev/ttySAC1, 20:24:16


Press CTRL-A Z for help on special keys


OK


U-Boot 2010.12-svn (May 12 2014 - 15:05:46) for Exynox4412



CPU: S5PC220 [Samsung SOC on SMP Platform Base on ARM CortexA9]

APLL = 1000MHz,0MPLL = 880MHz

DRAM: (2 GiB


PMIC VERSION : 0x00, CHIP REV : 2

TrustZone Enabled0BSP

BL1 version: 20121128



Checking Boot Mode ... EMMC4.41

REVISION: 2.0

Manufacture ID 0x11 [ 7456MB ]

NAME: S5P_MSHC4

MMC Device 0: 7456 MB

MMC Device 1: 14804 MB

MMC Device 2 not found

*** Warning - using default environment


USB3503 NINT = OUTPUT LOW!

ModeKey Check... run normal_boot

No ethernet found.

Hit any key to stop autoboot:  0

Exynos4412 # 


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

odroid UART0 ...  (0) 2016.10.16
odroid u3 uart 마지막... 희망(?)  (0) 2016.10.15
odroid kernel boot args 설정 관련  (0) 2016.10.15
fat32에서는 실행이 안되네?!?!  (0) 2016.10.14
uboot emmc command  (0) 2016.10.14
Posted by 구차니
embeded/odroid2016. 10. 15. 11:41

/proc/config.gz를 받아서 확인해보니

부트로더 커널 인자를 받아서 확장하는 게 기본값..


그러니까.. 커널 기본 인자 + 부트로더 인자니까..

망할 console=ttySAC1,115200은 절대 빠질수가 없다는 거..


(console=tty1 console=ttySAC1,115200 mem=2047M) Default kernel command string 

       Kernel command line type (Extend bootloader kernel arguments)  --->      

 

  lqqqqqqqqqqqqqqqqqqqqq Kernel command line type qqqqqqqqqqqqqqqqqqqqqk

  x  Use the arrow keys to navigate this window or press the hotkey of x

  x  the item you wish to select followed by the <SPACE BAR>. Press    x

  x  <?> for additional information about this option.                 x

  x lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x

  x x        ( ) Use bootloader kernel arguments if available        x x

  x x        (X) Extend bootloader kernel arguments                  x x

  x x        ( ) Always use the default kernel command string        x x

  x x                                                                x x

  x x                                                                x x

  x x                                                                x x

  x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj x

  tqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqu

  x                       <Select>      < Help >                       x

  mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj 

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

odroid u3 uart 마지막... 희망(?)  (0) 2016.10.15
odroid u3 커널 빌드  (0) 2016.10.15
fat32에서는 실행이 안되네?!?!  (0) 2016.10.14
uboot emmc command  (0) 2016.10.14
odroid 커널.. 환경 설정 파일 /proc  (0) 2016.10.13
Posted by 구차니
Linux2016. 10. 15. 11:07

$ sudo e2label /dev/device new-label-name-here


[링크 : http://www.cyberciti.biz/faq/linux-modify-partition-labels-command-to-change-diskname/]

[링크 : https://linux.die.net/man/8/e2label]

'Linux' 카테고리의 다른 글

fdisk 파티션이 2048 부터 시작하는 이유  (0) 2016.10.22
hostname을 이용한 자신의 아이피 받아오기  (0) 2016.10.18
구버전 사용시 호환(?)  (0) 2016.10.12
strip 된 so 파일의 symbol 보기  (0) 2016.09.21
sysbench  (0) 2016.09.04
Posted by 구차니
embeded/odroid2016. 10. 14. 20:40

어라... 리눅스 커널 받아서 빌드 하려니까

퍼미션 부족으로 인해 실행이 안된다고 배째서 확인을 해보니


[링크 : http://android.stackexchange.com/.../why-can-i-not-assign-exec-permissions-to-a-file-on-the-sd-card]


$ mount

/dev/mmcblk1p2 on / type ext4 (rw,noatime,nodiratime,errors=remount-ro)

proc on /proc type proc (rw,noexec,nosuid,nodev)

none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)

sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)

none on /sys/fs/cgroup type tmpfs (rw)

none on /sys/kernel/debug type debugfs (rw)

udev on /dev type devtmpfs (rw,mode=0755)

devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)

tmpfs on /tmp type tmpfs (rw,nosuid,nodev,mode=1777)

tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)

none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)

none on /run/shm type tmpfs (rw,nosuid,nodev)

none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)

/dev/mmcblk1p1 on /media/boot type vfat (rw,nosuid,nodev,flush,umask=000)

systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)

gvfsd-fuse on /run/user/1001/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=odroid)

/dev/mmcblk0p1 on /media/odroid/BOOT type vfat (rw,nosuid,nodev,uid=1001,gid=1001,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks2)



$ sudo mount -o remount,rw,umask=0000 /dev/mmcblk0p1 /media/odroid/BOOT


$ mount

/dev/mmcblk1p2 on / type ext4 (rw,noatime,nodiratime,errors=remount-ro)

proc on /proc type proc (rw,noexec,nosuid,nodev)

none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)

sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)

none on /sys/fs/cgroup type tmpfs (rw)

none on /sys/kernel/debug type debugfs (rw)

udev on /dev type devtmpfs (rw,mode=0755)

devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)

tmpfs on /tmp type tmpfs (rw,nosuid,nodev,mode=1777)

tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)

none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)

none on /run/shm type tmpfs (rw,nosuid,nodev)

none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)

/dev/mmcblk1p1 on /media/boot type vfat (rw,nosuid,nodev,flush,umask=000)

systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)

gvfsd-fuse on /run/user/1001/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=odroid)

/dev/mmcblk0p1 on /media/odroid/BOOT type vfat (rw,umask=0000)


remount 해봤으나.. 여전히 chmod 로 777 변경해도 안바뀐다..

심지어 sudo chmod 777 해도 ㄷㄷㄷ


umask가 아니라 다른걸로 해줘야하나?

$ sudo mount -t ntfs -o rw,auto,user,fmask=0022,dmask=0000 /dev/whatever /mnt/whatever 

[링크 : http://askubuntu.com/questions/11840/how-do-i-use-chmod-on-an-ntfs-or-fat32-partition]


       dmask=value

              Set the umask applied to directories only.

  The default  is  the umask of the current process.  The value is given in octal.


       fmask=value

              Set the umask applied to regular files only.

  The default is the umask of the current process.  The value is given in octal. 


       showexec

              If set, the execute permission bits of the file will be allowed

 only if the extension part of  the name is .EXE, .COM, or .BAT. Not set by default.



remount,exec

[링크 : http://android.stackexchange.com/questions/35658/adb-permission-denied-to-run-a-configure-file]

[링크 : http://www.linuxquestions.org/./permission-denied-when-trying-to-execute-an-application-on-a-sd-card./]


음.. auto, exec 등등 여러가지 넣어줘도 안되네.. 걍 ext4로 밀어 버릴까..


+

2016.10.15


showexec로 인해서 확장자 별로 자동으로 인식이 된다는데 실험...


$ touch a.exe

odroid@odroid_1:/media/odroid/MYLINUXLIVE$ ll

total 12

drwx------  2 odroid odroid 8192 oct 16 01:08 ./

drwxr-x---+ 3 root   root   4096 oct 16 01:08 ../

-rwxr-xr-x  1 odroid odroid    0 oct 16 01:08 a.exe*


$ chmod 444 a.exe


$ ll

total 12

drwx------  2 odroid odroid 8192 oct 16 01:08 ./

drwxr-x---+ 3 root   root   4096 oct 16 01:08 ../

-rwxr-xr-x  1 odroid odroid    0 oct 16 01:08 a.exe*



걍.. 퍼미션이 확장자 따라가는 듯.. vfat에서는

[링크 : https://www.kernel.org/doc/Documentation/filesystems/vfat.txt]

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

odroid u3 커널 빌드  (0) 2016.10.15
odroid kernel boot args 설정 관련  (0) 2016.10.15
uboot emmc command  (0) 2016.10.14
odroid 커널.. 환경 설정 파일 /proc  (0) 2016.10.13
odroid u3 eMMC + SD 부팅 방법...  (0) 2016.10.13
Posted by 구차니