Re: FAT can't read big files.
Posted: Thu Jun 14, 2018 8:51 am
I have managed to setup the qemu debugger with kgdb and I really like it, I had no idea that it was possible to view the direct source code because this makes things a whole lot easier.iansjack wrote:You can use gdb in conjunction with qemu for kernel debugging. This requires nothing extra of your code, just that you start qemu with the appropriate options. gdb allows you to work with assembler or C/C++. So you can step through C code, display (and alter) C variables - including structures, set breakpoints in C code and set watches (which break into the program when a variable changes) on C variables. It is an order of magnitude easier to work with C code this way than with an assembly-only debugger.
https://wiki.osdev.org/Kernel_Debugging ... _with_QEMU
I have tried now with a large string containing only 'A' but this is also displayed correctly, I have also tried loading a bmp image via fat but that image is corrupted as well when I draw it to the screen. So the issue probably really exists in the reading code, but it could have been a logical explanation for the problem so thanks anyway.zaval wrote: but have you rechecked your Console code? it might be working perfectly if the length of the "MEGA, " string is small, but producing errors when it gets large. Try with the much longer string.