GRUB comes with a shell script, grub-install, which uses the GRUB shell to automate the installation. The grub-install command installs the GRUB Legacy boot loader. In the following example, the boot loader is installed in the MBR of the first SATA hard disk: # grub-install /dev/sda The grub-install command also creates configuration files in the […]
Archives for March 2022
Linux Commands for SAP Basis
Below are the most commonly used Linux commands for SAP Basis consultants. These OS Level commands can be useful during the various daily activities for SAP Basis consultants. Command Description dpmon or dpmon pf=[Instance profile path] ABAP Dispatcher queue monitor jcmon pf=[instance profile path] Java Server monitoring PS Running work process ps –eaf|grep dw Process overview […]
SAP Profile Parameters List
Below we have the SAP Profile Parameters list with default values and short description. The SAP parameters plays an important role starts with post installation activities, system configuration, memory management, logon security rules, internet security, port numbers configuration etc. The SAP profile parameters can be configured in RZ10 transaction via profiles and some of the […]
SAP Support Packages Import steps
Support Packages import steps: The SPAM and SAINT tools executes the following steps to import the support packages into the system. SAP Support Package import steps are categorized into three modules preparation module, import 1 module, import 2 module and cleanup module. Preparation Module PROLOGUE This phase checks whether you are authorized to import Support […]
Serial Port Programming: tcflush – TCIFLUSH,TCOFLUSH example
termios The termios module provides a POSIX-style interface for controlling the behavior of TTYs and other serial communication devices on UNIX systems. All the functions operate on integer file descriptors such as those returned by the os.open() function or the fileno() method of a file object. In addition, the module relies on a large collection […]
Linux Device Driver example for dump_stack() to print the stack trace of module loading
One of the useful options in debugging is to print the call trace/stack trace. Linux kernel provides a function to print the stack trace: dump_stack(). The dump_stack function produces a stack trace much like panic and oops, but causes no problems and we return to the normal control flow. Calling dump_stack() function will print the […]
oe-pkgdata-util utility in Yocto
oe-pkgdata-util is helpful in determining why a file is included in the root file system. For example, on the development machine: $ oe-pkgdata-util find-path /etc/inittab sysvinit-inittab: /etc/inittab $ oe-pkgdata-util find-path */libncurses.so* ncurses-libncurses: /lib64/libncurses.so.5 ncurses-libncurses: /lib64/libncurses.so.5.9 ncurses-dbg: /lib64/.debug/libncurses.so.5.9 lib32-ncurses-dbg: /lib/.debug/libncurses.so.5.9 ncurses-dev: /usr/lib64/libncurses.so lib32-ncurses-dev: /usr/lib/libncurses.so lib32-ncurses-libncurses: /lib/libncurses.so.5.9 lib32-ncurses-libncurses: /lib/libncurses.so.5 The other way is given a recipe and […]
Yocto recipetool tutorial
The recipetool allows for the easier creation of a base recipe based on the source code files. As long as you can extract or point to the source files, the recipetool will generate a recipe and automatically configure all pre-built information into the new recipe file. There are two ways of writing a recipe: Writing […]
pthread_yield example in c
One advantage to using threads is that they can execute for a very long time without preventing the execution of your main thread/application. The downside is that threads that execute without an end can end up consuming too much CPU. In some cases, however, the user might need the thread to perform an action and […]
Serial Port Programming – Reading/Writing Status of Control Lines: DTR/RTS/CTS/DSR
tiocmget and tiocmset In the 2.4 and older kernels, there used to be a number of tty ioctl calls to get and set the different control line settings. These were denoted by the constants TIOCMGET, TIOCMBIS, TIOCMBIC, and TIOCMSET. TIOCMGET was used to get the line setting values of the kernel, and as of the […]