On Wed, Feb 5, 2025 at 10:39 AM jdowd via lists.yoctoproject.org
<jdowd=slashdevslashnull....@lists.yoctoproject.org> wrote:
>
> I have a recently purchased Raspberry Pi Zero 2 W (Jan. 2025) which does work 
> with the raspberry Pi environment. I want to use Yocto going forward as I 
> develop my application. For now, I would just like to see this board boot 
> using my own built image. I've cloned the latest Yocto repo along with the 
> "meta-raspberrypi".
>
> I've done these modifications:
>
> In local.conf
>
> MACHINE ??= "raspberrypi0-wifi"
> ...
> INHERIT += "rm_work"
> DL_DIR ?= "/home/users/yocto_shared/downloads"
> SSTATE_DIR ?= "/home/users/yocto_shared/sstate-cache"
> # for CPU count and how many parallel threads will be used
> BB_NUMBER_THREADS = "6"
> MACHINE_FEATURES = " bluetooth wifi usbhost"
> PREFERRED_PROVIDER_virtual/kernel = "linux-raspberrypi"
> IMAGE_INSTALL:append = " linux-firmware-bcm43430 wpa-supplicant dhcpcd"
> ENABLE_UART = "1"
> SERIAL_CONSOLE = "tty1"

maybe this is not needed.

> DISABLE_RPI_BOOT_LOGO = "1"
> DISABLE_OVERSCAN = "1"
> DISABLE_SPLASH = "1"
> BOOT_DELAY = "0"
> GPU_MEM = "16"
> PACKAGE_CLASSES = "package_ipk"
> DISTRO_FEATURES:append = " wifi "
> IMAGE_FSTYPES = "tar.bz2 ext4 rpi-sdimg"
> SDIMG_ROOTFS_TYPE = "ext4"
>
>
> In bblayers.conf I've added the layer meta-raspberrypi
>
> My next step is to build using the command "bitbake core-image-minimal". This 
> gives me my first question, am I building the correct target? It does build 
> and I get my rpi-sdimg file and when it is placed on the SD card (using "dd") 
> I can see my image files all laid out as I would expect.
>
> I had to edit the config.txt file that is part of the boot sequence. I've 
> attached the one I'm using. Essentially the changes I did from the one that 
> Yocto generated was to enable the serial output (I also modified bootcode.bin 
> as you can see in the output) do aid in debugging. I also made sure that 
> bootcode.bin knew I was loading a 32-bit kernel.
>
> When I boot, I get the desiired output up until the handoff from bootcode.bin 
> to the kernel. The output goes silent at that point. I presume that the 
> system is dead. The LED on the raspberrypi Zero 2 W board stays solid.
>
> I've attached my output from the console (raspi0-boot.txt).
>
> I've tried to replace the kernel from the raspberry Pi environment with my 
> yocto built one but I get the same output. I've also done some changes so 
> that I was able to see if I could get a 32-bit u-boot to load, I get the same 
> issues.
>
> I'm looking for some advice as to how to proceed. Have I run into a "wrong 
> image format" issue? Is there some kind of arcane format that the raspberry 
> Pi's bootcode.bin requires? Or, am I running into a device tree issue? As far 
> as I can tell, the console output from the staged boot loader from Pi is the 
> last line expected before the kernel starts to output it's start up sequence. 
> So I presume that the image is unable to be executed.

you can try building a wic image instead of rpi-sdimage

IMAGE_FSTYPES:append = " wic.bmap wic.bz2"

then you can dd the generated wic image.

>
> Thanks in advance for any advice.
>
> Cheers!!
>
>
>
> 
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#64720): https://lists.yoctoproject.org/g/yocto/message/64720
Mute This Topic: https://lists.yoctoproject.org/mt/111018045/21656
Mute #raspberrypi:https://lists.yoctoproject.org/g/yocto/mutehashtag/raspberrypi
Mute 
#raspberrypi0-wifi:https://lists.yoctoproject.org/g/yocto/mutehashtag/raspberrypi0-wifi
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to