Pack U-Boot into nk.bin for Brain EBOOT
Go to file
Chiharu Shirasaka b62d1a7b00 remove gelf.h 2020-10-18 16:28:18 +09:00
.gitignore first commit 2020-10-09 18:29:19 +09:00
LICENCE Create LICENCE 2020-10-12 16:51:54 +09:00
Makefile first commit 2020-10-09 18:29:19 +09:00
README add line to install dependency 2020-10-18 15:55:39 +09:00
bsd-ce.c getopt arg fix 2020-10-16 22:41:10 +09:00
nk-dump.c remove gelf.h 2020-10-18 16:28:18 +09:00

README

This is a nk.bin maker which contains U-Boot
Based on bsd-ce(https://rink.nu/projects/bsd-ce.html)

動作原理:
SHARP BrainはOSとしてWindows CE 6.0を搭載している
Brainに搭載されているWindows CE用のブートローダー(EBOOT)はSDカードから所定の名前のOSイメージを読み込み
仮想アドレス0xA0200000(物理アドレス0x40200000)へとジャンプする
ここでBSDカーネルをWindows CEのブートローダーから起動するためのnk.binを生成するプログラムを流用し
0xA0200000へU-Bootを読み込むようにパックしたnk.binを生成するのが本プログラムである

使用方法:
gccとmakeのインストールされたLinux上で

sudo apt install libelf-dev  # Debianの場合
git clone https://github.com/brain-hackers/nkbin_maker
cd nkbin_maker
make
./bsd-ce (ビルドして出力されたu-boot.binのパス)

フォルダ内にU-Bootがパックされたnk.binが生成される