evilbinary/YiYiYa

blank screen on qemu

Closed this issue · 5 comments

when testing on qemu only shows blank screen, below is the complete log=
scons --run=qemu

scons: Reading SConscript files ...
kernel size: 99764
scons: done reading SConscript files.
scons: Building targets ...
sudo losetup /dev/loop10 image/disk.img && sudo mount /dev/loop10 /mnt && sudo cp app/hello/hello app/gui/gui.elf app/microui/microui.elf app/file/file.elf app/etk/etk.elf app/test/test.elf app/bin/ls app/lvgl/lvgl app/track/track.elf app/launcher/launcher /mnt && sudo umount /mnt && sudo losetup -d /dev/loop10
qemu-system-i386 -rtc base=localtime,clock=host -boot a -fda image/duck.img -serial stdio -chardev socket,id=monitor,path=monitor.sock,server,nowait -monitor chardev:monitor -D ./qemu.log -drive id=disk,file=image/disk.img,format=raw,if=none -device ahci,id=ahci -device ide-hd,drive=disk,bus=ahci.0 -soundhw sb16
WARNING: Image format was not specified for 'image/duck.img' and probing guessed raw.
Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
Specify the 'raw' format explicitly to remove the restrictions.
cpu init cr0=11
tr base 121a54
gdt base 121b38
idt base 9000
mm init
phy dump
base:0 0 lenght:0 9fc00 type:1
base:0 9fc00 lenght:0 400 type:2
base:0 f0000 lenght:0 10000 type:2
base:0 100000 lenght:0 7edf000 type:1
base:0 7fdf000 lenght:0 21000 type:2
base:0 total memory 127m
alloc init
=>block:0 type:1 size:654320 start: 10 end:9fc00
=>block:418800 type:1 size:129787888 start: 418810 end:7fdf000
start 0x0 - 0x200000
paging pae scucess
kernel init
exception init
syscall init
schedule init
module init
memory init
vfs init
kernel init end
module regist
not fond device 9
not fond device 10
not fond device 2
node open is null
node open is null
fat init
partition type:ff offset:0 length:0
fat init end
sb16 init
thread run
kernel run
sys print 1 #
sys open new name: /dev/sda/etk.elf fd:3 fd->id:3 ptr:11943c tid:1
sys open new name: /dev/sda/etk.elf fd:3 fd->id:4 ptr:119450 tid:2
load elf /dev/sda/etk.elf fd:3 tid:2
phnum 11 > MAX_PHDR
entry 200000
scons: done building targets.

please find MAX_PHDR in loader.h file and modify size to 12.

if u have no question,i just gonna to close this issue @mnisk

Same behavior here...
It seems crashes (hang) immediately when mouse click since booted into desktop, even keyboard will no response after that too.
Tip: When it booted into desktop, everythings seems worked fine, if I press some keys, that will show up on terminal window. However, when I press left mouse click, it seems freeze and everythings become no response (clock, terminal, etc.)
crash

ok ,solve this problem