Skip to contentSkip to conversation

aspeed/ast-g5: Simplify default bootargs

PATCH Applied Rick Altherr 5 participants 7 messages Jun 14, 2016 – Jun 24, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 aspeed/ast-g5: Simplify default bootargs

From: Xo Wang <[email protected]>

New arguments set default console for DEBUG_UART on the EVB and allow the kernel to choose init path, root/overlay, and memory size.

Change-Id I919f7e4027968ad000c4283f8bd80cca1b17e2eb
---
 include/configs/ast-g5.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/configs/ast-g5.h +1 -1
index 6c05e6d..149cac8 100644
@@ -139,7 +139,7 @@
 
 #define CONFIG_SYS_LOAD_ADDR		0x83000000	/* default load address */
 
-#define CONFIG_BOOTARGS		"console=ttyS0,115200n8 ramdisk_size=16384 root=/dev/ram rw init=/linuxrc mem=80M"
+#define CONFIG_BOOTARGS		"console=ttyS4,115200 earlyprintk"
 
 /* ------------------------------------------------------------------------- */
 
Signature · 1 line
2.8.0.rc3.226.g39d4020
#1 lore raw
Quoted 6 lines · Rick Altherr

From: Xo Wang <[email protected]>

New arguments set default console for DEBUG_UART on the EVB and allow the kernel to choose init path, root/overlay, and memory size.

Change-Id: I919f7e4027968ad000c4283f8bd80cca1b17e2eb

I normally ask submissions to not include links to internal bugzillas when submitting patches. Do you think that's a reasonable rule for gerrit tags as well?

Quoted 11 lines
---
 include/configs/ast-g5.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/configs/ast-g5.h +0 -0
index 6c05e6d..149cac8 100644

include/configs/ast-g5.h line 142

Quoted 5 lines
include/configs/ast-g5.h +1 -1
@@ -139,7 +139,7 @@
 
 #define CONFIG_SYS_LOAD_ADDR           0x83000000      /* default load address */
 
-#define CONFIG_BOOTARGS                "console=ttyS0,115200n8 ramdisk_size=16384 root=/dev/ram rw init=/linuxrc mem=80M"
+#define CONFIG_BOOTARGS                "console=ttyS4,115200 earlyprintk"

The change looks good.

As you mentioned on IRC, we should create an ast2500-evb configuration in the future.

Cheers,

Joel

#2 lore raw
Quoted 9 lines · Joel Stanley
Quoted 4 lines

New arguments set default console for DEBUG_UART on the EVB and allow the kernel to choose init path, root/overlay, and memory size.

Change-Id: I919f7e4027968ad000c4283f8bd80cca1b17e2eb

I normally ask submissions to not include links to internal bugzillas when submitting patches. Do you think that's a reasonable rule for gerrit tags as well?

I don't have a preference personally, but...

Neither upstream Linux kernel nor u-boot trees seem to require Gerrit Change-Id tags to be removed.

Signature · 1 line
Patrick Williams
#3 lore raw
Quoted 9 lines · Patrick Williams
Quoted 1 line · Joel Stanley
Quoted 1 line

New arguments set default console for DEBUG_UART on the EVB and

allow

Quoted 5 lines
Quoted 3 lines

the kernel to choose init path, root/overlay, and memory size.

Change-Id: I919f7e4027968ad000c4283f8bd80cca1b17e2eb

I normally ask submissions to not include links to internal

bugzillas

Quoted 9 lines
Quoted 3 lines

when submitting patches. Do you think that's a reasonable rule for gerrit tags as well?

I don't have a preference personally, but...

Neither upstream Linux kernel nor u-boot trees seem to require Gerrit Change-Id tags to be removed.

The Linux kernel scripts/checkpatch.pl reports an error if it finds a Change-id tag.  The discussion is usually based on the change log should be self contained, and other infrastructure may go missing over time.  Most maintainers require identified issues to be fixed before patch application.

They added a linux-kernel mailing list archive reference service to their kernel.org servers for adding references to discussions that redirects to third party archives to address this long term viability of URLs and identifiers.

I haven't read the Das U-Boot lists enough to know their policies. Their version does not appear to have the check.  The kernel added their check in April 2014 in 3.15.  Das U-Boot did a sync to v3.14-rc4 and only picked up 2 bug fixes since then of over 140 changes.

milton

#4 lore raw
In reply to Joel Stanley

I had intended to remove the Change-Id tag but the gerrit hooks in a git repo seem to run deep. I believe Xo sent a PR with the same patch. I prefer to drop my patch and follow up on his.

Quoted 41 lines · Joel Stanley
Quoted 6 lines · Rick Altherr

From: Xo Wang <[email protected]>

New arguments set default console for DEBUG_UART on the EVB and allow the kernel to choose init path, root/overlay, and memory size.

Change-Id: I919f7e4027968ad000c4283f8bd80cca1b17e2eb

I normally ask submissions to not include links to internal bugzillas when submitting patches. Do you think that's a reasonable rule for gerrit tags as well?

include/configs/ast-g5.h line 140

Quoted 13 lines
---
 include/configs/ast-g5.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/configs/ast-g5.h +0 -0
index 6c05e6d..149cac8 100644
@@ -139,7 +139,7 @@
 
 #define CONFIG_SYS_LOAD_ADDR           0x83000000      /* default load

address */

include/configs/ast-g5.h line 141

Quoted 2 lines
include/configs/ast-g5.h +0 -1
-#define CONFIG_BOOTARGS                "console=ttyS0,115200n8

ramdisk_size=16384 root=/dev/ram rw init=/linuxrc mem=80M"

include/configs/ast-g5.h line 141

Quoted 1 line
include/configs/ast-g5.h +1 -0
+#define CONFIG_BOOTARGS                "console=ttyS4,115200

earlyprintk"

The change looks good.

As you mentioned on IRC, we should create an ast2500-evb configuration in the future.

Cheers,

Joel

#5 lore raw
Quoted 2 lines

I believe Xo sent a PR with the same patch. I
prefer to drop my patch and follow up on his.

Joel et al had included a bootargs change in their new unified U-Boot branch so I dropped my PR too.

cheers
//xo

Applied
#6 lore raw

Hey Xo and Rick,

Quoted 5 lines · Xo Wang
Quoted 2 lines

I believe Xo sent a PR with the same patch. I
prefer to drop my patch and follow up on his.

Joel et al had included a bootargs change in their new unified U-Boot branch so I dropped my PR too.

I applied your patch and then I think it got squished into a larger commit.

Thanks for sending it in. We should have sane bootargs for all of our systems now.

Cheers,

Joel