1 .. SPDX-License-Identifier: GPL-2.0+
4 =======================
6 JetHome Jethub D1 (http://jethome.ru/jethub-d1) is a series of home
7 automation controller manufactured by JetHome with the following
10 - Amlogic A113X (ARM Cortex-A53) quad-core up to 1.5GHz
12 - 512MB/1GB DDR3 or 2GB DDR4 SDRAM
13 - 8/16/32GB eMMC flash
15 - 1 x 10/100Mbps ethernet
16 - WiFi / Bluetooth one from:
17 - AMPAK AP6255 (Broadcom BCM43455) IEEE 802.11a/b/g/n/ac, Bluetooth 4.2
18 - RTL8822CS IEEE 802.11a/b/g/n/ac, Bluetooth 5.0
19 - Amlogic W155S1 WiFi5 IEEE 802.11a/b/g/n/ac, Bluetooth 5.2
22 - DC source with a voltage of 9 to 56 V / Passive POE
23 - DIN Rail Mounting case
25 Basic version also has:
27 - TI CC2538 + CC2592 Zigbee Wireless Module with up to 20dBm output
28 power and Zigbee 3.0 support.
31 - 4 x dry contact digital GPIO inputs
32 - 3 x relay GPIO outputs
39 $ export CROSS_COMPILE=aarch64-none-elf-
40 $ make jethub_j100_defconfig
46 For simplified usage, pleaser refer to :doc:`pre-generated-fip` with codename `jethub-j100`
48 Amlogic doesn't provide sources for the firmware and for tools needed
49 to create the bootloader image, so it is necessary to obtain binaries
50 from the git tree published by the board vendor:
54 $ git clone https://github.com/jethome-ru/jethub-aml-tools jethub-u-boot
58 Go back to mainline U-boot source tree then :
64 $ cp $FIPDIR/j100/bl2.bin fip/
65 $ cp $FIPDIR/j100/acs.bin fip/
66 $ cp $FIPDIR/j100/bl21.bin fip/
67 $ cp $FIPDIR/j100/bl30.bin fip/
68 $ cp $FIPDIR/j100/bl301.bin fip/
69 $ cp $FIPDIR/j100/bl31.img fip/
70 $ cp u-boot.bin fip/bl33.bin
72 $ $FIPDIR/blx_fix.sh \
81 $ $FIPDIR/acs_tool.pyc fip/bl2.bin fip/bl2_acs.bin fip/acs.bin 0
83 $ $FIPDIR/blx_fix.sh \
92 $ $FIPDIR/j100/aml_encrypt_axg --bl3sig --input fip/bl30_new.bin \
93 --output fip/bl30_new.bin.enc \
94 --level v3 --type bl30
95 $ $FIPDIR/j100/aml_encrypt_axg --bl3sig --input fip/bl31.img \
96 --output fip/bl31.img.enc \
97 --level v3 --type bl31
98 $ $FIPDIR/j100/aml_encrypt_axg --bl3sig --input fip/bl33.bin --compress lz4 \
99 --output fip/bl33.bin.enc \
100 --level v3 --type bl33
101 $ $FIPDIR/j100/aml_encrypt_axg --bl2sig --input fip/bl2_new.bin \
102 --output fip/bl2.n.bin.sig
103 $ $FIPDIR/j100/aml_encrypt_axg --bootmk \
104 --output fip/u-boot.bin \
105 --bl2 fip/bl2.n.bin.sig \
106 --bl30 fip/bl30_new.bin.enc \
107 --bl31 fip/bl31.img.enc \
108 --bl33 fip/bl33.bin.enc --level v3
110 and then write the image to eMMC with:
114 $ DEV=/dev/your_emmc_device
115 $ dd if=fip/u-boot.bin.sd.bin of=$DEV conv=fsync,notrunc bs=512 skip=1 seek=1
116 $ dd if=fip/u-boot.bin.sd.bin of=$DEV conv=fsync,notrunc bs=1 count=444