[PATCH 1/2] realtek: Add generic zyxel_gs1900 image definition

Hauke Mehrtens hauke at hauke-m.de
Sun Feb 28 12:38:40 EST 2021


On 2/27/21 6:00 PM, Bjørn Mork wrote:
> Hauke Mehrtens <hauke at hauke-m.de> writes:
> 
>> I used the wrong AAHI magic and it was possible to falsh the image
>> over the Web UI, buit the image did not boot, it was unable to find
>> the root fs for me.
> 
> That's odd.  Didn't work in my tests, but I've only tested the
> GS1900-10HP with the latest stock firmware.
> 
> But rootfs?  Flashing from stock will only work with the initramfs
> image.  The stock web ui will cut the image according to the uimage
> header, without warning.  So everything has to be "inside" the uimage.

Ok, I used the sysupgrade tar, I was surprised that this was accepted at 
all. ;-)

> But there is something wrong with our image code if you are able to
> flash anything else than the initramfs image from stock.  Specifically:
> The "zyxel-vers" stuff should *not* be appended to the kernel in the
> sysupgrade image.
> 
>> Where is this check done?
> 
> AFAICS, only in the stock firmware upgrade "app".
> 
>> I was unable to extract the original firmware with binwalk which would
>> be nice to get some more information about how it is structured.
> 
> 
> The GPL drop at https://biot.com/gpl/GS1900-10HP(V2.60(AAZI.2)C0).zip is
> pretty complete.  Only a few files are binary blobs.  And everything
> necessary to build an image is included.

Thanks I will have a look at this.

> There isn't anything weird with the stock image.  It's a standard uimage
> with a non-standard magic.  The list of supported hardware versions is an
> ascii text file at the end of the real image, but inside the size and
> checksum coverage of the uimage header.

Hauke
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0x93DD20630910B515.asc
Type: application/pgp-keys
Size: 9895 bytes
Desc: not available
URL: <http://lists.openwrt.org/pipermail/openwrt-devel/attachments/20210228/e774a6f9/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openwrt.org/pipermail/openwrt-devel/attachments/20210228/e774a6f9/attachment.sig>


More information about the openwrt-devel mailing list