Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable net console #41

Open
skbeh opened this issue Jan 3, 2024 · 0 comments
Open

Enable net console #41

skbeh opened this issue Jan 3, 2024 · 0 comments

Comments

@skbeh
Copy link

skbeh commented Jan 3, 2024

Enabling net console will simplify debugging, as connecting via TTL is not always easy.

I tried to enable it by adding the following changes and connect to the router with ./tools/netconsole 192.168.1.1, but there is always no reply.

diff --git a/uboot-mtk-20230718-09eda825/board/mediatek/mt7981/mt7981.env b/uboot-mtk-20230718-09eda825/board/mediatek/mt7981/mt7981.env
new file mode 100644
index 00000000..7daf03b8
--- /dev/null
+++ b/uboot-mtk-20230718-09eda825/board/mediatek/mt7981/mt7981.env
@@ -0,0 +1,3 @@
+stdout=nc
+stdin=nc
+ncip=192.168.1.2
diff --git a/uboot-mtk-20230718-09eda825/configs/mt7981_h3c_magic-nx30-pro_defconfig b/uboot-mtk-20230718-09eda825/configs/mt7981_h3c_magic-nx30-pro_defconfig
index 6d033e41..b9017a16 100644
--- a/uboot-mtk-20230718-09eda825/configs/mt7981_h3c_magic-nx30-pro_defconfig
+++ b/uboot-mtk-20230718-09eda825/configs/mt7981_h3c_magic-nx30-pro_defconfig
@@ -98,3 +98,5 @@ CONFIG_MTK_SPIM=y
CONFIG_TIMER=y
CONFIG_MTK_TIMER=y
CONFIG_HEXDUMP=y
+CONFIG_PROT_UDP=y
+CONFIG_NETCONSOLE=y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant