Hello, Folks!
I successfully got archlinuxARM on the Firefly/LibreComputer-Plattform roc-RK3328-cc working.
First, I compiled the kernel and u-boot as described in
http://en.t-firefly.com/doc/product/info/id/396.html
in a separate directory like ~/rk3328.
after this, we'll going on in current directory ~/rk3328.
Download latest armv8-64bit rootfs:
$this->bbcode_second_pass_code('', 'wget http://archlinuxarm.org/os/ArchLinuxARM-aarch64-latest.tar.gz')
For defaults in this rootfs refer: https://archlinuxarm.org/platforms/armv8/generic
Prepare your sdcard:
$this->bbcode_second_pass_code('', 'fdisk /dev/sdX')
delete all partitions: d #repeat step, if more than one partiton exists
write changse to disk: w
now, write kernel and u-boot with all required stuff to sdcard:
$this->bbcode_second_pass_code('', 'dd if=./out/idbloader.img of=/dev/sdX seek=64 conv=sync,fsync
dd if=./out/uboot.img of=/dev/sdX seek=16384 conv=sync,fsync
dd if=./out/trust.img of=/dev/sdX seek=24576 conv=sync,fsync
dd if=./out/boot.img of=/dev/sdX seek=32768 conv=sync,fsync')
insert sdcard into your board and start to boot-cmd by pressing enter during init process.
Enter in Cmd:
$this->bbcode_second_pass_code('', 'gpt write mmc 1 $partitions')
remove your sdcard and prepare the rootfs-partition.
now, your sdcard partition table should look like:
$this->bbcode_second_pass_code('', 'Device Start End Sectors Size Type
/dev/sdf1 64 8063 8000 3,9M Microsoft basic data
/dev/sdf2 8064 8191 128 64K Microsoft basic data
/dev/sdf3 8192 16383 8192 4M Microsoft basic data
/dev/sdf4 16384 24575 8192 4M Microsoft basic data
/dev/sdf5 24576 32767 8192 4M Microsoft basic data
/dev/sdf6 32768 262143 229376 112M Microsoft basic data
/dev/sdf7 262144 31116254 30854111 14,7G Microsoft basic data')
Format rootfs-partition:
$this->bbcode_second_pass_code('', 'mkfs.ext4 /dev/sdX7')
write and wrepare rootfs to partition:
$this->bbcode_second_pass_code('', 'mount /dev/sdX7 /mnt
bsdtar -xpf ArchLinuxARM-aarch64-latest.tar.gz -C /mnt && sync
rm -Rf /mnt/boot/*
umount /mnt')
Now, you have a bare and fresh Archlinux!
Have fun!