Closed tmorin closed 4 years ago
I would like to know if you (or someone else) tried your layer with a PINE64 LTS board?
I have not tried it, I only have a sopine board so that's all I use.
As far I understood the image for SOPINE should work with PINE64 LTS
I'm not sure if that is correct. They both have their own u-boot config and kernel DTS. Although I haven't compared the differences between them I suspect there are some small differences between the board. Maybe they both boot but the more advanced features might require specific DTS changes.
Doesn't work means: despite an IP is provided by the DHCP once the board is powered on, the ssh port is closed.
Great! So networking seems to work for you
I expect the ssh port opened because of
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
inlocal.conf
.
You might also need to install an SSH server? Do you have one running on your board?
I have this line in my local.conf (you can also use dropbear instead of openssh if you prefer)
CORE_IMAGE_EXTRA_INSTALL += "openssh openssh-misc"
FYI I'm a newbee about OpenEmbedded/Yocto/bitbake and so one. You will find below the steps I made to build an image. I followed Yocto Project Quick Build.
If your image boots and you get a network connection then you have done pretty well :)
I am working on adding a pine-a64-lts
machine for you. I'm just running the final test then I will push it. Feel free to use that instead as it will use the correct u-boot config and kernel DTS for you. I can't test it on the board so let me know if there are any issues.
I just pushed the new machine
Hi @alistair23
Thanks, I in fact started the same on my side ;)
I integrated both in a fork: https://github.com/tmorin/meta-pine64/tree/integrate_pine64-lts
FYI the network connection is about (I guess) the PXE feature of u-boot I guess. For me u-boot is not able to load the kernel and fallback with PXE (c.f. https://github.com/apritzel/pine64, If you let the U-Boot prompt time out, it will start looking for kernels on the SD card, any USB mass storage device (pen drive, hard disk), also trying PXE network boot.).
Once the build is done I will check it hopping it will OK!
Best regards
Cool your work looks good. Please send a pull request when you are done, then I will happily merge it in with my tree.
Hello,
I made a PR for the sd-card support: #3
For the support of eMMC it is a bit more complicated.
Armbian uses a UUID to identify the rootfs partition. But it requires, from yocto, to be able to get the UUID of the partition in the wic and then to be able to patch the boot partition with the value of the UUID. c.f. get the UUID of the rootfs partition, patch the boot partition with the value of the UUID
Another build for pine64 play with u-boot commands -> https://github.com/ayufan-pine64/boot-tools/blob/with-drm/blobs/boot.cmd
I will try the second way.
Best regards
Armbian uses a UUID to identify the rootfs partition. But it requires, from yocto, to be able to get the UUID of the partition in the wic and then to be able to patch the boot partition with the value of the UUID. c.f. get the UUID of the rootfs partition, patch the boot partition with the value of the UUID
That shouldn't be too hard, you can just hardcode the UUID in the wic file, see meta-riscv for an example of that. Then you can just use the hardcoded value.
Closing this issue as I think the Pine LTS is supported. Please re-open or create a new issue if you still see any issues.
Hi,
First of all thank for your contribution!!
I would like to know if you (or someone else) tried your layer with a PINE64 LTS board? As far I understood the image for SOPINE should work with PINE64 LTS. I know it is the case for armbian as well as the build 0.7.19 from ayufan-pine64. Both are working with older kernel. However it might this layer "doesn't work" with PINE64 LTS.
Doesn't work means: despite an IP is provided by the DHCP once the board is powered on, the ssh port is closed. I expect the ssh port opened because of
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
inlocal.conf
.FYI I'm a newbee about OpenEmbedded/Yocto/bitbake and so one. You will find below the steps I made to build an image. I followed Yocto Project Quick Build.
Do you think I missed something?
Best regards