From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.5 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, UNWANTED_LANGUAGE_BODY,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 28FCDC433EF for ; Mon, 20 Sep 2021 06:46:41 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 11EB260F9D for ; Mon, 20 Sep 2021 06:46:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 11EB260F9D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7D227811F7; Mon, 20 Sep 2021 08:46:38 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20210112.gappssmtp.com header.i=@baylibre-com.20210112.gappssmtp.com header.b="pxjwbtUX"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1166D83267; Mon, 20 Sep 2021 08:46:36 +0200 (CEST) Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2706F80ECC for ; Mon, 20 Sep 2021 08:46:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=narmstrong@baylibre.com Received: by mail-wr1-x429.google.com with SMTP id q26so26906393wrc.7 for ; Sun, 19 Sep 2021 23:46:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=subject:to:cc:references:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=9rWczdNs+c7KN8xMXpRVVo9C91IlSs3kqv4RzRefe5c=; b=pxjwbtUXgbclaYrzlBrajBYLBJhs+pCbXX7J6XGboRIy16CSO4cRLl0hF2Hmty2AVx QV1sg0lJZNxjau9i/UgDUn+ne7FJc2B/O3wG9D3qk/KAIW/w2Ksv4LotDz3IKocYJDgC T6KR5LQmPN6TAQrCLyRO1DTEcJmv92ooszwUyTtLoByFlcxbVJK2x3DfrEJWiKURGkYf rOO+TX9VQUj26mY87DrX9vMwimVJjTkXEETxF14HdBLEyK16E+8/j9BtXVRD22szketd ZAJBlP1zayXWuE0UfX8s/n7ZaGizN2y0UbhZMrnM+JDzMR7xhco8WXdysXvLaQGGp9fI yYFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=9rWczdNs+c7KN8xMXpRVVo9C91IlSs3kqv4RzRefe5c=; b=11I7yr4A/m0Sf5DCnHM68RHFfqWmrajCHQ+bHpyLpOVtQVU2kwS+TIYGxkLN09aoWB 7qzk91xLgmpxAio3SyusjkIvR7bekjSXCR9x0hvFxUW6Ru5SR0OAt1g+TtDUL/OQwL1j Q90y/xp0+9dgkFYdPdBXzVnoFSbBVis+8BC0Jhi/b6qhILofOTNKnxS1OcrvXxvwhuTO wxvixJFXZ0rCBwv4MREyPCVnaDyRH9Z+VmfuJJXbRYSiaiRAXq50iQZNa3w8V+o+cdoY tgOI1Ng8idkZFeenMoc2OZEcOBlIsXladKk9zWXL+m6L6ndiYFpoAVV7F86YbD45e74g lIvA== X-Gm-Message-State: AOAM533PGkLlcOTTTwv57/X9qIcr6ONaxFVxezYMpL9k7k0TXnVQFrxo 5DQ6XFfZBBHybnnohM4H9fJIG+47z461pcNI X-Google-Smtp-Source: ABdhPJwlPa5qGk8y4F9Ud6V9yuzkwq3oHK2QLEwoAGTBpOGQWmSdDUB3mkOKtzYsBw3jG1mSGGH1EA== X-Received: by 2002:a5d:6503:: with SMTP id x3mr26985210wru.76.1632120389404; Sun, 19 Sep 2021 23:46:29 -0700 (PDT) Received: from ?IPv6:2001:861:44c0:66c0:4395:314b:57cc:f9b4? ([2001:861:44c0:66c0:4395:314b:57cc:f9b4]) by smtp.gmail.com with ESMTPSA id x5sm17360700wmk.32.2021.09.19.23.46.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 19 Sep 2021 23:46:29 -0700 (PDT) Subject: Re: [PATCH v2 3/3] ARM: amlogic: add JetHub D1/H1 docs To: Vyacheslav Bocharov Cc: u-boot@lists.denx.de, u-boot-amlogic@groups.io References: <20210919155216.4000369-1-adeep@lexina.in> <20210919155216.4000369-4-adeep@lexina.in> From: Neil Armstrong Organization: Baylibre Message-ID: <0226ea58-cf5d-45d9-9df5-d41541fdd259@baylibre.com> Date: Mon, 20 Sep 2021 08:46:31 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210919155216.4000369-4-adeep@lexina.in> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Hi, On 19/09/2021 17:52, Vyacheslav Bocharov wrote: > Fix doc/board/amlogic/index.rst: > - Add S905W to S905X column. > - Add JetHub devices to the corresponding columns. > - Fix tabs to spaces for table alignment > > Add doc/board/amlogic files: > - jethub-j100.rst > - jethub-j80.rst > > Signed-off-by: Vyacheslav Bocharov > Reviewed-by: Neil Armstrong > --- > doc/board/amlogic/index.rst | 128 +++++++++++++++--------------- > doc/board/amlogic/jethub-j100.rst | 108 +++++++++++++++++++++++++ > doc/board/amlogic/jethub-j80.rst | 97 ++++++++++++++++++++++ > 3 files changed, 270 insertions(+), 63 deletions(-) > create mode 100644 doc/board/amlogic/jethub-j100.rst > create mode 100644 doc/board/amlogic/jethub-j80.rst > > diff --git a/doc/board/amlogic/index.rst b/doc/board/amlogic/index.rst > index 2913ab281a..c18f1b7e71 100644 > --- a/doc/board/amlogic/index.rst > +++ b/doc/board/amlogic/index.rst > @@ -10,69 +10,69 @@ An up-do-date matrix is also available on: http://linux-meson.com > > This matrix concerns the actual source code version. > > -+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+ > -| | S905 | S905X | S912 | A113X | S905X2 | S922X | S905X3 | > -| | | S805X | S905D | | S905D2 | A311D | S905D3 | > -| | | | | | S905Y2 | | | > -+===============================+===========+=================+==============+============+============+=============+==============+ > -| Boards | Odroid-C2 | P212 | Khadas VIM2 | S400 | U200 | Odroid-N2 | SEI610 | > -| | Nanopi-K2 | Khadas-VIM | Libretech-PC | | SEI510 | Khadas-VIM3 | Khadas-VIM3L | > -| | P200 | LibreTech-CC v1 | WeTek Core2 | | | GT-King/Pro | Odroid-C4 | > -| | P201 | LibreTech-AC v2 | | | | GSKing-X | Odroid-HC4 | > -| | | | | | | | BananaPi-M5 | > -+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+ > -| UART | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | > -+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+ > -| Pinctrl/GPIO | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | > -+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+ > -| Clock Control | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | > -+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+ > -| PWM | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | > -+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+ > -| Reset Control | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | > -+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+ > -| Infrared Decoder | No | No | No | No | No | No | No | > -+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+ > -| Ethernet | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | > -+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+ > -| Multi-core | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | > -+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+ > -| Fuse access | **Yes** | **Yes** |**Yes** |**Yes** |**Yes** |**Yes** | **Yes** | > -+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+ > -| SPI (FC) | **Yes** | **Yes** | **Yes** | **Yes** |**Yes** | **Yes** | No | > -+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+ > -| SPI (CC) | No | No | No | No | No | No | No | > -+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+ > -| I2C | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | > -+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+ > -| USB | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | > -+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+ > -| USB OTG | No | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | > -+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+ > -| eMMC | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | > -+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+ > -| SDCard | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | > -+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+ > -| NAND | No | No | No | No | No | No | No | > -+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+ > -| ADC | **Yes** | **Yes** | **Yes** | No | No | No | No | > -+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+ > -| CVBS Output | **Yes** | **Yes** | **Yes** | *N/A* | **Yes** | **Yes** | **Yes** | > -+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+ > -| HDMI Output | **Yes** | **Yes** | **Yes** | *N/A* | **Yes** | **Yes** | **Yes** | > -+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+ > -| CEC | No | No | No | *N/A* | No | No | No | > -+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+ > -| Thermal Sensor | No | No | No | No | No | No | No | > -+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+ > -| LCD/LVDS Output | No | *N/A* | No | No | No | No | No | > -+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+ > -| MIPI DSI Output | *N/A* | *N/A* | *N/A* | No | No | No | No | > -+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+ > -| SoC (version) information | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | > -+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+ > -| PCIe (+NVMe) | *N/A* | *N/A* | *N/A* | **Yes** | **Yes** | **Yes** | **Yes** | > -+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+ > ++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+ > +| | S905 | S905X | S912 | A113X | S905X2 | S922X | S905X3 | > +| | | S805X | S905D | | S905D2 | A311D | S905D3 | > +| | | S905W | | | S905Y2 | | | > ++===============================+===========+=================+==============+=============+============+=============+==============+ > +| Boards | Odroid-C2 | P212 | Khadas VIM2 | S400 | U200 | Odroid-N2 | SEI610 | > +| | Nanopi-K2 | Khadas-VIM | Libretech-PC | JetHub J100 | SEI510 | Khadas-VIM3 | Khadas-VIM3L | > +| | P200 | LibreTech-CC v1 | WeTek Core2 | | | GT-King/Pro | Odroid-C4 | > +| | P201 | LibreTech-AC v2 | | | | GSKing-X | Odroid-HC4 | > +| | | JetHub J80 | | | | | BananaPi-M5 | > ++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+ > +| UART | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | > ++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+ > +| Pinctrl/GPIO | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | > ++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+ > +| Clock Control | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | > ++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+ > +| PWM | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | > ++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+ > +| Reset Control | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | > ++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+ > +| Infrared Decoder | No | No | No | No | No | No | No | > ++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+ > +| Ethernet | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | > ++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+ > +| Multi-core | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | > ++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+ > +| Fuse access | **Yes** | **Yes** |**Yes** |**Yes** |**Yes** |**Yes** | **Yes** | > ++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+ > +| SPI (FC) | **Yes** | **Yes** | **Yes** | **Yes** |**Yes** | **Yes** | No | > ++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+ > +| SPI (CC) | No | No | No | No | No | No | No | > ++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+ > +| I2C | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | > ++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+ > +| USB | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | > ++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+ > +| USB OTG | No | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | > ++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+ > +| eMMC | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | > ++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+ > +| SDCard | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | > ++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+ > +| NAND | No | No | No | No | No | No | No | > ++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+ > +| ADC | **Yes** | **Yes** | **Yes** | No | No | No | No | > ++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+ > +| CVBS Output | **Yes** | **Yes** | **Yes** | *N/A* | **Yes** | **Yes** | **Yes** | > ++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+ > +| HDMI Output | **Yes** | **Yes** | **Yes** | *N/A* | **Yes** | **Yes** | **Yes** | > ++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+ > +| CEC | No | No | No | *N/A* | No | No | No | > ++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+ > +| Thermal Sensor | No | No | No | No | No | No | No | > ++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+ > +| LCD/LVDS Output | No | *N/A* | No | No | No | No | No | > ++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+ > +| MIPI DSI Output | *N/A* | *N/A* | *N/A* | No | No | No | No | > ++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+ > +| SoC (version) information | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | > ++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+ > +| PCIe (+NVMe) | *N/A* | *N/A* | *N/A* | **Yes** | **Yes** | **Yes** | **Yes** | > ++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+ > > Board Documentation > ------------------- > @@ -82,6 +82,8 @@ Board Documentation > > beelink-gtking > beelink-gtkingpro > + jethub-j100 > + jethub-j80 > khadas-vim2 > khadas-vim3l > khadas-vim3 > diff --git a/doc/board/amlogic/jethub-j100.rst b/doc/board/amlogic/jethub-j100.rst > new file mode 100644 > index 0000000000..f728711c5c > --- /dev/null > +++ b/doc/board/amlogic/jethub-j100.rst > @@ -0,0 +1,108 @@ > +.. SPDX-License-Identifier: GPL-2.0+ > + > +U-Boot for JetHub J100 > +======================= > + > +JetHome Jethub D1 (http://jethome.ru/jethub-d1) is a home automation > +controller manufactured by JetHome with the following specifications: > + > + - Amlogic A113X (ARM Cortex-A53) quad-core up to 1.5GHz > + - no video out > + - 512Mb/1GB DDR3 > + - 8/16GB eMMC flash > + - 1 x USB 2.0 > + - 1 x 10/100Mbps ethernet > + - WiFi / Bluetooth AMPAK AP6255 (Broadcom BCM43455) IEEE > +802.11a/b/g/n/ac, Bluetooth 4.2. I got the error: Warning, treated as error: /home/narmstrong/projects/amlogic/u-boot-upstream/doc/board/amlogic/jethub-j100.rst:16:Block quote ends without a blank line; unexpected unindent. > + - TI CC2538 + CC2592 Zigbee Wireless Module with up to 20dBm output > +power and Zigbee 3.0 support. same here. > + - 2 x gpio LEDS > + - GPIO user Button > + - 1 x 1-Wire > + - 2 x RS-485 > + - 4 x dry contact digital GPIO inputs > + - 3 x relay GPIO outputs > + - DC source with a voltage of 9 to 56 V / Passive POE > + - DIN Rail Mounting case > + > +U-Boot compilation > +------------------ > + > +.. code-block:: bash > + > + $ export CROSS_COMPILE=aarch64-none-elf- > + $ make jethub_j100_defconfig > + $ make > + > +Image creation > +-------------- > + > +Amlogic doesn't provide sources for the firmware and for tools needed > +to create the bootloader image, so it is necessary to obtain binaries > +from the git tree published by the board vendor: > + > +.. code-block:: bash > + > + $ git clone https://github.com/jethome-ru/jethub-aml-tools jethub-u-boot > + $ cd jethub-u-boot > + $ export FIPDIR=$PWD > + > +Go back to mainline U-boot source tree then : > + > +.. code-block:: bash > + > + $ mkdir fip > + > + $ cp $FIPDIR/j100/bl2.bin fip/ > + $ cp $FIPDIR/j100/acs.bin fip/ > + $ cp $FIPDIR/j100/bl21.bin fip/ > + $ cp $FIPDIR/j100/bl30.bin fip/ > + $ cp $FIPDIR/j100/bl301.bin fip/ > + $ cp $FIPDIR/j100/bl31.img fip/ > + $ cp u-boot.bin fip/bl33.bin > + > + $ $FIPDIR/blx_fix.sh \ > + fip/bl30.bin \ > + fip/zero_tmp \ > + fip/bl30_zero.bin \ > + fip/bl301.bin \ > + fip/bl301_zero.bin \ > + fip/bl30_new.bin \ > + bl30 > + > + $ $FIPDIR/acs_tool.pyc fip/bl2.bin fip/bl2_acs.bin fip/acs.bin 0 > + > + $ $FIPDIR/blx_fix.sh \ > + fip/bl2_acs.bin \ > + fip/zero_tmp \ > + fip/bl2_zero.bin \ > + fip/bl21.bin \ > + fip/bl21_zero.bin \ > + fip/bl2_new.bin \ > + bl2 > + > + $ $FIPDIR/j100/aml_encrypt_axg --bl3sig --input fip/bl30_new.bin \ > + --output fip/bl30_new.bin.enc \ > + --level v3 --type bl30 > + $ $FIPDIR/j100/aml_encrypt_axg --bl3sig --input fip/bl31.img \ > + --output fip/bl31.img.enc \ > + --level v3 --type bl31 > + $ $FIPDIR/j100/aml_encrypt_axg --bl3sig --input fip/bl33.bin --compress lz4 \ > + --output fip/bl33.bin.enc \ > + --level v3 --type bl33 > + $ $FIPDIR/j100/aml_encrypt_axg --bl2sig --input fip/bl2_new.bin \ > + --output fip/bl2.n.bin.sig > + $ $FIPDIR/j100/aml_encrypt_axg --bootmk \ > + --output fip/u-boot.bin \ > + --bl2 fip/bl2.n.bin.sig \ > + --bl30 fip/bl30_new.bin.enc \ > + --bl31 fip/bl31.img.enc \ > + --bl33 fip/bl33.bin.enc --level v3 > + > +and then write the image to eMMC with: > + > +.. code-block:: bash > + > + $ DEV=/dev/your_emmc_device > + $ dd if=fip/u-boot.bin.sd.bin of=$DEV conv=fsync,notrunc bs=512 skip=1 seek=1 > + $ dd if=fip/u-boot.bin.sd.bin of=$DEV conv=fsync,notrunc bs=1 count=444 > diff --git a/doc/board/amlogic/jethub-j80.rst b/doc/board/amlogic/jethub-j80.rst > new file mode 100644 > index 0000000000..75a2136b20 > --- /dev/null > +++ b/doc/board/amlogic/jethub-j80.rst > @@ -0,0 +1,97 @@ > +.. SPDX-License-Identifier: GPL-2.0+ > + > +U-Boot for JetHub J80 > +====================== > + > +JetHome Jethub H1 (http://jethome.ru/jethub-h1) is a home automation > +controller manufactured by JetHome with the following specifications: > + > + - Amlogic S905W (ARM Cortex-A53) quad-core up to 1.5GHz > + - No video out > + - 1GB DDR3 > + - 8/16GB eMMC flash > + - 2 x USB 2.0 > + - 1 x 10/100Mbps ethernet > + - SDIO WiFi / Bluetooth RTL8822CS IEEE 802.11a/b/g/n/ac, Bluetooth 5.0. > + - TI CC2538 + CC2592 Zigbee Wireless Module with up to 20dBm output > +power and Zigbee 3.0 support. same here > + - MicroSD 2.x/3.x/4.x DS/HS cards. > + - 1 x gpio LED > + - ADC user Button > + - DC source 5V microUSB > + - Square plastic case > + > +U-Boot compilation > +------------------ > + > +.. code-block:: bash > + > + $ export CROSS_COMPILE=aarch64-none-elf- > + $ make jethub_j80_defconfig > + $ make > + > +Image creation > +-------------- > + > +Amlogic doesn't provide sources for the firmware and for tools needed > +to create the bootloader image, so it is necessary to obtain binaries > +from the git tree published by the board vendor: > + > +.. code-block:: bash > + > + $ git clone https://github.com/jethome-ru/jethub-aml-tools jethub-u-boot > + $ cd jethub-u-boot > + $ export FIPDIR=$PWD > + > +Go back to mainline U-Boot source tree then : > + > +.. code-block:: bash > + > + $ mkdir fip > + > + $ cp $FIPDIR/j80/bl2.bin fip/ > + $ cp $FIPDIR/j80/acs.bin fip/ > + $ cp $FIPDIR/j80/bl21.bin fip/ > + $ cp $FIPDIR/j80/bl30.bin fip/ > + $ cp $FIPDIR/j80/bl301.bin fip/ > + $ cp $FIPDIR/j80/bl31.img fip/ > + $ cp u-boot.bin fip/bl33.bin > + > + $ $FIPDIR/blx_fix.sh \ > + fip/bl30.bin \ > + fip/zero_tmp \ > + fip/bl30_zero.bin \ > + fip/bl301.bin \ > + fip/bl301_zero.bin \ > + fip/bl30_new.bin \ > + bl30 > + > + $ python $FIPDIR/acs_tool.pyc fip/bl2.bin fip/bl2_acs.bin fip/acs.bin 0 > + > + $ $FIPDIR/blx_fix.sh \ > + fip/bl2_acs.bin \ > + fip/zero_tmp \ > + fip/bl2_zero.bin \ > + fip/bl21.bin \ > + fip/bl21_zero.bin \ > + fip/bl2_new.bin \ > + bl2 > + > + $ $FIPDIR/j80/aml_encrypt_gxl --bl3enc --input fip/bl30_new.bin > + $ $FIPDIR/j80/aml_encrypt_gxl --bl3enc --input fip/bl31.img > + $ $FIPDIR/j80/aml_encrypt_gxl --bl3enc --input fip/bl33.bin --compress lz4 > + $ $FIPDIR/j80/aml_encrypt_gxl --bl2sig --input fip/bl2_new.bin --output fip/bl2.n.bin.sig > + $ $FIPDIR/j80/aml_encrypt_gxl --bootmk \ > + --output fip/u-boot.bin \ > + --bl2 fip/bl2.n.bin.sig \ > + --bl30 fip/bl30_new.bin.enc \ > + --bl31 fip/bl31.img.enc \ > + --bl33 fip/bl33.bin.enc > + > +and then write the image to SD/eMMC with: > + > +.. code-block:: bash > + > + $ DEV=/dev/your_sd_device > + $ dd if=fip/u-boot.bin.sd.bin of=$DEV conv=fsync,notrunc bs=512 skip=1 seek=1 > + $ dd if=fip/u-boot.bin.sd.bin of=$DEV conv=fsync,notrunc bs=1 count=444 > Neil