You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openwrt/include
INAGAKI Hiroshi 879f2ef7c0 ath79: modify mtd partitions for Buffalo BHR-4GRV2
This commit modifies mtd partitions define for Buffalo BHR-4GRV2 and
move it to generic subtarget.

In Buffalo BHR-4GRV2, "kernel" partition is located behined "rootfs"
partition in the stock firmware. This causes the size of the kernel
to be limited by the fixed value.

0x50000                       0xe80000        0xff0000
  +-------------------------------+--------------+
  |            rootfs             |    kernel    |
  |           (14528k)            |    (1472k)   |
  +-------------------------------+--------------+

After ar71xx was updated to Kernel 4.14, the kernel size of BHR-4GRV2
exceeded the limit, and it breaks builds on official buildbot.
Since this issue was also confirmed in ath79, I modified the mtd
partitions to get rid of that limitation.

0x50000                                       0xff0000
  +----------------------------------------------+
  |                   firmware                   |
  |                   (16000k)                   |
  +----------------------------------------------+

However, this commit breaks compatibility with ar71xx firmware, so I
dropped "SUPPORTED_DEVICES += bhr-4grv2".

This commit requires new flash instruction instead of the old one.

Flash instruction using initramfs image:

1. Connect the computer to the LAN port of BHR-4GRV2
2. Set the IP address of the computer to 192.168.12.10
3. Rename the OpenWrt initramfs image to
"bhr4grv2-uImage-initramfs-gzip.bin" and place it into the TFTP
directory
4. Start the tftp server on the computer
5. While holding down the "ECO" button, connect power cable to
BHR-4GRV2 and turn on it
6. Flashing (orange) diag LED and release the finger from the button,
BHR-4GRV2 downloads the intiramfs image from TFTP server and boot
with it
7. On the initramfs image, create "/etc/fw_env.config" file with
following contents
  /dev/mtd1 0x0 0x10000 0x10000
8. Execute following commands to add environment variables for
u-boot
  fw_setenv ipaddr 192.168.12.1
  fw_setenv serverip 192.168.12.10
  fw_setenv ethaddr 00:aa:bb:cc:dd:ee
  fw_setenv bootcmd "bootm 0x9f050000 || bootm 0x9fe80000"
9. Perform sysupgrade with squashfs-sysupgrade image
10. Wait ~150 seconds to complete flashing

And this commit includes small fix; BHR-4GRV2 has QCA9557 as a SoC,
not QCA9558.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
6 years ago
..
site include/site: add powerpc64 config 7 years ago
autotools.mk treewide: fix build depends to refer to source package names 6 years ago
cmake.mk build: use CMAKE_SOURCE_SUBDIR variable to cmake.mk 6 years ago
debug.mk include: remove trailing whitespaces 9 years ago
depends.mk build: add missing wildcard for ignoring .pkgdir in dependency checks 7 years ago
device_table.txt image: ensure that /dev/console exist in rootfs images 11 years ago
download.mk download.mk: enable DownloadMethod/github_archive 6 years ago
feeds.mk include/feeds.mk: fix distfeeds.conf without per-feed repos 6 years ago
hardened-ld-pie.specs build: add hardened builds with PIE (ASLR) support 6 years ago
hardening.mk build: fix ASLR for LTO packages 6 years ago
host-build.mk build: do not override CCACHE_DIR when ccache is disabled 6 years ago
image-commands.mk ath79: modify mtd partitions for Buffalo BHR-4GRV2 6 years ago
image-legacy.mk image: fix ar71xx legacy images 7 years ago
image.mk build: Introduce building of artifacts 6 years ago
kernel-build.mk include/kernel-build.mk: fix kernel rebuild on backport patch changes 6 years ago
kernel-defaults.mk config: don't define the same symbol twice 6 years ago
kernel-version.mk kernel: bump 3.18 to 3.18.126 6 years ago
kernel.mk build: remove obsolete -rc kernel testing rewrites 6 years ago
netfilter.mk Revert "netfilter: separate IPv6 relevant kernel modules from IPv4" 6 years ago
nls.mk treewide: fix build depends to refer to source package names 6 years ago
package-bin.mk build: use if-then to avoid non-zero return codes in bin/ packaging code 7 years ago
package-defaults.mk include/package-defaults.mk: fix default Build/Prepare with empty ./src 6 years ago
package-dumpinfo.mk include/package-dumpinfo.mk: don't duplicate source package information for every binary package 6 years ago
package-ipkg.mk build: fix compile error when a package includes itself in PROVIDES 6 years ago
package-seccomp.mk include: add a seccomp filter install wrapper 9 years ago
package.mk build: do not override CCACHE_DIR when ccache is disabled 6 years ago
prereq-build.mk build: remove GNU time dependency 6 years ago
prereq.mk include: extend SetupHostCommand macro to accept more arguments 6 years ago
quilt.mk kernel: split patches folder up into backport, pending and hack folders 7 years ago
rootfs.mk include/rootfs.mk: remove boot directory 6 years ago
scan.awk build: propagate override information to .packageinfo 9 years ago
scan.mk build: fix target metadata scan dependencies 6 years ago
scons.mk build: use CXXFLAGS if defined 8 years ago
shell.sh build: use mkhash to replace various quirky md5sum/openssl calls 7 years ago
subdir.mk build: remove GNU time dependency 6 years ago
target.mk hostapd: add basic variant 6 years ago
toolchain-build.mk build: stop overriding STAGING_DIR_HOST for toolchain build 7 years ago
toplevel.mk build: fix target metadata scan dependencies 6 years ago
u-boot.mk u-boot.mk: add HOST_LDFLAGS to UBOOT_MAKE_FLAGS 6 years ago
uclibc++.mk toolchain: eliminate the INSTALL_LIBSTDCPP config symbol and make c++ support mandatory - fixes recursive config symbol dependency issues 11 years ago
unpack.mk build: unzip: perform operations quietly 7 years ago
verbose.mk include/verbose.mk: Add sc to failure message 6 years ago
version.mk base-files: fix HOME_URL replace 6 years ago