Results 1 to 4 of 4

Thread: Qt application in embedded linux startup

  1. #1
    Join Date
    Aug 2010
    Posts
    2
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Qt application in embedded linux startup

    i have an embedded linux device and an application that has to start after boot.
    linux : Linux 3.12.10-ti2013.12.01 armv7l

    at the end of file "/etc/init.d/rc" , i added this line:

    cd /home/root/ && /home/root/ApplicationName

    it gives error: "Permission denied"
    if i run the application manually one time, then it works fine at every start up.

    i tried the line below but it gives error "command not found"

    cd /home/root/ && chmod +x /home/root/ApplicationName && /home/root/ApplicationName

    how should i start the application?
    note: startup does not have a login.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt application in embedded linux startup

    Quote Originally Posted by hakanaktan View Post
    if i run the application manually one time, then it works fine at every start up.
    Do you do anything special when you do start it manually or are you just repeating the command you have in the startup file?

    Cheers,
    _

  3. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Qt application in embedded linux startup

    Quote Originally Posted by hakanaktan View Post
    cd /home/root/ && /home/root/ApplicationName
    it gives error: "Permission denied"
    Possibly because:
    1. ApplicationName is not marked executable (as you guessed)
    2. ApplicationName tries to write something somewhere it has no permission and bombs. Perhaps the filesystem is still mounted read-only at that time.
    3. /home/root is on a filesystem marked noexec (which may or may not affect the init process)

    if i run the application manually one time, then it works fine at every start up.
    Maybe, but you are probably running it from a shell with a different environment and after the system is fully booted.
    i tried the line below but it gives error "command not found"
    cd /home/root/ && chmod +x /home/root/ApplicationName && /home/root/ApplicationName
    Probably because the limited embedded Linux does not have a chmod command or it is not in the PATH available at the time. This should not be necessary though, set the x flag on the file once and it should stay.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt application in embedded linux startup

    Quote Originally Posted by ChrisW67 View Post
    /home/root is on a filesystem marked noexec (which may or may not affect the init process)
    Or readonly...
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 11
    Last Post: 19th March 2015, 16:29
  2. Replies: 0
    Last Post: 1st November 2012, 07:04
  3. Superposition when displaying Qt Graphic application on embedded Linux
    By requinham in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 25th April 2012, 08:17
  4. Replies: 1
    Last Post: 31st December 2011, 17:55
  5. Replies: 0
    Last Post: 26th December 2011, 07:06

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.