123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|610|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Off Topic -> Awww Myyy Goddd!!!!!!

Tue, 20 Mar 2018, 10:12
Dabz

AWWWWWW MYYYY GODDDDDDD!!!!!!!!!!


Picture the scene, you buy a board, and it doesnt work very well, TV issues *mumble grumble*, anyway, you have a Raspberry Pi 3 sitting there, doing nowt, so, you set it up, and have a play...

Turn it on, yep, works, Raspy boots up, everything is fine, so, what can I play with... Mmmmmm!

Now, my main PC hasnt a card reader in, I have a netbook, which does, so, SD card whipped in there and, shes formatted!

Right, quick thought "I wonder if I can get the Pi to say hello?", so, off into google I travel, reading many many things (Understatement), and, after reading, I decide to try a few toolchains, obviously, buggers are Linux, so, VM fired up, Ubunututututy fired in, I start the long sudo-apt get slog, and then the dependency hell you ALWAYS get trapped in... FINALLY, I get something to build.

Great, now, mmmmm, getting this on the SD card, okay dokey... Tries to sort a connection on my homegroup/network, and... The netbook doesnt like it, could I shit get sharing on both PC's, the main one was fine, good to go, the netbook though... Add that little code, click Next and just a big fat **** off basically, so I google, try stuff, nah, not giving... Cos lets face it, it wouldnt would it, the little arse, the same happened with my wireless printer, I just couldnt get to the printer on the netbook... Going forward, it is now currently residing in the bin!

Moving on, I order a SD card reader off Amazon (This was yesterday, and it has come today mind, anyway...), I'm was resorted to building on a VM, transfering to USB flash, then sticking it in the netbook, transferring it onto SD card, then putting that in the Pi, and then booting up!

After a few goes, I was sick... So, into google again, and ohhhh QEMU, I forgot about that, sudo-apt get later, stupid thing doesnt have RaspPi3 as a machine, which is great, like mint... Further reading, I find someone patched it up for Pi3 support, and plonked it into their update/community whatever it is, but alas, the package hasnt made it to the Ubunutututu repository's, not to be disheartened, I have a go at building the source myself...

Cut a long story short, it was a journey... That resulted in a car crash!

But ohhhh, ohhhhh... Theres QEMU for windows... Yippie!!! \o/ installed it... Oh, no rasp3 again! Feck

So, with that, I just start playing again and just begrudgingly hot swap the files on every device I own...

Moving on, I got the pi to boot up and spit out "Hello fatty" at me, but obviously, I'd like to put something in as well, bit input, so, armed with google I set forth on another epic seeing too, and after lots of tomfoolery, code pinching, slap bang walloping, I got a bit input! \o/

But there was a quirk, I could print, and the promt would be there waiting, but it took ages for the Pi to pick up the keyboard and let me echo it onto the screen, it seemed a bit varied time wise, sometimes 30 secs, sometimes over a minute... Proper head scratching!

So mostly today, I've been attempting to iron that out, the USB SD card reader came, so, that's been a bonus, but, going over and over and over, I just couldnt see what the issue was, seriously, I just couldnt see it in the code, and some stuff isnt mine, I havent got the foggiest whats happening in parts of it.

In between that, I thought, I'll have a jingle at QEMU again, same result... Give up on that now totally!

So, I move back to the input lag problem... Its working, but whats making it lag?

Then I thought "Is it polling something else?", and then, I look at the Pi3... Unplug the mouse, reboot...

Worked a fucking charm!

Honestly, its nearly had me in tears, and the worst of it is... I'm doing this for fun! :/ lol

Dabz

-=-=-
Intel Core i5 6400 2.7GHz, NVIDIA GeForce GTX 1070 (8GB), 8Gig DDR4 RAM, 256GB SSD, 1TB HDD, Windows 10 64bit
Tue, 20 Mar 2018, 10:16
Jayenkai
Timely!
Just a few hours ago, I found myself wondering if I could get my C++ Framework to run on an RPi.

Now I'm, ever so slightly, not going to even bother ordering one!!!

-=-=-
''Load, Next List!''
Tue, 20 Mar 2018, 10:28
Dabz
I'm doing this from bare metal, with no OS, so, I think you'll be fine if you've already managed to build a Linux OS desktop box that can compile your framework already, its all roughly the same on the desktop as it is on the Pi!

And it's a lot easier running a distro on a Pi and building, because once its in, you dev/test on your Linux box, samba your files etc through the network, and build over the network as well.

I did that with BambooBasic and it was a breeze!

What I'm playing with here is, well, stuff I dont really understand, but I'm learning, and, can only be described as getting joy from toothache innit!

Dabz

-=-=-
Intel Core i5 6400 2.7GHz, NVIDIA GeForce GTX 1070 (8GB), 8Gig DDR4 RAM, 256GB SSD, 1TB HDD, Windows 10 64bit
Tue, 20 Mar 2018, 12:15
GfK
Was thinking of getting the new Pi... and you've just put me right off! Haven't the patience for this sort of bollocks!
Tue, 20 Mar 2018, 13:23
Dabz
lol, honestly, dont let me put you off... I'm just proper knacker deep, and the main problem really, is that, the Pi works perfectly fine, its doing what I want, yeah, the mouse thing was a pisser, but, pfffft, its all a bit obvious now, as its reading the USB ports, and it spies this thing it doesnt know what it is, and well, it seems to go through the motions a little before it tells it to piss off and gives me the keyboard!

The problem I'm having is trying to emulate it, I cannot fathom that, aye, I could get a proper raspberry pi distro up and running within three clicks or something on windows:-

https://sourceforge.net/projects/rpiqemuwindows/

Wheezy peasy and all that...

But trying to boot up my image in QEMU, its not having it, and thats not the Pis fault either... Works brilliantly on real hardware, totally duffs in emulation.

Dabz

-=-=-
Intel Core i5 6400 2.7GHz, NVIDIA GeForce GTX 1070 (8GB), 8Gig DDR4 RAM, 256GB SSD, 1TB HDD, Windows 10 64bit
Tue, 20 Mar 2018, 14:02
jm2bits
I was doing some bare metal Pi stuff earlier this year (managed to get quite far with context switching processes and everything!)

There is a fork of Qemu with RPi3 support: https://github.com/bztsrc/qemu-raspi3

Are you using UART + a terminal on your PC? That will act as your monitor and mouse and is dead simple to use.

Also, the (rather large) manuals from ARM + Raspberry pi are essential. You will end up reading a shit ton of stuff but its quite interesting.

Toolchains wise, you can use the GCC arm toolchain on OSX and Linux (and I even got it running on my FreeBSD box) - Arm also provides a toolchain for free.
Tue, 20 Mar 2018, 14:24
Dabz

There is a fork of Qemu with RPi3 support: https://github.com/bztsrc/qemu-raspi3


I saw that, but downloaded the official source as its in there now, though, the Ubuntu repo's still have an older version which hasnt raspi3 included... But back to the new source, I just couldnt get it built, I tried and tried, and it was constantly whinging about something, then I hit a wall with something, cannot remember now, but though "shite it", I had enough!


Are you using UART + a terminal on your PC? That will act as your monitor and mouse and is dead simple to use.


At first, it was all jiggery pokery, but, I managed to get stuff out onto the screen, took a few pieces of nicked code like, lol, but, I got there, as the jist of it all was starting to sink in!

But I'll look at that mind, seems handy!


Toolchains wise, you can use the GCC arm toolchain on OSX and Linux (and I even got it running on my FreeBSD box) - Arm also provides a toolchain for free.


Yeah, I've been through them, settled on GCC (In a Linux VM)

Dabz

-=-=-
Intel Core i5 6400 2.7GHz, NVIDIA GeForce GTX 1070 (8GB), 8Gig DDR4 RAM, 256GB SSD, 1TB HDD, Windows 10 64bit
Tue, 20 Mar 2018, 14:28
Dabz

Also, the (rather large) manuals from ARM + Raspberry pi are essential. You will end up reading a shit ton of stuff but its quite interesting.


And, lol, yeah, I've had my nose in them as well!

Dabz

-=-=-
Intel Core i5 6400 2.7GHz, NVIDIA GeForce GTX 1070 (8GB), 8Gig DDR4 RAM, 256GB SSD, 1TB HDD, Windows 10 64bit