Changeset 44665


Ignore:
Timestamp:
2015-03-11T16:56:34+01:00 (3 years ago)
Author:
blogic
Message:

ar71xx: improve WD's My Net Wi-fi Range Extender image creation

Previously, the generated images for the My Net Wi-fi Range Extender
wouldn't always work (and panic) due to the fixed mtd offsets and
sizes for the kernel and rootfs. This patch fixes the problem by
utilizing the shared Cybertan's partition parser to recalculate
the mtd partitions for every image dynamically everytime.

Reported-by: Pascal Paradis <peparadis@…>
Signed-off-by: Christian Lamparter <chunkeey@…>

Location:
trunk/target/linux/ar71xx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-rext.c

    r38949 r44665  
    5555 
    5656#define MYNET_REXT_ART_ADDR             0x1f7f0000 
     57 
     58static const char *mynet_rext_part_probes[] = { 
     59        "cybertan", 
     60        NULL, 
     61}; 
     62 
     63static struct flash_platform_data mynet_rext_flash_data = { 
     64        .type           = "s25fl064k", 
     65        .part_probes    = mynet_rext_part_probes, 
     66}; 
    5767 
    5868static struct gpio_led mynet_rext_leds_gpio[] __initdata = { 
     
    131141        u8 tmpmac[ETH_ALEN]; 
    132142 
    133         ath79_register_m25p80(NULL); 
     143        ath79_register_m25p80(&mynet_rext_flash_data); 
    134144 
    135145        /* GPIO configuration from drivers/char/GPIO8.c */ 
  • trunk/target/linux/ar71xx/image/Makefile

    r44620 r44665  
    408408zcn1523h_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,6208k(rootfs),1472k(kernel),64k(configure)ro,64k(mfg)ro,64k(art)ro,7680k@0x50000(firmware) 
    409409mynet_n600_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,64k(devdata)ro,64k(devconf)ro,15872k(firmware),64k(radiocfg)ro 
    410 mynet_rext_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,7808k(firmware),64k(nvram)ro,64k(ART)ro,6848k@0x130000(filesystem) 
     410mynet_rext_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,7808k(firmware),64k(nvram)ro,64k(ART)ro 
    411411zyx_nbg6716_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(env)ro,64k(RFdata)ro,-(nbu);ar934x-nfc:2048k(zyxel_rfsd),2048k(romd),1024k(header),2048k(kernel),-(ubi) 
    412412qihoo_c301_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env),64k(devdata),64k(devconf),15744k(firmware),64k(warm_start),64k(action_image_config),64k(radiocfg)ro;spi0.1:15360k(upgrade2),1024k(privatedata) 
     
    13021302$(eval $(call SingleProfile,CyberTANGZIP,64k,WRT160NL,wrt160nl,WRT160NL,ttyS0,115200,,1.00.01)) 
    13031303 
    1304 $(eval $(call SingleProfile,CyberTANLZMA,64k,MYNETREXT,mynet-rext,MYNET-REXT,ttyS0,115200,$$(mynet_rext_mtdlayout) root=31:4,1.00.01)) 
     1304$(eval $(call SingleProfile,CyberTANLZMA,64k,MYNETREXT,mynet-rext,MYNET-REXT,ttyS0,115200,$$(mynet_rext_mtdlayout) root=31:2,1.00.01)) 
    13051305 
    13061306$(eval $(call SingleProfile,CameoAP94,64kraw,DIR825B1,dir-825-b1,DIR-825-B1,ttyS0,115200,$$(cameo_ap94_mtdlayout),$$(cameo_ap94_mtdlayout_fat),01AP94-AR7161-RT-080619-00,00AP94-AR7161-RT-080619-00)) 
Note: See TracChangeset for help on using the changeset viewer.