Welcome! Log In Create A New Profile

Advanced

Promwad-ThinClient - can't boot 6.11 kernel

Posted by cmp18 
MM
Re: Promwad-ThinClient - can't boot 6.11 kernel
December 10, 2024 03:51AM
gt used ext. powered USB hub to obtane log,
log with no errors from pin controller, but gt's last post before he disappeared from the topic:
>Bodhi, is it ok to ask to tinker with dtb a little
> more? Usb devices are not powering up in linux...

gt didn't any responce about effect of gpio change (48 ---> 45) in DTB
Re: Promwad-ThinClient - can't boot 6.11 kernel
December 10, 2024 06:07AM
bodhi,

USB flash drive was not connected during the last test.
here is a new test with a connected USB flash drive:
Marvell>> md.l 0xF1010000 8
f1010000: 01111111 00003311 33331100 33003333    .....3....3333.3
f1010010: 40000033 00004444 00000000 00000000    3..@DD..........
Marvell>> md.l 0xF1010100 1
f1010100: 00000080    ....
Marvell>> md.l 0xF1010140 1
f1010140: 00018000    ....
Marvell>> usb reset
(Re)start USB...
USB:   Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 3 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
Marvell>> md.l 0xF1010100 1
f1010100: 00000080    ....
Marvell>> md.l 0xF1010140 1
f1010140: 00018000    ....
Marvell>>


Also I added
CONFIG_USB_251XHUB=y
to your kernel config and built the kernel 6.11.6 (I also applied your patches).
Nothing has changed - same errors.

Bootlog in attachment.



MM,

copied tc_sleep from the vendor's environment. so I understood it was added to turn off the autostart when power supply is plugged in. but in practice it works poorly.
Attachments:
open | download - bootlog 251XHUB dtb ver3.txt (36.7 KB)
Re: Promwad-ThinClient - can't boot 6.11 kernel
December 10, 2024 06:12AM
MM Wrote:
-------------------------------------------------------
> gt used ext. powered USB hub to obtane log,
>
> log with no errors from pin controller, but
> gt's last post before he disappeared from
> the topic:
> >Bodhi, is it ok to ask to tinker with dtb a
> little
> > more? Usb devices are not powering up in
> linux...
>
> gt didn't any responce about effect of gpio
> change (48 ---> 45) in DTB


MM,

this is not the last message from gt in that thread - there's also a second page)
MM
Re: Promwad-ThinClient - can't boot 6.11 kernel
December 10, 2024 06:52AM
cmp18,

>this is not the last message from gt in that thread - there's also a second page)

I need new glasses)))
Re: Promwad-ThinClient - can't boot 6.11 kernel
December 10, 2024 01:52PM
> cmp18,
>
> >this is not the last message from gt in that
> thread - there's also a second page)
>
> I need new glasses)))

I think it's inconclusive whether it was working for @gt or not.

I reread the patch linux-3.1.1_r1416.patch attached to @gt's post:

https://forum.doozan.com/read.php?2,133204,133270#msg-133270

There are 3 variations of this box: wtplug, thin client, and nand hynix. Nand Hynix is same as Thin Client, but with the USB 251XHUB, Hynix NAND, and more preripherals. Thin Client has Samsung NAND. It seems that each model runs a different u-boot (based on the wtplug reference board which is the 1st model).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
MM
Re: Promwad-ThinClient - can't boot 6.11 kernel
December 11, 2024 06:36AM
I dug up a patch for u-boot, it doesn't contain the usb251x driver, but there is something else (maybe just the usb keybord definition)

see attach
Attachments:
open | download - u-boot-2011.06_r1370.patch (58.7 KB)
Re: Promwad-ThinClient - can't boot 6.11 kernel
December 11, 2024 07:47AM
just in case,
bootlog of the stock embedded firmware in attachment (before that I posted the log of the stock firmware based on deb6)

envs:
baudrate=115200
bootargs=ubi.mtd=3 ramdisk_size=41000 root=/dev/ram0 video=xgifb:mode:1024x768x32 mtdparts=orion_nand:4M(U-Boot),4M(uImage),24M(uInitrd),-(ubipart) boot:file:// conf:file://
bootcmd=run gcload; stoptc; bootm 0x800000 0xc000000
bootdelay=3
eth1addr=00:E1:75:11:54:17
ethact=egiga0
ethaddr=00:E1:75:11:54:16
fileaddr=6400000
filesize=89A0000
gcload=nand read.e 0x800000 0x400000 0x300000; nand read.e 0xc000000 0x800000 0x1000000
ipaddr=192.168.10.238
serverip=192.168.10.1
stderr=serial
stdin=serial
stdout=serial
tc_is_env_updated=yes

Environment size: 584/262140 bytes
Attachments:
open | download - bootlog stockfw embeded.txt (43.4 KB)
Re: Promwad-ThinClient - can't boot 6.11 kernel
December 11, 2024 02:36PM
Quote
MM
I dug up a patch for u-boot, it doesn't contain the usb251x driver, but there is something else (maybe just the usb keybord definition)

It's proven that this Thin Client model does not have the usb251x hub. And the Orion EHCI patches in this patch were no longer relevant to the modern mainline kernel.

Quote
cmp18
bootlog of the stock embedded firmware in attachment (before that I posted the log of the stock firmware based on deb6)

Very useful. If we have exhausted the easy ways, I'll compare the info in this log with u-boot.

I've uploade another DTB version in this post. Please try.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - kirkwood-promwad-thin-client.dtb (11.4 KB)
open | download - kirkwood-promwad-thin-client.dts (3 KB)
Re: Promwad-ThinClient - can't boot 6.11 kernel
December 12, 2024 02:45AM
I tested the new dtb - it looks like no changes

bootlog in attachment
Attachments:
open | download - bootlog dtb ver4.txt (37.5 KB)
MM
Re: Promwad-ThinClient - can't boot 6.11 kernel
December 12, 2024 03:44AM
there is a USB2517-jzx hub soldered on the board

when loading the board with 2 connected USB flash drives, only a 4G flash drive was connected with a consumption of 100 mAps, 32G flash drive with a consumption of about 200 mAps cause message obout insufficient available bus power:


[    5.823538][    T8] hub 1-1:1.0: insufficient power available to use all downstream ports
[    6.159326][    T8] usb 1-1.4: new high-speed USB device number 3 using orion-ehci
[    6.332011][    T8] usb 1-1.4: New USB device found, idVendor=ffff, idProduct=5678, bcdDevice= 2.00
[    6.349315][    T8] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    6.357365][    T8] usb 1-1.4: Product: Disk 2.0
[    6.379313][    T8] usb 1-1.4: Manufacturer: USB
[    6.383962][    T8] usb 1-1.4: SerialNumber: 3406751006873279858
[    6.400396][    T8] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[    6.419853][    T8] scsi host1: usb-storage 1-1.4:1.0
[    7.299351][    T8] usb 1-1.3: new high-speed USB device number 4 using orion-ehci
[    7.460466][   T11] scsi 1:0:0:0: Direct-Access     VendorCo ProductCode      2.00 PQ: 0 ANSI: 4
[    7.481714][    T8] usb 1-1.3: New USB device found, idVendor=0781, idProduct=5567, bcdDevice= 1.00
[    7.492411][   T32] sd 1:0:0:0: [sda] 7864320 512-byte logical blocks: (4.03 GB/3.75 GiB)
[    7.509332][    T8] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    7.517409][    T8] usb 1-1.3: Product: Cruzer Blade
[    7.529348][    T8] usb 1-1.3: Manufacturer: SanDisk
[    7.534536][   T32] sd 1:0:0:0: [sda] Write Protect is off
[    7.540531][   T32] sd 1:0:0:0: [sda] No Caching mode page found
[    7.546588][   T32] sd 1:0:0:0: [sda] Assuming drive cache: write through
[    7.559314][    T8] usb 1-1.3: SerialNumber: 03003203012121153105
[    7.579451][    T8] usb 1-1.3: rejected 1 configuration due to insufficient available bus power
[    7.588228][    T8] usb 1-1.3: no configuration chosen from 1 choice

MM
Re: Promwad-ThinClient - can't boot 6.11 kernel
December 12, 2024 03:55AM
these usb sticks with u-boot's 'usb start' behave the same way:

Quote

So, i got the same box and tried to boot kernel 6.11.6 using stock u-boot ('usb start' have seen partition only at my favorite noname 4g USB thumb drive, that works everywhere, 32g sandisk drive still invisible in Debian by insufficient power reason)
Re: Promwad-ThinClient - can't boot 6.11 kernel
December 12, 2024 01:20PM
MM,

> there is a USB2517-jzx hub soldered on the board

Cool! This might be the reason we were led into believing the Thin Client model does not use this hub: the same u-boot is used for both. And the GPL source is probably not up to date.

That's why I've asked to see the board picture. But I could not see that hub in the pic cmp18 posted.

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



Edited 1 time(s). Last edit at 12/12/2024 04:00PM by bodhi.
Re: Promwad-ThinClient - can't boot 6.11 kernel
December 12, 2024 02:00PM
MM,

>
> > there is a USB2517-jzx hub soldered on the
> board
>
> Cool! This might be the reason we were led into
> believing the Thin Client model does not use this
> hub: the same u-boot is used for both (there is no
> need to access the USB drive during boot).
>
> That's why I've asked to see the board picture.
> But I could not see that hub in the pic cmp18
> posted.

I just look at cmp18's pic again, still could not see it. Where is that hub? near which ports/chips?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
MM
Re: Promwad-ThinClient - can't boot 6.11 kernel
December 12, 2024 02:12PM
bodhi,

see below 88e1112, chip marked DD9
Re: Promwad-ThinClient - can't boot 6.11 kernel
December 12, 2024 03:31PM
MM,

> see below 88e1112, chip marked DD9

The pic is not high-res, I can see a chip but not the marking. Glad you found that!

I'll probably release this Kirkwood kernel a bit early than usual, and will see if I can update the DTS again to try activating the hub.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
MM
Re: Promwad-ThinClient - can't boot 6.11 kernel
December 13, 2024 01:15AM
Quote
bodhi
The pic is not high-res, I can see a chip but not the marking...

new pic in attach
Attachments:
open | download - PW TC 1.3 USB251x.jpg (152.7 KB)
Re: Promwad-ThinClient - can't boot 6.11 kernel
December 13, 2024 02:23PM
> new pic in attach

Thanks! it's much better, now I can see it. This model 2517 is explicitly called out in the Linux driver, too.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
MM
Re: Promwad-ThinClient - can't boot 6.11 kernel
December 15, 2024 04:34AM
cmp18,

I think Promwad Thin Client will be in demand for OpenWrt. Could you create a new topic "OpenWrt on Promwad Thin Client" or something like that in the Rescue System subforum and make a short tutorial? It will be useful for beginners, and some boxes will get a new life)
Re: Promwad-ThinClient - can't boot 6.11 kernel
December 19, 2024 10:52PM
MM,

there probably aren't many such devices outside of Russia, so I'll give you a link to openwrt and a manual here:
https://storage.vysm.ru/s/N2MqXLx7bdEnZb5
(outdated and deleted, see later posts)



Edited 1 time(s). Last edit at 12/22/2024 07:04AM by cmp18.
Re: Promwad-ThinClient - can't boot 6.11 kernel
December 19, 2024 11:57PM
Work in progress to install OpenWrt on unsupported boxes. Using the TBS MOI+ as example.

https://forum.doozan.com/read.php?4,138683

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
MM
Re: Promwad-ThinClient - can't boot 6.11 kernel
December 20, 2024 01:55AM
cmp18, bodhi,

Thanks for your help!
Best wishes for the New Year and looking forward to the new kernel)
Re: Promwad-ThinClient - can't boot 6.11 kernel
December 20, 2024 05:29PM
I've released 6.12.6-kirkwood-tld-1 kernel.

https://forum.doozan.com/read.php?2,12096

Quote

Updated 20 Dec Nov 2024:

Kernel linux-6.12.6-kirkwood-tld-1 package has been uploaded. The following features were added/updated

This kernel has new DTB for both PromWad Wtplug and Thin Client. So save your DTB before installation.

Happy New Year!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Promwad-ThinClient - can't boot 6.11 kernel
December 20, 2024 05:43PM
One thing I have not found is what to use for the I2C address in the DTS, so I used the default address. Hopefully it will work (if PromWad does not do anything fancy!).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Promwad-ThinClient - can't boot 6.11 kernel
December 20, 2024 08:59PM
Great, thanks, happy new year!
Re: Promwad-ThinClient - can't boot 6.11 kernel
December 22, 2024 10:48AM
MM,

You're right, I didn't like the rc version (bugs), so I posted the stable,and in a new theme: https://forum.doozan.com/read.php?4,138721,138721
MM
Re: Promwad-ThinClient - can't boot 6.11 kernel
December 26, 2024 02:31PM
bodhi,

>One thing I have not found is what to use for the I2C address in the DTS, so I used the default address. Hopefully it will work (if PromWad does not do anything fancy!).



Marvell>> i2c probe
Valid chip addresses: 1A 64

Re: Promwad-ThinClient - can't boot 6.11 kernel
December 26, 2024 03:25PM
MM,


> Marvell>> i2c probe
> Valid chip addresses: 1A 64

Thanks!

Have you tried the new kernel 6.12.6 with a USB drive attached yet? if you did, please post dmesg.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
MM
Re: Promwad-ThinClient - can't boot 6.11 kernel
December 27, 2024 01:26PM
bodhi,


>Have you tried the new kernel 6.12.6 with a USB drive attached yet? if you did, please post dmesg

dmesg output in attach
Attachments:
open | download - dmesg 6.12.6.txt (16.4 KB)
Re: Promwad-ThinClient - can't boot 6.11 kernel
December 27, 2024 02:08PM
MM,

OK. Let's use 0x1a as you've reported seeing in u-boot above. 0x64 is most definitely irrelevant..

Quote

Marvell>> i2c probe
Valid chip addresses: 1A 64

Attached is the DTB, also the DTS so you guys can double check what I did.

=====

[    5.267166] kirkwood-pinctrl f1010000.pin-controller: pin PIN8 already requested by f1012100.serial; cannot claim for f1011000.i2c
[    5.279749] kirkwood-pinctrl f1010000.pin-controller: error -EINVAL: pin-8 (f1011000.i2c)
[    5.288679] kirkwood-pinctrl f1010000.pin-controller: error -EINVAL: could not request pin 8 (PIN8) from group mpp8 on device f1010000.pin-controller
[    5.302885] mv64xxx_i2c f1011000.i2c: Error applying setting, reverse things back

The above might have screw it up badly.

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



Edited 1 time(s). Last edit at 12/27/2024 02:10PM by bodhi.
Attachments:
open | download - kirkwood-promwad-thin-client.dtb (11.4 KB)
open | download - kirkwood-promwad-thin-client.dts (3.1 KB)
Re: Promwad-ThinClient - can't boot 6.11 kernel
January 01, 2025 10:29AM
bodhi,

thanks,
bootlog in attachment
Attachments:
open | download - bootlog kernel6.12.16 dtb6.txt (35.3 KB)
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: