Support for GL.Inet MV1000 (Brume)

Hello,

i'm working on support for this device in openwrt vanilla. I've created an openwrt fork https://github.com/kirdesde/openwrt/tree/openwrt-19.07.

My changes are based on https://github.com/gl-inet/openwrt/commit/b2ef49741602b306b910c77288edda8dc059031f (dts, patches and so on)

I've tried to integrate the code in the cortexa53 subtarget.

Almost everything is working, except the sysupgrade after the flashing my self compiled image.

Sysupgrade tries to flash a mtd device "firmware", but the mv1000 has an emmc.

Could not open mtd device: firmware
Can't open device for writing!

Is sysupgrade even supported for an emmc device? And why is sysupgrade trying to flash mtd?

Some info about the device:

blkid

/dev/loop0: LABEL="rootfs_data" UUID="adac8dc7-4593-4934-b6b2-3677a1f64f8b" TYPE="f2fs"

/dev/mmcblk0p1: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4" PARTUUID="15862674-01"

/dev/mmcblk0p2: TYPE="squashfs" PARTUUID="15862674-02"

/dev/mmcblk0p3: UUID="de9b7a74-7cd3-41bf-a15f-253d4dc693ee" TYPE="ext4"

/dev/mmcblk0p3 is empty and can be used for data.

cat /proc/partitions
major minor  #blocks  name

   7        0     505856 loop0
  31        0        960 mtdblock0
  31        1         32 mtdblock1
  31        2         32 mtdblock2
 179        0    7634944 mmcblk0
 179        1      16640 mmcblk0p1
 179        2     524544 mmcblk0p2
 179        3    7091200 mmcblk0p3
 179       16       4096 mmcblk0boot1
 179        8       4096 mmcblk0boot0

partitions defined in the dts

partition@0 {
                                label = "u-boot";
                                reg = <0 0xf0000>;
                        };

                        partition@f0000 {
                                label = "u-boot-env";
                                reg = <0Xf0000 0x8000>;
                        };

                        art: partition@f8000 {
                                label = "art";
                                reg = <0xf8000 0x8000>;

Maybe someone can lock in the code and point me in the right direction regarding the sysupgrade + emmc?

Thanks in advance

btw: the sysupgrade problem exists also with a self compiled image from https://github.com/gl-inet/openwrt/, but not with an official image from GL.Inet.

Are you aware of [PATCH] mvebu: add support for GL.iNet GL-MV1000?

1 Like

Not yet, but thanks for the hint.

I'll have a look into it.

Do you know then this patch will show up on the openwrt github repository?

P.S. Uhm i see, there are a few change recommendations.....

any help with instructions on how to boot from sdcard image ext4 or squash and also how to set back to boot from gl-inet oem firmware.

https://firmware-selector.openwrt.org/?version=21.02.0-rc1&target=mvebu%2Fcortexa53&id=glinet_gl-mv1000

thanks