Changeset e92088b in freewrt


Ignore:
Timestamp:
Jun 5, 2007, 12:58:34 PM (19 years ago)
Author:
Thorsten Glaser <tg@…>
Children:
578cada9
Parents:
4cdba10
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.

git-svn-id: svn://www.freewrt.org/trunk/freewrt@2708 afb5a338-a214-0410-bd46-81f09a774fd1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • target/image/brcm/Makefile

    r4cdba10 re92088b  
    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
Note: See TracChangeset for help on using the changeset viewer.