Skip to content
This repository has been archived by the owner on Oct 13, 2022. It is now read-only.

Commit

Permalink
Extend maximum U-Boot image size up to 123 KB (1 KB is reserved for a…
Browse files Browse the repository at this point in the history
…dditional data in second sector, in rest 4 KB we will store writable environment) for TP-Link, GS-Oolite and GL.iNet devices, that will allow to include more commands, including environment support.
  • Loading branch information
pepe2k committed Apr 27, 2015
1 parent d492125 commit 7829f50
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export CONFIG_BOOTDELAY=1
#export CONFIG_SKIP_LOWLEVEL_INIT=1

tplink_mr3020: export UBOOT_FILE_NAME=uboot_for_tp-link_tl-mr3020
tplink_mr3020: export CONFIG_MAX_UBOOT_SIZE_KB=64
tplink_mr3020: export CONFIG_MAX_UBOOT_SIZE_KB=123
ifndef CONFIG_SKIP_LOWLEVEL_INIT
tplink_mr3020: export COMPRESSED_UBOOT=1
endif
Expand All @@ -23,7 +23,7 @@ tplink_mr3020:
@make --no-print-directory show_size

tplink_wr703n: export UBOOT_FILE_NAME=uboot_for_tp-link_tl-wr703n
tplink_wr703n: export CONFIG_MAX_UBOOT_SIZE_KB=64
tplink_wr703n: export CONFIG_MAX_UBOOT_SIZE_KB=123
ifndef CONFIG_SKIP_LOWLEVEL_INIT
tplink_wr703n: export COMPRESSED_UBOOT=1
endif
Expand All @@ -33,7 +33,7 @@ tplink_wr703n:
@make --no-print-directory show_size

tplink_wr720n_v3_CH: export UBOOT_FILE_NAME=uboot_for_tp-link_tl-wr720n_v3_CH
tplink_wr720n_v3_CH: export CONFIG_MAX_UBOOT_SIZE_KB=64
tplink_wr720n_v3_CH: export CONFIG_MAX_UBOOT_SIZE_KB=123
ifndef CONFIG_SKIP_LOWLEVEL_INIT
tplink_wr720n_v3_CH: export COMPRESSED_UBOOT=1
endif
Expand All @@ -43,7 +43,7 @@ tplink_wr720n_v3_CH:
@make --no-print-directory show_size

tplink_wr710n: export UBOOT_FILE_NAME=uboot_for_tp-link_tl-wr710n
tplink_wr710n: export CONFIG_MAX_UBOOT_SIZE_KB=64
tplink_wr710n: export CONFIG_MAX_UBOOT_SIZE_KB=123
ifndef CONFIG_SKIP_LOWLEVEL_INIT
tplink_wr710n: export COMPRESSED_UBOOT=1
endif
Expand All @@ -53,7 +53,7 @@ tplink_wr710n:
@make --no-print-directory show_size

tplink_mr3040: export UBOOT_FILE_NAME=uboot_for_tp-link_tl-mr3040
tplink_mr3040: export CONFIG_MAX_UBOOT_SIZE_KB=64
tplink_mr3040: export CONFIG_MAX_UBOOT_SIZE_KB=123
ifndef CONFIG_SKIP_LOWLEVEL_INIT
tplink_mr3040: export COMPRESSED_UBOOT=1
endif
Expand All @@ -63,7 +63,7 @@ tplink_mr3040:
@make --no-print-directory show_size

tplink_mr10u: export UBOOT_FILE_NAME=uboot_for_tp-link_tl-mr10u
tplink_mr10u: export CONFIG_MAX_UBOOT_SIZE_KB=64
tplink_mr10u: export CONFIG_MAX_UBOOT_SIZE_KB=123
ifndef CONFIG_SKIP_LOWLEVEL_INIT
tplink_mr10u: export COMPRESSED_UBOOT=1
endif
Expand All @@ -73,7 +73,7 @@ tplink_mr10u:
@make --no-print-directory show_size

tplink_mr13u: export UBOOT_FILE_NAME=uboot_for_tp-link_tl-mr13u
tplink_mr13u: export CONFIG_MAX_UBOOT_SIZE_KB=64
tplink_mr13u: export CONFIG_MAX_UBOOT_SIZE_KB=123
ifndef CONFIG_SKIP_LOWLEVEL_INIT
tplink_mr13u: export COMPRESSED_UBOOT=1
endif
Expand All @@ -83,7 +83,7 @@ tplink_mr13u:
@make --no-print-directory show_size

tplink_wr740n_v4: export UBOOT_FILE_NAME=uboot_for_tp-link_tl-wr740n_v4
tplink_wr740n_v4: export CONFIG_MAX_UBOOT_SIZE_KB=64
tplink_wr740n_v4: export CONFIG_MAX_UBOOT_SIZE_KB=123
ifndef CONFIG_SKIP_LOWLEVEL_INIT
tplink_wr740n_v4: export COMPRESSED_UBOOT=1
endif
Expand All @@ -93,7 +93,7 @@ tplink_wr740n_v4:
@make --no-print-directory show_size

tplink_mr3220_v2: export UBOOT_FILE_NAME=uboot_for_tp-link_tl-mr3220_v2
tplink_mr3220_v2: export CONFIG_MAX_UBOOT_SIZE_KB=64
tplink_mr3220_v2: export CONFIG_MAX_UBOOT_SIZE_KB=123
ifndef CONFIG_SKIP_LOWLEVEL_INIT
tplink_mr3220_v2: export COMPRESSED_UBOOT=1
endif
Expand All @@ -103,7 +103,7 @@ tplink_mr3220_v2:
@make --no-print-directory show_size

tplink_wdr3600_43x0: export UBOOT_FILE_NAME=uboot_for_tp-link_tl-wdr3600-43x0
tplink_wdr3600_43x0: export CONFIG_MAX_UBOOT_SIZE_KB=64
tplink_wdr3600_43x0: export CONFIG_MAX_UBOOT_SIZE_KB=123
ifndef CONFIG_SKIP_LOWLEVEL_INIT
tplink_wdr3600_43x0: export COMPRESSED_UBOOT=1
endif
Expand All @@ -114,7 +114,7 @@ tplink_wdr3600_43x0:
@make --no-print-directory show_size

tplink_wdr3500: export UBOOT_FILE_NAME=uboot_for_tp-link_tl-wdr3500
tplink_wdr3500: export CONFIG_MAX_UBOOT_SIZE_KB=64
tplink_wdr3500: export CONFIG_MAX_UBOOT_SIZE_KB=123
ifndef CONFIG_SKIP_LOWLEVEL_INIT
tplink_wdr3500: export COMPRESSED_UBOOT=1
endif
Expand All @@ -125,7 +125,7 @@ tplink_wdr3500:
@make --no-print-directory show_size

tplink_mr3420_v2: export UBOOT_FILE_NAME=uboot_for_tp-link_tl-mr3420_v2
tplink_mr3420_v2: export CONFIG_MAX_UBOOT_SIZE_KB=64
tplink_mr3420_v2: export CONFIG_MAX_UBOOT_SIZE_KB=123
ifndef CONFIG_SKIP_LOWLEVEL_INIT
tplink_mr3420_v2: export COMPRESSED_UBOOT=1
endif
Expand All @@ -136,7 +136,7 @@ tplink_mr3420_v2:
@make --no-print-directory show_size

tplink_wr841n_v8: export UBOOT_FILE_NAME=uboot_for_tp-link_tl-wr841n_v8
tplink_wr841n_v8: export CONFIG_MAX_UBOOT_SIZE_KB=64
tplink_wr841n_v8: export CONFIG_MAX_UBOOT_SIZE_KB=123
ifndef CONFIG_SKIP_LOWLEVEL_INIT
tplink_wr841n_v8: export COMPRESSED_UBOOT=1
endif
Expand All @@ -147,7 +147,7 @@ tplink_wr841n_v8:
@make --no-print-directory show_size

tplink_wa830re_v2_wa801nd_v2: export UBOOT_FILE_NAME=uboot_for_tp-link_tl-wa830re_v2_tl-wa801nd_v2
tplink_wa830re_v2_wa801nd_v2: export CONFIG_MAX_UBOOT_SIZE_KB=64
tplink_wa830re_v2_wa801nd_v2: export CONFIG_MAX_UBOOT_SIZE_KB=123
ifndef CONFIG_SKIP_LOWLEVEL_INIT
tplink_wa830re_v2_wa801nd_v2: export COMPRESSED_UBOOT=1
endif
Expand All @@ -168,7 +168,7 @@ dlink_dir505:
@make --no-print-directory show_size

gs-oolite_v1_dev: export UBOOT_FILE_NAME=uboot_for_gs-oolite_v1_dev
gs-oolite_v1_dev: export CONFIG_MAX_UBOOT_SIZE_KB=64
gs-oolite_v1_dev: export CONFIG_MAX_UBOOT_SIZE_KB=123
ifndef CONFIG_SKIP_LOWLEVEL_INIT
gs-oolite_v1_dev: export COMPRESSED_UBOOT=1
endif
Expand Down Expand Up @@ -201,7 +201,7 @@ villagetelco_mp2:
@make --no-print-directory show_size

gl-inet: export UBOOT_FILE_NAME=uboot_for_gl-inet
gl-inet: export CONFIG_MAX_UBOOT_SIZE_KB=64
gl-inet: export CONFIG_MAX_UBOOT_SIZE_KB=123
ifndef CONFIG_SKIP_LOWLEVEL_INIT
gl-inet: export COMPRESSED_UBOOT=1
endif
Expand Down

4 comments on commit 7829f50

@dim-geo
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

won't this change create problem for some routers?

In your installation page you say:
"I'm using TP-Link TL-MR3220v2 and it uses the first 64 KiB block to store compressed U-Boot image. In the second 64 KiB block they store additional information like MAC address, model number and WPS pin number."

@pepe2k
Copy link
Owner Author

@pepe2k pepe2k commented on 7829f50 Sep 12, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, take a look at this commit message:
9ac9327

@dim-geo
Copy link

@dim-geo dim-geo commented on 7829f50 Sep 12, 2015 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pepe2k
Copy link
Owner Author

@pepe2k pepe2k commented on 7829f50 Sep 21, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for late reply... you can try dedicated OpenWrt BB images from my last release:
https://github.com/pepe2k/u-boot_mod/releases/tag/2014-11-19

There is dedicated tool for U-Boot overwrite (please read README first).

Please sign in to comment.