LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices

Reply
 
Search this Thread
Old 07-24-2011, 07:27 PM   #1
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 269

Rep: Reputation: 39
possible vxworks issue


My problem: I work for an overseas company which supplies terminals to industry. Older terminals use vxworks. We are a satellite of this company so getting support on vxworks is difficult. FYI I have a linux/unix background but no vxworks.

When a PCI card becomes suspect I simply flash the firmware back onto the card using a burner attached to a PC. I am not sure which OS the PC is booting into - it has *nix type features. (I think) I have stuffed up the script which supervises the process.

Can anyone identify the OS and help me to fault find?
  • During boot I see "Vxld 1.2" which suggests to me it is booting into vxworks
  • After booting I get a prompt "->" (my quotes)
  • To get into the correct directory I type "cd /abc/bin"
  • To initiate the script I type "<load.sh"
  • I got nosy and typed "cat load.sh"
  • Since this point, "<load.sh" simply returns a blank line and back to the command prompt

I am loath to type anything more based on the problems I (may) have created. If this is vxworks can anyone suggest how to dump the file and/or edit it?

that's my needle in a haystack. Any help appreciated.
 
Old 07-25-2011, 12:33 PM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,954
Blog Entries: 5

Rep: Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755
Is load.sh a symbolic link to another file? If so maybe you have to find the other file and work on it.

Does "file load.sh" work? That should tell you what kind of file it is.

Does "strings load.sh" work? That should show you any ascii characters contained in the file that may be masked by control characters.

Barring those, you may be able to see it using the od (octal dump) command.
 
Old 07-27-2011, 04:47 AM   #3
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 269

Original Poster
Rep: Reputation: 39
Thanks MensaWater but it looks like I have deleted the file/removed the symbolic link. I don't know what I did so I think I will quit while I am only a little behind. Hopefully a colleague will simply pass across the files so I can restore them
 
Old 07-29-2011, 02:15 PM   #4
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,395
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
The syntax you show is consistent with a vxWorks shell. None of the commands mentioned by MensaWater are on any vxWorks system I've used. From what media does your PC boot (I've only ever used tftp to boot vxWorks across a network)? I think vxWorks recognizes FAT filesystems. You might be able to mount the media on a Linux host and find a '~backup copy' of the file. I don't know what 'cat' might have done. In the vxWorks shell, any filename arguments (most command arguments) have to be enclosed in "double quotes".

--- rod.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
vxWorks login issues akshay_satish Linux - General 4 10-27-2011 04:23 AM
how to download VxWorks vijaya_svk Linux - Software 1 02-03-2008 07:41 AM
VxWorks and ftp nigelc Linux - Networking 2 02-23-2007 01:13 AM
Are there Redhat subroutines = VxWorks? alipscomb Programming 4 04-03-2006 12:50 PM
is scandir() function available in VxWorks? fssengg Programming 0 08-25-2005 09:05 AM


All times are GMT -5. The time now is 03:53 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration