[PATCHv2] ramips: add support for Notion R281

Hauke Mehrtens hauke at hauke-m.de
Sat Aug 13 08:02:41 PDT 2022


On 7/27/22 05:17, Ian Pangilinan wrote:
>   From: Ian Pangilinan <braveheart_leo at yahoo.com>
> Date: Sun, 27 July 2022 10:55:00 +0800
> Subject: [PATCHv2] ramips: add support for Notion R281
> 
> Notion R281 is a Cat.6 LTE CPE. It is known as Boosteven R281 in some
> markets.
> 
> Product link: https://www.notioni.com/productinfo/759146.html
> 
> Hardware highlights:
> 
>    - CPU: MT7621A 2C4T @ 880MHz
>    - RAM: DDR3 128MB @ 1066MHz
>    - FLASH: S34ML01G2 128MB SPI NAND
>    - WLAN0: MT7603E 2.4GHz 802.11bgn 2x2:2 @ 300Mbps
>    - WLAN1: MT7613BE 5GHz 802.11nac 2x2:2 @ 867Mbps
>    - SWITCH: MT7530 4-port GbE
>    - WWAN: Marvell PXA1826 (Nezha3) Profile M26H Board Cat.6 LTE
>    - SIM: 1x Mini-SIM 2FF
>    - USB: 1x USB 2.0 Micro Type-B
>    - BUTTONS: WPS, Reset
>    - LEDS: Power, Data, Wi-Fi, LAN, Signal1-3
>    - POWER: 12VDc 2A
> 
> 
> The device comes in two configurations. In one configuration the
> bootloader loads the kernel at 0xbc140000 (mtd4) and another at
> 0xbe800000 (mtd5). This patch is for the former. To check, gain root
> shell and run 'cat /proc/cmdline', look for 'root='. If
> 'root=/dev/mtdblock5' then it is already configured as intended. If not,
> then run
> 
> fw_setenv bootargs console=ttyS1,57600n8 root=/dev/mtdblock5
> 
> in the terminal, or run
> 
> setenv bootargs console=ttyS1,57600n8 root=/dev/mtdblock5
> 
> in U-boot. Reboot then follow the installation instructions below.
> 
> This is the flash layout for the mtd4 configuration:
> 
> 0x000000000000-0x000007f80000 : "ALL"
> 0x000000000000-0x000000080000 : "Bootloader"
> 0x000000080000-0x000000100000 : "Config"
> 0x000000100000-0x000000140000 : "Factory"
> 0x000000140000-0x000002800000 : "firmware1"
> 0x0000002d6867-0x000002800000 : "rootfs"
> 0x000000b00000-0x000002800000 : "rootfs_data"
> 0x000002800000-0x000004ec0000 : "firmware2"
> 0x000004ec0000-0x000007f00000 : "ota"
> 0x000007f00000-0x000007f80000 : "Configbak"
> 
> This is the flash layout for the mtd5 configuration:
> 
> 0x000000000000-0x000007f80000 : "ALL"
> 0x000000000000-0x000000080000 : "Bootloader"
> 0x000000080000-0x000000100000 : "Config"
> 0x000000100000-0x000000140000 : "Factory"
> 0x000000140000-0x000002800000 : "firmware1"
> 0x000002800000-0x000004ec0000 : "firmware2"
> 0x000002996dfc-0x000004ec0000 : "rootfs"
> 0x000003180000-0x000004ec0000 : "rootfs_data"
> 0x000004ec0000-0x000007f00000 : "ota"
> 0x000007f00000-0x000007f80000 : "Configbak"
> 
> This is how it looks when flashed to OpenWrt with this patch:
> 
> 0x000000000000-0x000000080000 : "u-boot"
> 0x000000080000-0x0000000a0000 : "u-boot-env"
> 0x000000100000-0x000000140000 : "factory"
> 0x000000140000-0x000000540000 : "kernel"
> 0x000000540000-0x000007f00000 : "ubi"
> 0x000007f00000-0x000007f80000 : "configbak"
> 
> 
> Installation Instructions:
> 
> Stock firmware runs an old OpenWrt Chaos Calmer release. Unfortunately,
> because of the changes in the flash layout, this cannot be sysupgrade-d
> readily from stock. Installation will be via tftpboot in the bootloader.
> Connect the USB-TTL serial converter as follows, indicated on the board
> by the APTX marking near three round PCB pads:
> 
> (GND) (RX) (TX) APTX
> 
> Baud rate is 57600.
> 
> 1. Connect the computer to the device via ethernet cable. Set a static
> adddress of 10.10.10.3/24 to the wired interface.
> 2. Start the TFTP server, point it to where the initramfs image is
> located. Rename the image to 'test.bin'.
> 3. Turn on the device. There will be a three-second delay before the
> default 'Boot system code via flash' is selected.
> 4. Interrupt the boot process by pressing 1 to 'System Load Linux to
> SDRAM via TFTP'.
> 5. Press enter to accept the default 'Input device IP (10.10.10.123)'.
> 6. Press enter to accept the default 'Input server IP (10.10.10.3)'.
> 7. Press enter to accept the default 'Input Linux Kernel filename ()',
> or enter 'test.bin'.
> 8. Wait for the initramfs image to finish loading.
> 9. Reconnect the wired interface to any LAN ports of the device via
> DHCP.
> 9. Flash the sysupgrade image at
> http://192.168.1.1/cgi-bin/luci/admin/system/flash
> 
> 
> What Works?
> 
> - LEDs
> - Buttons
> - Wired LAN and WAN
> - Wireless LAN
> 
> What Doesn't?
> 
> - Wireless WAN
> 
> The only configurable LEDs are the red and white data, and white Wi-Fi
> LEDs. I use the red data LED as status indicator for OpenWrt. The white
> LAN LED is controlled by the switch and functions as expected, as well
> as the three green signal LED indicators controlled by the WWAN. I setup
> the WPS button to work as a Wi-Fi/rfkill button. There is also an
> exported GPIO to reset the WWAN. These are the same LEDs and GPIO found
> on the stock firmware.
> 
> Support for WWAN could come at a later date. I have setup LAN1 of the
> device as WAN.
> 
> Signed-off-by: Ian Pangilinan <braveheart_leo at yahoo.com>
> ---
>    package/boot/uboot-envtools/files/ramips           |   1 +
>    .../linux/ramips/dts/mt7621_notion_r281.dts (new)  | 203
> +++++++++++++++++
>    target/linux/ramips/image/mt7621.mk                |  15 +++
>    .../mt7621/base-files/etc/board.d/02_network       |   3 ++
>    .../mt7621/base-files/lib/upgrade/platform.sh      |   1 +
>    5 files changed, 223 insertions(+), 0 deletion(-)
>    create mode 100644 target/linux/ramips/dts/mt7621_notion_r281.dts
> diff --git a/package/boot/uboot-envtools/files/ramips
> b/package/boot/uboot-envtools/files/ramips
> index eebc08d65d..1f62d6b70f 100644
> --- a/package/boot/uboot-envtools/files/ramips
> +++ b/package/boot/uboot-envtools/files/ramips
> @@ -61,6 +63,7 @@ linksys,ea7500-v2|\
>    linksys,ea8100-v1|\
>    linksys,ea8100-v2|\
>    mts,wg430223|\
> +notion,r281|\
>    xiaomi,mi-router-3g|\
>    xiaomi,mi-router-3-pro|\
>    xiaomi,mi-router-4|\

Hi,

The white spaces in this patch are damaged. Please send it again with 
git send-email for example.

Hauke




More information about the openwrt-devel mailing list