Documentation: fix sphinx warnings
cover Documentation: fix sphinx warnings
Antony Pavlov (3):
Documentation: tplink-mr3020: fix 'Could not lex literal_block as "c"' warning
Documentation: barebox: fix 'Could not lex literal_block as "c"' warning
Documentation: variables: fix error in "code-block" directive
Documentation/boards/mips/tplink-mr3020.rst | 12 ++++-- Documentation/user/barebox.rst | 60 +++++++++++++++++++++-------- Documentation/user/variables.rst | 1 + 3 files changed, 55 insertions(+), 18 deletions(-)
Signature · 7 lines
2.8.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 1/3 Documentation: tplink-mr3020: fix 'Could not lex literal_block as "c"' warning
The patch fixes these sphinx warnings:
barebox/Documentation/boards/mips/tplink-mr3020.rst:31: WARNING: Could not lex literal_block as "c". Highlighting skipped. barebox/Documentation/boards/mips/tplink-mr3020.rst:40: WARNING: Could not lex literal_block as "c". Highlighting skipped.
--- Documentation/boards/mips/tplink-mr3020.rst | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-)
Documentation/boards/mips/tplink-mr3020.rst +9 -3
@@ -26,7 +26,9 @@ The ``lzma`` utility can be obtained in Debian/Ubuntu distro by installing lzma package (lzma from xz-utils package is unusable). -The ``mktplinkfw`` utility can be obtained from openwrt, e.g.:: +The ``mktplinkfw`` utility can be obtained from openwrt, e.g.: + +.. code-block:: sh $ OWRTPREF=https://raw.githubusercontent.com/mirrors/openwrt/master $ curl -OL $OWRTPREF/tools/firmware-utils/src/mktplinkfw.c \
@@ -35,7 +37,9 @@ The ``mktplinkfw`` utility can be obtained from openwrt, e.g.:: $ cc -o mktplinkfw mktplinkfw.c md5.c To convert your barebox.bin to U-Boot-loadable image (``6F01A8C0.img``) -use this command sequence:: +use this command sequence: + +.. code-block:: sh $ lzma -c -k barebox-flash-image > barebox.lzma $ ./mktplinkfw -c -H 0x07200103 -W 1 -N TL-WR720N-v3 \
@@ -47,7 +51,9 @@ Put your ``6F01A8C0.img`` to tftp-server directory Connect your board to your tftp-server network via Ethernet. -Next, setup network on MR3020 and run ``6F01A8C0.img``, e.g.:: +Next, setup network on MR3020 and run ``6F01A8C0.img``, e.g.: + +.. code-block:: console hornet> set ipaddr 192.168.0.2 hornet> set serverip 192.168.0.1
Signature · 7 lines
2.8.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 2/3 Documentation: barebox: fix 'Could not lex literal_block as "c"' warning
In reply to Antony PavlovThe patch fixes these sphinx warnings:
barebox/Documentation/user/barebox.rst:19: WARNING: Could not lex literal_block as "c". Highlighting skipped. barebox/Documentation/user/barebox.rst:33: WARNING: Could not lex literal_block as "c". Highlighting skipped. barebox/Documentation/user/barebox.rst:186: WARNING: Could not lex literal_block as "c". Highlighting skipped. barebox/Documentation/user/barebox.rst:205: WARNING: Could not lex literal_block as "c". Highlighting skipped.
--- Documentation/user/barebox.rst | 60 +++++++++++++++++++++++++++++++----------- 1 file changed, 45 insertions(+), 15 deletions(-)
Documentation/user/barebox.rst +45 -15
@@ -14,7 +14,9 @@ All releases can be downloaded from: http://www.barebox.org/download/ Development versions of barebox are accessible via Git. A local repository clone -can be checked out as follows:: +can be checked out as follows: + +.. code-block:: sh $ git clone git://git.pengutronix.de/git/barebox.git Cloning into 'barebox'...
@@ -28,7 +30,9 @@ can be checked out as follows:: After this, make sure to check out the appropriate branch. If you want to develop for barebox, it's best to check out the ``next`` branch rather than -the ``master`` branch:: +the ``master`` branch: + +.. code-block:: sh $ git checkout -b next origin/remotes/next
@@ -59,13 +63,17 @@ variable. Currently, ``ARCH`` must be one of: either contain the full path or, if the cross compiler binary is in your $PATH, just the prefix. -Either export ``ARCH`` and ``CROSS_COMPILE`` once before working on barebox:: +Either export ``ARCH`` and ``CROSS_COMPILE`` once before working on barebox: + +.. code-block:: sh export ARCH=arm export CROSS_COMPILE=/path/to/arm-cortexa8-linux-gnueabihf- make ... -or add them to each invocation of the ``make`` command:: +or add them to each invocation of the ``make`` command: + +.. code-block:: sh ARCH=arm CROSS_COMPILE=/path/to/arm-cortexa8-linux-gnueabihf- make ...
@@ -76,17 +84,23 @@ Configuring for a board All configuration files can be found under the ``arch/${ARCH}/configs/`` directory. For an overview of possible Make targets for your architecture, -type:: +type: + +.. code-block:: sh make help Your output from ``make help`` will be based on the architecture you've -selected via the ``ARCH`` variable. So if, for example, you had selected:: +selected via the ``ARCH`` variable. So if, for example, you had selected: + +.. code-block:: sh export ARCH=mips your help output would represent all of the generic (architecture-independent) -targets, followed by the MIPS-specific ones:: +targets, followed by the MIPS-specific ones: + +.. code-block:: sh make [ARCH=mips] help ...
@@ -104,12 +118,16 @@ targets, followed by the MIPS-specific ones:: barebox supports building for multiple boards with a single config. If you can't find your board in the list, it may be supported by one of the multi-board configs. As an example, this is the case for tegra_v7_defconfig and imx_v7_defconfig. -Select your config with ``make <yourboard>_defconfig``:: +Select your config with ``make <yourboard>_defconfig``: + +.. code-block:: sh make imx_v7_defconfig The configuration can be further customized with one of the configuration frontends -with the most popular being ``menuconfig``:: +with the most popular being ``menuconfig``: + +.. code-block:: sh make menuconfig
@@ -127,7 +145,9 @@ generated in a separate build directory. Once you check out your barebox source directory, and before you do any configuration or building, set the environment variable ``KBUILD_OUTPUT`` -to point to your intended output directory, as in:: +to point to your intended output directory, as in: + +.. code-block:: sh export KBUILD_OUTPUT=.../my_barebox_build_directory
@@ -150,14 +170,18 @@ Compilation ----------- After barebox has been :ref:`configured <configuration>` it can be compiled -simply with:: +simply with: + +.. code-block:: sh make The resulting binary varies depending on the board barebox is compiled for. Without :ref:`multi_image` support the ``barebox-flash-image`` link will point to the binary for flashing/uploading to the board. With :ref:`multi_image` support -the compilation process will finish with a list of images built under ``images/``:: +the compilation process will finish with a list of images built under ``images/``: + +.. code-block:: sh images built: barebox-freescale-imx51-babbage.img
@@ -181,14 +205,18 @@ board documentation for initial bringup. barebox binaries are, where possible, designed to be startable second stage from another bootloader. For example, if you have U-Boot running on your board, you can start barebox -with U-Boot's 'go' command:: +with U-Boot's 'go' command: + +.. code-block:: console U-Boot: tftp $load_addr barebox.bin U-Boot: go $load_addr With barebox already running on your board, this can be used to chainload another barebox. For instance, if you mounted a TFTP server to ``/mnt/tftp`` -(see :ref:`filesystems_tftp` for how to do that), chainload barebox with:: +(see :ref:`filesystems_tftp` for how to do that), chainload barebox with: + +.. code-block:: console bootm /mnt/tftp/barebox.bin
@@ -200,7 +228,9 @@ stage. First Steps ----------- -This is a typical barebox startup log:: +This is a typical barebox startup log: + +.. code-block:: console barebox 2014.06.0-00232-g689dc27-dirty #406 Wed Jun 18 00:25:17 CEST 2014
Signature · 7 lines
2.8.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 3/3 Documentation: variables: fix error in "code-block" directive
In reply to Antony PavlovThe patch fixes this sphinx error:
barebox/Documentation/user/variables.rst:79: ERROR: Error in "code-block" directive:
maximum 1 argument(s) allowed, 15 supplied.
.. code-block:: sh
barebox@Phytec phyCARD-i.MX27:/ nv dev.nand0.partitions: 4M(barebox),1M(barebox-environment),-(root) barebox@Phytec phyCARD-i.MX27:/ devinfo nand0
Parameters:
[...]
partitions: 4M(barebox),1M(barebox-environment),8M(kernel),1011M(root)
[...]
--- Documentation/user/variables.rst | 1 + 1 file changed, 1 insertion(+)
Documentation/user/variables.rst +1 -0
@@ -77,6 +77,7 @@ to the corresponding <devname>.<paramname> variable. This example changes the partitioning of the nand0 device: .. code-block:: sh + barebox@Phytec phyCARD-i.MX27:/ nv dev.nand0.partitions: 4M(barebox),1M(barebox-environment),-(root) barebox@Phytec phyCARD-i.MX27:/ devinfo nand0 Parameters:
Signature · 7 lines
2.8.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
AppliedQuoted 9 lines · Antony Pavlov
Antony Pavlov (3):
Documentation: tplink-mr3020: fix 'Could not lexliteral_blockas "c"' warning
Documentation: barebox: fix 'Could not lexliteral_blockas "c"' warning
Documentation: variables: fix error in "code-block" directiveDocumentation/boards/mips/tplink-mr3020.rst | 12 ++++-- Documentation/user/barebox.rst | 60 +++++++++++++++++++++-------- Documentation/user/variables.rst | 1 + 3 files changed, 55 insertions(+), 18 deletions(-)
Applied, thanks
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox