@xeno74
You can also download the img and copy with 'dd' from a booted Fienix USB stick to an HDD/SSD.
You mean boot from one single flash, then download the file from the network to what place ?:) I mean, I attach HDD, which had no partitions, etc.
Or you mean that I should partition it before to some partitions to which download file?
I also read your instructions, and not very well understand the part about copy "the initial ramdisk (uInitrd-5.5) to the first partition of your hard disk (FIENIX-BOOT)": after "dd" the big .img file, it creates for me 2 partitions on my /dev/sda : /dev/sda1 as FIENIX-BOOT1, and /dev/sda2 as /media/root/FIENIX-DISK. Checking the "FIENIX-BOOT1" i can see there already placed uInitrd file. Should I just copy there uInitrd-5.5 from your site like it, without renaming it? Or I should replace the original uInitrd?
Basically all what i do to boot from HDD, it's just "dd" command as you wrote, and then copy nothing, just reboot, and then:
setenv bootargs root=LABEL=FIENIX-DISK rootdelay=5
fatload sata 0:1 1000000 uImage-5.7
fatload sata 0:1 1c00000 cyrus-p5020.dtb
fatload sata 0:1 2000000 uInitrd
bootm 1000000 2000000 1c00000
I.e. the same as if I boot from USB, just replaced usb 0:1 on sata 0:1.
But now have some problem:
When I tried to run "resized2fs /dev/sda2" to resize the partition (as it by default 4.8G, and 3.8 of which already busy), I have in the output:
"The filesystem is already 128000 (4k) blocks long. Nothing to do!"
At the moment tried also that way:
fdisk /dev/sda2
"p" to see partitions,
"d" to delete partition 2 (yes, delete!),
then "n" to create partition 2 again, with the same first block as the old partition 2, and the new last block (so as to have a bigger size)
"p" again to check the partition table
and if all ok "w" to write.
Then reboot, but damn, it still 4.8 GB and not as I save
Also, is quite annoying all the time to write all those 5 long commands to boot Linux: is it possible to save them in uboot in some kind of script, which I can then run by one command like "run linux" or something?