It builds an image from scratch for running Arch Linux, Ubuntu or Debian on the R64. Thanks to Frank-W for his work, which helped a lot!
There are also pre-build images ready for download, see assets in the release. You can use these images as try-out. If you like it, then you can use the script later.
Note: With the emmc version, wan only works with bootswitch set to boot from emmc first! (see closed issues)
Mtk-openwrt atf, mt7622-bpir64 branch, quite similar to yours I believe.
Mainline uboot 2021-01
Ubuntu’s mainline, with a defconfig from your 5.12-main branch, which ended up with quite a few changes after performing a savedefconfig on it again… Anyway, had to start somewhere…
I’ve tried that branch of atf earlier, but it hangs at reboot. Switching on debug messages helpes a lot, then it hangs ever 10th reboot or so… For now I dropped using that version untils reboots are stable.
root@bpi-r64:~# reboot
Connection to 192.168.1.33 closed by remote host.
Connection to 192.168.1.33 closed.
nathalieeneric@BLUE:~$ ping 192.168.1.33
PING 192.168.1.33 (192.168.1.33) 56(84) bytes of data.
64 bytes from 192.168.1.33: icmp_seq=1 ttl=64 time=6.64 ms
64 bytes from 192.168.1.33: icmp_seq=13 ttl=64 time=23.1 ms
And the BPI R64 is running again, ready to login again on ssh
The main goal was to use as much as possible mainline repositories, but to have it configurable for other choices All patches are in the corresponding folders in the buildiR64image repo. This way everything that is deviating from mainline/default is to be found in 1 repo in readable source code or patches.
I can easily adapt the script so that the origiin of the kernel source is configurable. It already is, but never checked with Debian kernel or torvalds kernel, only ubuntu kernel different versions
I believe the difference for ubuntu or Debian is also not so big concerning debootstrap so this is also possible.
About the R2 I think this would be such a change to quite a lot of aspects of the script, I believe it would be better to write a R2 version of the script separately. It will help keep the script more simple and clear.
Thanks,i dont’t know if bpi-r2 boot chain works with gpt,imho uboot needs to be at fixed offset loaded by preloader. at least my r2 uboot is not prepared for gpt.
Script now can build debian. Only tested building, have not run the image yet…
Script can also build from any kernel .git. It defaults now to torvalds kernel. Also have not run this yet, but it should be fine.
Only some issue left with locale on debian, should not be a big issue.
Just used hexdump on the images and some find/replace. The first part of the images are all zeros, so these are not included. Script runs dd /dev/zero first on the whole first block.