lshw | A ruby gem for easy access to lshw -xml output
kandi X-RAY | lshw Summary
kandi X-RAY | lshw Summary
A ruby gem for easy access to lshw -xml output.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of lshw
lshw Key Features
lshw Examples and Code Snippets
Community Discussions
Trending Discussions on lshw
QUESTION
I have a board with one ethernet interface (eth0) running Linux. I'm trying to forward all incoming traffic from eth0 to my PMD driver, using dpdk-l2fwd example application.
Here is what I've tried:
...ANSWER
Answered 2022-Feb-14 at 09:16[EDIT-1] clarification of using same interface for DPDK and Kernel routing
Answer> as discussed over comments please refer to DPDKD + kernel on same interface
Based on the information shared there are multiple questions to the single query I'm trying to bypass all traffic to the PMD I'm currently developing
. Addressing each one separately below
- question 1: using dpdk-l2fwd example application
Answer> DPDK application l2fwd application makes use of basic APi with almost no HW offloads. Based on your environment (I have a board with one ethernet interface (eth0)), the right set of parameters should be -p 0x1 --no-mac-updating -T 1
. This will configure the application to receive and transmit packet using single DPDK interface (that is eth0 on your board).
Note: DPDK Application can work with DPDK PMD both physical and virtual
- question 2: I tried to use net_tap, using the following command:
Answer> If the intend is to intercept the traffic from physical and then forward to tap interface, then one needs modify the eal arguments as ./build/l2fwd --vdev=net_tap0,iface="my_eth0" -- -p 0x3 -T 1 --no-mac-updating
. This will allow the application to probe physical NXP interface (eth0) and make use of Linux TAP interface as secondary interface. Thus any traffic from NXP and TAP will be cross connected such as NXP (eth0) <==> TAP (my_eth0)
- question 3: ./usertools/dpdk-devbind.py --status returns empty
Answer> Form the dpdk site supported NIC list NXP dpaa, dpaa2, enetc, enetfec, pfe
. Cross checking the kernel driver fsl_dpaa2_eth
I think it is safe to assume dpaa2 PMD is supported. As you have mentioned the NIC is not enumerated, it looks like there are certain caveats to such model revision, supported board, BSP package, vendor-sub vendor ID check etc. More details can be found Board Support Package, and DPAA2 NIC guide
Debug & Alternative solutions:
- To start with use the Kernel Driver to bring in packets
- Use extra logging and debug to identify why the NIC is shown in the application
Approach 1:
- Make sure the NIC is bind with kernel driver
fsl_dpaa2_eth
. - ensure NIC is connected and link is up with
ethtool eth0
- set to promiscous mode with
ifconfig eth0 promisc up
- start DPDK application with PCAP PMD,
./build/l2fwd --vdev=net_pcap0,iface=eth0 -- -p 1 --no-mac-updating -T 1
- Check packet are received and redirected to PCAP eth0 PMD by checking the statistics.
Approach 2:
- Ideally the NIC should be categorized under network device to be probed by debind.py.
- Check the device details using
lshw -c net -businfo
fornetwork
. - try checking with
lspci -Dvmmnnk [PCIe BUS:Slot:Function id]
for network details. - If above details does not show up as network device this might be reason for not getting listed.
- Suggestions or workaround: You can try to forcefully bind with igb_uio or vfio-pci (I am not much famialr with NXP SoC) by
dpdk-devbind -b vfio-pci [PCIe S:B:F]
. Then cross check withlspci -ks [PCIe S:B:F]
. Once successfully done, one can start dpdk l2fwd in PMD debug mode with./build/l2fwd -a [PCIe S:B:F] --log-level=pmd,8 -- -p 1 --no-mac-updating | more
. Thus by intercepting and interpreting the logs one can identify what is going
Note:
- It is assumed the application is build with static libraries and not dynamic. To build with static libraries use
make static
for l2fwd. - For the described use case recommended application is
basicfwd/skeleton
rather than l2fwd.
QUESTION
The following command works fine if launched in a console:
/bin/lshw -quiet -json -C network|/bin/jq '.[1] | .logicalname'
Please, note the 1 in square brackets.
On my computer this command delivers:
...ANSWER
Answered 2022-Mar-08 at 12:29No, don't inject shell variables into your jq filter! Rather use options provided by jq to introduce them as variables inside jq. In your case, when using a variable that holds a number, --argjson
will do:
QUESTION
I am running Vmware vm with Ubuntu 18 OS on a Window 10 system. A USB bluetooth device is plug in this Machine. Now I want to control this bluetooth device in Ubuntu 18 VM, but failed.
In Ubuntu VM, I can get bluetooth hardware info through:
...ANSWER
Answered 2021-Oct-05 at 06:10Question fixed, original solution is post here.
To use a USB bluetooth from VMware guest OS, we can not share bluetooth to guest, we should connect the removeable bluetooth device to guest directly.
QUESTION
Dear Stackoverflow Community,
I am trying to understand the calculation of performance limits for DRAM access but my benchmarks for achieving these limits are not very close to the numbers that can be found in the specs. One would not expect to reach a theoretical limit, of course, but there might be some explanations why this is so far off.
E.g. I do measure around 11 GB/s for DRAM access on my system, but WikiChip or the JEDEC spec list the peak performance for a dual channel DDR4-2400 system at 38.4 GB/s.
Is my measurement flawed or are these just not the right numbers to calculate peak memory performance?
The MeasurementOn my system with a core i7 8550u at 1.8GHz from the (Kaby Lake Microarchitecture)
it is the case, that lshw
shows two memory
entries
ANSWER
Answered 2021-Jul-30 at 11:32After some investigations, I found a blogpost describing the same problem with the recommendation to use so-called non-temporal write operations. There are multiple other resources, including an LWN article by Ulrich Drepper with much more details to study from here on.
In Julia this can be achieved with vstorent
from the SIMD.jl package:
QUESTION
I am working on a little application that I want to run in a docker container on a Raspberry Pi (Model 4B, 32Bit, 4GB RAM). I am learning Docker currently, so far I have only built and run stuff on my dev machine ( a mac). The container setup and jar work without problems on that machine.
This is my very basic Dockerfile:
...ANSWER
Answered 2021-Apr-09 at 14:07Looks like it's getting built for another platform, by default. Did you try passing --platform=linux/arm/v7
while building the image?
See if this helps.
QUESTION
After completing the installation of OpenVINO 2021.3 the installer prints:
...ANSWER
Answered 2021-Apr-09 at 17:36It looks like this CPU does not have an integrated GPU.
QUESTION
I need to get total RAM size in gigabytes (e.g. 8 GB or 8.0 GB). It gives as bytes and I convert it into GB by dividing 1024x1024x1024. As a result it gives a number smaller than 8 (e.g. 7.7).
How can I get the size as 8 GB?
NOTE: I have used psutil
, free
, cat /proc/meminfo
, vmstat
but result did not change (I will get the terminal output and split it). I do not want to use any external program like dmidecode
or lshw
.
ANSWER
Answered 2021-Mar-14 at 01:14There is no way to get the information you want without digging into the BIOS information, which requires modules you don't have.
QUESTION
After many attempts, and trying many solutions that I could find on stackoverflow or elsewhere on the internet, I was still not able to run the emulator on my computer. This is happening with this computer on both Windows and Linux boots. I am able to start the emulator but then it remains with a full black screen. Here are some information regarding the software: Linux Ubuntu 20.04LTS and Android-studio version I am working with: 4.1.2. About my hardware:
...ANSWER
Answered 2021-Feb-23 at 14:18I finally found the solution. Because I am using an old AMV processor, I needed to use an ARM based image for the emulator and not a x86 image. I was then able to run it. Unfortunately my processor was not powerful enough and was lagging as hell when launching the android emulator. Had to buy a new computer.
QUESTION
I use DELL Precision 3541.
After rebooting my laptop, I am getting "No Wifi adaptor found". So I tried few solutions mentioned in stackoverflow. But when I hit sudo lshw -C network
I am getting this in response
...ANSWER
Answered 2021-Jan-24 at 11:50I tried something random. Dont know how it worked for me. Just followed the steps.
1.Restarted my Laptop.
2.Entered BOIS setup (F12).
3.Then inside the wireless section, I completely disabled WLAN.
4.When it booted up successfully, Restarted Laptop again.
5.Entered BOIS setup and enabled the WLAN.
Finally, when the laptop turned on, everything was working fine again.
QUESTION
I have heard its a conventional practice to store program dependent files in /usr/share/application-folder
in linux. So I'm trying to do it in my c program in a function called load_interface_files()
for example. I am not sure if this is a good practice or not, I've heard about creating configuration files for this kind of issues.
Anyways, here's the the code I wrote to make a directory in /usr/share
.
ANSWER
Answered 2020-Dec-01 at 04:25use ls -ld /usr/share
to see what the permissions on the directory are (without -d
, you get the contents and their permissions).
Use code like:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install lshw
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page