openwrt-owl/target/linux
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>
2018-11-26 12:28:17 +01:00
..
adm5120 kernel: bump 3.18 to 3.18.123 2018-09-26 15:54:18 +02:00
adm8668 treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
apm821xx apm821xx: wndr4700: restore sd-card media detection 2018-11-26 12:05:47 +01:00
ar7 treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
ar71xx ath79: modify mtd partitions for Buffalo BHR-4GRV2 2018-11-26 12:28:17 +01:00
arc770 treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
archs38 treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
armvirt kernel: bump 4.14 to 4.14.77 2018-10-19 10:01:57 +02:00
at91 kernel: enable memory compaction 2018-10-09 14:29:55 +02:00
ath25 kernel: bump 4.14 to 4.14.79 2018-11-05 16:00:00 +01:00
ath79 ath79: modify mtd partitions for Buffalo BHR-4GRV2 2018-11-26 12:28:17 +01:00
au1000 treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
bcm53xx bcm53xx: request Seama parser on DIR-885L directly 2018-11-22 10:13:56 +01:00
brcm47xx kernel: bump 4.14 to 4.14.81 2018-11-14 16:27:43 +01:00
brcm63xx kernel: bump 4.14 to 4.14.79 2018-11-05 16:00:00 +01:00
brcm2708 kernel: bump 4.9 to 4.9.137 2018-11-14 16:27:43 +01:00
cns3xxx kernel: bump 4.14 to 4.14.77 2018-10-19 10:01:57 +02:00
gemini gemini: Fix up image generation 2018-10-20 16:13:39 +02:00
generic ar8216: add adjust_link checking 2018-11-26 12:16:52 +01:00
imx6 imx6: image: ventana: Add missing BOOT_SCRIPT variable 2018-11-25 19:23:03 +01:00
ipq40xx kernel: bump 4.14 to 4.14.79 2018-11-05 16:00:00 +01:00
ipq806x ipq806x: Add support for IPQ8064 AP161 board 2018-11-26 12:05:46 +01:00
ixp4xx treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
kirkwood treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
lantiq lantiq/basefiles: use shutdown instead of stop when the system goes down 2018-11-25 19:26:55 +01:00
layerscape kernel: bump 4.9 to 4.9.137 2018-11-14 16:27:43 +01:00
malta treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
mcs814x kernel: bump 3.18 to 3.18.119 2018-08-20 13:03:23 +02:00
mediatek kernel: bump 4.14 to 4.14.79 2018-11-05 16:00:00 +01:00
mpc85xx mpc85xx: workaround 4.14 cross compile issue 2018-10-20 16:24:29 +02:00
mvebu kernel: bump 4.14 to 4.14.81 2018-11-14 16:27:43 +01:00
mxs kernel: bump 4.14 to 4.14.75 2018-10-10 14:45:11 +02:00
octeon octeon: remove linux 4.9 support 2018-09-29 18:09:45 +02:00
octeontx kernel: enable memory compaction 2018-10-09 14:29:55 +02:00
omap kernel: bump 4.14 to 4.14.77 2018-10-19 10:01:57 +02:00
omap24xx
orion treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
oxnas oxnas: remove superseded sysupgrade image check 2018-11-08 14:41:42 +01:00
pistachio kernel: bump 4.14 to 4.14.79 2018-11-05 16:00:00 +01:00
ppc40x kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
ppc44x kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
ramips ramips: mt7621-spi: replace the driver with upstream staging one 2018-11-26 12:24:30 +01:00
rb532 rb532: drop 4.9 support 2018-11-26 09:34:09 +01:00
samsung kernel: bump 4.14 to 4.14.77 2018-10-19 10:01:57 +02:00
sunxi kernel: bump 4.14 to 4.14.77 2018-10-19 10:01:57 +02:00
uml treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
x86 x86: add amd microcode entries to grub config 2018-11-26 12:05:45 +01:00
xburst kernel: bump 3.18 to 3.18.119 2018-08-20 13:03:23 +02:00
zynq kernel: bump 4.14 to 4.14.77 2018-10-19 10:01:57 +02:00
Makefile