Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
リセットとフリーズで解析する電子辞書リバエン記 / reverse-engineer-e-di...
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Takumi Sueda
November 20, 2021
Technology
7.3k
2
Share
リセットとフリーズで解析する電子辞書リバエン記 / reverse-engineer-e-dictionaries-with-reset-and-freeze
Kernel/VM 探検隊 online part4 LT
小説版:
https://www.zopfco.de/entry/reset_freeze_re
Takumi Sueda
November 20, 2021
More Decks by Takumi Sueda
See All by Takumi Sueda
これまでのハード遊びまとめ ノンストップ40分スペシャル
puhitaku
1
230
令和最新版 OpenWrt を 22 年前のルーターで動かす
puhitaku
0
5.8k
組み込みLinuxの時系列
puhitaku
4
1.9k
電子辞書にステータスバーを実装する
puhitaku
0
380
知育おもちゃの遊び方 Lv. 999
puhitaku
5
3.3k
ルーターでプレゼンする
puhitaku
1
7.5k
AST as Black Magic
puhitaku
0
200
次世代の足下を舗装するコミュニティ
puhitaku
5
2k
電子辞書で学ぶ Linux のサスペンド
puhitaku
0
800
Other Decks in Technology
See All in Technology
AIが変えた"品質の守り方"
kkakizaki
13
5.5k
Cloud Run のアップデート 触ってみる&紹介
gre212
0
290
形式手法特論:公平性制約の位相的特徴づけ #kernelvm / Kernel VM Study Kansai 12th
ytaka23
1
660
Spring Boot における AOT Cache 活用テクニックと 起動時間改善事例
ntt_dsol_java
0
200
速さだけじゃない! VoidZero ツールが移行先に選ばれる理由
mizdra
PRO
6
720
AI フレンドリーなエラー監視を TypeScript で実現する
shinyaigeek
2
200
もりもり新機能を一挙紹介! AgentCoreに入門して、AWS上にAIエージェントを構築しよう
minorun365
PRO
6
620
『家族アルバム みてね』における インシデント対応との向き合い方 / Approach incident response in Family Album
kohbis
2
280
AI時代の私の技術インプットとアウトプット術
tonkotsuboy_com
15
8.1k
ポスター発表&デモと総括 / Poster Presentations & Demonstrations and Summary
ks91
PRO
0
180
サイバーセキュリティ概論 / Introduction to Cybersecurity
ks91
PRO
0
110
Chart.js が簡単に使えるようになっていたので OGP 画像生成に使った話
kamekyame
0
110
Featured
See All Featured
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
1
130
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
220
Are puppies a ranking factor?
jonoalderson
1
3.5k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
1
2k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.4k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.3k
Designing for Timeless Needs
cassininazir
1
240
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.5k
The Pragmatic Product Professional
lauravandoore
37
7.3k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.5k
Transcript
Kernel/VM online part 4 LT @puhitaku
Takumi Sueda @puhitaku NICT HOMMA Inc. Twitter
SHARP Brain SHARP Windows CE CE exe (PE) 2011
TOSHIBA TMPA 9 10 CRAXBG (armv 5 tej) + 64 MiB DRAM Windows CE 2012 2020 NXP i.MX 2 83 (armv 5 tej) + 12 8 MiB DRAM Windows CE 2021 ??? SHARP Brain 3 https://jp.sharp/edictionary/products/pwsh 1 _overviiew.html
SHARP Brain 2019 2020 SHARP Brain PW-SH 1 Linux +
i.MX 283 Raspberry Pi Brain Linux SD Brain Linux 4 https://jp.sharp/edictionary/products/pwsh 1 _overviiew.html
2021 1 Brain
Brain https://jp.sharp/edictionary/topics/ 6
Brain https://brain-library.com/ 7
Brain OS SoC i.MX 283 8
Brain 9
Brain 10
Brain 11
Brain SoC NXP i.MX 7 ULP i.MX 7 ULP =
Cortex-A 7 + Cortex-M 4 12
Brain (Windows CE PE) OS 13
None
objdump 0 Arm 15
as ELF .text 16
17
resource hog 18
_start return 19
20
0x 00 0000 00 21
return 0 x 0 00000 0 0 22
U-Boot
U-Boot 1 . MMU 2 . MMU U-Boot U-Boot 24
U-Boot & OS API JTAG UART TX UART I/O
25
U-Boot 1bit 26
U-Boot 1 MMU
U-Boot MMU MMU mrc SCTSR MMU mcr MMU 28 SCTSR
U-Boot MMU mrc 29
U-Boot MMU 30
U-Boot MMU mrc SCTSR return 31
U-Boot 2 U-Boot
U-Boot U-Boot U-Boot MMU U-Boot 3 : 1 .
Brain 2 . DRAM 1. 1. 3 . 2. 64 KiB (large page) 1. U-Boot 33
U-Boot 2 U-Boot 1
U-Boot U-Boot 1 35 Brain 1 MiB NOP mov pc,
lr NOP = mov r0, r0
U-Boot U-Boot 1 36 1 5 MiB Brain 15 MiB
1 ( 4 Bytes) 1 5 MiB DRAM 128 MiB 11.7%
U-Boot 2 U-Boot 2
U-Boot U-Boot 38 NOP MMU NOP 1 NOP 6 4
KiB NOP NOP ……… 2 1
U-Boot U-Boot 2 39 Virtual Memory 1 5 MiB
1 MMU Physical Memory MMU
U-Boot U-Boot 2 40 1 Physical Memory 0 x
6000 000 0 0 x 6800 000 0 1 !"#$ %&'( !"#$ 1
U-Boot U-Boot 2 41 1 Physical Memory 0 x
6 78000 0 0 DRAM 15 MiB %&'( 0 x 6000 000 0 0 x 6800 000 0
U-Boot 2 U-Boot 3
U-Boot U-Boot 43 2 MMU NOP NOP 6 4
KiB NOP 3 1 NOP NOP NOP NOP
U-Boot U-Boot 44 112 64 KiB NOP NOP 6 4
KiB 3 1 NOP NOP NOP NOP 112 …
U-Boot U-Boot 1 . ✅ U-Boot 2 . ✅ MMU
3 . ✅ MMU U-Boot 1 5 MiB 0x 7 0 0 0 0 0 u-boot.bin 0x 67 800000 U-Boot U-Boot 45
U-Boot
U-Boot i.MX 7 ULP con fi g 47
U-Boot 48
U-Boot U-Boot shell 49
Linux
Linux U-Boot Image printk UART Linux 51
Linux @pepepper_cpp Mailbox Unit Linux MU NXP upstream MU merge
52
Linux Linux Linux 53
None
μITRON RTOS I/O I/O 55
& Speakerdeck 56