Welcome! Log In Create A New Profile

Advanced

Pogoplug V4 - Debian 10 (Buster)

Posted by dumdedumda 
Pogoplug V4 - Debian 10 (Buster)
August 27, 2021 06:11AM
Recently revived my interest in the Pogoplug V4 after coming across a Medium article in which the author documents his success in getting Debian 10 to successfully install on the V4-- even providing an prebuilt image for it via https://github.com/susamn/debian-10-buster-pogoplug-v4 .

After burning the image to a SD card, I ran a FreePBX installation script designed specifically Debian 10 (https://gist.github.com/billsimon/453d59a0e4c06fbe8ba31cc7ca5ee7c9). The script yielded a slew of errors, but ultimately boiled down to the following below. After a brief research, I've come to conclude that the Debian version for the V4 is not a generic version, but rather a modified one.

I can't seem to find any info on updating to the latest headers or remedying the issue of "linux-headers-3.18.5-kirkwood-tld-1". Is there any ongoing updates with Debian on the V4 still?

E: Unable to locate package linux-headers-3.18.5-kirkwood-tld-1
E: Couldn't find any package by glob 'linux-headers-3.18.5-kirkwood-tld-1'
E: Couldn't find any package by regex 'linux-headers-3.18.5-kirkwood-tld-1'
E: Unable to locate package odbc-mariadb
Re: Pogoplug V4 - Debian 10 (Buster)
August 27, 2021 10:16AM
dumdedumda,

> I can't seem to find any info on updating to the
> latest headers or remedying the issue of
> "linux-headers-3.18.5-kirkwood-tld-1". Is there
> any ongoing updates with Debian on the V4 still?

See the release thread:

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

The rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2 is a Debian buster rootfs with kernel 5.2.9. And the latest kernel is linux-5.13.6-kirkwood-tld-1-bodhi.tar.bz2.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Pogoplug V4 - Debian 10 (Buster)
August 27, 2021 07:19PM
bodhi Wrote:
-------------------------------------------------------
> dumdedumda,
>
> > I can't seem to find any info on updating to
> the
> > latest headers or remedying the issue of
> > "linux-headers-3.18.5-kirkwood-tld-1". Is there
> > any ongoing updates with Debian on the V4
> still?
>
> See the release thread:
>
> https://forum.doozan.com/read.php?2,12096
>
> The rootfs
> Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2
> is a Debian buster rootfs with kernel 5.2.9. And
> the latest kernel is
> linux-5.13.6-kirkwood-tld-1-bodhi.tar.bz2.

Hi Bodhi,

Just wanted to confirm the following update order to avoid any potential bricks.

1) Update U-Boot 2014.07-tld-1 --> 2017.07
2) Update kernel 3.18.5-kirkwood-tld-1 --> 5.13.6-kirkwood-tld-1
3) Update rootfs (not sure which version I ahve currently) to Debian-5.2.9-kirkwood-tld-1

And finally, is kwboot tool by Daniel Stodden still the best approach to unbricking a Pogoplug v4? https://forum.doozan.com/read.php?3,7852,7852

Thank you



Edited 1 time(s). Last edit at 08/27/2021 07:20PM by dumdedumda.
Re: Pogoplug V4 - Debian 10 (Buster)
August 27, 2021 07:37PM
dumdedumda,

> 1) Update U-Boot 2014.07-tld-1 --> 2017.07

To be precise, the new u-boot is uboot.2017.07-tld-1. And yes, since you are running Debian and the 2014.07-tld-1 u-boot, it is safe to update to uboot.2017.07-tld-1.

> 2) Update kernel 3.18.5-kirkwood-tld-1 -->
> 5.13.6-kirkwood-tld-1
> 3) Update rootfs (not sure which version I ahve
> currently) to Debian-5.2.9-kirkwood-tld-1


There 2 choices here;

1. Start with a brand new rootfs, which is Debian-5.2.9-kirkwood-tld-1 (which has kernel 5.2.9-kirkwood-tld-1 in it). And then in the future, when you are comfortable that everything is working fine, upgrade the kernel to 5.13.6-kirkwood-tld-1.

OR

2. Update the kernel to 5.13.6-kirkwood-tld-1, and then use the Debian dist upgrade to upgrade the existing rootfs to buster. This will be a massive upgrade process, so you should backup the rootfs first.

If there is not a lot of packages already installed on your existing rootfs, or you want to start fresh, then I would do option 1.

But if you already used the existing rootfs for a while, and want to avoid reinstall packages, then you would do option 2.


> And finally, is kwboot tool by Daniel Stodden
> still the best approach to unbricking a Pogoplug
> v4? https://forum.doozan.com/read.php?3,7852,7852

Yes. That post is the original. You can also skip all that and use this instruction for a real example unbricking the NSA320S (we already knew Pogo V4 has UART booting):

https://forum.doozan.com/read.php?3,51739,51919#msg-51919

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Pogoplug V4 - Debian 10 (Buster)
August 28, 2021 08:21PM
Hi Bodhi,

I successfully updated my V4's UBoot & Kernel to 2017.07-tld-1 & Debian-5.2.9-kirkwood-tld-1. So, thank you.

After logging in this rootf the first time, remember to generate new SSH key to make it your own unique rootfs. And also update your rootfs to get the latest Debian package security updates:

I have a second Pogoplug V4 that I'd like to update its uboot & kernel to the latest as well. Would I be able to simply export the system .img file of the V4 that I updated just now, use Win32diskimger to write it to a SD card, and boot from the second V4? (Assuming I haven't generated the SSH keys for the the current v4).
Re: Pogoplug V4 - Debian 10 (Buster)
August 28, 2021 08:52PM
dumdedumda,

> I successfully updated my V4's UBoot & Kernel to
> 2017.07-tld-1 & Debian-5.2.9-kirkwood-tld-1. So,
> thank you.

Cool!

> I have a second Pogoplug V4 that I'd like to
> update its uboot & kernel to the latest as well.

> Would I be able to simply export the system .img
> file of the V4 that I updated just now, use
> Win32diskimger to write it to a SD card, and boot
> from the second V4? (Assuming I haven't generated
> the SSH keys for the the current v4).

That should work, assuming Win32diskimger know the msdos parttition contains Ext3 partition. Or you can use this instruction in the Wiki

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

Backup and Cloning rootfs
...
How to clone a rootfs from one Kirkwood box to another: Step 1 and Step 2
...

If you use Win32diskimger, you still needs to do Step 2, to make sure there is no conflict MAC addresses in the system.

The SSH key won't prevent booting or connecting. Just a step to make this rootfs unique that nobody else has the same key. In the future (Debian bullseye) I will make this step automatically done at the 1st boot.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Pogoplug V4 - Debian 10 (Buster)
September 21, 2021 09:16PM
Am I right in the observation that once you have modded the Pogo v4, and your USB stick goes bad, there is *NO* way to build a new one? ALL the directions I've seen for building a boot USB expect you to SSH into the device itself. But if I don't already have a working OS on it, I can't very well run anything from within the device.

And I don't have the setup to add a JTAG to it. Using the image at the top of this thread it seems to be booting (the status light stops flashing and goes steady green) but no ethernet OR wifi connection gets made (I check my network with nmap to see if an IP got assigned).

About time for this Pogo to meet Mr. Sledgehammer.
Re: Pogoplug V4 - Debian 10 (Buster)
September 21, 2021 09:52PM
jelabarre59,

> Am I right in the observation that once you have
> modded the Pogo v4, and your USB stick goes bad,
> there is *NO* way to build a new one?

Incorrect.

> ALL the
> directions I've seen for building a boot USB
> expect you to SSH into the device itself. But if
> I don't already have a working OS on it, I can't
> very well run anything from within the device.

As long as you have serial console, you can fix it.

> And I don't have the setup to add a JTAG to it.

JTAG is a lot more works than serial console. The Pogo V4 has the serial header already installed (the Pogo Mobile does not, Mobile is the V4 without SATA port).

> Using the image at the top of this thread it seems
> to be booting (the status light stops flashing and
> goes steady green) but no ethernet OR wifi
> connection gets made (I check my network with nmap
> to see if an IP got assigned).

Serial console is needed to troubleshoot in this case. If you had install new u-boot on this box, then you could have used netconsole, too.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Pogoplug V4 - Debian 10 (Buster)
September 27, 2021 12:08PM
bodhi Wrote:
-------------------------------------------------------
> JTAG is a lot more works than serial console. The
> Pogo V4 has the serial header already installed
> (the Pogo Mobile does not, Mobile is the V4
> without SATA port).
>

Not on this one. At J11 there are just the 4 solder points, but no pins or connector. It's definitely the regular v4, as it has the SATA connector, plus the one USB2 on top, 2 USB3 and Ethernet on the back, and the SD/MMC slot on the side (I used to have a Pogo Mobile as well, that died 3 or 4 years back).

I had tried setting up serial connections before (trying to flash OpenWRT onto a Netgear R6700, but eventually an image that could be flashed via WebUI came out). I still have serial ports on a couple of my systems, so I had tried connecting over various combinations of actual serial under Linux & MSWin, plus a couple different USB-to-TTL-UART adapters. Perhaps the USB adapters were just outright crap (I'd try something from a reliable supplier like Digikey or Mouser if I were to try this again).

And wouldn't you know it, with all that dead electronics I've been scrapping, I can't find a single board with jumper pins or a similarly-sized 4-pin connector.
Re: Pogoplug V4 - Debian 10 (Buster)
September 27, 2021 02:06PM
Now that I'm looking at some old setup files, it was my RaspberryPi 2b that I switched to Debian, the Pogo v4 still had Arch Linux. So finding an Arch image for Kirkwood and putting that on a USB made it boot.

Which means I have a running system on the Pogo now, and I can do the move to Debian I thought I had done before.
Re: Pogoplug V4 - Debian 10 (Buster)
September 27, 2021 03:40PM
> Now that I'm looking at some old setup files, it
> was my RaspberryPi 2b that I switched to Debian,
> the Pogo v4 still had Arch Linux. So finding an
> Arch image for Kirkwood and putting that on a USB
> made it boot.
>
> Which means I have a running system on the Pogo
> now, and I can do the move to Debian I thought I
> had done before.

Nice!

Is it running stock u-boot for Arch new u-boot? it is still best that you can run serial console before flashing new u-boot.

-bodhi
===========================
Forum Wiki
bodhi's corner
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: