polarfire-soc / polarfire-soc-discovery-kit-reference-design

PolarFire SoC Discovery Kit Product Page
https://www.microchip.com/en-us/development-tool/mpfs-disco-kit
Other
5 stars 3 forks source link

Attempting to select SDCARD is failing with latest release #5

Open ombhilare999 opened 2 months ago

ombhilare999 commented 2 months ago

Hello,

When I am using the reference design from the latest release 2024.06 and the linux image from 2024.04, I am not able to load the linux on to the board.

Any help would be really appreciated. Please use following steps to reproduce, also kindly let me know if I am doing anything wrong.

  1. Get the reference design from the latest release [2024.06]

    wget https://github.com/polarfire-soc/polarfire-soc-discovery-kit-reference-design/releases/download/v2024.06/MPFS_DISCOVERY.zip
    unzip MPFS_DISCOVERY.zip
    FPExpress
    #Load the job in FPExpress and program the board
  2. HSS version upon programming the latest release job: image

  3. Preparing SDCARD with the linux image: A quick question here, does 2024.06 release was supposed to come with its own compatible linux version?

    #Download the linux image from 2024.04 release as 2024.06 does not contain linux image in it.
    wget https://github.com/polarfire-soc/polarfire-soc-discovery-kit-reference-design/releases/download/2024.04/MPFS_DISCOVERY_LINUX_IMAGE.zip
    unzip MPFS_DISCOVERY_LINUX_IMAGE.zip
    gunzip core-image-minimal-dev-mpfs-disco-kit-20240426091646.rootfs.wic.gz  #extract wic.gz to wic
    bmaptool copy core-image-minimal-dev-mpfs-disco-kit-20240426091646.rootfs.wic /dev/sda1
    sudo bmaptool copy core-image-minimal-dev-mpfs-disco-kit-20240426091646.rootfs.wic /dev/sda1
    sudo fdisk /dev/sda1 #Followed steps from: https://github.com/polarfire-soc/meta-polarfire-soc-yocto-bsp?tab=readme-ov-file#copy-the-created-disk-image-to-flash-device-usb-mmc-flashsdusd
  4. Result: image

ombhilare999 commented 2 months ago

Hi,

I have tried the older HSS version (v2024.02.1) as well with the board. It still doesn't seem to work in my case.

  1. HSS v2024.02.1 version obtained from the HSS repo image HSS boot log from the board: image

  2. Linux Image from the same release (v2024.02.1) of the yocto repo release: image

  3. Used usbimager to flash as it was shown in some of the tutorials: image

  4. I have also confirmed that the board jumpers are correctly configured.

But still the SDCARD selection fails: image

[4.54457] Attempting to select SDCARD ... Failed
[12.592443] Boot Image NULL, ignoring
[12.597695] validation failed for Hart bitmask 1e

How can I debug this error in depth? I tried searching about "Hart bitmask 1e" error on microchip forums but could not found anything releated.

Thank you.

hughbreslin commented 2 months ago

Hi @ombhilare999 there is an asset available in the 2024.06 Yocto release. I updated the RN to link to it. Have you tried this? Could you also let me know what SD card you're using and if this was working before and is now no longer working?

ombhilare999 commented 2 months ago

Hello @hughbreslin , Thank you for the follow-up. I'll try this release as well; could you perhaps tell me which HSS version I should test it with?

Also, I'm using a typical 16 GB Micro SD HC card, which works, but I'll try it with another SDCARD as well.