embeded/ARM2012. 3. 6. 09:55
ATMEL AVR을 쓰면 EEPROM이 있어서 무언가 저장할 공간이 있었는데
TI LM3S 시리즈를 보니 스펙상으로는 EEPROM이 존재를 하지 않는다.
편법일수도 있고, 가능할진 모르겠지만, 256byte의 NV memory가 존재하니 대신 사용해도 될듯?

10 Hibernation Module
10.1 Introduction

The Hibernate API provides a set of functions for using the Hibernation module on the Stellaris
microcontroller. The Hibernation module allows the software application to cause power to be
removed from the microcontroller, and then be powered on later based on specific time or a signal
on the external WAKE pin. The API provides functions to configure wake conditions, manage
interrupts, read status, save and restore program state information, and request hibernation mode.
Some of the features of the Hibernation module are:

32-bit real time clock
Trim register for fine tuning the RTC rate
Two RTC match registers for generating RTC events
External WAKE pin to initiate a wake-up
Low-battery detection
64 32-bit words of non-volatile memory
Programmable interrupts for hibernation events
This driver is contained in driverlib/hibernate.c, with driverlib/hibernate.h containing the API definitions for use by applications.  


아무튼 NVRAM을 사용하기 위한 함수는 다음과 같다. 
void HibernateDataGet (unsigned long ∗pulData, unsigned long ulCount)
void HibernateDataSet (unsigned long ∗pulData, unsigned long ulCount) 

---
2012.3.7 추가


hibernate module이 없는 모델도 있으니 주의!

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

KEIL MDK(ARM)에 H-JTAG 사용하기  (0) 2012.03.23
lm flash example  (0) 2012.03.13
arm-linux-gcc 와 arm-elf-gcc의 차이점  (2) 2012.01.16
winARM  (0) 2012.01.12
ARM infocenter  (0) 2011.12.10
Posted by 구차니
난 귀찮은데다가 돈이 없으니 400W 뻥파워 포함으로 지름

장점 : 겁나 가벼움 / LED가 이뻐 / HDD가 두개 들어가~
단점 : HDD,ODD 쪽 잘 베임 / HDD,ODD쪽 손으로 누름 막 구부러짐 / 아래의 녹색 HDD 넣긴 좀 많이 빡심
         번들파워가 시끄러움 / 파워쪽 냉각이 잘 안되는지 열남 / 배기구는 착탈식이 아님 / 배기구는 개조도 힘든 구조임

결론 : 그냥 쓰기에는 무난하고 디자인도 괜찮고 가벼워서 좋음




[링크 : http://blog.danawa.com/prod/?prod_c=1274208]

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

그래도 꼴에 SSD는 SSD라고~  (0) 2012.03.09
Supertalent IDE SSD 8GB  (0) 2012.03.06
하드문제?  (2) 2012.03.05
unganged mode 관련 설정  (0) 2012.03.05
sata 케이블 두께(awg와 emi)  (4) 2012.03.03
Posted by 구차니
SATA 하드랑 나랑은 안 맞는건지
아무튼 이래저래 안 좋은 기억만 잔뜩 쌓여가는 SATA인데... -_-

500GB짜리 이녀석이 ASUS M2N-SLI에서 부팅도 안되고 인식도 잘 안되서
이번에 새로 맞춘 녀석에 꽂아서 부팅을 하니 정상작동 헐?
벤치마크 해보니 조금 오락가락하는데다가 SMART 데이터도 노란거 하나 들어온거 봐서는 슬슬맛이 갈때가 된 듯 한데
그래서 인식을 제대로 못했던 걸려나? 아무튼.. 새 하드 사서 또 시도를 해봐야 할 듯 에효~




2012/03/03 - [개소리 왈왈/컴퓨터 / 노트북] - sata 케이블 두께(awg와 emi)

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

Supertalent IDE SSD 8GB  (0) 2012.03.06
본체가 왔어요!!!! - 2MONS 엘포즈  (0) 2012.03.06
unganged mode 관련 설정  (0) 2012.03.05
sata 케이블 두께(awg와 emi)  (4) 2012.03.03
LG 노트북 복구 시스템의 비밀?  (0) 2012.03.02
Posted by 구차니
"고객님.
옥션에서 구매하신 상품 구매확정 부탁드립니다. 하신분은 감사합니다."



문자에 밑도 끝도 없이 요따구로 보내는 센스~! 
Posted by 구차니
문제(?)의 Unganged mode 출력 메시지


RAM 설정에 보면 Ganged Mode 라는게 있는데, Auto로 하면 unganged mode로 잡히는듯
아무튼 옆에 도움말 처럼 single channel momory mode, 64bit로 전송된다고 되어있다.



2012/03/02 - [하드웨어] - ddr2 unganged mode

Posted by 구차니
하드웨어2012. 3. 4. 22:09
헐.. Multi에 Triple이 포함 안되는건 무슨 개념인게냐!!!
차라리 그럼 MLC 대신 BLC(Bi-) 혹은 DLC(Double -)을 하던가!!!

[링크 : http://blog.naver.com/shinminshoo/40152323472]

'하드웨어' 카테고리의 다른 글

AMD 4200+x2 가상화 전력소모  (0) 2012.04.02
DVD+R Double Layer(DL) 8.5GB  (0) 2012.03.29
ddr2 unganged mode  (0) 2012.03.02
Phenom2 X4 945 업그레이드  (0) 2012.02.27
Phenom2 945 용 ACPI 드라이버  (0) 2012.02.27
Posted by 구차니
Linux/Ubuntu2012. 3. 4. 20:46
vlc / totem / smplayer

세개를 써봤는데 h.264(avc) 코덱으로 되어 있는 1920x1080에 대해서
윈도우에서도 그리 버벅댈 사양은 아닐꺼 같은데(AMD 4400+x2/1GB/740g)
 
아무튼 vlc가 가장 덜 끊어지고,
totem 이나 smplayer는 비슷한 수준 ㅠ.ㅠ 
Posted by 구차니
Linux/Ubuntu2012. 3. 3. 23:00
예전에 ATI로는 해본적이 없던가..?
아무튼 처음에 부팅할때 이상하게 화면이 자주 깜빡이고 모니터도 색상이 이상하게 나오다가
겨우잡는 현상이 발생되서 자세히 보고 있으니, 부팅메시지 중에도 EDID Error가 나오길래
dmesg로 보니 아래와 같이 촤르르르륵

[   12.423089] [drm] Initialized drm 1.1.0 20060810
[   12.470094] [drm] radeon defaulting to kernel modesetting.
[   12.470098] [drm] radeon kernel modesetting enabled.
[   12.470163] radeon 0000:01:05.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
[   12.472067] [drm] radeon: Initializing kernel modesetting.
[   12.472807] [drm] register mmio base: 0xFEAF0000
[   12.472810] [drm] register mmio size: 65536
[   12.473833] ATOM BIOS: ATI
[   12.474044] [drm] GPU reset succeed (RBBM_STATUS=0x10000140)
[   12.474061] [drm] radeon: VRAM 32M
[   12.474063] [drm] radeon: VRAM from 0x3E000000 to 0x3FFFFFFF
[   12.474065] [drm] radeon: GTT 512M
[   12.474066] [drm] radeon: GTT from 0x40000000 to 0x5FFFFFFF
[   12.474098] [drm] radeon: irq initialized.
[   12.474314] [drm] Detected VRAM RAM=32M, BAR=32M
[   12.474319] [drm] RAM width 128bits DDR
[   12.476930] [TTM] Zone  kernel: Available graphics memory: 443732 kiB.
[   12.476934] [TTM] Zone highmem: Available graphics memory: 496824 kiB.
[   12.476954] [drm] radeon: 32M of VRAM memory ready
[   12.476956] [drm] radeon: 512M of GTT memory ready.
[   12.476976] [drm] GART: num cpu pages 131072, num gpu pages 131072
[   12.480743] [drm] radeon: 1 quad pipes, 1 z pipes initialized.
[   12.480760] [drm] radeon: cp idle (0x10000C03)
[   12.480863] [drm] Loading RS690/RS740 Microcode
[   12.480936] platform radeon_cp.0: firmware: requesting radeon/RS690_cp.bin
[   12.487430] [drm] radeon: ring at 0x0000000040000000
[   12.487450] [drm] ring test succeeded in 1 usecs
[   12.487598] [drm] radeon: ib pool ready.
[   12.487680] [drm] ib test succeeded in 0 usecs
[   12.487782] [drm] Default TV standard: NTSC
[   12.487884] [drm] Radeon Display Connectors
[   12.487886] [drm] Connector 0:
[   12.487887] [drm]   VGA
[   12.487890] [drm]   DDC: 0x7e50 0x7e40 0x7e54 0x7e44 0x7e58 0x7e48 0x7e5c 0x7e4c
[   12.487892] [drm]   Encoders:
[   12.487893] [drm]     CRT1: INTERNAL_KLDSCP_DAC1
[   12.487895] [drm] Connector 1:
[   12.487896] [drm]   S-video
[   12.487897] [drm]   Encoders:
[   12.487899] [drm]     TV1: INTERNAL_KLDSCP_DAC1
[   12.487900] [drm] Connector 2:
[   12.487902] [drm]   DVI-D
[   12.487903] [drm]   HPD2
[   12.487905] [drm]   DDC: 0x7e40 0x7e60 0x7e44 0x7e64 0x7e48 0x7e68 0x7e4c 0x7e6c
[   12.487907] [drm]   Encoders:
[   12.487909] [drm]     DFP2: INTERNAL_DDI
[   12.487910] [drm] Connector 3:
[   12.487911] [drm]   HDMI-A
[   12.487914] [drm]   DDC: 0x7e40 0x7e50 0x7e44 0x7e54 0x7e48 0x7e58 0x7e4c 0x7e5c
[   12.487915] [drm]   Encoders:
[   12.487917] [drm]     DFP3: INTERNAL_LVTM1
[   12.557911] HDA Intel 0000:00:14.2: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[   12.604074] [drm:edid_is_valid] *ERROR* Raw EDID:
[   12.604113] <3>03 00 00 00 00 00 00 00 07 00 00 00 00 00 00 00  ................
[   12.604115] <3>00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[   12.604117] <3>00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[   12.604120] <3>00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[   12.604122] <3>00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00  ................
[   12.604124] <3>00 00 00 00 00 0f 00 00 00 00 00 00 00 00 00 00  ................
[   12.604126] <3>00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[   12.604129] <3>00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[   12.604130] 

그래서 찾아보니 머.. 결론은 i2c를 통해서 EDID정보를 받는데 그 부분의 드라이버 설정이 오류가 있는지
다시 컴파일을 해주어야 한다~ 머 이런거.. 지금와서 ATI에서 다시 드라이버 리눅스용으로 받으면 해결이 되려나?

[링크 : http://ubuntuforums.org/showthread.php?t=1607778 

---
혹시나 해서 찾아봤지만.. 리눅스 내장 드라이버 아닌, ATI 공식 드라이버는 XP/VISTA용 밖에 없는듯 하다.

 
Posted by 구차니
Linux/Ubuntu2012. 3. 3. 22:43
요즘 컴퓨터 CPU들은 절전을 위해 여러가지 클럭을 지원하는데
이러한 클럭을 임의로 조정하는 방법이 존재한다.

설정가능한 클럭을 확인하려면 아래의 경로를 참고하면 되고
$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
1300000 1200000 1000000 800000 600000

$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
userspace powersave ondemand conservative performance

[링크 : http://embraceubuntu.com/2005/11/04/enabling-cpu-frequency-scaling/ ]  

클럭변경은 cpufreq-selector 라는 명령을 이용하면 된다.
$ cpufreq-selector -f 1300000 

[링크 : http://diablo.ucsc.edu/cgi-bin/man/man2html?cpufreq-selector+1 ]  


그나저나.. 우분투에서 초기에는 최고클럭으로 작동하다 냅두면 최저클럭으로 "Ondemand"설정이 되긴 하지만
처음부터 최저클럭으로 설정하는 옵션은 없으려나? 

---
조금 뒤져보니, 아래의 스크립트에서 시간과 파워모드를 다른걸로 해주면 된다.
onedemand 대신 powersave로 하면 일단 최저클럭으로 들어가는 듯.

$ vi /etc/init.d/ondemand
#! /bin/sh
### BEGIN INIT INFO
# Provides:          ondemand
# Required-Start:    $remote_fs $all
# Required-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:
# Short-Description: Set the CPU Frequency Scaling governor to "ondemand"
### END INIT INFO


PATH=/sbin:/usr/sbin:/bin:/usr/bin

. /lib/init/vars.sh
. /lib/lsb/init-functions

case "$1" in
    start)
        start-stop-daemon --start --background --exec /etc/init.d/ondemand -- background
        ;;
    background)
        sleep 60 # probably enough time for desktop login

        for CPUFREQ in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
        do
                [ -f $CPUFREQ ] || continue
                echo -n ondemand > $CPUFREQ
        done
        ;;
    restart|reload|force-reload)
        echo "Error: argument '$1' not supported" >&2
        exit 3
        ;;
    stop)
        ;;
    *)
        echo "Usage: $0 start|stop" >&2
        exit 3
        ;;
