Re: Use netconsole to troubleshoot uBoot without a serial cable March 08, 2017 09:40PM |
Registered: 7 years ago Posts: 12 |
Re: Use netconsole to troubleshoot uBoot without a serial cable November 03, 2017 01:48AM |
Registered: 8 years ago Posts: 88 |
root@PogoV4Debian:/boot# nc -l -u -p 6666 U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:23:43 -0700) Pogo E02 gcc (Debian 4.9.2-10) 4.9.2 GNU ld (GNU Binutils for Debian) 2.25 Hit any key to stop autoboot: 0 starting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 3 USB Device(s) found scanning usb for storage devices... Use USB retry period from the environment: 15 second(s) 1 Storage Device(s) found Partition Map for USB device 0 -- Partition Type: DOS Part Start Sector Num Sectors UUID Type 1 2048 15872000 c56503a8-01 83 Boot loading envs from usb 0 ... ** File not found /boot/uEnv.txt ** running scan_disk ... Scan device usb device usb 0:1 1 bytes read in 2629 ms (0 Bytes/s) Found bootable drive on usb 0 2875692 bytes read in 416 ms (6.6 MiB/s) 6535284 bytes read in 546 ms (11.4 MiB/s) ** File not found /boot/dts/dts/kirkwood-pogo_e02.dtb ** ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-3.18.5-kirkwood-tld-1 Created: 2017-11-02 23:05:54 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2875628 Bytes = 2.7 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 01100000 ... Image Name: initramfs-3.18.5-kirkwood-tld-1 Created: 2015-02-19 1:49:36 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 6535220 Bytes = 6.2 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Starting kernel ... U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:23:43 -0700) Pogo E02 gcc (Debian 4.9.2-10) 4.9.2 GNU ld (GNU Binutils for Debian) 2.25 Hit any key to stop autoboot: 0 starting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 3 USB Device(s) found scanning usb for storage devices... Use USB retry period from the environment: 15 second(s) 1 Storage Device(s) found Partition Map for USB device 0 -- Partition Type: DOS Part Start Sector Num Sectors UUID Type 1 2048 15872000 c56503a8-01 83 Boot loading envs from usb 0 ... ** File not found /boot/uEnv.txt ** running scan_disk ... Scan device usb device usb 0:1 1 bytes read in 242 ms (0 Bytes/s) Found bootable drive on usb 0 3848064 bytes read in 427 ms (8.6 MiB/s) 6349577 bytes read in 557 ms (10.9 MiB/s) ** File not found /boot/dts/dts/kirkwood-pogo_e02.dtb ** ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-4.13.5-kirkwood-tld-1 Created: 2017-11-03 1:42:30 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3848000 Bytes = 3.7 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 01100000 ... Image Name: initramfs-4.13.5-kirkwood-tld-1 Created: 2017-11-03 1:42:54 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 6349513 Bytes = 6.1 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Starting kernel ...
root@debian:~# fw_printenv bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi bootdelay=10 bootdev=usb device=0:1 ethact=egiga0 if_netconsole=ping $serverip led_error=orange blinking led_exit=green off led_init=green blinking dtb_file=/boot/dts/kirkwood-pogo_e02.dtb load_dtb_addr=0x1c00000 load_initrd_addr=0x1100000 load_uimage_addr=0x800000 mainlineLinux=yes mtdids=nand0=orion_nand mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) partition=nand0,2 scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_ide "ide reset"; setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; stderr=serial stdin=serial stdout=serial uenv_addr=0x810000 uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize uenv_init_devices=setenv init_usb "usb start"; setenv init_ide "ide reset"; setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done; uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in 0; do run uenv_read_disk; done; done; uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read; fi; else if $devtype part $disknum; then run uenv_read; fi; fi uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi usb_ready_retry=15 arcNumber=3542 machid=dd6 ethaddr=00:25:31:04:80:8C disks=0 1 2 3 4 5 6 7 preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi ipaddr=192.168.222.168 devices=usb load_initrd=ext2load usb 0:1 0x1100000 /boot/uInitrd load_uimage=ext2load usb 0:1 0x800000 /boot/uImage usb_boot=run load_dtb; run load_uimage; if run load_initrd; then bootm 0x800000 0x1100000 0x1c00000; else bootm 0x800000 - 0x1c00000; fi serverip=192.168.222.164 load_dtb=ext2load usb 0:1 0x1c00000 /boot/dts/kirkwood-pogo_e02.dtb preboot=run if_netconsole start_netconsole root@debian:~#
Re: Use netconsole to troubleshoot uBoot without a serial cable November 03, 2017 02:12AM |
Registered: 8 years ago Posts: 310 |
Re: Use netconsole to troubleshoot uBoot without a serial cable November 03, 2017 02:27AM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: Use netconsole to troubleshoot uBoot without a serial cable November 03, 2017 02:47AM |
Registered: 8 years ago Posts: 88 |
root@PogoV4Debian:/boot# nc -l -u -p 6666
root@PogoV4Debian:/boot# nc -l -u -p 6666 & [2] 8363 root@PogoV4Debian:/boot# nc -u 192.168.1.100 6666
root@PogoV4Debian:/boot# nc -klu 6666
Re: Use netconsole to troubleshoot uBoot without a serial cable November 03, 2017 03:01AM |
Admin Registered: 13 years ago Posts: 18,898 |
nc -lup 6666 192.168.222.168 6666
Re: Use netconsole to troubleshoot uBoot without a serial cable November 03, 2017 03:16AM |
Registered: 8 years ago Posts: 88 |
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_dtb=ext2load usb 0:1 0x1c00000 /boot/dts/kirkwood-pogo_e02.dtb load_initrd=ext2load usb 0:1 0x1100000 /boot/uInitrd load_uimage=ext2load usb 0:1 0x800000 /boot/uImage
Re: Use netconsole to troubleshoot uBoot without a serial cable November 03, 2017 06:45AM |
Admin Registered: 13 years ago Posts: 18,898 |
> nc -lup 6666 192.168.222.168 6666 >
Re: Use netconsole to troubleshoot uBoot without a serial cable November 03, 2017 03:54PM |
Registered: 8 years ago Posts: 88 |
> > nc -lup 6666 192.168.222.168 6666 > >
Re: Use netconsole to troubleshoot uBoot without a serial cable November 03, 2017 05:07PM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: Use netconsole to troubleshoot uBoot without a serial cable May 01, 2018 05:26PM |
Registered: 8 years ago Posts: 91 |
Re: Use netconsole to troubleshoot uBoot without a serial cable May 04, 2018 04:49PM |
Registered: 7 years ago Posts: 9 |
netsh advfirewall firewall add rule name="ICMP Allow" protocol=icmpv4:8,any dir=in action=allow
Re: Use netconsole to troubleshoot uBoot without a serial cable August 20, 2018 05:51PM |
Registered: 7 years ago Posts: 337 |
Re: Use netconsole to troubleshoot uBoot without a serial cable August 21, 2018 03:46AM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: Use netconsole to troubleshoot uBoot without a serial cable August 21, 2018 10:53AM |
Registered: 7 years ago Posts: 337 |
Re: Use netconsole to troubleshoot uBoot without a serial cable August 22, 2018 01:58AM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: Use netconsole to troubleshoot uBoot without a serial cable August 22, 2018 05:50AM |
Registered: 7 years ago Posts: 337 |
Re: Use netconsole to troubleshoot uBoot without a serial cable August 23, 2018 05:29AM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: Use netconsole to troubleshoot uBoot without a serial cable April 20, 2022 04:09PM |
Registered: 2 years ago Posts: 53 |
fw_setenv serverip 192.168.1.19 (my pi fixe IP) fw_setenv ipaddr 192.168.1.200 (free IP in the dhcp)
nc -l -u -p 6666
root@Raspberrypy-4:/home/pi# nc -l -u -p 6666 U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700) ZyXEL NSA325 2-Bay Power Media Server gcc (Debian 6.3.0-18) 6.3.0 20170516 GNU ld (GNU Binutils for Debian) 2.28
nc -klu 6666things are going better and I arrive up to the Starting Kernel....
pi@Raspberrypy-4:~ $ nc -klu 6666 U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700) ZyXEL NSA325 2-Bay Power Media Server gcc (Debian 6.3.0-18) 6.3.0 20170516 GNU ld (GNU Binutils for Debian) 2.28 Hit any key to stop autoboot: 0 Initializing devices... starting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 2 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Reset IDE: Bus 0: OK Bus 1: OK Device 0: Model: WDC WD20EZRX-00D8PB0 Firm: 80.00A80 Ser#: WD-WMC4M3352905 Type: Hard Disk Supports 48-bit addressing Capacity: 1907729.0 MB = 1863.0 GB (3907029168 x 512) Device 1: Model: Hitachi HTS541680J9SA00 Firm: SB2OC7BP Ser#: SB2281KGDP5BJE Type: Hard Disk Supports 48-bit addressing Capacity: 76319.0 MB = 74.5 GB (156301488 x 512) Unknown command 'mmc' - try 'help' Loading envs from usb 0... ** Bad device usb 0 ** Loading envs from usb 1... ** Bad device usb 1 ** Loading envs from usb 2... ** Bad device usb 2 ** Loading envs from usb 3... ** Bad device usb 3 ** Loading envs from ide 0... ** File not found /boot/uEnv.txt ** Loading envs from ide 1... 121 bytes read in 1077 ms (0 Bytes/s) ... envs loaded importing envs ... running scan_disk ... Scan device ide Reset IDE: Bus 0: OK Bus 1: OK Device 0: Model: WDC WD20EZRX-00D8PB0 Firm: 80.00A80 Ser#: WD-WMC4M3352905 Type: Hard Disk Supports 48-bit addressing Capacity: 1907729.0 MB = 1863.0 GB (3907029168 x 512) Device 1: Model: Hitachi HTS541680J9SA00 Firm: SB2OC7BP Ser#: SB2281KGDP5BJE Type: Hard Disk Supports 48-bit addressing Capacity: 76319.0 MB = 74.5 GB (156301488 x 512) device ide 0:1 ** File not found /boot/uImage ** device ide 1:1 1 bytes read in 935 ms (0 Bytes/s) Found bootable drive on ide 1 loading uImage ... 5435888 bytes read in 2039 ms (2.5 MiB/s) loading uInitrd ... 9671091 bytes read in 2852 ms (3.2 MiB/s) loading DTB /boot/dts/kirkwood-nsa325.dtb ... 14014 bytes read in 3255 ms (3.9 KiB/s) ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-5.13.6-kirkwood-tld-1 Created: 2021-09-24 0:22:58 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 5435824 Bytes = 5.2 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 01100000 ... Image Name: initramfs-5.13.6-kirkwood-tld-1 Created: 2021-09-24 1:06:32 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 9671027 Bytes = 9.2 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK ## Flattened Device Tree blob at 02c00000 Booting using the fdt blob at 0x2c00000 Starting kernel ...
Re: Use netconsole to troubleshoot uBoot without a serial cable April 20, 2022 10:54PM |
Admin Registered: 13 years ago Posts: 18,898 |
Quote
Netconsole
Use netconsole to troubleshoot uBoot without a serial cable
Use netconsole to troubleshoot Debian kernel booting
Re: Use netconsole to troubleshoot uBoot without a serial cable December 31, 2023 04:27AM |
Registered: 2 years ago Posts: 53 |
preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi
SoC: Kirkwood 88F6282_A1 DRAM: 512 MiB WARNING: Caches not enabled NAND: 128 MiB In: serial Out: serial Err: serial Net: egiga0 MV88E1318 PHY initialized on egiga0 Using egiga0 device host 192.168.1.19 is alive Using egiga0 device host 192.168.1.19 is alive Using egiga0 device host 192.168.1.19 is alive Using egiga0 device host 192.168.1.19 is alive Using egiga0 device host 192.168.1.19 is alive
Re: Use netconsole to troubleshoot uBoot without a serial cable January 01, 2024 04:24AM |
Admin Registered: 13 years ago Posts: 18,898 |