Changeset 18349


Ignore:
Timestamp:
2009-11-08T23:55:44+01:00 (8 years ago)
Author:
florian
Message:

[rdc] also support pcmcia

Location:
trunk/target/linux/rdc
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/rdc/Makefile

    r18326 r18349  
    1010BOARD:=rdc 
    1111BOARDNAME:=RDC 321x 
    12 FEATURES:=squashfs jffs2 pci usb 
     12FEATURES:=squashfs jffs2 pci usb pcmcia 
    1313CFLAGS:=-Os -pipe -march=i486 -funit-at-a-time 
    1414 
  • trunk/target/linux/rdc/config-2.6.30

    r18327 r18349  
    2929# CONFIG_BINARY_PRINTF is not set 
    3030CONFIG_BITREVERSE=y 
     31# CONFIG_BLK_DEV_INITRD is not set 
    3132CONFIG_BLK_DEV_RAM=y 
    3233CONFIG_BLK_DEV_RAM_COUNT=16 
     
    5354# CONFIG_DEBUG_BUGVERBOSE is not set 
    5455# CONFIG_DEBUG_FS is not set 
    55 CONFIG_DECOMPRESS_GZIP=y 
    5656CONFIG_DECOMPRESS_LZMA=y 
    5757CONFIG_DEFAULT_IO_DELAY_TYPE=0 
     
    133133# CONFIG_IB700_WDT is not set 
    134134# CONFIG_IBMASR is not set 
    135 CONFIG_INITRAMFS_SOURCE="" 
    136135# CONFIG_IOMMU_API is not set 
    137136# CONFIG_IOMMU_HELPER is not set 
     
    233232# CONFIG_PROVIDE_OHCI1394_DMA_INIT is not set 
    234233CONFIG_RDC321X_WDT=m 
    235 CONFIG_RD_GZIP=y 
    236 # CONFIG_RD_LZMA is not set 
    237234# CONFIG_RELOCATABLE is not set 
    238235# CONFIG_RTC is not set 
  • trunk/target/linux/rdc/config/profile-wl153

    r18300 r18349  
    1 # CONFIG_BLK_DEV_INITRD is not set 
  • trunk/target/linux/rdc/image/Makefile

    r18300 r18349  
    4040        cat $(KDIR)/bzImage $(KDIR)/root.squashfs >> $(KDIR)/root.tmp 
    4141        dd if=$(KDIR)/root.tmp of=$(KDIR)/root2.tmp bs=64k conv=sync 
    42         dd if=$(KDIR)/root2.tmp of=$(KDIR)/root.squashfs bs=1 skip=$$$$[0x$$$$(cat $(KDIR)/bzSize) + 0x8014] 
     42        dd if=$(KDIR)/root2.tmp of=$(KDIR)/root.squashfs bs=1 skip=$$$$(perl -we 'print((-s"$(KDIR)/bzImage")+0x8014)') 
     43        $(RM) $(KDIR)/root.tmp $(KDIR)/root2.tmp 
    4344        $(call add_jffs2_mark,$(KDIR)/root.squashfs) 
    4445endef 
    4546 
    4647define Image/Build/wl153 
    47         ls -l $(KDIR)/bzImage | sed -r 's/^[^[:blank:]]+[[:blank:]]+[^[:blank:]]+[[:blank:]]+[^[:blank:]]+[[:blank:]]+[^[:blank:]]+[[:blank:]]+([^[:blank:]]+).+$$$$/\1/' | xargs printf '%.8x' > $(KDIR)/bzSize 
     48        echo -ne "\0\0" >> $(KDIR)/bzImage 
     49        dd if=$(KDIR)/bzImage of=$(KDIR)/bzImage.tmp bs=4 conv=sync 
     50        dd if=$(KDIR)/bzImage.tmp of=$(KDIR)/bzImage bs=1 count=$$$$(perl -we 'print((-s"$(KDIR)/bzImage.tmp")-2)') 
     51        perl -we 'while(<>){$$$$i.=$$$$_}print pack"v",-(unpack"%v*",$$$$i)' < $(KDIR)/bzImage.tmp >> $(KDIR)/bzImage 
     52        $(RM) $(KDIR)/bzImage.tmp 
    4853        $(call Image/Prepare/wl153/$(1)) 
    49         ls -l $(KDIR)/root.$(1) | sed -r 's/^[^[:blank:]]+[[:blank:]]+[^[:blank:]]+[[:blank:]]+[^[:blank:]]+[[:blank:]]+[^[:blank:]]+[[:blank:]]+([^[:blank:]]+).+$$$$/\1/' | xargs printf '%.8x' > $(KDIR)/rdSize 
    50         echo -ne "\x$$$$(cut -c 7,8 < $(KDIR)/bzSize)\x$$$$(cut -c 5,6 < $(KDIR)/bzSize)\x$$$$(cut -c 3,4 < $(KDIR)/bzSize)\x$$$$(cut -c 1,2 < $(KDIR)/bzSize)" > $(KDIR)/bzSize.tmp 
    51         echo -n 'CSYS' > $(BIN_DIR)/openwrt-$(BOARD)-$(1)-$(2).img 
    52         cat $(KDIR)/bzSize.tmp >> $(BIN_DIR)/openwrt-$(BOARD)-$(1)-$(2).img 
    53         echo -ne "\x$$$$(cut -c 7,8 < $(KDIR)/rdSize)\x$$$$(cut -c 5,6 < $(KDIR)/rdSize)\x$$$$(cut -c 3,4 < $(KDIR)/rdSize)\x$$$$(cut -c 1,2 < $(KDIR)/rdSize)WRRM" >> $(BIN_DIR)/openwrt-$(BOARD)-$(1)-$(2).img 
    54         cat $(KDIR)/bzSize.tmp $(KDIR)/bzImage $(KDIR)/root.$(1) >> $(BIN_DIR)/openwrt-$(BOARD)-$(1)-$(2).img 
    55         $(RM) $(KDIR)/bzSize.tmp $(KDIR)/bzSize $(KDIR)/rdSize 
    56         if [ `ls -l $(BIN_DIR)/openwrt-$(BOARD)-$(1)-$(2).img | sed -r 's/^[^[:blank:]]+[[:blank:]]+[^[:blank:]]+[[:blank:]]+[^[:blank:]]+[[:blank:]]+[^[:blank:]]+[[:blank:]]+([^[:blank:]]+).+$$$$/\1/'` -gt $$$$((0xffff0000-0xffe08000)) ]; then mv $(BIN_DIR)/openwrt-$(BOARD)-$(1)-$(2).img $(BIN_DIR)/openwrt-$(BOARD)-$(1)-$(2).img.too_big; echo "#ERR image too big"; fi  
     54        perl -we 'print "CSYS",pack("V",-s"$(KDIR)/bzImage"),pack("V",-s"$(KDIR)/root.$(1)"),"WRRM",pack("V",-s"$(KDIR)/bzImage")' > $(BIN_DIR)/openwrt-$(BOARD)-$(1)-$(2).img 
     55        cat $(KDIR)/bzImage $(KDIR)/root.$(1) >> $(BIN_DIR)/openwrt-$(BOARD)-$(1)-$(2).img 
     56        if [ `perl -we 'print -s"$(BIN_DIR)/openwrt-$(BOARD)-$(1)-$(2).img"'` -gt $$$$((0xffff0000-0xffe08000)) ]; then mv $(BIN_DIR)/openwrt-$(BOARD)-$(1)-$(2).img $(BIN_DIR)/openwrt-$(BOARD)-$(1)-$(2).img.too_big; echo "#ERR image too big"; fi  
    5757endef 
    5858 
     
    7676endef 
    7777 
     78define Image/Prepare/amit/squashfs 
     79        echo -n "0123456789abcdef" > $(KDIR)/root.tmp 
     80        cat $(KDIR)/root.squashfs >> $(KDIR)/root.tmp 
     81        dd if=$(KDIR)/root.tmp of=$(KDIR)/root2.tmp bs=64k conv=sync 
     82        dd if=$(KDIR)/root2.tmp of=$(KDIR)/root.squashfs bs=1 skip=16 
     83        $(RM) $(KDIR)/root.tmp $(KDIR)/root2.tmp 
     84        $(call add_jffs2_mark,$(KDIR)/root.squashfs) 
     85endef 
     86 
    7887define Image/Build/amit 
    79         $(call Image/Prepare/$(1)) 
     88        $(call Image/Prepare/amit/$(1)) 
    8089        if [ ! -x $(STAGING_DIR_HOST)/bin/amit_makebin ]; then echo "#ERR Please copy the AMIT \"makebin\" tool from http://mgb111.pradnik.net/ as $(STAGING_DIR_HOST)/bin/amit_makebin to build."; fi 
    8190        sh -c "mkdir -p $(KDIR)/amit.tmp/linux_src/arch/i386/boot $(KDIR)/amit.tmp/rom_disk && cd $(KDIR)/amit.tmp && ln -s ../../root.$(1) rom_disk/fs.img && ln -s ../../../../../bzImage linux_src/arch/i386/boot && $(STAGING_DIR_HOST)/bin/amit_makebin && mv upgrade.img $(BIN_DIR)/openwrt-$(BOARD)-$(1)-anas350.bin" || : 
Note: See TracChangeset for help on using the changeset viewer.