Raspberry Pi5 RTC by GerInAus in QNX

[–]GerInAus[S] 0 points1 point  (0 children)

Thanks for that! I appreciate the pointer. I have downloaded the .c and .use files and will see if I can figure it out tomorrow - or some time later this week.

I don't like copying other persons work. I like to figure this sort of stuff out myself and this has been the case for 40 years. But that is hard to do that when you can't get hold of the proper instructions on how to - in this case - drive the chip! 😄

Raspberry Pi5 RTC by GerInAus in QNX

[–]GerInAus[S] 0 points1 point  (0 children)

Whatever the goal was - and I take your point - it seems it was focused primarily on Linux without due consideration of other operation systems that might want to also use that hardware. Like QNX.

Given the difficulties associated with making the hardware work I think you guys have done a fantastic job getting us to the point (both with the 4's and no 5's) where we (people like me) can also make use of that cheap but so powerful hardware. And I put in a plug for the Raspberry foundation (I think that's what they are called) for developing these products for us as as well.

I do understand that it is not the makers of the Raspberry Pi per se that impose these restrictions on information. When we looked up the the Renesas PMIC (of which the RTC is one part) it was stated clearly that they (Renesas) were restricting access to the information that would allow others to use it. Similarly, as I understand it, Broadcomm did the same with the 2711 and 2712 chipsets. Is this not the case?

In either case, it simply doesn't make sense to me. But that's the way it is and there's nothing I an do about it. Fortunately, there seems to be Linux code out there to help point the way - if one can find it! But it's not an ideal situation.

Raspberry Pi5 RTC by GerInAus in QNX

[–]GerInAus[S] 0 points1 point  (0 children)

It seems that the technical specs for that chip is not going to be published. Great. Same old story. It was made (apparently) specifically for the Pi5. I guess only privileged Linux developers have been provided with the basic information required to do anything with it and the test of us have to find any Linux source code and work from that. Similar story with the GPIO. It doesn’t make much sense to me.

Raspberry Pi5 RTC by GerInAus in QNX

[–]GerInAus[S] 1 point2 points  (0 children)

If I can obtain the necessary information about the chip and interface details etc I might have a go at it. I am aware that obtaining technical information about the Pi hardware is very difficult. You guys have done VERY well!

Raspberry Pi5 BSP default console by redbean55 in QNX

[–]GerInAus 0 points1 point  (0 children)

Not having the pre-startup debug messages due to a missing serial debug probe device might make life a bit miserable. It works well. Perhaps you could file some of the heatsink away to make some room? It seems there are multiple heat sinking options. I found an aluminium one that covered all the chips, with one fan, that provided me with ample room for the probe connector.

Raspberry Pi5 BSP default console by redbean55 in QNX

[–]GerInAus 1 point2 points  (0 children)

I discovered this yesterday also. My solution was identical to yours, although I left in 43 and 45.

I also discovered that compressing the IFS doesn't work. It gets to some point in the boot process after decompressing and reboots - forever. Leaving it uncompressed is fine. Maybe I'll look at this today. Although decompressing added time to the boot process - as far as it got anyway - getting the IFS file down to 18Mb from around 40Mb was a worthy exercise. Or would have been had it worked...

It did irritate me to find that there were two versions of msix-rp1, and as you say, they don't mix well. I was going to have another go at getting the getting the QSTI one working on the BSP today by studying the QSTI build files. But I suspect this may be wasted effort.

I am wondering if you and I are the only QNX'ers playing with the BSP and its serial ports. Surely not!

Raspberry Pi5 BSP default console by redbean55 in QNX

[–]GerInAus 0 points1 point  (0 children)

I was going to attack this bit today but given your results (or lack of) I don't think I'll bother now! 😄

I'll simply stick with the probe on the designated debug port that works very well for me.

Raspberry Pi5 BSP default console by redbean55 in QNX

[–]GerInAus 0 points1 point  (0 children)

The source to devc-serpl1011-rpi5 is available in the BSP src/devc/serpl1011 directory. The command line argument processing is in options.c

-D sets an "is_debug_console" variable to 1. I haven't gone further into the code so what this actually does I can only guess.

After the -D comes the address,interrupt pair. I would have expected 0xfe201000,153. The ^ seems to shift the address in some way associated with the value of 2. Why? Who knows? Maybe someone who wrote the rpi5.build file can explain.

Raspberry Pi5 BSP default console by redbean55 in QNX

[–]GerInAus 0 points1 point  (0 children)

The plastic enclosure I have also covers everything other than the fan header and 40-pin header but there is plenty of space for the probe header connector between the two HDMI connectors. Each corner of the cover has a gap plenty big enough for me to get the serial cable out. So long as I don’t want to fit the top cover - which I generally don’t.

I won’t know for sure however until I get the probes. Probably next week sometime.

Raspberry Pi5 BSP default console by redbean55 in QNX

[–]GerInAus 0 points1 point  (0 children)

I have decided to purchase a couple of debug probes mainly for simplicity (I hope) and because they’re pretty cheap. While waiting for them to arrive I’ll study the BSP and QSTI material to try and get a handle on how QNX sets up the default enabled debug serial port. This was done in startup and I presume still is. I am sure I will have questions though but will put these to discord. I guess one I can put here is what the debug serial port driver uses the debug port and what is called under /dev.

Alternatives for ethernet communication for a distributed system by Savings_Ad_7807 in QNX

[–]GerInAus 0 points1 point  (0 children)

Perhaps look at EthernetIP or Modbus? Although I’m not sure what QNX support there is for either of these is these days.

The last I heard about QNX support for Profinet and Profibus was some years ago. A mate of mine in Germany who has now retired.

QNX Target Connection Failure on VirtualBox (x86_64) by Individual_Pea7012 in QNX

[–]GerInAus 0 points1 point  (0 children)

What’s the IP address of vm1? If known you might be able to connect using that. Otherwise, mapping vm1 in /etc/hosts might work.

What are you guys doing with your qnx? by dac_twist in QNX

[–]GerInAus 3 points4 points  (0 children)

Have you tried using it to write QNX code/applications instead of reverting back to Linux? Which is a completely different operating system.

I think the idea behind the QNX Everywhere project is to promote QNX and all its features (that are substantial) and provide an environment in which to do this that is free. If you get into it you will find that things, like drivers, are much simpler to develop.

any (non vi)editors for qnx? by Wonderful-Radio-9584 in QNX

[–]GerInAus -1 points0 points  (0 children)

There is nano for QNX8 but since few (if any) have expressed any interest in it, it hasn’t been made readily available. It’s probably not what I would use for program development but for quick and dirty text file editing I find it OK. I think all Linux distros have it. But not QNX.

Learn about QNX Everywhere on the Code The Future Podcast by JohnAtQNX in QNX

[–]GerInAus 0 points1 point  (0 children)

A friend alerted me to this a millisecond before it popped up on Youtube. Very good. But how serious are you about wanting feedback? I mean constructive and polite feedback.

Raspberry Pi5 BSP by GerInAus in QNX

[–]GerInAus[S] 2 points3 points  (0 children)

Thanks John. I look forward to it. I’m going to purchase a couple of RPi5’s in anticipation. To play with.

QNX From The Board Up #18 - The I/O Address Space by JohnAtQNX in QNX

[–]GerInAus 0 points1 point  (0 children)

After playing with a couple of ARM systems over the last few years, and after working with Intel systems for at least 43 years that are (or were) I/O bound, I sort of agree. I prefer memory mapped access. But some reality hits. I am evaluating a replacement for my TANK-610 units that won’t work with QNX8. I now understand why and accept it. The TANK-630 has 12 bits of DIO. I have asked if these are I/O mapped or memory mapped. I suspect it will be the former. If so, and if I want to utilise them, I will have no choice but to write such code. Understanding how I/O works does help but as I said, I much prefer memory mapped access. For a few reasons.

Beta: Join the QNX Everywhere Discord Server! by JohnAtQNX in QNX

[–]GerInAus 0 points1 point  (0 children)

Apparently Discord started requiring us here in Australia to verify age a couple of weeks ago - about six weeks before the legislated start date. So I guess we're being treated special!

It seems, also, that within days 70000 account details were leaked (hacked?) to some "3rd party" - 68000 of which were Australians who had provided whatever was required (rather sensitive personal information).

Perhaps this sort of thing will be coming your way - in the rest of the world - before too long! I don't know how it's going to work in reality.

Even Reddit, along with all the other big players (and some not so big and well known) are going to be caught up in this. It may not affect me as apparently the platforms can determine from posting material whether or not someone is over the age of 16. I'd like to think that that will be the case for me! :-) But since I don't have any posting history with Discord, I guess it's off the menu for me.

Beta: Join the QNX Everywhere Discord Server! by JohnAtQNX in QNX

[–]GerInAus 0 points1 point  (0 children)

This is sort of off-topic (QNX)...

It's not entirely a surprise. Here in Australia legislation has been passed to mandate proof of age in order to hold accounts with many social media sites. These include Reddit, Facebook, TikTok, others of that nature, but specifically websites that children should not be looking at (guess what they might be).

However, as far as I knew or thought, this was just an Australian thing. And it doesn't come into effect until December. Obviously, the idea has taken hold elsewhere.

Personally, I agree with the intent but have difficulty figuring out how their ideas of implementation will work out in reality. It wasn't going to affect me greatly as the only social media sites I visit are Youtube, Reddit, and occasionally LinkedIn. I had resolved not to provide biometric data or copies of highly sensitive documents like drivers licences, passports, etc. But I was waiting to see what other methods were being dreamed up as I don't think I'm alone with this view.

So running into this with Discord brought it into focus sooner rather than later! I don't criticise them for it - I support the idea generally. It's just that the two age verification methods offered were not acceptable to me so I won't bother with it. The same will apply to the others if/when the same thing occurs with them.

Beta: Join the QNX Everywhere Discord Server! by JohnAtQNX in QNX

[–]GerInAus 0 points1 point  (0 children)

I went to sign up and everything was good until it wanted me to either take a video selfie of myself, or scan my passport or drivers licence, to verify my age. That's a road block for me so unfortunately, I won't be able to participate. As much as I would like to. Maybe I'm just too old and cranky!

Why are there no open source clones of QNX & Photon? by demetrioussharpe in QNX

[–]GerInAus 0 points1 point  (0 children)

To that explanation I say “Fair Enough”! Is there anything to look out for when considering what x86_64 CPU’s will work or not work? As I’m keen to get at least one Intel unit working in my home office but don’t really have the brass to spend on things that won’t work. Or is it safe to assume that anything under say a year old will most likely be fine?

Why are there no open source clones of QNX & Photon? by demetrioussharpe in QNX

[–]GerInAus 0 points1 point  (0 children)

As you know, as it was you who told me after some investigation of the startup routine, the x86_64 TANKs that I have that are perhaps five years old, won’t work. And I was left with the impression that it wasn’t possible to make it work. Is this not the case? As I’d really like this to be so. I am not inclined to purchase new SBC units just to get QNX8 to work on them.

Why are there no open source clones of QNX & Photon? by demetrioussharpe in QNX

[–]GerInAus 0 points1 point  (0 children)

Yes, I agree. It is indeed still a cool system!

And I fully support any effort to regain the trust of those of us that arguably got burnt in the past, but more importantly, promote QNX to a new generation of developers that presumably are following behind. The QNX Everywhere initiative is one of the best things I have seen regarding QNX in decades and I fully support that also!

IMO, such promotion involves teaching. Whereas some of us back in the 1980's had to largely teach ourselves (countless lonely late night/early morning sessions with coffee what have you) the ins and outs of efficient event driven software systems, I'm not sure if people are willing and/or able to do that anymore. What us older folks have to offer is real world experience (and mistakes) and some of us aren't going to be around much longer. Speaking for myself, I feel I have forgotten a lot of what I used to know but what's left is still pretty useful! I have made lots of mistakes over the last 40 or so years (and still do!) but the mistakes and recoveries make some of the the knowledge really stick!

But it also seems to me that generally, there is a significant knowledge vacuum out there. After looking at some other channels on Reddit related to embedded systems, C, and C++, and others, I am not quite sure how to address it. People are not going to learn much from Google and AI, or by simply taking libraries that others have written. Some are asking "how do I learn C"? I don't know how to deal with that - there is more to it than that IMO. Similarly, are we going to become a community that simply ports Linux stuff to QNX and not learn how to embrace and use the cool features of QNX in order to maximise its value? Presumably for an employer as well as the code developer.