-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A few minor issues in chapter 2 #18
Comments
Howdy! For your side note, I can't think of a particular reason that might be happening, but feel free to open a discussion. It might be useful to include your code as well. I may or may not be able to spot the problem. |
Thanks a lot! Let me get the PR ready. Wish I could help on UEFI, but me myself a beginner in these things, but if you have any extra resources and kind of plan, perhaps I could try my best :) |
Yeah, even I am not amazingly familiar with UEFI, so unless someone from the community wants to step up and add large sections to the book, that's most likely a project that will have to wait for some time, until I have a chance to learn all the different details and distill them into something that fits within this book (or potentially a separate work). For your PR, I would like to get your issue resolved first, as I am still uncertain whether or not it is actually functional until a full working example is produced. |
Thanks. My PR is regarding the missing packages, so don't think it has anything to do with the issue I'm facing. Regarding working example, I'm able to reproduce the issue as it is from the code sample on the book. However, if you prefer, let me upload the files as a zip too in the discussions :) |
I also encountered the bx_dbg_read_linear error. After some investigation, I found that this issue might be related to a bug in the BIOS included in the Debian Bochs package. There is a discussion in StackOverflow about the problem (link). To resolve this, I installed the RPM package from the official Bochs source forge, which successfully resolved the issue. Here are the steps I took:
Hope this helps anyone who gets stuck! |
Hii, a good new is, this issue has been fixed upstream in Debian! |
A good solution! For those who don't feel comfortable with mixing packages, you can just extract the BIOS image from the RPM package and use it locally. More info here - #20 (reply in thread). |
Hii, thanks for stepping up to keep the project alive.
I'm tried the chapter 2 and found some issues regarding the packages one needs to install.
mtools
, otherwise they will get -grub-mkrescue: error:
mformatinvocation failed
. Alsogrub-pc-bin
does not seem to be required anymore.sdl2
oversdl
.I'm on Debian Testing edition, so there is very good chance that future editions of Ubuntu and other Debian based distros will have to reflect it too. I'm not sure how it is on other distros like Fedora or Arch.
I can make a pull request if you like.
Side note:
bx_dbg_read_linear: physical memory read error (phy=0x0000322f3331, lin=0x00000000322f3331) Next at t=662802
after pressingc
after runningbochs
. And my registers are all 0, what could I be doing wrong?Thank you!
The text was updated successfully, but these errors were encountered: