Welcome! Log In Create A New Profile

Advanced

Debian on Lacie 5big2

Posted by Sphinix 
Sphinix
Debian on Lacie 5big2
August 09, 2023 10:09AM
Is they a step by Step guide on installing debian on the lacie 5big2
Re: Debian on Lacie 5big2
August 09, 2023 12:15PM
Lacie 5Big2 is one of the Kirkwood boxes. But I don't have new u-boot for this box. So you need to connect serial console to install.

See the Wiki thread (https://forum.doozan.com/read.php?2,23630)

Quote

Boot Kirkwood rootfs with stock u-boot (https://forum.doozan.com/read.php?2,102054,105374#msg-105374)


During the USB rootfs creation (using Debian-5.13.6-kirkwood-tld-1-rootfs-bodhi.tar.bz2), you'll need to use this DTB file: kirkwood-net5big.dtb

Quote

4. (Stock u-boot only) Create uImage with embedded DTB for booting with older u-boots (2012 or earlier). Skip this step if you have installed the latest U-Boot for Kirkwood (or are installing this u-boot at the same time, or running kwboot with latest u-boot image).

Please replace kirkwood-goflexnet.dtb below with the correct DTB name for your box (see the folder /media/sdb1/boot/dts for the exact spelling of your Kirkwood box name).

Generate the uImage with DTB embedded inside:
cd /media/sdb1/boot
cp -a zImage-5.13.6-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-net5big.dtb >> zImage.fdt
mv uImage uImage.orig
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.13.6-kirkwood-tld-1 -d zImage.fdt uImage
sync

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Lacie 5big2
August 09, 2023 12:44PM
I think it's a bit more complicated than that. My old 2Big2 didn't have a writable u-boot config, and the stock environment reads a uImage from the raw partition sda6, and then boots it with the kernel commandline root=/dev/sda7.
A default Debian boot with initramfs is not possible without exchanging u-boot, AFAIK. However, you can simply write your rootfs to /dev/sda7 and write the uImage in /dev/sda6, and it works.
As far as I know the 5big2 has the same problem.
Re: Debian on Lacie 5big2
August 09, 2023 01:29PM
Mijzelf,

> I think it's a bit more complicated than that. My
> old 2Big2 didn't have a writable u-boot config,

Can you do setenv at u-boot console like described in this post?

Quote

Boot Kirkwood rootfs with stock u-boot (https://forum.doozan.com/read.php?2,102054,105374#msg-105374)

If you can, and the USB commands are supported by stock u-boot, then you will be able to boot Debian rootfs on USB.

Of course, saving envs is another matter. If this stock u-boot does not provide saveenv command then the new envs will not be persistent. In this case, serial console is needed to boot Debian on USB rootfs.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Lacie 5big2
August 10, 2023 02:25AM
I'm afraid my 2Big2 died a few years ago. Bad capacitor, I thought, but exchanging it didn't solve the problem. So either my diagnostic or my soldering capacities are bad.

However, according to strings the u-boot of the D2 Network2 supports the usb subsystem. And while I was searching for a u-boot dump for the 2Big2 or 5Big2 I found this: https://plugout.net/viewtopic.php?f=26&t=2359, maybe a way to use saveenv on the Lacie u-boot.
Re: Debian on Lacie 5big2
August 10, 2023 03:41AM
Also, the 2Big2 u-boot is in mainline (with USB and SATA supports).

https://github.com/u-boot/u-boot/tree/master/board/LaCie/net2big_v2

The 2Big2 u-boot should boot the 5Big2 with USB or SATA rootfs (at least one SATA port should work).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
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: