[OpenWrt-Devel] [PATCH 8/9] ar71xx: PowerCloud CR5000 image generation

Felix Fietkau nbd at openwrt.org
Wed Dec 9 08:13:29 EST 2015


On 2015-12-09 10:21, openwrt at daniel.thecshore.com wrote:
> From: Daniel Dickinson <openwrt at daniel.thecshore.com>
> 
> Image generation (and mtd parititioning) part of support for the
> PowerCloud Systems CR5000.  The CR5000 is a dual-band 802.11n
> wireless router with 8MB flash, 64MB RAM, (unused on stock firmware)
> USB 2.0 port and five port gigabit ethernet switch.  The CR5000
> was sold as hardware for the Skydog cloud-managed router service.
> 
> Signed-off-by: Daniel Dickinson <openwrt at daniel.thecshore.com>
> ---
>  target/linux/ar71xx/generic/profiles/pcs.mk | 37 +++++++++++++++++++++++++++++
>  target/linux/ar71xx/image/Makefile          | 18 ++++++++++++++
>  2 files changed, 55 insertions(+)
> diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile
> index a537dd0..72e04dc 100644
> --- a/target/linux/ar71xx/image/Makefile
> +++ b/target/linux/ar71xx/image/Makefile
> @@ -419,6 +419,24 @@ endef
>  
>  TARGET_DEVICES += cr3000-nocloud
>  
> +define Device/cr5000
> +  BOARDNAME = CR5000
> +  DEVICE_PROFILE := CR5000
> +  IMAGE_SIZE = 7808k
> +  MTDPARTS = mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,1408k(kernel),5696k(rootfs),640k(certs),64k(nvram),64k(art)ro,7104k at 0x50000(firmware)
> +endef
> +
> +TARGET_DEVICES += cr5000
> +
> +define Device/cr5000
> +  BOARDNAME := CR5000
> +  DEVICE_PROFILE := CR5000NOCLOUD
> +  IMAGE_SIZE = 7808k
> +  MTDPARTS = mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,1408k(kernel),6400k(rootfs),64k(art)ro,7808k at 0x50000(firmware)
> +endef
Should be cr5000-nocloud. Did you test this?
Also, the mtd layout looks wrong to me. Kill the kernel/rootfs
partitions, add just the firmware part in their place (without the
explicit offset), and let the kernel figure out the kernel/rootfs split.
Same applies to your other patches as well.

- Felix
_______________________________________________
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