Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - QNX 7 configuration for NFS, NIS, NTP and SSH: (5 Items)
   
QNX 7 configuration for NFS, NIS, NTP and SSH  
Hi All!

Hope you are enjoying this time of the year :) I am having some issues with QNX 7 so I was hoping you could give me some
 guidelines or point me in the right direction.

I am working on a QNX 7 project for the ARM sabrelite board, and was able to flash a new U-Boot to the board and create 
a default kernel, load it and access it via serial connection. Then, I got stuck when trying to configure the build 
properties to build a kernel that would automatically at startup mount NFS drives, NTP time, SSH with NIS user accounts,
 etc.

I use a CentOS 7 as a host system. Then, I installed QNX toolchain in /opt/ and also the BSP in /opt/BSPs/bsp-imx6-
sabrelite. In the BSP folder is where you modify certain build config files to add the components you need to your 
kernel. The original file is located under <BSP dir>/src/hardware/startup/boards/imx6x/nitrogen/build.

These are some of the changes I made to it:

[+script] .script = {

    # My configuration

    display_msg Starting network subsystem...
    /scripts/start-network

    [argv0=/proc/boot/sshd] /proc/boot/sshd &
    inetd /etc/inetd.conf

    ntpdate 10.10.1.40
    ntpd &
}

[perms=+x] /scripts/start-rti-network = {
  fs-nfs3
  mount -t nfs local:/local /local
}

#telnet includes                                                                        
inetd                                                                                   
telnetd                                                                                 
route                                                                                   
login                                                                                   
termcap                                                                                 
terminfo                                                                                
                                                                                        
#ssh includes                                                                           
                                                                                        
##binaries                                                                              
sshd                                                                                    
ssh                                                                                     
ssh-keygen                                                                              
                                                                                        
##libraries                                                                             
libsocket.so.2                                                                          
librpc.so.2                                                                             
libz.so.2                                                                               
libcrypto.so.2                                                                          
libc.so.3                                                                               
                                                                                        
##files                                                                                 
                                                                                        
/etc/ssh/ssh_host_dsa_key = /opt/BSPs/bsp_imx6_sabrelite/ssh_host_dsa_key               
/etc/ssh/ssh_host_dsa_key.pub = /opt/BSPs/bsp_imx6_sabrelite/ssh_host_dsa_key.pub       
/etc/ssh/ssh_host_key = /opt/BSPs/bsp_imx6_sabrelite/ssh_host_key                       
/etc/ssh/ssh_host_key.pub = /opt/BSPs/bsp_imx6_sabrelite/ssh_host_key.pub               
/etc/ssh/ssh_host_rsa_key = /opt/BSPs/bsp_imx6_sabrelite/ssh_host_rsa_key               
/etc/ssh/ssh_host_rsa_key.pub = /opt/BSPs/bsp_imx6_sabrelite/ssh_host_rsa_key.pub

/etc/ssh/sshd_config =...
View Full Message
Re: QNX 7 configuration for NFS, NIS, NTP and SSH  
Hi Victor,
I haven't looked at this in detail but we experienced that QNX 7 is A  LOT more strict about security. So just having 
the wrong file permissions on a single file may cause it to refuse to log you in, and so on. The error messages are very
 obscure in these cases, if you get any at all (which is of course alright because if it told you what was wrong this 
would make it much easier for an intruder to succeed).

One thing I noticed is that you refer to libc.so.3 but in QNX7 really this should be libc.so.4. Version numbers of some 
other shared objects have changed as well.

It would be helpful if you could be more precise in what is actually not working. Maybe paste some console outputs ...

Regards,
Al
Re: QNX 7 configuration for NFS, NIS, NTP and SSH  
Thank you, Albrecht!

I figured we would need to update those libraries. It is just not easy to find out which version do we need for all of 
them (not just the one I posted, but many more).

What's the best QNX doc to find that out? I cannot find the one with this info.

Thanks!
Victor.
Re: QNX 7 configuration for NFS, NIS, NTP and SSH  
Victor,
You might want to put in just the name of the .so file WITHOUT the exact version number (e.g. simply type libc.so). The 
mkifs tool would then grab the one that is linked in your SDP installation (libc.so is always there, being a symlink to 
libc.so.3 under QNX 6.5 but libc.so.4 in QNX 7). mkifs will then create the correct library file (libc.so.4 in your 
case) in the image itself, together with libc.so as a symlink to it.

That should make your build files a little more portable. Apart from that, I don't know other tricks than searching the 
/lib and /usr/lib folders of the SDP installation.

Regards,
Al
Re: QNX 7 configuration for NFS, NIS, NTP and SSH  
Thank you, Albrecht!

I am doing that and it helps to make it more portable, which was one of my intentions.

Thanks for the help :)
Victor.