Dockstar mods: SATA, SD, 256MB RAM, Compiling/Modding U-boot; kernel DTB...
November 09, 2021 10:07AM
Hi,

First I must thank the community, specially Bodhi for supporting the project during all this time!

I got a Dockstar about 9 years ago, served me well, however I always wanted to try lifting the cpu and directly interfacing the native sata.
I wanted a small NAS but the USB became too slow for modern networks, so I stopped using it.
Since it's been unused for 2 or 3 years, I decided to try, I had nothing to lose.
I lifted the CPU, cleaned everything and soldered 4 very thin wires to the sata bga pads.
Suprisingly the surgery was successful, it booted fine after reballing the CPU. Everything seems ok.

Some pictures:
https://i.imgur.com/HdcrLPn.jpeg
https://i.imgur.com/uTcusAO.jpeg

But, as I suspected, the sata interface is disabled.
I guess I have to make a custom DTB, or maybe there's another Kirkwood/Pogoplug device that shares the same hw but adding sata support?

Edit: Add useful post links:

- Dockstar picture gallery (HW mods etc)
- U-boot compiling
- U-boot mods
- Nand-less, loading uboot from sata
- JTAG recovery with $5 stm32 blue pill
- Compiling DTS

Cheers,
David



Edited 29 time(s). Last edit at 11/27/2021 08:44PM by davidalfa.
Re: Dockstar HW mod: Trying to add native sata
November 09, 2021 01:46PM
Hi David,

Nice mod!

You don't need compile anything. Use the GoFlex Net DTB and it will run fine.

/boot/dts/kirkwood-goflexnet.dtb

If you have installed the new u-boot then you need to change the env to boot with it. If you run stock u-boot with DTB appended to uImage, then recreate the uImage with the GoFlex Net DTB.

Later, if you want it to identfy as a real Dockstar, we'll just modify the Dockstar DTS and add 1 SATA port to it, and recompile the DTS.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Dockstar HW mod: Trying to add native sata
November 09, 2021 01:52PM
Quote

- arcNumber. Tried other numbers, did nothing, so I guess I definitley need a new DTB to define the hardware changes.
- DTB. Where and how?

Arch number is no longer important with the new kernel. DTB is all the kernel will use to know the hardware (with old and non-FDT kernels, the ArchNumber is important).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Dockstar HW mod: Trying to add native sata
November 09, 2021 02:29PM
I already updated u-boot back in the day (2017.07).
I don't really care about what it says it is, as long asthe hardware works.

Edit: I also had to flash goflexnet uboot to get "ide" command.
For now it's not working, might be wired incorrectly, or it could be a signal quality issue.
More testing coming!

At uboot, I get this:
GoFlexNet> ide reset
Reset IDE: ide_preinit failed

Do you know if that error is caused by some internal sata interface issue, or if it's due communication issues to the sata hdd?

Thanks a lot!



Edited 8 time(s). Last edit at 11/09/2021 03:06PM by davidalfa.
Re: Dockstar HW mod: Trying to add native sata
November 09, 2021 03:32PM
David,

> Edit: I also had to flash goflexnet uboot to get
> "ide" command.
> For now it's not working, might be wired
> incorrectly, or it could be a signal quality
> issue.
> More testing coming!
>
> At uboot, I get this:
>
> GoFlexNet> ide reset
> Reset IDE: ide_preinit failed
>
>
> Do you know if that error is caused by some
> internal sata interface issue, or if it's due
> communication issues to the sata hdd?

"ide_preinit failed" means either there is no SATA plugged in, or the wires are not connected correctly, or the SATA GPIO is misconfigured (i.e. no power). So it could be either.

But given how closely related the GoFlex Net and the Dockstar are, I would try to boot into Debian first, and check the SATA in dmesg. This would be the quickest way to see if it works. When it works in Linux, then you know your wiring is good.

u-boot is a bit more complicated to test, it has more moving parts.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Dockstar HW mod: Trying to add native sata
November 09, 2021 05:27PM
I think it should work right away. There're only 2 sata interfaces, can't be mapped to any random pin.

Using goflex net uboot+dtb, everything works normally... except sata.

I've tried everything. I know the sata pins are ok, I can see the Sata pins in diode mode (internal ESD diodes) and the 120Ohms sata termination resistors for each Rx/Tx pair (Internal, inside the soc).
So everything seems correct. But no way.

The sata shield is connected to solid ground in the board, everything is very short to avoid signal issues. (From Kirkwood bga pins to sata cable, 20-30mm).
I've tried every wire combination, too, just in case. Nothing. Damn, I thought it was going to be a simple hardware cross-flashing mod.

Dmesg:
Loading, please wait...
[    4.193364] systemd-udevd[60]: starting version 215
[    4.200278] random: systemd-udevd urandom read with 7 bits of entropy available
[    4.362001] SCSI subsystem initialized
[    4.404341] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[    4.447089] sata_mv f1080000.sata: slots 32 ports 2
[    4.456972] scsi host0: usb-storage 1-1.2:1.0
[    4.471182] usbcore: registered new interface driver usb-storage
[    4.497985] scsi host1: sata_mv
[    4.505570] usbcore: registered new interface driver uas
[    4.520789] scsi host2: sata_mv
[    4.532967] ata1: SATA max UDMA/133 irq 32
[    4.552905] ata2: SATA max UDMA/133 irq 32
[    4.913336] ata1: SATA link down (SStatus 0 SControl F300)
[    5.283324] ata2: SATA link down (SStatus 0 SControl F300)

So yeah, the sata interface seems to be there, but sees nothing at the other side.



Edited 3 time(s). Last edit at 11/09/2021 05:30PM by davidalfa.
Re: Dockstar HW mod: Trying to add native sata
November 09, 2021 06:20PM
David,

> I've tried everything. I know the sata pins are
> ok, I can see the Sata pins in diode mode
> (internal ESD diodes) and the 120Ohms sata
> termination resistors for each Rx/Tx pair
> (Internal, inside the soc).
> So everything seems correct. But no way.
>
> The sata shield is connected to solid ground in
> the board, everything is very short to avoid
> signal issues. (From Kirkwood bga pins to sata
> cable, 20-30mm).
> I've tried every wire combination, too, just in
> case. Nothing. Damn, I thought it was going to be
> a simple hardware cross-flashing mod.

If you are confident that the hardware is correct. Then we'll move on to the DTS and GPIO.


> [ 4.497985] scsi host1: sata_mv
> [ 4.505570] usbcore: registered new interface
> driver uas
> [ 4.520789] scsi host2: sata_mv
> [ 4.532967] ata1: SATA max UDMA/133 irq 32
> [ 4.552905] ata2: SATA max UDMA/133 irq 32
> [ 4.913336] ata1: SATA link down (SStatus 0
> SControl F300)
> [ 5.283324] ata2: SATA link down (SStatus 0
> SControl F300)
> [/code]
>
> So yeah, the sata interface seems to be there, but
> sees nothing at the other side.

At this point, the usual suspect is the SATA power. Kirkwood SoCs has MPP (pin multiplexer) so each vendor might use a different pin (i.e. GPIO) to control the SATA active and power.

The GoFlex Net and the Dockstar MPP definitions are different. However, only USB Power is needed to be explicit (GPIO 29 for both boards). No explicit HDD power GPIO is needed. That means the HDD power is default as in the datasheet.

Let's try another approach. Even though you had flashed the GoGex Net u-boot, it mightbe better to run the Dockstar DTB.

I'll compile the Dockstar DTB with SATA enable and see if the behavior is any different. Later, you can also do this using DTC compiler. But let me upload the new Dockstar DTS and DTB first.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Dockstar HW mod: Trying to add native sata
November 09, 2021 08:20PM
Here is the new kirkwood-dockstar-sata.dtb. Also attached is the DTS.

Please try!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - kirkwood-dockstar-sata.dts (2.1 KB)
open | download - kirkwood-dockstar-sata.dtb (9.9 KB)
Re: Dockstar HW mod: Trying to add native sata
November 09, 2021 11:48PM
No wonder it failed... I missed the Sata Vdd pin! (Power)
I didn't knew sata used its own power... It's unconnected in the dockstar.
So cpu needs to be lifted again.



Edited 1 time(s). Last edit at 11/09/2021 11:49PM by davidalfa.
Re: Dockstar HW mod: Trying to add native sata
November 10, 2021 05:40AM
Wow ... this is an excellent project. I hope you will get it working in no time. Good luck.
Re: Dockstar HW mod: Trying to add native sata
November 10, 2021 05:44AM
Aaaand..working!

Lifted the cpu again, bridged VDO (3.3V) to Sata_0_VDD and Sata_1_VDD.
I also exposed Sata0 pins this time.
And it worked!
Scan device ide

Reset IDE: Bus 0: not available  Bus 1: OK
  Device 1: Model: TOSHIBA-TR150  Firm: SAFZ12.3 Ser#: 46DB45HHK8VU
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 114473.4 MB = 111.7 GB (234441648 x 512)

I'm good at electronics, but omg, BGA devices don't like the heat, specially when done with a cheap hot air station!

https://i.postimg.cc/RVBVR0FK/IMG-20211110-120239.jpg

I know the picture looks dirty... Was before the cleaning, I thought the wires would break so I made it before :D.
And I was right: Accidentally lifted sata0_RN pad, luckly I was able to fix it making a coil with the wire, imitating a pad.


Initially it didn't boot from sata. It was caused by the uboot env variables.
Updated the "load_xxx" vars with goflexnet defaults:
setenv load_uimage 'echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage'
setenv load_initrd 'echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd'
setenv load_dtb 'echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file'

And it booted!

Loading, please wait...
[    4.193244] systemd-udevd[60]: starting version 215
[    4.205530] random: systemd-udevd urandom read with 6 bits of entropy available
[    4.379894] SCSI subsystem initialized
[    4.429352] sata_mv f1080000.sata: slots 32 ports 2
[    4.472229] scsi host0: sata_mv
[    4.490917] scsi host1: sata_mv
[    4.499520] ata1: SATA max UDMA/133 irq 32
[    4.517504] ata2: SATA max UDMA/133 irq 32
[    4.863332] ata1: SATA link down (SStatus 0 SControl F300)
[    5.393331] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    5.433361] ata2.00: ATA-8: ST500LT012-9WS142, 0001LVM1, max UDMA/133
[    5.439832] ata2.00: 976773168 sectors, multi 16: LBA48 NCQ (depth 31/32)
[    5.503364] ata2.00: configured for UDMA/133
[    5.523684] scsi 1:0:0:0: Direct-Access     ATA      ST500LT012-9WS14 LVM1 PQ: 0 ANSI: 5
[    5.545648] sd 1:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/465 GiB)
[    5.553177] sd 1:0:0:0: [sda] 4096-byte physical blocks
[    5.561274] sd 1:0:0:0: [sda] Write Protect is off
[    5.566304] sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    5.604978]  sda: sda1 sda2 sda3
[    5.610847] sd 1:0:0:0: [sda] Attached SCSI disk
[    5.618514] sd 1:0:0:0: Attached scsi generic sg0 type 0

With the cheap laptop hdd, the speed is twice as before using USB:
root@debian:/home# dd if=/dev/zero of=test bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 21.2135 s, 50.6 MB/s

With a 120GB SSD, only a little better ( Probably caused by the 16bit ram bottleneck):
root@debian:/home/sda1# dd if=/dev/zero of=test bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 15.3228 s, 70.1 MB/s



Edited 8 time(s). Last edit at 11/10/2021 06:29AM by davidalfa.
Re: Dockstar HW mod: Trying to add native sata
November 10, 2021 01:12PM
Edit: Nevermind, stupid mistake



Edited 2 time(s). Last edit at 11/10/2021 01:18PM by davidalfa.
Re: Dockstar HW mod: Trying to add native sata
November 10, 2021 02:21PM
That's awesome! I'd love to try this, but I don't know about reballing the CPU. I've only briefly looked into it. Any advice? What would I need to acquire and does it make sense financially for something I may only use once or twice?
Re: Dockstar HW mod: Trying to add native sata
November 10, 2021 02:46PM
Honestly: I don't feel like wasting my money for hobby use, like some people do (and I respect that, do whatever you want with your own money!).

This is my pofffesionel setup: (not a typo)


$20 hot air station, 8585D (Amazing for such price!)
www.aliexpress.com/item/1005001319830627.html


$40 Quicko T12 soldering station
www.aliexpress.com/item/32994824865.html

Check out my custom firmware for these and KSGERS :)
https://github.com/deividAlfa/stm32_soldering_iron_controller

$12 Some T12 tips
www.aliexpress.com/item/32795825499.html

$8 bga stencils
www.aliexpress.com/item/1005003286129811.html

$7 solder ball assortment kit
www.aliexpress.com/item/32915656170.html

$2 UV solder mask
www.aliexpress.com/item/1005002646047732.html

$3 cheap flux
www.aliexpress.com/item/1005002803250740.html
Desoldering wick (This is a BIG reel taht will last months or even years, you can get 1.5m for very sporadic jobs)
https://www.ebay.com/itm/123806236996

Of course, it's not only the tools, but the animal. I've been fiddlign with electronics for years.
I've burned/damaged a ton of stuff, so I know how to play with them without screwing everything up, at least not eveytime, it's never infallible! haha



Edited 2 time(s). Last edit at 11/10/2021 03:08PM by davidalfa.
Re: Dockstar HW mod: Trying to add native sata
November 10, 2021 03:04PM
David,

Congrats and great job!

Could you mark the pins with descriptive names on the picture, or describe it (using some orientation referenced to other markings?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Dockstar HW mod: Trying to add native sata
November 10, 2021 03:09PM
Yes, I'm that kind of guy that makes guides, it's just that I hadn't enough free time yet :) .
I'll do of course (I'm already at it, using by master Paint skills)



Edited 1 time(s). Last edit at 11/10/2021 03:11PM by davidalfa.
Re: Dockstar HW mod: Trying to add native sata
November 10, 2021 03:23PM
That would be great! I'd like to add the post to the Wiki thread when you're ready.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Dockstar HW mod: Trying to add native sata
November 10, 2021 04:20PM
I attach the 88F6281 pinout (taken from the datasheet).

Here's the sata connection.
https://i.postimg.cc/0kgj2CY8/dockstar-sata.jpg

I also marked the pci express pins, theorically you could plug any pcie device there... if there's support for it in Linux.

The board works perfectly fine either with goflex and dockstar-sata dtb. Even the led.
I upgraded to the latest version, everything works as expected, great job Bohdi!

However I noticed something, unrelated to the mod and/or the build version:
If ethernet is not attached, the serial console can't be accesed, it's stuck waiting for dhcp:
Listening on LPF/eth0/00:10:75:1a:94:3f
Sending on   LPF/eth0/00:10:75:1a:94:3f
Sending on   Socket/fallback
DHCPREQUEST for 192.168.0.15 on eth0 to 255.255.255.255 port 67
(Stays there forever)

After connecting ethernet and receiving ip, it continues and finally shows the login prompt:
[  101.379532][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[  101.390189][   T17] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
...
...
Debian GNU/Linux 11 debian ttyS0

debian login:

This already happened before in the old version, 4.0.0.
It's a little annoying that Ethernet *must* connected to be able to access the device.

Not a big issue tough, I very rarely need to use the serial port.
Also, I never use dhcp for remote devices, it's a mess when the router resets the IP table, using static IP avoids the issue.



Edited 13 time(s). Last edit at 11/10/2021 04:53PM by davidalfa.
Attachments:
open | download - 88F6281_Pinout.xls (417 KB)
Re: Dockstar HW mod: Trying to add native sata
November 10, 2021 06:09PM
Excellent! thanks.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Dockstar HW mod: Trying to add native sata
November 10, 2021 06:15PM
Up in the Wiki thread:

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

Quote

Under/Over the hood Modding

Pogoplug Pro / V3 Internal SSD Mod
Pogoplug Pro HW mods
USB Wireless Extender (homemade antenna)
Adding 2nd SATA to HP Thin Client T5325 - Mod 1
Adding 2nd SATA to HP Thin Client T5325 - Mod 2
Connect to external SATA drives (or eSATA enclosures) from a Pogoplug V4
Dual Wireless Antenna on Pogo V3
A quiet and movable fan for your desktop case
NSA320 mod for an additional usb port
Pogoplug Pro V3 Dual Antenna for Wifi
Sata DOM hardware mod to Canvio NAS
Reset button for Pogoplug V3 (OXNAS)
Pogo V3 Pro internal Dual SD Card (USB 2.0) using mPCIe slot
Make your inexpensive GoFLEX Home/Net SATA HDD cable
Dell Kace M300 internal HDD Mod, and SSD Mod.
Dell Kace M300 internal SSD Mod (recommended)
Adding SATA to Seagate Dockstar (HW mod)

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Dockstar HW mod: Trying to add native sata
November 10, 2021 08:11PM
@davidalfa, wasting money? Nah, that's what hobbies are for!

Thanks for the list. Most of that stuff I already have (or suitable substitutes) and the animal is more than willing, if not capable. :-) I'm going to have to give this a try. I have a spare Dockstar I acquired for just such a project. Thanks to your photo I can also maybe trace some of the unused MPP/GPIO pins (assuming there are some) and put them to use. I connected an IR blaster and RF receiver to the TX/RX serial pins, but it would be nice to have other options.

-JT
Re: Dockstar HW mod: Trying to add native sata
November 10, 2021 11:56PM
It's interesting to see how everything else is routed, except sata/pcie pins.
There's an old thread in the archlinux forum about this device:
https://archlinuxarm.org/forum/viewtopic.php?f=6&t=258



Edited 1 time(s). Last edit at 11/11/2021 12:04AM by davidalfa.
Re: Dockstar HW mod: Trying to add native sata
November 11, 2021 03:41AM
Thanks for that link! I had completely forgotten about archlinux having abandoned it years ago.
Re: Dockstar HW mod: Trying to add native sata
November 11, 2021 05:58AM
@davidalfa, congratulation and thank you for sharing such an excellent project.

BTW, you can use this F3 - an alternative to h2testw (a simple console) program to test your SATA disk and see its R/W performance.
Re: Dockstar HW mod: Trying to add native sata
November 11, 2021 06:25AM
Thans for the tip, I'll check it out!

I discarded the SSD...only 120GB, too small, also it's not that fast for big files...
I'll test it again in the future, when I add the 2nd sata port.

After some tweaking, the 2.5" HDD became a little faster:
Writing:
root@debian:/home# dd if=/dev/zero of=test bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 17.4865 s, 61.4 MB/s


Reading:
root@debian:/home# dd if=test of=/dev/null bs=1M
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 10.4203 s, 103 MB/s

Settings used:(From https://forum.archive.openwrt.org/viewtopic.php?id=37165)
mkfs.ext4 /dev/sda3
tune2fs -o journal_data_writeback /dev/sda3
tune2fs -O ^has_journal /dev/sda3
e2fsck -f /dev/sda3

fstab:

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
LABEL=rootfs    /               ext3    noatime,errors=remount-ro 0 1
LABEL=home      /home           ext4    rw,errors=remount-ro,data=writeback,noatime,nodiratime 0  1
tmpfs           /tmp            tmpfs   defaults          0       0
UUID=bd3f94de-62c0-4cb4-9133-b7291b148b45       swap            swap    defaults        0       0



Edited 4 time(s). Last edit at 11/11/2021 06:29AM by davidalfa.
Re: Dockstar HW mod: Trying to add native sata
November 11, 2021 06:41AM
I'm having a small issue with the latest Debian rootfs.

With the old 4.0.0 it boots quick and smooth, however with 5.6.13, I get a lot of mtdblock0 ECC errors, slowing down the boot speed quite a bit:
[   17.130199][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   17.140874][   T99] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   17.160803][  T151] printk: console [netcon0] enabled
[   17.167732][  T151] netconsole: network logging started
done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... [   27.265927][  T159] ecc_sw_hamming_correct: uncorrectable ECC error
[   27.272313][  T159] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   27.284368][  T159] ecc_sw_hamming_correct: uncorrectable ECC error
[   27.290712][  T159] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   27.302166][  T159] Buffer I/O error on dev mtdblock0, logical block 255, async page read
[   27.676930][  T159] ecc_sw_hamming_correct: uncorrectable ECC error
[   27.683312][  T159] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   27.695364][  T159] ecc_sw_hamming_correct: uncorrectable ECC error
[   27.701723][  T159] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   27.713144][  T159] Buffer I/O error on dev mtdblock0, logical block 255, async page read
Begin: Waiting for suspend/resume device ... Begin: Running /scripts/local-block ... done.
[   28.804358][  T165] ecc_sw_hamming_correct: uncorrectable ECC error
[   28.810740][  T165] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   28.822759][  T165] ecc_sw_hamming_correct: uncorrectable ECC error
[   28.829159][  T165] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   28.840578][  T165] Buffer I/O error on dev mtdblock0, logical block 255, async page read
[   28.903830][  T165] ecc_sw_hamming_correct: uncorrectable ECC error
[   28.910287][  T165] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   28.922315][  T165] ecc_sw_hamming_correct: uncorrectable ECC error
[   28.928693][  T165] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   28.940114][  T165] Buffer I/O error on dev mtdblock0, logical block 255, async page read
Begin: Running /scripts/local-block ... done.
[   30.030540][  T171] ecc_sw_hamming_correct: uncorrectable ECC error
[   30.037024][  T171] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   30.049029][  T171] ecc_sw_hamming_correct: uncorrectable ECC error
[   30.055394][  T171] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   30.066817][  T171] Buffer I/O error on dev mtdblock0, logical block 255, async page read
[   30.130316][  T171] ecc_sw_hamming_correct: uncorrectable ECC error
[   30.136992][  T171] ecc_sw_hamming_correct: uncorrectable ECC error
[   30.143343][  T171] Buffer I/O error on dev mtdblock0, logical block 255, async page read
Begin: Running /scripts/local-block ... done.
[   31.729683][  T177] ecc_sw_hamming_correct: uncorrectable ECC error
[   31.736347][  T177] ecc_sw_hamming_correct: uncorrectable ECC error
[   31.742695][  T177] Buffer I/O error on dev mtdblock0, logical block 255, async page read
[   31.806073][  T177] ecc_sw_hamming_correct: uncorrectable ECC error
[   31.812631][  T177] ecc_sw_hamming_correct: uncorrectable ECC error
[   31.819074][  T177] Buffer I/O error on dev mtdblock0, logical block 255, async page read
Begin: Running /scripts/local-block ... done.
[   32.909410][  T183] ecc_sw_hamming_correct: uncorrectable ECC error
[   32.915878][  T183] print_req_error: 6 callbacks suppressed
[   32.915891][  T183] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   32.933501][  T183] ecc_sw_hamming_correct: uncorrectable ECC error
[   32.939865][  T183] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   32.951288][  T183] Buffer I/O error on dev mtdblock0, logical block 255, async page read
[   33.014574][  T183] ecc_sw_hamming_correct: uncorrectable ECC error
[   33.020953][  T183] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   33.032989][  T183] ecc_sw_hamming_correct: uncorrectable ECC error
[   33.039354][  T183] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   33.050776][  T183] Buffer I/O error on dev mtdblock0, logical block 255, async page read
Begin: Running /scripts/local-block ... done.
[   34.670077][  T189] ecc_sw_hamming_correct: uncorrectable ECC error
[   34.676555][  T189] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   34.688557][  T189] ecc_sw_hamming_correct: uncorrectable ECC error
[   34.694922][  T189] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   34.706346][  T189] Buffer I/O error on dev mtdblock0, logical block 255, async page read
[   34.769736][  T189] ecc_sw_hamming_correct: uncorrectable ECC error
[   34.776228][  T189] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   34.788233][  T189] ecc_sw_hamming_correct: uncorrectable ECC error
[   34.794592][  T189] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   34.806015][  T189] Buffer I/O error on dev mtdblock0, logical block 255, async page read
Begin: Running /scripts/local-block ... done.
[   35.896500][  T195] ecc_sw_hamming_correct: uncorrectable ECC error
[   35.902883][  T195] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   35.914902][  T195] ecc_sw_hamming_correct: uncorrectable ECC error
[   35.921244][  T195] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   35.932696][  T195] Buffer I/O error on dev mtdblock0, logical block 255, async page read
[   35.996054][  T195] ecc_sw_hamming_correct: uncorrectable ECC error
[   36.002618][  T195] ecc_sw_hamming_correct: uncorrectable ECC error
[   36.009061][  T195] Buffer I/O error on dev mtdblock0, logical block 255, async page read
Begin: Running /scripts/local-block ... done.
[   37.503478][  T201] ecc_sw_hamming_correct: uncorrectable ECC error
[   37.510193][  T201] ecc_sw_hamming_correct: uncorrectable ECC error
[   37.516634][  T201] Buffer I/O error on dev mtdblock0, logical block 255, async page read
[   37.580034][  T201] ecc_sw_hamming_correct: uncorrectable ECC error
[   37.586712][  T201] ecc_sw_hamming_correct: uncorrectable ECC error
[   37.593058][  T201] Buffer I/O error on dev mtdblock0, logical block 255, async page read
Begin: Running /scripts/local-block ... done.
[   38.683686][  T207] ecc_sw_hamming_correct: uncorrectable ECC error
[   38.690209][  T207] print_req_error: 6 callbacks suppressed
[   38.690223][  T207] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   38.707903][  T207] ecc_sw_hamming_correct: uncorrectable ECC error
[   38.714333][  T207] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   38.725756][  T207] Buffer I/O error on dev mtdblock0, logical block 255, async page read
[   38.789135][  T207] ecc_sw_hamming_correct: uncorrectable ECC error
[   38.795639][  T207] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   38.807701][  T207] ecc_sw_hamming_correct: uncorrectable ECC error
[   38.814067][  T207] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   38.825491][  T207] Buffer I/O error on dev mtdblock0, logical block 255, async page read
Begin: Running /scripts/local-block ... done.
[   40.383540][  T213] ecc_sw_hamming_correct: uncorrectable ECC error
[   40.390062][  T213] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   40.402105][  T213] ecc_sw_hamming_correct: uncorrectable ECC error
[   40.408541][  T213] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   40.419973][  T213] Buffer I/O error on dev mtdblock0, logical block 255, async page read
[   40.483185][  T213] ecc_sw_hamming_correct: uncorrectable ECC error
[   40.489643][  T213] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   40.501673][  T213] ecc_sw_hamming_correct: uncorrectable ECC error
[   40.508041][  T213] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   40.519465][  T213] Buffer I/O error on dev mtdblock0, logical block 255, async page read
Begin: Running /scripts/local-block ... done.
[   41.673792][  T219] ecc_sw_hamming_correct: uncorrectable ECC error
[   41.680316][  T219] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   41.692354][  T219] ecc_sw_hamming_correct: uncorrectable ECC error
[   41.698756][  T219] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   41.710182][  T219] Buffer I/O error on dev mtdblock0, logical block 255, async page read
[   41.773447][  T219] ecc_sw_hamming_correct: uncorrectable ECC error
[   41.780100][  T219] ecc_sw_hamming_correct: uncorrectable ECC error
[   41.786534][  T219] Buffer I/O error on dev mtdblock0, logical block 255, async page read
[   42.076110][    C0] random: crng init done
Begin: Running /scripts/local-block ... done.
[   43.279604][  T225] ecc_sw_hamming_correct: uncorrectable ECC error
[   43.286264][  T225] ecc_sw_hamming_correct: uncorrectable ECC error
[   43.292613][  T225] Buffer I/O error on dev mtdblock0, logical block 255, async page read
[   43.356072][  T225] ecc_sw_hamming_correct: uncorrectable ECC error
[   43.362631][  T225] ecc_sw_hamming_correct: uncorrectable ECC error
[   43.369107][  T225] Buffer I/O error on dev mtdblock0, logical block 255, async page read
Begin: Running /scripts/local-block ... done.
[   44.674595][  T231] ecc_sw_hamming_correct: uncorrectable ECC error
[   44.680972][  T231] print_req_error: 6 callbacks suppressed
[   44.680985][  T231] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   44.698656][  T231] ecc_sw_hamming_correct: uncorrectable ECC error
[   44.705052][  T231] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   44.716472][  T231] Buffer I/O error on dev mtdblock0, logical block 255, async page read
[   44.779813][  T231] ecc_sw_hamming_correct: uncorrectable ECC error
[   44.786298][  T231] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   44.798304][  T231] ecc_sw_hamming_correct: uncorrectable ECC error
[   44.804670][  T231] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   44.816088][  T231] Buffer I/O error on dev mtdblock0, logical block 255, async page read
Begin: Running /scripts/local-block ... done.
[   46.175339][  T237] ecc_sw_hamming_correct: uncorrectable ECC error
[   46.181721][  T237] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   46.193739][  T237] ecc_sw_hamming_correct: uncorrectable ECC error
[   46.200143][  T237] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   46.211569][  T237] Buffer I/O error on dev mtdblock0, logical block 255, async page read
[   46.274864][  T237] ecc_sw_hamming_correct: uncorrectable ECC error
[   46.281238][  T237] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   46.293275][  T237] ecc_sw_hamming_correct: uncorrectable ECC error
[   46.299641][  T237] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   46.311060][  T237] Buffer I/O error on dev mtdblock0, logical block 255, async page read
Begin: Running /scripts/local-block ... done.
[   47.749410][  T243] ecc_sw_hamming_correct: uncorrectable ECC error
[   47.755884][  T243] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   47.767896][  T243] ecc_sw_hamming_correct: uncorrectable ECC error
[   47.774260][  T243] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   47.785684][  T243] Buffer I/O error on dev mtdblock0, logical block 255, async page read
[   47.849007][  T243] ecc_sw_hamming_correct: uncorrectable ECC error
[   47.855673][  T243] ecc_sw_hamming_correct: uncorrectable ECC error
[   47.862016][  T243] Buffer I/O error on dev mtdblock0, logical block 255, async page read
Begin: Running /scripts/local-block ... done.
[   49.167003][  T249] ecc_sw_hamming_correct: uncorrectable ECC error
[   49.173575][  T249] ecc_sw_hamming_correct: uncorrectable ECC error
[   49.180008][  T249] Buffer I/O error on dev mtdblock0, logical block 255, async page read
[   49.243370][  T249] ecc_sw_hamming_correct: uncorrectable ECC error
[   49.250018][  T249] ecc_sw_hamming_correct: uncorrectable ECC error
[   49.256452][  T249] Buffer I/O error on dev mtdblock0, logical block 255, async page read
done.
[   49.602830][  T251] ecc_sw_hamming_correct: uncorrectable ECC error
[   49.609522][  T251] ecc_sw_hamming_correct: uncorrectable ECC error
[   49.615930][  T251] Buffer I/O error on dev mtdblock0, logical block 255, async page read
[   49.679041][  T251] ecc_sw_hamming_correct: uncorrectable ECC error
[   49.685510][  T251] print_req_error: 8 callbacks suppressed
[   49.685523][  T251] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[   49.703103][  T251] ecc_sw_hamming_correct: uncorrectable ECC error
[   49.709469][  T251] blk_update_request: I/O error, dev mtdblock0, sector 2040 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   49.720886][  T251] Buffer I/O error on dev mtdblock0, logical block 255, async page read
Gave up waiting for suspend/resume device
done.

Another small issue: The latest rootfs is missing ca-certificates and openssl.
So HTTPS downloads will fail, including the security repository in sources.list:
deb https://security.debian.org/debian-security bullseye-security main contrib non-free

I had issues trying to install openssl with the default mirror (I ran apt update first):
E: Failed to fetch http://ftp.us.debian.org/debian/pool/main/o/openssl/openssl_1.1.1k-1_armel.deb  404  Not Found [IP: 2600:3404:200:237::2 80]

I had to edit sources.list and change
ftp.us.debian.org/debian/

To: (I live in Spain)
ftp.es.debian.org/debian/

After that, the packages installed correctly.



Edited 1 time(s). Last edit at 11/11/2021 07:50AM by davidalfa.
Re: Dockstar HW mod: Trying to add native sata
November 11, 2021 10:33AM
Hmm, can't get samba faster than 34-37MB/s.
Cpu usage was quite high (~90%) so I overclocked it to 1.5GHz, no difference.

Forced the cpu to stay at 375MHz, that slowed the speed down to 16MB/s, not linear performance drop, so I think the problem isn't caused by the cpu itself, but probably I/O delay or something like that?

After few boots the bad block issue no longer happens. Maybe it's only a first boot thing after a fresh install?



Edited 1 time(s). Last edit at 11/11/2021 10:54AM by davidalfa.
Re: Dockstar HW mod: Trying to add native sata
November 11, 2021 04:38PM
David,

> With the old 4.0.0 it boots quick and smooth,
> however with 5.6.13, I get a lot of mtdblock0 ECC
> errors, slowing down the boot speed quite a bit

That's strange. This box should not have ECC on mtd0. But as you said in the next post, it's gone after a few reboot. So not sure what to make of that. The kernel should not scan mtd0block with ECC.

> Another small issue: The latest rootfs is missing
> ca-certificates and openssl.

This rootfs is a really basic rootfs. I've only installed some convenient packages, and let users install whatever as needed. I thought I included openssl, but I might have missed that from day one!

> ftp.es.debian.org/debian/

That a good point. I'll add some post-installation notes about apt sources in the rootfs instruction.

As far as Samba is concerned, see the Wiki thread:

Quote
https://forum.doozan.com/read.php?2,23630
Samba

Samba smb.conf for a simple set up
HowTo setup Samba/CIFS shares
Samba server project on POGO-V4

And you're correct, Samba performance depends on network speed, and the HDD speed, not CPU. This box CPU (1.2Hz) is quite fast for Samba.

Note: Make sure you create a 512MB or larger swap file before running any test or install packages.

Quote

Cpu usage was quite high (~90%) so I overclocked it to 1.5GHz, no difference.

That's is suspected to be related to be the lack of swap space. This box has only 128MB RAM, or 256MB RAM for a few lucky owners!

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



Edited 1 time(s). Last edit at 11/11/2021 04:41PM by bodhi.
Re: Dockstar HW mod: Trying to add native sata
November 11, 2021 05:55PM
Yup, I always use 1GB swap partition.
Hdd speed is 60/120MB/s (write/read), so that part is ok.
Tried NFS, and while the CPU usage is a lot lower, the transfer speed isn't faster.
Any tweaking ideas are welcome, but it's already pretty good, the hardware is very limited here!
Re: Dockstar HW mod: Trying to add native sata
November 11, 2021 06:29PM
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: