[Linuxppc-users] dmidecode package for ppc64le ?
Tommi.Sihvo at tieto.com
Tommi.Sihvo at tieto.com
Wed Nov 1 17:00:23 AEDT 2017
Hi,
Thanks to everyone for answers. I tried to dig in the serial number; lsvpd did the trick like Dan suggested.
Another info I’m trying to search is VM UUID;
I know this command: cat /proc/device-tree/ibm,partition-uuid works on some lpars (I guess this is due to some firmware level where it works and where not..? )
..but is there some other commands (like on newest AIX level uuid_get cmd https://www.ibm.com/support/knowledgecenter/ssw_aix_72/com.ibm.aix.cmds5/uuid_get.htm ) that would do the trick?
/tommi
From: Steve Munroe <sjmunroe at us.ibm.com>
Date: Tuesday, 31 October 2017 at 15.31
To: Sihvo Tommi <Tommi.Sihvo at tieto.com>
Cc: "linuxppc-users at lists.ozlabs.org" <linuxppc-users at lists.ozlabs.org>
Subject: Re: [Linuxppc-users] dmidecode package for ppc64le ?
dmidecode is x86 specific. Most of which does not apply to POWER or PowerISA,
What are you trying to defined out?
A lot of information is in the Aux Vector:
$ LD_SHOW_AUXV=1 /bin/true
AT_DCACHEBSIZE: 0x80
AT_ICACHEBSIZE: 0x80
AT_UCACHEBSIZE: 0x0
AT_SYSINFO_EHDR: 0x3fff97e30000
AT_HWCAP: true_le archpmu vsx arch_2_06 dfp ic_snoop smt mmu fpu altivec ppc64 ppc32
AT_PAGESZ: 65536
AT_CLKTCK: 100
AT_PHDR: 0x37a50040
AT_PHENT: 56
AT_PHNUM: 8
AT_BASE: 0x3fff97e50000
AT_FLAGS: 0x0
AT_ENTRY: 0x37a51a5c
AT_UID: 1007
AT_EUID: 1007
AT_GID: 1007
AT_EGID: 1007
AT_SECURE: 0
AT_RANDOM: 0x3fffd1231912
AT_HWCAP2: htm-nosc vcrypto tar isel ebb dscr htm arch_2_07
AT_EXECFN: /bin/true
AT_PLATFORM: power8
AT_BASE_PLATFORM:power8
This documented in the 64-Bit ELF V2 ABI Specification
http://openpowerfoundation.org/wp-content/uploads/resources/leabi/content/ch_preface.html
With newer GLIBC you can access the AUXV at runtime via getauxval:
https://www.gnu.org/software/libc/manual/html_mono/libc.html#Definition-of-getauxval
With newer GCC you can access AT_PLATFORM and AT_HWCAP/AT_HWCAP2 info via __builtin_cpu_is / __builtin_cpu_supports
https://gcc.gnu.org/onlinedocs/gcc-7.2.0/gcc/PowerPC-Built-in-Functions.html#PowerPC-Built-in-Functions
Steven J. Munroe
Linux on Power Toolchain Architect
IBM Corporation, Linux Technology Center
[nactive hide details for ---10/31/2017 08:08:49 AM---Hi all, Is there any]---10/31/2017 08:08:49 AM---Hi all, Is there any dmidecode package available for ppc64le ? Or is it x86 only ?
From: <Tommi.Sihvo at tieto.com>
To: <linuxppc-users at lists.ozlabs.org>
Date: 10/31/2017 08:08 AM
Subject: [Linuxppc-users] dmidecode package for ppc64le ?
Sent by: "Linuxppc-users" <linuxppc-users-bounces+sjmunroe=us.ibm.com at lists.ozlabs.org>
________________________________
Hi all,
Is there any dmidecode package available for ppc64le ? Or is it x86 only ?
Br,
tommi_______________________________________________
Linuxppc-users mailing list
Linuxppc-users at lists.ozlabs.org
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.ozlabs.org_listinfo_linuxppc-2Dusers&d=DwIGaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=T7r-LXDLinWJNLr1nUUPaUUYEahDQNyKidvdz_Y3ljY&m=w7IGL6y_PqPUzuYQzDcRAJ5a3pODZGTYZqgk1lJ66hw&s=zIcy_crwEe0kdnrvS66o8E49MP-wvGT__7DOb7tprdM&e=
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/linuxppc-users/attachments/20171101/e1577813/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 106 bytes
Desc: image001.gif
URL: <http://lists.ozlabs.org/pipermail/linuxppc-users/attachments/20171101/e1577813/attachment.gif>
More information about the Linuxppc-users
mailing list