Skip to content
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

[BUG] Running the boot code using qemu hangs PC #821

Open
hbina opened this issue Sep 1, 2022 · 3 comments
Open

[BUG] Running the boot code using qemu hangs PC #821

hbina opened this issue Sep 1, 2022 · 3 comments

Comments

@hbina
Copy link

hbina commented Sep 1, 2022

Describe the bug
Running the boot code hangs my PC.

To Reproduce

  1. Copy the code from https://github.com/0xAX/linux-insides/blob/54f9314a5677c29a42eb0a304321a48361da3e24/Booting/linux-bootstrap-1.md
  2. Compile and run using nasm -f bin boot.nasm && qemu-system-x86_64 boot.
  3. Computer hangs

Expected behavior
It runs and shouldn't hang my PC.

Additional context

hbina@akarin:~$ screenfetch -n
 hbina@akarin
 OS: Ubuntu 20.04 focal
 Kernel: x86_64 Linux 5.15.0-46-generic
 Uptime: 7m
 Packages: 2076
 Shell: bash 5.0.17
 Resolution: 1920x1080
 DE: GNOME 3.36.5
 WM: Mutter
 WM Theme: Adwaita
 GTK Theme: Yaru [GTK2/3]
 Icon Theme: Yaru
 Font: Ubuntu 11
 Disk: 104G / 453G (25%)
 CPU: AMD Ryzen 7 4800U with Radeon Graphics @ 16x 1.8GHz
 GPU: AMD/ATI
 RAM: 2834MiB / 31518MiB
hbina@akarin:~$ qemu-system-x86_64 --version
QEMU emulator version 4.2.1 (Debian 1:4.2-3ubuntu6.23)
Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers
hbina@akarin:~$ nasm --version
NASM version 2.14.02
@luohuang
Copy link

luohuang commented Sep 1, 2022 via email

@bnjmnjrk
Copy link

Try adding [org 0x7c00] as the second line

@luohuang
Copy link

luohuang commented Sep 18, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants