Configure uboot to leave serial console ttyS0 to Linux August 12, 2019 01:27PM |
Registered: 5 years ago Posts: 3 |
#cu -l /dev/ttyS0 -s 115200 cu: open (/dev/ttyS0): Permission denied cu: /dev/ttyS0: Line in use
fw_setenv --script myFile.txtBut I realized that the bootdelay parameter is also used within the netconsole scripts.
Re: Configure uboot to leave serial console ttyS0 to Linux August 12, 2019 02:24PM |
Admin Registered: 14 years ago Posts: 19,306 |
picocom --b 115200 --f n --p n --d 8 /dev/ttyUSB0'
Re: Configure uboot to leave serial console ttyS0 to Linux August 12, 2019 03:18PM |
Registered: 5 years ago Posts: 3 |
Re: Configure uboot to leave serial console ttyS0 to Linux August 12, 2019 04:38PM |
Admin Registered: 14 years ago Posts: 19,306 |
stderr=nc stdin=nc stdout=ncIf you are running my 2017.07-tld-1 u-boot then these are set temporarily by preboot_nc, which calls
preboot_nc=run if_netconsole start_netconsole start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_paramsto
setenv set_bootargs 'setenv bootargs root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params'
Re: Configure uboot to leave serial console ttyS0 to Linux August 13, 2019 03:05PM |
Registered: 5 years ago Posts: 3 |
U-Boot 2017.07-tld-1 (Oct 24 2017 - 22:32:36 -0700)
stderr=nc stdin=nc stdout=nc
U-Boot 2017.07-tld-1 (Oct 24 2017 - 22:32:36 -0700) Seagate FreeAgent DockStar SoC: Kirkwood 88F6281_A0 DRAM: 128 MiB WARNING: Caches not enabled NAND: 256 MiB In: serial Out: serial Err: serial Net: egiga0 88E1116 Initialized on egiga0 ....
Re: Configure uboot to leave serial console ttyS0 to Linux August 13, 2019 05:17PM |
Admin Registered: 14 years ago Posts: 19,306 |
Quote
My test scenario is as follows: I have three terminals open on my Ubuntu box. Terminal #1 shows the serial console output, terminal #2 shows the netconsole output, terminal #3 I use for ssh into the dockstar. After changing u-boot vars via fw_setenv I do a reboot via "reboot". Maybe I should test a boot after a real shutdown.
Quote
setenv set_bootargs 'setenv bootargs root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params'
Quote
Besides that I was thinking that the commando "fw_setenv --script xyz" could be useful for scripting a configuration script to automatically fill the u-boot environment with customized vars. I was thinking of a convenience script for users who want to enable or disable netconsole but don't want to get their hands dirty.