embeded/FPGA - ALTERA2018. 5. 18. 17:22

오늘 오랫만에 켜니까 어라?

라이센스 알림. 만료까지 10일 남았음?


아무튼 메뉴가서 보니.. 라이센스가 없긴 하네..

subscription Expiration 2017.11 ?


Download License를 눌러서 일단 가니..

가장 위에꺼 눌러야 할 거 같은 느낌


로그인 하고 나니 먼가 막 많이 쓰란다.. 망할


근데.. Lite Edition Free, no license required 라며!


아무튼 입력하고 continue하니 12시간 이내에 메일로 쏩니다~

그런데 MAC 했으니.. 집에서도 하려면 또 따로 등록해야 하나?


메일을 확인하니 왔네?


Setting Up MAX+PLUS II Licensing ?

MAX II,V 이런 거 지원하도록 깔아서 그런건가?

[링크 : https://www.altera.com/support/support-resources/software/download/ins-license.html]


의심가는건 이거 뿐인데.. 별다른 라이센스 경고를 못 본거 같은데..

2018/04/17 - [embeded/FPGA - ALTERA] - Device Installer (Quartus Prime 17.1)

'embeded > FPGA - ALTERA' 카테고리의 다른 글

quartus device family 삭제하기  (0) 2018.05.23
책 도착!  (2) 2018.05.21
Nios II 컴파일 관련  (0) 2018.05.18
altera conf_done  (0) 2018.05.04
quartus 프로젝트 entry point 설정  (0) 2018.04.17
Posted by 구차니
embeded/FPGA - ALTERA2018. 5. 18. 16:56

카페에서 메일로 보내주신 내용 따라해보는 중


예전에 mem_test를 이용해서 프로젝트를 만들었는데

이클립스 쓰다보니.. 그냥 당연히(?) build 하면 되겠지 하고 빌드만 했는데 새로운 메뉴가 있었다 -ㅁ-


평소에 하던건 이 Build Project 였고


아래 보이듯, make all을 통해 빌드를 진행한다.

16:45:28 **** Incremental Build of configuration Nios II for project hello_world_0 ****

make all 

Info: Building ../hello_world_0_bsp/

C:/intelFPGA_lite/17.1/nios2eds/bin/gnu/H-x86_64-mingw32/bin/make --no-print-directory -C ../hello_world_0_bsp/

[BSP build complete]

[hello_world_0 build complete]


16:45:29 Build Finished (took 1s.5ms)


그에 반해 Make Targets - Build에서


mem_init_generate를 선택하고 Build 하면


make mem_init_generate로 다른 방식(?)을 통해 명령어를 수행하게 된다.

16:48:29 **** Build of configuration Nios II for project hello_world_0 ****

make mem_init_generate 

Info: Building ../hello_world_0_bsp/

C:/intelFPGA_lite/17.1/nios2eds/bin/gnu/H-x86_64-mingw32/bin/make --no-print-directory -C ../hello_world_0_bsp/

[BSP build complete]


16:48:30 Build Finished (took 1s.54ms)


아무튼 빌드하고 나니 아래 같은 파일들이 생성/수정(?) 되엇고

qip는 quartus II 프로젝트에 추가하고 아래 파일중에 골라서(?) 넣으면 된다는데

느낌적인 느낌으로는.. unsaved_epcs_flash_controller_0_boot_rom.flash를 넣으면 될거 같긴한데..

의외로 unsaved_onchip_memory2_0.hex 일려나? 파일 뜯어 봐야겠네..


파일 열어 봤는데

unsaved_epcs_flash_controller_0_boot_rom.flash 는.. HEX는 HEX인데 intel HEX 포맷은 아닌 느낌이고

unsaved_onchip_memory2_0.hex 는 데이터 있는 부분까지의 길이는 비슷한데 데이터 내용이 다른 느낌이라...

멀 써야 하려나?


+

qip를 일단 quartus II 에서 추가 하고 빌드 하는데

해당 파일에는 딱 한줄짜리 내용만 있는데 무슨 차이가 생길려나?


'embeded > FPGA - ALTERA' 카테고리의 다른 글

책 도착!  (2) 2018.05.21
엥.. Quartus II Lite Edition... 라이센스?  (0) 2018.05.18
altera conf_done  (0) 2018.05.04
quartus 프로젝트 entry point 설정  (0) 2018.04.17
Device Installer (Quartus Prime 17.1)  (0) 2018.04.17
Posted by 구차니
embeded/raspberry pi2018. 5. 18. 15:56

SPI 설정이 무한대로 되는건 아니고

250MHz를 분기해서 쓰는데

일단은.. SPI LCD 쓰는데 62M를 설정해주면 통신 속도를 못 버티는지 색이 깨진다.

60보다 낮은건 31.2MHz 인가?

아무튼 40메가로 설정해도 일단은 돌아가는 가네..


SPEED

The driver supports the following speeds:


  cdiv    speed

     2    125.0 MHz

     4     62.5 MHz

     8     31.2 MHz

    16     15.6 MHz

    32      7.8 MHz

    64      3.9 MHz

   128     1953 kHz

   256      976 kHz

   512      488 kHz

  1024      244 kHz

  2048      122 kHz

  4096       61 kHz

  8192     30.5 kHz

 16384     15.2 kHz

 32768     7629 Hz 

[링크 : https://www.raspberrypi.org/documentation/hardware/raspberrypi/spi/README.md]

[링크 : https://www.raspberrypi.org/forums/viewtopic.php?f=44&t=43442&p=347073]

'embeded > raspberry pi' 카테고리의 다른 글

node.js on rpi  (0) 2018.09.11
라즈베리 파이 USB 사운드 카드로 녹음 및 재생하기  (4) 2018.09.10
라즈베리 2B + waveshare 35a + MAME 0.182  (0) 2018.05.18
odroid u3 headless setup중 문제..  (0) 2018.05.14
rpi firmata  (0) 2018.05.11
Posted by 구차니
프로그램 사용/MAME2018. 5. 18. 14:24

아래처럼 하면 설정파일이 생성된다는데

거기에 rompath를 찾아가면 되다고..


cd ~/.mame && mame -cc

gedit ~/.mame/mame.ini 

[링크 : http://www.upubuntu.com/2012/10/how-to-install-mame-multiple-arcade.html]


+

pi@raspberrypi:~/.mame $ ls -al

total 16

drwxr-xr-x  3 pi pi 4096 May 18 06:38 .

drwxr-xr-x 32 pi pi 4096 May 18 06:38 ..

drwxr-xr-x  2 pi pi 4096 May 18 06:38 cfg

-rw-r--r--  1 pi pi 1694 May 18 06:38 ui.ini

pi@raspberrypi:~/.mame $ mame -cc


pi@raspberrypi:~/.mame $ ls -al

total 32

drwxr-xr-x  3 pi pi 4096 May 18 06:39 .

drwxr-xr-x 32 pi pi 4096 May 18 06:38 ..

drwxr-xr-x  2 pi pi 4096 May 18 06:38 cfg

-rw-r--r--  1 pi pi 9277 May 18 06:39 mame.ini

-rw-r--r--  1 pi pi  249 May 18 06:39 plugin.ini

-rw-r--r--  1 pi pi 1691 May 18 06:39 ui.ini 


경로 설정은 그래도 상단에 있네?

$ cat mame.ini

#

# CORE CONFIGURATION OPTIONS

#

readconfig                1

writeconfig               0


#

# CORE SEARCH PATH OPTIONS

#

homepath                  .

rompath                   $HOME/mame/roms;/usr/local/share/games/mame/roms;/usr/share/games/mame/roms

hashpath                  /usr/share/games/mame/hash

samplepath                $HOME/mame/samples;/usr/local/share/games/mame/samples;/usr/share/games/mame/samples

artpath                   $HOME/mame/artwork;/usr/local/share/games/mame/artwork;/usr/share/games/mame/artwork

ctrlrpath                 /usr/share/games/mame/ctrlr

inipath                   $HOME/.mame;/etc/mame

fontpath                  /usr/share/games/mame/fonts

cheatpath                 $HOME/mame/cheat;/usr/local/share/games/mame/cheat;/usr/share/games/mame/cheat

crosshairpath             $HOME/mame/crosshair;/usr/local/share/games/mame/crosshair;/usr/share/games/mame/crosshair

pluginspath               /usr/share/games/mame/plugins

languagepath              /usr/share/games/mame/language

swpath                    software


#

# CORE OUTPUT DIRECTORY OPTIONS

#

cfg_directory             $HOME/.mame/cfg

nvram_directory           $HOME/.mame/nvram

input_directory           $HOME/.mame/inp

state_directory           $HOME/.mame/sta

snapshot_directory        $HOME/.mame/snap

diff_directory            $HOME/.mame/diff

comment_directory         $HOME/.mame/comments


#

# CORE STATE/PLAYBACK OPTIONS

#

state

autosave                  0

playback

record

record_timecode           0

exit_after_playback       0

mngwrite

aviwrite

wavwrite

snapname                  %g/%i

snapsize                  auto

snapview                  internal

snapbilinear              1

statename                 %g

burnin                    0


#

# CORE PERFORMANCE OPTIONS

#

autoframeskip             0

frameskip                 0

seconds_to_run            0

throttle                  1

sleep                     1

speed                     1.0

refreshspeed              0


#

# CORE RENDER OPTIONS

#

keepaspect                1

unevenstretch             1

unevenstretchx            0

unevenstretchy            0

autostretchxy             0

intoverscan               0

intscalex                 0

intscaley                 0


#

# CORE ROTATION OPTIONS

#

rotate                    1

ror                       0

rol                       0

autoror                   0

autorol                   0

flipx                     0

flipy                     0


#

# CORE ARTWORK OPTIONS

#

artwork_crop              0

use_backdrops             1

use_overlays              1

use_bezels                1

use_cpanels               1

use_marquees              1


#

# CORE SCREEN OPTIONS

#

brightness                1.0

contrast                  1.0

gamma                     1.0

pause_brightness          0.65

effect                    none


#

# CORE VECTOR OPTIONS

#

beam_width_min            1.0

beam_width_max            1.0

beam_intensity_weight     0

flicker                   0


#

# CORE SOUND OPTIONS

#

samplerate                48000

samples                   1

volume                    0


#

# CORE INPUT OPTIONS

#

coin_lockout              1

ctrlr

mouse                     1

joystick                  1

lightgun                  0

multikeyboard             0

multimouse                0

steadykey                 0

ui_active                 0

offscreen_reload          0

joystick_map              auto

joystick_deadzone         0.3

joystick_saturation       0.85

natural                   0

joystick_contradictory    0

coin_impulse              0


#

# CORE INPUT AUTOMATIC ENABLE OPTIONS

#

paddle_device             keyboard

adstick_device            keyboard

pedal_device              keyboard

dial_device               keyboard

trackball_device          keyboard

lightgun_device           keyboard

positional_device         keyboard

mouse_device              mouse


#

# CORE DEBUGGING OPTIONS

#

verbose                   0

log                       0

oslog                     0

debug                     0

update_in_pause           0

debugscript


#

# CORE COMM OPTIONS

#

comm_localhost            0.0.0.0

comm_localport            15112

comm_remotehost           127.0.0.1

comm_remoteport           15112


#

# CORE MISC OPTIONS

#

drc                       1

drc_use_c                 0

drc_log_uml               0

drc_log_native            0

bios

cheat                     0

skip_gameinfo             0

uifont                    default

ui                        cabinet

ramsize

confirm_quit              0

ui_mouse                  1

autoboot_command

autoboot_delay            0

autoboot_script

console                   0

plugins                   1

plugin

noplugin

language                  English


#

# HTTP SERVER OPTIONS

#

http                      0

http_port                 8080

http_root                 web


#

# OSD KEYBOARD MAPPING OPTIONS

#

uimodekey                 INSERT


#

# OSD FONT OPTIONS

#

uifontprovider            auto


#

# OSD OUTPUT OPTIONS

#

output                    auto


#

# OSD INPUT OPTIONS

#

keyboardprovider          auto

mouseprovider             auto

lightgunprovider          auto

joystickprovider          auto


#

# OSD DEBUGGING OPTIONS

#

debugger                  auto

debugger_font             auto

debugger_font_size        0

watchdog                  0


#

# OSD PERFORMANCE OPTIONS

#

numprocessors             auto

bench                     0


#

# OSD VIDEO OPTIONS

#

video                     opengl

numscreens                1

window                    0

maximize                  1

waitvsync                 0

syncrefresh               0

monitorprovider           auto


#

# OSD PER-WINDOW VIDEO OPTIONS

#

screen                    auto

aspect                    auto

resolution                auto

view                      auto

screen0                   auto

aspect0                   auto

resolution0               auto

view0                     auto

screen1                   auto

aspect1                   auto

resolution1               auto

view1                     auto

screen2                   auto

aspect2                   auto

resolution2               auto

view2                     auto

screen3                   auto

aspect3                   auto

resolution3               auto

view3                     auto


#

# OSD FULL SCREEN OPTIONS

#

switchres                 0


#

# OSD ACCELERATED VIDEO OPTIONS

#

filter                    1

prescale                  1


#

# OpenGL-SPECIFIC OPTIONS

#

gl_forcepow2texture       0

gl_notexturerect          0

gl_vbo                    1

gl_pbo                    1

gl_glsl                   0

gl_glsl_filter            1

glsl_shader_mame0         none

glsl_shader_mame1         none

glsl_shader_mame2         none

glsl_shader_mame3         none

glsl_shader_mame4         none

glsl_shader_mame5         none

glsl_shader_mame6         none

glsl_shader_mame7         none

glsl_shader_mame8         none

glsl_shader_mame9         none

glsl_shader_screen0       none

glsl_shader_screen1       none

glsl_shader_screen2       none

glsl_shader_screen3       none

glsl_shader_screen4       none

glsl_shader_screen5       none

glsl_shader_screen6       none

glsl_shader_screen7       none

glsl_shader_screen8       none

glsl_shader_screen9       none


#

# OSD SOUND OPTIONS

#

sound                     auto

audio_latency             2


#

# PORTAUDIO OPTIONS

#

pa_api                    none

pa_device                 none

pa_latency                0


#

# BGFX POST-PROCESSING OPTIONS

#

bgfx_path                 /usr/share/games/mame/bgfx

bgfx_backend              auto

bgfx_debug                0

bgfx_screen_chains        default

bgfx_shadow_mask          slot-mask.png

bgfx_avi_name             auto


#

# SDL PERFORMANCE OPTIONS

#

sdlvideofps               0


#

# SDL VIDEO OPTIONS

#

centerh                   1

centerv                   1

scalemode                 none


#

# SDL FULL SCREEN OPTIONS

#

useallheads               0


#

# SDL KEYBOARD MAPPING

#

keymap                    0

keymap_file               keymap.dat


#

# SDL JOYSTICK MAPPING

#

joy_idx1                  auto

joy_idx2                  auto

joy_idx3                  auto

joy_idx4                  auto

joy_idx5                  auto

joy_idx6                  auto

joy_idx7                  auto

joy_idx8                  auto

sixaxis                   0


#

# SDL MOUSE MAPPING

#

mouse_index1              auto

mouse_index2              auto

mouse_index3              auto

mouse_index4              auto

mouse_index5              auto

mouse_index6              auto

mouse_index7              auto

mouse_index8              auto


#

# SDL KEYBOARD MAPPING

#

keyb_idx1                 auto

keyb_idx2                 auto

keyb_idx3                 auto

keyb_idx4                 auto

keyb_idx5                 auto

keyb_idx6                 auto

keyb_idx7                 auto

keyb_idx8                 auto


#

# SDL LOWLEVEL DRIVER OPTIONS

#

videodriver               auto

renderdriver              auto

audiodriver               auto

gl_lib                    auto


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

retropie pstree 그리고 fbcp  (0) 2018.05.18
레트로 파이 coin select GPIO로 연결하기  (0) 2018.05.16
retropie spi lcd  (0) 2018.05.16
relcabox / retropie 블루투스 연결  (0) 2018.03.07
MAME 조이스틱 설정  (0) 2018.03.03
Posted by 구차니
프로그램 사용/MAME2018. 5. 18. 14:01

xorg 없이 emulationstation이 직접 실행되서 /dev/fb0 으로 쓰는거 같은데..


$ pstree

systemd─┬─agetty

        ├─avahi-daemon───avahi-daemon

        ├─cron

        ├─dbus-daemon

        ├─dhcpcd

        ├─fbcp─┬─{HCEC Notify}

        │      ├─{HDispmanx Notif}

        │      ├─{HTV Notify}

        │      └─{VCHIQ completio}

        ├─login───bash───bash───emulationstatio───emulationstatio───emulationstatio─┬─sh───bash───retroarch─┬─{HCEC Notify}

        │                                                                           │                       ├─{HDispmanx Notif}

        │                                                                           │                       ├─{HTV Notify}

        │                                                                           │                       ├─{VCHIQ completio}

        │                                                                           │                       └─3*[{retroarch}]

        │                                                                           ├─{HCEC Notify}

        │                                                                           ├─{HDispmanx Notif}

        │                                                                           ├─{HTV Notify}

        │                                                                           ├─{VCHIQ completio}

        │                                                                           └─{emulationstatio}

        ├─rsyslogd─┬─{in:imklog}

        │          ├─{in:imuxsock}

        │          └─{rs:main Q:Reg}

        ├─smbd─┬─cleanupd

        │      ├─lpqd

        │      └─smbd-notifyd

        ├─sshd───sshd───sshd───bash───pstree

        ├─systemd───(sd-pam)

        ├─systemd-journal

        ├─systemd-logind

        ├─systemd-timesyn───{sd-resolve}

        ├─systemd-udevd

        └─thd

 


어디서 언듯 보기에 emulationstation 자체가 openGL로 그린다고 된걸 본거 같은데

고민을 해보니.. SPI LCD에는 openGL 가속이 안될게 뻔하니 fbcp 외에는 답이 없는걸려나?

[링크 : https://www.reddit.com/r/raspberry_pi/comments/2syad9/emulation_station_on_35_inch_gpio_display/]

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

ubunutu mame  (0) 2018.05.18
레트로 파이 coin select GPIO로 연결하기  (0) 2018.05.16
retropie spi lcd  (0) 2018.05.16
relcabox / retropie 블루투스 연결  (0) 2018.03.07
MAME 조이스틱 설정  (0) 2018.03.03
Posted by 구차니
embeded/raspberry pi2018. 5. 18. 10:01

귀찮으니 img 받아서 그냥 까세요 수준으로 대격변 ㄷㄷ

[링크 : https://www.waveshare.com/wiki/3.5inch_RPi_LCD_(A)]


귀찮아서.. 스크립트 분석하면 될걸.. 썡으로 뒤지는중


일단 화면 갱신이 꽤나 느린데

/etc $ grep -rni "fbcp" ./

./rc.local:21:fbcp &

[링크 : https://github.com/tasanakorn/rpi-fbcp]


동영상을 보면 확실히 fbcp를 통해 복사하는거라 그런지 화면 갱신이 느리다. (cpu는 5% 미만이긴 하지만)


그래서 아래처럼 설정하고 다시 찰칵

기분인진 몰라도 확실히 좀 빨라진 기분?


$ cat /boot/config.txt

# For more options and information see

# http://www.raspberrypi.org/documentation/configuration/config-txt.md

# Some settings may impact device functionality. See link above for details


# uncomment if you get no picture on HDMI for a default "safe" mode

#hdmi_safe=1


# uncomment this if your display has a black border of unused pixels visible

# and your display can output without overscan

#disable_overscan=1


# uncomment the following to adjust overscan. Use positive numbers if console

# goes off screen, and negative if there is too much border

#overscan_left=16

#overscan_right=16

#overscan_top=16

#overscan_bottom=16


# uncomment to force a console size. By default it will be display's size minus

# overscan.

#framebuffer_width=1280

#framebuffer_height=720


# uncomment if hdmi display is not detected and composite is being output

#hdmi_force_hotplug=1


# uncomment to force a specific HDMI mode (this will force VGA)

#hdmi_group=1

#hdmi_mode=1


# uncomment to force a HDMI mode rather than DVI. This can make audio work in

# DMT (computer monitor) modes

#hdmi_drive=2


# uncomment to increase signal to HDMI, if you have interference, blanking, or

# no display

#config_hdmi_boost=4


# uncomment for composite PAL

#sdtv_mode=2


#uncomment to overclock the arm. 700 MHz is the default.

#arm_freq=800


# Uncomment some or all of these to enable the optional hardware interfaces

dtparam=i2c_arm=on

#dtparam=i2s=on

dtparam=spi=on

#enable_uart=1

# Uncomment this to enable the lirc-rpi module

#dtoverlay=lirc-rpi


# Additional overlays and parameters are documented /boot/overlays/README


# Enable audio (loads snd_bcm2835)

dtparam=audio=on

dtoverlay=waveshare35a:rotate=270

#dtoverlay=ads7846,cs=1,penirq=17,penirq_pull=2,speed=1000000,keep_vref_on=1,swapxy=1,pmax=255,xohms=60,xmin=200,xmax=3900,ymin=200,ymax=3900

#hdmi_force_hotplug=1

#max_usb_current=1

#hdmi_group=2

#hdmi_mode=1

#hdmi_mode=87

#hdmi_cvt 480 320 60 6 0 0 0

#hdmi_drive=2

#display_rotate=2 


[링크 : https://github.com/swkim01/waveshare-dtoverlays/issues/7]


$ cat /usr/share/X11/xorg.conf.d/99-fbturbo.conf

# This is a minimal sample config file, which can be copied to

# /etc/X11/xorg.conf in order to make the Xorg server pick up

# and load xf86-video-fbturbo driver installed in the system.

#

# When troubleshooting, check /var/log/Xorg.0.log for the debugging

# output and error messages.

#The driver is made by Waveshare&Spotpear

# Run "man fbturbo" to get additional information about the extra

# configuration options for tuning the driver.


Section "Device"

        Identifier      "Allwinner A10/A13 FBDEV"

        Driver          "fbturbo"

        Option          "fbdev" "/dev/fb0"


        Option          "SwapbuffersWait" "true"

EndSection



Section "Device"

        Identifier      "Waveshare 35a spi"

        Driver          "fbturbo"

        Option          "fbdev" "/dev/fb1"


        Option          "SwapbuffersWait" "true"

EndSection


Section "Monitor"

        Identifier      "primary"

EndSection


Section "Screen"

        Identifier      "primary"

        Device          "Waveshare 35a spi"

        Monitor         "rpi spi"

EndSection 


일단 mame를 깔고

$ sudo apt-get install gnome-video-arcade mame mame-tools

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following additional packages will be installed:

  liblua5.3-0 libsdl2-2.0-0 libsdl2-ttf-2.0-0 mame-data

Suggested packages:

  devhelp mame-doc mame-extra

The following NEW packages will be installed:

  gnome-video-arcade liblua5.3-0 libsdl2-2.0-0 libsdl2-ttf-2.0-0 mame

  mame-data mame-tools

0 upgraded, 7 newly installed, 0 to remove and 49 not upgraded.

Need to get 45.0 MB of archives. 


gnome 어쩌구 말고

mame를 실행하니 CPU는 미쳐 날뛰고(라즈베리 2B인데 오버 해야하나..)


/dev/fb1 덤프해서 보니 RGB565 480x320으로 복원



+

HDMI로 해도 느린건 마찬가지(아니 해상도 높아져서 더 느려진 기분.. 실행이 안되고 뻗는 수준?)

0.78 구버전을 구해서 빌드 해보려니 소스를 못 받는다.. 아놔

Posted by 구차니
Posted by 구차니
Linux/Ubuntu2018. 5. 17. 22:04

부팅하고 나서 바로 업데이트 하거나 설치하려고 하면

dpkg/lock 잠금 파일을 얻을 수 없다고 배째는데

apt나 dpkg로 프로세스 검색해서 죽여도 안되는 경우가 많다.


간단한(?) 해결책으로야 해당 프로세스 죽인후 lock 파일을 삭제하고 진행하는 것인데

$ sudo apt-get update; sudo apt-get upgrade

기존:1 http://ppa.launchpad.net/saiarcot895/myppa/ubuntu xenial InRelease

기존:2 http://ports.ubuntu.com/ubuntu-ports xenial InRelease

기존:3 http://ports.ubuntu.com/ubuntu-ports xenial-updates InRelease

기존:4 http://ports.ubuntu.com/ubuntu-ports xenial-backports InRelease

기존:5 http://ports.ubuntu.com/ubuntu-ports xenial-security InRelease

패키지 목록을 읽는 중입니다... 완료

E: /var/lib/dpkg/lock 잠금 파일을 얻을 수 없습니다 - open (11: Resource temporarily unavailable)

E: 관리 디렉터리를 (/var/lib/dpkg/) 잠글 수 없습니다. 다른 프로세스가 사용하고 있지 않습니까? 


근본적으로는 그에 연관되는 apt.systemd.daily가 문제라고 보여진다.

~$ ps -ef | grep apt

root      2471     1  0 12:42 ?        00:00:00 /bin/sh /usr/lib/apt/apt.systemd.daily update

root      2475  2471  0 12:42 ?        00:00:00 /bin/sh /usr/lib/apt/apt.systemd.daily lock_is_held update

root      3743     1  0 12:45 ?        00:00:00 /bin/sh /usr/lib/apt/apt.systemd.daily install


아무튼 검색을 해보니 아래 명령을 통해서 죽여 놓을 수 있고

$ sudo systemctl stop apt-daily.timer

$ sudo systemctl disable apt-daily.timer

$ sudo systemctl mask apt-daily.service

$ sudo systemctl daemon-reload 


추가로 아래의 파일을 삭제해주면 완벽! 인가?

/usr/lib/apt/apt.systemd.daily 


그리고 저번에 찾았던 를 통해 주기적인 업데이트를 막아 둘 수 있다.

$ sudo vi /etc/apt/apt.conf.d/10periodic

APT::Periodic::Enable "0";


그 외에는  cloud-init 스크립트를 통해서 apt-daily.service가 불려지니 could-init도 같이 죽이는게 나으려나?

Systemd is all about concurrent start of services, so the cloud-init script is run at the same time the apt-daily.service is triggered. By the time cloud-init gets to execute the user-specified payload, apt-get update is already running. So the attempts 2. and 3. failed not because of some namespace magic, but because they altered the system too late for apt.systemd.daily to pick the changes up.


This also means that there is basically no way of preventing apt.systemd.daily from running -- one can only kill it after it's started. 


[링크 : https://unix.stackexchange.com/.../how-to-disable-apt-daily-service-on-ubuntu-cloud-vm-image]

'Linux > Ubuntu' 카테고리의 다른 글

tmux  (0) 2018.08.13
우분투 자동 업데이트  (0) 2018.05.21
apt-mark 사용자가 수동으로 설치한 패키지 목록  (0) 2018.05.08
powertop  (0) 2018.05.04
ubuntu auto update 끄기  (0) 2018.04.19
Posted by 구차니
하드웨어/Storage2018. 5. 17. 17:45

마킹이라고 하니 시리얼 번호 이런거 표시로 나오는데

내가 원하는 내용은 각종 로고들에 대한 의미?

아무튼...


이번에 혼동이 생긴게 UHS인데

SD 메모리 상에 아래처럼 써있으면 UHS-1 BUS를 지원하는 것이고

BUS는 UHS-1(SD spec 3.0)과 UHS-2(SD spec 4.0)가 존재한다.

Ultra High Speed, Phase I (UHS-I) bus design for SDHC and SDXC cards was added in SD spec 3.0. This is a design enhancement to increase the performance of SDHC/SDXC cards.


UHS-I specification defines two bus architecture options for up to 50MB/s (UHS-50) and 104MB/s (UHS-104) data transfer rates. These are theoretical maximum limits and actual maximum performance for a specific card is defined on it label or in advertising.

UHS is an enhancement to the original SD interface specifications. Host devices will obtain the UHS maximum speed when both the card and host device support UHS. Otherwise, the host device and card will use the slower SD maximum speed obtainable.

There is no compatibility problem using a UHS card with a non-UHS device. 


Ultra High Speed Phase II (UHS-II) bus design for SDHC and SDXC was added in SD spec 4.0. This is an additional design enhacement with connector interface modifications to increase performance.

UHS-II specification defines bus architecture for options of 156MB/s and 312MB/s. Manufacturers implemented the 312MB/s option in memory cards. These are theoretical maximum limits and actual maximum performance for a specific card is defined on the label or in advertising.

Host devices will obtain the maximum UHS-II speed when both the card and the host device support UHS-II. Otherwise, the host device and card will use the highest compatible UHS-I or SD bus speed.

There is no compatibility problem using a USH-II card in a UHS-I or non-UHS device.

[링크 : https://kb.sandisk.com/app/answers/detail/a_id/2520/kw/uhs/related/1]


다만 내가 혼동을 느낀건 이 망할 UHS Speed Class 인데

얘는 버스 규격이랑 상관이 없다(왜냐면 UHS-1이던 UHS-2던 둘다 커버 가능한 대역폭이니)

UHS Speed Class (UHS Bus)

UHS Class

Minimum Speed

1

10MB/s

 3

 30MB/s

[링크 : https://kb.sandisk.com/app/answers/detail/a_id/4968/kw/uhs/related/1]



UHS라는 말이 혼용돼 쓰이기 때문에 조금 헷갈릴 수 있습니다. UHS-I, UHS-II 등은 SD카드의 버스 규격입니다. 파일을 주고 받을 수 있는 틀이라고 보면 됩니다. 그리고 이는 다시 U1, U3 등으로 나뉩니다. 이는 ‘UHS 스피드 클래스’라고 부릅니다. U1은 초당 최소 10MB, U3는 30MB를 쓸 수 있다는 표기입니다. 클래스와 비슷하다고 보면 됩니다.


현재 나오는 제품들은 거의 UHS-I 버스를 씁니다. 그리고 플래시메모리에 따라 실제 속도는 U1과 U3 정도로 나뉜다고 보면 됩니다. 4K 영상을 찍으려면 U3 정도 속도가 필요하고, 풀HD라면 클래스10, 혹은 U1이라고 표기된 제품이면 됩니다. 

[링크 : http://www.bloter.net/archives/230516]



아래꺼 샀는데.. 

말로는 Read 90MB/s Write 60MB/s 라는데 내꺼에 써보니 14MB/s 밖에 안나온다 ㅠㅠ


Supports next-generation memory cards including SDHC UHS-I, SDXC UHS-I, micro SDHC UHS-I, micro SDXC UHS-I 

[링크 : https://www.transcend-info.com/Products/No-396]


아무튼.. UHS-1을 지원하지만 class 10 SD 메모리라면

USB 3.0 UHS 지원하는 리더를 사용하더라도

Write 속도는 14MB/s 정도 밖에 안나오는게 당연한거다.. 라는 결론인가? ㅠㅠ

(나름 Ultra 16GB 제품인데 ㅠㅠ)

Posted by 구차니
개소리 왈왈/독서2018. 5. 17. 12:49

arduipilot 을 이용하여 드론을 만들거나

상용 제품(syma x5)을 개조하는 내용에 대한 책


드론 자작을 하거나, 개조해보려는 사람에게

ardupilot에 관심 있을 사람에게는 좋은 책


PID 제어와 각종 필터에 대한 간략한 설명이 꽤 마음에 든다.


[링크 : http://www.hanbit.co.kr/store/books/look.php?p_code=B3835033636]

Posted by 구차니