embeded/raspberry pi2015. 4. 9. 12:10

된다는거야 안된다는거야 -_-

일단은 cmdline 상에는 rootfstype 옵션이 ext4가 기본이라고 한다.


ubuntu snappy와 openelec의 파일 시스템 지원여부 차이점

ubuntu@localhost:~$ cat /proc/filesystems

nodev   sysfs

nodev   rootfs

nodev   ramfs

nodev   bdev

nodev   proc

nodev   cgroup

nodev   cpuset

nodev   tmpfs

nodev   devtmpfs

nodev   debugfs

nodev   securityfs

nodev   sockfs

nodev   pipefs

nodev   rpc_pipefs

nodev   configfs

nodev   devpts


        ext3

        ext2

        ext4


        vfat




        msdos

nodev   ecryptfs

nodev   nfs

nodev   nfs4


nodev   autofs




        f2fs

nodev   mqueue


OpenELEC:~ # cat /proc/filesystems

nodev   sysfs

nodev   rootfs

nodev   ramfs

nodev   bdev

nodev   proc

nodev   cgroup


nodev   tmpfs

nodev   devtmpfs

nodev   debugfs


nodev   sockfs

nodev   pipefs

nodev   rpc_pipefs


nodev   devpts

        reiserfs

        ext3

        ext2

        ext4

        squashfs

        vfat

        iso9660

        hfsplus

        hfs



nodev   nfs

nodev   nfs4

nodev   cifs

nodev   autofs

        udf

        jfs

        xfs

        f2fs

nodev   mqueue

        btrfs


라즈베리 파이 2 커널에는 jffs2는 기본적으로 존재하지 않는다 (안돼!!!! ㅠㅠ)

 .config - Linux/arm 3.18.10 Kernel Configuration

 > File systems qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq

  lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq File systems qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk

  x  Arrow keys navigate the menu.  <Enter> selects submenus ---> (or empty submenus ----).  Highlighted        x

  x  letters are hotkeys.  Pressing <Y> includes, <N> excludes, <M> modularizes features.  Press <Esc><Esc> to  x

  x  exit, <?> for Help, </> for Search.  Legend: [*] built-in  [ ] excluded  <M> module  < > module capable    x

  x                                                                                                             x

  x lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x

  x x                 < > Second extended fs support                                                          x x

  x x                 < > Ext3 journalling file system support                                                x x

  x x                 <*> The Extended 4 (ext4) filesystem                                                    x x

  x x                 [*]   Use ext4 for ext2/ext3 file systems                                               x x

  x x                 [*]   Ext4 POSIX Access Control Lists                                                   x x

  x x                 [*]   Ext4 Security Labels                                                              x x

  x x                 [ ]   EXT4 debugging support                                                            x x

  x x                 [ ] JBD2 (ext4) debugging support                                                       x x

  x x                 <M> Reiserfs support                                                                    x x

  x x                 [ ]   Enable reiserfs debug mode                                                        x x

  x x                 [ ]   Stats in /proc/fs/reiserfs                                                        x x

  x x                 [*]   ReiserFS extended attributes                                                      x x

  x x                 [*]     ReiserFS POSIX Access Control Lists                                             x x

  x x                 [*]     ReiserFS Security Labels                                                        x x

  x x                 <M> JFS filesystem support                                                              x x

  x x                 [*]   JFS POSIX Access Control Lists                                                    x x

  x x                 [*]   JFS Security Labels                                                               x x

  x x                 [ ]   JFS debugging                                                                     x x

  x x                 [*]   JFS statistics                                                                    x x

  x x                 <M> XFS filesystem support                                                              x x

  x x                 [*]   XFS Quota support                                                                 x x

  x x                 [*]   XFS POSIX ACL support                                                             x x

  x x                 [*]   XFS Realtime subvolume support                                                    x x

  x x                 [ ]   XFS Verbose Warnings                                                              x x

  x x                 [ ]   XFS Debugging support                                                             x x

  x x                 <M> GFS2 file system support                                                            x x

  x x                 [ ]   GFS2 DLM locking                                                                  x x

  x x                 <M> OCFS2 file system support                                                           x x

  x x                 <M>   O2CB Kernelspace Clustering                                                       x x

  x x                 <M>   OCFS2 Userspace Clustering                                                        x x

  x x                 [*]   OCFS2 statistics                                                                  x x

  x x                 [*]   OCFS2 logging support                                                             x x

  x x                 [ ]   OCFS2 expensive checks                                                            x x

  x x                 <M> Btrfs filesystem support                                                            x x

  x x                 [*]   Btrfs POSIX Access Control Lists                                                  x x

  x x                 [ ]   Btrfs with integrity check tool compiled in (DANGEROUS)                           x x

  x x                 [ ]   Btrfs will run sanity tests upon loading                                          x x

  x x                 [ ]   Btrfs debugging support                                                           x x

  x x                 [ ]   Btrfs assert support                                                              x x

  x x                 <M> NILFS2 file system support                                                          x x

  x x                 [*] Enable POSIX file locking API                                                       x x

  x x                 [*] Dnotify support                                                                     x x

  x x                 [*] Inotify support for userspace                                                       x x

  x x                 [*] Filesystem wide access notification                                                 x x

  x x                 -*- Quota support                                                                       x x

  x x                 [ ] Report quota messages through netlink interface                                     x x

  x x                 [*] Print quota warnings to console (OBSOLETE)                                          x x

  x x                 [ ] Additional quota sanity checks                                                      x x

  x x                 <M> Old quota format support                                                            x x

  x x                 <M> Quota format vfsv0 and vfsv1 support                                                x x

  x x                 <*> Kernel automounter version 4 support (also supports v3)                             x x

  x x                 <M> FUSE (Filesystem in Userspace) support                                              x x

  x x                 <M>   Character device in Userspace support                                             x x

  x x                 < > Overlay filesystem support                                                          x x

  x x                     Caches  --->                                                                        x x

  x x                     CD-ROM/DVD Filesystems  --->                                                        x x

  x x                     DOS/FAT/NT Filesystems  --->                                                        x x

  x x                     Pseudo filesystems  --->                                                            x x

  x x                 [*] Miscellaneous filesystems  --->                                                     x x

  x x                 [*] Network File Systems  --->                                                          x x

  x x                 -*- Native language support  --->                                                       x x

  x x                 <M> Distributed Lock Manager (DLM)  --->                                                x x

  x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj x

  tqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqu

  x                          <Select>    < Exit >    < Help >    < Save >    < Load >                           x

  mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj 


