05-30-2023, 02:41 PM
(This post was last modified: 05-30-2023, 03:34 PM by tantamount.)
OK I cross-compiled the kernel. I'm using a different toolchain, because arm64 Debian's riscv64 gcc is broken.
I'm using this one:
https://github.com/riscv-collab/riscv-gnu-toolchain
I encountered a build error due to a missing file vdso.so.dbg. I changed a script riscv/kernel/vdso/.vdso.so.dbg.cmd and was able to create it. This issue was probably due to my toolchain.
For copying files into Armbian, I didn't see a "dirty" image directory, so I removed that suffix. My commands were these:
sudo rsync -avzH debian/linux-image/usr/lib/linux-image-5.15.107-15659-g7943fd6427b0/ /mnt/boot/dtb
sudo rsync -avzH debian/linux-image/lib/modules/5.15.107-15659-g7943fd6427b0 /mnt/lib/modules
sudo rsync -avzH arch/riscv/boot/Image /mnt/boot/
sudo sed -i s/jh7110-star64-pine64.dtb/jh7110-pine64-star64.dtb/ /mnt/boot/extlinux/extlinux.conf
Then finally I booted it and it worked, albeit with only 4GB of RAM detected, and there were startup errors.
The Armbian welcome screen stayed visible for probably 4 minutes.
There are also almost no packages installed, but luckily Ethernet works fine, so there will be a lot of apt installing tonight.
Caveat 1:
I discovered that because I refused to enter passwords for my root and user accounts, I later couldn't log in to either account. So I'll have to redo the process.
Caveat 2:
I'm finding that if I disconnect the HDMI cable while on a virtual console i.e. not X, so that I can use the monitor with my main computer, the Star64 will have video issues e.g. blanking for a while or indefinitely. This happens whether I'm using Armbian or Fishwaldo's build.
I'm using this one:
https://github.com/riscv-collab/riscv-gnu-toolchain
I encountered a build error due to a missing file vdso.so.dbg. I changed a script riscv/kernel/vdso/.vdso.so.dbg.cmd and was able to create it. This issue was probably due to my toolchain.
For copying files into Armbian, I didn't see a "dirty" image directory, so I removed that suffix. My commands were these:
sudo rsync -avzH debian/linux-image/usr/lib/linux-image-5.15.107-15659-g7943fd6427b0/ /mnt/boot/dtb
sudo rsync -avzH debian/linux-image/lib/modules/5.15.107-15659-g7943fd6427b0 /mnt/lib/modules
sudo rsync -avzH arch/riscv/boot/Image /mnt/boot/
sudo sed -i s/jh7110-star64-pine64.dtb/jh7110-pine64-star64.dtb/ /mnt/boot/extlinux/extlinux.conf
Then finally I booted it and it worked, albeit with only 4GB of RAM detected, and there were startup errors.
The Armbian welcome screen stayed visible for probably 4 minutes.
There are also almost no packages installed, but luckily Ethernet works fine, so there will be a lot of apt installing tonight.
Caveat 1:
I discovered that because I refused to enter passwords for my root and user accounts, I later couldn't log in to either account. So I'll have to redo the process.
Caveat 2:
I'm finding that if I disconnect the HDMI cable while on a virtual console i.e. not X, so that I can use the monitor with my main computer, the Star64 will have video issues e.g. blanking for a while or indefinitely. This happens whether I'm using Armbian or Fishwaldo's build.