Welcome! Log In Create A New Profile

Advanced

Debian on HP T5325 Thin Client

Posted by Gravelrash 
JRD McLAREN
Re: HP T5325 Thin Client Debian
April 13, 2017 12:42PM
So ...
Stock ubot & envs are inside ..
and LAN work ... :)

but, it is not so easy, as it seems to be..

For the first time, I will try back serial uboot, from mtd3 image via flash-write command.
No success, verify failed.
Then try to flash from original HP Uboot update file, and still no "happy end" ..
..and after reboot, I have "one nice piece of electo-garbage" .. oh yes, it is bricked...

We started "rescue mission" ....
Desolder flash, read images from working one, split it ... and try to flash via programer.
..but...
Desoldered flash is not accessible or read&verify errors ocured.
We try to erase it. After two (or three) forced retries, we have accessible flash.
After this "procedure", we have fully accessible, readable and writable flash ..

(yes, It is strange ..)
Re: HP T5325 Thin Client Debian
April 15, 2017 07:51AM
Hey. When I try to update Uboot, the following errors occur.

[root@router]~# flash_unlock /dev/mtd3
flash_unlock: error!: could not open: /dev/mtd3
              error 13 (Permission denied)
[root@router]~# flash_unlock /dev/mtd0
flash_unlock: error!: could not unlock device: /dev/mtd0

              error 95 (Operation not supported)

What could be the problem?

[root@router]~# uname -a
Linux router 3.16.0-4-kirkwood #1 Debian 3.16.39-1+deb8u2 (2017-03-07) armv5tel GNU/Linux

[root@router]~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00010000 00001000 "u-boot env"
mtd1: 00010000 00001000 "permanent u-boot env"
mtd2: 00010000 00001000 "HP env"
mtd3: 00080000 00001000 "u-boot"
mtd4: 00040000 00001000 "SSD firmware"

[root@router]~# mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=63764,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,relatime,size=102740k,mode=755)
/dev/sdb1 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=23,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
/dev/sda1 on /boot type ext2 (rw,relatime)
rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw,relatime)



Edited 1 time(s). Last edit at 04/15/2017 07:53AM by WMLex.
Re: HP T5325 Thin Client Debian
April 15, 2017 03:15PM
WMLex,

I have only provided installation instruction from stock OS. Try booting into stock OS and install from there.

Not a lot of people have this device, so nobody has remined me to write section B :) It is possible, I just need to refresh my memory again and write it.

Quote

A. Installation from stock OS

Prerequisites

The Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2 rootfs must be prepared in advance on a USB drive on a single Ext3 partition and already mounted in this box before starting installation. The installation steps below assume that the following 4 prerequisites have been met:

a. The rootfs was extracted as is, and step 4 in the Debian rootfs installation is skipped (since we are going to boot with new u-boot, don't append DTB to uImage).
b. The tarball uboot.2015.10-tld-2.t5325.bodhi.tar has been downloaded and place in the /boot folder of the USB rootfs
c. The USB rootfs will be the only USB drive mounted in the T5325 box.
d. The installation must be done while stock OS running.

Steps:

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

mkdir /tmp/sdb1
mount -o noatime /dev/sdb1 /tmp/sdb1
cd /tmp/sdb1/boot
tar -xf uboot.2016.05-tld-1.t5325.bodhi.tar
tar -xf uboot.2016.05-tld-1.environment.bodhi.tar

2. Save your current u-boot envs and backup your current stock mtds for future restoration, should you decide to go back to stock

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

3. Verify the MTD flash definition in your running stock OS. Note the mtd0 and mtd3 definition, they must be identical to your current mtd0 and mtd3.

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

4. Flash u-boot to mtd3

cd /tmp/sdb1/boot
flash_unlock /dev/mtd3
flashcp -v uboot.2016.05-tld-1.t5325.mtd0.kwb /dev/mtd3

Expected Output

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

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

5. Flash u-boot default envs to mtd0.

cd /tmp/sdb1/boot
flash_unlock /dev/mtd0
flashcp -v uboot.2016.05-tld-1.environment.64K.img /dev/mtd0

Expected Output

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

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

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

a. Add fw_env.config to your stock OS.

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

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

/tmp/sdb1/usr/bin/fw_setenv arcNumber '2846'
/tmp/sdb1/usr/bin/fw_setenv mtdparts 'mtdparts=spi0.0:512K(uboot),256K(sdd_firmware),64K(uboot_env),64K(permanent_uboot_env),64K(hp_env)'
/tmp/sdb1/usr/bin/fw_setenv ethaddr 'xx:xx:xx:xx:xx:xx'
/tmp/sdb1/usr/bin/fw_setenv devices 'usb ide'
/tmp/sdb1/usr/bin/fw_setenv dtb_file '/boot/dts/kirkwood-t5325.dtb'

Setup netconsole envs (to activate later in Debian).

/tmp/sdb1/usr/bin/fw_setenv preboot_nc 'setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then ./run start_netconsole; fi'
/tmp/sdb1/usr/bin/fw_setenv ipaddr 'xxx.xxx.x.xxx'
/tmp/sdb1/usr/bin/fw_setenv serverip 'xxx.xxx.x.xxx'

c. Remove envs

/tmp/sdb1/usr/bin/fw_setenv mtdids
/tmp/sdb1/usr/bin/fw_setenv partition
/tmp/sdb1/usr/bin/fw_setenv machid


7. Done.

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

U-Boot 2016.05-tld-1 (Jun 12 2016 ….)
HP Thin Client T5325

B. Installation from the latest Debian rootfs

TBD.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 04/15/2017 03:22PM by bodhi.
JRD McLAREN
Re: HP T5325 Thin Client Debian
April 16, 2017 06:42AM
WMLex, try mtdinfo -a command.
root@hpt5325:/etc# mtdinfo -a
Count of MTD devices:           5
Present MTD devices:            mtd0, mtd1, mtd2, mtd3, mtd4
Sysfs interface supported:      yes

mtd0
Name:                           u-boot env
Type:                           nor
Eraseblock size:                65536 bytes, 64.0 KiB
Amount of eraseblocks:          1 (65536 bytes, 64.0 KiB)
Minimum input/output unit size: 1 byte
Sub-page size:                  1 byte
Character device major/minor:   90:0
Bad blocks are allowed:         false
Device is writable:             true

mtd1
Name:                           permanent u-boot env
Type:                           nor
Eraseblock size:                65536 bytes, 64.0 KiB
Amount of eraseblocks:          1 (65536 bytes, 64.0 KiB)
Minimum input/output unit size: 1 byte
Sub-page size:                  1 byte
Character device major/minor:   90:2
Bad blocks are allowed:         false
Device is writable:             false

mtd2
Name:                           HP env
Type:                           nor
Eraseblock size:                65536 bytes, 64.0 KiB
Amount of eraseblocks:          1 (65536 bytes, 64.0 KiB)
Minimum input/output unit size: 1 byte
Sub-page size:                  1 byte
Character device major/minor:   90:4
Bad blocks are allowed:         false
Device is writable:             true

mtd3
Name:                           u-boot
Type:                           nor
Eraseblock size:                65536 bytes, 64.0 KiB
Amount of eraseblocks:          8 (524288 bytes, 512.0 KiB)
Minimum input/output unit size: 1 byte
Sub-page size:                  1 byte
Character device major/minor:   90:6
Bad blocks are allowed:         false
Device is writable:             false

mtd4
Name:                           SSD firmware
Type:                           nor
Eraseblock size:                65536 bytes, 64.0 KiB
Amount of eraseblocks:          4 (262144 bytes, 256.0 KiB)
Minimum input/output unit size: 1 byte
Sub-page size:                  1 byte
Character device major/minor:   90:8
Bad blocks are allowed:         false
Device is writable:             true

root@hpt5325:/etc#
Re: HP T5325 Thin Client Debian
April 18, 2017 08:22AM
Many thanks, everything worked out.
There was one more problem, I can not install a new debian stretch.
uImage
uInitrd
device usb 0:1
reading /boot/uImage
1 bytes read in 23 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
reading /boot/uImage
2054677 bytes read in 92 ms (21.3 MiB/s)
loading uInitrd ...
reading /boot/uInitrd
11680480 bytes read in 387 ms (28.8 MiB/s)
loading DTB /boot/dts/kirkwood-t5325.dtb ...
reading /boot/dts/kirkwood-t5325.dtb
11889 bytes read in 41 ms (282.2 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Debian kernel
   Created:      2017-04-07  19:08:13 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2054613 Bytes = 2 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   debian-installer ramdisk
   Created:      2017-04-07  19:08:13 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    11680416 Bytes = 11.1 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... Bad Data CRC
Ramdisk image is corrupt or invalid
The previous version was installed without problems.
uImage
uInitrd
Re: HP T5325 Thin Client Debian
April 19, 2017 01:02AM
WMLex,

> Image Name: debian-installer ramdisk
> Created: 2017-04-07 19:08:13 UTC
> Image Type: ARM Linux RAMDisk Image (gzip com
> pressed)
> Data Size: 11680416 Bytes = 11.1 MiB
> Load Address: 00000000
> Entry Point: 00000000
> Verifying Checksum ... Bad Data CRC
> Ramdisk image is corrupt or invalid

This problem usually is not because of the new kernel or Debian version. It is usually because you might have not synched the disk before reboot, or the roofs filesystem was corrupted.

Please describe how did you create this rootfs, and which kernels have been installled in this rootfs since you created it, and what procedure used in doing that. Even better if you can post the entire log of what you done.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: HP T5325 Thin Client Debian
April 19, 2017 01:19AM
I did not create anything, I downloaded uImage and uInitrd.
http://ftp.debian.org/debian/dists/stretch/main/installer-armel/current/images/kirkwood/netboot/marvell/openrd-ultimate/
When I try to boot, the following error occurs.
The previous version was installed without problems.
http://ftp.debian.org/debian/dists/jessie/main/installer-armel/current/images/kirkwood/netboot/marvell/openrd/
Re: HP T5325 Thin Client Debian
April 19, 2017 03:17AM
WMLex,

> I did not create anything, I downloaded uImage and
> uInitrd.

Ah! I see that you're not familiar with kernel installtion procedure.

The full GNU/Linux system includes a rootfs and a kernel installed on that rootfs. The USB partition that you're booting with must contain a rootfs. And then it's up to you to install a kernel to run inside that rootfs. Or if you use my rootfs (Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2) then the custom 4.4 kernel is already installed inside this rootfs.

You've download uImage and uInitrd only, but did not install the full kernel. For example, this is the installation command to install one of my customed kernels:
dpkg -i linux-image-4.8.0-kirkwood-tld-1_1.0_armel.deb
You can also run the Debian installer to install a mainline kernel (without patches as in my customed kernel).

When you download the uImage and uInitrd only, then sometime it will work. But a lot times it will not. Because the kernel headers might be different between versions.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: HP T5325 Thin Client Debian
April 19, 2017 08:01AM
Unfortunately I can not boot from Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi
[    4.376788] sd 2:0:0:0: [sdb] Attached SCSI removable disk
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Waiting for root file system ... Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
done.
Gave up waiting for root device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
   - Check root= (did the system wait for the right device?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  /dev/disk/by-label/rootfs does not exist.  Dropping to a shell!
modprobe: module i8042 not found in modules.dep
[   43.854574] uhci_hcd: USB Universal Host Controller Interface driver
[   43.871270] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   43.888658] usbcore: registered new interface driver usbhid
[   43.894456] usbhid: USB HID core driver


BusyBox v1.22.1 (Debian 1:1.22.0-9+deb8u1) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/bin/sh: can't access tty; job control turned off
(initramfs) [  102.537465] random: nonblocking pool is initialized
Full boot log attached to the message.

My environment.
T5325>  printenv
arcNumber=2846
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=3
bootdev=usb
device=0:1
devices=usb ide
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-t5325.dtb
ethact=egiga0
ethaddr=f4:ce:46:24:67:f7
if_netconsole=ping $serverip
ipaddr=10.4.50.147
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000\

load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtdparts=mtdparts=spi0.0:512K(uboot),256K(sdd_firmware),64K(uboot_env),64K(permanent_uboot_env),64K(hp_env)
preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then ./run start_netconsole; fi
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
serverip=10.4.50.5
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_ready_retry=15

Environment size: 2961/65532 bytes
Attachments:
open | download - bootlog.txt (18.1 KB)
Re: HP T5325 Thin Client Debian
April 19, 2017 08:39PM
WMLex,

1. Make sure you followed the instruction to create the Debian 4.4 rootfs very closely (being root, label the partion name as rootfs, single ext3 partition...).

2. If after verifying the rootfs creation, it still got stuck as above, try using a different thumb drive.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
JRD McLAREN
Re: HP T5325 Thin Client Debian
April 24, 2017 01:56PM
..so ...
is BTRFS supported ..?? .. in your kernel ..??

cause I have one box with debian, 32Mb Boot EXT2 (due to uboot)
and all other space on stock flash as BTRFS (aprox 460Mb)..
no thumb drive is needed..
Re: HP T5325 Thin Client Debian
April 24, 2017 04:07PM
JRD McLAREN Wrote:
-------------------------------------------------------
> ..so ...
> is BTRFS supported ..?? .. in your kernel ..??
>
> cause I have one box with debian, 32Mb Boot EXT2 (
> due to uboot)
> and all other space on stock flash as BTRFS (aprox
> 460Mb)..
> no thumb drive is needed..

Yes, it is supported.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: HP T5325 Thin Client Debian
May 31, 2017 12:18AM
Is there any way to unbrick a T5325? I issued a fw_setenv command from my completed install (bodhi's 4.4.0), and the device no longer brings up uboot. I confimed my cable setup works, as I have another T5325 that still brings up uboot and bootstraps properly. I'm wondering if I might've corrupted /dev/mtd0 by chance. I've spent the last 2 days lurking and reading on the forums (this and others) before posting something.
Re: HP T5325 Thin Client Debian
May 31, 2017 02:21AM
csulaguy Wrote:
-------------------------------------------------------
> Is there any way to unbrick a T5325? I issued a fw
> _setenv command from my completed install (bodhi's
> 4.4.0), and the device no longer brings up uboot.
> I confimed my cable setup works, as I have another
> T5325 that still brings up uboot and bootstraps pr
> operly. I'm wondering if I might've corrupted /dev
> /mtd0 by chance. I've spent the last 2 days lurkin
> g and reading on the forums (this and others) befo
> re posting something.

Sure, you can connect serial console and use UART booting (loading u-boot using kwboot) to boot the box.

Download u-boot:
http://forum.doozan.com/read.php?3,12381

UART booting:
http://forum.doozan.com/read.php?3,7852,7852

If you have installed my released u-boot image and you think only the u-boot envs are messed up, you can use uEnv.txt capability to restore. No serial console is needed in this case.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 05/31/2017 02:24AM by bodhi.
Re: HP T5325 Thin Client Debian
September 12, 2017 06:58PM
Please see the work around for T5325 network problem here:

https://forum.doozan.com/read.php?2,12096,36530,page=50#msg-36530

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on HP T5325 Thin Client
September 13, 2017 03:07PM
This is a follow-up from here:
https://forum.doozan.com/read.php?2,72,36528#msg-36528
I managed to move rootfs to internal flash with minimum effort.
The only thing which is unusual are these lines:
running scan_disk ...
Scan device usb
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide
and also these:
[    8.085170] Workqueue: ata_sff ata_sff_pio_task
[    8.089749] [<c010ea54>] (unwind_backtrace) from [<c010ab48>] (show_stack+0x10/0x14)
[    8.097541] [<c010ab48>] (show_stack) from [<c0118454>] (__warn+0xd0/0xfc)
[    8.104451] [<c0118454>] (__warn) from [<c0118524>] (warn_slowpath_null+0x1c/0x24)
[    8.112063] [<c0118524>] (warn_slowpath_null) from [<c066049c>] (ata_sff_hsm_move+0x54/0x68c)
[    8.120636] [<c066049c>] (ata_sff_hsm_move) from [<c0660ca0>] (ata_sff_pio_task+0x1cc/0x238)
[    8.129122] [<c0660ca0>] (ata_sff_pio_task) from [<c012e698>] (process_one_work+0x260/0x464)
[    8.137605] [<c012e698>] (process_one_work) from [<c012f65c>] (worker_thread+0x31c/0x478)
[    8.145831] [<c012f65c>] (worker_thread) from [<c0133f14>] (kthread+0x120/0x13c)
[    8.153267] [<c0133f14>] (kthread) from [<c01070f0>] (ret_from_fork+0x14/0x24)
[    8.160522] ---[ end trace 6ebd31d0cbdf59cd ]---
which are not present in the log when booting from USB.
Re: Debian on HP T5325 Thin Client
September 13, 2017 06:30PM
kalehrl,

>
> running scan_disk ...
> Scan device usb
> device usb 0:1
> ** Bad device usb 0 **
> device usb 1:1
> ** Bad device usb 1 **
> device usb 2:1
> ** Bad device usb 2 **
> device usb 3:1
> ** Bad device usb 3 **
> Scan device ide
>

The above was OK. It's normal because u-boot was scanning all drives.

> and also these:
>
> [    8.085170] Workqueue: ata_sff
> ata_sff_pio_task
> [    8.089749] [<c010ea54>] (unwind_backtrace)
> from [<c010ab48>] (show_stack+0x10/0x14)
> [    8.097541] [<c010ab48>] (show_stack) from
> [<c0118454>] (__warn+0xd0/0xfc)
> [    8.104451] [<c0118454>] (__warn) from
> [<c0118524>] (warn_slowpath_null+0x1c/0x24)
> [    8.112063] [<c0118524>] (warn_slowpath_null)
> from [<c066049c>] (ata_sff_hsm_move+0x54/0x68c)
> [    8.120636] [<c066049c>] (ata_sff_hsm_move)
> from [<c0660ca0>] (ata_sff_pio_task+0x1cc/0x238)
> [    8.129122] [<c0660ca0>] (ata_sff_pio_task)
> from [<c012e698>] (process_one_work+0x260/0x464)
> [    8.137605] [<c012e698>] (process_one_work)
> from [<c012f65c>] (worker_thread+0x31c/0x478)
> [    8.145831] [<c012f65c>] (worker_thread) from
> [<c0133f14>] (kthread+0x120/0x13c)
> [    8.153267] [<c0133f14>] (kthread) from
> [<c01070f0>] (ret_from_fork+0x14/0x24)
> [    8.160522] ---[ end trace 6ebd31d0cbdf59cd
> ]---
>

This is interesting. The driver seems to dislike something about this SATA interface.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on HP T5325 Thin Client
September 13, 2017 08:57PM
kalehrl,

If you are booting only with internal flash, then you can set devices to ide only, to not seeing the usb scans
setenv devices ide

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: HP T5325 Thin Client Debian
September 24, 2017 06:31PM
All,

I've gone back to older kernels to track this network problem in Debian. This problem (only exists in the HP T5325) is mainly because a wrong link speed (1 Gbps) was identified by the driver, while this box NIC is 100Mbps.

This problem requires us to work around using either 1 of 3 methods:

1. Unplug the ethernet cable and replug it in to get network connection at the correct link speed.

Or,

2. Run ifup/down to force the network to renegotiate the speed.

ifdown eth0
ifup eth0

Or,

3. Add these to your /etc/rc.local (recommended solution):

logger -s -i "Run ethtool to set link speed to 100Mbps"
/sbin/ethtool -s eth0 speed 100 duplex full


Most likely, a maintream network driver patch has inadvertenly changed the behavior of autonegotiation (which affects this box only). Kernel 4.10.9-kirkwood-tld-1 was the last one that we did not have this problem for HP T5325. So you could either work around using one of the 3 methods above, or downgrade to kernel 4.10.9-kirkwood-tld-1.

I'll see if I can patch it to get it working and include it in the next kernel release (I'm still waiting for a security patch to get to mainline).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 4 time(s). Last edit at 09/25/2017 03:26AM by bodhi.
Re: HP T5325 Thin Client Debian
November 05, 2017 05:12PM
I have fixed this network problem in u-boot proper and released a new version U-Boot-2017.07-tld-1:
https://forum.doozan.com/read.php?3,26562

The link speed 100Mbs is now set during u-boot booting. So we don't need to rely on Linux kernel to renegotiate the link.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
JRD McLAREN
Re: Debian on HP T5325 Thin Client
November 25, 2017 03:38AM
..so ...

LAN does not work on my box.. with this new Uboot
(as a first try on "Bodhi's Uboot")

latest U-Boot-2017.07-tld-1 - kwbooted
latest Debian FS - on usb stick
setenv ethaddr 'f4:ce:46:23:f9:69'

..and still have no DHCPOFFERS..

[ 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.
[   28.881037] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/f4:ce:46:23:f9:69
Sending on   LPF/eth0/f4:ce:46:23:f9:69
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 19
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
[   91.096162] NET: Registered protocol family 10
[   91.104694] Segment Routing with IPv6
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1333 (syslogd)
. ok 
[ ok ] Starting system message bus: dbus.
[ ok ] Starting NFS common utilities: statd idmapd.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting NTP server: ntpd.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1332 (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: [  213.349636] mv643xx_eth_port mv643xx_eth_port.0 eth0: link down
[  217.590838] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
root
Password: 
Last login: Sat Jan  1 12:25:09 PST 2000 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:~# ip address
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether f4:ce:46:23:f9:69 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::f6ce:46ff:fe23:f969/64 scope link 
       valid_lft forever preferred_lft forever
3: wlx00c6e2175441: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 00:c6:e2:17:54:41 brd ff:ff:ff:ff:ff:ff
root@debian:~# 
Re: Debian on HP T5325 Thin Client
November 25, 2017 04:46AM
JRD,

Please post the entire serial console boot log here.

Also in Debian after login with serial console, get the listing of u-boot env and post here, too.

fw_printenv

Note: with the new u-boot 2017.07 version, you don't need to use the work around using ethtool anymore (it won't not hurt to do that, though).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
JRD McLAREN
Re: Debian on HP T5325 Thin Client
November 25, 2017 08:09AM
..and something is wrong in dtb file ..
have 5 mtd parts, but "permanent uboot env" are twice ..
..on the same addresses ...

I will send complete log tomorrow, maybe ...
JRD McLAREN
Re: Debian on HP T5325 Thin Client
November 26, 2017 09:41AM
full boot log.
 99 % [....................................]
[Type Ctrl-\ + c to quit]


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
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0
88E3016 Initialized on egiga0
Hit any key to stop autoboot:  0 
T5325> setenv ethaddr 'f4:ce:46:23:f9:69'

Warning: egiga0 MAC addresses don't match:
Address in SROM is         f4:ce:46:23:f9:69
Address in environment is  52:3b:20:9c:11:51
T5325> printenv
arcNumber=2846
baudrate=115200
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm$load_uimage_addr; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
console=ttyS0,115200
device=0:1
devices=usb ide
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-t5325.dtb
ethact=egiga0
ethaddr=f4:ce:46:23:f9:69
if_netconsole=ping $serverip
ipaddr=192.168.0.231
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtdparts=mtdparts=spi0.0:512K(uboot),256K(sdd_firmware),64K(uboot_env),64K(permanent_uboot_env),64K(hp_env)
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
serverip=192.168.0.220
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_ready_retry=15

Environment size: 2876/65532 bytes
T5325> boot
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 5 USB Device(s) found
       scanning usb for storage devices... 
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found

Reset IDE: Bus 0: OK Bus 1: OK 
  Device 0: Model: SM22 Firm: I052 Ser#: (03)5526888-20080228
            Type: Hard Disk
            Capacity: 463.6 MB = 0.4 GB (949536 x 512)
  Device 1: Model: KINGSTON SV300S37A120G Firm: 603ABBF0 Ser#: 50026B72570B4F56
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 114473.4 MB = 111.7 GB (234441648 x 512)

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            15661056        0d17456c-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     2048            71485           b29c302e-01     83
  2     73728           874496          b29c302e-02     83


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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            234439600       0f41a0da-01     83
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 538 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
3821592 bytes read in 825 ms (4.4 MiB/s)
loading uInitrd ...
7245696 bytes read in 885 ms (7.8 MiB/s)
loading DTB /boot/dts/kirkwood-t5325.dtb ...
11919 bytes read in 3122 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.006224] devtmpfs: initialized
[    0.010466] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.010493] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.010880] prandom: seed boundary self test passed
[    0.014616] prandom: 100 self tests passed
[    0.014628] pinctrl core: initialized pinctrl subsystem
[    0.015770] NET: Registered protocol family 16
[    0.016234] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.017828] 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.024424] No ATAGs?
[    0.033804] vgaarb: loaded
[    0.034118] SCSI subsystem initialized
[    0.034595] usbcore: registered new interface driver usbfs
[    0.034680] usbcore: registered new interface driver hub
[    0.034763] usbcore: registered new device driver usb
[    0.035875] clocksource: Switched to clocksource orion_clocksource
[    0.124678] VFS: Disk quotas dquot_6.6.0
[    0.124756] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.135258] NET: Registered protocol family 2
[    0.136038] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.136099] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.136151] TCP: Hash tables configured (established 4096 bind 4096)
[    0.136238] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.136262] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.136441] NET: Registered protocol family 1
[    0.136849] RPC: Registered named UNIX socket transport module.
[    0.136862] RPC: Registered udp transport module.
[    0.136869] RPC: Registered tcp transport module.
[    0.136876] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.137111] Unpacking initramfs...
[    0.791471] Freeing initrd memory: 7076K
[    0.791609] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.792575] audit: initializing netlink subsys (disabled)
[    0.793050] Initialise system trusted keyrings
[    0.793103] Key type blacklist registered
[    0.793191] audit: type=2000 audit(0.786:1): state=initialized audit_enabled=0 res=1
[    0.793287] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.793355] zbud: loaded
[    0.794316] NFS: Registering the id_resolver key type
[    0.794341] Key type id_resolver registered
[    0.794350] Key type id_legacy registered
[    0.794368] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.794378] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.794576] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.794771] fuse init (API version 7.26)
[    0.795101] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.795305] orangefs_init: module version upstream loaded
[    0.795316] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.555886] random: fast init done
[    6.639445] Key type asymmetric registered
[    6.639462] Asymmetric key parser 'x509' registered
[    6.639527] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    6.639539] io scheduler noop registered
[    6.639547] io scheduler deadline registered
[    6.639624] io scheduler cfq registered (default)
[    6.640959] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    6.642824] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[    6.642845] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    6.642858] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    6.642871] pci_bus 0000:00: root bus resource [bus 00-ff]
[    6.643203] PCI: bus0: Fast back to back transfers disabled
[    6.643227] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    6.643747] pci 0000:01:00.0: vgaarb: VGA device added: decodes=io+mem,owns=none,locks=none
[    6.665950] PCI: bus1: Fast back to back transfers disabled
[    6.666060] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe5ffffff]
[    6.666076] pci 0000:00:01.0: BAR 13: assigned [io  0x10000-0x10fff]
[    6.666095] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe3ffffff pref]
[    6.666114] pci 0000:01:00.0: BAR 1: assigned [mem 0xe4000000-0xe403ffff]
[    6.666130] pci 0000:01:00.0: BAR 2: assigned [io  0x10000-0x1007f]
[    6.666146] pci 0000:00:01.0: PCI bridge to [bus 01]
[    6.666159] pci 0000:00:01.0:   bridge window [io  0x10000-0x10fff]
[    6.666175] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe5ffffff]
[    6.666270] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[    6.666812] mv_xor f1060800.xor: Marvell shared XOR driver
[    6.726610] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    6.726832] mv_xor f1060900.xor: Marvell shared XOR driver
[    6.786600] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    6.787026] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    6.788368] console [ttyS0] disabled
[    6.788434] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 27, base_baud = 12500000) is a 16550A
[    7.504660] console [ttyS0] enabled
[    7.516629] loop: module loaded
[    7.520358] sata_mv f1080000.sata: slots 32 ports 2
[    7.528096] scsi host0: sata_mv
[    7.531688] scsi host1: sata_mv
[    7.535091] ata1: SATA max UDMA/133 irq 35
[    7.539258] ata2: SATA max UDMA/133 irq 35
[    7.544943] m25p80 spi0.0: found mx25l8005, expected m25p80
[    7.550609] m25p80 spi0.0: mx25l8005 (1024 Kbytes)
[    7.555440] 5 cmdlinepart partitions found on MTD device spi0.0
[    7.561410] Creating 5 MTD partitions on "spi0.0":
[    7.566250] 0x000000000000-0x000000080000 : "uboot"
[    7.572484] 0x000000080000-0x0000000c0000 : "sdd_firmware"
[    7.579348] 0x0000000c0000-0x0000000d0000 : "uboot_env"
[    7.585918] 0x0000000d0000-0x0000000e0000 : "permanent_uboot_env"
[    7.593094] 0x0000000e0000-0x0000000f0000 : "hp_env"
[    7.600310] libphy: Fixed MDIO Bus: probed
[    7.605221] libphy: orion_mdio_bus: probed
[    7.614305] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    7.622527] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:3b:20:9c:11:51
[    7.631460] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.638126] ehci-pci: EHCI PCI platform driver
[    7.642652] ehci-orion: EHCI orion driver
[    7.646929] orion-ehci f1050000.ehci: EHCI Host Controller
[    7.652468] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    7.660381] orion-ehci f1050000.ehci: irq 31, io mem 0xf1050000
[    7.695910] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    7.702219] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    7.709076] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    7.716354] usb usb1: Product: EHCI Host Controller
[    7.721252] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    7.728003] usb usb1: SerialNumber: f1050000.ehci
[    7.733432] hub 1-0:1.0: USB hub found
[    7.737289] hub 1-0:1.0: 1 port detected
[    7.741897] usbcore: registered new interface driver usb-storage
[    7.748328] mousedev: PS/2 mouse device common for all mice
[    7.754522] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    7.761680] i2c /dev entries driver
[    7.767382] hidraw: raw HID events driver (C) Jiri Kosina
[    7.773233] drop_monitor: Initializing network drop monitor service
[    7.779836] NET: Registered protocol family 17
[    7.784383] Key type dns_resolver registered
[    7.789483] registered taskstats version 1
[    7.793601] Loading compiled-in X.509 certificates
[    7.798534] zswap: loaded using pool lzo/zbud
[    7.812933] Key type big_key registered
[    7.826298] Key type encrypted registered
[    7.831707] rtc-mv f1010300.rtc: setting system clock to 2022-05-13 14:34:31 UTC (1652452471)
[    8.035917] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    8.044527] ata1.00: ATA-7: SM224, I0521, max UDMA/133
[    8.049720] ata1.00: 949536 sectors, multi 0: LBA 
[    8.056967] ata1.00: configured for UDMA/133
[    8.071826] 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.088985] sd 0:0:0:0: [sda] Write Protect is off
[    8.093968] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    8.103201] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    8.111623]  sda: sda1 sda2
[    8.116136] sd 0:0:0:0: [sda] Attached SCSI disk
[    8.296397] usb 1-1: New USB device found, idVendor=0424, idProduct=2514
[    8.303145] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    8.311077] hub 1-1:1.0: USB hub found
[    8.315015] hub 1-1:1.0: 4 ports detected
[    8.585913] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    8.618231] ata2.00: ATA-8: KINGSTON SV300S37A120G, 603ABBF0, max UDMA/133
[    8.625143] ata2.00: 234441648 sectors, multi 1: LBA48 NCQ (depth 31/32)
[    8.635900] usb 1-1.2: new high-speed USB device number 3 using orion-ehci
[    8.658217] ata2.00: configured for UDMA/133
[    8.673081] scsi 1:0:0:0: Direct-Access     ATA      KINGSTON SV300S3 BBF0 PQ: 0 ANSI: 5
[    8.682504] sd 1:0:0:0: [sdb] 234441648 512-byte logical blocks: (120 GB/112 GiB)
[    8.690488] sd 1:0:0:0: [sdb] Write Protect is off
[    8.695444] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    8.706181]  sdb: sdb1
[    8.710083] sd 1:0:0:0: [sdb] Attached SCSI disk
[    8.717670] Freeing unused kernel memory: 1024K
Loading, please wait...
[    8.787034] usb 1-1.2: New USB device found, idVendor=0718, idProduct=0710
[    8.793974] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    8.811131] usb 1-1.2: Product: TF10
[    8.814760] usb 1-1.2: Manufacturer: TDK LoR
[    8.826058] usb 1-1.2: SerialNumber: 120300000000018C
[    8.836284] usb-storage 1-1.2:1.0: USB Mass Storage device detected
starting version 232
[    8.856010] scsi host2: usb-storage 1-1.2:1.0
[    8.975968] usb 1-1.3: new low-speed USB device number 4 using orion-ehci
[    9.167797] usb 1-1.3: New USB device found, idVendor=0d62, idProduct=2028
[    9.174734] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    9.194626] usb 1-1.3: Product: Wireless Keyboard & Mouse
[    9.206028] usb 1-1.3: Manufacturer: Darfon
[    9.266956] usbcore: registered new interface driver uas
[    9.315979] usb 1-1.4: new high-speed USB device number 5 using orion-ehci
[    9.476902] usb 1-1.4: New USB device found, idVendor=0bda, idProduct=0179
[    9.483839] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    9.502932] usb 1-1.4: Product: 802.11n NIC
[    9.512858] usb 1-1.4: Manufacturer: Realtek
[    9.522243] usb 1-1.4: SerialNumber: 00C6E2175441
[    9.762690] input: Darfon Wireless Keyboard & Mouse as /devices/platform/ocp@f1000000/f1050000.ehci/usb1/1-1/1-1.3/1-1.3:1.0/0003:0D62:2028.0001/input/input0
[    9.859332] hid-generic 0003:0D62:2028.0001: input,hidraw0: USB HID v1.10 Keyboard [Darfon Wireless Keyboard & Mouse] on usb-f1050000.ehci-1.3/input0
[    9.885687] input: Darfon Wireless Keyboard & Mouse as /devices/platform/ocp@f1000000/f1050000.ehci/usb1/1-1/1-1.3/1-1.3:1.1/0003:0D62:2028.0002/input/input1
[    9.926989] scsi 2:0:0:0: Direct-Access     TDK LoR  TF10             1.00 PQ: 0 ANSI: 2
[    9.938575] sd 2:0:0:0: [sdc] 15669248 512-byte logical blocks: (8.02 GB/7.47 GiB)
[    9.953318] sd 2:0:0:0: [sdc] Write Protect is off
[    9.958924] sd 2:0:0:0: [sdc] No Caching mode page found
[    9.964282] sd 2:0:0:0: [sdc] Assuming drive cache: write through
[    9.972801] hid-generic 0003:0D62:2028.0002: input,hiddev0,hidraw1: USB HID v1.10 Mouse [Darfon Wireless Keyboard & Mouse] on usb-f1050000.ehci-1.3/input1
[    9.992072]  sdc: sdc1
[    9.999469] sd 2:0:0:0: [sdc] Attached SCSI removable disk
[   10.013947] usbcore: registered new interface driver usbhid
[   10.019684] usbhid: USB HID core driver
[   10.024609] usbcore: registered new interface driver usbmouse
[   10.044077] usbcore: registered new interface driver usbkbd
Begin: Loading essential drivers ... done.
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
[   20.327347] EXT4-fs (sdc1): mounting ext3 file system using the ext4 subsystem
[   20.346740] EXT4-fs (sdc1): 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 
[....] Synthesizing the initial hotplug events...[   22.448157] input: gpio_keys as /devices/platform/gpio_keys/input/input2
done.
[....] Waiting for /dev to be fully populated...[   22.639221] xgifb: module is from the staging directory, the quality is unknown, you have been warned.
[   22.735542] xgifb 0000:01:00.0: Relocate IO address: 10000 [00010030]
[   22.840568] xgifb 0000:01:00.0: enabling device (0140 -> 0143)
[   22.871106] xgifb 0000:01:00.0: chipid = 32
[   22.883885] xgifb: SR14=51 DramSzie 2000000 ChannelNum 1
[   22.905038] xgifb 0000:01:00.0: Framebuffer at 0xe0000000, mapped to 0xe1000000, size 32768k
[   22.961113] marvell-cesa f1030000.crypto: CESA device successfully registered
[   22.962796] orion_wdt: Initial timeout 21 sec
[   23.089171] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   23.089388] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   23.089598] sd 2:0:0:0: Attached scsi generic sg2 type 0
[   23.275996] xgifb 0000:01:00.0: MMIO at 0xe4000000, mapped to 0xe0f80000, size 256k
[   23.363941] r8188eu: module is from the staging directory, the quality is unknown, you have been warned.
[   23.416102] xgifb 0000:01:00.0: No or unknown bridge type detected
[   23.416115] xgifb: Default mode is 800x600x16 (60Hz)
[   23.461110] asoc-simple-card sound: alc5621-hifi <-> i2s mapping ok
[   23.785968] random: crng init done
[   23.792686] Chip Version Info: CHIP_8188E_Normal_Chip_TSMC_D_CUT_1T1R_RomVer(0)
[   23.888169] usbcore: registered new interface driver r8188eu
[   23.945980] raid6: int32x1  gen()    85 MB/s
[   24.288399] raid6: int32x1  xor()    55 MB/s
[   24.519120] r8188eu 1-1.4:1.0 wlx00c6e2175441: renamed from wlan0
[   24.532181] raid6: int32x2  gen()   118 MB/s
[   24.739932] raid6: int32x2  xor()    78 MB/s
[   24.906417] raid6: int32x4  gen()   122 MB/s
[   25.076243] raid6: int32x4  xor()    86 MB/s
[   25.246078] raid6: int32x8  gen()   117 MB/s
[   25.416178] raid6: int32x8  xor()    79 MB/s
[   25.420471] raid6: using algorithm int32x4 gen() 122 MB/s
[   25.425922] raid6: .... xor() 86 MB/s, rmw enabled
[   25.430733] raid6: using intx1 recovery algorithm
[   25.438100] xor: measuring software checksum speed
[   25.537912]    arm4regs  :  1088.800 MB/sec
[   25.635948]    8regs     :   654.000 MB/sec
[   25.735928]    32regs    :   905.200 MB/sec
[   25.740129] xor: using function: arm4regs (1088.800 MB/sec)
[   25.881161] Btrfs loaded, crc32c=crc32c-generic
[   25.887634] BTRFS: device fsid 69ab633b-9bef-48af-bba2-d7edfe3811f6 devid 1 transid 71 /dev/sda2
[   25.901861] BTRFS: device fsid 2c4435e2-cc38-4d5a-aa07-49bc0daa771d devid 1 transid 4766 /dev/sdb1
done.
[ ok ] Activating swap:.
[   26.579468] EXT4-fs (sdc1): 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/sdc1 
e2fsck 1.43.4 (31-Jan-2017)
rootfs: clean, 14457/489600 files, 171971/1957632 blocks
. ok 
[   26.837369] EXT4-fs (sdc1): 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.
[   29.628597] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/52:3b:20:9c:11:51
Sending on   LPF/eth0/52:3b:20:9c:11:51
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
[   91.643444] NET: Registered protocol family 10
[   91.650797] Segment Routing with IPv6
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1335 (syslogd)
. ok 
[ ok ] Starting system message bus: dbus.
[ ok ] Starting NFS common utilities: statd idmapd.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting NTP server: ntpd.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1333 (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: Sat Jan  1 12:38:57 PST 2000 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:~# fw_printenv 
Warning: Bad CRC, using default environment

JRD McLAREN
Re: Debian on HP T5325 Thin Client
November 26, 2017 09:47AM
...I'm think, . .. ... . ...

T5325> setenv ethaddr 'f4:ce:46:23:f9:69'

Warning: egiga0 MAC addresses don't match:
Address in SROM is         f4:ce:46:23:f9:69
Address in environment is  52:3b:20:9c:11:51

[....] 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
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
Re: Debian on HP T5325 Thin Client
November 26, 2017 01:23PM
JRD,

Following the instruction and flash the u-boot image and its default envs image. You will be able to set the MAC address.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
JRD McLAREN
Re: Debian on HP T5325 Thin Client
November 27, 2017 03:52PM
OK,

but I have not enough time at this moment...

MTD flash is not accessible with "new Debian distro" (fresh installed SATA SSD)
and with your's Debian FS version also.

..some time is needed ... to test it ...
Re: Debian on HP T5325 Thin Client
November 30, 2017 02:00AM
For kernel 4.13.5-kirkwood-tld-1 there appear to be issues with the kirkwood-t5325.dtb as the /proc/mtd has the permanent u-boot env listed twice:

root@HP-T5325:~# uname -a
Linux HP-T5325 4.13.5-kirkwood-tld-1 #1 PREEMPT Fri Oct 6 23:54:39 PDT 2017 armv5tel GNU/Linux
root@HP-T5325:~# fw_printenv dtb_file
dtb_file=/boot/dts/kirkwood-t5325.dtb
root@HP-T5325:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00080000 00001000 "u-boot"
mtd1: 00040000 00001000 "SSD firmware"
mtd2: 00010000 00001000 "u-boot env"
mtd3: 00010000 00001000 "permanent u-boot env"
mtd4: 00010000 00001000 "permanent u-boot env"

Also it appears that mtd0 cannot be unlocked:
root@HP-T5325:~# flash_unlock /dev/mtd0
flash_unlock: error!: could not unlock device: /dev/mtd0

              error 95 (Operation not supported)

Re: Debian on HP T5325 Thin Client
November 30, 2017 04:26AM
rayknight,

> For kernel 4.13.5-kirkwood-tld-1 there appear to
> be issues with the kirkwood-t5325.dtb as the
> /proc/mtd has the permanent u-boot env listed
> twice:
>
>
> root@HP-T5325:~# uname -a
> Linux HP-T5325 4.13.5-kirkwood-tld-1 #1 PREEMPT
> Fri Oct 6 23:54:39 PDT 2017 armv5tel GNU/Linux
> root@HP-T5325:~# fw_printenv dtb_file
> dtb_file=/boot/dts/kirkwood-t5325.dtb
> root@HP-T5325:~# cat /proc/mtd
> dev:    size   erasesize  name
> mtd0: 00080000 00001000 "u-boot"
> mtd1: 00040000 00001000 "SSD firmware"
> mtd2: 00010000 00001000 "u-boot env"
> mtd3: 00010000 00001000 "permanent u-boot env"
> mtd4: 00010000 00001000 "permanent u-boot env"
>
>

Something is wrong in your system. I did not see this.


> Also it appears that mtd0 cannot be unlocked:
>
> root@HP-T5325:~# flash_unlock /dev/mtd0
> flash_unlock: error!: could not unlock device:
> /dev/mtd0
> 
>               error 95 (Operation not supported)
> 
>

Also, it was unlocked OK for me.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on HP T5325 Thin Client
December 01, 2017 01:07AM
You clearly must be using a previous version of the kirkwood-t5325.dtb file as a hexdump of that file distributed with both linux-4.13.5-kirkwood-tld-1 and linux-4.14.1-kirkwood-tld-1 shows the 'permanent u-boot env' twice and never mentions 'hp_env' at all.

00001000  73 74 2c 6d 32 35 70 38  30 00 6a 65 64 65 63 2c  |st,m25p80.jedec,|
00001010  73 70 69 2d 6e 6f 72 00  00 00 00 03 00 00 00 04  |spi-nor.........|
00001020  00 00 01 ba 05 20 41 80  00 00 00 03 00 00 00 04  |..... A.........|
00001030  00 00 00 6f 00 00 00 00  00 00 00 03 00 00 00 04  |...o............|
00001040  00 00 01 cc 00 00 00 00  00 00 00 01 70 61 72 74  |............part|
00001050  69 74 69 6f 6e 40 30 00  00 00 00 03 00 00 00 08  |ition@0.........|
00001060  00 00 00 6f 00 00 00 00  00 08 00 00 00 00 00 03  |...o............|
00001070  00 00 00 07 00 00 01 d1  75 2d 62 6f 6f 74 00 00  |........u-boot..|
00001080  00 00 00 02 00 00 00 01  70 61 72 74 69 74 69 6f  |........partitio|
00001090  6e 40 31 00 00 00 00 03  00 00 00 08 00 00 00 6f  |n@1............o|
000010a0  00 08 00 00 00 04 00 00  00 00 00 03 00 00 00 0d  |................|
000010b0  00 00 01 d1 53 53 44 20  66 69 72 6d 77 61 72 65  |....SSD firmware|
000010c0  00 00 00 00 00 00 00 02  00 00 00 01 70 61 72 74  |............part|
000010d0  69 74 69 6f 6e 40 32 00  00 00 00 03 00 00 00 08  |ition@2.........|
000010e0  00 00 00 6f 00 0c 00 00  00 01 00 00 00 00 00 03  |...o............|
000010f0  00 00 00 0b 00 00 01 d1  75 2d 62 6f 6f 74 20 65  |........u-boot e|
00001100  6e 76 00 00 00 00 00 02  00 00 00 01 70 61 72 74  |nv..........part|
00001110  69 74 69 6f 6e 40 33 00  00 00 00 03 00 00 00 08  |ition@3.........|
00001120  00 00 00 6f 00 0d 00 00  00 01 00 00 00 00 00 03  |...o............|
00001130  00 00 00 15 00 00 01 d1  70 65 72 6d 61 6e 65 6e  |........permanen|
00001140  74 20 75 2d 62 6f 6f 74  20 65 6e 76 00 00 00 00  |t u-boot env....|
00001150  00 00 00 02 00 00 00 01  70 61 72 74 69 74 69 6f  |........partitio|
00001160  6e 40 34 00 00 00 00 03  00 00 00 08 00 00 00 6f  |n@4............o|
00001170  00 0d 00 00 00 01 00 00  00 00 00 03 00 00 00 15  |................|
00001180  00 00 01 d1 70 65 72 6d  61 6e 65 6e 74 20 75 2d  |....permanent u-|
00001190  62 6f 6f 74 20 65 6e 76  00 00 00 00 00 00 00 02  |boot env........|
000011a0  00 00 00 02 00 00 00 02  00 00 00 01 67 70 69 6f  |............gpio|
000011b0  40 31 30 31 30 30 00 00  00 00 00 03 00 00 00 13  |@10100..........|



Ray
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: