lede-Heleguo/scripts
csharper2005 7c0b920f18
ramips: Add support for Beeline SmartBox TURBO+ (#8161)
* ramips: add support for Beeline(Sercomm) U-Boot

- Add recipe for several Beeline/Sercomm devices (e.g., Beeline SmartBox
  GIGA, Beeline SmartBox Turbo+, Sercomm S3) that appends special header
  to a kernel.

- Add device variables KERNEL_LOADADDR, LZMA_TEXT_START. It's also
  necessary for the devices mentioned above.

Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com>
(cherry picked from commit 6240da24f4c1442b0f750f06be512f630b0bc6c8)
Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com>

* ramips: Add support for Beeline SmartBox TURBO+

This PR adds support for router Beeline Smart Box TURBO+.
OEM/ODM Serсomm. Almost identical to Serсomm S3.

Specification
-------------
SoC Type: MediaTek MT7621AT (880 MHz, 2 cores)
RAM (Nanya NT5CC64M16GP): 128 MiB
Flash (Macronix MX30LF1G18AC): 128 MiB
Wireless 2.4 GHz (MT7603EN): b/g/n, 2x2
Wireless 5 GHz (MT7615N): a/n/ac, 4x4
Ethernet: 5 ports - 5×GbE (WAN, LAN1-4)
USB ports: 1xUSB3.0
Buttons: 2 button (reset, wps)
LEDs: Red, Green, Blue
Zigbee (EFR32MG1B232GG): 3.0
Stock bootloader: U-Boot 1.1.3
Power: 12 VDC, 1.5 A

Installation
------------
Attach serial console, then boot the initramfs image via TFTP.
Once inside OpenWrt, run sysupgrade -n with the sysupgrade file.

Signed-off-by: Maximilian Weinmann <x1@disroot.org>
(cherry picked from commit d1f294521bd8bc462c76e09c57a5c8b0600170cd)
(factory recipe from a2cfe339995467308c9126c3d0f70d2a28aeb073)
(big NAND from e6e5837a625ba09e286a5bde05f2ce581cfbeab7)
(removed nvmem cells, fixed conflicts)
Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com>

* ramips: add Sercomm partition map parser

This adds an MTD partition parser for the Sercomm partition table that
is used in some Netgear routers.

This is essentially the same code as proposed in the pull request for
Netgear R6350 support by NOGUCHI Hiroshi <drvlabo@gmail.com>:
https://github.com/openwrt/openwrt/pull/1318

It was originally rejected as it did not seem to work correctly.
However, this was only due the NAND driver transparently shifting pages
to hide bad blocks, which was fixed in commit
527832e54bf3bc4d699a145ae66f34230246f0a9.

Signed-off-by: Jan Hoffmann <jan@3e8.eu>
[x1@disroot.org: correction from checkpatch.pl]
Signed-off-by: Maximilian Weinmann <x1@disroot.org>
(cherry picked from commit 65e772105f8d5e98a999b836fed794b7415f2741)
Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com>

* ramips: Improve Beeline Smartbox Turbo+ support in lede

Changed switch configuration and a few minor changes.

Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com>

Co-authored-by: Maximilian Weinmann <x1@disroot.org>
Co-authored-by: Jan Hoffmann <jan@3e8.eu>
2021-11-03 12:16:32 +08:00
..
config x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
flashing
arm-magic.sh
brcmImage.pl
bundle-libraries.sh add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
cfe-bin-header.py
cfe-partition-tag.py
cfe-wfi-tag.py
checkpatch.pl x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
clean-package.sh x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
cleanfile
cleanpatch
combined-ext-image.sh add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
combined-image.sh add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
config.guess add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
config.rpath
config.sub add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
const_structs.checkpatch add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
deptest.sh
diffconfig.sh
dl_cleanup.py scripts: check if dl directory exist in dl_cleanup script 2021-07-06 14:31:20 +08:00
dl_github_archive.py
download.pl download.pl: add more mirrors addresses (#7025) 2021-06-17 01:19:53 +08:00
dump-target-info.pl add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
env add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
ext-toolchain.sh
feeds add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
fixup-makefile.pl
functions.sh add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
gen_image_generic.sh x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
gen-dependencies.sh
get_source_date_epoch.sh add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
getver.sh kernel: bump 5.4 to 5.4.125 2021-06-15 18:06:21 +08:00
ipkg-build add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
ipkg-make-index.sh add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
ipkg-remove
json_add_image_info.py x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
json_overview_image_info.py build: preserve profiles.json between builds 2021-06-17 20:14:50 +08:00
kconfig.pl add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
linksys-image.sh
make-ipkg-dir.sh
md5sum
metadata.pm x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
mkhash.c add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
mkits-qsdk-ipq-image.sh
mkits.sh scripts/mkits.sh: Fix the hash algorithm paramter 2021-07-22 18:11:36 +08:00
om-fwupgradecfg-gen.sh x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
package-metadata.pl add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
pad_image
patch-kernel.sh
patch-specs.sh
portable_date.sh
qemustart x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
redboot-script.pl
relink-lib.sh
remote-gdb
rstrip.sh
sercomm-crypto.py
sercomm-kernel.sh ramips: Add support for Beeline SmartBox TURBO+ (#8161) 2021-11-03 12:16:32 +08:00
sercomm-partition-tag.py
sercomm-payload.py
sign_images.sh
size_compare.sh add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
slugimage.pl
spelling.txt add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
srecimage.pl
strip-kmod.sh
symlink-tree.sh
sysupgrade-tar.sh
target-metadata.pl x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
time.pl
timestamp.pl
ubinize-image.sh