Changeset 20790


Ignore:
Timestamp:
2010-04-10T23:02:51+02:00 (6 years ago)
Author:
florian
Message:

[malta] create two endian-specific subtargets, as malta can run both

Location:
trunk/target/linux/malta
Files:
4 added
3 edited
1 copied
1 moved

Legend:

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

    r20444 r20790  
    77include $(TOPDIR)/rules.mk 
    88 
    9 ARCH:=mipsel 
    109BOARD:=malta 
    1110BOARDNAME:=MIPS Malta CoreLV board (qemu) 
    12 FEATURES:=ramdisk 
    1311CFLAGS:=-Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time 
     12SUBTARGETS:=le be 
     13INITRAMFS_EXTRA_FILES:= 
    1414 
    1515LINUX_VERSION:=2.6.32.10 
     
    1919DEFAULT_PACKAGES += wpad-mini kmod-mac80211-hwsim 
    2020 
    21 define Target/Description 
    22         Build firmware images for MTI Malta CoreLV boards. 
    23 endef 
    24  
    2521$(eval $(call BuildTarget)) 
  • trunk/target/linux/malta/README

    r20183 r20790  
    55To use the images built by OpenWrt with qemu, use the following commands: 
    66 
    7 qemu-system-mipsel -kernel bin/malta/openwrt-malta-vmlinux.elf -nographic 
     7For the little-endian image: 
     8qemu-system-mipsel -kernel bin/malta/openwrt-malta-le-vmlinux.elf -nographic 
     9 
     10For the big-endian image: 
     11qemu-system-mips -kernel bin/malta/openwrt-malta-be-vmlinux.elf -nographic 
    812 
    913and enjoy the system bootin. 
  • trunk/target/linux/malta/be/config-default

    r20789 r20790  
    4444CONFIG_CMDLINE="console=ttyS0,115200 init=/etc/preinit" 
    4545CONFIG_CONSOLE_TRANSLATIONS=y 
    46 # CONFIG_CPU_BIG_ENDIAN is not set 
     46CONFIG_CPU_BIG_ENDIAN=y 
    4747# CONFIG_CPU_CAVIUM_OCTEON is not set 
    4848CONFIG_CPU_HAS_PREFETCH=y 
    4949# CONFIG_CPU_HAS_SMARTMIPS is not set 
    5050CONFIG_CPU_HAS_SYNC=y 
    51 CONFIG_CPU_LITTLE_ENDIAN=y 
     51# CONFIG_CPU_LITTLE_ENDIAN is not set 
    5252# CONFIG_CPU_LOONGSON2E is not set 
    5353CONFIG_CPU_MIPS32=y 
  • trunk/target/linux/malta/image/Makefile

    r19893 r20790  
    99 
    1010define Image/BuildKernel 
    11         cp $(KDIR)/vmlinux.elf $(BIN_DIR)/openwrt-$(BOARD)-vmlinux.elf 
     11        cp $(KDIR)/vmlinux.elf $(BIN_DIR)/openwrt-$(BOARD)-$(SUBTARGET)-vmlinux.elf 
    1212endef 
    1313 
     
    1818define Image/Build 
    1919        $(call Image/Build/$(1)) 
    20         dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/openwrt-$(BOARD)-root.$(1) bs=128k conv=sync 
     20        dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/openwrt-$(BOARD)-$(SUBTARGET)-root.$(1) bs=128k conv=sync 
    2121endef 
    2222 
Note: See TracChangeset for help on using the changeset viewer.