New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debian Buster installer on modified mtd partitions #20
Comments
Hello Luca, |
To reinstall Debian from scratch, in case I need it. Doesn't it make sense? |
but how do you use the For example, what you need to install the debian installer from a already installed debian firmware is:
You don't need to care about padding. Be very careful to not write or erase /dev/mtd0. Your QNAP will not boot |
Ok, I got it, at last. Many thanks @amouiche for explaining.
This obviously makes it impossible to create an image based on modified mtd partitions which can be restored using QNAP recovery mode. |
Hi Arnaud,
I've successfully updated a TS-219p and a TS-221 using your script, so thanks again!
Now, how can I build a Debian buster installer image for the new partition table?
I tried different methods, but with no success.
Method 1:
truncate -s 3145728 kernel-6281
truncate -s 12582912 initrd
cat /dev/mtd0 /dev/mtd4 /dev/mtd5 kernel-6281 initrd > debian_buster_installer
Method 2:
truncate -s 2097152 kernel-6281
truncate -s 12582912 initrd
cp kernel-6281 /dev/mtd3
cp initrd /dev/mtd2
cat /dev/mtd0 /dev/mtd4 /dev/mtd5 /dev/mtd1 /dev/mtd2 > debian_buster_installer
Obviously I'm doing something wrong, as they both fail the CRC check (Bad magic number) while trying to boot.
Any ideas?
Thanks, Luca
The text was updated successfully, but these errors were encountered: