Hi there
I have a couple of Kirkwood QNAPs (HS-210) currently running Debian 10 / Buster.
However, the next version of Debian won't be supporting this hardware anymore, as per the announcement here:
https://www.cyrius.com/debian/kirkwood/qnap/ts-219/
Seeing I've long wanted to move to Arch anyway, this now gives me the proper incentive to do so.
Currently, my MTD partitions are set up like this:
mtdblock0 / uboot / 524288 bytes
mtdblock4 / uboot conf / 262144 bytes
mtdblock5 / ext2 unused* / 1310720 bytes
mtdblock1 / debian kernel / 2097152 bytes
mtdblock2 / debian initrd / 9437184 bytes
mtdblock3 / ext2 unused* / 3145728 bytes
*The unused partitions are QNAP legacy from the original firmware...
However, the ArchLinuxARM-2021.07-kirkwood-rootfs.tar.gz image sizes are as follows:
initramfs-linux.img / 7071796 bytes
uImage / 4661632 bytes
Meaning the Arch images are much bigger then what the current partitioning scheme allows.
Which probably means I need to resize the MTD partitions, and this is where I need some help / advice, having never done that.
Also, the uboot provided by QNAP seems to be limited to booting kernels from flash only.
Which also probably means I should consider updating uboot?
And if that's the case, I could probably start with a fresh new partition layout, since I need none of what's there now I suppose?
What would be the best path forward?
What are the correct steps to install moonman's uboot v2016.09 on such a device?
And how does one goes about defining a new MTD partition layout in such a scenario?
I don't have access to a serial cable, and plan to do most of the work from within the working Debian install.
I have taken backups of the current firmware, and should be able to restore them if anything goes wrong.
Any help or insights would be greatly appreciated.
Thank you very much in advance...
PS: Current uboot conf details:
baudrate=115200
loads_echo=0
ipaddr=192.168.0.50
serverip=192.168.0.1
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
run_diag=yes
console=console=ttyS0,115200
CASset=min
MALLOC_len=1
ethprime=egiga0
bootargs=console=ttyS0,115200 root=/dev/ram initrd=0xa00000,0x900000 ramdisk=34816
bootcmd=uart1 0x68;cp.l 0xf8200000 0x800000 0x80000;cp.l 0xf8400000 0xa00000 0x240000;bootm 0x800000
ethaddr=00:01:02:03:04:05
ethmtu=1500
usb0Mode=host
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
ethact=egiga0
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=no
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
bootdelay=1
disaMvPnp=no
enaAutoRecovery=yes
pcieTune=no