找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 5205|回复: 12

[新手求救]怎么可以编译出UBOOT和ART分区可写的固件[已解决]

[复制链接]
本帖最后由 坏坏-83 于 2013-2-14 10:39 编辑

现在已成功编译出703N路由的8M固件,想在编译出来的固件的UBOOT和ART的固件可写。老是焊Flash,烧编程器固件,有点烦。请高手指点帮忙~~!!
我的恩山、我的无线 The best wifi forum is right here.
同求,帮顶,正在学习。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

论坛搜索
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

muziling 发表于 2013-2-13 12:24
论坛搜索

还真搜索不出来,请大哥指点
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

本帖最后由 haxc 于 2013-2-13 15:54 编辑

/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr703n.c

  1.                 .name           = "u-boot",
  2.                 .offset         = 0,
  3.                 .size           = 0x020000,
  4.                 .mask_flags     = MTD_WRITEABLE, 这行删掉
  5.         }, {
  6.                 .name           = "kernel",
  7.                 .offset         = 0x020000,
  8.                 .size           = 0x100000,
  9.         }, {
  10.                 .name           = "rootfs",
  11.                 .offset         = 0x120000,
  12.                 .size           = 0x2d0000,
  13.         }, {
  14.                 .name           = "art",
  15.                 .offset         = 0x3f0000,
  16.                 .size           = 0x010000,
  17.                 .mask_flags     = MTD_WRITEABLE,  这行删掉
复制代码
删掉后make dirclean
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

谢谢楼上高人啊,要是能指点个显示CPU信息就好了,呵呵
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
haxc 发表于 2013-2-13 15:51
/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr703n.c删掉后make dirclean

感谢!!!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

haxc 发表于 2013-2-13 15:51
/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr703n.c删掉后make dirclean

在/target/linux/ar71xx/files/arch/mips下只找到ath79和include两个文件夹,而且ath79中的mach-tl-wr703n.c中没有找到.mask_flags等有关代码。请详细指点下,多谢!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
aaaaaaa7a 发表于 2013-2-14 11:47
在/target/linux/ar71xx/files/arch/mips下只找到ath79和include两个文件夹,而且ath79中的mach-tl-wr703 ...

3、编译出UBOOT和ATR分区可写
修改target/linux/ar71xx/files/drivers/mtd/tplinkpart.c

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

学学习习。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

本来就是可写的吧

用mtd..
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

本帖最后由 hww22 于 2013-5-26 01:23 编辑

MARK

  
    parts[0].name = "u-boot";
    parts[0].offset = 0;
    parts[0].size = offset;
   

    parts[1].name = "kernel";
    parts[1].offset = offset;
    parts[1].size = rootfs_offset - offset;

    parts[2].name = "rootfs";
    parts[2].offset = rootfs_offset;
    parts[2].size = art_offset - rootfs_offset;

    parts[3].name = "art";
    parts[3].offset = art_offset;
    parts[3].size = TPLINK_ART_LEN;
   

    parts[4].name = "firmware";
    parts[4].offset = offset;
    parts[4].size = art_offset - offset;
   
    parts[5].name = "fullflash";
    parts[5].offset = 0;
    parts[5].size = art_offset + TPLINK_ART_LEN;
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

解开源代码看
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-27 18:00

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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