gt
Problems booting Debian on 88f6283
November 01, 2022 10:14PM
Hi!
I am trying to upgrade an old vpn-box on 88f6283, but it only works with Squeeze it came with.
I followed great guide by bodhi, but the booting of new system fails because the dtb is nowhere to be found.

The u-boot is also stuck on obscure patched version from around 2010, and any attempt to replace it ends in usb+eth not showing, and only portion of 1gb ram visible.

At this moment I would be glad to boot anything supportable, and I have tried installing OpenWrt. The "factory" rootfs uses ubi, which bootloader cannot parse, and if I boot uImage (ro version of Openwrt), network interface fails to receive enything.

Are there any options to try?

Here are some links:
the device https://promwad.com/case-studies/ip-plug-mini-server and
patches from vendor on some forgotten ftp http://download.ak-s.com.ru/ip-plug/
Re: Problems booting Debian on 88f6283
November 02, 2022 12:22AM
gt,

Do you have serial console connected (if this box has serial header)?

Quote

I followed great guide by bodhi, but the booting of new system fails because the dtb is nowhere to be found.

The 88f6283 is a close cousin of the 88f6282. That would be the Zyxel NSA325. Try using the kirkwood-nsa325.dtb.

Also the Silverstore (kirkwood-silverstore-hncn2.dtb)

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



Edited 1 time(s). Last edit at 11/02/2022 12:27AM by bodhi.
Re: Problems booting Debian on 88f6283
November 02, 2022 08:24PM
The Marvelll 88F6283 is the low power version of the ARMADA 300/310 available operating at either 800MHz or 1GHz. Its the same processor as the Freecom SilverStore as bodhi suggested, so that dts might be a good starting point. An even closer example would be the Plat'Home OpenBlocksA7 (DTB file is kirkwood-openblocks_a7.dtb) as it has very similar features (i.e. 1GB RAM, 2x Gigabit Ethernet) as your device.
gt
Re: Problems booting Debian on 88f6283
November 04, 2022 08:01PM
>Do you have serial console connected (if this box has serial header)?
Yes, I have connected terminal to UART

>Try Silverstore or OBa7 dtbs
Thanks for the advice!

That helped to make some progress!

I can see that the device boots to "Waiting for the rootfs device /dev/sda1" but then it stucks
I deleted the "rootwait" part of u-boot arguments and now it outputs the following: https://pastebin.com/haG9U1MM



Edited 1 time(s). Last edit at 11/04/2022 08:01PM by gt.
Re: Problems booting Debian on 88f6283
November 04, 2022 09:17PM
gt,

Try these 2 tests:

1. Use different USB port if this box has more than one USB port.

If that does not work,

2. Use Silverstore DTB

-bodhi
===========================
Forum Wiki
bodhi's corner
gt
Re: Problems booting Debian on 88f6283
November 05, 2022 08:41AM
Nope, all the same.
Re: Problems booting Debian on 88f6283
November 05, 2022 01:33PM
The problem is related to the USB drives/ports.

[   12.405096][  T102] usb 1-1: New USB device found, idVendor=0000, idProduct=0000, bcdDevice= 0.00
[   12.414052][  T102] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[   12.422828][  T102] hub 1-1:1.0: USB hub found
[   12.427458][  T102] hub 1-1:1.0: 4 ports detected
[   12.744635][  T102] usb 1-1.3: new high-speed USB device number 3 using orion-ehci
[   12.900959][  T102] usb 1-1.3: New USB device found, idVendor=0951, idProduct=1665, bcdDevice= 1.00
[   12.910096][  T102] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   12.918194][  T102] usb 1-1.3: Product: DataTraveler 2.0
[   12.923545][  T102] usb 1-1.3: Manufacturer: Kingston
[   12.928655][  T102] usb 1-1.3: SerialNumber: 000
[   12.935601][  T102] usb 1-1.3: rejected 1 configuration due to insufficient available bus power
[   12.944360][  T102] usb 1-1.3: no configuration chosen from 1 choice


So basically the USB drive is not working in Linux. So no root device.

But this USB drive did work fine in u-boot. So the issue likely with DTB (DTS needs some definition for USB and USB regulator).

Sometime using another USB drive might solve the power problem.

-bodhi
===========================
Forum Wiki
bodhi's corner
gt
Re: Problems booting Debian on 88f6283
November 05, 2022 03:33PM
I tried another usb drive, same result.

Is there a kernel bootarg to ignore bus power warnings?

I've found this:
https://blog.famzah.net/2010/08/11/usb-rejected-1-configuration-due-to-insufficient-available-bus-power/
but unsure how to make kernel read it from u-boot bootargs
gt
Re: Problems booting Debian on 88f6283
November 05, 2022 07:11PM
I added "usbcore.authorized_default=1" after reading https://www.kernel.org/doc/html/v5.19/admin-guide/kernel-parameters.html, but it did no good
gt
Re: Problems booting Debian on 88f6283
November 05, 2022 07:59PM
Also I found a USB-hub with external power supply.
Using it, I successfully booted to Debian USB! Yay!
But Ethernet ports are not working :( . They do register link, but fail to receive anything, just like OpenWRT images.

Is there a way to create dtb from a patch that makes workable kernel 3.1.1, from manufacturer's archives?
Re: Problems booting Debian on 88f6283
November 05, 2022 08:17PM
Which dtb file are you using? Have you tried each of the existing dtb files that support the 6283 SOC?
  • kirkwood-openblocks_a6.dts
  • kirkwood-openblocks_a7.dts
  • kirkwood-silverstore-hncn2.dtb
  • kirkwood-topkick.dtb

Ray
Re: Problems booting Debian on 88f6283
November 05, 2022 08:28PM
gt,

> Also I found a USB-hub with external power
> supply.
> Using it, I successfully booted to Debian USB!
> Yay!

Congrat!

> But Ethernet ports are not working :( . They do
> register link, but fail to receive anything, just
> like OpenWRT images.

Which DTB you are using?

> Is there a way to create dtb from a patch that
> makes workable kernel 3.1.1, from manufacturer's
> archives?

Yes, but it will take a bit or a lot of time, depending on the info you got. Changing the ethernet definition is not hard. The hard part is knowing the correct PHY address to change it to (the definition is in the DTS). If the stock patch is available, please post it here in attachment or upload it somewhere (i.e. pastebin).

===========

For now do:

Post the entire serial bootlog for the successful boot.

-bodhi
===========================
Forum Wiki
bodhi's corner
gt
Re: Problems booting Debian on 88f6283
November 06, 2022 12:58PM
>Which dtb file are you using? Have you tried each of the existing dtb files that support the 6283 SOC?
Yes I tried all of those. Results vary a little, some use LED properly, some blink "faliure", but work. Some show 1 eth, some both. But no network and no boot wothout usb hub.

>Which DTB you are using?
Mostly openblocks a7, it shows both eth

>Post the entire serial bootlog for the successful boot.
https://pastebin.com/8DYBF9yp

>If the stock patch is available, please post it here in attachment or upload it somewhere (i.e. pastebin).
In the attach
Attachments:
open | download - linux-3.1.1_r1416.patch (78.7 KB)
Re: Problems booting Debian on 88f6283
November 06, 2022 01:48PM
gt,

Even though the network was detected, the network link was never active. And the USB power hub is needed to boot then there was no power to the USB port. Both of these problems most likely due to the DTS that's good for Openblock A7 but something is missing or wrong for your box.

Let me take a look at the patch.

BTW, what is the exact name and model of this box? is it IP-Plug, by PromWad or they made this for a client?

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Problems booting Debian on 88f6283
November 06, 2022 01:56PM
Quote

BTW, what is the exact name and model of this box? is it IP-Plug, by PromWad or they made this for a client?

I see in the patch

+ * Promwad WTPlug Reference Board Setup

-bodhi
===========================
Forum Wiki
bodhi's corner
gt
Re: Problems booting Debian on 88f6283
November 06, 2022 02:33PM
I actually fiddled with u-boot, followed OpenWrt guide to replacing it to most recent working one for Kirkwood. It boots the board, but does not see usb or network.
With stock u-boot I am able to read files from usb and use network upload. But it seems no support for UBI or ext4
So, maybe u-boot patch will be of some use (I think it is smaller than the kernel)
Attachments:
open | download - u-boot-2011.06_r1370.patch (58.7 KB)
Re: Problems booting Debian on 88f6283
November 06, 2022 03:39PM
gt,

Try this attached DTB.

Power up, interrupt serial consolse and

printenv
bdinfo
ping <your router IP>  # for example, 192.168.0.1

And then boot the same way you did in the successful boot.

And please post the entire serial console log.

-bodhi
===========================
Forum Wiki
bodhi's corner
Attachments:
open | download - kirkwood-promwad-wtplug.dtb (11.2 KB)
gt
Re: Problems booting Debian on 88f6283
November 06, 2022 04:01PM
Wow! Your help was fast and on point!

eth0 worked inside debian, usb worked with hub ("[ 17.311402][ T1] Waiting for root device /dev/sda1..." when plugged directly)

Output log:
https://pastebin.com/wx3NbB7z
Re: Problems booting Debian on 88f6283
November 06, 2022 04:35PM
Quote

eth0 worked inside debian, usb worked with hub ("[ 17.311402][ T1] Waiting for root device /dev/sda1..." when plugged directly)

Cool!

It has Ethernet implementation only. I want to make sure that we got that out of the way. Please try Ethernet port 1, both scenarios:

1. Unplug port 0 and plug the cable to 2nd port while Debian is running.
2. Reboot, and verify ethernet port 1 work.

-bodhi
===========================
Forum Wiki
bodhi's corner
gt
Re: Problems booting Debian on 88f6283
November 06, 2022 04:47PM
Yes, works in both cases!
Re: Problems booting Debian on 88f6283
November 06, 2022 05:05PM
Cool!

USB is a bit harder. I could not guess the names they used in the patch. My guess is MPP45_GPIO but why the weird name!

u-boot patch

+		MPP45_GPIO,	/* USB_IND */
+		MPP46_GPIO, 	/* USB_RS_IND */
+		MPP47_GPIO,	/* RST_GE */
+		MPP48_GPIO,	/* RST_USB */

Power up, interrupt serial console and

md.l 0xF1010000 8

And then

md.l 0xF1010100 1
md.l 0xF1010140 1
usb start
md.l 0xF1010100 1
md.l 0xF1010140 1

Please post the log here.

-bodhi
===========================
Forum Wiki
bodhi's corner
gt
Re: Problems booting Debian on 88f6283
November 06, 2022 05:13PM
U-Boot 2011.06 (Feb 22 2012 - 04:24:47)
Promwad-PlugComputer

SoC:   Kirkwood 88F6282_?? RevID 0x01
DRAM:  1 GiB
NAND:  1024 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0, egiga1
88E1121 Initialized on egiga0, devadr 1
88E1121 Initialized on egiga1, devadr 0
Hit any key to stop autoboot:  0 
Marvell>> md.l 0xF1010000 8
f1010000: 01111111 00003300 33331100 33003333    .....3....3333.3
f1010010: 00000033 00000000 00000000 00000000    3...............
Marvell>> md.l 0xF1010100 1
f1010100: 00000000    ....
Marvell>> md.l 0xF1010140 1
f1010140: 00018000    ....
Marvell>> usb start
(Re)start USB...
USB:   Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 3 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
Marvell>> md.l 0xF1010100 1
f1010100: 00000000    ....
Marvell>> md.l 0xF1010140 1
f1010140: 00018000    ....
Marvell>>
Re: Problems booting Debian on 88f6283
November 06, 2022 05:32PM
MPP 47 48

+		MPP47_GPIO,	/* RST_GE */
+		MPP48_GPIO,	/* RST_USB */

So my guess is 48 for USB power. 47 is for Ethernet.

Will upload another DTB.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Problems booting Debian on 88f6283
November 06, 2022 05:47PM
This DTB has:

- Added USB power regulator
- Removed the DIP switches

Please try booting without USB hub.

-bodhi
===========================
Forum Wiki
bodhi's corner
Attachments:
open | download - kirkwood-promwad-wtplug.dtb (11.6 KB)
gt
Re: Problems booting Debian on 88f6283
November 06, 2022 06:02PM
Updated uImage, rebooted...
Nope, sadly [ 17.231333][ T1] Waiting for root device /dev/sda1...

I think l'll finish for today, and will try to move root to NAND flash - that suits my purposes better.

Thank you a lot!
gt
Re: Problems booting Debian on 88f6283
November 06, 2022 06:09PM
ps
looking at the names, i would guess USB INDicator and USB ReSet INDicator: the board has 1 led with red/green function, flashing red being "u-boot-mode" and green_on being "booted ok". Surprisingly, it works correct with kirkwood-silverstore-hncn2.dtb.
Re: Problems booting Debian on 88f6283
November 06, 2022 07:40PM
> Surprisingly, it works correct with
> kirkwood-silverstore-hncn2.dtb.

It is a coinincidence :) without looking at those, I think they are the same GPIO numbers.

-bodhi
===========================
Forum Wiki
bodhi's corner
gt
Re: Problems booting Debian on 88f6283
November 07, 2022 03:13PM
Well, I transferred rootfs to ubfs on mtd, it boots and works OK. Bodhi, thank you a lot!
If my bootenvs are of any use, I can post them here as well as nanddump of rootfs.
But in overall it was as easy as adding mtd table to bootenvs, formatting biggest device as ubi+ubifs and transferring your rootfs archive. Then writing uImage (manually patched with experimental wtplug.dtb) to other mtd and making sure that stock u-boot loads and boots of it.

Bodhi, is it ok to ask to tinker with dtb a little more? Usb devices are not powering up in linux, and led flashes red uncontrollably.
Re: Problems booting Debian on 88f6283
November 07, 2022 08:46PM
gt,

> Well, I transferred rootfs to ubfs on mtd, it
> boots and works OK.

Cool!


> Bodhi, is it ok to ask to tinker with dtb a little
> more? Usb devices are not powering up in linux,
> and led flashes red uncontrollably.

Sure. Let me modify and upload new DTB version.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Problems booting Debian on 88f6283
November 08, 2022 02:43AM
gt,

This DTB has:

- Use GPIO 45 for USB power. It seems odd that GPIO 48 did not work (u-boot use that to reset USB). But it's worth a try to see if 45 does anything.

- Status LEDs should work now with green LED and red LED. When Linux finishes booting it should become solid green.

-bodhi
===========================
Forum Wiki
bodhi's corner
Attachments:
open | download - kirkwood-promwad-wtplug.dtb (11.2 KB)
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: