Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
DIOT Zynq Ultrascale-based System Board
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
9
Issues
9
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Projects
DIOT Zynq Ultrascale-based System Board
Commits
68f559a9
Commit
68f559a9
authored
Nov 05, 2021
by
Adam Wujek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw/petalinux/diot-util: fix descriptions in status command
Signed-off-by:
Adam Wujek
<
dev_public@wujek.eu
>
parent
a9dcef84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
diot_util.c
...t-spec/meta-user/recipes-apps/diot-util/files/diot_util.c
+10
-10
No files found.
sw/petalinux/project-spec/meta-user/recipes-apps/diot-util/files/diot_util.c
View file @
68f559a9
...
...
@@ -91,7 +91,7 @@ static void print_slot_status(void)
uint8_t
eeprom_buf
[
1024
*
10
];
struct
FRU_DATA
*
fru
=
NULL
;
printf
(
"
Board status
\n
"
);
printf
(
"
Peripheral Boards Info
\n
"
);
printf
(
"-----+---------+----------------------+----------------------+----------------------+----------------------+
\n
"
);
printf
(
"Slot | Present | Manufacturer | Product_name | Serial number | Part Number |
\n
"
);
printf
(
"-----+---------+----------------------+----------------------+----------------------+----------------------+
\n
"
);
...
...
@@ -169,15 +169,15 @@ int cmd_print_status(char *params)
{
diot_error_clear
();
printf
(
"
System
Info
\n
"
);
printf
(
"--------------------
+--------------
\n
"
);
printf
(
"
PCB version | %12d
\n
"
,
read_pcb_ver
());
printf
(
"
FMC mezzanine | %12s
\n
"
,
read_mezzanine_presence
()
?
"present"
:
"not present
"
);
printf
(
"
PSU 0 | %12s
\n
"
,
read_psu_presence
(
1
)
?
"present"
:
"not present"
);
printf
(
"PSU
1 | %12s
\n
"
,
read_psu_presence
(
2
)
?
"present"
:
"not present"
);
printf
(
"
Card in system slot | %12s
\n
"
,
read_system_slot_presence
()
?
"true"
:
"false
"
);
printf
(
"PSU Alert
| %12s
\n
"
,
read_psu_alert
()
?
"true"
:
"false
"
);
printf
(
"--------------------
+--------------
\n
"
);
printf
(
"
DI/OT Crate
Info
\n
"
);
printf
(
"--------------------
--------+--------------+
\n
"
);
printf
(
"
System Board hw revision | %12d |
\n
"
,
read_pcb_ver
());
printf
(
"
System Board in System Slot | %12s |
\n
"
,
read_system_slot_presence
()
?
"yes"
:
"no
"
);
printf
(
"
FMC mezzanine | %12s |
\n
"
,
read_mezzanine_presence
(
)
?
"present"
:
"not present"
);
printf
(
"PSU
0 | %12s |
\n
"
,
read_psu_presence
(
1
)
?
"present"
:
"not present"
);
printf
(
"
PSU 1 | %12s |
\n
"
,
read_psu_presence
(
2
)
?
"present"
:
"not present
"
);
printf
(
"PSU Alert
| %12s |
\n
"
,
read_psu_alert
()
?
"yes"
:
"no
"
);
printf
(
"--------------------
--------+--------------+
\n
"
);
printf
(
"
\n
"
);
print_slot_status
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment