Re: HP T5325 Thin Client U-Boot-2017.07-tld-1
December 26, 2017 11:53AM
I did what you wrote in that post.
These are the contents of /boot/uEnv.txt I put on my rootfs:
arcNumber=2097
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
ethaddr=52:3b:20:9c:11:51
if_netconsole=ping $serverip
ipaddr=192.168.0.231
led_error=orange blinking
led_exit=green off
led_init=green blinking
dtb_file=/boot/dts/kirkwood-t5325.dtb
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
machid=0x831
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
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_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
This is the full picocom log:
root@debian64:/home/kalehrl# picocom /dev/ttyUSB0 -b 115200
picocom v1.7

port is        : /dev/ttyUSB0
flowcontrol    : none
baudrate is    : 115200
parity is      : none
databits are   : 8
escape is      : C-a
local echo is  : no
noinit is      : no
noreset is     : no
nolock is      : no
send_cmd is    : sz -vv
receive_cmd is : rz -vv
imap is        : 
omap is        : 
emap is        : crcrlf,delbs,

Terminal ready


U-Boot 2016.05-tld-1 (Jun 12 2016 - 14:06:08 -0700)
HP Thin Client T5325

SoC:   Kirkwood 88F6281_A1
SPI:   ready
DRAM:  512 MiB
WARNING: Caches not enabled
SF: Detected MX25L8005 with page size 256 Bytes, erase size 64 KiB, total 1 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
PHY reset timed out
88E1116 Initialized on egiga0
T5325>
Re: HP T5325 Thin Client U-Boot-2017.07-tld-1
December 27, 2017 03:57AM
kalehrl,

The uEnv.txt looks fine.

At this prompt:
> T5325>

Go ahead and try booting into Debian rootfs on USB:

boot

And then post serial console log here, if you'd like.

If it boots into Debian OK, you can proceed to install u-boot-2017.07-tld-1:
https://forum.doozan.com/read.php?3,26562

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: HP T5325 Thin Client U-Boot-2017.07-tld-1
December 27, 2017 01:14PM
Nothing happens when I type 'boot'.
Re: HP T5325 Thin Client U-Boot-2017.07-tld-1
December 27, 2017 07:32PM
kalehrl Wrote:
-------------------------------------------------------
> Nothing happens when I type 'boot'.

Ah! my bad. Let me post a different approach.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: HP T5325 Thin Client U-Boot-2017.07-tld-1
December 27, 2017 07:39PM
kalehrl,

Try this script loading procedure:

https://forum.doozan.com/read.php?3,29362,29390#msg-29390

1. Note the difference in DTB file. This procedure was written for the GoFlex Net.

Quote

Adjust the other specific envs and then boot the rootfs:
setenv devices 'usb ide'
setenv ethaddr xx:xx:xx:xx:xx:xx
setenv dtb_file '/boot/dts/kirkwood-goflexnet.dtb'
boot

So your DTB file would be:
setenv dtb_file '/boot/dts/kirkwood-t5325.dtb'

2. And in your case, don't use kwboot. Just boot from the u-boot-2016.05-tld-1 in NAND.

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



Edited 1 time(s). Last edit at 12/27/2017 08:25PM by bodhi.
Re: HP T5325 Thin Client U-Boot-2017.07-tld-1
December 28, 2017 01:31AM
Finally it booted. :)
root@debian64:/home/kalehrl# picocom /dev/ttyUSB0 -b 115200
picocom v1.7

port is        : /dev/ttyUSB0
flowcontrol    : none
baudrate is    : 115200
parity is      : none
databits are   : 8
escape is      : C-a
local echo is  : no
noinit is      : no
noreset is     : no
nolock is      : no
send_cmd is    : sz -vv
receive_cmd is : rz -vv
imap is        : 
omap is        : 
emap is        : crcrlf,delbs,

Terminal ready
�

U-Boot 2016.05-tld-1 (Jun 12 2016 - 14:06:08 -0700)
HP Thin Client T5325

SoC:   Kirkwood 88F6281_A1
SPI:   ready
DRAM:  512 MiB
WARNING: Caches not enabled
SF: Detected MX25L8005 with page size 256 Bytes, erase size 64 KiB, total 1 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
PHY reset timed out
88E1116 Initialized on egiga0
T5325> usb start
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
T5325> ext2load usb 0:1 0x800000 /boot/uboot.2016.05-tld-1.environment.scr
3232 bytes read in 301 ms (9.8 KiB/s)
T5325> source 0x800000
## Executing script at 00800000
T5325> printenv
arcNumber=2097
arch=sandbox
baudrate=115200
board=sandbox
board_name=sandbox
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}extlinux/extlinux.conf
boot_net_pci_enum=pci enum
boot_net_usb_start=usb start
boot_prefixes=/ /boot/
boot_script_dhcp=boot.scr.uimg
boot_scripts=boot.scr.uimg boot.scr
boot_targets=host1 host0 
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_host0=setenv devnum 0; run host_boot
bootcmd_host1=setenv devnum 1; run host_boot
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
bootm_size=0x10000000
cpu=sandbox
device=0:1
devices=usb ide mmc
disks=0 1 2 3
distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done
dtb_file=/boot/dts/kirkwood-pogo_e02.dtb
eth1addr=00:00:11:22:33:45
eth3addr=00:00:11:22:33:46
eth5addr=00:00:11:22:33:47
ethact=egiga0
ethaddr=52:3b:20:9c:11:51
fdt_addr_r=0xc00000
fileaddr=800000
filesize=ca0
host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot_part; fi
if_netconsole=ping $serverip
ipaddr=192.168.0.231
kernel_addr_r=0x1000000
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
machid=0x831
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
pxefile_addr_r=0x2000
ramdisk_addr_r=0x2000000
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
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
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_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
scriptaddr=0x1000
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_boot=usb start; if usb dev ${devnum}; then setenv devtype usb; run scan_dev_for_boot_part; fi
usb_ready_retry=15

Environment size: 4869/65532 bytes
T5325> setenv devices 'usb ide'
T5325> setenv dtb_file '/boot/dts/kirkwood-t5325.dtb'
T5325> boot

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)

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

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	125302784 	005eb869-01	83
loading envs from usb 0 ...
2770 bytes read in 290 ms (8.8 KiB/s)

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

Part	Start Sector	Num Sectors	UUID		Type
  1	63        	949473    	00000000-01	83 Boot
loading envs from ide 0 ...
** File not found /boot/uEnv.txt **
importing envs ...
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 242 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
3821592 bytes read in 355 ms (10.3 MiB/s)
loading uInitrd ...
7245696 bytes read in 413 ms (16.7 MiB/s)
loading DTB /boot/dts/kirkwood-t5325.dtb ...
11919 bytes read in 1145 ms (9.8 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
Using machid 0x831 from environment

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=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
[    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.000007] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000041] Switching to timer-based delay loop, resolution 5ns
[    0.000506] Console: colour dummy device 80x30
[    0.000539] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000561] pid_max: default: 32768 minimum: 301
[    0.000759] 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.001749] CPU: Testing write buffer coherency: ok
[    0.002739] Setting up static identity map for 0x100000 - 0x100058
[    0.003000] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.006266] devtmpfs: initialized
[    0.010512] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.010539] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.010930] prandom: seed boundary self test passed
[    0.014666] prandom: 100 self tests passed
[    0.014679] pinctrl core: initialized pinctrl subsystem
[    0.015826] NET: Registered protocol family 16
[    0.016291] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.017870] cpuidle: using governor ladder
[    0.017942] cpuidle: using governor menu
[    0.018366] Feroceon L2: Enabling L2
[    0.018413] Feroceon L2: Cache support initialised.
[    0.018767] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.024472] No ATAGs?
[    0.033843] vgaarb: loaded
[    0.034157] SCSI subsystem initialized
[    0.034633] usbcore: registered new interface driver usbfs
[    0.034718] usbcore: registered new interface driver hub
[    0.034799] usbcore: registered new device driver usb
[    0.035905] clocksource: Switched to clocksource orion_clocksource
[    0.124679] VFS: Disk quotas dquot_6.6.0
[    0.124756] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.135248] NET: Registered protocol family 2
[    0.136024] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.136085] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.136138] TCP: Hash tables configured (established 4096 bind 4096)
[    0.136226] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.136250] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.136426] NET: Registered protocol family 1
[    0.136833] RPC: Registered named UNIX socket transport module.
[    0.136846] RPC: Registered udp transport module.
[    0.136853] RPC: Registered tcp transport module.
[    0.136861] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.137095] Unpacking initramfs...
[    0.791564] Freeing initrd memory: 7076K
[    0.791700] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.792672] audit: initializing netlink subsys (disabled)
[    0.793146] Initialise system trusted keyrings
[    0.793193] Key type blacklist registered
[    0.793286] audit: type=2000 audit(0.786:1): state=initialized audit_enabled=0 res=1
[    0.793382] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.793450] zbud: loaded
[    0.794402] NFS: Registering the id_resolver key type
[    0.794436] Key type id_resolver registered
[    0.794444] Key type id_legacy registered
[    0.794462] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.794472] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.794670] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.794865] fuse init (API version 7.26)
[    0.795196] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.795401] orangefs_init: module version upstream loaded
[    0.795412] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.555916] random: fast init done
[    6.639808] Key type asymmetric registered
[    6.639825] Asymmetric key parser 'x509' registered
[    6.639889] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    6.639901] io scheduler noop registered
[    6.639909] io scheduler deadline registered
[    6.639986] io scheduler cfq registered (default)
[    6.641326] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    6.643199] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[    6.643221] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    6.643235] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    6.643248] pci_bus 0000:00: root bus resource [bus 00-ff]
[    6.643576] PCI: bus0: Fast back to back transfers disabled
[    6.643600] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    6.644122] pci 0000:01:00.0: vgaarb: VGA device added: decodes=io+mem,owns=none,locks=none
[    6.665983] PCI: bus1: Fast back to back transfers disabled
[    6.666093] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe5ffffff]
[    6.666109] pci 0000:00:01.0: BAR 13: assigned [io  0x10000-0x10fff]
[    6.666128] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe3ffffff pref]
[    6.666146] pci 0000:01:00.0: BAR 1: assigned [mem 0xe4000000-0xe403ffff]
[    6.666163] pci 0000:01:00.0: BAR 2: assigned [io  0x10000-0x1007f]
[    6.666179] pci 0000:00:01.0: PCI bridge to [bus 01]
[    6.666192] pci 0000:00:01.0:   bridge window [io  0x10000-0x10fff]
[    6.666208] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe5ffffff]
[    6.666305] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[    6.666847] mv_xor f1060800.xor: Marvell shared XOR driver
[    6.726648] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    6.726873] mv_xor f1060900.xor: Marvell shared XOR driver
[    6.786638] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    6.787061] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    6.788399] console [ttyS0] disabled
[    6.788465] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 27, base_baud = 12500000) is a 16550A
[    7.501467] console [ttyS0] enabled
[    7.513398] loop: module loaded
[    7.517197] sata_mv f1080000.sata: slots 32 ports 2
[    7.524879] scsi host0: sata_mv
[    7.528521] scsi host1: sata_mv
[    7.531925] ata1: SATA max UDMA/133 irq 35
[    7.536087] ata2: SATA max UDMA/133 irq 35
[    7.541770] m25p80 spi0.0: found mx25l8005, expected m25p80
[    7.547435] m25p80 spi0.0: mx25l8005 (1024 Kbytes)
[    7.552289] 5 ofpart partitions found on MTD device spi0.0
[    7.557826] Creating 5 MTD partitions on "spi0.0":
[    7.562647] 0x000000000000-0x000000080000 : "u-boot"
[    7.568997] 0x000000080000-0x0000000c0000 : "SSD firmware"
[    7.575813] 0x0000000c0000-0x0000000d0000 : "u-boot env"
[    7.582497] 0x0000000d0000-0x0000000e0000 : "permanent u-boot env"
[    7.589815] 0x0000000d0000-0x0000000e0000 : "permanent u-boot env"
[    7.598263] libphy: Fixed MDIO Bus: probed
[    7.603170] libphy: orion_mdio_bus: probed
[    7.612282] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    7.620519] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address f4:ce:46:23:f6:83
[    7.629454] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.636119] ehci-pci: EHCI PCI platform driver
[    7.640645] ehci-orion: EHCI orion driver
[    7.644873] orion-ehci f1050000.ehci: EHCI Host Controller
[    7.650470] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    7.658382] orion-ehci f1050000.ehci: irq 31, io mem 0xf1050000
[    7.685937] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    7.692233] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    7.699082] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    7.706360] usb usb1: Product: EHCI Host Controller
[    7.711259] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    7.718010] usb usb1: SerialNumber: f1050000.ehci
[    7.723442] hub 1-0:1.0: USB hub found
[    7.727304] hub 1-0:1.0: 1 port detected
[    7.731917] usbcore: registered new interface driver usb-storage
[    7.738347] mousedev: PS/2 mouse device common for all mice
[    7.744544] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    7.751661] i2c /dev entries driver
[    7.757357] hidraw: raw HID events driver (C) Jiri Kosina
[    7.763217] drop_monitor: Initializing network drop monitor service
[    7.769825] NET: Registered protocol family 17
[    7.774373] Key type dns_resolver registered
[    7.779449] registered taskstats version 1
[    7.783563] Loading compiled-in X.509 certificates
[    7.788499] zswap: loaded using pool lzo/zbud
[    7.802926] Key type big_key registered
[    7.816368] Key type encrypted registered
[    7.821788] rtc-mv f1010300.rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[    8.035951] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    8.044563] ata1.00: ATA-7: SM224, I0521, max UDMA/133
[    8.049754] ata1.00: 949536 sectors, multi 0: LBA 
[    8.057003] ata1.00: configured for UDMA/133
[    8.071862] scsi 0:0:0:0: Direct-Access     ATA      SM224            1    PQ: 0 ANSI: 5
[    8.081101] sd 0:0:0:0: [sda] 949536 512-byte logical blocks: (486 MB/464 MiB)
[    8.088431] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    8.095898] sd 0:0:0:0: [sda] Write Protect is off
[    8.100939] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    8.111796]  sda: sda1
[    8.115557] sd 0:0:0:0: [sda] Attached SCSI disk
[    8.276402] usb 1-1: New USB device found, idVendor=0424, idProduct=2514
[    8.283149] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    8.291080] hub 1-1:1.0: USB hub found
[    8.295018] hub 1-1:1.0: 4 ports detected
[    8.427492] ata2: SATA link down (SStatus 0 SControl F300)
[    8.446021] Freeing unused kernel memory: 1024K
Loading, please wait...
starting version 232
[    8.616000] usb 1-1.3: new high-speed USB device number 3 using orion-ehci
[    8.791664] usb 1-1.3: New USB device found, idVendor=090c, idProduct=1000
[    8.803875] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    8.819136] usb 1-1.3: Product: Flash Drive
[    8.823370] usb 1-1.3: Manufacturer: Samsung
[    8.836004] usb 1-1.3: SerialNumber: 0374716020010662
[    8.847977] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[    8.866278] scsi host2: usb-storage 1-1.3:1.0
[    9.307006] usbcore: registered new interface driver uas
Begin: Loading essential drivers ... done.
[   10.282992] scsi 2:0:0:0: Direct-Access     Samsung  Flash Drive      1100 PQ: 0 ANSI: 6
[   10.297081] sd 2:0:0:0: [sdb] 125304832 512-byte logical blocks: (64.2 GB/59.8 GiB)
[   10.311144] sd 2:0:0:0: [sdb] Write Protect is off
[   10.322204] sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   10.345170]  sdb: sdb1
[   10.354319] 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.466608] 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...done.
[   21.459092] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[....] Waiting for /dev to be fully populated...[   21.633139] xgifb: module is from the staging directory, the quality is unknown, you have been warned.
[   21.739960] xgifb 0000:01:00.0: Relocate IO address: 10000 [00010030]
[   21.803924] xgifb 0000:01:00.0: enabling device (0140 -> 0143)
[   21.834818] xgifb 0000:01:00.0: chipid = 32
[   21.892594] xgifb: SR14=51 DramSzie 2000000 ChannelNum 1
[   21.916931] marvell-cesa f1030000.crypto: CESA device successfully registered
[   21.918126] orion_wdt: Initial timeout 21 sec
[   21.989061] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   21.989341] sd 2:0:0:0: Attached scsi generic sg1 type 0
[   22.111354] xgifb 0000:01:00.0: Framebuffer at 0xe0000000, mapped to 0xe1000000, size 32768k
[   22.153078] asoc-simple-card sound: alc5621-hifi <-> i2s mapping ok
[   22.226631] xgifb 0000:01:00.0: MMIO at 0xe4000000, mapped to 0xe0f40000, size 256k
[   22.326085] xgifb 0000:01:00.0: No or unknown bridge type detected
[   22.332352] xgifb: Default mode is 800x600x16 (60Hz)
[   25.778312] random: crng init done
done.
[ ok ] Activating swap:.
[   32.475837] 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, 14456/3915776 files, 411349/15662848 blocks
. ok 
[   32.856233] 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.
[....] 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:f6:83
Sending on   LPF/eth0/f4:ce:46:23:f6:83
Sending on   Socket/fallback
DHCPREQUEST of 192.168.0.14 on eth0 to 255.255.255.255 port 67
DHCPREQUEST of 192.168.0.14 on eth0 to 255.255.255.255 port 67
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 21
[  120.566305] NET: Registered protocol family 10
[  120.574207] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[  120.580319] Segment Routing with IPv6
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.
Trying recorded lease 192.168.0.14
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.

--- 192.168.0.1 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

No working leases in persistent database - sleeping.
done.
[ 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...
1324 (syslogd)
. ok 
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1327 (klogd)
. ok 
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 9 debian ttyS0

debian login: root
Password: 
Last login: Wed Dec 31 16:01:32 PST 1969 from 192.168.0.220 on pts/0
Linux debian 4.12.1-kirkwood-tld-1 #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 armv5tel

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@debian:~#

What should I do next?
Flash the new uboot and env image?
Re: HP T5325 Thin Client U-Boot-2017.07-tld-1
December 28, 2017 04:16AM
Cool!

There is one more env needed to be defined before you can flash u-boot and new env image.

These are generic NAND Kirkwood MTDs
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
partition=nand0,2

For HP T5325, the MTDs are in SPI flash, as described in the u-boot installation instruction step 6.

1. In Debian (at the shell prompt)

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

2. Reboot, interrupt serial console and do what you did before, but also execute these additional commands:

setenv mtdparts 'mtdparts=spi0.0:512K(uboot),256K(sdd_firmware),64K(uboot_env),64K(permanent_uboot_env),64K(hp_env)'    
setenv mtdids 
setenv partition 
setenv machid

and then boot

boot

Log into Debian, make sure the mtd listing looks like this:

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"

And then you can flash new u-boot and its new default envs image.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: HP T5325 Thin Client U-Boot-2017.07-tld-1
December 28, 2017 08:23AM
Quote

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"

I keep getting:
root@debian:~# cat /proc/mtd 
dev:    size   erasesize  name
mtd0: 00080000 00010000 "u-boot"
mtd1: 00040000 00010000 "SSD firmware"
mtd2: 00010000 00010000 "u-boot env"
mtd3: 00010000 00010000 "permanent u-boot env"
mtd4: 00010000 00010000 "permanent u-boot env"
Re: HP T5325 Thin Client U-Boot-2017.07-tld-1
December 28, 2017 10:39AM
kalehrl,

That's the mtdparts definition in the DTB, not from bootargs.

Check to see if the DTB was still embedded inside uImage.

dmesg
cat /proc/mtd
ls -lart /boot/

uImage should be exactly the same as uImage.orig (if there is one).

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



Edited 1 time(s). Last edit at 12/28/2017 10:53AM by bodhi.
Re: HP T5325 Thin Client U-Boot-2017.07-tld-1
December 28, 2017 11:35AM
dmesg:
[    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] On node 0 totalpages: 131072
[    0.000000] free_area_init_node: node 0, pgdat c0d9e084, node_mem_map dfbf9000
[    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] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
[    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:
                   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 : 0xc0008000 - 0xc0900000   (9184 kB)
                     .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
                     .data : 0xc0d00000 - 0xc0db3274   ( 717 kB)
                      .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.000007] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000041] Switching to timer-based delay loop, resolution 5ns
[    0.000506] 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.000758] Security Framework initialized
[    0.000880] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000899] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001748] CPU: Testing write buffer coherency: ok
[    0.002739] Setting up static identity map for 0x100000 - 0x100058
[    0.002999] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.006267] devtmpfs: initialized
[    0.010508] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.010534] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.010924] prandom: seed boundary self test passed
[    0.014659] prandom: 100 self tests passed
[    0.014671] pinctrl core: initialized pinctrl subsystem
[    0.015818] NET: Registered protocol family 16
[    0.016286] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.017877] cpuidle: using governor ladder
[    0.017947] cpuidle: using governor menu
[    0.018373] Feroceon L2: Enabling L2
[    0.018419] Feroceon L2: Cache support initialised.
[    0.018773] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.024476] No ATAGs?
[    0.033859] vgaarb: loaded
[    0.034172] SCSI subsystem initialized
[    0.034354] libata version 3.00 loaded.
[    0.034648] usbcore: registered new interface driver usbfs
[    0.034733] usbcore: registered new interface driver hub
[    0.034815] usbcore: registered new device driver usb
[    0.035923] clocksource: Switched to clocksource orion_clocksource
[    0.124715] VFS: Disk quotas dquot_6.6.0
[    0.124792] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.135288] NET: Registered protocol family 2
[    0.136066] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.136126] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.136179] TCP: Hash tables configured (established 4096 bind 4096)
[    0.136264] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.136290] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.136467] NET: Registered protocol family 1
[    0.136876] RPC: Registered named UNIX socket transport module.
[    0.136889] RPC: Registered udp transport module.
[    0.136896] RPC: Registered tcp transport module.
[    0.136903] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.136915] PCI: CLS 0 bytes, default 32
[    0.137137] Unpacking initramfs...
[    0.791506] Freeing initrd memory: 7076K
[    0.791642] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.792612] audit: initializing netlink subsys (disabled)
[    0.793086] Initialise system trusted keyrings
[    0.793141] Key type blacklist registered
[    0.793234] audit: type=2000 audit(0.786:1): state=initialized audit_enabled=0 res=1
[    0.793330] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.793397] zbud: loaded
[    0.794350] NFS: Registering the id_resolver key type
[    0.794376] Key type id_resolver registered
[    0.794385] Key type id_legacy registered
[    0.794403] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.794413] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.794610] jffs2: version 2.2. (NAND) (SUMMARY)  \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.
[    0.794807] fuse init (API version 7.26)
[    0.795138] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.795340] orangefs_init: module version upstream loaded
[    0.795352] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.555935] random: fast init done
[    6.639742] Key type asymmetric registered
[    6.639758] Asymmetric key parser 'x509' registered
[    6.639823] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    6.639835] io scheduler noop registered
[    6.639843] io scheduler deadline registered
[    6.639920] io scheduler cfq registered (default)
[    6.641260] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    6.643135] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[    6.643157] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    6.643171] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    6.643185] pci_bus 0000:00: root bus resource [bus 00-ff]
[    6.643197] pci_bus 0000:00: scanning bus
[    6.643228] pci 0000:00:01.0: [11ab:6281] type 01 class 0x060400
[    6.643268] pci 0000:00:01.0: calling pci_fixup_ide_bases+0x0/0x40
[    6.643502] pci_bus 0000:00: fixups for bus
[    6.643514] PCI: bus0: Fast back to back transfers disabled
[    6.643530] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 0
[    6.643539] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    6.643556] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 1
[    6.643684] pci_bus 0000:01: scanning bus
[    6.643722] pci 0000:01:00.0: [18ca:0027] type 00 class 0x030000
[    6.643750] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x03ffffff pref]
[    6.643766] pci 0000:01:00.0: reg 0x14: [mem 0x00000000-0x0003ffff]
[    6.643780] pci 0000:01:00.0: reg 0x18: [io  0x0000-0x007f]
[    6.643826] pci 0000:01:00.0: calling pci_fixup_ide_bases+0x0/0x40
[    6.643886] pci 0000:01:00.0: supports D1 D2
[    6.644060] pci 0000:01:00.0: vgaarb: VGA device added: decodes=io+mem,owns=none,locks=none
[    6.665986] pci_bus 0000:01: fixups for bus
[    6.665999] PCI: bus1: Fast back to back transfers disabled
[    6.666014] pci_bus 0000:01: bus scan returning with max=01
[    6.666026] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    6.666038] pci_bus 0000:00: bus scan returning with max=01
[    6.666052] pci 0000:00:01.0: fixup irq: got 0
[    6.666059] pci 0000:00:01.0: assigning IRQ 00
[    6.666070] pci 0000:01:00.0: fixup irq: got 0
[    6.666077] pci 0000:01:00.0: assigning IRQ 00
[    6.666111] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe5ffffff]
[    6.666127] pci 0000:00:01.0: BAR 13: assigned [io  0x10000-0x10fff]
[    6.666146] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe3ffffff pref]
[    6.666165] pci 0000:01:00.0: BAR 1: assigned [mem 0xe4000000-0xe403ffff]
[    6.666182] pci 0000:01:00.0: BAR 2: assigned [io  0x10000-0x1007f]
[    6.666197] pci 0000:00:01.0: PCI bridge to [bus 01]
[    6.666210] pci 0000:00:01.0:   bridge window [io  0x10000-0x10fff]
[    6.666226] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe5ffffff]
[    6.666321] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[    6.666351] pcieport 0000:00:01.0: enabling bus mastering
[    6.666865] mv_xor f1060800.xor: Marvell shared XOR driver
[    6.726664] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    6.726887] mv_xor f1060900.xor: Marvell shared XOR driver
[    6.786657] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    6.787080] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    6.788417] console [ttyS0] disabled
[    6.788483] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 27, base_baud = 12500000) is a 16550A
[    7.501477] console [ttyS0] enabled
[    7.513423] loop: module loaded
[    7.516954] sata_mv f1080000.sata: version 1.28
[    7.517224] sata_mv f1080000.sata: slots 32 ports 2
[    7.524901] scsi host0: sata_mv
[    7.528540] scsi host1: sata_mv
[    7.531944] ata1: SATA max UDMA/133 irq 35
[    7.536105] ata2: SATA max UDMA/133 irq 35
[    7.541789] m25p80 spi0.0: found mx25l8005, expected m25p80
[    7.547452] m25p80 spi0.0: mx25l8005 (1024 Kbytes)
[    7.552308] 5 ofpart partitions found on MTD device spi0.0
[    7.557846] Creating 5 MTD partitions on "spi0.0":
[    7.562665] 0x000000000000-0x000000080000 : "u-boot"
[    7.569011] 0x000000080000-0x0000000c0000 : "SSD firmware"
[    7.575819] 0x0000000c0000-0x0000000d0000 : "u-boot env"
[    7.582498] 0x0000000d0000-0x0000000e0000 : "permanent u-boot env"
[    7.589821] 0x0000000d0000-0x0000000e0000 : "permanent u-boot env"
[    7.598270] libphy: Fixed MDIO Bus: probed
[    7.603181] libphy: orion_mdio_bus: probed
[    7.612192] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    7.620417] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address f4:ce:46:23:f6:83
[    7.629351] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.636019] ehci-pci: EHCI PCI platform driver
[    7.640552] ehci-orion: EHCI orion driver
[    7.644777] orion-ehci f1050000.ehci: EHCI Host Controller
[    7.650375] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    7.658278] orion-ehci f1050000.ehci: irq 31, io mem 0xf1050000
[    7.685956] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    7.692252] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    7.699101] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    7.706380] usb usb1: Product: EHCI Host Controller
[    7.711277] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    7.718029] usb usb1: SerialNumber: f1050000.ehci
[    7.723460] hub 1-0:1.0: USB hub found
[    7.727314] hub 1-0:1.0: 1 port detected
[    7.731926] usbcore: registered new interface driver usb-storage
[    7.738360] mousedev: PS/2 mouse device common for all mice
[    7.744557] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    7.751671] i2c /dev entries driver
[    7.757380] hidraw: raw HID events driver (C) Jiri Kosina
[    7.763246] drop_monitor: Initializing network drop monitor service
[    7.769851] NET: Registered protocol family 17
[    7.774394] Key type dns_resolver registered
[    7.779467] registered taskstats version 1
[    7.783582] Loading compiled-in X.509 certificates
[    7.788517] zswap: loaded using pool lzo/zbud
[    7.802918] Key type big_key registered
[    7.816363] Key type encrypted registered
[    7.821778] rtc-mv f1010300.rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[    7.830620] PM: Hibernation image not present or could not be loaded.
[    8.035969] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    8.044582] ata1.00: ATA-7: SM224, I0521, max UDMA/133
[    8.049773] ata1.00: 949536 sectors, multi 0: LBA
[    8.057023] ata1.00: configured for UDMA/133
[    8.071879] scsi 0:0:0:0: Direct-Access     ATA      SM224            1    PQ: 0 ANSI: 5
[    8.081122] sd 0:0:0:0: [sda] 949536 512-byte logical blocks: (486 MB/464 MiB)
[    8.088448] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    8.095915] sd 0:0:0:0: [sda] Write Protect is off
[    8.100817] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    8.100944] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    8.111792]  sda: sda1
[    8.115544] sd 0:0:0:0: [sda] Attached SCSI disk
[    8.276424] usb 1-1: New USB device found, idVendor=0424, idProduct=2514
[    8.283177] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    8.291103] hub 1-1:1.0: USB hub found
[    8.295040] hub 1-1:1.0: 4 ports detected
[    8.427512] ata2: SATA link down (SStatus 0 SControl F300)
[    8.446038] Freeing unused kernel memory: 1024K
[    8.616018] usb 1-1.3: new high-speed USB device number 3 using orion-ehci
[    8.791681] usb 1-1.3: New USB device found, idVendor=090c, idProduct=1000
[    8.804357] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    8.820218] usb 1-1.3: Product: Flash Drive
[    8.824457] usb 1-1.3: Manufacturer: Samsung
[    8.836002] usb 1-1.3: SerialNumber: 0374716020010662
[    8.848516] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[    8.865001] scsi host2: usb-storage 1-1.3:1.0
[    9.305859] usbcore: registered new interface driver uas
[   10.276387] scsi 2:0:0:0: Direct-Access     Samsung  Flash Drive      1100 PQ: 0 ANSI: 6
[   10.290357] sd 2:0:0:0: [sdb] 125304832 512-byte logical blocks: (64.2 GB/59.8 GiB)
[   10.304852] sd 2:0:0:0: [sdb] Write Protect is off
[   10.314518] sd 2:0:0:0: [sdb] Mode Sense: 43 00 00 00
[   10.315375] sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   10.338069]  sdb: sdb1
[   10.347093] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[   19.465907] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
[   21.438741] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[   21.624550] xgifb: module is from the staging directory, the quality is unknown, you have been warned.
[   21.708137] xgifb 0000:01:00.0: Relocate IO address: 10000 [00010030]
[   21.714668] pci 0000:00:01.0: enabling bus mastering
[   21.714683] xgifb 0000:01:00.0: enabling device (0140 -> 0143)
[   21.832950] xgifb 0000:01:00.0: chipid = 32
[   21.847326] xgifb: SR14=51 DramSzie 2000000 ChannelNum 1
[   21.908396] xgifb 0000:01:00.0: Framebuffer at 0xe0000000, mapped to 0xe1000000, size 32768k
[   21.935136] marvell-cesa f1030000.crypto: CESA device successfully registered
[   21.936081] orion_wdt: Initial timeout 21 sec
[   22.022503] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   22.022750] sd 2:0:0:0: Attached scsi generic sg1 type 0
[   22.154410] xgifb 0000:01:00.0: MMIO at 0xe4000000, mapped to 0xe0f40000, size 256k
[   22.175842] asoc-simple-card sound: alc5621-hifi <-> i2s mapping ok
[   22.317615] xgifb 0000:01:00.0: No or unknown bridge type detected
[   22.323889] xgifb: Default mode is 800x600x16 (60Hz)
[   29.906664] random: crng init done
[   32.515431] EXT4-fs (sdb1): re-mounted. Opts: (null)
[   32.872505] EXT4-fs (sdb1): re-mounted. Opts: errors=remount-ro
[   41.259668] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
[   50.558136] NET: Registered protocol family 10
[   50.565252] Segment Routing with IPv6

cat /proc/mtd

dev:    size   erasesize  name
mtd0: 00080000 00010000 "u-boot"
mtd1: 00040000 00010000 "SSD firmware"
mtd2: 00010000 00010000 "u-boot env"
mtd3: 00010000 00010000 "permanent u-boot env"
mtd4: 00010000 00010000 "permanent u-boot env"

ls -lart /boot/

total 37644
drwxr-xr-x 21 root root    4096 Feb 16  2015 ..
-rw-r--r--  1 root root    2773 Jun 11  2016 uboot.2016.05-tld-1.environment
-rw-r-----  1 root root  131072 Jun 11  2016 uboot.2016.05-tld-1.environment.img
-rw-r-----  1 root root   65536 Jun 11  2016 uboot.2016.05-tld-1.environment.64K.img
drwxr-xr-x  2 root root    4096 Jul 15  2017 dts
-rw-r--r--  1 root root  153501 Jul 15  2017 config-4.12.1-kirkwood-tld-1
-rwxr-xr-x  1 root root 3821528 Jul 15  2017 zImage-4.12.1-kirkwood-tld-1
-rw-------  1 root root 3821528 Jul 16  2017 vmlinuz-4.12.1-kirkwood-tld-1
-rw-------  1 root root 2504031 Jul 16  2017 System.map-4.12.1-kirkwood-tld-1
-rw-r--r--  1 root root 8435004 Jul 16  2017 linux-headers-4.12.1-kirkwood-tld-1_1.0_armel.deb
-rw-r--r--  1 root root 3821592 Jul 20  2017 uImage
-rw-r--r--  1 root root 7245632 Jul 23  2017 initrd.img-4.12.1-kirkwood-tld-1
-rw-r--r--  1 root root 7245696 Jul 23  2017 uInitrd
-rw-r--r--  1 root root  524288 Nov  1  2017 uboot.2017.07-tld-1.t5325.mtd0.kwb
-rw-------  1 root root  204800 Dec 24  2017 uboot.2016.05-tld-1.environment.bodhi.tar
-rw-------  1 root root  532480 Dec 24  2017 uboot.2017.07-tld-1.t5325.bodhi.tar
-rw-------  1 1000 1000    2770 Dec 25  2017 uEnv.txt
-rw-------  1 1000 1000    3232 Dec 28  2017 uboot.2016.05-tld-1.environment.scr
drwxr-xr-x  3 root root    4096 Dec 28  2017 .
-rw-r--r--  1 root root    2069 Dec 28  2017 current_envs.text

I tried to flash the new u-boot but:
root@debian:/tmp/sdb1/boot# flashcp -v uboot.2017.07-tld-1.t5325.mtd0.kwb   /dev/mtd3
uboot.2017.07-tld-1.t5325.mtd0.kwb won't fit into /dev/mtd3!



Edited 1 time(s). Last edit at 12/28/2017 11:45AM by kalehrl.
Re: HP T5325 Thin Client U-Boot-2017.07-tld-1
December 28, 2017 09:51PM
kalehrl,

> I tried to flash the new u-boot but:

Not a good idea while the MTD definition is wrong :)

Your u-boot bootargs env is still not correct.

0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)


1. Reboot, interrupt serial console and do what you did before. Meaning

ext2load usb 0:1 0x800000 /boot/uboot.2016.05-tld-1.environment.scr
source 0x800000


2. And then execute these additional commands:

setenv mtdparts 'mtdparts=spi0.0:512K(uboot),256K(sdd_firmware),64K(uboot_env),64K(permanent_uboot_env),64K(hp_env)'    
setenv mtdids 
setenv partition 
setenv machid


3. Verify envs are correct

printenv

MTD parts should look like:
mtdparts=mtdparts=spi0.0:512K(uboot),256K(sdd_firmware),64K(uboot_env),64K(permanent_uboot_env),64K(hp_env)


4. And then boot

boot

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: HP T5325 Thin Client U-Boot-2017.07-tld-1
December 29, 2017 06:19AM
Upon reboot and logging into Debian, the environment is lost.
I checked the line and it read:
mtdparts=mtdparts=spi0.0:512K(uboot),256K(sdd_firmware),64K(uboot_env),64K(permanent_uboot_env),64K(hp_env)
but, upon booting into Debian, it reads:
Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
I guess it doesn't survive booting into Debian.
Re: HP T5325 Thin Client U-Boot-2017.07-tld-1
December 29, 2017 08:44AM
Please do what I've asked:

Quote

1. Reboot, interrupt serial console and do what you did before. Meaning

ext2load usb 0:1 0x800000 /boot/uboot.2016.05-tld-1.environment.scr
source 0x800000


2. And then execute these additional commands:

setenv mtdparts 'mtdparts=spi0.0:512K(uboot),256K(sdd_firmware),64K(uboot_env),64K(permanent_uboot_env),64K(hp_env)'
setenv mtdids
setenv partition
setenv machid


3. Verify envs are correct

printenv

And post tthe entire serial console log here.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: HP T5325 Thin Client U-Boot-2017.07-tld-1
December 29, 2017 09:26AM
I've already done those three steps and the printenv command shows the correct mdt partition layout. But after boot command and logging into debian, the kernel command line is the default one.
Re: HP T5325 Thin Client U-Boot-2017.07-tld-1
December 29, 2017 12:45PM
kalehrl,

I often asked users to repost the info so I can see the whole picture in one post. I will not be able to help without seeing the logs that I've asked for.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: HP T5325 Thin Client U-Boot-2017.07-tld-1
December 29, 2017 10:21PM
kalehrl,

Quote

Upon reboot and logging into Debian, the environment is lost.
I checked the line and it read:
mtdparts=mtdparts=spi0.0:512K(uboot),256K(sdd_firmware),64K(uboot_env),64K(permanent_uboot_env),64K(hp_env)
but, upon booting into Debian, it reads:
Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
I guess it doesn't survive booting into Debian.

Then the mtdparts or bootargs env was not set correctly.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: HP T5325 Thin Client U-Boot-2017.07-tld-1
December 30, 2017 01:19AM
No problem bodhi. It's just that I'm often not at the computer to post the log.
U-Boot 2016.05-tld-1 (Jun 12 2016 - 14:06:08 -0700)
HP Thin Client T5325

SoC:   Kirkwood 88F6281_A1
SPI:   ready
DRAM:  512 MiB
WARNING: Caches not enabled
SF: Detected MX25L8005 with page size 256 Bytes, erase size 64 KiB, total 1 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
PHY reset timed out
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  0
T5325> usb start
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
T5325> ext2load usb 0:1 0x800000 /boot/uboot.2016.05-tld-1.environment.scr
3232 bytes read in 301 ms (9.8 KiB/s)
T5325> source 0x800000
## Executing script at 00800000
T5325> setenv devices 'usb ide'
T5325> setenv dtb_file '/boot/dts/kirkwood-t5325.dtb'
T5325> setenv mtdparts 'mtdparts=spi0.0:512K(uboot),256K(sdd_firmware),64K(uboot_env),64K(permanent_uboot_env),64K(hp_env)'
T5325> setenv mtdids
T5325> setenv partition
T5325> setenv machid
printenv
arcNumber=2097
arch=sandbox
baudrate=115200
board=sandbox
board_name=sandbox
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}extlinux/extlinux.conf
boot_net_pci_enum=pci enum
boot_net_usb_start=usb start
boot_prefixes=/ /boot/
boot_script_dhcp=boot.scr.uimg
boot_scripts=boot.scr.uimg boot.scr
boot_targets=host1 host0
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_host0=setenv devnum 0; run host_boot
bootcmd_host1=setenv devnum 1; run host_boot
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
bootm_size=0x10000000
cpu=sandbox
device=0:1
devices=usb ide
disks=0 1 2 3
distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done
dtb_file=/boot/dts/kirkwood-t5325.dtb
eth1addr=00:00:11:22:33:45
eth3addr=00:00:11:22:33:46
eth5addr=00:00:11:22:33:47
ethact=egiga0
ethaddr=52:3b:20:9c:11:51
fdt_addr_r=0xc00000
fileaddr=800000
filesize=ca0
host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot_part; fi
if_netconsole=ping $serverip
ipaddr=192.168.0.231
kernel_addr_r=0x1000000
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
pxefile_addr_r=0x2000
ramdisk_addr_r=0x2000000
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
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
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_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
scriptaddr=0x1000
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_boot=usb start; if usb dev ${devnum}; then setenv devtype usb; run scan_dev_for_boot_part; fi
usb_ready_retry=15

Environment size: 4838/65532 bytes
boot
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)

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            125302784       005eb869-01     83
loading envs from usb 0 ...
2770 bytes read in 291 ms (8.8 KiB/s)

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

Part    Start Sector    Num Sectors     UUID            Type
  1     63              949473          00000000-01     83 Boot
loading envs from ide 0 ...
** File not found /boot/uEnv.txt **
importing envs ...
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 242 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
3821592 bytes read in 355 ms (10.3 MiB/s)
loading uInitrd ...
7245696 bytes read in 414 ms (16.7 MiB/s)
loading DTB /boot/dts/kirkwood-t5325.dtb ...
11919 bytes read in 1145 ms (9.8 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
Using machid 0x831 from environment

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=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
[    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.000007] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000041] Switching to timer-based delay loop, resolution 5ns
[    0.000506] 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.000759] Security Framework initialized
[    0.000881] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000899] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001748] CPU: Testing write buffer coherency: ok
[    0.002738] Setting up static identity map for 0x100000 - 0x100058
[    0.003000] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.006267] devtmpfs: initialized
[    0.010524] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.010551] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.010945] prandom: seed boundary self test passed
[    0.014680] prandom: 100 self tests passed
[    0.014692] pinctrl core: initialized pinctrl subsystem
[    0.015843] NET: Registered protocol family 16
[    0.016311] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.017892] cpuidle: using governor ladder
[    0.017961] cpuidle: using governor menu
[    0.018388] Feroceon L2: Enabling L2
[    0.018434] Feroceon L2: Cache support initialised.
[    0.018789] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.024492] No ATAGs?
[    0.033869] vgaarb: loaded
[    0.034184] SCSI subsystem initialized
[    0.034658] usbcore: registered new interface driver usbfs
[    0.034743] usbcore: registered new interface driver hub
[    0.034823] usbcore: registered new device driver usb
[    0.035928] clocksource: Switched to clocksource orion_clocksource
[    0.124673] VFS: Disk quotas dquot_6.6.0
[    0.124750] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.135260] NET: Registered protocol family 2
[    0.136035] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.136096] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.136148] TCP: Hash tables configured (established 4096 bind 4096)
[    0.136235] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.136259] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.136436] NET: Registered protocol family 1
[    0.136842] RPC: Registered named UNIX socket transport module.
[    0.136855] RPC: Registered udp transport module.
[    0.136863] RPC: Registered tcp transport module.
[    0.136870] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.137102] Unpacking initramfs...
[    0.791346] Freeing initrd memory: 7076K
[    0.791483] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.792455] audit: initializing netlink subsys (disabled)
[    0.792925] Initialise system trusted keyrings
[    0.792988] Key type blacklist registered
[    0.793081] audit: type=2000 audit(0.786:1): state=initialized audit_enabled=0 res=1
[    0.793177] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.793245] zbud: loaded
[    0.794203] NFS: Registering the id_resolver key type
[    0.794230] Key type id_resolver registered
[    0.794238] Key type id_legacy registered
[    0.794255] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.794265] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.794464] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.794661] fuse init (API version 7.26)
[    0.794993] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.795197] orangefs_init: module version upstream loaded
[    0.795208] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.555940] random: fast init done
[    6.639860] Key type asymmetric registered
[    6.639876] Asymmetric key parser 'x509' registered
[    6.639941] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    6.639952] io scheduler noop registered
[    6.639960] io scheduler deadline registered
[    6.640038] io scheduler cfq registered (default)
[    6.641375] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    6.643250] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[    6.643271] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    6.643284] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    6.643298] pci_bus 0000:00: root bus resource [bus 00-ff]
[    6.643625] PCI: bus0: Fast back to back transfers disabled
[    6.643649] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    6.644168] pci 0000:01:00.0: vgaarb: VGA device added: decodes=io+mem,owns=none,locks=none
[    6.666006] PCI: bus1: Fast back to back transfers disabled
[    6.666117] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe5ffffff]
[    6.666133] pci 0000:00:01.0: BAR 13: assigned [io  0x10000-0x10fff]
[    6.666152] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe3ffffff pref]
[    6.666170] pci 0000:01:00.0: BAR 1: assigned [mem 0xe4000000-0xe403ffff]
[    6.666187] pci 0000:01:00.0: BAR 2: assigned [io  0x10000-0x1007f]
[    6.666203] pci 0000:00:01.0: PCI bridge to [bus 01]
[    6.666216] pci 0000:00:01.0:   bridge window [io  0x10000-0x10fff]
[    6.666232] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe5ffffff]
[    6.666328] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[    6.666867] mv_xor f1060800.xor: Marvell shared XOR driver
[    6.726667] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    6.726893] mv_xor f1060900.xor: Marvell shared XOR driver
[    6.786662] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    6.787086] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    6.788425] console [ttyS0] disabled
[    6.788491] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 27, base_baud = 12500000) is a 16550A
[    7.501498] console [ttyS0] enabled
[    7.513435] loop: module loaded
[    7.517238] sata_mv f1080000.sata: slots 32 ports 2
[    7.524910] scsi host0: sata_mv
[    7.528550] scsi host1: sata_mv
[    7.531956] ata1: SATA max UDMA/133 irq 35
[    7.536118] ata2: SATA max UDMA/133 irq 35
[    7.541804] m25p80 spi0.0: found mx25l8005, expected m25p80
[    7.547468] m25p80 spi0.0: mx25l8005 (1024 Kbytes)
[    7.552321] 5 ofpart partitions found on MTD device spi0.0
[    7.557858] Creating 5 MTD partitions on "spi0.0":
[    7.562678] 0x000000000000-0x000000080000 : "u-boot"
[    7.569022] 0x000000080000-0x0000000c0000 : "SSD firmware"
[    7.575837] 0x0000000c0000-0x0000000d0000 : "u-boot env"
[    7.582522] 0x0000000d0000-0x0000000e0000 : "permanent u-boot env"
[    7.589836] 0x0000000d0000-0x0000000e0000 : "permanent u-boot env"
[    7.598286] libphy: Fixed MDIO Bus: probed
[    7.603190] libphy: orion_mdio_bus: probed
[    7.612197] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    7.620449] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:3b:20:9c:11:51
[    7.629382] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.636048] ehci-pci: EHCI PCI platform driver
[    7.640582] ehci-orion: EHCI orion driver
[    7.644809] orion-ehci f1050000.ehci: EHCI Host Controller
[    7.650407] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    7.658317] orion-ehci f1050000.ehci: irq 31, io mem 0xf1050000
[    7.685960] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    7.692258] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    7.699114] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    7.706392] usb usb1: Product: EHCI Host Controller
[    7.711291] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    7.718041] usb usb1: SerialNumber: f1050000.ehci
[    7.723474] hub 1-0:1.0: USB hub found
[    7.727337] hub 1-0:1.0: 1 port detected
[    7.731948] usbcore: registered new interface driver usb-storage
[    7.738378] mousedev: PS/2 mouse device common for all mice
[    7.744579] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    7.751693] i2c /dev entries driver
[    7.757394] hidraw: raw HID events driver (C) Jiri Kosina
[    7.763259] drop_monitor: Initializing network drop monitor service
[    7.769865] NET: Registered protocol family 17
[    7.774416] Key type dns_resolver registered
[    7.779490] registered taskstats version 1
[    7.783603] Loading compiled-in X.509 certificates
[    7.788540] zswap: loaded using pool lzo/zbud
[    7.802915] Key type big_key registered
[    7.816301] Key type encrypted registered
[    7.821715] rtc-mv f1010300.rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[    8.035974] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    8.044587] ata1.00: ATA-7: SM224, I0521, max UDMA/133
[    8.049777] ata1.00: 949536 sectors, multi 0: LBA
[    8.057025] ata1.00: configured for UDMA/133
[    8.071880] scsi 0:0:0:0: Direct-Access     ATA      SM224            1    PQ: 0 ANSI: 5
[    8.081112] sd 0:0:0:0: [sda] 949536 512-byte logical blocks: (486 MB/464 MiB)
[    8.088436] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    8.095900] sd 0:0:0:0: [sda] Write Protect is off
[    8.100922] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    8.111767]  sda: sda1
[    8.115516] sd 0:0:0:0: [sda] Attached SCSI disk
[    8.276462] usb 1-1: New USB device found, idVendor=0424, idProduct=2514
[    8.283215] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    8.291138] hub 1-1:1.0: USB hub found
[    8.295078] hub 1-1:1.0: 4 ports detected
[    8.427515] ata2: SATA link down (SStatus 0 SControl F300)
[    8.446042] Freeing unused kernel memory: 1024K
Loading, please wait...
starting version 232
[    8.616024] usb 1-1.3: new high-speed USB device number 3 using orion-ehci
[    8.791602] usb 1-1.3: New USB device found, idVendor=090c, idProduct=1000
[    8.806063] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    8.813413] usb 1-1.3: Product: Flash Drive
[    8.826018] usb 1-1.3: Manufacturer: Samsung
[    8.830312] usb 1-1.3: SerialNumber: 0374716020010662
[    8.847356] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[    8.862521] scsi host2: usb-storage 1-1.3:1.0
[    9.304577] usbcore: registered new interface driver uas
Begin: Loading essential drivers ... done.
[   10.275425] scsi 2:0:0:0: Direct-Access     Samsung  Flash Drive      1100 PQ: 0 ANSI: 6
[   10.287639] sd 2:0:0:0: [sdb] 125304832 512-byte logical blocks: (64.2 GB/59.8 GiB)
[   10.302470] sd 2:0:0:0: [sdb] Write Protect is off
[   10.314675] sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   10.337730]  sdb: sdb1
[   10.346758] 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.466257] 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.439237] input: gpio_keys as /devices/platform/gpio_keys/input/input0
                                                 done.
[....] Waiting for /dev to be fully populated...[   21.704935] xgifb: module is from the staging directory, the quality is unknown, you have been warned.
[   21.806855] xgifb 0000:01:00.0: Relocate IO address: 10000 [00010030]
[   21.813422] xgifb 0000:01:00.0: enabling device (0140 -> 0143)
[   21.880890] marvell-cesa f1030000.crypto: CESA device successfully registered
[   21.881532] orion_wdt: Initial timeout 21 sec
[   21.966158] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   21.968485] sd 2:0:0:0: Attached scsi generic sg1 type 0
[   22.086410] xgifb 0000:01:00.0: chipid = 32
[   22.105525] xgifb: SR14=51 DramSzie 2000000 ChannelNum 1
[   22.148779] xgifb 0000:01:00.0: Framebuffer at 0xe0000000, mapped to 0xe1000000, size 32768k
[   22.159757] asoc-simple-card sound: alc5621-hifi <-> i2s mapping ok
[   22.256366] xgifb 0000:01:00.0: MMIO at 0xe4000000, mapped to 0xe3040000, size 256k
[   22.358681] xgifb 0000:01:00.0: No or unknown bridge type detected
[   22.364944] xgifb: Default mode is 800x600x16 (60Hz)
[   28.818628] random: crng init done
done.
[ ok ] Activating swap:.
[   32.437586] 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, 14536/3915776 files, 424482/15662848 blocks
. ok
[   32.832167] 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.
[....] 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/52:3b:20:9c:11:51
Sending on   LPF/eth0/52:3b:20:9c:11:51
Sending on   Socket/fallback
DHCPREQUEST of 192.168.1.10 on eth0 to 255.255.255.255 port 67
/boot/uEnv.txt\t[  114.324303] NET: Registered protocol family 10
[  114.331253] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[  114.337363] Segment Routing with IPv6
DHCPREQUEST of 192.168.1.10 on eth0 to 255.255.255.255 port 67
DHCPREQUEST of 192.168.1.10 on eth0 to 255.255.255.255 port 67
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 16
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 2
No DHCPOFFERS received.
Trying recorded lease 192.168.1.10
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

No working leases in persistent database - sleeping.
done.
[ 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.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting NTP server: ntpd.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1321 (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
Password:
Last login: Fri Dec 31 16:37:36 PST 1999 on ttyS0
Linux debian 4.12.1-kirkwood-tld-1 #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 armv5tel

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00080000 00010000 "u-boot"
mtd1: 00040000 00010000 "SSD firmware"
mtd2: 00010000 00010000 "u-boot env"
mtd3: 00010000 00010000 "permanent u-boot env"
mtd4: 00010000 00010000 "permanent u-boot env"
Re: HP T5325 Thin Client U-Boot-2017.07-tld-1
December 30, 2017 01:29AM
I erased the /boot/uEnv.txt and after logging into Debian, the cat /proc/mtd is:
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"
flash_unlock /dev/mtd0
flash_unlock: error!: could not unlock device: /dev/mtd0

              error 95 (Operation not supported)
flashcp -v uboot.2017.07-tld-1.t5325.mtd0.kwb /dev/mtd0
Erasing blocks: 8/8 (100%)
Writing data: 512k/512k (100%)
Verifying data: 10k/512k (1%)File does not seem to match flash data. First mismatch at 0x00000000-0x00002800



Edited 1 time(s). Last edit at 12/30/2017 01:37AM by kalehrl.
Re: HP T5325 Thin Client U-Boot-2017.07-tld-1
December 30, 2017 07:21AM
kalehrl Wrote:
-------------------------------------------------------
> I erased the /boot/uEnv.txt

That's the correct fix!

> and after logging into
> Debian, the cat /proc/mtd is:
>
> 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"
>

Cool! now the mtd definition is correct.


> flashcp -v uboot.2017.07-tld-1.t5325.mtd0.kwb
> /dev/mtd0
>
> Erasing blocks: 8/8 (100%)
> Writing data: 512k/512k (100%)
> Verifying data: 10k/512k (1%)File does not seem to
> match flash data. First mismatch at
> 0x00000000-0x00002800
>

But this error might have rendered your SPI flash u-boot unusable.

So let's do the kwboot again, and this time try to reset the envs also to internal values (don't load the script).

1. kwboot with uboot.2017.07-tld-1.t5325.mtd0.kwb
2. interrupt serial console and list the envs

printenv

3. Copy and paste the envs to a notepad to save them, just in case.

4. Set the envs to the uboot.2017.07-tld-1.t5325 internal values
resetenv

5. List the envs

printenv

6. At this point you might or might not need to adjust some envs such as ethaddr, ipaddr, serverip... . However, the default internal envs should allow booting into Debian for now (you can adjust them later).

7. Boot

boot

8. After bootinginto Debian, try flashing the u-boot image again (no need to use flash_unlock).

Please post the entire serial console log from kwboot command until after step 8.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: HP T5325 Thin Client U-Boot-2017.07-tld-1
December 30, 2017 01:26PM
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 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
printenv
arcNumber=2097
arch=sandbox
baudrate=115200
board=sandbox
board_name=sandbox
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}extlinux/extlinux.conf
boot_net_pci_enum=pci enum
boot_net_usb_start=usb start
boot_prefixes=/ /boot/
boot_script_dhcp=boot.scr.uimg
boot_scripts=boot.scr.uimg boot.scr
boot_targets=host1 host0 
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_host0=setenv devnum 0; run host_boot
bootcmd_host1=setenv devnum 1; run host_boot
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
bootm_size=0x10000000
cpu=sandbox
device=0:1
devices=usb ide
disks=0 1 2 3
distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done
dtb_file=/boot/dts/kirkwood-t5325.dtb
eth1addr=00:00:11:22:33:45
eth3addr=00:00:11:22:33:46
eth5addr=00:00:11:22:33:47
ethact=egiga0
ethaddr=52:3b:20:9c:11:51
fdt_addr_r=0xc00000
fileaddr=800000
filesize=ca0
host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot_part; fi
if_netconsole=ping $serverip
ipaddr=192.168.0.231
kernel_addr_r=0x1000000
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
pxefile_addr_r=0x2000
ramdisk_addr_r=0x2000000
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
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
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_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
scriptaddr=0x1000
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_boot=usb start; if usb dev ${devnum}; then setenv devtype usb; run scan_dev_for_boot_part; fi
usb_ready_retry=15

Environment size: 4838/65532 bytes
resetenv
Unknown command 'resetenv' - try 'help'
Re: HP T5325 Thin Client U-Boot-2017.07-tld-1
December 30, 2017 08:20PM
kalehrl,

> resetenv
> Unknown command 'resetenv' - try 'help'

Argh. I'm away from home so can't check why it is not available! I will check to see if I have uboot.2017.07-tld-1.environment.scr on my laptop. In the mean time:


1. kwboot with u-boot-2017.07-tld-1, interrupt serial console and

ext2load usb 0:1 0x800000 /boot/uboot.2016.05-tld-1.environment.scr
source 0x800000



2. And then execute these additional commands:

setenv mtdparts 'mtdparts=spi0.0:512K(uboot),256K(sdd_firmware),64K(uboot_env),64K(permanent_uboot_env),64K(hp_env)'    
setenv mtdids 
setenv partition 
setenv machid



3. Verify envs are correct

printenv


4. Do a savenv and boot

saveenv
boot

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: HP T5325 Thin Client U-Boot-2017.07-tld-1
December 31, 2017 03:22AM
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 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> usb start
Unknown command 'usb' - try 'help'
T5325> usb start
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
T5325> ext2load usb 0:1 0x800000 /boot/uboot.2016.05-tld-1.environment.scr
3232 bytes read in 831 ms (2.9 KiB/s)
T5325> source 0x800000
## Executing script at 00800000
T5325> source 0x800000
## Executing script at 00800000
T5325> setenv devices 'usb ide'
T5325> setenv dtb_file '/boot/dts/kirkwood-t5325.dtb'
T5325> setenv mtdparts 'mtdparts=spi0.0:512K(uboot),256K(sdd_firmware),64K(uboot_env),64K(permanent_uboot_env),64K(hp_env)'
T5325> setenv mtdids
T5325> setenv partition
T5325> setenv machid

printenv
arcNumber=2097
arch=sandbox
baudrate=115200
board=sandbox
board_name=sandbox
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}extlinux/extlinux.conf
boot_net_pci_enum=pci enum
boot_net_usb_start=usb start
boot_prefixes=/ /boot/
boot_script_dhcp=boot.scr.uimg
boot_scripts=boot.scr.uimg boot.scr
boot_targets=host1 host0
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_host0=setenv devnum 0; run host_boot
bootcmd_host1=setenv devnum 1; run host_boot
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
bootm_size=0x10000000
cpu=sandbox
device=0:1
devices=usb ide
disks=0 1 2 3
distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done
dtb_file=/boot/dts/kirkwood-t5325.dtb
eth1addr=00:00:11:22:33:45
eth3addr=00:00:11:22:33:46
eth5addr=00:00:11:22:33:47
ethact=egiga0
ethaddr=52:3b:20:9c:11:51
fdt_addr_r=0xc00000
fileaddr=800000
filesize=ca0
host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot_part; fi
if_netconsole=ping $serverip
ipaddr=192.168.0.231
kernel_addr_r=0x1000000
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
pxefile_addr_r=0x2000
ramdisk_addr_r=0x2000000
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
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
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_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
scriptaddr=0x1000
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_boot=usb start; if usb dev ${devnum}; then setenv devtype usb; run scan_dev_for_boot_part; fi
usb_ready_retry=15

Environment size: 4838/65532 bytes

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

boot

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)

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            125302784       005eb869-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
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 812 ms (4.5 MiB/s)
loading uInitrd ...
7245696 bytes read in 799 ms (8.6 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.000504] Console: colour dummy device 80x30
[    0.000537] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000561] pid_max: default: 32768 minimum: 301
[    0.000758] Security Framework initialized
[    0.000879] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000899] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001746] CPU: Testing write buffer coherency: ok
[    0.002736] Setting up static identity map for 0x100000 - 0x100058
[    0.002997] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.006227] devtmpfs: initialized
[    0.010468] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.010494] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.010882] prandom: seed boundary self test passed
[    0.014618] prandom: 100 self tests passed
[    0.014629] pinctrl core: initialized pinctrl subsystem
[    0.015777] NET: Registered protocol family 16
[    0.016246] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.017829] cpuidle: using governor ladder
[    0.017899] cpuidle: using governor menu
[    0.018328] Feroceon L2: Enabling L2
[    0.018374] Feroceon L2: Cache support initialised.
[    0.018728] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.024428] No ATAGs?
[    0.033810] vgaarb: loaded
[    0.034125] SCSI subsystem initialized
[    0.034606] usbcore: registered new interface driver usbfs
[    0.034690] usbcore: registered new interface driver hub
[    0.034772] usbcore: registered new device driver usb
[    0.035878] clocksource: Switched to clocksource orion_clocksource
[    0.124642] VFS: Disk quotas dquot_6.6.0
[    0.124719] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.135219] NET: Registered protocol family 2
[    0.135997] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.136058] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.136111] TCP: Hash tables configured (established 4096 bind 4096)
[    0.136197] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.136222] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.136398] NET: Registered protocol family 1
[    0.136808] RPC: Registered named UNIX socket transport module.
[    0.136821] RPC: Registered udp transport module.
[    0.136828] RPC: Registered tcp transport module.
[    0.136835] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.137069] Unpacking initramfs...
[    0.791240] Freeing initrd memory: 7076K
[    0.791378] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.792348] audit: initializing netlink subsys (disabled)
[    0.792820] Initialise system trusted keyrings
[    0.792871] Key type blacklist registered
[    0.792964] audit: type=2000 audit(0.786:1): state=initialized audit_enabled=0 res=1
[    0.793061] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.793129] zbud: loaded
[    0.794090] NFS: Registering the id_resolver key type
[    0.794116] Key type id_resolver registered
[    0.794125] Key type id_legacy registered
[    0.794142] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.794152] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.794351] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.794548] fuse init (API version 7.26)
[    0.794877] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.795081] orangefs_init: module version upstream loaded
[    0.795093] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.555889] random: fast init done
[    6.639194] Key type asymmetric registered
[    6.639210] Asymmetric key parser 'x509' registered
[    6.639275] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    6.639286] io scheduler noop registered
[    6.639294] io scheduler deadline registered
[    6.639375] io scheduler cfq registered (default)
[    6.640709] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    6.642581] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[    6.642602] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    6.642616] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    6.642629] pci_bus 0000:00: root bus resource [bus 00-ff]
[    6.642955] PCI: bus0: Fast back to back transfers disabled
[    6.642979] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    6.643498] pci 0000:01:00.0: vgaarb: VGA device added: decodes=io+mem,owns=none,locks=none
[    6.665955] PCI: bus1: Fast back to back transfers disabled
[    6.666066] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe5ffffff]
[    6.666082] pci 0000:00:01.0: BAR 13: assigned [io  0x10000-0x10fff]
[    6.666102] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe3ffffff pref]
[    6.666120] pci 0000:01:00.0: BAR 1: assigned [mem 0xe4000000-0xe403ffff]
[    6.666137] pci 0000:01:00.0: BAR 2: assigned [io  0x10000-0x1007f]
[    6.666153] pci 0000:00:01.0: PCI bridge to [bus 01]
[    6.666166] pci 0000:00:01.0:   bridge window [io  0x10000-0x10fff]
[    6.666183] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe5ffffff]
[    6.666279] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[    6.666818] mv_xor f1060800.xor: Marvell shared XOR driver
[    6.726619] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    6.726842] mv_xor f1060900.xor: Marvell shared XOR driver
[    6.786610] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    6.787033] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    6.788376] console [ttyS0] disabled
[    6.788441] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 27, base_baud = 12500000) is a 16550A
[    7.504674] console [ttyS0] enabled
[    7.516630] loop: module loaded
[    7.520354] sata_mv f1080000.sata: slots 32 ports 2
[    7.528086] scsi host0: sata_mv
[    7.531683] scsi host1: sata_mv
[    7.535084] ata1: SATA max UDMA/133 irq 35
[    7.539257] ata2: SATA max UDMA/133 irq 35
[    7.544944] m25p80 spi0.0: found mx25l8005, expected m25p80
[    7.550609] m25p80 spi0.0: mx25l8005 (1024 Kbytes)
[    7.555437] 5 cmdlinepart partitions found on MTD device spi0.0
[    7.561408] Creating 5 MTD partitions on "spi0.0":
[    7.566249] 0x000000000000-0x000000080000 : "uboot"
[    7.572480] 0x000000080000-0x0000000c0000 : "sdd_firmware"
[    7.579337] 0x0000000c0000-0x0000000d0000 : "uboot_env"
[    7.585865] 0x0000000d0000-0x0000000e0000 : "permanent_uboot_env"
[    7.593084] 0x0000000e0000-0x0000000f0000 : "hp_env"
[    7.600302] libphy: Fixed MDIO Bus: probed
[    7.605210] libphy: orion_mdio_bus: probed
[    7.614291] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    7.622513] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:3b:20:9c:11:51
[    7.631450] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.638116] ehci-pci: EHCI PCI platform driver
[    7.642650] ehci-orion: EHCI orion driver
[    7.646927] orion-ehci f1050000.ehci: EHCI Host Controller
[    7.652466] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    7.660388] orion-ehci f1050000.ehci: irq 31, io mem 0xf1050000
[    7.695913] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    7.702226] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    7.709082] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    7.716361] usb usb1: Product: EHCI Host Controller
[    7.721259] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    7.728011] usb usb1: SerialNumber: f1050000.ehci
[    7.733432] hub 1-0:1.0: USB hub found
[    7.737286] hub 1-0:1.0: 1 port detected
[    7.741897] usbcore: registered new interface driver usb-storage
[    7.748329] mousedev: PS/2 mouse device common for all mice
[    7.754533] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    7.761686] i2c /dev entries driver
[    7.767385] hidraw: raw HID events driver (C) Jiri Kosina
[    7.773232] drop_monitor: Initializing network drop monitor service
[    7.779842] NET: Registered protocol family 17
[    7.784385] Key type dns_resolver registered
[    7.789481] registered taskstats version 1
[    7.793599] Loading compiled-in X.509 certificates
[    7.798532] zswap: loaded using pool lzo/zbud
[    7.813026] Key type big_key registered
[    7.826431] Key type encrypted registered
[    7.831852] rtc-mv f1010300.rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[    8.035920] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    8.044537] ata1.00: ATA-7: SM224, I0521, max UDMA/133
[    8.049725] ata1.00: 949536 sectors, multi 0: LBA
[    8.056977] ata1.00: configured for UDMA/133
[    8.071835] scsi 0:0:0:0: Direct-Access     ATA      SM224            1    PQ: 0 ANSI: 5
[    8.081069] sd 0:0:0:0: [sda] 949536 512-byte logical blocks: (486 MB/464 MiB)
[    8.088982] sd 0:0:0:0: [sda] Write Protect is off
[    8.093965] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    8.103198] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    8.111606]  sda: sda1
[    8.115395] sd 0:0:0:0: [sda] Attached SCSI disk
[    8.296405] usb 1-1: New USB device found, idVendor=0424, idProduct=2514
[    8.303159] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    8.311097] hub 1-1:1.0: USB hub found
[    8.315024] hub 1-1:1.0: 4 ports detected
[    8.420514] ata2: SATA link down (SStatus 0 SControl F300)
[    8.439130] Freeing unused kernel memory: 1024K
Loading, please wait...
starting version 232
[    8.635970] usb 1-1.3: new high-speed USB device number 3 using orion-ehci
[    8.811543] usb 1-1.3: New USB device found, idVendor=090c, idProduct=1000
[    8.824934] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    8.839306] usb 1-1.3: Product: Flash Drive
[    8.843539] usb 1-1.3: Manufacturer: Samsung
[    8.855975] usb 1-1.3: SerialNumber: 0374716020010662
[    8.867305] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[    8.884218] scsi host2: usb-storage 1-1.3:1.0
[    9.297916] usbcore: registered new interface driver uas
Begin: Loading essential drivers ... done.
[   10.280870] scsi 2:0:0:0: Direct-Access     Samsung  Flash Drive      1100 PQ: 0 ANSI: 6
[   10.294713] sd 2:0:0:0: [sdb] 125304832 512-byte logical blocks: (64.2 GB/59.8 GiB)
[   10.308460] sd 2:0:0:0: [sdb] Write Protect is off
[   10.318194] sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   10.342426]  sdb: sdb1
[   10.351451] 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.466925] 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...done.
[   21.467386] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[....] Waiting for /dev to be fully populated...[   21.626610] xgifb: module is from the staging directory, the quality is unknown, you have been warned.
[   21.715065] xgifb 0000:01:00.0: Relocate IO address: 10000 [00010030]
[   21.788099] xgifb 0000:01:00.0: enabling device (0140 -> 0143)
[   21.793968] xgifb 0000:01:00.0: chipid = 32
[   21.835778] xgifb: SR14=51 DramSzie 2000000 ChannelNum 1
[   21.889515] xgifb 0000:01:00.0: Framebuffer at 0xe0000000, mapped to 0xe1000000, size 32768k
[   21.910152] marvell-cesa f1030000.crypto: CESA device successfully registered
[   21.910990] orion_wdt: Initial timeout 21 sec
[   22.010315] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   22.010531] sd 2:0:0:0: Attached scsi generic sg1 type 0
[   22.091454] xgifb 0000:01:00.0: MMIO at 0xe4000000, mapped to 0xe0f40000, size 256k
[   22.172226] asoc-simple-card sound: alc5621-hifi <-> i2s mapping ok
[   22.286194] xgifb 0000:01:00.0: No or unknown bridge type detected
[   22.292448] xgifb: Default mode is 800x600x16 (60Hz)
[   27.417693] random: crng init done
done.
[ ok ] Activating swap:.
[   32.420083] 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, 14535/3915776 files, 424487/15662848 blocks
. ok
[   32.804989] 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.
[....] 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/52:3b:20:9c:11:51
Sending on   LPF/eth0/52:3b:20:9c:11:51
Sending on   Socket/fallback
DHCPREQUEST of 192.168.1.14 on eth0 to 255.255.255.255 port 67
[  114.334801] NET: Registered protocol family 10
[  114.341756] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[  114.347863] Segment Routing with IPv6
DHCPREQUEST of 192.168.1.14 on eth0 to 255.255.255.255 port 67
DHCPREQUEST of 192.168.1.14 on eth0 to 255.255.255.255 port 67
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 16
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 2
No DHCPOFFERS received.
Trying recorded lease 192.168.1.14
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

No working leases in persistent database - sleeping.
done.
[ 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...
1324 (syslogd)
. ok
[ ok ] Starting system message bus: dbus.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting NTP server: ntpd.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1325 (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
Password:
Last login: Fri Dec 31 16:13:46 PST 1999 on ttyS0
Linux debian 4.12.1-kirkwood-tld-1 #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 armv5tel

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@debian:
flashcp -v uboot.2017.07-tld-1.t5325.mtd0.kwb /dev/mtd0
Erasing blocks: 8/8 (100%)
Writing data: 512k/512k (100%)
Verifying data: 10k/512k (1%)File does not seem to match flash data. First mismatch at 0x00000000-0x00002800
Re: HP T5325 Thin Client U-Boot-2017.07-tld-1
December 31, 2017 03:42AM
kalehrl ,

I can see why the flash command did not executed successfully. Your box has a different SPI flash type.

SF: Detected mx25l8005 with page size 256 Bytes, erase size 64 KiB, total 1 MiB


[    7.544944] m25p80 spi0.0: found mx25l8005, expected m25p80
[    7.550609] m25p80 spi0.0: mx25l8005 (1024 Kbytes)


For now, continue booting with kwboot. You are OK running Debian this way. Whenever you need to reboot, run kwboot to start the box, then you are OK.

I will look into this a little bit deeper and see if this flash type was configured in the kernel, and then update the kernel configuration if it was missing.

Thanks for testing! you have been very helpful identifiying this problem :) I thought I did configured all possible SPI flash types for this box, but perhaps I did not have one in your box (HP T53125 boxes uses many different types, depending on when it was maufactured).

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: HP T5325 Thin Client U-Boot-2017.07-tld-1
December 31, 2017 11:19AM
Thank you bodhi and happy New Year.
I will stow away the box for now but if you manage to fix the problem, I will be there to test it.
Cheers!
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: