From 5eaca6e3c249ce1b1c88f20d90f7f1a96159b6cb Mon Sep 17 00:00:00 2001 From: kientzle Date: Mon, 11 Feb 2013 02:15:26 +0000 Subject: Provide verbose help for fdt commands on platforms that use it. --- sys/boot/arm/uboot/Makefile | 2 +- sys/boot/fdt/help.fdt | 93 +++++++++++++++++++++++++++++++++++++++++ sys/boot/powerpc/ps3/Makefile | 2 +- sys/boot/powerpc/uboot/Makefile | 2 +- 4 files changed, 96 insertions(+), 3 deletions(-) create mode 100644 sys/boot/fdt/help.fdt diff --git a/sys/boot/arm/uboot/Makefile b/sys/boot/arm/uboot/Makefile index 1974218..f2cf8ee 100644 --- a/sys/boot/arm/uboot/Makefile +++ b/sys/boot/arm/uboot/Makefile @@ -118,7 +118,7 @@ LDADD= ${LIBFICL} ${LIBUBOOT} ${LIBFDT} -lstand vers.c: ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version sh ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version ${NEWVERSWHAT} -loader.help: help.common help.uboot +loader.help: help.common help.uboot ${.CURDIR}/../../fdt/help.fdt cat ${.ALLSRC} | \ awk -f ${.CURDIR}/../../common/merge_help.awk > ${.TARGET} diff --git a/sys/boot/fdt/help.fdt b/sys/boot/fdt/help.fdt new file mode 100644 index 0000000..665f63c --- /dev/null +++ b/sys/boot/fdt/help.fdt @@ -0,0 +1,93 @@ +$FreeBSD$ +############################################################################### +# Tfdt Dfdt manipulation commands + + fdt + + Facilities for loading and manipulating device tree data. + +############################################################################### +# Tfdt Saddr Dload fdt from an address in memory + + fdt addr
+ + Copies compiled device tree from a particular location + in memory. + +############################################################################### +# Tfdt Salias DXXX + + fdt alias
+ + Not Yet Implemented + +############################################################################### +# Tfdt Scd DSelect a particular node for future commands + + fdt cd + + Changes the current node to the node specified by the path. + Path elements are separated by '/'; a leading '/' represents + the root node. + +############################################################################### +# Tfdt Sheader DDump the header of the compiled device tree + + fdt header + + Dumps DTB size, format and other key values. + +############################################################################### +# Tfdt Sls DList subnodes of the current node + + fdt ls + + Lists the nodes under the specified path. + If no path is specified, lists nodes under the current path. + +############################################################################### +# Tfdt Smknode DCreate a new node in the device tree + + fdt mknode + + Creates a new node with the specified name. + +############################################################################### +# Tfdt Smkprop DAdd a new property to the current node + + fdt mkprop ... + + Creates a new property with the specified name and values. + Multiple values can be specified and will be concatenated. + +############################################################################### +# Tfdt Smres DXXX + + fdt mres + + Dumps the list of reserved memory regions. + +############################################################################### +# Tfdt Sprop DDump value of a particular property + + fdt prop ... + + If value is specified, set the given property to the indicated value. + Otherwise, print the value of the property. + +############################################################################### +# Tfdt Spwd DPrint path to current node in device tree + + fdt pwd + + Print path to the current node in the device tree. + The current node can be changed with "fdt cd". + +############################################################################### +# Tfdt Srm DRemove node or property from device tree + + fdt rm + + The named node or property will be removed from the device tree. + +############################################################################### diff --git a/sys/boot/powerpc/ps3/Makefile b/sys/boot/powerpc/ps3/Makefile index 810e480..bff41b5 100644 --- a/sys/boot/powerpc/ps3/Makefile +++ b/sys/boot/powerpc/ps3/Makefile @@ -108,7 +108,7 @@ font.h: vers.c: ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version sh ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version ${NEWVERSWHAT} -loader.help: help.common help.ps3 +loader.help: help.common help.ps3 ${.CURDIR}/../../fdt/help.fdt cat ${.ALLSRC} | \ awk -f ${.CURDIR}/../../common/merge_help.awk > ${.TARGET} diff --git a/sys/boot/powerpc/uboot/Makefile b/sys/boot/powerpc/uboot/Makefile index 783694d..f40663c 100644 --- a/sys/boot/powerpc/uboot/Makefile +++ b/sys/boot/powerpc/uboot/Makefile @@ -103,7 +103,7 @@ LDADD= ${LIBFICL} ${LIBUBOOT} ${LIBFDT} -lstand vers.c: ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version sh ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version ${NEWVERSWHAT} -loader.help: help.common help.uboot +loader.help: help.common help.uboot ${.CURDIR}/../../fdt/help.fdt cat ${.ALLSRC} | \ awk -f ${.CURDIR}/../../common/merge_help.awk > ${.TARGET} -- cgit v1.1