I did some more research and found the post from Mijzelf about simply exchanging the existing rootfs with a clean debian one.. What then is the advantage of using your method and create an ext2 partition to put the kernel and initramfs? You mentioned uboot can boot from ext2 partition.. what's your directory structure for the kernel? Just normal /boot/vmlinuz ? Did you actually include the initramfs on that partition as well?
My way is similar, I first change uboot config and allow to boot the box from USB device. This allows me to modify configuration on main disk. Then I've unpacking preconfigured debian (version and extracted original linux image from hidden space in original config) and extract it for small (20 GB) ext2 partition, then I configure uboot again to allow the box for boot from main disk again.
Yes, I boot it from /boot/vmlinuz. No no initramfs here, I believe (I'll check that) that this kernel has everything we need.
Advantage? Simplicity the config on huge disks (3TB) and better performance.
I still didn't figured it out how to compile kernel on this box though.
Can u please upload somewhere that SDK u used? My is completely different.
Update, okay. I did it.
I did small benchmark:
Sequential task speeds:
iscsi: 330 mbps (write), 475 mbps (read)
nfs: 390 mbps (write), 420 mbps (read)
smb: 335 mbps (write), 390 mbps (read)
I'll do a update later.