[OpenWrt-Devel] [PATCH] brcm47xx: image: Enhance initramfs support to create chk and alternative nodictionary images

Stephen G. Parry sgparry at mainscreen.com
Wed Oct 15 10:45:16 EDT 2014


On 15/10/14 11:23, Rafał Miłecki wrote:
> On 15 October 2014 11:06, Stephen G. Parry <sgparry at mainscreen.com> wrote:
>> On 13/10/14 07:02, Rafał Miłecki wrote:
>>> On 13 October 2014 00:35, Stephen Parry <sgparry at mainscreen.com> wrote:
>>>> Enhance support for initramfs:
>>>> - added commands to create chk images for flashing via tftp or
>>>>   stock firmware gui
>>>> - added commands to generate nodictionary and noloader variants of trx
>>>>   images
>>>>
>>>> Signed-off-by: Stephen Parry <sgparry at mainscreen.com>
>>> Thanks for your patch, I've partially commited it in r42889
>>> https://dev.openwrt.org/changeset/42889/
>> Just wondered why only partially. Was there something wrong with the trx
>> rules?
> AFAIU trx part would generate few non-working firmares (images using
> loader for devices where it doesn't work). Plus I want Hauke's
> opinion, he's the main maintainer.
>
While we've been waiting I've recoded my Makefile thus:

define Image/Build/mips74k/devices-with-64k-blocks-noloader-nodictionary
    $(call
Image/Build/Chk,$(1)-noloader-nodictionary,wnr3500l_v1_north_america,U12H136T99_NETGEAR,2,$(patsubst
jffs2-%,jffs2,$(1)))
    $(call
Image/Build/Chk,$(1)-noloader-nodictionary,wnr3500l_v1_other_regions,U12H136T99_NETGEAR,1,$(patsubst
jffs2-%,jffs2,$(1)))
endef

# $(1): filesystem type.
define Image/Build/mips74k/jffs2-64k
    $(call Image/Build/mips74k/devices-with-64k-blocks,$(1))
    $(call
Image/Build/mips74k/devices-with-64k-blocks-noloader-nodictionary,$(1))
endef

# $(1): filesystem type.
define Image/Build/mips74k/jffs2-128k
    $(call Image/Build/mips74k/devices-with-128k-blocks,$(1))
endef

# $(1): filesystem type.
define Image/Build/mips74k/squashfs
    $(call Image/Build/mips74k/devices-with-64k-blocks,$(1))
    $(call
Image/Build/mips74k/devices-with-64k-blocks-noloader-nodictionary,$(1))
    $(call Image/Build/mips74k/devices-with-128k-blocks,$(1))
endef
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list