Go to advanced search

by 5mattmatt1
Wed Jan 16, 2019 2:16 pm
Forum: Bare metal, Assembly language
Topic: Rust framebuffer code
Replies: 12
Views: 1825

Re: Rust framebuffer code

I did OR by 0xC000_0000 in one iteration of the code, but since I was focusing on seeing UART output and getting the assembly to get out of hypervisor mode working, I took it out like an idiot. The problem I'm having is that both of those sets of ARM instructions are either doing nothing at best or ...
by 5mattmatt1
Wed Jan 16, 2019 2:39 am
Forum: Bare metal, Assembly language
Topic: Rust framebuffer code
Replies: 12
Views: 1825

Re: Rust framebuffer code

I'm really annoyed with myself right now because I managed to get the UART to work on Raspberry Pi, but I didn't look at the output of the UART each iteration and just looked at the screen each time without thinking. Then suddenly I look back at the terminal and see: &mail[0]: 0x000159B0 Get display...
by 5mattmatt1
Tue Jan 15, 2019 3:40 pm
Forum: Bare metal, Assembly language
Topic: Rust framebuffer code
Replies: 12
Views: 1825

Re: Rust framebuffer code

I'm almost positive that's the key to what's going wrong. I've been having to cobble together an ARM assembly start.S from a few sources online, I suppose I should probably take the time to go through the main resources sticky and read through everything there is about ARM Assembly, otherwise I will...
by 5mattmatt1
Tue Jan 15, 2019 1:51 am
Forum: Bare metal, Assembly language
Topic: Rust framebuffer code
Replies: 12
Views: 1825

Re: Rust framebuffer code

I have no idea what I'm getting on the real hardware. I've had some issues actually reading the output from TX that gets thrown into /dev/ttyUSB0. Stuff like screen and stuff like that just stay blank. I also tried just cat'ing /dev/ttyUSB0 and using tail -f but both of those don't show any output. ...
by 5mattmatt1
Mon Jan 14, 2019 4:53 pm
Forum: Bare metal, Assembly language
Topic: Rust framebuffer code
Replies: 12
Views: 1825

Re: Rust framebuffer code

You are absolutely right about messing up with using 24 bpp. I have now swapped over to using 32 bpp. As for the memory address, the value I get in QEMU is 0x3C100000. I've tried the methods that I've seen in other's people's code such as: fb_ptr &= 0x3FFFFFFF; as well as: fb_ptr |= 0x40000000; fb_p...
by 5mattmatt1
Mon Jan 14, 2019 2:40 pm
Forum: Bare metal, Assembly language
Topic: Rust framebuffer code
Replies: 12
Views: 1825

Re: Rust framebuffer code

I believe that was mostly just a case of not updating my comments to reflect changes made in my code (I have been tweaking the mailbox messages a lot). . Thank you for the tip, but I am aware of being able to throw them into one long array, I mostly wanted to keep it separate because I had some issu...
by 5mattmatt1
Mon Jan 14, 2019 1:07 am
Forum: Bare metal, Assembly language
Topic: Rust framebuffer code
Replies: 12
Views: 1825

Rust framebuffer code

I'm having the issue that my code works perfectly fine on QEMU, but I'm having some issues getting it to run on a physical raspberry pi 2. I know the framebuffer is being allocated on the raspberry pi because I get a black screen instead of the regular rainbow splash. The real issue is that I can't ...

Go to advanced search