Welcome! Log In Create A New Profile

Advanced

HP 5325 ethernet stopped working

Posted by Koen 
HP 5325 ethernet stopped working
September 16, 2018 02:00PM
Hi all,

I've been running a HP T5325 for a while but recently noticed the ethernet has stopped working. When I check the serial connection it seems that it can't always find the usb stick and tries to boot into stock instead and then hangs. I'm not sure what has happened so I've re-created the rootfs on a new USB stick to be sure it was not due to some corrupt files. However even with the new usb rootfs I don't have a working ethernet connection. I can access the device from serial but can't use fw_printenv from Debian. It could be a hardware failure but I'll post the usual output below and would like to know if anybody can spot any obvious problems?

Thanks,

Koen

U-Boot 2017.07-tld-1 (Nov 01 2017 - 00:58:19 -0700)
HP Thin Client T5325

SoC:   Kirkwood 88F6281_A0
SPI:   ready
DRAM:  512 MiB
WARNING: Caches not enabled
MMC:   
SF: Detected mx25l8005 with page size 256 Bytes, erase size 64 KiB, total 1 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
88E3016 Initialized on egiga0
Hit any key to stop autoboot:  0 
T5325>  printenv
arcNumber=2846
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
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_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
device=0:1
devices=usb
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-t5325.dtb
ethact=egiga0
ethaddr=f4:ce:46:23:49:9e
if_netconsole=ping $serverip
ipaddr=192.168.0.41
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtdparts=mtdparts=spi0.0:512K(uboot),256K(sdd_firmware),64K(uboot_env),64K(permanent_uboot_env),64K(hp_env)
preboot_nc=run if_netconsole start_netconsole
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
serverip=192.168.0.220
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=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
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
usb_ready_retry=15

Environment size: 2824/65532 bytes
T5325>

bootlog

T5325> boot
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     992             7865376         be4323ae-01     0b

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
0 bytes read in 861 ms (0 Bytes/s)
importing envs ...
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 692 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
3821592 bytes read in 949 ms (3.8 MiB/s)
loading uInitrd ...
7245696 bytes read in 978 ms (7.1 MiB/s)
loading DTB /boot/dts/kirkwood-t5325.dtb ...
11919 bytes read in 3275 ms (2.9 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2017-07-20   8:11:24 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3821528 Bytes = 3.6 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
   Created:      2017-07-24   0:18:23 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7245632 Bytes = 6.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 0f917000, end 0fffff40 ... OK
   Loading Device Tree to 0f911000, end 0f916e8e ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: HP t5325 Thin Client
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=spi0.0:512K(uboot),256K(sdd_firmware),64K(uboot_env),64K(permanent_uboot_env),64K(hp_env)
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 499272K/524288K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 25016K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0db3274   ( 717 kB)
[    0.000000]        .bss : 0xc0db9b9c - 0xc0e01e60   ( 289 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000008] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000043] Switching to timer-based delay loop, resolution 5ns
[    0.000505] Console: colour dummy device 80x30
[    0.000538] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000561] pid_max: default: 32768 minimum: 301
[    0.000760] Security Framework initialized
[    0.000881] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000900] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001743] CPU: Testing write buffer coherency: ok
[    0.002733] Setting up static identity map for 0x100000 - 0x100058
[    0.002994] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x2
[    0.006221] devtmpfs: initialized
[    0.010457] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.010485] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.010876] prandom: seed boundary self test passed
[    0.014612] prandom: 100 self tests passed
[    0.014624] pinctrl core: initialized pinctrl subsystem
[    0.015763] NET: Registered protocol family 16
[    0.016232] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.017815] cpuidle: using governor ladder
[    0.017884] cpuidle: using governor menu
[    0.018312] Feroceon L2: Enabling L2
[    0.018359] Feroceon L2: Cache support initialised.
[    0.018712] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.024409] No ATAGs?
[    0.033797] vgaarb: loaded
[    0.034112] SCSI subsystem initialized
[    0.034590] usbcore: registered new interface driver usbfs
[    0.034675] usbcore: registered new interface driver hub
[    0.034758] usbcore: registered new device driver usb
[    0.035867] clocksource: Switched to clocksource orion_clocksource
[    0.124617] VFS: Disk quotas dquot_6.6.0
[    0.124694] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.135207] NET: Registered protocol family 2
[    0.135980] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.136041] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.136093] TCP: Hash tables configured (established 4096 bind 4096)
[    0.136180] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.136204] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.136380] NET: Registered protocol family 1
[    0.136787] RPC: Registered named UNIX socket transport module.
[    0.136800] RPC: Registered udp transport module.
[    0.136808] RPC: Registered tcp transport module.
[    0.136815] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.137048] Unpacking initramfs...
[    0.791276] Freeing initrd memory: 7076K
[    0.791414] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.792383] audit: initializing netlink subsys (disabled)
[    0.792853] Initialise system trusted keyrings
[    0.792908] Key type blacklist registered
[    0.793000] audit: type=2000 audit(0.786:1): state=initialized audit_enabled=0 res=1
[    0.793095] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.793164] zbud: loaded
[    0.794119] NFS: Registering the id_resolver key type
[    0.794147] Key type id_resolver registered
[    0.794156] Key type id_legacy registered
[    0.794174] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.794184] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.794382] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.794577] fuse init (API version 7.26)
[    0.794907] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.795110] orangefs_init: module version upstream loaded
[    0.795121] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.555878] random: fast init done
[    6.639383] Key type asymmetric registered
[    6.639400] Asymmetric key parser 'x509' registered
[    6.639463] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    6.639474] io scheduler noop registered
[    6.639483] io scheduler deadline registered
[    6.639560] io scheduler cfq registered (default)
[    6.640896] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    6.642761] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[    6.642782] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    6.642796] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    6.642809] pci_bus 0000:00: root bus resource [bus 00-ff]
[    6.643140] PCI: bus0: Fast back to back transfers disabled
[    6.643164] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    6.643683] pci 0000:01:00.0: vgaarb: VGA device added: decodes=io+mem,owns=none,locks=none
[    6.665943] PCI: bus1: Fast back to back transfers disabled
[    6.666053] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe5ffffff]
[    6.666070] pci 0000:00:01.0: BAR 13: assigned [io  0x10000-0x10fff]
[    6.666088] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe3ffffff pref]
[    6.666107] pci 0000:01:00.0: BAR 1: assigned [mem 0xe4000000-0xe403ffff]
[    6.666123] pci 0000:01:00.0: BAR 2: assigned [io  0x10000-0x1007f]
[    6.666139] pci 0000:00:01.0: PCI bridge to [bus 01]
[    6.666153] pci 0000:00:01.0:   bridge window [io  0x10000-0x10fff]
[    6.666168] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe5ffffff]
[    6.666264] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[    6.666805] mv_xor f1060800.xor: Marvell shared XOR driver
[    6.726600] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    6.726823] mv_xor f1060900.xor: Marvell shared XOR driver
[    6.786601] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    6.787026] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    6.788368] console [ttyS0] disabled
[    6.788433] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 27, base_baud = 12500000) is a 16550A
[    7.504649] console [ttyS0] enabled
[    7.516624] loop: module loaded
[    7.520350] sata_mv f1080000.sata: slots 32 ports 2
[    7.528078] scsi host0: sata_mv
[    7.531672] scsi host1: sata_mv
[    7.535081] ata1: SATA max UDMA/133 irq 35
[    7.539248] ata2: SATA max UDMA/133 irq 35
[    7.544931] m25p80 spi0.0: found mx25l8005, expected m25p80
[    7.550590] m25p80 spi0.0: mx25l8005 (1024 Kbytes)
[    7.555420] 5 cmdlinepart partitions found on MTD device spi0.0
[    7.561392] Creating 5 MTD partitions on "spi0.0":
[    7.566233] 0x000000000000-0x000000080000 : "uboot"
[    7.572461] 0x000000080000-0x0000000c0000 : "sdd_firmware"
[    7.579320] 0x0000000c0000-0x0000000d0000 : "uboot_env"
[    7.585849] 0x0000000d0000-0x0000000e0000 : "permanent_uboot_env"
[    7.593077] 0x0000000e0000-0x0000000f0000 : "hp_env"
[    7.600296] libphy: Fixed MDIO Bus: probed
[    7.605199] libphy: orion_mdio_bus: probed
[    7.614360] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    7.622599] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address f4:ce:46:23:49:9e
[    7.631531] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.638195] ehci-pci: EHCI PCI platform driver
[    7.642728] ehci-orion: EHCI orion driver
[    7.647007] orion-ehci f1050000.ehci: EHCI Host Controller
[    7.652545] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    7.660465] orion-ehci f1050000.ehci: irq 31, io mem 0xf1050000
[    7.695902] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    7.702209] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    7.709056] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    7.716336] usb usb1: Product: EHCI Host Controller
[    7.721233] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    7.727984] usb usb1: SerialNumber: f1050000.ehci
[    7.733407] hub 1-0:1.0: USB hub found
[    7.737264] hub 1-0:1.0: 1 port detected
[    7.741883] usbcore: registered new interface driver usb-storage
[    7.748312] mousedev: PS/2 mouse device common for all mice
[    7.754507] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    7.761663] i2c /dev entries driver
[    7.767372] hidraw: raw HID events driver (C) Jiri Kosina
[    7.773222] drop_monitor: Initializing network drop monitor service
[    7.779825] NET: Registered protocol family 17
[    7.784368] Key type dns_resolver registered
[    7.789460] registered taskstats version 1
[    7.793573] Loading compiled-in X.509 certificates
[    7.798509] zswap: loaded using pool lzo/zbud
[    7.813011] Key type big_key registered
[    7.826473] Key type encrypted registered
[    7.831895] rtc-mv f1010300.rtc: setting system clock to 2018-09-16 19:48:54 UTC (1537127334)
[    8.035910] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    8.044518] ata1.00: ATA-7: SM224, I0521, max UDMA/133
[    8.049710] ata1.00: 949536 sectors, multi 0: LBA 
[    8.056959] ata1.00: configured for UDMA/133
[    8.071814] scsi 0:0:0:0: Direct-Access     ATA      SM224            1    PQ: 0 ANSI: 5
[    8.081049] sd 0:0:0:0: [sda] 949536 512-byte logical blocks: (486 MB/464 MiB)
[    8.088962] sd 0:0:0:0: [sda] Write Protect is off
[    8.093939] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    8.103173] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    8.111685]  sda: sda1
[    8.115439] sd 0:0:0:0: [sda] Attached SCSI disk
[    8.296361] usb 1-1: New USB device found, idVendor=0424, idProduct=2514
[    8.303109] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    8.311045] hub 1-1:1.0: USB hub found
[    8.314974] hub 1-1:1.0: 4 ports detected
[    8.420469] ata2: SATA link down (SStatus 0 SControl F300)
[    8.439086] Freeing unused kernel memory: 1024K
Loading, please wait...
starting version 232
[    8.635959] usb 1-1.4: new high-speed USB device number 3 using orion-ehci
[    8.813249] usb 1-1.4: New USB device found, idVendor=058f, idProduct=6387
[    8.825530] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    8.845319] usb 1-1.4: Product: Mass Storage
[    8.849678] usb 1-1.4: Manufacturer: Generic
[    8.853971] usb 1-1.4: SerialNumber: 422605B6
[    8.867685] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[    8.883783] scsi host2: usb-storage 1-1.4:1.0
[    9.307971] usbcore: registered new interface driver uas
Begin: Loading essential drivers ... done.
[    9.928070] scsi 2:0:0:0: Direct-Access     Generic  Flash Disk       8.07 PQ: 0 ANSI: 4
[    9.942663] sd 2:0:0:0: [sdb] 7866368 512-byte logical blocks: (4.03 GB/3.75 GiB)
[    9.956925] sd 2:0:0:0: [sdb] Write Protect is off
[    9.966021] sd 2:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    9.989264]  sdb: sdb1
[   10.012149] sd 2:0:0:0: [sdb] Attached SCSI removable disk
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Warning: fsck not present, so skipping root file system
[   19.428182] EXT4-fs (sdb1): mounting ext3 file system using the ext4 subsystem
[   19.446619] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Setting hostname to 'debian'...done.
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
. ok 
[ ok [   21.845362] input: gpio_keys as /devices/platform/gpio_keys/input/input0
                                                 done.
[....] Waiting for /dev to be fully populated...[   22.114105] xgifb: module is from the staging directory, the quality is unknown, you have been warned.
[   22.200356] xgifb 0000:01:00.0: Relocate IO address: 10000 [00010030]
[   22.226907] xgifb 0000:01:00.0: enabling device (0140 -> 0143)
[   22.299189] marvell-cesa f1030000.crypto: CESA device successfully registered
[   22.300457] orion_wdt: Initial timeout 21 sec
[   22.379282] xgifb 0000:01:00.0: chipid = 32
[   22.408937] xgifb: SR14=51 DramSzie 2000000 ChannelNum 1
[   22.412926] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   22.427641] xgifb 0000:01:00.0: Framebuffer at 0xe0000000, mapped to 0xe1000000, size 32768k
[   22.468940] sd 2:0:0:0: Attached scsi generic sg1 type 0
[   22.511384] xgifb 0000:01:00.0: MMIO at 0xe4000000, mapped to 0xe0f40000, size 256k
[   22.573501] asoc-simple-card sound: alc5621-hifi <-> i2s mapping ok
[   22.699741] xgifb 0000:01:00.0: No or unknown bridge type detected
[   22.722149] xgifb: Default mode is 800x600x16 (60Hz)
done.
[   23.470047] random: crng init done
[ ok ] Activating swap:.
[   23.791934] EXT4-fs (sdb1): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sdb1 
e2fsck 1.43.4 (31-Jan-2017)
rootfs: clean, 14514/246240 files, 168004/983040 blocks
. ok 
[   24.077077] EXT4-fs (sdb1): re-mounted. Opts: errors=remount-ro
[ ok ] Will now activate lvm and md swap:done.
[info] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=rootfs is mounted
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables...done.
[ ok ] Initializing random number generator...done.
[   26.940313] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/f4:ce:46:23:49:9e
Sending on   LPF/eth0/f4:ce:46:23:49:9e
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 21
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 19
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
[   88.815586] NET: Registered protocol family 10
[   88.822879] Segment Routing with IPv6
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1323 (syslogd)
. ok 
[ ok ] Starting system message bus: dbus.
[ ok ] Starting NFS common utilities: statd idmapd.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting NTP server: ntpd.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1322 (klogd)
. ok 
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 9 debian ttyS0

debian login:

root@debian:~# cat /etc/fw_env.config 
# MTD device name       Device offset   Env. size       Flash sector size       Number of sectors
#
# HP T5325 Thin Client
/dev/mtd2 0x00000 0x10000 0x10000
root@debian:~#

root@debian:~# fw_printenv 
Warning: Bad CRC, using default environment
bootargs=
bootcmd=
bootdelay=2
baudrate=115200
arch=sandbox
cpu=sandbox
board=sandbox
board_name=sandbox
stdin=serial,cros-ec-keyb,usbkbd
stdout=serial,vidconsole
stderr=serial,vidconsole
ethaddr=00:00:11:22:33:44
eth1addr=00:00:11:22:33:45
eth3addr=00:00:11:22:33:46
eth5addr=00:00:11:22:33:47
ipaddr=1.2.3.4
host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot_part; fi
boot_net_pci_enum=pci enum
boot_net_usb_start=usb start
usb_boot=usb start; if usb dev ${devnum}; then setenv devtype usb; run scan_dev_for_boot_part; fi
boot_prefixes=/ /boot/
boot_scripts=boot.scr.uimg boot.scr
boot_script_dhcp=boot.scr.uimg
boot_targets=host1 host0 
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}extlinux/extlinux.conf
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}extlinux/extlinux.conf; then echo Found ${prefix}extlinux/extlinux.conf; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done;
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done
bootcmd_host1=setenv devnum 1; run host_boot
bootcmd_host0=setenv devnum 0; run host_boot
distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done
bootm_size=0x10000000
kernel_addr_r=0x1000000
fdt_addr_r=0xc00000
ramdisk_addr_r=0x2000000
scriptaddr=0x1000
pxefile_addr_r=0x2000
root@debian:~#

root@debian:~# cat /etc/network/interfaces
auto lo eth0
iface lo inet loopback
iface eth0 inet dhcp
root@debian:~#

root@debian:~# ifconfig 
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::f6ce:46ff:fe23:499e  prefixlen 64  scopeid 0x20<link>
        ether f4:ce:46:23:49:9e  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 30  bytes 5852 (5.7 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 38  

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 2  bytes 140 (140.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2  bytes 140 (140.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

root@debian:~# 
Re: HP 5325 ethernet stopped working
September 16, 2018 03:00PM
Koen,

Ugrade the kernel to the latest linux-4.18.4-kirkwood-tld-1.

There was a network problem before in between. I might have forgot to update the release post about it.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: HP 5325 ethernet stopped working
September 16, 2018 03:20PM
Also try to unplug the ethernet cable and plug it back in.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: HP 5325 ethernet stopped working
September 16, 2018 03:40PM
Ok I've upgraded to the latest kernel but the issue persists. The problem is not just in Debian but I can't reach the network from uboot either.

T5325> ping 192.168.1.1
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.1.1 is not alive
T5325> 

Re: HP 5325 ethernet stopped working
September 16, 2018 04:36PM
Koen,

1. You are trying to ping the router

T5325> ping 192.168.1.1


But your U-boot env is not in the same subnet
ipaddr=192.168.0.41

2. In Debian, your envs probably were not in the right place.

Warning: Bad CRC, using default environment
...
eth1addr=00:00:11:22:33:45
Check
cat /etc/fv_env.config

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: HP 5325 ethernet stopped working
September 16, 2018 04:55PM
Ok I've changed the ip address in uboot but still get the same result:

T5325> setenv ipaddr 192.168.1.231
T5325> saveenv
Saving Environment to SPI Flash...
SF: Detected mx25l8005 with page size 256 Bytes, erase size 64 KiB, total 1 MiB
Erasing SPI flash...Writing to SPI flash...done
T5325> 
T5325> ping 192.168.1.1
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.1.1 is not alive
T5325>


I've re-created the file /etc/fw_env.config according to the instructions but still can't read the settings from debian.

root@debian:~# cat /etc/fw_env.config 
/dev/mtd0 0x00000 0x10000 0x10000
root@debian:~#

root@debian:~# fw_printenv 
Warning: Bad CRC, using default environment
bootargs=
bootcmd=
bootdelay=2
baudrate=115200
arch=sandbox
cpu=sandbox
board=sandbox
board_name=sandbox
stdin=serial,cros-ec-keyb,usbkbd
stdout=serial,vidconsole
stderr=serial,vidconsole
ethaddr=00:00:11:22:33:44
eth1addr=00:00:11:22:33:45
eth3addr=00:00:11:22:33:46
eth5addr=00:00:11:22:33:47
ipaddr=1.2.3.4
host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot_part; fi
boot_net_pci_enum=pci enum
boot_net_usb_start=usb start
usb_boot=usb start; if usb dev ${devnum}; then setenv devtype usb; run scan_dev_for_boot_part; fi
boot_prefixes=/ /boot/
boot_scripts=boot.scr.uimg boot.scr
boot_script_dhcp=boot.scr.uimg
boot_targets=host1 host0 
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}extlinux/extlinux.conf
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}extlinux/extlinux.conf; then echo Found ${prefix}extlinux/extlinux.conf; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done;
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done
bootcmd_host1=setenv devnum 1; run host_boot
bootcmd_host0=setenv devnum 0; run host_boot
distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done
bootm_size=0x10000000
kernel_addr_r=0x1000000
fdt_addr_r=0xc00000
ramdisk_addr_r=0x2000000
scriptaddr=0x1000
pxefile_addr_r=0x2000
root@debian:~#

I'm not sure what is going on. Should I try to reflash the 2 uboot files?

Koen
Re: HP 5325 ethernet stopped working
September 16, 2018 05:35PM
Koen,

> I'm not sure what is going on. Should I try to
> reflash the 2 uboot files?

I think you did not install u-boot and the envs correctly.


But let's try this first. Your envs are located in mtd2 now.

root@debian:~# cat /etc/fw_env.config
/dev/mtd2 0x00000 0x10000 0x10000

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: HP 5325 ethernet stopped working
September 17, 2018 03:28PM
Hi bodhi,

I'm getting the same output. I've clearly messed something up in uboot or the mtd stuff. Any idea what's best to do next? Restore stock mtd files? Or reflash uboot?

Koen

root@debian:~# cat /proc/mtd 
dev:    size   erasesize  name
mtd0: 00080000 00010000 "uboot"
mtd1: 00040000 00010000 "sdd_firmware"
mtd2: 00010000 00010000 "uboot_env"
mtd3: 00010000 00010000 "permanent_uboot_env"
mtd4: 00010000 00010000 "hp_env"
root@debian:~#

root@debian:~# cat /etc/fw_env.config 
/dev/mtd2 0x00000 0x10000 0x10000
root@debian:~# 
root@debian:~# 
root@debian:~# fw_printenv 
Warning: Bad CRC, using default environment
bootargs=
bootcmd=
bootdelay=2
baudrate=115200
arch=sandbox
cpu=sandbox
board=sandbox
board_name=sandbox
stdin=serial,cros-ec-keyb,usbkbd
stdout=serial,vidconsole
stderr=serial,vidconsole
ethaddr=00:00:11:22:33:44
eth1addr=00:00:11:22:33:45
eth3addr=00:00:11:22:33:46
eth5addr=00:00:11:22:33:47
ipaddr=1.2.3.4
host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot_part; fi
boot_net_pci_enum=pci enum
boot_net_usb_start=usb start
usb_boot=usb start; if usb dev ${devnum}; then setenv devtype usb; run scan_dev_for_boot_part; fi
boot_prefixes=/ /boot/
boot_scripts=boot.scr.uimg boot.scr
boot_script_dhcp=boot.scr.uimg
boot_targets=host1 host0 
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}extlinux/extlinux.conf
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}extlinux/extlinux.conf; then echo Found ${prefix}extlinux/extlinux.conf; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done;
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done
bootcmd_host1=setenv devnum 1; run host_boot
bootcmd_host0=setenv devnum 0; run host_boot
distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done
bootm_size=0x10000000
kernel_addr_r=0x1000000
fdt_addr_r=0xc00000
ramdisk_addr_r=0x2000000
scriptaddr=0x1000
pxefile_addr_r=0x2000
root@debian:~# 
Re: HP 5325 ethernet stopped working
September 17, 2018 03:56PM
Koen,

Your boot log above indicated that both u-boot and the envs are OK:

U-Boot 2017.07-tld-1 (Nov 01 2017 - 00:58:19 -0700)
HP Thin Client T5325

SoC:   Kirkwood 88F6281_A0
SPI:   ready
DRAM:  512 MiB
WARNING: Caches not enabled
MMC:   
SF: Detected mx25l8005 with page size 256 Bytes, erase size 64 KiB, total 1 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
88E3016 Initialized on egiga0
Hit any key to stop autoboot:  0 
T5325>  printenv
arcNumber=2846
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
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_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
device=0:1
devices=usb
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-t5325.dtb
ethact=egiga0
ethaddr=f4:ce:46:23:49:9e
if_netconsole=ping $serverip
ipaddr=192.168.0.41
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtdparts=mtdparts=spi0.0:512K(uboot),256K(sdd_firmware),64K(uboot_env),64K(permanent_uboot_env),64K(hp_env)
preboot_nc=run if_netconsole start_netconsole
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
serverip=192.168.0.220
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=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
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
usb_ready_retry=15

Environment size: 2824/65532 bytes
T5325>

And the mtds look OK

root@debian:~# cat /proc/mtd 
dev:    size   erasesize  name
mtd0: 00080000 00010000 "uboot"
mtd1: 00040000 00010000 "sdd_firmware"
mtd2: 00010000 00010000 "uboot_env"
mtd3: 00010000 00010000 "permanent_uboot_env"
mtd4: 00010000 00010000 "hp_env"

So the env location should be

echo "/dev/mtd2 0x00000 0x10000 0x10000" > /etc/fw_env.config

The CRC error is weird (I cannot see why). You could reflash the envs image from step 5. And then do step 6. Before reboot, do a fw_printenv to see if th envs can be listed.

B. Installation from the latest Debian rootfs 

- If you have installed the latest Debian rootfs, but your u-boot is still stock, then follow all the steps in this section B. 
- If you are upgrading from uboot.2016.05-tld-1 then you only need to do step 1 to step 4 in this section B. 

Steps: 

1. Boot into Debian rootfs, extract u-boot images 

cd /boot
tar -xf uboot.2017.07-tld-1.t5325.bodhi.tar
tar -xf uboot.2016.05-tld-1.environment.bodhi.tar

2. Verify the MTD flash definition in your Debian rootfs. Note the mtd0 and mtd2 definition, they must be identical to your current mtd0 and mtd2. Also note that stock mtd definition is different. So if your mtdpart defintion is still stock, please post question before continue. 

cat /proc/mtd 
dev:    size   erasesize  name
mtd0: 00080000 00010000 "uboot"
mtd1: 00040000 00010000 "sdd_firmware"
mtd2: 00010000 00010000 "uboot_env"
mtd3: 00010000 00010000 "permanent_uboot_env"
mtd4: 00010000 00010000 "hp_env"

3. Save your current u-boot envs and backup your current mtds for future restoration if needed. 

cd /boot
fw_printenv > current_envs.text
dd if=/dev/mtd0 of=t5325.mtd0 bs=512k conv=sync
dd if=/dev/mtd2 of=t5325.mtd2 bs=64k conv=sync


4. Flash u-boot to mtd0 

flash_unlock /dev/mtd0
flashcp -v uboot.2017.07-tld-1.t5325.mtd0.kwb /dev/mtd0

Expected Output 

Erasing blocks: 8/8 (100%)
Writing data: 512k/0k (100%)
Verifying data: 512k/0k (100%)

If there is any error, stop here and post for help in recovery 

If you are upgrading from uboot.2016.05-tld-1, then you are done with installtion here. See step 7 for what u-boot banner should look like for confirmation after reboot. 


5. Flash u-boot default envs to mtd2. 

flash_unlock /dev/mtd2
flashcp -v uboot.2016.05-tld-1.environment.64K.img  /dev/mtd2

Expected Output 

Erasing blocks: 1/1 (100%)
Writing data: 64k/64k (100%)
Verifying data: 64k/64k (100%)

If there is any error, stop here and post for help in recovery 

6. And add fw_env.config to your rootfs. And then reference your saved current_envs.txt in step 2 to restore box specific info in u-boot envs. 

a. Add fw_env.config 

echo "/dev/mtd2 0x00000 0x10000 0x10000" > /etc/fw_env.config

b. Modify envs and also setup netconsole. Replace xx below with your box specific settings. 

fw_setenv arcNumber '2846'
fw_setenv ethaddr 'xx:xx:xx:xx:xx:xx'
fw_setenv devices 'usb ide'
fw_setenv dtb_file '/boot/dts/kirkwood-t5325.dtb'

Setup netconsole envs (to activate later in Debian). Replace xx below with your box specific settings. 

fw_setenv 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'
fw_setenv ipaddr    'xxx.xxx.x.xxx'
fw_setenv serverip 'xxx.xxx.x.xxx'

c. Remove envs 

fw_setenv mtdids 
fw_setenv partition 
fw_setenv machid

List the envs

fw_printenv

7. Done. 

Upon reboot, on serial/net console, u-boot banner should show 

U-Boot 2017.07-tld-1 (Nov 01 2017 - 00:58:19 -0700)
HP Thin Client T5325

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: HP 5325 ethernet stopped working
October 23, 2018 10:05PM
bodhi,

I also have a T5325 that was running fine for about a month when ethernet all of of a sudden stopped working. Not sure if I should try and reflash uboot or env.
Please advice.

U-Boot 2017.07-tld-1 (Nov 01 2017 - 00:58:19 -0700)
HP Thin Client T5325

SoC:   Kirkwood 88F6281_A1
SPI:   ready
DRAM:  512 MiB
WARNING: Caches not enabled
MMC:   
SF: Detected sst25vf080b with page size 256 Bytes, erase size 64 KiB, total 1 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
88E3016 Initialized on egiga0
Hit any key to stop autoboot:  0

T5325> printenv
arcNumber=2846
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
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_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-t5325.dtb
ethact=egiga0
ethaddr=f4:ce:xx:xx:xx:xx
if_netconsole=ping $serverip
ipaddr=192.168.1.253
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtdparts=mtdparts=spi0.0:512K(uboot),256K(sdd_firmware),64K(uboot_env),64K(permanent_uboot_env),64K(hp_env)
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
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
serverip=192.168.1.254
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=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
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
usb_ready_retry=15

Environment size: 2970/65532 bytes

T5325> boot
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

Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: SM22 Firm: I052 Ser#: (03)5526888-20080228
            Type: Hard Disk
            Capacity: 463.6 MB = 0.4 GB (949536 x 512)
Unknown command 'mmc' - try 'help'

Partition Map for USB device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	4012032   	5865cf55-01	83

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **

Partition Map for IDE device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	63        	949473    	00000000-01	83 Boot
Unknown command 'mmc' - try 'help'
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 691 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
4158144 bytes read in 1028 ms (3.9 MiB/s)
loading uInitrd ...
8108139 bytes read in 1141 ms (6.8 MiB/s)
loading DTB /boot/dts/kirkwood-t5325.dtb ...
11919 bytes read in 3275 ms (2.9 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.18.4-kirkwood-tld-1
   Created:      2018-10-24   0:50:21 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4158080 Bytes = 4 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.18.4-kirkwood-tld-1
   Created:      2018-10-24   0:50:33 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    8108075 Bytes = 7.7 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 0f844000, end 0ffff82b ... OK
   Loading Device Tree to 0f83e000, end 0f843e8e ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.18.4-kirkwood-tld-1 (root@tldDebian) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)) #1 PREEMPT Fri Aug 24 22:13:40 PDT 2018
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: HP t5325 Thin Client
[    0.000000] Memory policy: Data cache writeback
[    0.000000] random: get_random_bytes called from start_kernel+0x78/0x4e8 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=spi0.0:512K(uboot),256K(sdd_firmware),64K(uboot_env),64K(permanent_uboot_env),64K(hp_env)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 498392K/524288K available (8192K kernel code, 799K rwdata, 2148K rodata, 1024K init, 279K bss, 25896K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (9184 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 800 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 280 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	Tasks RCU enabled.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000010] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000047] Switching to timer-based delay loop, resolution 5ns
[    0.000616] Console: colour dummy device 80x30
[    0.000657] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000683] pid_max: default: 32768 minimum: 301
[    0.001013] Security Framework initialized
[    0.001165] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001190] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.002247] CPU: Testing write buffer coherency: ok
[    0.003707] Setting up static identity map for 0x100000 - 0x100058
[    0.003984] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.004233] Hierarchical SRCU implementation.
[    0.007722] devtmpfs: initialized
[    0.012417] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.012448] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.012759] prandom: seed boundary self test passed
[    0.016945] prandom: 100 self tests passed
[    0.016958] pinctrl core: initialized pinctrl subsystem
[    0.018236] NET: Registered protocol family 16
[    0.018731] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.019446] audit: initializing netlink subsys (disabled)
[    0.019775] audit: type=2000 audit(0.010:1): state=initialized audit_enabled=0 res=1
[    0.021061] cpuidle: using governor ladder
[    0.021161] cpuidle: using governor menu
[    0.021648] Feroceon L2: Enabling L2
[    0.021695] Feroceon L2: Cache support initialised.
[    0.022045] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.027518] No ATAGs?
[    0.036137] vgaarb: loaded
[    0.036496] SCSI subsystem initialized
[    0.036929] usbcore: registered new interface driver usbfs
[    0.036991] usbcore: registered new interface driver hub
[    0.037056] usbcore: registered new device driver usb
[    0.037197] pps_core: LinuxPPS API ver. 1 registered
[    0.037208] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.037234] PTP clock support registered
[    0.038186] clocksource: Switched to clocksource orion_clocksource
[    0.146084] VFS: Disk quotas dquot_6.6.0
[    0.146172] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.155429] NET: Registered protocol family 2
[    0.156181] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    0.156212] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.156269] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.156322] TCP: Hash tables configured (established 4096 bind 4096)
[    0.156411] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.156437] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.156627] NET: Registered protocol family 1
[    0.157241] RPC: Registered named UNIX socket transport module.
[    0.157253] RPC: Registered udp transport module.
[    0.157261] RPC: Registered tcp transport module.
[    0.157268] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.157515] Unpacking initramfs...
[    0.880171] Freeing initrd memory: 7920K
[    0.880328] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.881454] Initialise system trusted keyrings
[    0.881508] Key type blacklist registered
[    0.881717] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.881826] zbud: loaded
[    0.882811] NFS: Registering the id_resolver key type
[    0.882841] Key type id_resolver registered
[    0.882850] Key type id_legacy registered
[    0.882870] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.882880] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.883172] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.883386] fuse init (API version 7.27)
[    0.883753] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.883944] orangefs_init: module version upstream loaded
[    0.883956] SGI XFS with ACLs, security attributes, realtime, scrub, no debug enabled
[    2.558193] random: fast init done
[    6.812267] Key type asymmetric registered
[    6.812285] Asymmetric key parser 'x509' registered
[    6.812359] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    6.812372] io scheduler noop registered
[    6.812382] io scheduler deadline registered
[    6.812482] io scheduler cfq registered (default)
[    6.813913] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    6.815882] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[    6.815903] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    6.815918] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    6.815933] pci_bus 0000:00: root bus resource [bus 00-ff]
[    6.817324] PCI: bus0: Fast back to back transfers disabled
[    6.817352] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    6.817638] pci 0000:01:00.0: enabling Extended Tags
[    6.817871] pci 0000:01:00.0: vgaarb: VGA device added: decodes=io+mem,owns=none,locks=none
[    6.839318] PCI: bus1: Fast back to back transfers disabled
[    6.839394] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe5ffffff]
[    6.839411] pci 0000:00:01.0: BAR 13: assigned [io  0x10000-0x10fff]
[    6.839431] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe3ffffff pref]
[    6.839452] pci 0000:01:00.0: BAR 1: assigned [mem 0xe4000000-0xe403ffff]
[    6.839470] pci 0000:01:00.0: BAR 2: assigned [io  0x10000-0x1007f]
[    6.839487] pci 0000:00:01.0: PCI bridge to [bus 01]
[    6.839502] pci 0000:00:01.0:   bridge window [io  0x10000-0x10fff]
[    6.839520] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe5ffffff]
[    6.839633] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[    6.840222] mv_xor f1060800.xor: Marvell shared XOR driver
[    6.898983] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    6.899214] mv_xor f1060900.xor: Marvell shared XOR driver
[    6.958982] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    6.959412] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    6.960663] console [ttyS0] disabled
[    6.960734] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 27, base_baud = 12500000) is a 16550A
[    7.719735] console [ttyS0] enabled
[    7.730237] loop: module loaded
[    7.733941] sata_mv f1080000.sata: slots 32 ports 2
[    7.741500] scsi host0: sata_mv
[    7.745100] scsi host1: sata_mv
[    7.748496] ata1: SATA max UDMA/133 irq 35
[    7.752611] ata2: SATA max UDMA/133 irq 35
[    7.758243] m25p80 spi0.0: found sst25vf080b, expected m25p80
[    7.764072] m25p80 spi0.0: sst25vf080b (1024 Kbytes)
[    7.769124] 5 cmdlinepart partitions found on MTD device spi0.0
[    7.775072] Creating 5 MTD partitions on "spi0.0":
[    7.779922] 0x000000000000-0x000000080000 : "uboot"
[    7.785776] 0x000000080000-0x0000000c0000 : "sdd_firmware"
[    7.792229] 0x0000000c0000-0x0000000d0000 : "uboot_env"
[    7.798371] 0x0000000d0000-0x0000000e0000 : "permanent_uboot_env"
[    7.805369] 0x0000000e0000-0x0000000f0000 : "hp_env"
[    7.812297] libphy: Fixed MDIO Bus: probed
[    7.817155] libphy: orion_mdio_bus: probed
[    7.826374] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    7.834586] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address f4:ce:xx:xx:xx:xx
[    7.843540] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.850228] ehci-pci: EHCI PCI platform driver
[    7.854750] ehci-orion: EHCI orion driver
[    7.859025] orion-ehci f1050000.ehci: EHCI Host Controller
[    7.864564] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    7.872485] orion-ehci f1050000.ehci: irq 31, io mem 0xf1050000
[    7.908222] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    7.914522] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.18
[    7.922858] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    7.930137] usb usb1: Product: EHCI Host Controller
[    7.935043] usb usb1: Manufacturer: Linux 4.18.4-kirkwood-tld-1 ehci_hcd
[    7.941794] usb usb1: SerialNumber: f1050000.ehci
[    7.947088] hub 1-0:1.0: USB hub found
[    7.950954] hub 1-0:1.0: 1 port detected
[    7.955572] usbcore: registered new interface driver usb-storage
[    7.961973] mousedev: PS/2 mouse device common for all mice
[    7.968076] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    7.975257] i2c /dev entries driver
[    7.980860] hidraw: raw HID events driver (C) Jiri Kosina
[    7.986661] drop_monitor: Initializing network drop monitor service
[    7.993343] NET: Registered protocol family 17
[    7.997888] Key type dns_resolver registered
[    8.002982] registered taskstats version 1
[    8.007103] Loading compiled-in X.509 certificates
[    8.012043] zswap: loaded using pool lzo/zbud
[    8.038987] Key type big_key registered
[    8.052842] Key type encrypted registered
[    8.058991] rtc-mv f1010300.rtc: setting system clock to 2018-10-24 03:58:07 UTC (1540353487)
[    8.248235] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    8.256888] ata1.00: ATA-7: SM224, I0521, max UDMA/133
[    8.262083] ata1.00: 949536 sectors, multi 0: LBA 
[    8.269337] ata1.00: configured for UDMA/133
[    8.284129] scsi 0:0:0:0: Direct-Access     ATA      SM224            1    PQ: 0 ANSI: 5
[    8.293265] sd 0:0:0:0: [sda] 949536 512-byte logical blocks: (486 MB/464 MiB)
[    8.301103] sd 0:0:0:0: [sda] Write Protect is off
[    8.306099] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    8.316946]  sda: sda1
[    8.319388] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    8.327494] sd 0:0:0:0: [sda] Attached SCSI disk
[    8.528750] usb 1-1: New USB device found, idVendor=0424, idProduct=2514, bcdDevice= 0.00
[    8.537004] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    8.544892] hub 1-1:1.0: USB hub found
[    8.548865] hub 1-1:1.0: 4 ports detected
[    8.628943] ata2: SATA link down (SStatus 0 SControl F300)
[    8.647441] Freeing unused kernel memory: 1024K
[    8.652626] Checked W+X mappings: passed, no W+X pages found
Loading, please wait...
starting version 232
[    8.761030] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    8.775466] random: udevadm: uninitialized urandom read (16 bytes read)
[    8.783044] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    8.868287] usb 1-1.4: new high-speed USB device number 3 using orion-ehci
[    9.096267] usb 1-1.4: New USB device found, idVendor=058f, idProduct=6387, bcdDevice= 1.07
[    9.110463] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    9.117858] usb 1-1.4: Product: Mass Storage
[    9.135883] usb 1-1.4: Manufacturer: Generic
[    9.145497] usb 1-1.4: SerialNumber: F6059658
[    9.153864] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[    9.172231] scsi host2: usb-storage 1-1.4:1.0
[    9.636897] usbcore: registered new interface driver uas
Begin: Loading essential drivers ... done.
[   10.250596] scsi 2:0:0:0: Direct-Access     Generic  Flash Disk       8.07 PQ: 0 ANSI: 4
[   10.265929] sd 2:0:0:0: [sdb] 4014080 512-byte logical blocks: (2.06 GB/1.91 GiB)
[   10.279313] sd 2:0:0:0: [sdb] Write Protect is off
[   10.290646] sd 2:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   10.346029]  sdb: sdb1
[   10.354796] sd 2:0:0:0: [sdb] Attached SCSI removable disk
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /dev/sdb1] fsck.ext3 -a -C0 /dev/sdb1 
rootfs: clean, 17321/125440 files, 200405/501504 blocks
done.
[   19.905832] EXT4-fs (sdb1): mounting ext3 file system using the ext4 subsystem
[   19.925973] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Setting hostname to 'debian'...done.
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
. ok 
[ ok ] Synthesizing the initial hotplug events...[   22.199839] input: gpio_keys as /devices/platform/gpio_keys/input/input0
done.
[....] Waiting for /dev to be fully populated...[   22.545224] xgifb: module is from the staging directory, the quality is unknown, you have been warned.
[   22.597825] xgifb 0000:01:00.0: Relocate IO address: 10000 [00010030]
[   22.631066] orion_wdt: Initial timeout 21 sec
[   22.637621] xgifb 0000:01:00.0: enabling device (0140 -> 0143)
[   22.692116] marvell-cesa f1030000.crypto: CESA device successfully registered
[   22.708453] xgifb 0000:01:00.0: chipid = 32
[   22.733950] xgifb: SR14=51 DramSzie 2000000 ChannelNum 1
[   22.766281] xgifb 0000:01:00.0: Framebuffer at 0xe0000000, mapped to 0x(ptrval), size 32768k
[   22.789633] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   22.827975] sd 2:0:0:0: Attached scsi generic sg1 type 0
[   22.834239] xgifb 0000:01:00.0: MMIO at 0xe4000000, mapped to 0x(ptrval), size 256k
[   22.959959] xgifb 0000:01:00.0: No or unknown bridge type detected
[   22.989980] xgifb: Default mode is 800x600x16 (60Hz)
[   23.046743] Console: switching to colour frame buffer device 100x37
[   23.476954] random: crng init done
[   23.476964] random: 7 urandom warning(s) missed due to ratelimiting
done.
[ ok ] Activating swap:.
[   24.292712] EXT4-fs (sdb1): re-mounted. Opts: errors=remount-ro
[ ok ] Will now activate lvm and md swap:done.
[info] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=rootfs is mounted
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables...done.
[ ok ] Initializing random number generator...done.
[   27.161876] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/f4:ce:xx:xx:xx:xx
Sending on   LPF/eth0/f4:ce:xx:xx:xx:xx
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 21
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
[   88.706124] NET: Registered protocol family 10
[   88.713696] Segment Routing with IPv6
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1294 (syslogd)
. ok 
[ ok ] Starting system message bus: dbus.
[ ok ] Starting NFS common utilities: statd idmapd.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting NTP server: ntpd.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1296 (klogd)
. ok 
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 9 debian ttyS0

debian login:

root@debian:~# cat /proc/mtd 
dev:    size   erasesize  name
mtd0: 00080000 00001000 "uboot"
mtd1: 00040000 00001000 "sdd_firmware"
mtd2: 00010000 00001000 "uboot_env"
mtd3: 00010000 00001000 "permanent_uboot_env"
mtd4: 00010000 00001000 "hp_env"

root@debian:~# cat /etc/fw_env.config 
# MTD device name	Device offset	Env. size	Flash sector size	Number of sectors
/dev/mtd2 0x00000 0x10000 0x10000

Thanks for your time.



Edited 1 time(s). Last edit at 10/25/2018 11:20AM by fortis91.
Re: HP 5325 ethernet stopped working
October 23, 2018 11:56PM
fortis91,

I recall there was some network problem that I've fixed in some kernel version, which tried to initialize the network card at 1Gbs. The latest version should be OK.

First thing to try is to unplug the ethernet cable and replug it. It will bring the network down and up again, and restablish the connection.

And as a second test, also try to unplug power and reboot the box. Your router might still have some old settings remained.

If that did not help, I need to look at my notes to see what could cause this. My T5325 is running OK with network working.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: HP 5325 ethernet stopped working
October 24, 2018 02:36AM
fortis91,

Do you connect your T5325 with a Gbtit switch/router?

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: HP 5325 ethernet stopped working
October 24, 2018 04:45AM
if i remember rightly you may need to install ethtool to manually set the Network Speed and Duplex, this was only necessary on a particular kernel release.
Re: HP 5325 ethernet stopped working
October 24, 2018 05:44AM
bodhi Wrote:
-------------------------------------------------------
bodhi,

> fortis91,
>
> I recall there was some network problem that I've
> fixed in some kernel version, which tried to
> initialize the network card at 1Gbs. The latest
> version should be OK.
>

I'm running the latest;
root@debian:~# uname -a
Linux debian 4.18.4-kirkwood-tld-1 #1 PREEMPT Fri Aug 24 22:13:40 PDT 2018 armv5tel GNU/Linux

> First thing to try is to unplug the ethernet cable
> and replug it. It will bring the network down and
> up again, and restablish the connection.
>
> And as a second test, also try to unplug power and
> reboot the box. Your router might still have some
> old settings remained.
>

I went through the T5325 uboot thread, did a few combination of unplug cable, power and reboot. I even reboot router to clear any only setting.
Tried static ip with unplugging cable, didn't seem to work.

> If that did not help, I need to look at my notes
> to see what could cause this. My T5325 is running
> OK with network working.
Re: HP 5325 ethernet stopped working
October 24, 2018 05:48AM
bodhi Wrote:
-------------------------------------------------------
> fortis91,
>
> Do you connect your T5325 with a Gbtit
> switch/router?

Yes, I initially had it on a connected directly to a Gigabit router which worked for awhile.
I now have it connected to 100 Mbps.
Re: HP 5325 ethernet stopped working
October 24, 2018 05:57AM
Gravelrash Wrote:
-------------------------------------------------------
Gravelrash,
Thanks for the input.

> if i remember rightly you may need to install
> ethtool to manually set the Network Speed and
> Duplex, this was only necessary on a particular
> kernel release.

Tried a few combinations of ethtool
root@debian:~# ethtool -s eth0 speed 100 duplex full            
root@debian:~# ifdown eth0 && ifup eth0
Killed old client process
Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/f4:ce:xx:xx:xx:xx
Sending on   LPF/eth0/f4:ce:xx:xx:xx:xx
Sending on   Socket/fallback
DHCPRELEASE on eth0 to 192.168.0.1 port 67
send_packet: Network is unreachable
send_packet: please consult README file regarding broadcast address.
dhclient.c:2733: Failed to send 300 byte long packet over fallback interface.
Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

[  718.252874] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Listening on LPF/eth0/f4:ce:xx:xx:xx:xx
Sending on   LPF/eth0/f4:ce:xx:xx:xx:xx
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
[  722.408533] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

root@debian:~# ethtool -s eth0 speed 100 duplex full autoneg off
root@debian:~# ifdown eth0 && ifup eth0
Killed old client process
Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/f4:ce:xx:xx:xx:xx
Sending on   LPF/eth0/f4:ce:xx:xx:xx:xx
Sending on   Socket/fallback
DHCPRELEASE on eth0 to 192.168.0.1 port 67
send_packet: Network is unreachable
send_packet: please consult README file regarding broadcast address.
dhclient.c:2733: Failed to send 300 byte long packet over fallback interface.
Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

[  352.112161] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
[  352.122566] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Listening on LPF/eth0/f4:ce:xx:xx:xx:xx
Sending on   LPF/eth0/f4:ce:xx:xx:xx:xx
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
[  353.048285] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
No DHCPOFFERS received.
No working leases in persistent database - sleeping

I also notice that when unplugging the ethernet cable the port lights up, while plugging it back in the light goes off.
A reboot activates the light too.



Edited 1 time(s). Last edit at 10/25/2018 11:23AM by fortis91.
Re: HP 5325 ethernet stopped working
October 24, 2018 01:26PM
Yesterday I shutdown and rebooted my T5325, which has 4.18.4-kirkwood-tld-1, to confirm. Network is is working fine.

I've installed the new kernel 4.19.0 that I've just built. Network is is working fine also.

The fact that you have eth0 up and running like this, I don't think it has anything to do with kernel or DTB. It must be configuration.

[  352.112161] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
[  352.122566] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
...

[  353.048285] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

What Gravelrash recalled was an old problem in previous kernel that caused the wrong speed to negotiate. I've fixed that with a combination of u-boot and kernel enhancement.

Try these 2 tests:

1. Try to ping the network in u-boot console

Depending on your router, if it is 192.168.0.1

ping 192.168.0.1

If you can ping the network, then it is somewhere in the kernel rootfs that cause this problem.

2. a different ethernet cable.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: HP 5325 ethernet stopped working
October 24, 2018 02:13PM
With previous tests I was not able to ping the router (192.168.1.1). I will try again later this evening.

Ping result:
T5325> printenv ipaddr
ipaddr=192.168.1.253
T5325> ping 192.168.1.1
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.1.1 is not alive

I've also tried a couple different cables, also connected to a different router.
I'm not sure what other configuration could be causing the issue unless something got corrupted. The ethernet connection just died overnight.

I'm not opposed to starting over and flashing again, however I noticed one difference in the erasesize with my MTD flash definition and the one your specified in the instructions. Not sure if this is an issue.

Mine:
root@debian:~# cat /proc/mtd 
dev:    size   erasesize  name
mtd0: 00080000 00001000 "uboot"
mtd1: 00040000 00001000 "sdd_firmware"
mtd2: 00010000 00001000 "uboot_env"
mtd3: 00010000 00001000 "permanent_uboot_env"
mtd4: 00010000 00001000 "hp_env"

In your instructions:
cat /proc/mtd 
dev:    size   erasesize  name
mtd0: 00080000 00010000 "uboot"
mtd1: 00040000 00010000 "sdd_firmware"
mtd2: 00010000 00010000 "uboot_env"
mtd3: 00010000 00010000 "permanent_uboot_env"
mtd4: 00010000 00010000 "hp_env"



Edited 1 time(s). Last edit at 10/24/2018 04:42PM by fortis91.
Re: HP 5325 ethernet stopped working
October 24, 2018 05:53PM
Hi fortis91,

I have the same problem and have not found a solution yet but will have another look at the issue. Can you share the setting of /etc/fw_config that is used to be able to adjust uboot variables from Debian?

One thing that does stand out in your dmesg log is the following line:

[    0.022045] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set

I'm not sure if this is normal or not. Maybe someone else can post the dmesg of a working device so we can compare if there are any differences?

Koen
Re: HP 5325 ethernet stopped working
October 24, 2018 05:59PM
Koen Wrote:
-------------------------------------------------------
> Hi fortis91,
>
> I have the same problem and have not found a
> solution yet but will have another look at the
> issue. Can you share the setting of /etc/fw_config
> that is used to be able to adjust uboot variables
> from Debian?
>
> One thing that does stand out in your dmesg log is
> the following line:
>
>
> [    0.022045] [Firmware Info]:
> /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0:
> local-mac-address is not set
>

The warning above is OK. Not an error.


>
> I'm not sure if this is normal or not. Maybe
> someone else can post the dmesg of a working
> device so we can compare if there are any
> differences?
>
> Koen

I will post it in a few hours.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: HP 5325 ethernet stopped working
October 25, 2018 12:14AM
Ok, so I set it back to the kernel 4.18.4-kirkwood-tld-1, and cold boot it.


root@T5325:~# dmesg 
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.18.4-kirkwood-tld-1 (root@tldDebian) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)) #1 PREEMPT Fri Aug 24 22:13:40 PDT 2018
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: HP t5325 Thin Client
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 131072
[    0.000000]   Normal zone: 1024 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 131072 pages, LIFO batch:31
[    0.000000] random: get_random_bytes called from start_kernel+0x78/0x4e8 with crng_init=0
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=spi0.0:512K(uboot),256K(sdd_firmware),64K(uboot_env),64K(permanent_uboot_env),64K(hp_env) earlyprintk=serial
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 499068K/524288K available (8192K kernel code, 799K rwdata, 2148K rodata, 1024K init, 279K bss, 25220K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
    lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0x(ptrval) - 0x(ptrval)   (9184 kB)
      .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
      .data : 0x(ptrval) - 0x(ptrval)   ( 800 kB)
       .bss : 0x(ptrval) - 0x(ptrval)   ( 280 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	Tasks RCU enabled.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000010] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.007903] Switching to timer-based delay loop, resolution 5ns
[    0.014407] Console: colour dummy device 80x30
[    0.018944] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.029570] pid_max: default: 32768 minimum: 301
[    0.034544] Security Framework initialized
[    0.038858] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.045517] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.053685] CPU: Testing write buffer coherency: ok
[    0.060076] Setting up static identity map for 0x100000 - 0x100058
[    0.066552] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.072014] Hierarchical SRCU implementation.
[    0.079935] devtmpfs: initialized
[    0.087829] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.097802] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.104313] prandom: seed boundary self test passed
[    0.113440] prandom: 100 self tests passed
[    0.117561] pinctrl core: initialized pinctrl subsystem
[    0.124144] NET: Registered protocol family 16
[    0.129172] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.136787] audit: initializing netlink subsys (disabled)
[    0.143443] audit: type=2000 audit(0.130:1): state=initialized audit_enabled=0 res=1
[    0.151571] cpuidle: using governor ladder
[    0.155794] cpuidle: using governor menu
[    0.160314] Feroceon L2: Enabling L2
[    0.163943] Feroceon L2: Cache support initialised.
[    0.169242] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.185175] No ATAGs?
[    0.193850] vgaarb: loaded
[    0.199277] SCSI subsystem initialized
[    0.203242] libata version 3.00 loaded.
[    0.203482] usbcore: registered new interface driver usbfs
[    0.209130] usbcore: registered new interface driver hub
[    0.214537] usbcore: registered new device driver usb
[    0.219809] pps_core: LinuxPPS API ver. 1 registered
[    0.224797] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.234010] PTP clock support registered
[    0.238921] clocksource: Switched to clocksource orion_clocksource
[    0.352638] VFS: Disk quotas dquot_6.6.0
[    0.356653] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.372888] NET: Registered protocol family 2
[    0.378004] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    0.385800] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.392984] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.399536] TCP: Hash tables configured (established 4096 bind 4096)
[    0.406008] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.411910] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.418406] NET: Registered protocol family 1
[    0.423411] RPC: Registered named UNIX socket transport module.
[    0.429438] RPC: Registered udp transport module.
[    0.434163] RPC: Registered tcp transport module.
[    0.438880] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.445384] PCI: CLS 0 bytes, default 32
[    0.445622] Unpacking initramfs...
[    1.107380] Freeing initrd memory: 7248K
[    1.111578] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.119297] Initialise system trusted keyrings
[    1.123804] Key type blacklist registered
[    1.128025] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    1.134666] zbud: loaded
[    1.138176] NFS: Registering the id_resolver key type
[    1.143346] Key type id_resolver registered
[    1.147547] Key type id_legacy registered
[    1.151641] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.158369] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.165066] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    1.172376] fuse init (API version 7.27)
[    1.176674] orangefs_debugfs_init: called with debug mask: :none: :0:
[    1.183342] orangefs_init: module version upstream loaded
[    1.188767] SGI XFS with ACLs, security attributes, realtime, scrub, no debug enabled
[    2.558929] random: fast init done
[    7.128284] Key type asymmetric registered
[    7.132722] Asymmetric key parser 'x509' registered
[    7.137688] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    7.145283] io scheduler noop registered
[    7.149285] io scheduler deadline registered
[    7.153676] io scheduler cfq registered (default)
[    7.159901] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    7.169276] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[    7.176887] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    7.183220] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    7.190151] pci_bus 0000:00: root bus resource [bus 00-ff]
[    7.195665] pci_bus 0000:00: scanning bus
[    7.195761] pci 0000:00:01.0: [11ab:6281] type 01 class 0x060400
[    7.197031] pci_bus 0000:00: fixups for bus
[    7.197044] PCI: bus0: Fast back to back transfers disabled
[    7.202677] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 0
[    7.202687] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    7.210753] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 1
[    7.210875] pci_bus 0000:01: scanning bus
[    7.210915] pci 0000:01:00.0: [18ca:0027] type 00 class 0x030000
[    7.210951] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x03ffffff pref]
[    7.210968] pci 0000:01:00.0: reg 0x14: [mem 0x00000000-0x0003ffff]
[    7.210983] pci 0000:01:00.0: reg 0x18: [io  0x0000-0x007f]
[    7.211022] pci 0000:01:00.0: enabling Extended Tags
[    7.216069] pci 0000:01:00.0: supports D1 D2
[    7.216229] pci 0000:01:00.0: vgaarb: VGA device added: decodes=io+mem,owns=none,locks=none
[    7.250025] pci_bus 0000:01: fixups for bus
[    7.250038] PCI: bus1: Fast back to back transfers disabled
[    7.255640] pci_bus 0000:01: bus scan returning with max=01
[    7.255652] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    7.255665] pci_bus 0000:00: bus scan returning with max=01
[    7.255701] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe5ffffff]
[    7.262641] pci 0000:00:01.0: BAR 13: assigned [io  0x10000-0x10fff]
[    7.269056] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe3ffffff pref]
[    7.276324] pci 0000:01:00.0: BAR 1: assigned [mem 0xe4000000-0xe403ffff]
[    7.283172] pci 0000:01:00.0: BAR 2: assigned [io  0x10000-0x1007f]
[    7.289491] pci 0000:00:01.0: PCI bridge to [bus 01]
[    7.294481] pci 0000:00:01.0:   bridge window [io  0x10000-0x10fff]
[    7.300800] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe5ffffff]
[    7.307695] pcieport 0000:00:01.0: assign IRQ: got 0
[    7.307714] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[    7.313881] pcieport 0000:00:01.0: enabling bus mastering
[    7.314432] mv_xor f1060800.xor: Marvell shared XOR driver
[    7.379726] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    7.387281] mv_xor f1060900.xor: Marvell shared XOR driver
[    7.449720] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    7.457494] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    7.465158] console [ttyS0] disabled
[    7.468811] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 27, base_baud = 12500000) is a 16550A
[    7.477918] console [ttyS0] enabled
[    7.484973] bootconsole [earlycon0] disabled
[    7.500599] loop: module loaded
[    7.504047] sata_mv f1080000.sata: version 1.28
[    7.504301] sata_mv f1080000.sata: slots 32 ports 2
[    7.511870] scsi host0: sata_mv
[    7.515485] scsi host1: sata_mv
[    7.518816] ata1: SATA max UDMA/133 irq 35
[    7.522995] ata2: SATA max UDMA/133 irq 35
[    7.528602] m25p80 spi0.0: m25p80 (1024 Kbytes)
[    7.533240] 5 cmdlinepart partitions found on MTD device spi0.0
[    7.539210] Creating 5 MTD partitions on "spi0.0":
[    7.544039] 0x000000000000-0x000000080000 : "uboot"
[    7.549909] 0x000000080000-0x0000000c0000 : "sdd_firmware"
[    7.556282] 0x0000000c0000-0x0000000d0000 : "uboot_env"
[    7.562468] 0x0000000d0000-0x0000000e0000 : "permanent_uboot_env"
[    7.569473] 0x0000000e0000-0x0000000f0000 : "hp_env"
[    7.576365] libphy: Fixed MDIO Bus: probed
[    7.581261] libphy: orion_mdio_bus: probed
[    7.590895] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    7.599079] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address f4:ce:xx:xx:xx:xx
[    7.607950] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.614653] ehci-pci: EHCI PCI platform driver
[    7.619227] ehci-orion: EHCI orion driver
[    7.623452] orion-ehci f1050000.ehci: EHCI Host Controller
[    7.629053] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    7.636915] orion-ehci f1050000.ehci: irq 31, io mem 0xf1050000
[    7.668957] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    7.675264] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.18
[    7.683603] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    7.690877] usb usb1: Product: EHCI Host Controller
[    7.695783] usb usb1: Manufacturer: Linux 4.18.4-kirkwood-tld-1 ehci_hcd
[    7.702534] usb usb1: SerialNumber: f1050000.ehci
[    7.707855] hub 1-0:1.0: USB hub found
[    7.711719] hub 1-0:1.0: 1 port detected
[    7.716324] usbcore: registered new interface driver usb-storage
[    7.722738] mousedev: PS/2 mouse device common for all mice
[    7.728849] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    7.735996] i2c /dev entries driver
[    7.741563] hidraw: raw HID events driver (C) Jiri Kosina
[    7.747359] drop_monitor: Initializing network drop monitor service
[    7.754045] NET: Registered protocol family 17
[    7.758594] Key type dns_resolver registered
[    7.763725] registered taskstats version 1
[    7.767841] Loading compiled-in X.509 certificates
[    7.772782] zswap: loaded using pool lzo/zbud
[    7.800772] Key type big_key registered
[    7.815371] Key type encrypted registered
[    7.821484] rtc-mv f1010300.rtc: setting system clock to 2020-02-10 20:36:09 UTC (1581366969)
[    8.018965] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    8.027578] ata1.00: ATA-7: SM224, I0521, max UDMA/133
[    8.032771] ata1.00: 949536 sectors, multi 0: LBA 
[    8.040025] ata1.00: configured for UDMA/133
[    8.054824] scsi 0:0:0:0: Direct-Access     ATA      SM224            1    PQ: 0 ANSI: 5
[    8.063966] sd 0:0:0:0: [sda] 949536 512-byte logical blocks: (486 MB/464 MiB)
[    8.071789] sd 0:0:0:0: [sda] Write Protect is off
[    8.076652] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    8.076781] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    8.086019] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    8.094465]  sda: sda1
[    8.098234] sd 0:0:0:0: [sda] Attached SCSI disk
[    8.289431] usb 1-1: New USB device found, idVendor=0424, idProduct=2514, bcdDevice= 0.00
[    8.297683] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    8.305581] hub 1-1:1.0: USB hub found
[    8.309545] hub 1-1:1.0: 4 ports detected
[    8.399747] ata2: SATA link down (SStatus 0 SControl F300)
[    8.418244] Freeing unused kernel memory: 1024K
[    8.423693] Checked W+X mappings: passed, no W+X pages found
[    8.509937] systemd-udevd[114]: starting version 215
[    8.517212] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    8.629027] usb 1-1.2: new high-speed USB device number 3 using orion-ehci
[    8.745095] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    8.790188] usb 1-1.2: New USB device found, idVendor=0781, idProduct=5571, bcdDevice= 1.22
[    8.798607] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    8.819051] usb 1-1.2: Product: Cruzer Fit
[    8.823192] usb 1-1.2: Manufacturer: SanDisk
[    8.827483] usb 1-1.2: SerialNumber: 4C5320000xxxxxxxxxx
[    8.849138] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[    8.864404] scsi host2: usb-storage 1-1.2:1.0
[    9.047716] usbcore: registered new interface driver uas
[    9.929900] scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer Fit       1.22 PQ: 0 ANSI: 5
[    9.943756] sd 2:0:0:0: [sdb] 31266816 512-byte logical blocks: (16.0 GB/14.9 GiB)
[    9.951531] sd 2:0:0:0: Attached scsi generic sg1 type 0
[    9.963610] sd 2:0:0:0: [sdb] Write Protect is off
[    9.968460] sd 2:0:0:0: [sdb] Mode Sense: 43 00 00 00
[    9.969904] sd 2:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    9.986083]  sdb: sdb1
[    9.999599] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[   19.390883] EXT4-fs (sdb1): mounting ext3 file system using the ext4 subsystem
[   19.442915] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
[   21.297603] systemd-udevd[337]: starting version 215
[   21.379259] random: udevd: uninitialized urandom read (16 bytes read)
[   21.401252] random: udevd: uninitialized urandom read (16 bytes read)
[   21.731730] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[   22.022834] orion_wdt: Initial timeout 21 sec
[   22.219748] xgifb: module is from the staging directory, the quality is unknown, you have been warned.
[   22.233794] marvell-cesa f1030000.crypto: CESA device successfully registered
[   22.273639] xgifb 0000:01:00.0: assign IRQ: got 0
[   22.273664] xgifb 0000:01:00.0: Relocate IO address: 10000 [00010030]
[   22.341295] pci 0000:00:01.0: enabling bus mastering
[   22.341315] xgifb 0000:01:00.0: enabling device (0140 -> 0143)
[   22.347240] xgifb 0000:01:00.0: chipid = 32
[   22.409513] xgifb: SR14=51 DramSzie 2000000 ChannelNum 1
[   22.468392] xgifb 0000:01:00.0: Framebuffer at 0xe0000000, mapped to 0x(ptrval), size 32768k
[   22.545322] xgifb 0000:01:00.0: MMIO at 0xe4000000, mapped to 0x(ptrval), size 256k
[   22.661718] xgifb 0000:01:00.0: No or unknown bridge type detected
[   22.667941] xgifb: Default mode is 800x600x16 (60Hz)
[   22.750304] Console: switching to colour frame buffer device 100x37
[   22.791261] random: crng init done
[   24.123026] EXT4-fs (sdb1): re-mounted. Opts: (null)
[   24.427268] EXT4-fs (sdb1): re-mounted. Opts: user_xattr,acl,errors=remount-ro
[   25.837982] Adding 524284k swap on /swapfile1.  Priority:-2 extents:10 across:1305728k FS
[   28.037526] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
[   28.583656] NET: Registered protocol family 10
[   28.589696] Segment Routing with IPv6
[   31.349681] NET: Registered protocol family 15
[   34.531197] Bluetooth: Core ver 2.22
[   34.538851] NET: Registered protocol family 31
[   34.549112] Bluetooth: HCI device and connection manager initialized
[   34.555516] Bluetooth: HCI socket layer initialized
[   34.571734] Bluetooth: L2CAP socket layer initialized
[   34.576856] Bluetooth: SCO socket layer initialized
[   34.651763] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   34.661270] Bluetooth: BNEP filters: protocol multicast
[   34.667467] Bluetooth: BNEP socket layer initialized
[   34.777049] systemd-hostnamed[1934]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname!
[   43.819238] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
[   43.839017] NFSD: starting 90-second grace period (net f000001c)



root@T5325:~# myinfo 
T5325
192.168.0.243
HP t5325 Thin Client
Linux version 4.18.4-kirkwood-tld-1 (root@tldDebian) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)) #1 PREEMPT Fri Aug 24 22:13:40 PDT 2018
Debian 8.3
console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=spi0.0:512K(uboot),256K(sdd_firmware),64K(uboot_env),64K(permanent_uboot_env),64K(hp_env) earlyprintk=serial
uboot_version=U-Boot 2017.07-tld-1 (Nov 01 2017 - 00:58:19 -0700)
--- System Stats:
/dev/sda: SM224: drive is sleeping

/dev/sdb: SanDisk:  drive supported, but it doesn't have a temperature sensor.

Wed Oct 24 23:11:45 PDT 2018 up 4 minutes

root@T5325:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=123 time=8.99 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=123 time=9.30 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=123 time=8.40 ms

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: HP 5325 ethernet stopped working
October 25, 2018 01:10PM
I'll compare to my boot log later.

Thanks
Re: HP 5325 ethernet stopped working
October 25, 2018 04:09PM
Hi bodhi,

your dmesg looks very similar to mine The main differences are highlighted below. It is a different board revision and uses a different flash chip.

bodhi:

mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
m25p80 spi0.0: m25p80 (1024 Kbytes)

koen:

mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x2
jffs2: version 2.2. (NAND) (SUMMARY)  \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.
m25p80 spi0.0: found mx25l8005, expected m25p80

fortis91's device has a different flash chip again:

m25p80 spi0.0: found sst25vf080b, expected m25p80

I can't ping my router from uboot so I'm not that surprised that it doesn't work in Debian. I can't read uboot environment variables from Debian so I think something is wrong with uboot or the reading of the flash chip. Is any data stored in 'sdd_firmware' needed to make the network chip work?

Koen

root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00080000 00010000 "uboot"
mtd1: 00040000 00010000 "sdd_firmware"
mtd2: 00010000 00010000 "uboot_env"
mtd3: 00010000 00010000 "permanent_uboot_env"
mtd4: 00010000 00010000 "hp_env"

root@debian:~# cat /etc/fw_env.config 
/dev/mtd2 0x00000 0x10000 0x10000

root@debian:~# fw_printenv
Warning: Bad CRC, using default environment
bootargs=
bootcmd=
bootdelay=2
baudrate=115200
arch=sandbox
cpu=sandbox
board=sandbox
board_name=sandbox
stdin=serial,cros-ec-keyb,usbkbd
stdout=serial,vidconsole
stderr=serial,vidconsole
ethaddr=00:00:11:22:33:44
eth1addr=00:00:11:22:33:45
eth3addr=00:00:11:22:33:46
eth5addr=00:00:11:22:33:47
ipaddr=1.2.3.4
host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot_part; fi
boot_net_pci_enum=pci enum
boot_net_usb_start=usb start
usb_boot=usb start; if usb dev ${devnum}; then setenv devtype usb; run scan_dev_for_boot_part; fi
boot_prefixes=/ /boot/
boot_scripts=boot.scr.uimg boot.scr
boot_script_dhcp=boot.scr.uimg
boot_targets=host1 host0 
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}extlinux/extlinux.conf
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}extlinux/extlinux.conf; then echo Found ${prefix}extlinux/extlinux.conf; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done;
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done
bootcmd_host1=setenv devnum 1; run host_boot
bootcmd_host0=setenv devnum 0; run host_boot
distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done
bootm_size=0x10000000
kernel_addr_r=0x1000000
fdt_addr_r=0xc00000
ramdisk_addr_r=0x2000000
scriptaddr=0x1000
pxefile_addr_r=0x2000
root@debian:~# 
Re: HP 5325 ethernet stopped working
October 25, 2018 04:55PM
From Debian I've copied the 5 mtd partitions to the USB stick using the following command:

dd if=/dev/mtd0 of=t5325.mtd0 bs=64k conv=sync
dd if=/dev/mtd1 of=t5325.mtd1 bs=64k conv=sync
dd if=/dev/mtd2 of=t5325.mtd2 bs=64k conv=sync
dd if=/dev/mtd3 of=t5325.mtd3 bs=64k conv=sync
dd if=/dev/mtd4 of=t5325.mtd4 bs=64k conv=sync

I've powered down the device and put the USB stick in my laptop. Running 'strings' on the t5325.mtd2 file doesn't give any output while I would expect to see the uboot environment variables.

Koen
Re: HP 5325 ethernet stopped working
October 25, 2018 05:01PM
Koen,

> It is a
> different board revision and uses a different
> flash chip.

This does not matter much, if you can already boot the box with new u-boot, and can print out envs! In Debian, the flash should work, but that's something need to be verified in your box.

So the key point here is why can't you activate the network in u-boot console. We should investigate at that. We should take a closer look at the envs in u-boot.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: HP 5325 ethernet stopped working
October 25, 2018 05:03PM
Koen,

Power up, interrupt serial console and

printenv

Please post the serial boot log until this point.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: HP 5325 ethernet stopped working
October 25, 2018 05:12PM
Thanks Koen.

edit.... Bodhi, let me know if you need me to run any commands.

Here is the rest of my info:
mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
jffs2: version 2.2. (NAND) (SUMMARY)  \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.
m25p80 spi0.0: found sst25vf080b, expected m25p80
root@debian:~# cat /proc/mtd 
dev:    size   erasesize  name
mtd0: 00080000 00001000 "uboot"
mtd1: 00040000 00001000 "sdd_firmware"
mtd2: 00010000 00001000 "uboot_env"
mtd3: 00010000 00001000 "permanent_uboot_env"
mtd4: 00010000 00001000 "hp_env"
root@debian:~# cat /etc/fw_env.config 
# MTD device name	Device offset	Env. size	Flash sector size	Number of sectors
/dev/mtd2 0x00000 0x10000 0x10000
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
devices=usb ide mmc
disks=0 1 2 3
ethact=egiga0
if_netconsole=ping $serverip
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb_addr=0x1c00000
load_initrd_addr=0x1100000
load_uimage_addr=0x800000
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
mainlineLinux=yes
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=2846
mtdparts=mtdparts=spi0.0:512K(uboot),256K(sdd_firmware),64K(uboot_env),64K(permanent_uboot_env),64K(hp_env)
ethaddr=f4:ce:xx:xx:xx:xx
dtb_file=/boot/dts/kirkwood-t5325.dtb
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.1.253
serverip=192.168.1.254

Using your instructions I was able to get uboot values from mtd2 using strings



Edited 1 time(s). Last edit at 10/25/2018 05:13PM by fortis91.
Re: HP 5325 ethernet stopped working
October 25, 2018 05:14PM
All,

I wonder if there is a different network chip in your boxes?

@fortis,

I want to make sure, was it blanked out for privacy?
ethaddr=f4:ce:xx:xx:xx:xx

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 10/25/2018 05:16PM by bodhi.
Re: HP 5325 ethernet stopped working
October 25, 2018 05:17PM
bodhi Wrote:
-------------------------------------------------------
> All,
>
> I wonder if there is a different network chip in
> your boxes?
>
> @fortis,
>

Yes, edited for privacy.

> I want to make sure, was it blanked out for
> privacy?
>
> ethaddr=f4:ce:xx:xx:xx:xx
> 
Re: HP 5325 ethernet stopped working
October 25, 2018 05:24PM
@fortis,

Did you flash this version before? and was the network working ok?

uboot.2016.05-tld-1.t5325.bodhi.tar

As I wondered, if there is a different networkk chip in your box? that would make sense if it does not work now.

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 10/25/2018 05:25PM by bodhi.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: