Skip to content

Tag: linux

Kernel Panic with Buildroot Linux

I (try to) make a complete minimal Kodi Linux system with buildroot from scratch, everything compiles fine and i also got it to boot but after some lines of console output and graphics reset it gives me a kernel panic error: I have no clue why… My buildroot config file: https://pastebin.com/7PC4zLEa Ima…

How to pass an extra option in ls using execv()?

I’m trying to execute this simple command ls -1 *.c using the execv() function. The output I’m getting is Answer There’s a big problem in your code: execv can’t tell how big the array you’re passing it is. You absolutely need a terminating NULL element to mark the end: OK, now th…

How to make gdb for a target and use it there

I am trying to compile gdb-8.2 from source. Build machine: x86-64 Host AND target: arm-linux-gnueabi I ran: Then I ran: So I got a usr folder inside gdb_installation folder. I copied the usr/local/bin/gdb to my target and ran Output: But it does not show anything. It exits without any message. What am I missi…

Fetching specific value from a variable in Bash

I have a variable which runs a specific bash command: The output of echo $Model can be as below: I want to grab only the value Model RZ230 I am using the following but it is not working: Using above command I am getting output as: `My output should be Answer Use Bash parameter expansion : Regards!

Bash Scripting – REGEX to dump a file list

I have 4 files extensions as result of previous works, stored in the $SEARCH array, as follows : I want to issue one file list for each of the 4 above extension patterns, as follows, except for the case with 2 dots and 2 extensions (marked “NO”) : Obviously I spent hours on regex101 w/o success. I…

Get a particular string from text file

I need to get a particular string from a text file. the content of my file is below : The command that i am trying is : Using this command, I am able to get that particular line in which my string is present. Here is the result of the awk command : What I want to grep is only