[How To] Use netconsole to troubleshoot Debian kernel booting September 05, 2012 04:59PM |
Admin Registered: 13 years ago Posts: 18,900 |
cd /boot ls initrd.img-* uInitrdExpected output:
initrd.img-3.2.28-kirkwood uInitrd
cat /etc/initramfs-tools/modulesExpected output:
# List of modules that you want to include in your initramfs. # They will be loaded at boot time in the order below. # # Syntax: module_name [args ...] # # You must run update-initramfs(8) to effect this change. # # Examples: # # raid1 # sd_mod # # load netconsole to log kernel messages on this machine 192.168.0.220 to the server 192.168.0.223 # netconsole netconsole=6666@192.168.0.220/eth0,6666@192.168.0.223/
update-initramfs -uExpected output:
update-initramfs: Generating /boot/initrd.img-3.2.28-kirkwood
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-3.2.28 -d /boot/initrd.img-3.2.28-kirkwood /boot/uInitrdExpected output:
Image Name: initramfs-3.2.28-kirkwood Created: Wed Sep 5 14:11:38 2012 Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 6686266 Bytes = 6529.56 kB = 6.38 MB Load Address: 0x00000000 Entry Point: 0x00000000
Re: [How To] Use netconsole to troubleshoot Debian kernel booting September 11, 2012 02:43AM |
Registered: 12 years ago Posts: 24 |
Re: [How To] Use netconsole to troubleshoot Debian kernel booting September 11, 2012 04:08AM |
Admin Registered: 13 years ago Posts: 18,900 |
Re: [How To] Use netconsole to troubleshoot Debian kernel booting September 11, 2012 05:58PM |
Registered: 12 years ago Posts: 24 |
Re: [How To] Use netconsole to troubleshoot Debian kernel booting September 11, 2012 06:14PM |
Admin Registered: 13 years ago Posts: 18,900 |
Re: [How To] Use netconsole to troubleshoot Debian kernel booting September 22, 2012 04:08PM |
Registered: 12 years ago Posts: 24 |
Re: [How To] Use netconsole to troubleshoot Debian kernel booting September 22, 2012 04:39PM |
Admin Registered: 13 years ago Posts: 18,900 |
Re: [How To] Use netconsole to troubleshoot Debian kernel booting September 22, 2012 05:37PM |
Registered: 12 years ago Posts: 24 |
Re: [How To] Use netconsole to troubleshoot Debian kernel booting September 22, 2012 06:51PM |
Admin Registered: 13 years ago Posts: 18,900 |
Re: [How To] Use netconsole to troubleshoot Debian kernel booting September 23, 2012 04:57PM |
Registered: 12 years ago Posts: 24 |
Network console logging support (NETCONSOLE) [M/n/y/?] m Dynamic reconfiguration of logging targets (NETCONSOLE_DYNAMIC) [N/y/?] (NEW) N Netpoll traffic trapping (NETPOLL_TRAP) [N/y] (NEW) N
CC drivers/net/sun4i/sun4i_wemac.o drivers/net/sun4i/sun4i_wemac.c: In function ‘emacrx_WaitDmaFinish’: drivers/net/sun4i/sun4i_wemac.c:290: warning: unused variable ‘i’ drivers/net/sun4i/sun4i_wemac.c: In function ‘wemac_probe’: drivers/net/sun4i/sun4i_wemac.c:1880: error: ‘struct net_device’ has no member named ‘poll_controller’ make[3]: *** [drivers/net/sun4i/sun4i_wemac.o] Error 1 make[2]: *** [drivers/net/sun4i] Error 2 make[1]: *** [drivers/net] Error 2 make: *** [drivers] Error 2 make: *** Waiting for unfinished jobs....
wemac support(A1x) (WEMAC_SUN4I) [N/m/y/?] (NEW) N
Re: [How To] Use netconsole to troubleshoot Debian kernel booting September 23, 2012 05:42PM |
Admin Registered: 13 years ago Posts: 18,900 |
Re: [How To] Use netconsole to troubleshoot Debian kernel booting September 24, 2012 03:08AM |
Registered: 12 years ago Posts: 24 |
Re: [How To] Use netconsole to troubleshoot Debian kernel booting January 02, 2013 11:21AM |
Registered: 12 years ago Posts: 36 |
# update-initramfs -u # mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-3.2.28 -d /boot/initrd.img-3.2.28-kirkwood /boot/uInitrd
Re: [How To] Use netconsole to troubleshoot Debian kernel booting January 02, 2013 01:03PM |
Admin Registered: 13 years ago Posts: 18,900 |
Re: [How To] Use netconsole to troubleshoot Debian kernel booting January 02, 2013 02:22PM |
Registered: 12 years ago Posts: 36 |
Re: [How To] Use netconsole to troubleshoot Debian kernel booting January 02, 2013 02:27PM |
Registered: 12 years ago Posts: 36 |
Re: [How To] Use netconsole to troubleshoot Debian kernel booting January 03, 2013 01:49AM |
Admin Registered: 13 years ago Posts: 18,900 |
Re: [How To] Use netconsole to troubleshoot Debian kernel booting November 01, 2013 06:07AM |
Registered: 11 years ago Posts: 93 |
Re: [How To] Use netconsole to troubleshoot Debian kernel booting November 01, 2013 10:43PM |
Registered: 11 years ago Posts: 93 |
6518766 bytes read ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-3.11.1-kirkwood-tld-1 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2218744 Bytes = 2.1 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 01100000 ... Image Name: initramfs-3.11.1-kirkwood-tld-1 Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 6518702 Bytes = 6.2 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Starting kernel ... [ 34.526674] udevd[248]: starting version 175 [ 35.036832] alg: hash: Test 1 failed for mv-hmac-sha1 [ 35.041952] 00000000: 0c aa 9f d5 37 c3 79 3a 91 d9 21 5f 42 2b 2c 24 [ 35.054377] 00000010: b7 c3 16 0c [ 35.062303] orion_wdt: Initial timeout 21 sec [ 37.002267] EXT3-fs (sda1): using internal journal [ 41.864490] NET: Registered protocol family 10 [ 55.561905] kjournald starting. Commit interval 5 seconds [ 55.567722] EXT3-fs (sda2): using internal journal [ 55.572554] EXT3-fs (sda2): mounted filesystem with ordered data mode [ 61.790849] Adding 524284k swap on /media/Data/swapfile. Priority:-1 extents:134 across:642636k
Re: [How To] Use netconsole to troubleshoot Debian kernel booting November 02, 2013 12:19AM |
Admin Registered: 13 years ago Posts: 18,900 |
Re: [How To] Use netconsole to troubleshoot Debian kernel booting November 02, 2013 01:32AM |
Registered: 11 years ago Posts: 93 |
apt-get remove flash-kernel dpkg -i linux-image-3.11.1-kirkwood-tld-1_1.0_armel.deb mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-3.11.1-kirkwood-tld-2 -d /boot/vmlinuz-3.11.1-kirkwood-tld-1 /boot/uImage mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-3.11.1-kirkwood-tld-2 -d /boot/initrd.img-3.11.1-kirkwood-tld-1 /boot/uInitrd
root@debian:/etc/init.d# dmesg [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Initializing cgroup subsys cpuacct [ 0.000000] Linux version 3.11.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 PREEMPT Fri Sep 27 01:50:15 PDT 2013 [ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977 [ 0.000000] CPU: VIVT data cache, VIVT instruction cache [ 0.000000] Machine: Seagate GoFlex Net [ 0.000000] Memory policy: ECC disabled, Data cache writeback [ 0.000000] On node 0 totalpages: 32768 [ 0.000000] free_area_init_node: node 0, pgdat c05f0c74, node_mem_map c065d000 [ 0.000000] Normal zone: 256 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 32768 pages, LIFO batch:7 [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 [ 0.000000] pcpu-alloc: [0] 0 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512 [ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 rootfstype=ext3 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) [ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes) [ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) [ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.000000] Memory: 117020K/131072K available (4192K kernel code, 309K rwdata, 1368K rodata, 187K init, 420K bss, 14052K reserved) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB) [ 0.000000] vmalloc : 0xc8800000 - 0xff000000 ( 872 MB) [ 0.000000] lowmem : 0xc0000000 - 0xc8000000 ( 128 MB) [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB) [ 0.000000] .text : 0xc0008000 - 0xc05761a0 (5561 kB) [ 0.000000] .init : 0xc0577000 - 0xc05a5cdc ( 188 kB) [ 0.000000] .data : 0xc05a6000 - 0xc05f3538 ( 310 kB) [ 0.000000] .bss : 0xc05f3538 - 0xc065c5cc ( 421 kB) [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] NR_IRQS:114 [ 0.000000] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474ms [ 0.000000] Console: colour dummy device 80x30 [ 14.003795] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584) [ 14.093588] pid_max: default: 32768 minimum: 301 [ 14.093689] Security Framework initialized [ 14.093760] Mount-cache hash table entries: 512 [ 14.094379] Initializing cgroup subsys devices [ 14.094401] Initializing cgroup subsys freezer [ 14.094414] Initializing cgroup subsys net_cls [ 14.094425] Initializing cgroup subsys blkio [ 14.094499] CPU: Testing write buffer coherency: ok [ 14.094885] Setting up static identity map for 0xc03f6900 - 0xc03f693c [ 14.096717] devtmpfs: initialized [ 14.098962] pinctrl core: initialized pinctrl subsystem [ 14.099292] regulator-dummy: no parameters [ 14.099610] NET: Registered protocol family 16 [ 14.100033] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 14.100804] Kirkwood: MV88F6281-A1, TCLK=200000000. [ 14.100826] Feroceon L2: Enabling L2 [ 14.100865] Feroceon L2: Cache support initialised. [ 14.101192] initial MPP regs: 01111111 11113322 00001111 00100000 00000000 00000000 00000000 [ 14.101220] final MPP regs: 01111111 11113322 00001111 00000000 00000000 00000000 00000000 [ 14.104706] bio: create slab <bio-0> at 0 [ 14.105135] vgaarb: loaded [ 14.105272] usbcore: registered new interface driver usbfs [ 14.105325] usbcore: registered new interface driver hub [ 14.105423] usbcore: registered new device driver usb [ 14.106037] Switched to clocksource orion_clocksource [ 14.120492] NET: Registered protocol family 2 [ 14.121133] TCP established hash table entries: 1024 (order: 1, 8192 bytes) [ 14.121170] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) [ 14.121191] TCP: Hash tables configured (established 1024 bind 1024) [ 14.121258] TCP: reno registered [ 14.121271] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 14.121295] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 14.121493] NET: Registered protocol family 1 [ 14.121802] RPC: Registered named UNIX socket transport module. [ 14.121813] RPC: Registered udp transport module. [ 14.121821] RPC: Registered tcp transport module. [ 14.121828] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 14.121839] PCI: CLS 0 bytes, default 32 [ 14.122042] Unpacking initramfs... [ 14.666881] Freeing initrd memory: 6360K (c1101000 - c1737000) [ 14.666983] NetWinder Floating Point Emulator V0.97 (double precision) [ 14.667581] audit: initializing netlink socket (disabled) [ 14.667626] type=2000 audit(0.660:1): initialized [ 14.668452] VFS: Disk quotas dquot_6.5.2 [ 14.668502] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 14.668861] NFS: Registering the id_resolver key type [ 14.668920] Key type id_resolver registered [ 14.668931] Key type id_legacy registered [ 14.668949] Installing knfsd (copyright (C) 1996 okir@monad.swb.de). [ 14.669113] jffs2: version 2.2. (NAND) (SUMMARY) \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc. [ 14.669322] msgmni has been set to 240 [ 14.671190] alg: No test for stdrng (krng) [ 14.671283] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252) [ 14.671294] io scheduler noop registered [ 14.671302] io scheduler deadline registered [ 14.671323] io scheduler cfq registered (default) [ 14.671518] mv_xor mv_xor.0: Marvell shared XOR driver [ 14.706115] mv_xor mv_xor.0: Marvell XOR: ( xor cpy ) [ 14.746097] mv_xor mv_xor.0: Marvell XOR: ( xor cpy ) [ 14.746202] mv_xor mv_xor.1: Marvell shared XOR driver [ 14.786097] mv_xor mv_xor.1: Marvell XOR: ( xor cpy ) [ 14.826096] mv_xor mv_xor.1: Marvell XOR: ( xor cpy ) [ 14.826348] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 14.846905] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A [ 15.343501] console [ttyS0] enabled [ 15.348009] ONFI param page 0 valid [ 15.351510] ONFI flash detected [ 15.354664] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron MT29F2G08AAD), 256MiB, page size: 2048, OOB size: 64 [ 15.365780] Scanning device for bad blocks [ 15.416237] Bad eraseblock 440 at 0x000003700000 [ 15.589876] 4 cmdlinepart partitions found on MTD device orion_nand [ 15.596183] Creating 4 MTD partitions on "orion_nand": [ 15.601352] 0x000000000000-0x000000100000 : "u-boot" [ 15.606579] 0x000000100000-0x000000500000 : "uImage" [ 15.611774] 0x000000500000-0x000002500000 : "rootfs" [ 15.617032] 0x000002500000-0x000010000000 : "data" [ 15.622316] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 15.628889] ehci-pci: EHCI PCI platform driver [ 15.633393] ehci-orion: EHCI orion driver [ 15.637491] orion-ehci orion-ehci.0: EHCI Host Controller [ 15.642936] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1 [ 15.651121] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000 [ 15.676070] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00 [ 15.682088] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 15.688929] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 15.696203] usb usb1: Product: EHCI Host Controller [ 15.701107] usb usb1: Manufacturer: Linux 3.11.1-kirkwood-tld-1 ehci_hcd [ 15.707853] usb usb1: SerialNumber: orion-ehci.0 [ 15.712908] hub 1-0:1.0: USB hub found [ 15.716721] hub 1-0:1.0: 1 port detected [ 15.721071] mousedev: PS/2 mouse device common for all mice [ 16.736145] rtc-mv rtc-mv: internal RTC not ticking [ 16.741135] i2c /dev entries driver [ 16.744702] cpuidle: using governor ladder [ 16.748835] cpuidle: using governor menu [ 16.753617] drop_monitor: Initializing network drop monitor service [ 16.760217] TCP: cubic registered [ 16.763551] NET: Registered protocol family 17 [ 16.768134] Key type dns_resolver registered [ 16.772857] registered taskstats version 1 [ 16.777815] drivers/rtc/hctosys.c: unable to open rtc device (rtc0) [ 16.784909] Freeing unused kernel memory: 184K (c0577000 - c05a5000) [ 16.856765] udevd[52]: starting version 175 [ 16.959558] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4 [ 17.034274] libphy: orion_mdio_bus: probed [ 17.093796] SCSI subsystem initialized [ 17.167833] libata version 3.00 loaded. [ 18.225946] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:10:75:26:7f:a8 [ 18.234802] sata_mv sata_mv.0: version 1.28 [ 18.234874] sata_mv sata_mv.0: cannot get optional clkdev [ 18.245325] sata_mv sata_mv.0: slots 32 ports 2 [ 18.253155] scsi0 : sata_mv [ 18.256623] scsi1 : sata_mv [ 18.259923] ata1: SATA max UDMA/133 irq 21 [ 18.264036] ata2: SATA max UDMA/133 irq 21 [ 18.776082] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl F300) [ 18.856107] ata1.00: ATA-8: ST9500325AS, 0002BSM1, max UDMA/133 [ 18.862057] ata1.00: 976773168 sectors, multi 16: LBA48 NCQ (depth 31/32) [ 18.926113] ata1.00: configured for UDMA/133 [ 18.946432] scsi 0:0:0:0: Direct-Access ATA ST9500325AS 0002 PQ: 0 ANSI: 5 [ 19.296079] ata2: SATA link down (SStatus 0 SControl F300) [ 19.338563] sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/465 GiB) [ 19.347346] sd 0:0:0:0: [sda] Write Protect is off [ 19.352166] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 [ 19.352283] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 19.429309] sda: sda1 sda2 [ 19.434001] sd 0:0:0:0: [sda] Attached SCSI disk [ 19.449126] sd 0:0:0:0: Attached scsi generic sg0 type 0 [ 29.938524] netpoll: netconsole: local port 6666 [ 29.943170] netpoll: netconsole: local IPv4 address 192.168.1.110 [ 29.949359] netpoll: netconsole: interface 'eth0' [ 29.954084] netpoll: netconsole: remote port 6666 [ 29.958914] netpoll: netconsole: remote IPv4 address 192.168.1.104 [ 29.965124] netpoll: netconsole: remote ethernet address ff:ff:ff:ff:ff:ff [ 29.972070] netpoll: netconsole: device eth0 not up yet, forcing it [ 29.980132] mv643xx_eth_port mv643xx_eth_port.0 eth0: link down [ 32.262564] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled [ 32.275222] console [netcon0] enabled [ 32.278950] netconsole: network logging started [ 32.683580] EXT3-fs (sda1): mounted filesystem with ordered data mode [ 32.690133] kjournald starting. Commit interval 5 seconds [ 34.526674] udevd[248]: starting version 175 [ 35.036832] alg: hash: Test 1 failed for mv-hmac-sha1 [ 35.041952] 00000000: 0c aa 9f d5 37 c3 79 3a 91 d9 21 5f 42 2b 2c 24 [ 35.054377] 00000010: b7 c3 16 0c [ 35.062303] orion_wdt: Initial timeout 21 sec [ 37.002267] EXT3-fs (sda1): using internal journal [ 41.864490] NET: Registered protocol family 10 [ 55.561905] kjournald starting. Commit interval 5 seconds [ 55.567722] EXT3-fs (sda2): using internal journal [ 55.572554] EXT3-fs (sda2): mounted filesystem with ordered data mode [ 61.790849] Adding 524284k swap on /media/Data/swapfile. Priority:-1 extents:134 across:642636k
Re: [How To] Use netconsole to troubleshoot Debian kernel booting November 02, 2013 03:19AM |
Admin Registered: 13 years ago Posts: 18,900 |
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-3.11.1-kirkwood-tld-1 -d /boot/initrd.img-3.11.1-kirkwood-tld-1 /boot/uInitrd
Re: [How To] Use netconsole to troubleshoot Debian kernel booting November 02, 2013 07:50AM |
Registered: 11 years ago Posts: 93 |
Re: [How To] Use netconsole to troubleshoot Debian kernel booting November 02, 2013 04:01PM |
Admin Registered: 13 years ago Posts: 18,900 |
netconsole netconsole=6666@192.168.0.220/eth0,6666@192.168.0.223/xx:xx:xx:xx:xx
Re: [How To] Use netconsole to troubleshoot Debian kernel booting November 02, 2013 09:29PM |
Registered: 11 years ago Posts: 93 |
Re: [How To] Use netconsole to troubleshoot Debian kernel booting November 03, 2013 03:02PM |
Admin Registered: 13 years ago Posts: 18,900 |
Re: [How To] Use netconsole to troubleshoot Debian kernel booting November 03, 2013 07:25PM |
Registered: 11 years ago Posts: 93 |
jman
Re: [How To] Use netconsole to troubleshoot Debian kernel booting August 14, 2014 08:40AM |
Re: [How To] Use netconsole to troubleshoot Debian kernel booting August 14, 2014 09:23AM |
Admin Registered: 13 years ago Posts: 18,900 |
Re: [How To] Use netconsole to troubleshoot Debian kernel booting March 20, 2021 03:28PM |
Registered: 11 years ago Posts: 25 |