Welcome! Log In Create A New Profile

Advanced

Debian on Dell Wyse T10 / T50

Posted by Koen 
Re: Dell Wyse T10 / T50
July 26, 2018 04:10PM
Koen Wrote:
-------------------------------------------------------
> It seems that I've reached a dead end for now. If
> I have time I will try to read the spi chip using
> a raspberry pi this weekend. If that works I can
> write new kernel boot parameters to spi using the
> spi-w command and use the raspberry pi to restore
> the spi if it ends up locking me out of the
> device.
>
> Koen

There is one more thing to try. Assuming you can mount the HDD rootfs on another Linux box and restore boot-normal.scr if needed.

With new USB roots.

Replace

fatload ide 0:1 0x200000 /uImage

With

usb start
ext2load usb 0:1 0x200000 /boot/uImage

And boot with the new boot-normal.scr. See if the new kernel starts.

This approach does require you to mount the HDD externally each time you change the boot script.

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



Edited 1 time(s). Last edit at 07/26/2018 04:21PM by bodhi.
Koen
Re: Dell Wyse T10 / T50
July 26, 2018 04:28PM
Hi bodhi,

unfortunately there is no removable HDD in the device. I guess the internal flash memory is attached / soldered to the sata lanes so it appears as hard drive in dmesg.

Koen
Re: Dell Wyse T10 / T50
July 27, 2018 12:06AM
bodhi Wrote:
-------------------------------------------------------
> Looks like it is Armada 510. Same as HP Thin
> Client T5335z.
>
>
>
Quote

Dove family (application processor)
> -----------------------------------
>
> Flavors:
> 88AP510 a.k.a Armada 510
> Product Brief :
> http://www.marvell.com/application-processors/armada-500/assets/Marvell_Armada510_SoC.pdf
> Hardware Spec :
> http://www.marvell.com/application-processors/armada-500/assets/Armada-510-Hardware-Spec.pdf
> Functional Spec :
> http://www.marvell.com/application-processors/armada-500/assets/Armada-510-Functional-Spec.pdf
> Homepage:
> http://www.marvell.com/application-processors/armada-500/
> Core: ARMv7 compatible
>
> Directory: arch/arm/mach-mvebu (DT enabled
> platforms)
> arch/arm/mach-dove (non-DT enabled
> platforms)

Unfortunately all of these links are no longer valid and I haven't been able to locate an archive of any of these documents! I did find a link to a Hardware Design Guide. I also located in GitHub source for u-boot for the original CuBox which has Marvell's patches for the 88AP510. The readme file is interesting as it contains a section titled "How to boot from UART". This sounds more complicated than kwboot, but may prove useful.

Ray
Re: Dell Wyse T10 / T50
July 27, 2018 10:52AM
Koen
Re: Dell Wyse T10 / T50
July 27, 2018 03:55PM
Thanks Ray and JT for the extra info. I've had a look but a lot goes over my head to be honest. I've tried to read the contents of the spi chip this evening but have not managed it yet. The raspberry pi with pomona clip and jump wires are quite fiddly especially with my 'sausage' fingers and I'm not sure if there is a good electrical connection.

I did decide to switch the little jumper next to the chip that is marked bios to see what that does. It takes a while but eventually it shows a bootstrap prompt. Unfortunately nothing happens when I type help or any other key. Switching the jumper back to the original position and rebooting results in the normal start of linux from the internal memory.

Koen

koen@koen-ThinkPad-X220:~$ picocom -b 115200 /dev/ttyUSB0
picocom v2.2

port is        : /dev/ttyUSB0
flowcontrol    : none
baudrate is    : 115200
parity is      : none
databits are   : 8
stopbits are   : 1
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 -E
imap is        : 
omap is        : 
emap is        : crcrlf,delbs,

Type [C-a] [C-h] to see available commands

Terminal ready

Bootstrap 2.33>
>

Koen
Re: Dell Wyse T10 / T50
July 28, 2018 02:55PM
Hi,

I've not managed to read the spi chip using the raspberry pi but I do think I have found a safe way to modify the values stored in spi. I decided to uncompress the bootloader.img file that I've extracted from the device. I then ran binwalk to extract any useful data followed by the strings command to extract any text from this data. The bootloader.img file contains a program called wloader which allows you to do some basic configuring of the device before booting. The extracted text shows that you can start wloader by pressing either F2 or DEL during startup. So I did try this and it interrupts the boot process and drops you into a simple configuration GUI which allows you to set boot order and kernel parameters etc. These are the same settings that are shown by spi-r command. Once you exit wloader it saves the settings and reboots the device.

So I'll prepare another USB stick with rootfs with embedded dove.dtb but would like to know what kernel parameters I should try to boot from USB?

The current kernel parameters to boot from the internal memory are as follows:

root=/dev/sda3 pm_disable usb0Mode=host usb1Mode=host video=dovefb:lcd0:1024x768-32@60,lcd1:1024x768-32@60 clcd.lcd0_enable=1 clcd.lcd1_enable=1 clcd.lcd0_clk=3 clcd.lcd1_clk=1 splash no_console_suspend kb3310_disable=1 cpufreq_disable=1 vmalloc=384M quiet

Thanks,

Koen
Koen
Re: Dell Wyse T10 / T50
July 28, 2018 04:53PM
OK the method of changing kernel parameters through the wloader program seems to work OK. I've changed the kernel boot args to the following:

rootdelay=20 root=/dev/sdb1 pm_disable usb0Mode=host usb1Mode=host video=dovefb:lcd0:1024x768-32@60,lcd1:1024x768-32@60 clcd.lcd0_enable=1 clcd.lcd1_enable=1 clcd.lcd0_clk=3 clcd.lcd1_clk=1 splash no_console_suspend kb3310_disable=1 cpufreq_disable=1 vmalloc=384M

This does show the following on the serial port:

koen@koen-ThinkPad-X220:~$ picocom -b 115200 /dev/ttyUSB0
picocom v2.2

port is        : /dev/ttyUSB0
flowcontrol    : none
baudrate is    : 115200
parity is      : none
databits are   : 8
stopbits are   : 1
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 -E
imap is        : 
omap is        : 
emap is        : crcrlf,delbs,

Type [C-a] [C-h] to see available commands

Terminal ready
Uncompressing Linux........................................................................................................................................................................................................................................ done, booting the kernel.

The screen shows the output of the kernel booting but I have no way to capture it all unfortunately. It mounts the USB stick as EXT3 FS on sdb1. Then it shows the following output:

VFS: Mounted root (ext3 filesystem) on device 8:17.
devtmpfs: mounted
Freeing init memory: 180K
FATAL: kernel too old
Kernel panic: - not syncing: Attempted to kill init!

I guess this is progress but I'm not sure what to do next.

Koen
Koen
Re: Dell Wyse T10 / T50
July 28, 2018 05:05PM
Changing back to normal boot from sda3 the dmesg output from that point looks as follows:

EXT3 FS on sda3, internal journal
EXT3-fs: mounted filesystem with writeback data mode.
VFS: Mounted root (ext3 filesystem) on device 8:3.
devtmpfs: mounted
Freeing init memory: 180K
wco.c:v0.01 10/02/2012 WriteCO Control Driver
udev: starting version 151
ADDRCONF(NETDEV_UP): eth0: link is not ready
set clk 1 to 64998375
dividers found (in lookup table) for Fout = 64998375. n=234 d=5 odiv 18
set internal refclk divider to 31.0.(accurate mode)
set clk 1 to 148500148
dividers found (in lookup table) for Fout = 148500148. n=1188 d=25 odiv 8
DCON fb callback: blank...
YC pitch is 0.User program needs refine
YC pitch is 0.User program needs refine
set clk 1 to 148500148
dividers found (in lookup table) for Fout = 148500148. n=1188 d=25 odiv 8
eth0: link up, 100 Mb/s, full duplex, flow control disabled
ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
DCON fb callback: unblanking...
eth0: link down
eth0: link up, 100 Mb/s, full duplex, flow control disabled
eth0: link down
eth0: link up, 100 Mb/s, full duplex, flow control disabled
eth0: no IPv6 routers present

Koen
Re: Dell Wyse T10 / T50
July 29, 2018 03:03AM
Koen Wrote:
-------------------------------------------------------
> OK the method of changing kernel parameters
> through the wloader program seems to work OK. I've
> changed the kernel boot args to the following:
>
>
> rootdelay=20 root=/dev/sdb1 pm_disable
> usb0Mode=host usb1Mode=host
> video=dovefb:lcd0:1024x768-32@60,lcd1:1024x768-32@60
> clcd.lcd0_enable=1 clcd.lcd1_enable=1
> clcd.lcd0_clk=3 clcd.lcd1_clk=1 splash
> no_console_suspend kb3310_disable=1
> cpufreq_disable=1 vmalloc=384M
>
>
> This does show the following on the serial port:
>
>
> koen@koen-ThinkPad-X220:~$ picocom -b 115200
> /dev/ttyUSB0
> picocom v2.2
> 
> port is        : /dev/ttyUSB0
> flowcontrol    : none
> baudrate is    : 115200
> parity is      : none
> databits are   : 8
> stopbits are   : 1
> 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 -E
> imap is        : 
> omap is        : 
> emap is        : crcrlf,delbs,
> 
> Type [C-a] [C-h] to see available commands
> 
> Terminal ready
> Uncompressing
> Linux........................................................................................................................................................................................................................................
> done, booting the kernel.
>
>
> The screen shows the output of the kernel booting
> but I have no way to capture it all unfortunately.
> It mounts the USB stick as EXT3 FS on sdb1. Then
> it shows the following output:
>
>
> VFS: Mounted root (ext3 filesystem) on device
> 8:17.
> devtmpfs: mounted
> Freeing init memory: 180K
> FATAL: kernel too old
> Kernel panic: - not syncing: Attempted to kill
> init!
>
>
> I guess this is progress but I'm not sure what to
> do next.
>
> Koen

Post the log of how you created the USB rootfs.

And the entire serial boot log of the attempt to boot this USB rootfs.

-bodhi
===========================
Forum Wiki
bodhi's corner
Koen
Re: Dell Wyse T10 / T50
July 29, 2018 05:01AM
This is how I've created the USB rootfs:

root@koen-ThinkPad-X220:/# mkfs.ext3 /dev/sdc1 -L rootfs
mke2fs 1.44.1 (24-Mar-2018)
/dev/sdc1 contains a ext3 filesystem labelled 'rootfs'
        last mounted on /media/koen/rootfs on Sun Jul 29 09:15:41 2018
Proceed anyway? (y/N) y
Creating filesystem with 1953536 4k blocks and 488640 inodes
Filesystem UUID: 527dc62b-426d-4a74-9440-7e11252367d4
Superblock backups stored on blocks: 
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done

root@koen-ThinkPad-X220:/mnt# mount /dev/sdc1 /mnt/temp/
root@koen-ThinkPad-X220:/mnt# cd /mnt/temp/
root@koen-ThinkPad-X220:/mnt/temp# tar -xjf ~koen/Documents/DellWyse/Debian/Debian-4.12.4-mvebu-tld-1-rootfs-bodhi.tar.bz2
root@koen-ThinkPad-X220:/mnt/temp# cd boot
root@koen-ThinkPad-X220:/mnt/temp/boot# ll
total 40644
drwxr-xr-x  3 root root    4096 Aug 22  2017 ./
drwxrwxrwx 21 root root    4096 Jan 20  2017 ../
-rw-r--r--  1 root root  155806 Jul 30  2017 config-4.12.4-mvebu-tld-1
drwxr-xr-x  2 root root    4096 Jul 30  2017 dts/
-rw-r--r--  1 root root 7070172 Aug 22  2017 initrd.img-4.12.4-mvebu-tld-1
-rw-r--r--  1 root root 8525990 Jul 30  2017 linux-headers-4.12.4-mvebu-tld-1_1.0_armhf.deb
-rw-------  1 root root 2615209 Jul 30  2017 System.map-4.12.4-mvebu-tld-1
-rw-r--r--  1 root root 4021360 Aug 22  2017 uImage
-rw-r--r--  1 root root 7070236 Aug 22  2017 uInitrd
-rw-------  1 root root 4021296 Jul 30  2017 vmlinuz-4.12.4-mvebu-tld-1
-rwxr-xr-x  1 root root 4021296 Jul 30  2017 zImage*
-rwxr-xr-x  1 root root 4021296 Jul 30  2017 zImage-4.12.4-mvebu-tld-1*
root@koen-ThinkPad-X220:/mnt/temp/boot# cp -a zImage-4.12.4-mvebu-tld-1 zImage
root@koen-ThinkPad-X220:/mnt/temp/boot# cp -a zImage-4.12.4-mvebu-tld-1 zImage.fdt
root@koen-ThinkPad-X220:/mnt/temp/boot# cat dts/dove-dove-db.dtb >> zImage.fdt
root@koen-ThinkPad-X220:/mnt/temp/boot# mv uImage uImage.orig
root@koen-ThinkPad-X220:/mnt/temp/boot# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.12.4-mvebu-tld-1 -d zImage.fdt uImage
Image Name:   Linux-4.12.4-mvebu-tld-1
Created:      Sun Jul 29 11:47:53 2018
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    4035253 Bytes = 3940.68 kB = 3.85 MB
Load Address: 00008000
Entry Point:  00008000
root@koen-ThinkPad-X220:/mnt/temp/boot# sync
root@koen-ThinkPad-X220:/mnt/temp/boot# cd /
root@koen-ThinkPad-X220:/# umount /mnt/temp/


I don't get output on serial only on screen so I won't be able to capture it all unfortunately. I'll type out the bit that is visible when the kernel panic happens in the next post.

Koen
Koen
Re: Dell Wyse T10 / T50
July 29, 2018 05:37AM
Here the log that is visible on screen:

	xorg timings  640  672  720  832  480  481  484  509
mode 16: < 640x 480@75> pico=31746
	fb timings     48   16   32   11   96    2
	xorg timings  640  656  752  800  480  491  493  525
mode 17: < 640x 480@72> pico=32102
	fb timings    128   24   28    9   40    3
	xorg timings  640  664  704  832  480  489  492  520
mode 18: < 640x 480@60> pico=39758
	fb timings     48   16   31   11   96    2
	xorg timings  640  656  752  800  480  491  493  524
found <1024x768@60>, pixclock=15385
set internal refclk divider to 31.0.(accurate mode)
YC pitch is 0.User program needs refine
  o dovefb: frame buffer device was successfully loaded.
rtc-mv rtc-mv: setting system clock to 2018-07-29 11:18:12 UTC (1532863092)
Waiting 10sec before mounting root device...
usb 1-1: configuration #1 chosen from 1 choice
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
usb 1-1.1: new low speed USB device using orion-ehci and address 3
usb 1-1.1: configuration #1 chosen from 1 choice
input: PixArt Microsoft USB Optical Mouse as /devices/platform/orion-ehci.0/usb1/1-1/1-1.1/1-1.1:1.0/input/input1
generic-usb 0003:045E:00CB.0001: input,hidraw0: USB HID v1.11 Mouse [PixArt Microsoft USB Optical Mouse] on usb-orion-ehci.0-1.1/input0
usb 1-1.2: new low speed USB device using orion-ehci and address 4
usb 1-1.2: configuration #1 chosen from 1 choice
input: CHICONY USB Keyboard as /devices/platform/orion-ehci.0/usb1/1-1/1-1.4/1-1.4:1.0/input/input2
generic-usb 0003:04F2:0116.0002: input,hidraw1: USB HID v1.10 Keyboard [CHICONY USB Keyboard] on usb-orion-ehci.0-1.4/input0
usb 1-1.4: new high speed USB device using orion-ehci and address 5
usb 1-1.4: configuration #1 chosen from 1 choice
scsi1 : SCSI emulation for USB Mass Storage devices
scsi 1:0:0:0: Direct-Access   SanDisk Cruzer   1.26 PQ: 0 ANSI: 5
sd 1:0:0:0: [sdb] 15633408 512-byte logical blocks: (8.00 GB/7.45 GiB)
sd 1:0:0:0: [sdb] Assuming drive cache: write through
sd 1:0:0:0: [sdb] Assuming drive cache: write through
 sdb: sdb1
sd 1:0:0:0: [sdb] Assuming drive cache: write through
sd 1:0:0:0: [sdb] Attached SCSI removable disk
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sdb1, internal journal
EXT3-fs: mounted filesystem with writeback data mode.
VFS: Mounted root (ext3 filesystem) on device 8:17.
devtmpfs: mounted
Freeing init memory: 180K
FATAL: kernel too old
Kernel panic: - not syncing: Attempted to kill init!
Koen
Re: Dell Wyse T10 / T50
July 29, 2018 05:56AM
So what I think is happening is that the bootloader loads the device's original uImage and uInitrd files but then uses the new rootfs on USB.

In the wloader configuration editor there are the following settings:


Configuration file           wloader.cfg

Root Path                        ./;

Kernel Image                 uImage;

RAMDisk Image:           uInitrd;

Kernel Parameter          rootdelay=10 root=/dev/sdb1 pm_disable usb0Mode=host usb1Mode=host video=dovefb:lcd0:1024x768-32@60,lcd1:1024x768-32@60 clcd.lcd0_enable=1 clcd.lcd1_enable=1 clcd.lcd0_clk=3 clcd.lcd1_clk=1 splash no_console_suspend kb3310_disable=1 cpufreq_disable=1 vmalloc=384M

Recovery Parameter    ootdelay=5 root=/dev/ram0 rw ramdisk_size=136314880 usb0Mode=host usb1Mode=host video=dovefb:lcd0:1024x600-16@60-edid,lcd1:1024x768-16@60-edid clcd.lcd0_enable=1 clcd.lcd1_enable=1 pm_disable titan


I've tried 2 different Kernel and RAMDisk image options: /boot/uImage; /boot/uInitrd; and /dev/sdb1/boot/uImage; /dev/sdb1/boot/uInitrd; but this does result in a message 'Hard disk failed, try next device'

Koen
Koen
Re: Dell Wyse T10 / T50
July 29, 2018 10:15AM
Hi

I've spend some more time thinking about how the multi stage boot process works on this device. I think it goes as follows but feel free to comment / tell me where I'm going wrong.

  • u-boot is the first bootloader but can not be accessed through serial unfortunately.
  • u-boot loads a minimal linux system which runs the wloader program. This can be seen as the 2nd bootloader. If no input is given it will use the default configuration however if interrupted it's configuration can be changed and saved. Once that has been done it will use this configuration to load the actual linux system. This is similar to how kexecboot https://www.openhub.net/p/kexecboot or petitboot http://ftp.cvut.cz/kernel/people/geoff/petitboot/petitboot.html work.
  • The minimal linux system hands over control to the final / actual operating system. For the normal / default procedure this is Ubuntu 10 on the internal mermory. However there are options such as recovery or USB. When USB is selected it allows you to run the Dell firmware upgrade / extraction tool.

I've not been able to get an interactive u-boot session going which leaves the wloader program as the best option to get Debian working on the device. The three options are USB, recovery and HD.

USB: create a rootfs on a FAT32 formatted USB disk with label DELLWYSE and play around with the kernel parameters in wloader to try to get it to work.

recovery: copy uImage and uInitrd from bohdi's rootfs to /dev/sda2 (which seems to be the recovery partition) and set the rootfs ext3 USB disk as kernel parameter root=/dev/sdb1

HD: I've tried a few things but it looks as if it keeps booting the old kernel but with the new /rootfs resulting in a kernel panic and kernel too old message.


I'll start with the recovery option for now since I've already got the ext3 usb stick. Feel free to comment if any of my assumptions of the boot sequence are wrong or if you have a better idea of how to get Debian running.

Thanks,

Koen
Koen
Re: Dell Wyse T10 / T50
July 29, 2018 10:49AM
Success! The recovery method has worked and the device has booted into Debian as shown by the serial output below. I'm not getting any graphics on the screen and I'm sure there will be other issues but this feels like a mayor step forward.

Koen

koen@koen-ThinkPad-X220:~$ picocom -b 115200 /dev/ttyUSB0
picocom v2.2

port is        : /dev/ttyUSB0
flowcontrol    : none
baudrate is    : 115200
parity is      : none
databits are   : 8
stopbits are   : 1
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 -E
imap is        : 
omap is        : 
emap is        : crcrlf,delbs,

Type [C-a] [C-h] to see available commands

Terminal ready
Uncompressing Linux... done, booting the kernel.

Debian GNU/Linux 9 debian ttyS0

debian login: root
Password: 
Last login: Tue Aug 22 17:09:50 PDT 2017 from 192.168.0.220 on pts/0
Linux debian 4.12.4-mvebu-tld-1 #1 SMP PREEMPT Sat Jul 29 21:56:37 PDT 2017 armv7l

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.
debian
Marvell DB-MV88AP510-BP Development Board
Linux version 4.12.4-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #1 SMP PREEMPT Sat Jul 29 21:56:37 PDT 2017
Debian 9.1
Sun Jul 29 09:32:02 PDT 2018 up
root@debian:~#

dmesg output:

root@debian:~# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.4-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #1 SMP PREEMPT Sat Jul 29 21:56:37 PDT 2017
[    0.000000] CPU: ARMv7 Processor [560f5815] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: Marvell DB-MV88AP510-BP Development Board
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 262144
[    0.000000] free_area_init_node: node 0, pgdat c0d9d700, node_mem_map e6ff8000
[    0.000000]   Normal zone: 1264 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 161792 pages, LIFO batch:31
[    0.000000]   HighMem zone: 100352 pages, LIFO batch:31
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] percpu: Embedded 17 pages/cpu @e6fd9000 s40460 r8192 d20980 u69632
[    0.000000] pcpu-alloc: s40460 r8192 d20980 u69632 alloc=17*4096
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260880
[    0.000000] Kernel command line: rootdelay=5 root=/dev/sdb1 pm_disable usb0Mode=host usb1Mode=host video=dovefb:lcd0:1024x600-16@60-edid,lcd1:1024x768-16@60-edid clcd.lcd0_enable=1 clcd.lcd1_enable=1 clcd.lcd0_clk=3 clcd.lcd1_clk=1 vmalloc=384M
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 1019144K/1048576K available (8192K kernel code, 712K rwdata, 2080K rodata, 1024K init, 331K bss, 29432K reserved, 0K cma-reserved, 401408K highmem)
[    0.000000] Virtual kernel memory layout:
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                   vmalloc : 0xe8000000 - 0xff800000   ( 376 MB)
                   lowmem  : 0xc0000000 - 0xe7800000   ( 632 MB)
                   pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
                   modules : 0xbf000000 - 0xbfe00000   (  14 MB)
                     .text : 0xc0008000 - 0xc0900000   (9184 kB)
                     .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
                     .data : 0xc0d00000 - 0xc0db2308   ( 713 kB)
                      .bss : 0xc0db9a84 - 0xc0e0ca58   ( 332 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
[    0.000007] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
[    0.000040] Switching to timer-based delay loop, resolution 6ns
[    0.000583] Console: colour dummy device 80x30
[    0.001328] console [tty0] enabled
[    0.001370] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=1666666)
[    0.001434] pid_max: default: 32768 minimum: 301
[    0.001624] Security Framework initialized
[    0.001739] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001783] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.002580] CPU: Testing write buffer coherency: ok
[    0.002936] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.040179] Setting up static identity map for 0x100000 - 0x100060
[    0.120086] smp: Bringing up secondary CPUs ...
[    0.120139] smp: Brought up 1 node, 1 CPU
[    0.120175] SMP: Total of 1 processors activated (333.33 BogoMIPS).
[    0.120209] CPU: All CPU(s) started in SVC mode.
[    0.121060] devtmpfs: initialized
[    0.130506] VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 5
[    0.131055] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.131133] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.131434] prandom: seed boundary self test passed
[    0.134495] prandom: 100 self tests passed
[    0.134528] pinctrl core: initialized pinctrl subsystem
[    0.135638] NET: Registered protocol family 16
[    0.136600] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.141197] cpuidle: using governor ladder
[    0.141298] cpuidle: using governor menu
[    0.141723] Dove 88AP510 SoC
[    0.141769] Tauros2: Disabling L2 prefetch.
[    0.141801] Tauros2: Disabling burst8 line fill.
[    0.141830] Tauros2: Enabling L2 cache.
[    0.141858] Tauros2: L2 cache support initialised in ARMv7 mode.
[    0.142232] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.240614] vgaarb: loaded
[    0.240949] SCSI subsystem initialized
[    0.250158] libata version 3.00 loaded.
[    0.250411] usbcore: registered new interface driver usbfs
[    0.250508] usbcore: registered new interface driver hub
[    0.250587] usbcore: registered new device driver usb
[    0.250813] media: Linux media interface: v0.10
[    0.250884] Linux video capture interface: v2.00
[    0.260660] clocksource: Switched to clocksource orion_clocksource
[    0.335265] VFS: Disk quotas dquot_6.6.0
[    0.335386] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.353661] NET: Registered protocol family 2
[    0.354353] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.354451] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.354561] TCP: Hash tables configured (established 8192 bind 8192)
[    0.354679] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.354735] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.354923] NET: Registered protocol family 1
[    0.366254] RPC: Registered named UNIX socket transport module.
[    0.366298] RPC: Registered udp transport module.
[    0.366328] RPC: Registered tcp transport module.
[    0.366357] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.366394] PCI: CLS 0 bytes, default 64
[    0.366582] Unpacking initramfs...
[    0.792745] Freeing initrd memory: 6908K
[    0.793191] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.794911] audit: initializing netlink subsys (disabled)
[    0.796097] Initialise system trusted keyrings
[    0.796166] Key type blacklist registered
[    0.796273] audit: type=2000 audit(0.794:1): state=initialized audit_enabled=0 res=1
[    0.796520] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.796652] zbud: loaded
[    0.817884] NFS: Registering the id_resolver key type
[    0.817936] Key type id_resolver registered
[    0.817966] Key type id_legacy registered
[    0.818003] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.818039] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.818269] jffs2: version 2.2. (NAND) (SUMMARY)  \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.
[    0.818783] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.819030] orangefs_init: module version upstream loaded
[    0.824397] Key type asymmetric registered
[    0.824438] Asymmetric key parser 'x509' registered
[    0.824523] bounce: pool size: 64 pages
[    0.824595] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.824646] io scheduler noop registered
[    0.824675] io scheduler deadline registered
[    0.824759] io scheduler cfq registered (default)
[    0.825479] dove-pinctrl f10d0200.pin-ctrl: falling back to hardcoded PMU resource
[    0.825652] dove-pinctrl f10d0200.pin-ctrl: [Firmware Bug]: Missing pinctrl regs in DTB. Please update your firmware.
[    0.826387] dove-pinctrl f10d0200.pin-ctrl: registered pinctrl driver
[    0.830154] mv_xor f1060800.dma-engine: Marvell shared XOR driver
[    0.891589] mv_xor f1060800.dma-engine: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    0.891975] mv_xor f1060900.dma-engine: Marvell shared XOR driver
[    0.951548] mv_xor f1060900.dma-engine: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    1.072581] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.075749] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 21, base_baud = 10416666) is a 16550A
[    1.077455] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 22, base_baud = 10416666) is a 16550A
[    1.078967] sata_mv f10a0000.sata-host: version 1.28
[    1.079121] sata_mv f10a0000.sata-host: slots 32 ports 1
[    1.091797] scsi host0: sata_mv
[    1.092254] ata1: SATA max UDMA/133 irq 32
[    1.093985] m25p80 spi0.0: found s25fl064k, expected m25p32
[    1.094033] m25p80 spi0.0: s25fl064k (8192 Kbytes)
[    1.096389] libphy: Fixed MDIO Bus: probed
[    1.097559] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.097610] ehci-pci: EHCI PCI platform driver
[    1.097698] ehci-orion: EHCI orion driver
[    1.097883] orion-ehci f1050000.usb-host: EHCI Host Controller
[    1.097942] orion-ehci f1050000.usb-host: new USB bus registered, assigned bus number 1
[    1.098119] orion-ehci f1050000.usb-host: irq 26, io mem 0xf1050000
[    1.121074] orion-ehci f1050000.usb-host: USB 2.0 started, EHCI 1.00
[    1.121368] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.121410] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.121460] usb usb1: Product: EHCI Host Controller
[    1.121493] usb usb1: Manufacturer: Linux 4.12.4-mvebu-tld-1 ehci_hcd
[    1.121529] usb usb1: SerialNumber: f1050000.usb-host
[    1.122354] hub 1-0:1.0: USB hub found
[    1.122423] hub 1-0:1.0: 1 port detected
[    1.122936] orion-ehci f1051000.usb-host: EHCI Host Controller
[    1.122997] orion-ehci f1051000.usb-host: new USB bus registered, assigned bus number 2
[    1.123173] orion-ehci f1051000.usb-host: irq 27, io mem 0xf1051000
[    1.150673] orion-ehci f1051000.usb-host: USB 2.0 started, EHCI 1.00
[    1.150925] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.150967] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.151017] usb usb2: Product: EHCI Host Controller
[    1.151050] usb usb2: Manufacturer: Linux 4.12.4-mvebu-tld-1 ehci_hcd
[    1.151085] usb usb2: SerialNumber: f1051000.usb-host
[    1.151835] hub 2-0:1.0: USB hub found
[    1.151902] hub 2-0:1.0: 1 port detected
[    1.152941] usbcore: registered new interface driver usblp
[    1.153149] usbcore: registered new interface driver usb-storage
[    1.153604] mousedev: PS/2 mouse device common for all mice
[    1.154706] rtc-mv f10d8500.real-time-clock: rtc core: registered f10d8500.real-time- as rtc0
[    1.155045] i2c /dev entries driver
[    1.158812] orion_wdt: Initial timeout 25 sec
[    1.161579] marvell-cesa f1030000.crypto-engine: CESA device successfully registered
[    1.161862] hidraw: raw HID events driver (C) Jiri Kosina
[    1.162379] usbcore: registered new interface driver usbhid
[    1.162417] usbhid: USB HID core driver
[    1.162651] drop_monitor: Initializing network drop monitor service
[    1.162747] Netfilter messages via NETLINK v0.30.
[    1.162794] ip_set: protocol 6
[    1.163120] NET: Registered protocol family 10
[    1.174231] Segment Routing with IPv6
[    1.174328] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.176142] NET: Registered protocol family 17
[    1.176232] 8021q: 802.1Q VLAN Support v1.8
[    1.176298] Key type dns_resolver registered
[    1.176726] ThumbEE CPU extension supported.
[    1.176763] Registering SWP/SWPB emulation handler
[    1.176794] PJ4 iWMMXt v2 coprocessor enabled.
[    1.177645] registered taskstats version 1
[    1.177682] Loading compiled-in X.509 certificates
[    1.177766] zswap: loaded using pool lzo/zbud
[    1.263330] Key type big_key registered
[    1.270094] Key type encrypted registered
[    1.272321] rtc-mv f10d8500.real-time-clock: setting system clock to 2018-07-29 16:34:17 UTC (1532882057)
[    1.272530] PM: Hibernation image not present or could not be loaded.
[    1.500624] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    1.590632] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl F300)
[    1.620824] ata1.00: CFA: 1GB ATA Flash Disk, AD B612J, max UDMA/66
[    1.620863] ata1.00: 2001888 sectors, multi 0: LBA 
[    1.650812] ata1.00: configured for UDMA/66
[    1.661430] scsi 0:0:0:0: Direct-Access     ATA      1GB ATA Flash Di 612J PQ: 0 ANSI: 5
[    1.662880] sd 0:0:0:0: [sda] 2001888 512-byte logical blocks: (1.02 GB/977 MiB)
[    1.662998] sd 0:0:0:0: [sda] Write Protect is off
[    1.663035] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    1.663144] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.665305]  sda: sda1 sda2 sda3
[    1.667108] sd 0:0:0:0: [sda] Attached SCSI disk
[    1.668758] Freeing unused kernel memory: 1024K
[    1.692765] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    1.692824] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    1.692862] usb 1-1: Product: USB2.0 Hub
[    1.693822] hub 1-1:1.0: USB hub found
[    1.694249] hub 1-1:1.0: 4 ports detected
[    1.769531] random: udevadm: uninitialized urandom read (16 bytes read)
[    1.773147] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    1.773711] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    1.773852] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    1.779336] random: udevadm: uninitialized urandom read (16 bytes read)
[    1.779969] random: udevadm: uninitialized urandom read (16 bytes read)
[    1.780536] random: udevadm: uninitialized urandom read (16 bytes read)
[    1.781252] random: udevadm: uninitialized urandom read (16 bytes read)
[    1.781728] random: udevadm: uninitialized urandom read (16 bytes read)
[    1.782310] random: udevadm: uninitialized urandom read (16 bytes read)
[    2.010685] usb 1-1.2: new low-speed USB device number 3 using orion-ehci
[    2.149213] i2c i2c-0: Added multiplexed i2c bus 1
[    2.149647] i2c i2c-0: Added multiplexed i2c bus 2
[    2.168894] usb 1-1.2: New USB device found, idVendor=04f2, idProduct=0116
[    2.168950] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.169001] usb 1-1.2: Product: USB Keyboard
[    2.169032] usb 1-1.2: Manufacturer: CHICONY
[    2.175816] input: CHICONY USB Keyboard as /devices/platform/mbus/mbus:internal-regs/f1050000.usb-host/usb1/1-1/1-1.2/1-1.2:1.0/0003:04F2:0116.0001/input/input0
[    2.176152] i2c i2c-0: Added multiplexed i2c bus 3
[    2.241603] hid-generic 0003:04F2:0116.0001: input,hidraw0: USB HID v1.10 Keyboard [CHICONY USB Keyboard] on usb-f1050000.usb-host-1.2/input0
[    2.299700] sdhci: Secure Digital Host Controller Interface driver
[    2.299753] sdhci: Copyright(c) Pierre Ossman
[    2.300522] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.340681] usb 1-1.4: new high-speed USB device number 4 using orion-ehci
[    2.361793] mmc0: SDHCI controller on f1090000.sdio-host [f1090000.sdio-host] using DMA
[    2.421748] mmc1: SDHCI controller on f1092000.sdio-host [f1092000.sdio-host] using DMA
[    2.459582] random: fast init done
[    2.491624] usb 1-1.4: New USB device found, idVendor=0781, idProduct=5530
[    2.491683] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.491734] usb 1-1.4: Product: Cruzer
[    2.491765] usb 1-1.4: Manufacturer: SanDisk
[    2.491796] usb 1-1.4: SerialNumber: 20060775210A3B80C5B2
[    2.492558] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[    2.509763] scsi host1: usb-storage 1-1.4:1.0
[    3.349187] usbcore: registered new interface driver uas
[    3.531828] scsi 1:0:0:0: Direct-Access     SanDisk  Cruzer           1.26 PQ: 0 ANSI: 5
[    3.546418] sd 1:0:0:0: [sdb] 15633408 512-byte logical blocks: (8.00 GB/7.45 GiB)
[    3.547153] sd 1:0:0:0: [sdb] Write Protect is off
[    3.547196] sd 1:0:0:0: [sdb] Mode Sense: 43 00 00 00
[    3.547929] sd 1:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    3.553016]  sdb: sdb1
[    3.556285] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[    8.466814] EXT4-fs (sdb1): mounting ext3 file system using the ext4 subsystem
[    8.488050] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
[   10.861876] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   10.862125] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   12.997412] EXT4-fs (sdb1): re-mounted. Opts: (null)
[   13.219722] EXT4-fs (sdb1): re-mounted. Opts: errors=remount-ro
[   14.329812] random: crng init done
[   73.549746] usb 1-1.2: USB disconnect, device number 3
root@debian:~#


root@debian:~# cat /proc/mtd 
dev:    size   erasesize  name
mtd0: 00800000 00001000 "spi0.0"
root@debian:~# 

root@debian:~# fw_printenv 
Cannot open /dev/mtd1: No such file or directory
root@debian:~# 
Koen
Re: Dell Wyse T10 / T50
July 29, 2018 11:23AM
Summary of the steps so far:

  • Create a 4.12.4-mvebu-tld-1 rootfs with embedded dove.dtb file as described in the other threads on the forum.
  • Boot the device with monitor, mouse and keyboard attached. Login as admin/admin, enable root ssh login, creating a root password in the process.
  • Insert USB stick with rootfs
  • Either change to root user or ssh in as root user and mount the USB roofs and also mount /dev/sda2.
  • Copy the uInitrd and uImage from rootfs/boot to /dev/sda2.
  • Unmount rootfs and /dev/sda2
  • Reboot the device while hammering the DEL key which should result in the WLoader gui showing.
  • In WLoader gui change the boot order such that recovery is at the top.
  • In WLoader gui change the recovery parameters as in the list below.
  • Save config and the device should boot into a Debian 9.1 system

recovery parameters=rootdelay=5 root=/dev/sdb1 pm_disable usb0Mode=host usb1Mode=host video=dovefb:lcd0:1024x600-16@60-edid,lcd1:1024x768-16@60-edid clcd.lcd0_enable=1 clcd.lcd1_enable=1 clcd.lcd0_clk=3 clcd.lcd1_clk=1 vmalloc=384M

To get back to booting stock the steps are as follows:

  • Power off the device and remove the rootfs USB stick.
  • Reboot the device while hammering the DEL key to get the WLoader gui.
  • Change boot order such that HardDisk is at the top.
  • Save changes and the device should boot back into stock operating system.

Koen
Koen
Re: Dell Wyse T10 / T50
July 29, 2018 01:22PM
Hi,

The main thing which doesn't work so far is the ethernet connection. All commands are send through serial at the moment. I guess this is due to the fact that a generic dove.dtb file was used to embed in the uImage. Is there a way to create a better dtb file by analysing the original / stock system?

The original system also has a lot of firmware files in /lib/firmware. Should I copy those files to the new rootfs?

Thanks,

Koen
Re: Dell Wyse T10 / T50
July 29, 2018 11:26PM
Koen,

> Success! The recovery method has worked and the
> device has booted into Debian as shown by the
> serial output below.

Cool :) The boot log looks very good.


> I'm not getting any graphics
> on the screen and I'm sure there will be other
> issues but this feels like a mayor step forward.

The bootargs probably needs more adjustment to see graphics.

> Cannot open /dev/mtd1: No such file or directory
> root@debian:~#
> [/code]

We need to adjust this file to point to at the correct location in mtd0.
cat /etc/fw_enc.config

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Dell Wyse T10 / T50
July 30, 2018 03:59AM
Quote

The main thing which doesn't work so far is the ethernet connection. All commands are send through serial at the moment. I guess this is due to the fact that a generic dove.dtb file was used to embed in the uImage. Is there a way to create a better dtb file by analysing the original / stock system?

Look for what network chip is in this box. And then a new DTS for this box must be be created to include the network definition.

Quote

[ 1.093985] m25p80 spi0.0: found s25fl064k, expected m25p32
[ 1.094033] m25p80 spi0.0: s25fl064k (8192 Kbytes)

Also, any other peripherals that are not working right will also needed to be refdefined in the DTS. Look at your dmesg, and verify each topic to see if they are working correctly (afaict, they are OK, but you need to test them). SPI is apparently needed to be corrected.

Quote

The original system also has a lot of firmware files in /lib/firmware. Should I copy those files to the new rootfs?

The old FW most likely are not useful. Unless there are hardwares specific to this box that are not mainline (i.e. 4.12.4, 4.12.4-mvebu-tld-1).

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



Edited 1 time(s). Last edit at 07/30/2018 04:02AM by bodhi.
Koen
Re: Dell Wyse T10 / T50
July 30, 2018 03:02PM
Hi bodhi,

below the contents of fw_env.config

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

/dev/mtd1               0x0000          0x80000         0x20000                 4
root@debian:~#

while cat proc/mtd shows this:

root@debian:~# cat /proc/mtd 
dev:    size   erasesize  name
mtd0: 00800000 00001000 "spi0.0"
root@debian:~#

So I changed fw_env.config to match the definitions as they were on the original system:

root@debian:/etc# cat /etc/fw_env.config 
# MTD device            offset          size            erase_size
/dev/mtd0               0xc0000         0x10000         0x10000
root@debian:/etc#

and then called fw_printenv to show the u-boot environment settings:

root@debian:/etc# fw_printenv 
baudrate=115200
loads_echo=0
ipaddr=10.4.50.165
serverip=10.4.50.5
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
console=console=ttyS0,115200 useNandHal=single
mtdparts=mtdparts=spi0.0:768k(u-boot)ro,128k(uboot_env),-(kernel)
arcNumber=1789
CASset=min
MALLOC_len=5
ethprime=egiga0
bootargs_root=root=/dev/nfs rw
bootargs_end=:::dove:eth0:none
image_name=uImage
tftpbootcmd=tftpboot 0x2000000 ${image_name}; setenv bootargs ${console} ${mtdparts} ${bootargs_root} nfsroot=${serverip}:${rootpath}  ip=${ipaddr}:${serverip}${bootargs_end} usb0Mode=${usb0Mode} usb1Mode=${usb1Mode}  video=dovefb:lcd0:${lcd0_params},lcd1:${lcd1_params} clcd.lcd0_enable=${lcd0_enable} clcd.lcd1_enable=${lcd1_enable};  bootm 0x2000000; 
standalone=fsload 0x2000000 ${image_name};setenv bootargs ${console} ${mtdparts} root=/dev/mtdblock0 rw ip=${ipaddr}:${serverip}${bootargs_end} usb0Mode=${usb0Mode} usb1Mode=${usb1Mode} video=dovefb:lcd0:${lcd0_params},lcd1:${lcd1_params} clcd.lcd0_enable=${lcd0_enable} clcd.lcd1_enable=${lcd1_enable}; bootm 0x2000000;
bootsd=sflash read a0000 0x2000000 0x300000;setenv bootargs ${console} ${mtdparts} rootdelay=5 root=/dev/mmcblk0 rw usb0Mode=${usb0Mode} usb1Mode=${usb1Mode} video=dovefb:lcd0:${lcd0_params},lcd1:${lcd1_params} clcd.lcd0_enable=${lcd0_enable} clcd.lcd1_enable=${lcd1_enable}; bootm 0x2000000;
bootusb=sflash read a0000 0x2000000 0x300000;setenv bootargs ${console} ${mtdparts} rootdelay=5 root=/dev/sda rw usb0Mode=${usb0Mode} usb1Mode=${usb1Mode} video=dovefb:lcd0:${lcd0_params},lcd1:${lcd1_params} clcd.lcd0_enable=${lcd0_enable} clcd.lcd1_enable=${lcd1_enable}; bootm 0x2000000;
bootnand=sflash read a0000 0x2000000 0x300000;setenv bootargs ${console} ${mtdparts} ubi.mtd=0 root=ubi0:rootfs rootfstype=ubifs rw usb0Mode=${usb0Mode} usb1Mode=${usb1Mode} video=dovefb:lcd0:${lcd0_params},lcd1:${lcd1_params} clcd.lcd0_enable=${lcd0_enable} clcd.lcd1_enable=${lcd1_enable}; bootm 0x2000000;
disaMvPnp=no
usb0Mode=host
usb1Mode=host
yuk_ethaddr=00:00:00:EE:51:81
lcd0_enable=0
lcd1_enable=1
ethact=egiga0
bootcmd=sf read 0x2000000 0x400000 0x380000;bootm 0x2000000
stdin=serial
stdout=serial
stderr=serial
passDramInitTag=yes
mainlineLinux=yes
enaMonExt=no
pexMode=RC
disL2Cache=no
disL2Ecc=no
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
bootcmd_orig=echo Scanning for boot devices;usb start;ide reset;for i in usb ide;do for j in 0 1; do for l in / /boot/;do for m in fat ext2;do setenv interface $i;setenv device $j;setenv prefix $l;setenv fs $m;setenv partition 1;echo Scanning ${fs} ${interface} ${device} on prefix ${prefix} ...;if ${fs}load ${interface} ${device} 1000 ${prefix}boot.scr; then;if imi 1000; then echo boot.scr found! Executing ...;autoscr 1000;fi;fi;done;done;done;done;echo No boot device found. Falling back to TFTP boot;run tftpbootcmd;
bootdelay=3
menucmd=wtest t;wconsole y;run usb_kbd
get=tftpboot 0x2000000 u-boot-m.bin;go 0x2000000
usb_kbd=echo no USB Keyboard support
enaL2ExtraFeatures=yes
enaCpuStream=no
enaVpuPower=yes
enaGpuPower=yes
ethaddr=00:80:64:2a:1b:3a
bootargs=rootdelay=10 mtdparts=spi0.0:8192k(u-boot)rw root=/dev/sda3 rw ip=10.4.50.165:10.4.50.5:::dove:eth0:none usb0Mode=host usb1Mode=host video=dovefb:lcd0:1366x768-16@60-edid,lcd1:1366x768-16@60-edid clcd.lcd0_enable=1 clcd.lcd1_enable=1 pm_disable no_console_suspend clcd.lcd0_clk=3 clcd.lcd1_clk=1 cpufreq_disable quiet vmalloc=384MB
root@debian:/etc#

I'm not sure what if anything needs changing but I'm sure this is useful info for you.

Koen
Koen
Re: Dell Wyse T10 / T50
July 30, 2018 03:25PM
Here an overview of the current hardware status:


  • USB : OK
  • SD card reader: OK
  • serial: OK
  • real time clock: OK
  • audio: ? not tested yet
  • dvi: not working yet
  • ethernet: not working yet
  • PCIE: ? not sure, I plugged a wifi card in the slot but the only line mentioning pci in dmesg is as follows:

      root@debian:~# dmesg | grep pci  [ 1.107385] ehci-pci: EHCI PCI platform driver  

The ethernet chip has the following printed on it:

Lankom elec
Lg-2405s-1
1246mY

Which leads to the following product data sheet: http://www.lankom.com.tw/product/pdf/spec_LG-2405S-1.pdf

However I need to do some background reading on how dts / dtb works since this is all new to me.

Koen
Koen
Re: Dell Wyse T10 / T50
July 30, 2018 04:02PM
I've previously emailed Dell for the GPL sources and chased them again today. Within a few minutes I got a reply that the inquiry has been forwarded to the Dell Wyse engineering department so there may be some progress there as well.

Koen
Re: Dell Wyse T10 / T50
July 30, 2018 11:19PM
Quote

PCIE: ? not sure, I plugged a wifi card in the slot but the only line mentioning pci in dmesg is as follows:

root@debian:~# dmesg | grep pci [ 1.107385] ehci-pci: EHCI PCI platform driver

This likely means that the referenced dove DTS does not have the PCI node enumerated.

Quote

The ethernet chip has the following printed on it:

Lankom elec
Lg-2405s-1
1246mY

That's an odd chip to use for box such as this one. We'll need to find this in stock OS and see how they activated. The MVEBU mvneta driver apparently did not find this this.

I'm away from my developement evironment, but when I have some time, I'll create a new DTS for this box, and show you how compile and test it. There is no need to compile kernel, just the DTS.

-bodhi
===========================
Forum Wiki
bodhi's corner
Koen
Re: Dell Wyse T10 / T50
July 31, 2018 03:34PM
First attemp at trying to fix this error / warning:

[ 1.093985] m25p80 spi0.0: found s25fl064k, expected m25p32
[ 1.094033] m25p80 spi0.0: s25fl064k (8192 Kbytes)


I deconstructed the dove-dove-db.dtb file into a .dts file and searched for 'm25p32'. Found a section which describes the spi stuff:

				spi-flash@0 {
					compatible = "st,m25p32";
					spi-max-frequency = <0x1312d00>;
					reg = <0x0>;
				};

The m25p80 device driver file https://github.com/torvalds/linux/blob/master/drivers/mtd/devices/m25p80.c mentions the s25fl064k in a list of backward compatible chips. So I copied dove-dove-db.dts file to dove-T50.dts and modified this section as follows:

				spi-flash@0 {
					compatible = "st,m25p80";
					spi-max-frequency = <0x1312d00>;
					reg = <0x0>;
				};

Turned this new .dts file into a dove-T50.dtb file, appended it to the zImage and created new uImage. Copied this over the uImage on /dev/sda2 and rebooted the device.

dmesg now shows this instead:

root@debian:~# dmesg | grep spi
[    1.103881] m25p80 spi0.0: found s25fl064k, expected m25p80
[    1.103929] m25p80 spi0.0: s25fl064k (8192 Kbytes)

So it has successfully been changed but is not perfect yet. Another search on google shows the following section in the ls1021a-twr.dts file:

&dspi1 {
	bus-num = <0>;
	status = "okay";

	dspiflash: s25fl064k@0 {
		#address-cells = <1>;
		#size-cells = <1>;
		compatible = "spansion,s25fl064k";
		spi-max-frequency = <16000000>;
		spi-cpol;
		spi-cpha;
		reg = <0>;
	};
};

However this is dspi and has additional parameters spi-cpol & spi-cpha so I'm not sure if I should try this instead?

Koen
Re: Dell Wyse T10 / T50
August 01, 2018 02:55AM
Koen,

Here is the initial version for Wyse T50. As we go along developing this DTS, we'll add more nodes.

Use the DTC compiler to compile to DTB as you have done.

-bodhi
===========================
Forum Wiki
bodhi's corner
Attachments:
open | download - dove-wyse-t50.dts (650 bytes)
Koen
Re: Dell Wyse T10 / T50
August 01, 2018 02:58PM
Hi bodhi,

thanks for the .dts file. I don't compile the file but use the following command:

dtc -I dts -O dtb -o dove-T50.dtb dove-T50.dts

Anyway I changed the values like your example in my dove-T50.dts file. I also had a quick search for the term 'eth' and this showed up in two sections / nodes which were both set to 'disabled'. So I took a gamble and set the status to 'okay' and reconstructed the dove-T50.dtb file. I've re-created the uImage and now ethernet works although the setup is probably not complete / correct as shown in dmesg below.

root@debian:~# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.4-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #1 SMP PREEMPT Sat Jul 29 21:56:37 PDT 2017
[    0.000000] CPU: ARMv7 Processor [560f5815] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: Marvell DB-MV88AP510-BP Development Board
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 262144
[    0.000000] free_area_init_node: node 0, pgdat c0d9d700, node_mem_map e6ff8000
[    0.000000]   Normal zone: 1264 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 161792 pages, LIFO batch:31
[    0.000000]   HighMem zone: 100352 pages, LIFO batch:31
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] percpu: Embedded 17 pages/cpu @e6fd9000 s40460 r8192 d20980 u69632
[    0.000000] pcpu-alloc: s40460 r8192 d20980 u69632 alloc=17*4096
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260880
[    0.000000] Kernel command line: rootdelay=5 root=/dev/sdb1 pm_disable usb0Mode=host usb1Mode=host video=dovefb:lcd0:1024x600-16@60-edid,lcd1:1024x768-16@60-edid clcd.lcd0_enable=1 clcd.lcd1_enable=1 clcd.lcd0_clk=3 clcd.lcd1_clk=1 vmalloc=384M
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 1019144K/1048576K available (8192K kernel code, 712K rwdata, 2080K rodata, 1024K init, 331K bss, 29432K reserved, 0K cma-reserved, 401408K highmem)
[    0.000000] Virtual kernel memory layout:
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                   vmalloc : 0xe8000000 - 0xff800000   ( 376 MB)
                   lowmem  : 0xc0000000 - 0xe7800000   ( 632 MB)
                   pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
                   modules : 0xbf000000 - 0xbfe00000   (  14 MB)
                     .text : 0xc0008000 - 0xc0900000   (9184 kB)
                     .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
                     .data : 0xc0d00000 - 0xc0db2308   ( 713 kB)
                      .bss : 0xc0db9a84 - 0xc0e0ca58   ( 332 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
[    0.000007] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
[    0.000041] Switching to timer-based delay loop, resolution 6ns
[    0.000581] Console: colour dummy device 80x30
[    0.001326] console [tty0] enabled
[    0.001369] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=1666666)
[    0.001433] pid_max: default: 32768 minimum: 301
[    0.001623] Security Framework initialized
[    0.001738] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001783] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.002580] CPU: Testing write buffer coherency: ok
[    0.002939] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.040180] Setting up static identity map for 0x100000 - 0x100060
[    0.120088] smp: Bringing up secondary CPUs ...
[    0.120140] smp: Brought up 1 node, 1 CPU
[    0.120176] SMP: Total of 1 processors activated (333.33 BogoMIPS).
[    0.120210] CPU: All CPU(s) started in SVC mode.
[    0.121067] devtmpfs: initialized
[    0.130507] VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 5
[    0.131053] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.131134] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.131435] prandom: seed boundary self test passed
[    0.134496] prandom: 100 self tests passed
[    0.134528] pinctrl core: initialized pinctrl subsystem
[    0.135634] NET: Registered protocol family 16
[    0.136597] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.141195] cpuidle: using governor ladder
[    0.141294] cpuidle: using governor menu
[    0.141719] Dove 88AP510 SoC
[    0.141764] Tauros2: Disabling L2 prefetch.
[    0.141797] Tauros2: Disabling burst8 line fill.
[    0.141826] Tauros2: Enabling L2 cache.
[    0.141855] Tauros2: L2 cache support initialised in ARMv7 mode.
[    0.142230] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.240611] vgaarb: loaded
[    0.240954] SCSI subsystem initialized
[    0.250156] libata version 3.00 loaded.
[    0.250398] usbcore: registered new interface driver usbfs
[    0.250490] usbcore: registered new interface driver hub
[    0.250568] usbcore: registered new device driver usb
[    0.250807] media: Linux media interface: v0.10
[    0.250879] Linux video capture interface: v2.00
[    0.260654] clocksource: Switched to clocksource orion_clocksource
[    0.335336] VFS: Disk quotas dquot_6.6.0
[    0.335457] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.353940] NET: Registered protocol family 2
[    0.354987] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.355086] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.355195] TCP: Hash tables configured (established 8192 bind 8192)
[    0.355314] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.355370] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.355552] NET: Registered protocol family 1
[    0.376256] RPC: Registered named UNIX socket transport module.
[    0.376300] RPC: Registered udp transport module.
[    0.376330] RPC: Registered tcp transport module.
[    0.376360] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.376397] PCI: CLS 0 bytes, default 64
[    0.376586] Unpacking initramfs...
[    0.802386] Freeing initrd memory: 6908K
[    0.802833] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.804575] audit: initializing netlink subsys (disabled)
[    0.805761] Initialise system trusted keyrings
[    0.805836] Key type blacklist registered
[    0.805942] audit: type=2000 audit(0.804:1): state=initialized audit_enabled=0 res=1
[    0.806192] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.806329] zbud: loaded
[    0.827565] NFS: Registering the id_resolver key type
[    0.827616] Key type id_resolver registered
[    0.827646] Key type id_legacy registered
[    0.827683] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.827718] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.827950] jffs2: version 2.2. (NAND) (SUMMARY)  \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.
[    0.828465] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.828706] orangefs_init: module version upstream loaded
[    0.834081] Key type asymmetric registered
[    0.834122] Asymmetric key parser 'x509' registered
[    0.834207] bounce: pool size: 64 pages
[    0.834279] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.834330] io scheduler noop registered
[    0.834359] io scheduler deadline registered
[    0.834435] io scheduler cfq registered (default)
[    0.835181] dove-pinctrl f10d0200.pin-ctrl: falling back to hardcoded PMU resource
[    0.835358] dove-pinctrl f10d0200.pin-ctrl: [Firmware Bug]: Missing pinctrl regs in DTB. Please update your firmware.
[    0.836092] dove-pinctrl f10d0200.pin-ctrl: registered pinctrl driver
[    0.839878] mv_xor f1060800.dma-engine: Marvell shared XOR driver
[    0.901610] mv_xor f1060800.dma-engine: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    0.901998] mv_xor f1060900.dma-engine: Marvell shared XOR driver
[    0.961541] mv_xor f1060900.dma-engine: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    1.082541] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.085794] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 21, base_baud = 10416666) is a 16550A
[    1.086853] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 22, base_baud = 10416666) is a 16550A
[    1.089000] sata_mv f10a0000.sata-host: version 1.28
[    1.089155] sata_mv f10a0000.sata-host: slots 32 ports 1
[    1.101724] scsi host0: sata_mv
[    1.102154] ata1: SATA max UDMA/133 irq 33
[    1.103877] m25p80 spi0.0: s25fl064k (8192 Kbytes)
[    1.117825] libphy: Fixed MDIO Bus: probed
[    1.122451] libphy: orion_mdio_bus: probed
[    1.122502] mdio_bus f1072004.mdio-bus-mii: /mbus/internal-regs/mdio-bus@72004/ethernet-phy has invalid PHY address
[    1.122564] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 0
[    1.122820] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 1
[    1.128775] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 2
[    1.129042] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 3
[    1.129296] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 4
[    1.129555] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 5
[    1.129816] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 6
[    1.130078] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 7
[    1.130338] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 8
[    1.130840] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 9
[    1.131123] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 10
[    1.131384] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 11
[    1.131644] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 12
[    1.131905] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 13
[    1.132167] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 14
[    1.132427] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 15
[    1.132689] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 16
[    1.132950] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 17
[    1.133211] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 18
[    1.133472] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 19
[    1.133733] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 20
[    1.133994] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 21
[    1.134256] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 22
[    1.134516] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 23
[    1.134777] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 24
[    1.135038] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 25
[    1.135300] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 26
[    1.135561] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 27
[    1.135822] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 28
[    1.136083] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 29
[    1.136344] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 30
[    1.136605] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 31
[    1.137133] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    1.231934] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:80:64:aa:7d:6c
[    1.232704] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.232763] ehci-pci: EHCI PCI platform driver
[    1.232905] ehci-orion: EHCI orion driver
[    1.233096] orion-ehci f1050000.usb-host: EHCI Host Controller
[    1.233157] orion-ehci f1050000.usb-host: new USB bus registered, assigned bus number 1
[    1.233332] orion-ehci f1050000.usb-host: irq 26, io mem 0xf1050000
[    1.260701] orion-ehci f1050000.usb-host: USB 2.0 started, EHCI 1.00
[    1.260965] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.261007] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.261058] usb usb1: Product: EHCI Host Controller
[    1.261090] usb usb1: Manufacturer: Linux 4.12.4-mvebu-tld-1 ehci_hcd
[    1.261126] usb usb1: SerialNumber: f1050000.usb-host
[    1.261939] hub 1-0:1.0: USB hub found
[    1.262007] hub 1-0:1.0: 1 port detected
[    1.262514] orion-ehci f1051000.usb-host: EHCI Host Controller
[    1.262573] orion-ehci f1051000.usb-host: new USB bus registered, assigned bus number 2
[    1.262740] orion-ehci f1051000.usb-host: irq 27, io mem 0xf1051000
[    1.290658] orion-ehci f1051000.usb-host: USB 2.0 started, EHCI 1.00
[    1.290950] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.290991] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.291042] usb usb2: Product: EHCI Host Controller
[    1.291074] usb usb2: Manufacturer: Linux 4.12.4-mvebu-tld-1 ehci_hcd
[    1.291109] usb usb2: SerialNumber: f1051000.usb-host
[    1.291849] hub 2-0:1.0: USB hub found
[    1.291920] hub 2-0:1.0: 1 port detected
[    1.292988] usbcore: registered new interface driver usblp
[    1.293199] usbcore: registered new interface driver usb-storage
[    1.293654] mousedev: PS/2 mouse device common for all mice
[    1.294770] rtc-mv f10d8500.real-time-clock: rtc core: registered f10d8500.real-time- as rtc0
[    1.295130] i2c /dev entries driver
[    1.298888] orion_wdt: Initial timeout 25 sec
[    1.301653] marvell-cesa f1030000.crypto-engine: CESA device successfully registered
[    1.301964] hidraw: raw HID events driver (C) Jiri Kosina
[    1.302436] usbcore: registered new interface driver usbhid
[    1.302473] usbhid: USB HID core driver
[    1.302705] drop_monitor: Initializing network drop monitor service
[    1.302800] Netfilter messages via NETLINK v0.30.
[    1.302847] ip_set: protocol 6
[    1.303173] NET: Registered protocol family 10
[    1.314413] Segment Routing with IPv6
[    1.314508] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.316229] NET: Registered protocol family 17
[    1.316324] 8021q: 802.1Q VLAN Support v1.8
[    1.316394] Key type dns_resolver registered
[    1.316822] ThumbEE CPU extension supported.
[    1.316858] Registering SWP/SWPB emulation handler
[    1.316890] PJ4 iWMMXt v2 coprocessor enabled.
[    1.317741] registered taskstats version 1
[    1.317777] Loading compiled-in X.509 certificates
[    1.317858] zswap: loaded using pool lzo/zbud
[    1.405259] Key type big_key registered
[    1.412226] Key type encrypted registered
[    1.414398] rtc-mv f10d8500.real-time-clock: setting system clock to 2018-08-01 20:43:12 UTC (1533156192)
[    1.414596] PM: Hibernation image not present or could not be loaded.
[    1.600633] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl F300)
[    1.630825] ata1.00: CFA: 1GB ATA Flash Disk, AD B612J, max UDMA/66
[    1.630864] ata1.00: 2001888 sectors, multi 0: LBA 
[    1.640617] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    1.660595] random: fast init done
[    1.660851] ata1.00: configured for UDMA/66
[    1.671482] scsi 0:0:0:0: Direct-Access     ATA      1GB ATA Flash Di 612J PQ: 0 ANSI: 5
[    1.672952] sd 0:0:0:0: [sda] 2001888 512-byte logical blocks: (1.02 GB/977 MiB)
[    1.673068] sd 0:0:0:0: [sda] Write Protect is off
[    1.673105] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    1.673210] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.675383]  sda: sda1 sda2 sda3
[    1.677213] sd 0:0:0:0: [sda] Attached SCSI disk
[    1.678861] Freeing unused kernel memory: 1024K
[    1.832589] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    1.832649] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    1.832687] usb 1-1: Product: USB2.0 Hub
[    1.835503] hub 1-1:1.0: USB hub found
[    1.835845] hub 1-1:1.0: 4 ports detected
[    2.150706] usb 1-1.3: new high-speed USB device number 3 using orion-ehci
[    2.170522] i2c i2c-0: Added multiplexed i2c bus 1
[    2.203629] i2c i2c-0: Added multiplexed i2c bus 2
[    2.204070] i2c i2c-0: Added multiplexed i2c bus 3
[    2.296835] sdhci: Secure Digital Host Controller Interface driver
[    2.296889] sdhci: Copyright(c) Pierre Ossman
[    2.297582] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.301712] usb 1-1.3: New USB device found, idVendor=0781, idProduct=5530
[    2.301767] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.301818] usb 1-1.3: Product: Cruzer
[    2.301848] usb 1-1.3: Manufacturer: SanDisk
[    2.301880] usb 1-1.3: SerialNumber: 20060775210A3B80C5B2
[    2.302641] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[    2.319793] scsi host1: usb-storage 1-1.3:1.0
[    2.370726] mmc0: SDHCI controller on f1090000.sdio-host [f1090000.sdio-host] using DMA
[    2.420792] mmc0: new high speed SD card at address b368
[    2.433092] mmc1: SDHCI controller on f1092000.sdio-host [f1092000.sdio-host] using DMA
[    3.347668] usbcore: registered new interface driver uas
[    3.362518] mmcblk0: mmc0:b368 SDC   1.87 GiB 
[    3.365383]  mmcblk0: p1
[    3.373286] scsi 1:0:0:0: Direct-Access     SanDisk  Cruzer           1.26 PQ: 0 ANSI: 5
[    3.385748] sd 1:0:0:0: [sdb] 15633408 512-byte logical blocks: (8.00 GB/7.45 GiB)
[    3.386494] sd 1:0:0:0: [sdb] Write Protect is off
[    3.386537] sd 1:0:0:0: [sdb] Mode Sense: 43 00 00 00
[    3.387241] sd 1:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    3.392601]  sdb: sdb1
[    3.395994] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[    8.875650] EXT4-fs (sdb1): mounting ext3 file system using the ext4 subsystem
[    8.896902] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
[   11.240153] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   11.242386] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   13.475803] EXT4-fs (sdb1): re-mounted. Opts: (null)
[   13.698558] EXT4-fs (sdb1): re-mounted. Opts: errors=remount-ro
[   13.919149] random: crng init done
[   16.243337] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   18.776603] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   18.776717] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

root@debian:~# ping google.com
PING google.com (172.217.17.238) 56(84) bytes of data.
64 bytes from ber01s08-in-f238.1e100.net (172.217.17.238): icmp_seq=1 ttl=50 time=48.7 ms
64 bytes from ber01s08-in-f238.1e100.net (172.217.17.238): icmp_seq=2 ttl=50 time=50.4 ms
64 bytes from ber01s08-in-f238.1e100.net (172.217.17.238): icmp_seq=3 ttl=50 time=48.7 ms
64 bytes from ber01s08-in-f238.1e100.net (172.217.17.238): icmp_seq=4 ttl=50 time=48.5 ms
64 bytes from ber01s08-in-f238.1e100.net (172.217.17.238): icmp_seq=5 ttl=50 time=48.1 ms
64 bytes from ber01s08-in-f238.1e100.net (172.217.17.238): icmp_seq=6 ttl=50 time=48.0 ms
^C
--- google.com ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5007ms
rtt min/avg/max/mdev = 48.085/48.769/50.470/0.842 ms
root@debian:~#

Koen
Re: Dell Wyse T10 / T50
August 01, 2018 03:11PM
Attached is the .dts file I used to get ethernet working.

This result does make it very tempting to also switch the audio controller, gpu and lcd sections from 'disabled' to 'okay'. Is there much risk in trying this or do wrongly defined parts just not work?

Koen



Edited 1 time(s). Last edit at 08/01/2018 03:24PM by Koen.
Attachments:
open | download - dove-T50.dts (17.6 KB)
Re: Dell Wyse T10 / T50
August 01, 2018 11:40PM
Hi Koen,

Quote

I don't compile the file but use the following command:

dtc -I dts -O dtb -o dove-T50.dtb dove-T50.dts

Anyway I changed the values like your example in my dove-T50.dts file. I also had a quick search for the term 'eth' and this showed up in two sections / nodes which were both set to 'disabled'. So I took a gamble and set the status to 'okay' and reconstructed the dove-T50.dtb file. I've re-created the uImage and now ethernet works although the setup is probably not complete / correct as shown in dmesg below.

That's a good hacking way to find out what you can do with the reference DTB! And it is true that it is incompleted. In the final format in the DTS, we'd want the definition to describe exactly the ethernet node characteristics. Hence, I've created the DTS that we can compile and release later.

So you have found by decompilation that the default ethernet driver is "marvell,orion-eth". But the PHY address is not correct.

Quote

This result does make it very tempting to also switch the audio controller, gpu and lcd sections from 'disabled' to 'okay'. Is there much risk in trying this or do wrongly defined parts just not work?

It will not hurt to turn them on by changing "disable" to "okay". Again, in the final form, they are separated new nodes. But for testing purpose, what you are doing is great!

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Dell Wyse T10 / T50
August 02, 2018 06:52AM
Ok so I've modified the dts again by setting most of the 'disabled' options to 'okay'. When there are multiple nodes / sections with the same name I have only enabled the 1st one. The dmesg output is listed below. There is no video output on the screen and I've not tested audio yet. The log shows the pcie wifi card but I'm not sure if it is actually working since it doesn't show up in ifconfig. I'm away for the next few days but will continue testing / experimenting when I'm back.

Koen

root@debian:~# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.4-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #1 SMP PREEMPT Sat Jul 29 21:56:37 PDT 2017
[    0.000000] CPU: ARMv7 Processor [560f5815] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: Marvell DB-MV88AP510-BP Development Board
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 262144
[    0.000000] free_area_init_node: node 0, pgdat c0d9d700, node_mem_map e6ff8000
[    0.000000]   Normal zone: 1264 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 161792 pages, LIFO batch:31
[    0.000000]   HighMem zone: 100352 pages, LIFO batch:31
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] percpu: Embedded 17 pages/cpu @e6fd9000 s40460 r8192 d20980 u69632
[    0.000000] pcpu-alloc: s40460 r8192 d20980 u69632 alloc=17*4096
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260880
[    0.000000] Kernel command line: rootdelay=5 root=/dev/sdb1 pm_disable usb0Mode=host usb1Mode=host video=dovefb:lcd0:1024x600-16@60-edid,lcd1:1024x768-16@60-edid clcd.lcd0_enable=1 clcd.lcd1_enable=1 clcd.lcd0_clk=3 clcd.lcd1_clk=1 vmalloc=384M
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 1019144K/1048576K available (8192K kernel code, 712K rwdata, 2080K rodata, 1024K init, 331K bss, 29432K reserved, 0K cma-reserved, 401408K highmem)
[    0.000000] Virtual kernel memory layout:
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                   vmalloc : 0xe8000000 - 0xff800000   ( 376 MB)
                   lowmem  : 0xc0000000 - 0xe7800000   ( 632 MB)
                   pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
                   modules : 0xbf000000 - 0xbfe00000   (  14 MB)
                     .text : 0xc0008000 - 0xc0900000   (9184 kB)
                     .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
                     .data : 0xc0d00000 - 0xc0db2308   ( 713 kB)
                      .bss : 0xc0db9a84 - 0xc0e0ca58   ( 332 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
[    0.000007] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
[    0.000041] Switching to timer-based delay loop, resolution 6ns
[    0.000579] Console: colour dummy device 80x30
[    0.001323] console [tty0] enabled
[    0.001365] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=1666666)
[    0.001428] pid_max: default: 32768 minimum: 301
[    0.001620] Security Framework initialized
[    0.001733] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001778] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.002576] CPU: Testing write buffer coherency: ok
[    0.002934] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.040179] Setting up static identity map for 0x100000 - 0x100060
[    0.120089] smp: Bringing up secondary CPUs ...
[    0.120142] smp: Brought up 1 node, 1 CPU
[    0.120177] SMP: Total of 1 processors activated (333.33 BogoMIPS).
[    0.120211] CPU: All CPU(s) started in SVC mode.
[    0.121064] devtmpfs: initialized
[    0.130507] VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 5
[    0.131051] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.131132] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.131433] prandom: seed boundary self test passed
[    0.134494] prandom: 100 self tests passed
[    0.134527] pinctrl core: initialized pinctrl subsystem
[    0.135640] NET: Registered protocol family 16
[    0.136603] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.141191] cpuidle: using governor ladder
[    0.141289] cpuidle: using governor menu
[    0.141715] Dove 88AP510 SoC
[    0.141760] Tauros2: Disabling L2 prefetch.
[    0.141792] Tauros2: Disabling burst8 line fill.
[    0.141821] Tauros2: Enabling L2 cache.
[    0.141850] Tauros2: L2 cache support initialised in ARMv7 mode.
[    0.142224] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.240628] vgaarb: loaded
[    0.240965] SCSI subsystem initialized
[    0.250156] libata version 3.00 loaded.
[    0.250412] usbcore: registered new interface driver usbfs
[    0.250506] usbcore: registered new interface driver hub
[    0.250584] usbcore: registered new device driver usb
[    0.250829] media: Linux media interface: v0.10
[    0.250901] Linux video capture interface: v2.00
[    0.260656] clocksource: Switched to clocksource orion_clocksource
[    0.335270] VFS: Disk quotas dquot_6.6.0
[    0.335393] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.353907] NET: Registered protocol family 2
[    0.354994] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.355093] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.355203] TCP: Hash tables configured (established 8192 bind 8192)
[    0.355323] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.355379] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.355565] NET: Registered protocol family 1
[    0.376211] RPC: Registered named UNIX socket transport module.
[    0.376255] RPC: Registered udp transport module.
[    0.376285] RPC: Registered tcp transport module.
[    0.376314] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.376351] PCI: CLS 0 bytes, default 64
[    0.376538] Unpacking initramfs...
[    0.802424] Freeing initrd memory: 6908K
[    0.802871] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.804643] audit: initializing netlink subsys (disabled)
[    0.805850] Initialise system trusted keyrings
[    0.805922] Key type blacklist registered
[    0.806028] audit: type=2000 audit(0.804:1): state=initialized audit_enabled=0 res=1
[    0.806277] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.806410] zbud: loaded
[    0.827641] NFS: Registering the id_resolver key type
[    0.827698] Key type id_resolver registered
[    0.827727] Key type id_legacy registered
[    0.827764] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.827799] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.828036] jffs2: version 2.2. (NAND) (SUMMARY)  \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.
[    0.828560] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.828813] orangefs_init: module version upstream loaded
[    0.834172] Key type asymmetric registered
[    0.834212] Asymmetric key parser 'x509' registered
[    0.834298] bounce: pool size: 64 pages
[    0.834372] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.834423] io scheduler noop registered
[    0.834452] io scheduler deadline registered
[    0.834529] io scheduler cfq registered (default)
[    0.835312] dove-pinctrl f10d0200.pin-ctrl: falling back to hardcoded PMU resource
[    0.835484] dove-pinctrl f10d0200.pin-ctrl: [Firmware Bug]: Missing pinctrl regs in DTB. Please update your firmware.
[    0.836215] dove-pinctrl f10d0200.pin-ctrl: registered pinctrl driver
[    0.839814] mvebu-pcie mbus:pcie-controller: PCI host bridge to bus 0000:00
[    0.839866] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.839904] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    0.839943] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.839978] pci_bus 0000:00: scanning bus
[    0.840009] pci 0000:00:01.0: [11ab:0510] type 01 class 0x060400
[    0.840053] pci 0000:00:01.0: calling pci_fixup_ide_bases+0x0/0x3c
[    0.841885] pci_bus 0000:00: fixups for bus
[    0.841899] PCI: bus0: Fast back to back transfers disabled
[    0.841944] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 0
[    0.841953] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.842011] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 1
[    0.842249] pci_bus 0000:01: scanning bus
[    0.842289] pci 0000:01:00.0: [1814:3090] type 00 class 0x028000
[    0.842321] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x0000ffff]
[    0.842385] pci 0000:01:00.0: calling pci_fixup_ide_bases+0x0/0x3c
[    0.870655] pci_bus 0000:01: fixups for bus
[    0.870668] PCI: bus1: Fast back to back transfers disabled
[    0.870710] pci_bus 0000:01: bus scan returning with max=01
[    0.870722] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.870733] pci_bus 0000:00: bus scan returning with max=01
[    0.870745] pci 0000:00:01.0: fixup irq: got 0
[    0.870752] pci 0000:00:01.0: assigning IRQ 00
[    0.870861] pci 0000:01:00.0: fixup irq: got 44
[    0.870869] pci 0000:01:00.0: assigning IRQ 44
[    0.870902] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    0.870947] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe000ffff]
[    0.870989] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.871027] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    0.871140] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    0.871191] pcieport 0000:00:01.0: enabling bus mastering
[    0.872000] mv_xor f1060800.dma-engine: Marvell shared XOR driver
[    0.931556] mv_xor f1060800.dma-engine: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    0.931926] mv_xor f1060900.dma-engine: Marvell shared XOR driver
[    0.991565] mv_xor f1060900.dma-engine: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    1.112491] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.115899] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 21, base_baud = 10416666) is a 16550A
[    1.116972] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 22, base_baud = 10416666) is a 16550A
[    1.119140] sata_mv f10a0000.sata-host: version 1.28
[    1.119294] sata_mv f10a0000.sata-host: slots 32 ports 1
[    1.131812] scsi host0: sata_mv
[    1.132209] ata1: SATA max UDMA/133 irq 33
[    1.134005] m25p80 spi0.0: s25fl064k (8192 Kbytes)
[    1.146866] libphy: Fixed MDIO Bus: probed
[    1.147724] libphy: orion_mdio_bus: probed
[    1.147766] mdio_bus f1072004.mdio-bus-mii: /mbus/internal-regs/mdio-bus@72004/ethernet-phy has invalid PHY address
[    1.147826] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 0
[    1.152067] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 1
[    1.158129] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 2
[    1.158436] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 3
[    1.158684] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 4
[    1.158944] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 5
[    1.159205] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 6
[    1.159466] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 7
[    1.159772] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 8
[    1.160041] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 9
[    1.160302] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 10
[    1.160563] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 11
[    1.161039] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 12
[    1.161295] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 13
[    1.161556] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 14
[    1.161817] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 15
[    1.162077] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 16
[    1.162338] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 17
[    1.162600] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 18
[    1.162861] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 19
[    1.163122] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 20
[    1.163383] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 21
[    1.163644] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 22
[    1.163905] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 23
[    1.164166] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 24
[    1.164427] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 25
[    1.164689] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 26
[    1.164950] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 27
[    1.165211] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 28
[    1.165472] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 29
[    1.165733] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 30
[    1.165995] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 31
[    1.166548] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    1.261966] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:80:64:aa:7d:6c
[    1.262780] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.262838] ehci-pci: EHCI PCI platform driver
[    1.262983] ehci-orion: EHCI orion driver
[    1.263178] orion-ehci f1050000.usb-host: EHCI Host Controller
[    1.263239] orion-ehci f1050000.usb-host: new USB bus registered, assigned bus number 1
[    1.263416] orion-ehci f1050000.usb-host: irq 26, io mem 0xf1050000
[    1.290702] orion-ehci f1050000.usb-host: USB 2.0 started, EHCI 1.00
[    1.290979] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.291021] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.291071] usb usb1: Product: EHCI Host Controller
[    1.291104] usb usb1: Manufacturer: Linux 4.12.4-mvebu-tld-1 ehci_hcd
[    1.291139] usb usb1: SerialNumber: f1050000.usb-host
[    1.291967] hub 1-0:1.0: USB hub found
[    1.292034] hub 1-0:1.0: 1 port detected
[    1.292563] orion-ehci f1051000.usb-host: EHCI Host Controller
[    1.292621] orion-ehci f1051000.usb-host: new USB bus registered, assigned bus number 2
[    1.292788] orion-ehci f1051000.usb-host: irq 27, io mem 0xf1051000
[    1.320657] orion-ehci f1051000.usb-host: USB 2.0 started, EHCI 1.00
[    1.320904] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.320945] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.320995] usb usb2: Product: EHCI Host Controller
[    1.321028] usb usb2: Manufacturer: Linux 4.12.4-mvebu-tld-1 ehci_hcd
[    1.321063] usb usb2: SerialNumber: f1051000.usb-host
[    1.321830] hub 2-0:1.0: USB hub found
[    1.321899] hub 2-0:1.0: 1 port detected
[    1.322951] usbcore: registered new interface driver usblp
[    1.323152] usbcore: registered new interface driver usb-storage
[    1.323570] mousedev: PS/2 mouse device common for all mice
[    1.324634] rtc-mv f10d8500.real-time-clock: rtc core: registered f10d8500.real-time- as rtc0
[    1.324980] i2c /dev entries driver
[    1.328778] orion_wdt: Initial timeout 25 sec
[    1.331605] marvell-cesa f1030000.crypto-engine: CESA device successfully registered
[    1.331920] hidraw: raw HID events driver (C) Jiri Kosina
[    1.332400] usbcore: registered new interface driver usbhid
[    1.332436] usbhid: USB HID core driver
[    1.332680] drop_monitor: Initializing network drop monitor service
[    1.332769] Netfilter messages via NETLINK v0.30.
[    1.332821] ip_set: protocol 6
[    1.333148] NET: Registered protocol family 10
[    1.344397] Segment Routing with IPv6
[    1.344495] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.346286] NET: Registered protocol family 17
[    1.346378] 8021q: 802.1Q VLAN Support v1.8
[    1.346449] Key type dns_resolver registered
[    1.346878] ThumbEE CPU extension supported.
[    1.346914] Registering SWP/SWPB emulation handler
[    1.346946] PJ4 iWMMXt v2 coprocessor enabled.
[    1.347820] registered taskstats version 1
[    1.347856] Loading compiled-in X.509 certificates
[    1.347941] zswap: loaded using pool lzo/zbud
[    1.436555] Key type big_key registered
[    1.443549] Key type encrypted registered
[    1.445791] rtc-mv f10d8500.real-time-clock: setting system clock to 2018-08-02 12:27:20 UTC (1533212840)
[    1.445988] PM: Hibernation image not present or could not be loaded.
[    1.630634] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl F300)
[    1.660826] ata1.00: CFA: 1GB ATA Flash Disk, AD B612J, max UDMA/66
[    1.660866] ata1.00: 2001888 sectors, multi 0: LBA 
[    1.670619] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    1.671020] random: fast init done
[    1.690817] ata1.00: configured for UDMA/66
[    1.701449] scsi 0:0:0:0: Direct-Access     ATA      1GB ATA Flash Di 612J PQ: 0 ANSI: 5
[    1.702945] sd 0:0:0:0: [sda] 2001888 512-byte logical blocks: (1.02 GB/977 MiB)
[    1.703064] sd 0:0:0:0: [sda] Write Protect is off
[    1.703102] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    1.703208] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.705409]  sda: sda1 sda2 sda3
[    1.707329] sd 0:0:0:0: [sda] Attached SCSI disk
[    1.708979] Freeing unused kernel memory: 1024K
[    1.862550] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    1.862611] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    1.862648] usb 1-1: Product: USB2.0 Hub
[    1.865442] hub 1-1:1.0: USB hub found
[    1.865803] hub 1-1:1.0: 4 ports detected
[    2.180687] usb 1-1.4: new high-speed USB device number 3 using orion-ehci
[    2.220985] i2c i2c-0: Added multiplexed i2c bus 1
[    2.223407] i2c i2c-0: Added multiplexed i2c bus 2
[    2.230921] i2c i2c-0: Added multiplexed i2c bus 3
[    2.319619] sdhci: Secure Digital Host Controller Interface driver
[    2.319672] sdhci: Copyright(c) Pierre Ossman
[    2.320340] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.331671] usb 1-1.4: New USB device found, idVendor=0781, idProduct=5530
[    2.331727] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.331777] usb 1-1.4: Product: Cruzer
[    2.331808] usb 1-1.4: Manufacturer: SanDisk
[    2.331839] usb 1-1.4: SerialNumber: 20060775210A3B80C5B2
[    2.332605] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[    2.348295] scsi host1: usb-storage 1-1.4:1.0
[    2.401739] mmc0: SDHCI controller on f1090000.sdio-host [f1090000.sdio-host] using DMA
[    2.461796] mmc1: SDHCI controller on f1092000.sdio-host [f1092000.sdio-host] using DMA
[    3.375758] scsi 1:0:0:0: Direct-Access     SanDisk  Cruzer           1.26 PQ: 0 ANSI: 5
[    3.392095] sd 1:0:0:0: [sdb] 15633408 512-byte logical blocks: (8.00 GB/7.45 GiB)
[    3.392828] sd 1:0:0:0: [sdb] Write Protect is off
[    3.392872] sd 1:0:0:0: [sdb] Mode Sense: 43 00 00 00
[    3.393577] sd 1:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    3.394517] usbcore: registered new interface driver uas
[    3.399054]  sdb: sdb1
[    3.402458] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[    8.685611] EXT4-fs (sdb1): mounting ext3 file system using the ext4 subsystem
[    8.707011] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
[   11.123811] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   11.124062] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   11.932052] pci 0000:00:01.0: enabling bus mastering
[   11.932070] rt2800pci 0000:01:00.0: enabling device (0140 -> 0142)
[   11.932134] rt2800pci 0000:01:00.0: enabling bus mastering
[   11.932145] rt2800pci 0000:01:00.0: enabling Mem-Wr-Inval
[   11.937610] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 3090, rev 3212 detected
[   11.952429] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 0005 detected
[   11.982533] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   12.948778] rt2800pci 0000:01:00.0 wlp1s0: renamed from wlan0
[   13.576022] EXT4-fs (sdb1): re-mounted. Opts: (null)
[   13.801520] EXT4-fs (sdb1): re-mounted. Opts: errors=remount-ro
[   14.530239] random: crng init done
[   16.363337] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   18.014538] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
[   18.014654] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
root@debian:~# 

Re: Dell Wyse T10 / T50
August 02, 2018 12:02PM
[    0.839866] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.839904] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    0.839943] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.839978] pci_bus 0000:00: scanning bus
[    0.840009] pci 0000:00:01.0: [11ab:0510] type 01 class 0x060400
[    0.840053] pci 0000:00:01.0: calling pci_fixup_ide_bases+0x0/0x3c
[    0.841885] pci_bus 0000:00: fixups for bus
[    0.841899] PCI: bus0: Fast back to back transfers disabled
[    0.841944] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 0
[    0.841953] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.842011] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 1
[    0.842249] pci_bus 0000:01: scanning bus
[    0.842289] pci 0000:01:00.0: [1814:3090] type 00 class 0x028000
[    0.842321] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x0000ffff]
[    0.842385] pci 0000:01:00.0: calling pci_fixup_ide_bases+0x0/0x3c
[    0.870655] pci_bus 0000:01: fixups for bus
[    0.870668] PCI: bus1: Fast back to back transfers disabled
[    0.870710] pci_bus 0000:01: bus scan returning with max=01
[    0.870722] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.870733] pci_bus 0000:00: bus scan returning with max=01
[    0.870745] pci 0000:00:01.0: fixup irq: got 0
[    0.870752] pci 0000:00:01.0: assigning IRQ 00
[    0.870861] pci 0000:01:00.0: fixup irq: got 44
[    0.870869] pci 0000:01:00.0: assigning IRQ 44
[    0.870902] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    0.870947] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe000ffff]
[    0.870989] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.871027] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    0.871140] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    0.871191] pcieport 0000:00:01.0: enabling bus mastering


[   11.932052] pci 0000:00:01.0: enabling bus mastering
[   11.932070] rt2800pci 0000:01:00.0: enabling device (0140 -> 0142)
[   11.932134] rt2800pci 0000:01:00.0: enabling bus mastering
[   11.932145] rt2800pci 0000:01:00.0: enabling Mem-Wr-Inval
[   11.937610] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 3090, rev 3212 detected
[   11.952429] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 0005 detected
[   11.982533] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   12.948778] rt2800pci 0000:01:00.0 wlp1s0: renamed from wlan0


PCIe is working great now.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Dell Wyse T10 / T50
August 02, 2018 02:06PM
You are right, I just had to install the correct firmware and some other wireless packages to get the wifi card to show up.

root@debian:~# ifconfig 
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.233  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::280:64ff:feaa:7d6c  prefixlen 64  scopeid 0x20<link>
        ether 00:80:64:aa:7d:6c  txqueuelen 1000  (Ethernet)
        RX packets 420  bytes 36693 (35.8 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 552  bytes 129208 (126.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 47  

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

wlp1s0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 00:0e:8e:29:4a:1e  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

root@debian:~#

One thing which shows that the ethernet is not configured properly in the dts file yet is that it now shows up as 100Mb/s while it used to be 1000Mb/s

old:

[   16.243337] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   18.776603] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   18.776717] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

new:

[   16.363337] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   18.014538] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
[   18.014654] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

This reverse engineering is quite addictive but it will have to wait until I'm back home towards the end of next week. Any tips on figuring out dts files from scratch are appreciated.

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