找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 28944|回复: 78

好消息,新的OpenWrt trunk已经包含db120-wg和rg100a-aa

[复制链接]
本帖最后由 tapwave 于 2010-3-2 16:04 编辑

可以不用修改Makefile了。

看了一下change list。。r19894以后的都支持了。
[19894]: [brcm63xx] build images for RG100A (bcm6358-based boards) (#6755)
    [brcm63xx] build images for RG100A (bcm6358-based boards) (#6755)
    By florian — 02/28/10 12:09:39
  1. #
  2. # Copyright (C) 2006 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. include $(INCLUDE_DIR)/image.mk

  9. LOADADDR = 0x80010000                # RAM start + 16M
  10. KERNEL_ENTRY = $(LOADADDR)        # Newer kernels add a jmp to the kernel_entry at the start of the binary
  11. RAMSIZE = 0x01000000                # 64MB

  12. LOADER_MAKEOPTS= \
  13.                 KDIR=$(KDIR) \
  14.                 LOADADDR=$(LOADADDR) \
  15.                 KERNEL_ENTRY=$(KERNEL_ENTRY) \
  16.                 RAMSIZE=$(RAMSIZE)

  17. define trxalign/jffs2-128k
  18. -a 0x20000
  19. endef
  20. define trxalign/jffs2-64k
  21. -a 0x10000
  22. endef
  23. define trxalign/squashfs
  24. -a 1024
  25. endef

  26. define Image/Build/CFE
  27.         # Generate the tagged image
  28.         $(STAGING_DIR_HOST)/bin/imagetag -i $(KDIR)/vmlinux.lzma.cfe -f $(KDIR)/root.$(1) \
  29.                 -o $(BIN_DIR)/openwrt-$(2)-$(1)-$(6)-cfe.bin \
  30.                 -b $(2) -c $(3) -e $(LOADADDR) -l $(LOADADDR) \
  31.                 -t $(4) -d "$(5)" $(7)
  32. #                -b $(2) -c $(3) -e $(KERNEL_ENTRY) -l $(LOADADDR)

  33. endef

  34. define Image/Build/CFEAGPF
  35.         # Generate the tagged image
  36.         $(STAGING_DIR_HOST)/bin/imagetag -i $(KDIR)/vmlinux.lzma.cfe -f $(KDIR)/root.$(1) \
  37.                 -o $(BIN_DIR)/openwrt-$(2)-$(1)-$(7)-cfe.bin \
  38.                 -b $(2) -c $(3) -e $(LOADADDR) -l $(LOADADDR) \
  39.                 -v 8 -m IMAGE -k 0x20000 -n $(4) -t $(5)
  40. endef

  41. define Image/Build/RG100A
  42.         # Generate the tagged image
  43.         $(STAGING_DIR_HOST)/bin/imagetag -i $(KDIR)/vmlinux.lzma.cfe -f $(KDIR)/root.$(1) \
  44.                 -o $(BIN_DIR)/openwrt-$(6)-$(1)-$(7)-cfe.bin \
  45.                 -b $(2) -c $(3) -e $(LOADADDR) -l $(LOADADDR) \
  46.                 -k 0x20000 -n $(4) -t $(5)
  47. endef


  48. define Image/Build/RedBoot
  49.         cp $(KDIR)/vmlinux.elf $(BIN_DIR)/openwrt-$(1)-vmlinux.elf
  50.         gzip -9 -c $(KDIR)/vmlinux > $(KDIR)/vmlinux.bin.gz
  51.         $(STAGING_DIR_HOST)/bin/lzma e $(KDIR)/vmlinux $(KDIR)/vmlinux.bin.l7
  52.         dd if=$(KDIR)/vmlinux.bin.l7 of=$(BIN_DIR)/openwrt-$(1)-vmlinux.lzma bs=65536 conv=sync
  53.         dd if=$(KDIR)/vmlinux.bin.gz of=$(BIN_DIR)/openwrt-$(1)-vmlinux.gz bs=65536 conv=sync
  54. endef

  55. define Image/Build/CFEOLD
  56.         $(TOPDIR)/scripts/brcmImage.pl -t -p        \
  57.                 -b $(2) -c $(3)                        \
  58.                 -k $(KDIR)/vmlinux.lzma.cfe        \
  59.                 -r $(KDIR)/root.$(1)                \
  60.                 -o $(BIN_DIR)/openwrt-$(2)-$(1)-cfe.bin
  61. endef

  62. define Build/Clean
  63.         $(MAKE) -C lzma-loader clean
  64. endef

  65. define Image/Prepare
  66.         # Standard LZMA kernel
  67.         cat $(KDIR)/vmlinux | $(STAGING_DIR_HOST)/bin/lzma e -si -so -eos -lc1 -lp2 -pb2 > $(KDIR)/vmlinux.lzma

  68.         # CFE is a LZMA nazi! It took me hours to find out the parameters!
  69.         # Also I think lzma has a bug cause it generates different output depending on
  70.         # if you use stdin / stdout or not. Use files instead of stdio here, cause
  71.         # otherwise CFE will complain and not boot the image.
  72.         $(STAGING_DIR_HOST)/bin/lzma e -d22 -fb64 -a1 $(KDIR)/vmlinux $(KDIR)/vmlinux.lzma.tmp

  73.         # Strip out the length, CFE doesn't like this
  74.         dd if=$(KDIR)/vmlinux.lzma.tmp of=$(KDIR)/vmlinux.lzma.cfe bs=5 count=1
  75.         dd if=$(KDIR)/vmlinux.lzma.tmp of=$(KDIR)/vmlinux.lzma.cfe ibs=13 obs=5 skip=1 seek=1 conv=notrunc
  76.         rm -f $(KDIR)/vmlinux.lzma.tmp

  77.         # Build the LZMA loader
  78.         rm -f $(KDIR)/loader.gz
  79.         $(MAKE) -C lzma-loader \
  80.                 BUILD_DIR="$(KDIR)" \
  81.                 TARGET="$(KDIR)" \
  82.                 clean install

  83.         echo -ne "\\x00" >> $(KDIR)/loader.gz
  84.         rm -f $(KDIR)/fs_mark
  85.         touch $(KDIR)/fs_mark
  86.         $(call prepare_generic_squashfs,$(KDIR)/fs_mark)
  87. endef

  88. define Image/Build
  89.         dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/openwrt-$(BOARD)-root.$(1) bs=128k conv=sync
  90.         # Various routers
  91.         $(call Image/Build/CFE,$(1),96345GW2,6345,bccfe,,bccfe,)
  92.         $(call Image/Build/CFE,$(1),96345GW2,6345,bc221,,bc221,-y 5)
  93.         $(call Image/Build/CFE,$(1),96345GW2,6345,bc300,,bc300,)
  94.         $(call Image/Build/CFE,$(1),96345GW2,6345,bc310,OpenWRT-$(REVISION),bc310,)
  95.         $(call Image/Build/CFE,$(1),96348GW,6348,bccfe,,bccfe,)
  96.         $(call Image/Build/CFE,$(1),96348GW,6348,bc221,,bc221,-y 5)
  97.         # BT Voyager V210_BTR
  98.         $(call Image/Build/CFE,$(1),V210_BB,6348,bc221,,btvgr,-y 5)
  99.         # BT Voyager V210_ROI, V210_WB
  100.         $(call Image/Build/CFE,$(1),V210,6348,bc221,,btvgr,-y 5)
  101.         # BT Voyager V2091_BTR
  102.         $(call Image/Build/CFE,$(1),V2091_BB,6348,bc221,,btvgr,-y 5)
  103.         # BT Voyager V2091_ROI, V2091_WB
  104.         $(call Image/Build/CFE,$(1),V2091,6348,bc221,,btvgr,-y 5)
  105.         # BT Voyager V220V, V220V_MGCP_BTR
  106.         $(call Image/Build/CFE,$(1),RTA1052V,6348,bc221,,btvgr,-y 5)
  107.         # BT Voyager V2110, V2110_AA, V2110_ROI
  108.         $(call Image/Build/CFE,$(1),V2110,6348,bc221,,btvgr,-y 5)
  109.         # BT Voyager V2500V, V2500V_SIP_CLUB, V2500V_AA
  110.         $(call Image/Build/CFE,$(1),V2500V_BB,6348,bc221,,btvgr,-y 5)
  111.         # RTA1025W_16 (numerous routers)
  112.         $(call Image/Build/CFE,$(1),RTA1025W_16,6348,bc221,,btrta,-y 5)
  113.         # Tecom GW6000
  114.         $(call Image/Build/CFE,$(1),96348GW,6348,bc300,,bc300,)
  115.         # Tecom GW6200
  116.         $(call Image/Build/CFE,$(1),96348GW,6348,bc310,$(shell printf '\x99'),gw6200)
  117.         # Neufbox4
  118.         $(call Image/Build/CFE,$(1),96358VW,6358,bccfe,,bccfe)
  119.         $(call Image/Build/CFE,$(1),96358VW,6358,bc310,OpenWRT-$(REVISION),nb4)
  120.         # Comtrend 536, 5621
  121.         $(call Image/Build/CFE,$(1),96348GW-11,6348,bccfe,,bccfe)
  122.         $(call Image/Build/CFE,$(1),96348GW-11,6348,bc300,,bc300)
  123.         # TP-Link 8900GB
  124.         $(call Image/Build/CFE,$(1),96348GW-11,6348,bc310,$(shell printf 'PRID\x89\x10\x00\x02'),td8900GB)
  125.         # Davolink DV201AMR
  126.         $(call Image/Build/CFEOLD,$(1),DV201AMR,6348)
  127.         # USR 9108
  128.         $(call Image/Build/CFE,$(1),96348GW-A,6348,bccfe,,bccfe)
  129.         $(call Image/Build/CFE,$(1),96348GW-A,6348,bc300,,bc300)
  130.         # NetGear DG834GT, DG834PN
  131.         $(call Image/Build/CFE,$(1),96348GW-10,6348,bccfe,,bccfe)
  132.         $(call Image/Build/CFE,$(1),96348GW-10,6348,bc300,,bc300)
  133.         # Belkin f5d7633
  134.         $(call Image/Build/CFE,$(1),96348GW-10,6348,bc310,,bc310)
  135.         # D-Link DSL-2640B
  136.         $(call Image/Build/CFE,$(1),D-4P-W,6348,bc310,,bc310)

  137.         # TP-Link TD-8810A, TD-8810B, TD-8811A, TD-8811B
  138.         $(call Image/Build/CFE,$(1),8L-2M-8M,6338,bccfe,,bccfe)
  139.         $(call Image/Build/CFE,$(1),8L-2M-8M,6338,bc300,,bc300)

  140.         # Generic 6338 images
  141.         $(call Image/Build/CFE,$(1),6338GW,6338,bccfe,,bccfe)
  142.         $(call Image/Build/CFE,$(1),6338GW,6338,bc221,,bc221)
  143.         $(call Image/Build/CFE,$(1),6338GW,6338,bc300,,bc300)
  144.         $(call Image/Build/CFE,$(1),6338GW,6338,bc310,,bc310)
  145.         $(call Image/Build/CFE,$(1),6338W,6338,bccfe,,bccfe)
  146.         $(call Image/Build/CFE,$(1),6338W,6338,bc221,,bc221)
  147.         $(call Image/Build/CFE,$(1),6338W,6338,bc300,,bc300)
  148.         $(call Image/Build/CFE,$(1),6338W,6338,bc310,,bc310)

  149.         # Sagem F@ST2404
  150.         $(call Image/Build/CFE,$(1),F@ST2404,6348,bccfe,,bccfe)
  151.         $(call Image/Build/CFE,$(1),F@ST2404,6348,bc300,,bc300)
  152.         $(call Image/Build/CFE,$(1),F@ST2404,6348,bc310,OpenWRT-$(REVISION),bc310)
  153.         # Inventel Livebox
  154.         $(call Image/Build/RedBoot,livebox)
  155.         # D-Link DSL-2740B
  156.         $(call Image/Build/CFE,$(1),96358GW,6358,bc310,,dsl2740b)
  157.         # Pirelli Alice Gate VoIP 2 Plus Wi-Fi AGPF-S0
  158.         $(call Image/Build/CFEAGPF,$(1),AGPF-S0,6358,0x20000,bccfe,,bccfe)
  159.         $(call Image/Build/CFEAGPF,$(1),AGPF-S0,6358,0x20000,ag306,,agv2+w)
  160.         # Pirelli A226G
  161.         $(call Image/Build/CFEAGPF,$(1),DWV-S0,6358,0x10000,bccfe,,bccfe)
  162.         $(call Image/Build/CFEAGPF,$(1),DWV-S0,6358,0x10000,ag306,DWV_96358,a226g)
  163.        
  164.         # RG100A,DB120 etc.
  165.         $(call Image/Build/RG100A,$(1),96358VW2,6358,0x20000,bc310,rg100a,bc310)

  166. endef

  167. $(eval $(call BuildImage))
复制代码
 楼主| | 显示全部楼层
还支持
#         # D-Link DSL-2640B
#         $(call Image/Build/CFE,$(1),D-4P-W,6348,bc310,,bc310)
#         # D-Link DSL-2740B
#         $(call Image/Build/CFE,$(1),96358GW,6358,bc310,,dsl2740b)
回复

使用道具 举报

哪里下载啊?
回复

使用道具 举报

能否搞一个固件给大家试试看啊
回复

使用道具 举报

好消息
回复

使用道具 举报

 楼主| | 显示全部楼层
http://www.megaupload.com/?d=UZ80ZR37

文件名: r19932_openwrt-rg100a-squashfs-b..bin
文件说明: r19932_openwrt-rg100a-squashfs-bc310-cfe
文件大小: 5.38 MB

可以试试
回复

使用道具 举报

本帖最后由 木鸟 于 2010-3-2 14:53 编辑

问一下,需要什么版本的cfe
之前的rg100a 1.1的cfe
刷新提示 Illegal image ! Image crc failed.

之前刷了rg100a-openwrt.org.cn-ushare-transmission-0228
可能是这个造成的,cfe界面下的web刷新页面也无法打开了
回复

使用道具 举报

http://www.megaupload.com/?d=UZ80ZR37

文件名: r19932_openwrt-rg100a-squashfs-b..bin
文件说明: r19932_openwrt-rg100a-squashfs-bc310-cfe
文件大小: 5.38 MB

可以试试
tapwave 发表于 2010-3-2 12:20

老大,能不能换个网盘.这个网盘我这用光纤或ADSL没能下载的.
回复

使用道具 举报

电信 fttb+lan打开页面的时间好长,但是下载速度还是超过了200k
回复

使用道具 举报

 楼主| | 显示全部楼层
纳米盘
http://d.namipan.com/d/bcfe5171d ... 44355ce343304005600

Illegal image ! Image crc failed.
是不是因为文件坏了?最好做个MD5的checksum
cfe就用公版的10.3 或者6.5
回复

使用道具 举报

应该是我的cfe的问题,换一个试试。回头反馈。
回复

使用道具 举报

本帖最后由 木鸟 于 2010-3-2 15:46 编辑

用brfwmod -decomp -i r19932_openwrt-rg100a-squashfs-bc310-cfe.bin
提示我ERROR!...Image TAG Checksum not match,CRC32=0xDC000000

我下载的
md5:7408e5e9510fe4f6bb36560589e8c05d
sha1:8c1100d282a52ef655c6b2dae3778f95efd2443c

重新写入rg100a 1.1

web刷新提示
web info: Upload 5636100 bytes, invalid image format.
回复

使用道具 举报

 楼主| | 显示全部楼层
8c1100d282a52ef655c6b2dae3778f95efd2443c
*r19932_openwrt-rg100a-squashfs-bc310-cfe.bin

文件没问题
可能是cfe的问题了
回复

使用道具 举报

用brfwmod重新组合了一个带10.3的固件
然后用f 192.168.1.100:newfile.bin
写入带有cfe的固件

重启后用tftp和cfe下的web都提示固件不正确。
就剩下用jtag清空flash重写cfe没测试了
回复

使用道具 举报

 楼主| | 显示全部楼层
要么你在等等,看看别人的刷新结果。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-5-10 13:47

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表