Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - tinit and QNX 7: (2 Items)
   
tinit and QNX 7  
Does the tinit utility work in QNX 7?  I know the photon option obviously doesn't but I was wondering about the rest of 
it especially the part about restarting programs like login on the consoles.

My etc/ttys file is
con1 "/bin/login -f root" qansi-m on 
con2 "/bin/login" qansi-m on
con3 "/bin/login" qansi-m on 
con4 "/bin/login" qansi-m on

so I expect an autologin of root on console 1 and logins on consoles 2-4.

What I get is nothing on consoles 1-4. They exist (I can ctrl-alt-(1-5)) but there is no logins or auto logins. All I 
have is my debug shell on console 5. Pidin reveals tinit is running and I can restart it infinitely but it never 
properly takes control of con1-4 as it used to do in QNX 6.3. 

So does tinit work in QNX 7 or am I doing something wrong / it just doesn't work with devc-con-hid?

Tim

Below is my build script

[code]
[virtual=x86,bios +compress] boot = {
	startup-x86 -v
	PATH=/sbin:/usr/sbin:/bin:/usr/bin:/proc/boot:/x86/sbin:/x86/usr/sbin:/x86/bin:/x86/usr/bin LD_LIBRARY_PATH=/proc/boot:
/lib:/usr/lib:/lib/dll:/lib/dll/pci:/x86/lib:/x86/usr/lib:/x86/lib/dll procnto-smp-instr -v
}

# Start-up script
[+script] startup-script = {
	procmgr_symlink ../../proc/boot/libc.so /usr/lib/ldqnx.so.2

	display_msg "Advantech Build V1.0"
	
	# Needed for pci-server
	slogger2 -s2048k &
	waitfor /dev/slog2

    # Needed for consoles	
	pipe
	devc-pty &
	
    # Settings env for PCI server and starting PCI server
	PCI_HW_MODULE=/lib/dll/pci/pci_hw-Intel_x86.so
	PCI_SLOG_MODULE=/lib/dll/pci/pci_slog2.so
	PCI_DEBUG_MODULE=/lib/dll/pci/pci_debug2.so
	PCI_BASE_VERBOSITY=3
	pci-server --aspace-enable
	waitfor /dev/pci	
	
	# Start the disk driver
	devb-ahci cam quiet ahci nports=4 blk automount=hd0t177:/:qnx6 &
	waitfor /boot 10
	
       # Starting USB host driver and services for keyboard / mouse
	io-usb-otg -n /dev/io-usb/io-usb -d xhci -d ehci -d ohci -d uhci
	waitfor /dev/io-usb/io-usb

	devb-umass cam pnp &
	io-hid -d usb /dev/io-usb/io-usb
	waitfor /dev/io-hid/io-hid
	
	# Starting consoles and shells
	devc-con-hid -n5
	waitfor /dev/con1
	waitfor /dev/con2
	waitfor /dev/con3
	waitfor /dev/con4
	waitfor /dev/con5

	SYSNAME=nto
	TERM=qansi-m

        # One temp shell for debugging
	reopen /dev/con5
	[+session] sh &
	
	tinit &
}

# Components
[data=copy]
libc.so
# PCI
pci-server
libpci.so
[-followlink search=${QNX_TARGET}/${PROCESSOR}] /lib/dll/pci/=lib/dll/pci
# Sata
devb-ahci
io-blk.so
libcam.so
fs-qnx6.so
fs-dos.so
cam-disk.so
cam-cdrom.so
# USB
io-usb-otg
usb
libusbdi.so
libhiddi.so
devu-hcd-ehci.so
devu-hcd-ohci.so
devu-hcd-uhci.so
devu-hcd-xhci.so
devb-umass
# HID
io-hid
devh-usb.so
devh-ps2ser.so
# Console
devc-con
devc-con-hid
# SLogger
slogger2
slog2info
libslog2.so
libslog2parse.so
libtracelog.so
libpps.so
libbacktrace.so
devc-pty
pipe
ksh
# Create virtual links to the Ram drive so temp files go in Ram 
[type=link] /usr/lib/ldqnx.so.2 = /proc/boot/libc.so
[type=link] /bin/sh=/proc/boot/ksh
[type=link] /var/run=/dev/shmem
[type=link] /var/db=/dev/shmem
[/code]



Tim
Re: tinit and QNX 7  
Fixed. It was a minor pathing issue.