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

blank black screen #13

Open
seven1240 opened this issue Aug 2, 2024 · 2 comments
Open

blank black screen #13

seven1240 opened this issue Aug 2, 2024 · 2 comments

Comments

@seven1240
Copy link

seven1240 commented Aug 2, 2024

this might be related to #11 but I'm using C.

I can reproduce with:

git clone https://github.com/limine-bootloader/limine-c-template-portable
make
make run

to make sure everything works

then

cd kernel/src
git clone https://github.com/mintsuki/flanterm.git
cd ../..
make
make run

The GNUMakefile looks great, it can builds everything into the kernel, and works fine.

add headers to kernel/src/main.c .

#include <flanterm/flanterm.h>
#include <flanterm/backends/fb.h>

add the following code to kernel/src/main.c, just before hcf();

struct flanterm_context *ft_ctx = flanterm_fb_init(
        NULL,
        NULL,
        framebuffer->address, framebuffer->width, framebuffer->height, framebuffer->pitch,
        framebuffer->red_mask_size, framebuffer->red_mask_shift,
        framebuffer->green_mask_size, framebuffer->green_mask_shift,
        framebuffer->blue_mask_size, framebuffer->blue_mask_shift,
        NULL,
        NULL, NULL,
        NULL, NULL,
        NULL, NULL,
        NULL, 0, 0, 1,
        0, 0,
        0
    );

build and restart the template OS, I see a blank black screen instead of the line.

Thanks.

@mintsuki
Copy link
Owner

mintsuki commented Aug 3, 2024

Make sure that you have mem*() functions and that they work correctly and are standard compliant.

@seven1240
Copy link
Author

Thanks for your reply. mem*() functions are included in limine-c-template-portable I just retried on a new debian 12 x86_64 with the above steps and I still see a blank black screen.

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

2 participants