In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how to enable Kernel Shell for Component. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Kernel Shell is a Component (component) of the VxWorks system, which is the command line that resides on the Target side. It can be accessed through the default global IO of the system, that is, serial port 0 of most architectures or PC Console; of X86 architecture can also be accessed remotely through Telnet or rlogin.
In the VxWorks 5.x era, before RTP, this component was called Target Shell. When it comes to VxWorks 6, the name is changed to indicate that it is running in Kernel, not RTP.
Kernel Shell is powerful and has many functions, and can be used to load, execute, monitor, and debug Kernel and RTP code. And with the improvement of the version of VxWorks, the function of Kernel Shell is also being enhanced. Let's take a look at how to enable it today, and as for other features, we'll talk about it later.
First, you need to include the component INCLUDE_SHELL in the VIP
With this component, Kernel starts a Shell task. The properties of the task are defined by these macros
SHELL_TASK_PRIORITY, priority, default value 1
SHELL_STACK_SIZE, stack, default value 0x10000
SHELL_TASK_NAME_BASE, the task name prefix, the default value "tShell", followed by a sequence number incremented from 0
SHELL_TASK_OPTIONS, option, default (VX_UNBREAKABLE | VX_PRIVATE_ENV)
After entering Kernel Shell, tasks re-created by sp (), repeat (), or period () use the following attributes
SHELL_SPAWNED_TASK_STACK_SIZE, stack, default value 20000; can also be dynamically modified through spTaskStackSize
SHELL_SPAWNED_TASK_PRIORITY, priority. Default is 100. It can also be dynamically modified through spTaskPriority.
SHELL_SPAWNED_TASK_OPTIONS, option, default (VX_COPROCS_ALL_TASK | VX_STDIO). No matter what the structure of CPU is, VX_COPROCS_ALL_TASK will contain VX_FP_TASK; and can also be dynamically modified through spTaskOptions.
NamelessPrefix, the task name prefix, the default value "t", followed by a sequence number incremented from 1
If you want to access Kernel Shell remotely, you can use the following two components
Rlogin-INCLUDE_RLOGIN
Telnet-INCLUDE_IPTELNETS
In addition, Kernel Shell can also choose whether to use a login password, which is 8-40 in length.
SHELL_SECURE-> TRUE
INCLUDE_SECURITY
And this password is encrypted by the Salt value. Use the tool vxencrypt to convert passwords in VxWorks DevelopmentShell
For example, enter "password" as the password, get the random Salt value and hash encrypted password, and fill it in the corresponding component properties.
When you start VxWorks after compilation, you need to enter user name and password
The same is true with Telnet
Thank you for reading! This is the end of the article on "how to enable Kernel Shell of Component". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.