robgura / beagleplay

MIT License
1 stars 0 forks source link

Building rootfs for beagleplay using kirkstone/poky #1

Open lars71dkk opened 11 months ago

lars71dkk commented 11 months ago

Hi, sorry to trouble you, but I am trying to do a yocto/poky build for beagleplay and came across your repo. Looks like you do the same. The image I can build boots up, but the serial and networking interfaces does not come up. Are you able to get it to work?

I notice the TARGET_SYS is set to arm-poky-eabi, where as I think it should be arm-poky-linux-gnueabi? What are you using in your build? Thanks

robgura commented 11 months ago

I'm not really sure what the difference between those two TARGET_SYS variables are so I can't answer that question specifically. You can see exactly what I use in this repo. I do not set TARGET_SYS anywhere, so whatever is default.

I do know that using output from this build I was able to access the system via the serial connections.

My issue is I have nothing output to the framebuffer/hdmi interface.

I haven't had a chance to really dig into this, but someone on the BeaglePlay discord posted this (10/18/2023):

  • to get frame buffer output it requires cadence firmware to load before rootfs is mounted. I enabled this with an initramfs which packages the cadence firmware.
  • next is graphics driver and deps. *If you use linuxbb as the kernel it will be painful as that has not been maintained, and lags behind the graphics driver bits.
  • reference a TI Arago image of the same part to determine a working combo, as Arago images work on reference boards with the same layer, only they don't use linuxbb for kernel.

I had no responses from the meta-ti mailing list for some reason. The issue is that the beaglebone boards are not part of any official TI CI, is what I hear. So no one is maintaining them for Yocto. There have been discussions about this changing.

I will update this repo as I figure things out. You (or anyone) is welcome to send a PR to help close the gap between bare bare bone image and the start of something useful (i.e. hdmi console output, network connectivity, etc)

lars71dkk commented 11 months ago

Thanks Rob, I'd love to contribute if possible. But need to have a bare image up running. This is what i build (kirkstone): beagleplay-poky-linux/core-image-minimal, but there is no console. I'd be interested to know the config of your build.

lars71dkk commented 11 months ago

I got the image to build and boot up. I had to modify the device tree in order to free the uart5 from the mikrobus. Also, I had to add an extlinux.conf file in my SD card boot partition in order to have my kernel, dtb, rootfs correctly loaded. For some reason u-boot kept loading the dtb from the eMMC. Cleaning that up, I now also have the eth0 working.