forked from openwrt/openwrt
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
- Loading branch information
Showing
12 changed files
with
236 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT | ||
/dts-v1/; | ||
|
||
#include "ar9344_adtran_bsap192x.dtsi" | ||
|
||
/ { | ||
model = "Adtran Bluesocket BSAP-1920"; | ||
compatible = "adtran,bsap1920", "qca,ar9344"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT | ||
/dts-v1/; | ||
|
||
#include "ar9344_adtran_bsap192x.dtsi" | ||
|
||
/ { | ||
model = "Adtran Bluesocket BSAP-1925"; | ||
compatible = "adtran,bsap1925", "qca,ar9344"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT | ||
/dts-v1/; | ||
|
||
#include "ar9344_senao_cap4200ag.dtsi" | ||
|
||
/ { | ||
chosen { | ||
/delete-property/ bootargs; | ||
bootargs-append = "root="; | ||
}; | ||
}; | ||
|
||
&aliases { | ||
label-mac-device = ð0; | ||
}; | ||
|
||
&partitions { | ||
uboot: partition@0 { | ||
label = "u-boot"; | ||
reg = <0x0000000 0x0040000>; | ||
read-only; | ||
}; | ||
|
||
partition@40000 { | ||
label = "u-boot-env"; | ||
reg = <0x0040000 0x0010000>; | ||
}; | ||
|
||
partition@50000 { | ||
label = "Cert"; | ||
reg = <0x0050000 0x0040000>; | ||
}; | ||
|
||
partition@90000 { | ||
label = "Kdump"; | ||
reg = <0x0090000 0x0170000>; | ||
}; | ||
|
||
partition@200000 { | ||
label = "/var"; | ||
reg = <0x0200000 0x0100000>; | ||
}; | ||
|
||
partition@300000 { | ||
compatible = "denx,uimage"; | ||
active-if-supplied-root = "31:06"; | ||
label = "firmware1"; | ||
reg = <0x0300000 0x0d00000>; | ||
}; | ||
|
||
partition@1000000 { | ||
compatible = "denx,uimage"; | ||
active-if-supplied-root = "31:08"; | ||
label = "firmware2"; | ||
reg = <0x1000000 0x0d00000>; | ||
}; | ||
|
||
partition@1d00000 { | ||
label = "/home"; | ||
reg = <0x1d00000 0x0100000>; | ||
}; | ||
|
||
partition@1e00000 { | ||
label = "/log"; | ||
reg = <0x1e00000 0x0180000>; | ||
}; | ||
|
||
senao: partition@1fe0000 { | ||
label = "SENAO"; | ||
reg = <0x1fe0000 0x0010000>; | ||
read-only; | ||
}; | ||
|
||
art: partition@1ff0000 { | ||
label = "art"; | ||
reg = <0x1ff0000 0x0010000>; | ||
read-only; | ||
}; | ||
}; | ||
|
||
&ath9k { | ||
mtd-mac-address = <&senao 0x18>; | ||
mtd-mac-address-increment = <1>; | ||
}; | ||
|
||
&wmac { | ||
mtd-mac-address = <&senao 0x18>; | ||
mtd-mac-address-increment = <9>; | ||
}; | ||
|
||
ð0 { | ||
mtd-mac-address = <&senao 0x18>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
target/linux/ath79/patches-4.19/997-device_tree_cmdline.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
--- a/drivers/of/fdt.c | ||
+++ b/drivers/of/fdt.c | ||
@@ -1090,6 +1090,11 @@ int __init early_init_dt_scan_chosen(uns | ||
p = of_get_flat_dt_prop(node, "bootargs", &l); | ||
if (p != NULL && l > 0) | ||
strlcpy(data, p, min((int)l, COMMAND_LINE_SIZE)); | ||
+ p = of_get_flat_dt_prop(node, "bootargs-append", &l); | ||
+ if (p != NULL && l > 0) { | ||
+ strlcat(data, " ", COMMAND_LINE_SIZE); | ||
+ strlcat(data, p, min(l + strlen(data), COMMAND_LINE_SIZE)); | ||
+ } | ||
|
||
/* | ||
* CONFIG_CMDLINE is meant to be a default in case nothing else | ||
--- a/arch/mips/kernel/setup.c | ||
+++ b/arch/mips/kernel/setup.c | ||
@@ -853,7 +853,10 @@ static void __init arch_mem_init(char ** | ||
* CONFIG_CMDLINE ourselves below & don't want to duplicate its | ||
* content because repeating arguments can be problematic. | ||
*/ | ||
- strlcpy(boot_command_line, " ", COMMAND_LINE_SIZE); | ||
+ if (USE_DTB_CMDLINE) | ||
+ strlcpy(boot_command_line, arcs_cmdline, COMMAND_LINE_SIZE); | ||
+ else | ||
+ strlcpy(boot_command_line, " ", COMMAND_LINE_SIZE); | ||
|
||
/* call board setup routine */ | ||
plat_mem_setup(); | ||
@@ -877,9 +880,10 @@ static void __init arch_mem_init(char ** | ||
#if defined(CONFIG_CMDLINE_BOOL) && defined(CONFIG_CMDLINE_OVERRIDE) | ||
strlcpy(boot_command_line, builtin_cmdline, COMMAND_LINE_SIZE); | ||
#else | ||
- if ((USE_PROM_CMDLINE && arcs_cmdline[0]) || | ||
- (USE_DTB_CMDLINE && !boot_command_line[0])) | ||
+ if (USE_PROM_CMDLINE) | ||
strlcpy(boot_command_line, arcs_cmdline, COMMAND_LINE_SIZE); | ||
+ else if (!strcmp(boot_command_line, " ")) | ||
+ boot_command_line[0] = '\0'; | ||
|
||
if (EXTEND_WITH_PROM && arcs_cmdline[0]) { | ||
if (boot_command_line[0]) | ||
@@ -888,7 +892,7 @@ static void __init arch_mem_init(char ** | ||
} | ||
|
||
#if defined(CONFIG_CMDLINE_BOOL) | ||
- if (builtin_cmdline[0]) { | ||
+ if (builtin_cmdline[0] && strcmp(boot_command_line, builtin_cmdline)) { | ||
if (boot_command_line[0]) | ||
strlcat(boot_command_line, " ", COMMAND_LINE_SIZE); | ||
strlcat(boot_command_line, builtin_cmdline, COMMAND_LINE_SIZE); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters