Issue with Enabling CONFIG_NETCONSOLE in Boot-loader

Ahmed Mokhtar mokhtaaar1996 at gmail.com
Mon Mar 11 13:34:01 CET 2024


Hello Team,

I hope this email finds you well. I'm currently facing an issue with 
enabling the CONFIG_Netconsole flag under the bootloader. Despite 
CONFIG_NETCONSOLE being already enabled in the build system, I'm 
encountering difficulties in getting it to work.

Here's what I've tried so far:

 1. Enabled CONFIG_NETCONSOLE in the build system.
 2. Set the environment variables as follows:
      * |setenv nc 'setenv stdout nc;setenv stdin nc'|
      * |setenv ncip 192.168.1.1|
 3. Saved the environment using |saveenv|.
 4. Executed |run ncc|.

However, I encountered the following errors:

|## Error inserting "stdout" variable, errno=22 ## Error inserting 
"stdin" variable, errno=22 |

Upon checking the environment variables using |printenv|, I see that the 
|stdout|, |stdin|, and |stderr| variables are set to |serial at ff812000|. 
Here's the relevant part of the environment:

|tderr=serial at ff812000 stdin=serial at ff812000 stdout=serial at ff812000 |

I'm seeking your assistance in resolving this issue. Any guidance or 
solutions would be greatly appreciated.

Thank you for your attention to this matter.

Best regards, Ahmed


-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

=> setenv nc 'setenv stdout nc;setenv stdin nc'
=> setenv ncip 192.168.1.1
=> saveenv
Saving Environment to NVRAM... OK
=> run ncc
## Error inserting "stdout" variable, errno=22
## Error inserting "stdin" variable, errno=22


=> printenv
arch=arm
baudrate=115200
board=v14
board_name=v14

bootcmd=secure_boot
bootcount=1
bootdelay=2
bootlimit=3
cpu=armv8
env_boot_magic=8192

fdtcontroladdr=6fcdffa0
initrd_high=0xffffffffffffffff
loadaddr=0x1000000
ncc=setenv stdout ncc;setenv stdin ncc
nccip=192.168.1.1
nummacaddrs=10
rootfs_opts=root= rdinit=/sbin/init
silent=yes
soc=bcm4912
stderr=serial at ff812000
stdin=serial at ff812000
stdout=serial at ff812000
u-boot-mode=nominal
uboot-prestage-version=U-Boot TPL 2019.07 (Feb 16 2023 - 15:59:27 +0800)
vendor=arcadyan

Environment size: 597/16380 bytes







=> version
U-Boot 2022.07 (Jun 15 2023 - 20:18:39 +0000)

aarch64-buildroot-linux-gnu-gcc.br_real (Buildroot 
bcm9xxx-linux-4.19-gcc-10.3-glibc-2.32_v1.0.0) 10.3.0
GNU ld (GNU Binutils) 2.36.1



More information about the U-Boot mailing list