20150126

1. 영어 기사 읽기
1) Why a Messy Workspace Undermines Your Persistence, HBR
– In one of our experiments, more than 100 undergraduates were exposed either to an uncluttered space or to a work area where papers, folders, and cups were scattered over shelves, a desk, and the floor, like so: (uncluttered – 어수선한, 2014/08/10)
– One possibility that comes to mind is extreme self-consciousness — ruminating about others’ perceptions. (ruminating – 곰곰히 생각하다)
2) Greece ‘leaves behind the austerity that ruined it,’ party leader vows after vote, CNN
– Greece ‘leaves behind the austerity that ruined it,’ party leader vows after vote
(austerity – 금욕적임, 내핍 상태)
– The firebrand leader of Greece’s left-wing Syriza party appeared to be bracing for a bigger battle as he declared victory in Sunday’s election. (firebrand – 선동가)
– “That is a gamble that people in Greece seem to be prepared to take at this point, simply because the terms of its bailout have been so severe,” Greek journalist Elinda Labropoulou told CNN on Sunday. (bailout – 긴급 구제)
– After conceding defeat Sunday, outgoing Prime Minister Antonis Samaras said his conscience was clear. (concede – 인정하다, 2014/07/28)


2. Kernel compile 및 MARSS 이미지에 적용
MARSS documentation에서 옵션에 kernel 이미지를 줌으로써 kernel을 업데이트할 수 있다고 하는데, 실제로는 되지 않았다.

$qemu/qemu-system-x86_64 -m MEM_SIZE -drive file=DISK_IMAGE -kernel KERNEL_BZ_IMG -initrd INITRD_IMG -append "root=/dev/hda1" <OTHER_QEMU_OPTIONS>

부팅이 제대로 되지 않았다. (첫 화면의 반복)
일반적인 kernel 업데이트 방법을 사용해 컴파일한 kernel을 MARSS 이미지에 올리는 것에 성공함. Kernel module을 설치하지 않고 빌드하고 싶었으나, 그 방법은 찾지 못함. (initrd 생성하려면 /lib/modules 아래에 모듈이 있어야 한다.
다음과 같이 bzImage와 module을 빌드한다.

$wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.18.3.tar.xz
$tar -xf ./linux-3.18.3.tar.xz
$cd linux-3.18.3
$make oldconfig
$make bzImage -j13
$make modules -j13
$sudo make modules_install

이렇게 빌드한 bzImage와 module을 이미지로 복사하고, initrd를 생성한다.
1) bzImage를 /boot/vmlinuz-3.18.3로 복사한다.
2) .config를 /boot/config.3.18.3으로 복사한다.
3) /lib/modules/3.18.3/ 이미지로 복사한다.
4) initrd를 생성한다.

$mkinitramfs -o /boot/initrd.img-3.18.3 3.18.3

5) update-grub을 해준다.

$update-grub

Kernel tick frequency를 바꾸려면 menuconfig에서 Processor Type and features -> Timer frequency를 바꿔주면 된다.

Advertisements
Posted in 1) Memo

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

누적 방문자 수
  • 101,726 hits
%d bloggers like this: