openwrt/target/linux
Daniel Golle 774e1be5d6 mediatek: rework support for BananaPi BPi-R64
**What's new**

 * Bring support for the Bananapi BPi-R64 to the level desirable for
   a nice hackable routerboard.
 * Use ARM Trusted Firmware A from source. (goodbye binary preloader)
 * Use Das U-Boot from source. (see previous commit)
 * Assemble SD-card image using OpenWrt image-commands.
   (no gen_sd_cruz_foo.sh added, this is not Raspbian)
 * Updated kernel options to support root filesystem.
 * Updated DTS to match OpenWrt LAN ports, known LEDs, buttons, ...
 * Detect root device, handle sysupgrade, config restore, ...
 * Wire up (known) LEDs and buttons in OpenWrt-fashion.
 * Build one set of images from SD-card and eMMC.
 * Hopefully provide a good example of how things can be done right
   from scratch.

**Installation and images**

 * Have an empty SD-card at hand
 * Write stuff to the card, as root (card device is /dev/mmcblkX)
   - write header, gpt, bl2, atf, u-boot and recovery kernel:
     `cat *bpi-r64-boot-sdcard.img *bpi-r64-initramfs-recovery.fit > /dev/mmcblkX`
   - rescan partitions:
     `blockdev --rereadpt /dev/mmcblkX`
   - write main system to production partition:
     `cat *bpi-r64-squashfs-sysupgrade.fit > /dev/mmcblkXp5`

 * Installation to eMMC works using SD-card bootloader via TFTP
   When running OpenWrt of SD-card, issue this to trigger installation
   to eMMC:
   `fw_setenv bootcmd run emmc_init`
   Be prepared to serve the content of bin/targets/mediatek/mt7622 on
   TFTP server address 192.168.1.254.

**What's missing**

 * The red LED is always on, probably a hardware bug.
 * AHCI (probably needs DTS changes)
 * Ship SD-card image ready with every needed for eMMC install.
 * The eMMC has a second, currently unused boot partition. This would
   be ideal to store the WiFi EEPROM and Ethernet MAC address(es).
   @sinovoip ideas?

Thanks to Thomas Hühn @thuehn for providing the hardware!

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: maurerr <mariusd84@gmail.com>
2021-09-01 08:07:43 +00:00
..
apm821xx kernel: bump 5.4 to 5.4.97 2021-09-01 08:07:34 +00:00
arc770 target: use SPDX license identifiers on scripts 2021-09-01 08:07:34 +00:00
archs38 target: use SPDX license identifiers on scripts 2021-09-01 08:07:34 +00:00
armvirt target: use SPDX license identifiers on Makefiles 2021-09-01 08:07:34 +00:00
at91 at91: use SPDX license identifiers on DTS files 2021-09-01 08:07:34 +00:00
ath25 treewide: rename IMAGE_PREFIX/IMAGE_NAME to DEVICE_IMG_* 2021-09-01 08:07:41 +00:00
ath79 ath79: fix USB power on TP-Link TL-WR810N v1 2021-09-01 08:07:42 +00:00
bcm27xx bcm27xx: remove urngd package 2021-09-01 08:07:39 +00:00
bcm47xx treewide: rename IMAGE_PREFIX/IMAGE_NAME to DEVICE_IMG_* 2021-09-01 08:07:41 +00:00
bcm53xx bcm53xx: backport more upstream dts stuff from kernel 5.11 2021-09-01 08:07:42 +00:00
bcm63xx treewide: rename IMAGE_PREFIX/IMAGE_NAME to DEVICE_IMG_* 2021-09-01 08:07:41 +00:00
bcm4908 treewide: rename IMAGE_PREFIX/IMAGE_NAME to DEVICE_IMG_* 2021-09-01 08:07:41 +00:00
bmips bmips: dts: fix syscon-reboot nodes 2021-09-01 08:07:41 +00:00
gemini target: use SPDX license identifiers on Makefiles 2021-09-01 08:07:34 +00:00
generic kernel: add support for enabling fit firmware partition parser via cmdline 2021-09-01 08:07:43 +00:00
imx6 treewide: rename IMAGE_PREFIX/IMAGE_NAME to DEVICE_IMG_* 2021-09-01 08:07:41 +00:00
ipq40xx treewide: remove redundant KERNEL_PREFIX definitions 2021-09-01 08:07:39 +00:00
ipq806x treewide: remove redundant KERNEL_PREFIX definitions 2021-09-01 08:07:39 +00:00
ipq807x config: limit CONFIG_PERF_EVENTS to top-level generic configs 2021-09-01 08:07:31 +00:00
kirkwood kirkwood: set testing kernel version to 5.10 2021-09-01 08:07:40 +00:00
lantiq lantiq: fritz7320: enable USB power supply 2021-09-01 08:07:37 +00:00
layerscape kernel: bump 5.4 to 5.4.101 2021-09-01 08:07:42 +00:00
malta target: use SPDX license identifiers on Makefiles 2021-09-01 08:07:34 +00:00
mediatek mediatek: rework support for BananaPi BPi-R64 2021-09-01 08:07:43 +00:00
mpc85xx mpc85xx: remove fdt.bin image 2021-09-01 08:07:42 +00:00
mvebu mvebu: add LED support for GL.iNet GL-MV1000 2021-09-01 08:07:42 +00:00
mxs target: use SPDX license identifiers on scripts 2021-09-01 08:07:34 +00:00
octeon target: use SPDX license identifiers on Makefiles 2021-09-01 08:07:34 +00:00
octeontx target: use SPDX license identifiers on Makefiles 2021-09-01 08:07:34 +00:00
omap target: use SPDX license identifiers on scripts 2021-09-01 08:07:34 +00:00
oxnas kernel: move some new symbols available on 5.10 to generic 2021-09-01 08:07:42 +00:00
pistachio target: use SPDX license identifiers on scripts 2021-09-01 08:07:34 +00:00
ramips ramips: add support for ZTE MF283+ 2021-09-01 08:07:42 +00:00
realtek realtek: add support for Netgear GS108T v3 2021-09-01 08:07:34 +00:00
rockchip kernel: move some new symbols available on 5.10 to generic 2021-09-01 08:07:42 +00:00
sunxi target: use SPDX license identifiers on scripts 2021-09-01 08:07:34 +00:00
tegra target: use SPDX license identifiers on Makefiles 2021-09-01 08:07:34 +00:00
uml target: use SPDX license identifiers on Makefiles 2021-09-01 08:07:34 +00:00
x86 x86: add led driver for PC Engines APU1 2021-09-01 08:07:38 +00:00
zynq zynq: Enable CONFIG_KERNEL_MODE_NEON 2021-09-01 08:07:42 +00:00
Makefile target: use SPDX license identifiers on Makefiles 2021-09-01 08:07:34 +00:00