Changeset 2708

Show
Ignore:
Timestamp:
06/05/07 12:58:34 (2 years ago)
Author:
tg
Message:

create another flash image for devices where the necessary size is
known and entered manually (these only work correctly if the device
has not received a upgrade of flash size, obviously):
-rw-r--r-- 1 tg freewrt 8060928 Jun 5 10:54 freewrt-asus-wl500g-premium-brcm-2.4-squashfs-fwcf.bin
-rw-r--r-- 1 tg freewrt 6803456 Jun 5 10:54 freewrt-asus-wl500g-premium-brcm-2.4-squashfs.bin

For now you only need to know: _if_ a *-fwcf image exists, you can
flash that and it'll nuke the fwcf mtd partition too. Details on
how I came to this idea will be published as article on the website
some time, because this is actually deeper and quite interesting.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/freewrt/target/image/brcm/Makefile

    r2591 r2708  
    142142 
    143143ifeq ($(FWRT_LINUX_2_4_BRCM_ASUS_WL500G_PREMIUM),y) 
     144MTD_PADSIZE=    8060928 
    144145ifeq ($(FS),jffs2) 
    145146MTD_ERASESIZE:=-64k 
     
    208209 
    209210ifeq ($(FWRT_LINUX_2_6_BRCM_ASUS_WL500G_PREMIUM),y) 
     211MTD_PADSIZE=    8060928 
    210212ifeq ($(FS),jffs2) 
    211213MTD_ERASESIZE:=-64k 
     
    225227endif 
    226228 
     229MTD_PADSIZE?= 
     230ifneq ($(strip ${MTD_PADSIZE}),) 
     231$(BIN_DIR)/$(FWRT_PREFIX)-$(DEVICE)-$(BOARD)-$(KERNEL)-$(FS)-fwcf.bin: $(BIN_DIR)/$(FWRT_PREFIX)-$(DEVICE)-$(BOARD)-$(KERNEL)-$(FS).bin 
     232ifeq (${OStype},Linux) 
     233        dd if=/dev/zero of='$@' bs=${MTD_PADSIZE} count=1 
     234        dd if='$^' of='$@' conv=notrunc 
     235else 
     236        dd if='$^' of='$@' bs=${MTD_PADSIZE} conv=osync 
     237endif 
     238install: $(BIN_DIR)/$(FWRT_PREFIX)-$(DEVICE)-$(BOARD)-$(KERNEL)-$(FS)-fwcf.bin 
     239endif 
     240 
    227241include ${TOPDIR}/target/image/common.mk