esac 
 
Posted by 구차니
sata 연결하면 이상하게
asus m2n-sli 보드에서 부팅이 안되거나 예전에는 되도 무진장 느린 문제가 있었는데
오늘 케이블을 비교해보니... 음? 두께가 다르다?!?!
undefined

하나는 26 awg이고 다른 하나는 30 awg인데
혹시나 비교해보니 3ware raid에 준건 26 awg짜리 sata 케이블이다.
아부지께 여쭈어보니 케이블이 두꺼우면 외부 전기를 조금은 더 흡수해주지 않겠냐는데
awg와 emi는 딱히 연관이 없고 전류문제라는 이야기 뿐..

검색해보니 하드를 안에두냐 밖에두냐에 따라 응답속도가 달라졌다는데.. 흐음?
When I tested my 7200.12 1TB outside my case I got ~15.4ms lat. while inside my case with the SATA cable at the back I got 22-28ms. Cable came with mobo and is 26AWG. 

[링크 : http://www.overclock.net/t/958120/sata-cable-emi]  

어떤 사람은 30AWG로 하니 맛탱이 갔는데 26AWG로 교체하고는 문제가 없다고도 한다.
I hate to dredge up an old thread but I cam across this when looking into my sata problems.

I've recently rebuilt a file-server with 5x750gb,5x500gb (both raid5) and 2x200gb (raid1 boot) in one nice big ol case. Everything was fine untill recently the set of 500gb drives started acting up. So I pulled it all down tested each drive individually and found no errors. This is after a full read test and a full drive test with the WD tools so it just didnt make any sense. I had also tried limiting the drive speeds to SATA1 and also enabling SCC (spread spectrum clocking) which should reduce interference but no joy.

The drives themselves are connected to a 5port sata port multipler (silicon image) and then each port multipler is linked to a 2port PCIe sata card. So I fugred do some testing swapped both sets of 5 drives, e.g. moved each set onto the opposite port multiplier which I know is working. Still no go. So to keep going I grabbed my old PCI 4port sata card and threw that in, almost seemed to make it worse, either errors or the card locking up during boot which just didnt make sense.

So next thing was to swap out all the cabling on the disks playing up, I had another spare set of 30AWG sata cables and put them in. Same issue again, errors when accessing them or just being flakey. It was then I noticed the other drives not having a problem were all using 26AWG sata cables.

So today I grabbed a set of 26AWG cables and chucked them in and low and behold away goes the problem! Still rebuilding the array over 85% done but no errors and getting past 1% is always a good sign 

Never would have expected the thin cables to be an issue as i've used them on plenty of machines in the past and many of them were brand new (ordered a bulk set recently). My best guess is that on their own or with only a couple drives in close together that they are ok but once you have a large number of disks they suffer from interference.

What gets me is that I found a stack of these 30AWG cables in my motherboard box for a mobo that has 8 sata ports... 

[링크 : http://forums.overclockers.com.au/showthread.php?t=467018]  

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

하드문제?  (2) 2012.03.05
unganged mode 관련 설정  (0) 2012.03.05
LG 노트북 복구 시스템의 비밀?  (0) 2012.03.02
으헝헝헝헝헝 질러버렸어 ㅠ.ㅠ  (0) 2012.03.02
질러 말어?  (2) 2012.03.02
Posted by 구차니