■
72.3kg..
減る努力してないから、ほとんど変わらないよな。。。
さて。
この生活も、後、どのぐらい続くのだろうか。。
という事で、4日目の最初を実行してみたが。。。
$ make run
make -r img
make -r haribote.img
nasm ipl10.nas -o ipl10.bin -l ipl10.lst
nasm -f elf32 asmhead.nas -o asmhead.bin -l asmhead.lst
nasm -f elf32 naskfunc.nas -o naskfunc.o -l naskfunc.lst
x86_64-elf-gcc -c -march=i486 -m32 -nostdlib bootpack.c -o bootpack.o
x86_64-elf-ld -m elf_i386 -e HariMain -o bootpack.hrb -T hrb.ld bootpack.o naskfunc.o
cat asmhead.bin bootpack.hrb > haribote.sys
mformat -f 1440 -C -B ipl10.bin -i haribote.img ::
mcopy -i haribote.img haribote.sys ::
qemu-system-i386 -drive file=haribote.img,format=raw,if=floppy -boot a
白い画面出てこーい!!!
。。。(案の定っていうか)
まぁ、そうだろうよ、そうだろうよ。。。
分からず進んでるからな。。
という訳で、Debug環境作る方向ですかね。。とりあえず。。(涙)
(なんか、全部悪い方向へ行く気がする。。)
QEMUにGDBを繋げてhariboteOSをデバッグする方法 - Yabu.log
ホスト(macOS Catalina)からgdbで,QEMU上のOS kernelをデバッグできるようにする
この辺りを見つつ、試してみる。
まずは、gdbは入っていないようだし、インストールじゃ。
Updating Homebrew...
==> Downloading https://homebrew.bintray.com/bottles/gdb-9.1_1.catalina.bottle.t
#=#=#
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to homebrew.bintray.com:443
Error: Failed to download resource "gdb"
Download failed: https://homebrew.bintray.com/bottles/gdb-9.1_1.catalina.bottle.tar.gz
Warning: Bottle installation failed: building from source.
==> Downloading https://ftp.gnu.org/gnu/gdb/gdb-9.1.tar.xz
#=#=#
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to ftp.gnu.org:443
Trying a mirror...
==> Downloading https://ftpmirror.gnu.org/gdb/gdb-9.1.tar.xz
#=#=#
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to ftpmirror.gnu.org:443
Error: An exception occurred within a child process:
DownloadError: Failed to download resource "gdb"
Download failed: https://ftpmirror.gnu.org/gdb/gdb-9.1.tar.xz
は???(orz...)
どういう事??
仕方ないので、ソース落として自分でやるか。。。(何でいつもこうなるんだろう。。)
README for GNU development tools
This directory contains various GNU compilers, assemblers, linkers,
debuggers, etc., plus their support routines, definitions, and documentation.
If you are receiving this as part of a GDB release, see the file gdb/README.
If with a binutils release, see binutils/README; if with a libg++ release,
see libg++/README, etc. That'll give you info about this
package -- supported targets, how to use it, how to report bugs, etc.
It is now possible to automatically configure and build a variety of
tools with one command. To build all of the tools contained herein,
run the ``configure'' script here, e.g.:
./configure
make
To install them (by default in /usr/local/bin, /usr/local/lib, etc),
then do:
make install
OK!!じゃ、やるぜ!!
$ ./configure
configure: error: GDB must be configured and built in a directory separate from its sources.
To do so, create a dedicated directory for your GDB build and invoke
the configure script from that directory:
$ mkdir build
$ cd build
$ <full path to your sources>/gdb-VERSION/configure [etc...]
$ make
はい。。。
上に従い、再度実行!
make install した後に、下記コメントが。。
make[1]: Nothing to be done for `install-target'.
???
でも、
$ gdb -v
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
分からない。。。。(orz...)
もう時間なので、おわる。
続く。