[링크 : http://www.raspberrypi.org/forums/viewtopic.php?t=61631&p=460046]

[링크 : http://elinux.org/RPi_cmdline.txt]

[링크 : https://forum.openwrt.org/viewtopic.php?id=52133]

[링크 : https://fiasko-nw.net/~thomas/projects/rpi/usb-rootfs.html.en

Posted by 구차니
embeded/raspberry pi2015. 4. 9. 08:12

크게 어려운 건 없고..(?)

kernel 에서 jffs2를 지원하고

(cat /proc/filesystem 으로 확인)


mkfs.jffs2를 통해 생성

단, 몇가지 옵션을 주지 않으면 생성이 되지 않는 것으로 보인다.



+ flash 메모리에서나 쓸수 있지 sd는 못쓰는 듯?


[링크 : http://www.stlinux.com/howto/Flash/booting-example]

[링크 : https://forum.openwrt.org/viewtopic.php?id=52133] 라즈베리 파이에 JFFS2 하기

Posted by 구차니
embeded/raspberry pi2015. 4. 7. 22:58

댓글제보로 인해서 이제 다시 확인!


Last login: Thu Jan  1 00:01:16 1970

ubuntu@localhost:~$ sudo snappy update

date

Traceback (most recent call last):

  File "/usr/bin/snappy", line 25, in <module>

    status = Main().__main__()

  File "/usr/lib/python3/dist-packages/snappy/main.py", line 195, in __main__

    return callback(args)

  File "/usr/lib/python3/dist-packages/snappy/main.py", line 511, in _do_update

    for pkg in ClickDataSource().upgradable_apps]

  File "/usr/lib/python3/dist-packages/snappy/click.py", line 180, in upgradable_apps

    all_updates_list = repo.get_upgradable()

  File "/usr/lib/python3/dist-packages/click/repository.py", line 183, in get_upgradable

    headers={"content-type": "application/json"})

  File "/usr/lib/python3/dist-packages/click/network.py", line 70, in http_request

    curl.perform()

pycurl.error: (60, 'server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none')


에러를 다시보니 로그인 시간이 1970년! epoch로 되어있고

아마도.. openelec 처럼 기본적으로 타임서버를 통해 받아오지 않아 시간이 제대로 설정되지 않았던 것으로 보인다.

라즈베리 파이는 RTC가 없어서 매번 네트워크나 수동으로 잡아줘야 하는데..

snappy 버전에서는 일부러 빼놓은건가?


date 명령을 통해서 시간을 업데이트 하고

$ sudo date 0407225715

Tue Apr  7 22:57:00 UTC 2015

[링크 : https://www.linux.co.kr/home/lecture/index.php?cateNo=&secNo=&theNo=&leccode=244]


업데이트 하니 오홍!! 된다!

$ sudo snappy update

ubuntu-core    124 MB     [==========================================]    OK 

Applying [|]


헐.. 리부팅을 시키네 ㅋㅋ

Applying: Done

Reboot to use the new ubuntu-core. 



2015/03/01 - [개소리 왈왈/라즈베리 파이 2] - 라즈베리 파이 2 ubuntu / snappy




Posted by 구차니
embeded/raspberry pi2015. 3. 31. 18:05

어떤 수광부를 사야할지 몰라서

IrDA USB 동글부터 해서 이것저것 검색중..


[링크 : http://www.rasplay.org/?p=3518] 확장모듈

[링크 : http://www.rasplay.org/?p=997] 리모컨 DIY

[링크 : http://cafe.naver.com/pipc/1125]

[링크 : http://xbmc-korea.com/xe/tips/100217]

[링크 : http://xbmc-korea.com/xe/tips/98703]

Posted by 구차니
embeded/raspberry pi2015. 3. 24. 22:26

심심하니 일단 armv7-a / cortex-a7 용으로 설정하고 궈궈

qt-everywhere-opensource-src-5.3.2/qtbase/mkspecs/devices/linux-rasp-pi2-g++$ cat qmake.conf 

#

# qmake configuration for Broadcom's Raspberry PI

# http://wiki.qt-project.org/Devices/RaspberryPi


include(../common/linux_device_pre.conf)


QT_QPA_DEFAULT_PLATFORM = wayland


QMAKE_LFLAGS           += -Wl,-rpath-link,$$[QT_SYSROOT]/opt/vc/lib


QMAKE_LIBDIR_OPENGL_ES2 = $$[QT_SYSROOT]/opt/vc/lib

QMAKE_LIBDIR_EGL        = $$QMAKE_LIBDIR_OPENGL_ES2


QMAKE_INCDIR_EGL        = $$[QT_SYSROOT]/opt/vc/include \

                          $$[QT_SYSROOT]/opt/vc/include/interface/vcos/pthreads \

                          $$[QT_SYSROOT]/opt/vc/include/interface/vmcs_host/linux

QMAKE_INCDIR_OPENGL_ES2 = $${QMAKE_INCDIR_EGL}


QMAKE_LIBS_EGL          = -lEGL -lGLESv2


contains(DISTRO, squeeze) {

    #Debian Squeeze: Legacy everything

    QMAKE_LIBS_OPENGL_ES2   = -lGLESv2 -lEGL

    QT_QPA_DEFAULT_PLATFORM = eglfs

} else:contains(DISTRO, arch) {

    #On principle: no wizardry required

} else {

    #This is not strictly necessary

    DISTRO_OPTS += deb-multi-arch

    DISTRO_OPTS += hard-float

}


QMAKE_CFLAGS           += \

                          -marm \

                          -mfpu=neon \

                          -mtune=cortex-a7 \

                          -march=armv7-a \

                          -mabi=aapcs-linux


QMAKE_CXXFLAGS          = $$QMAKE_CFLAGS


EGLFS_PLATFORM_HOOKS_SOURCES = $$PWD/qeglfshooks_pi.cpp

EGLFS_PLATFORM_HOOKS_LIBS = -lbcm_host


include(../common/linux_arm_device_post.conf)


load(qt_config) 


$ ./configure -opensource -confirm-license -device linux-rasp-pi2-g++ -device-option CROSS_COMPILE=arm-linux-gnueabihf-

   Configure summary


Building on:   linux-g++ (i386, CPU features:)

Building for:  devices/linux-rasp-pi2-g++ (arm, CPU features: neon)

Platform notes:


            - Also available for Linux: linux-kcc linux-icc linux-cxx

        

Build options:

  Configuration .......... accessibility audio-backend c++11 clock-gettime clock-monotonic compile_examples concurrent cross_compile evdev eventfd freetype full-config getaddrinfo getifaddrs iconv inotify ipv6ifname large-config largefile linuxfb medium-config minimal-config mremap nis no-harfbuzz no-pkg-config pcre png posix_fallocate precompile_header qpa qpa reduce_exports release rpath shared small-config zlib 

  Build parts ............ libs examples

  Mode ................... release

  Using C++11 ............ yes

  Using PCH .............. yes

  Target compiler supports:

    iWMMXt/Neon .......... no/auto


Qt modules and options:

  Qt D-Bus ............... no

  Qt Concurrent .......... yes

  Qt GUI ................. yes

  Qt Widgets ............. yes

  Large File ............. yes

  QML debugging .......... yes

  Use system proxies ..... no


Support enabled for:

  Accessibility .......... yes

  ALSA ................... no

  CUPS ................... no

  Evdev .................. yes

  FontConfig ............. no

  FreeType ............... yes (bundled copy)

  Glib ................... no

  GTK theme .............. no

  HarfBuzz ............... no

  Iconv .................. yes

  ICU .................... no

  Image formats: 

    GIF .................. yes (plugin, using bundled copy)

    JPEG ................. yes (plugin, using bundled copy)

    PNG .................. yes (in QtGui, using bundled copy)

  journald ............... no

  mtdev .................. no

  Networking: 

    getaddrinfo .......... yes

    getifaddrs ........... yes

    IPv6 ifname .......... yes

    OpenSSL .............. no

  NIS .................... yes

  OpenGL / OpenVG: 

    EGL .................. no

    OpenGL ............... no

    OpenVG ............... no

  PCRE ................... yes (bundled copy)

  pkg-config ............. no 

  PulseAudio ............. no

  QPA backends: 

    DirectFB ............. no

    EGLFS ................ no

    KMS .................. no

    LinuxFB .............. yes

    XCB .................. no

  Session management ..... yes

  SQL drivers: 

    DB2 .................. no

    InterBase ............ no

    MySQL ................ no

    OCI .................. no

    ODBC ................. no

    PostgreSQL ........... no

    SQLite 2 ............. no

    SQLite ............... yes (plugin, using bundled copy)

    TDS .................. no

  udev ................... no

  xkbcommon .............. no

  zlib ................... yes (bundled copy)


NOTE: Qt is using double for qreal on this system. This is binary incompatible against Qt 5.1.

Configure with '-qreal float' to create a build that is binary compatible with 5.1.

Info: creating super cache file /home/minimonk/src/qt-everywhere-opensource-src-5.3.2/.qmake.super


Qt is now configured for building. Just run 'make'.

Once everything is built, you must run 'make install'.

Qt will be installed into /usr/local/Qt-5.3.2


Prior to reconfiguration, make sure you remove any leftovers from

the previous build. 



또 얼마나 걸리려나 ㅋㅋ

오전 10:17 2015-03-25


make clean 하고 컴파일 해서 그런가

14:03:18

4시간 걸림 ㅋ

Posted by 구차니
embeded/raspberry pi2015. 3. 24. 17:19

일단은.. Qt 5.3 에서 기본적으로 설정되어있는 내용으로

Raspberry pi는 1, ARM11 용으로 설정되어 있다.


qt-everywhere-opensource-src-5.3.2/qtbase/mkspecs/devices/linux-rasp-pi-g++$ cat qmake.conf

#

# qmake configuration for Broadcom's Raspberry PI

# http://wiki.qt-project.org/Devices/RaspberryPi


include(../common/linux_device_pre.conf)


QT_QPA_DEFAULT_PLATFORM = wayland


QMAKE_LFLAGS           += -Wl,-rpath-link,$$[QT_SYSROOT]/opt/vc/lib


QMAKE_LIBDIR_OPENGL_ES2 = $$[QT_SYSROOT]/opt/vc/lib

QMAKE_LIBDIR_EGL        = $$QMAKE_LIBDIR_OPENGL_ES2


QMAKE_INCDIR_EGL        = $$[QT_SYSROOT]/opt/vc/include \

                          $$[QT_SYSROOT]/opt/vc/include/interface/vcos/pthreads \

                          $$[QT_SYSROOT]/opt/vc/include/interface/vmcs_host/linux

QMAKE_INCDIR_OPENGL_ES2 = $${QMAKE_INCDIR_EGL}


QMAKE_LIBS_EGL          = -lEGL -lGLESv2


contains(DISTRO, squeeze) {

    #Debian Squeeze: Legacy everything

    QMAKE_LIBS_OPENGL_ES2   = -lGLESv2 -lEGL

    QT_QPA_DEFAULT_PLATFORM = eglfs

} else:contains(DISTRO, arch) {

    #On principle: no wizardry required

} else {

    #This is not strictly necessary

    DISTRO_OPTS += deb-multi-arch

    DISTRO_OPTS += hard-float

}


QMAKE_CFLAGS           += \

                          -marm \

                          -mfpu=vfp \

                          -mtune=arm1176jzf-s \

                          -march=armv6zk \

                          -mabi=aapcs-linux


QMAKE_CXXFLAGS          = $$QMAKE_CFLAGS


EGLFS_PLATFORM_HOOKS_SOURCES = $$PWD/qeglfshooks_pi.cpp

EGLFS_PLATFORM_HOOKS_LIBS = -lbcm_host


include(../common/linux_arm_device_post.conf)


load(qt_config) 


$ ./configure -opensource -confirm-license -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=arm-linux-gnueabihf-


   Configure summary


Building on:   linux-g++ (i386, CPU features:)

Building for:  devices/linux-rasp-pi-g++ (arm, CPU features:)

Platform notes:


            - Also available for Linux: linux-kcc linux-icc linux-cxx


Build options:

  Configuration .......... accessibility audio-backend c++11 clock-gettime clock-monotonic compile_examples concurrent cross_compile evdev eventfd freetype full-config getaddrinfo getifaddrs iconv inotify ipv6ifname large-config largefile linuxfb medium-config minimal-config mremap nis no-harfbuzz no-pkg-config pcre png posix_fallocate precompile_header qpa qpa reduce_exports release rpath shared small-config zlib

  Build parts ............ libs examples

  Mode ................... release

  Using C++11 ............ yes

  Using PCH .............. yes

  Target compiler supports:

    iWMMXt/Neon .......... no/auto


Qt modules and options:

  Qt D-Bus ............... no

  Qt Concurrent .......... yes

  Qt GUI ................. yes

  Qt Widgets ............. yes

  Large File ............. yes

  QML debugging .......... yes

  Use system proxies ..... no


Support enabled for:

  Accessibility .......... yes

  ALSA ................... no

  CUPS ................... no

  Evdev .................. yes

  FontConfig ............. no

  FreeType ............... yes (bundled copy)

  Glib ................... no

  GTK theme .............. no

  HarfBuzz ............... no

  Iconv .................. yes

  ICU .................... no

  Image formats:

    GIF .................. yes (plugin, using bundled copy)

    JPEG ................. yes (plugin, using bundled copy)

    PNG .................. yes (in QtGui, using bundled copy)

  journald ............... no

  mtdev .................. no

  Networking:

    getaddrinfo .......... yes

    getifaddrs ........... yes

    IPv6 ifname .......... yes

    OpenSSL .............. no

  NIS .................... yes

  OpenGL / OpenVG:

    EGL .................. no

    OpenGL ............... no

    OpenVG ............... no

  PCRE ................... yes (bundled copy)

  pkg-config ............. no

  PulseAudio ............. no

  QPA backends:

    DirectFB ............. no

    EGLFS ................ no

    KMS .................. no

    LinuxFB .............. yes

    XCB .................. no

  Session management ..... yes

  SQL drivers:

    DB2 .................. no

    InterBase ............ no

    MySQL ................ no

    OCI .................. no

    ODBC ................. no

    PostgreSQL ........... no

    SQLite 2 ............. no

    SQLite ............... yes (plugin, using bundled copy)

    TDS .................. no

  udev ................... no

  xkbcommon .............. no

  zlib ................... yes (bundled copy)


NOTE: Qt is using double for qreal on this system. This is binary incompatible against Qt 5.1.

Configure with '-qreal float' to create a build that is binary compatible with 5.1.

Info: creating super cache file /home/minimonk/src/qt-everywhere-opensource-src-5.3.2/.qmake.super


Qt is now configured for building. Just run 'make'.

Once everything is built, you must run 'make install'.

Qt will be installed into /usr/local/Qt-5.3.2


Prior to reconfiguration, make sure you remove any leftovers from

the previous build. 


커널이 i7에서 3분 걸리던게.. 1시간 20분 걸렸으니

i7에서 30분 넘게 걸리던 qt 컴파일은... 10시간 이려나?! -_-a


+

그냥 걸어놓고 내려놨는데

다시 확인하니 20:54:36 컴파일 완료

거의 3시간 반 정도 걸린듯?

Posted by 구차니
embeded/raspberry pi2015. 3. 24. 08:55

라즈베리 파이 홈페이지에서 보이는 것 이상의 것들이 많이 있다?


[링크 : http://downloads.raspberrypi.org/]

    [링크 : http://qt-project.org/wiki/RaspberryPi_Beginners_guide]

Posted by 구차니
embeded/raspberry pi2015. 3. 23. 22:03

ATOM 330 + ION 보다 동영상 재생 성능이 낫네 ㄷㄷ


라즈베리 파이 2

openELEC

600MHz / NEON


H.264 high profile 1080p 30fps 재생 문제 없음

H.264 high profile 1080p 60fps 프레임 드랍 있음 (kodi/xbmc 환경설정에서 44fps 로 출력됨 / 1600x900 해상도)

Posted by 구차니
embeded/raspberry pi2015. 3. 23. 20:35

심심해서 일단 받아봄

리눅스 커널은 대략 빌드 중이라 늘어난 것일수도 있으니 크게 의미는 없으나 대략 840MB 정도 예상되고

크로스 컴파일러가 무려 945MB ㄷㄷㄷ

rootfs는 11M로 저렴하다 -ㅁ-!


~/rasp$ du -h -d 1

851M    ./linux

945M    ./tools

11M     ./target_fs

1.8G    . 


$ sudo apt-get install libncurses5-dev 

[링크 : http://askubuntu.com/questions/78749/what-provides-curses-headers-named-curses-h]


$ mkdir rasp

$ cd rasp

$ git clone --depth=1 https://github.com/raspberrypi/tools

$ git clone --depth=1 https://github.com/raspberrypi/linux

$ git clone --depth=1 https://github.com/raspberrypi/target_fs

$ export PATH=$PATH:~/rasp/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin

$ cd linux

$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bcm2709_defconfig menuconfig

$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j 4 

[링크 : http://www.raspberrypi.org/documentation/linux/kernel/building.md]


커널 menuconfig 에서 보니

일단.. BCM2709로 설정되고


NEON은 켜져있도록 되어있다.



+

그나저나.. ATOM 330 / 1.6GHz 로 어느 세월에 컴파일 하지? ㅋㅋㅋ


+

오후 8:40 2015-03-23

오후 10:02 2015-03-23

무려 1시간 20분 만에 컴파일 완료 -_ㅠ


~/rasp/linux$ file vmlinux

vmlinux: ELF 32-bit LSB  executable, ARM, EABI5 version 1 (SYSV), statically linked, BuildID[sha1]=44adda67f6686154f7eb71069c144f84d4ee6c20, not stripped



린필드 i7 으로는 3분만에 컴파일 끝나던데 흑흑
역시 듀얼 코어 + HT ATOM으로는 무리였어 ㅠㅠ


+ 2015.04.09 추가
시작 오후 10:16 2015-04-09
끝 2015. 04. 09. (목) 22:47:18 KST
AMD 4850e / 2.5GHz 듀얼 코어로 30분 걸림 -_ㅠ -j4 인데도 불구하고!!! ㅠㅠ




+ 2015.05.31 추가

2015년 05월 31일 (일) 오후 07시 55분 25초 

2015. 05. 31. (일) 20:05:59 KST

AMD 945 / 3.0GHz 드코어로 10분..  클럭빨로 4850e보다는 줄지만

역시나.. i7이 짱짱이구나 싶은 결과랄까 ㅜㅜ

Posted by 구차니
embeded/raspberry pi2015. 3. 16. 20:40

라즈비안에서는 tvservice라는 걸로 해상도는 확인/변경이 가능한데

영구적으로 바뀌는것은 아니고 런타임으로 1회성으로 변경이 가능하며

모니터 특성을 타는지 출력 변경 직후 ctrl-alt-F1 / ctrl-alt-F7을 눌러

다른 터미널로 갔다가 Xwindow로 복귀해야 화면이 제대로 나왔다.


pi@raspberrypi ~ $ sudo tvservice

Usage: tvservice [OPTION]...

  -p, --preferred                   Power on HDMI with preferred settings

  -e, --explicit="GROUP MODE DRIVE" Power on HDMI with explicit GROUP (CEA, DMT, CEA_3D_SBS, CEA_3D_TB)

                                      MODE (see --modes) and DRIVE (HDMI, DVI)

  -t, --ntsc                        Use NTSC frequency for HDMI mode (e.g. 59.94Hz rather than 60Hz)

  -c, --sdtvon="MODE ASPECT"        Power on SDTV with MODE (PAL or NTSC) and ASPECT (4:3 14:9 or 16:9)

  -o, --off                         Power off the display

  -m, --modes=GROUP                 Get supported modes for GROUP (CEA, DMT)

  -M, --monitor                     Monitor HDMI events

  -s, --status                      Get HDMI status

  -a, --audio                       Get supported audio information

  -d, --dumpedid <filename>         Dump EDID information to file

  -j, --json                        Use JSON format for --modes output

  -n, --name                        Print the device ID from EDID

  -h, --help                        Print this information


pi@raspberrypi ~ $ sudo tvservice -p

Powering on HDMI with preferred settings


pi@raspberrypi ~ $ sudo tvservice -modes=CEA

Group CEA has 0 modes:


pi@raspberrypi ~ $ sudo tvservice -modes=DMT

Group DMT has 19 modes:

           mode 4: 640x480 @ 60Hz 4:3, clock:25MHz progressive

           mode 5: 640x480 @ 72Hz 4:3, clock:31MHz progressive

           mode 6: 640x480 @ 75Hz 4:3, clock:31MHz progressive

           mode 8: 800x600 @ 56Hz 4:3, clock:36MHz progressive

           mode 9: 800x600 @ 60Hz 4:3, clock:40MHz progressive

           mode 10: 800x600 @ 72Hz 4:3, clock:50MHz progressive

           mode 11: 800x600 @ 75Hz 4:3, clock:49MHz progressive

           mode 16: 1024x768 @ 60Hz 4:3, clock:65MHz progressive

           mode 17: 1024x768 @ 70Hz 4:3, clock:75MHz progressive

           mode 18: 1024x768 @ 75Hz 4:3, clock:78MHz progressive

           mode 28: 1280x800 @ 60Hz 16:10, clock:83MHz progressive

           mode 32: 1280x960 @ 60Hz 4:3, clock:108MHz progressive

           mode 35: 1280x1024 @ 60Hz 5:4, clock:108MHz progressive

           mode 36: 1280x1024 @ 75Hz 5:4, clock:135MHz progressive

           mode 47: 1440x900 @ 60Hz 16:10, clock:106MHz progressive

           mode 51: 1600x1200 @ 60Hz 4:3, clock:162MHz progressive

           mode 58: 1680x1050 @ 60Hz 16:10, clock:146MHz progressive

           mode 82: 1920x1080 @ 60Hz 16:9, clock:148MHz progressive

  (prefer) mode 83: 1600x900 @ 60Hz 16:9, clock:108MHz progressive


pi@raspberrypi ~ $ sudo tvservice -e "DMT 83"

Powering on HDMI with explicit settings (DMT mode 83)


pi@raspberrypi ~ $ sudo tvservice -s

state 0x120016 [DVI DMT (82) RGB full 16:9], 1920x1080 @ 60.00Hz, progressive 


영구적으로 손을 보기 위해서는

config.txt 파일에

#These values are valid if hdmi_group=2 (DMT)

hdmi_group=2

hdmi_mode=82   #1080p      60 Hz  

#hdmi_mode=83   #1600x900          Reduced blanking 

부분을 넣어줘야 한다.

단, 위와 같이 hdmi_group을 지정해 버리면 DVI로만 쓸 수 있고 HDMI로는 안되니 이 것 역시 문제네.. -_-


[링크 : https://pidome.wordpress.com/2013/08/22/raspberry-pi-monitordisplay-resolution-problems/]

    [링크 : http://www.raspberrypi.org/forums/viewtopic.php?t=5851]

    [링크 : http://elinux.org/RPiconfig]

Posted by 구차니