크로미움 OS 빌드 스크립트를 이용하여 빌드한 파일시스템에 있는 커널 모듈은 우리가 자체적으로 빌드한 커널과 약간의 차이점이 있습니다.
따라서 우리가 자체적으로 빌드한 커널 모듈파일로 대체해 주어야합니다.
(kernel_source)/build 디렉토리로 이동한 뒤, 다음 명령어들을 실행시켜줍니다.
make modules sudo make mouldes_install
위 명령어를 실행 시켜주면 /lib/modules에 3.0.13 (빌드한 커널 버전명) 이라는 이름으로 폴더가 하나 생성됩니다.
이 폴더를 크로미움 OS 파일시스템의 /lib/modules 에 복사해줍니다. (만약 이전에 같은 이름의 폴더가 존재하면, 삭제한 후 복사합니다.)
이 설정파일은 시리얼 콘솔 메세지를 출력할 포트를 지정해줍니다.
우리는 ttySAC2 에 115200bps를 사용하므로 다음과 같이 바꾸어줍니다.
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. start on starting boot-services stop on stopping boot-services respawn exec /sbin/agetty 115200 ttySAC2 linux post-start script # Disable screen blanking and powering down for dev & factory. # TODO(tbroch) If X is running and DPMS is enabled it still blanks VT2. # Investigate possibility of tying these different code paths together. setterm -cursor on -blank 0 -powersave off -powerdown 0 >/dev/console || true end script
이 설정파일은 power management 에 관한 내용을 설정해줍니다. 우리보드에서는 기본적으로 사용하지 않으므로 respawn 부분만 주석처리 해줍니다.
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. description "Start powerm after dbus has started" author "chromium-os-dev@chromium.org" start on started dbus stop on starting halt or starting reboot env LOG_DIR=/var/log/power_manager env RUN_DIR=/var/run/power_manager env PREFS_DIR=/var/lib/power_manager #respawn #respawn limit 20 60 # if the job respawns 20 times in 60 seconds, stop trying. script mkdir -p ${LOG_DIR} ${RUN_DIR} chmod 755 ${RUN_DIR} exec /usr/bin/powerm \ --prefs_dir=${PREFS_DIR} \ --log_dir=${LOG_DIR} \ --run_dir=${RUN_DIR} \ > ${LOG_DIR}/powerm.out 2>&1 end script
시스템의 시간 정보를 업데이트 하는 설정파일 입니다. 이 파일에서는 시작 조건을 바꾸어주면됩니다.
기존 정보는 다음과 같습니다.
start on started system-services
시스템 서비스들이 시작 되고 난 뒤에 이 설정파일이 실행된다는 뜻입니다. 이것을 부팅 서비스들이 시작 될 때로 바꾸어줍니다.
start on starting boot-services
이 스크립트는 chrome 브라우저를 띄우는 스크립트입니다. 여기서 수정해야 할 내용은 그래픽 가속 부분을 비 활성화 시키는 것입니다.
그 이유는 현재 V210 을 대상으로 그래픽 가속 부분을 커널에 포팅해주지 않았기 때문입니다.
스크립트 맨 아래에 있는 크롬 실행 부분에서 ${ACCELERATE_FLAGS} 를 주석처리 해 줍니다.
exec /sbin/session_manager --uid=${USER_ID} -- \ $CHROME --apps-gallery-title="Web Store" \ --apps-gallery-url="https://chrome.google.com/webstore/" \ --compress-sys-feedback \ --device-management-url="$DMSERVER" \ --disable-seccomp-sandbox \ --enable-accelerated-plugins \ --enable-device-policy \ --enable-gview \ --enable-logging \ --enable-onc-policy \ --enable-smooth-scrolling \ --enterprise-enrollment-initial-modulus=5 \ --enterprise-enrollment-modulus-limit=12 \ --load-opencryptoki \ --log-level=1 \ --login-manager \ --login-profile=user \ --no-first-run \ --ppapi-flash-args=enable_stagevideo_auto=0 \ --reload-killed-tabs \ --scroll-pixels=3 \ --user-data-dir="$DATA_DIR" \ --webui-login \ --no-protector \ "$REGISTER_PLUGINS" \ # ${ACCELERATED_FLAGS} \ ${AURA_FLAGS} \ ${FLASH_FLAGS} \ ${SCREENSAVER_FLAG} \ ${SHOW_VOLUME_STATUS_FLAG} \ ${SKIP_OOBE} \ ${WM_SCRIPT:+-- "${WM_SCRIPT}"}