요약·해설, 영어 원문, 전체 번역을 구분해 실었습니다. API 이름, 코드 심벌, 소스 경로는 원문 표기를 유지합니다.
1. 요약·해설
원문의 핵심 내용을 정리하고 커널 프로그래밍에 필요한 설명을 덧붙였습니다. 아래의 전체 번역과는 별도로 작성한 해설입니다.
2. 영어 원문 전체
번역에 사용한 Linux v6.18.37 원문입니다. 줄 번호는 해당 버전의 소스 파일을 기준으로 합니다.
원문 전체 펼치기
1
What: /sys/bus/spi/<dev>/update_firmware
2
Date: Jul 2021
3
Contact: [email protected]
4
Description: Write 1 to this file to update the ACHC microcontroller
5
firmware via the EzPort interface. For this the kernel
6
will load "achc.bin" via the firmware API (so usually
7
from /lib/firmware). The write will block until the FW
8
has either been flashed successfully or an error occurred.
10
What: /sys/bus/spi/<dev>/reset
11
Date: Jul 2021
12
Contact: [email protected]
13
Description: This file represents the microcontroller's reset line.
14
1 means the reset line is asserted, 0 means it's not
15
asserted. The file is read and writable.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미에 맞춰 전체 내용을 번역했습니다. 코드, 함수명, 코드 심벌, URL은 원문 표기를 유지합니다.
ACHC firmware update
1-9| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/bus/spi/<dev>/update_firmware |
| Date | 2021년 7월 |
| Contact | [email protected] |
| Description | 이 file에 1을 write하면 EzPort interface를 통해 ACHC microcontroller firmware를 update합니다. Kernel은 firmware API를 통해 "achc.bin"을 load하며, 보통 /lib/firmware에서 가져옵니다. Write는 firmware flashing이 성공하거나 error가 발생할 때까지 block됩니다. |
Write 1 to update_firmware→Kernel firmware API loads achc.bin→Flash through EzPort→Write returns on success or error
Synchronous sysfs write가 firmware load와 flashing 완료를 기다립니다.
ACHC microcontroller reset line
10-15| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/bus/spi/<dev>/reset |
| Date | 2021년 7월 |
| Contact | [email protected] |
| Description | Microcontroller의 reset line을 나타냅니다. 1은 reset line asserted, 0은 not asserted를 뜻합니다. File은 read/write 가능합니다. |
Firmware update and reset
sysfs-driver-ge-achc:1-15update_firmware는 achc.bin을 load해 성공 또는 error까지 block하고, reset은 1 asserted·0 deasserted 상태를 read/write합니다.