-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Polarfire Discovery board booting issue with SD card #75
Comments
Hi @Embedded-linux , Thanks for reporting your issue. I'm not sure if I fully understand what you did -- but if you have manually created partitions etc., then this is a mistake. The WIC image must be written directly to the SDCard in a raw sector-by-sector fashion. This will ensure the correct partition table is created. You may find the instructions at https://mi-v-ecosystem.github.io/redirects/boards-mpfs-generic-updating-mpfs-kit useful for doing this. If you have followed these instructions and still have issues, please let us know exactly what steps you followed. |
Hi @griffini I am getting Issue while copying .bmap file to SD card. bmap file is used to copy "img.xz" file to SD card "/mount/media/satish/root" In the above command .bmap is used as support file to copy the .img.xz file to SD card. so which image needs to copy to SD card ? Please support me to understand the bmap usage, If I am wrong Have followed steps: Created 2 partitions: boot & root from SD card while booting the board , it is not failing with the above error showed as screen sht Thanks & Regards |
The bmap file is to perform a (sparse) copy of disk images to the SD Card. In the case of the the MPFS Yocto references, these are gzip-compressed Yocto WIC files. In addition to the You should then do something like
where you have satisfied yourself that the device Hope this helps! |
Adding screen shot of Issue , am getting with MMC card when I copied the Image with bmaptool Thanks & Regards |
Hi @Embedded-linux , I can't seem to see your screenshot? WHere did you post it? Can you describe what the problem you are seeing is? I suspect |
Hi @griffini ok, let me add my booting steps in sequence to avoid confusion
satish@IdeaPad:~/Microchip/Linux-image$ lsblk -o name,label,size,fstype,fsver /dev/sda Question: why it is creating 3 partitions, as 2 partitions are good enough as boot & root partitions ?
Thanks & Regards |
Hi @griffini While copying the xxx.wic image to SD card using bmap tool By default, boot image will work with FAT file system, in this case it is showing " Microsoft Basic data " first stage boot loader is not able to identify external boot media, in this case it is MMC card In my case, after copying the Images into SD card through bmap tool suggest me to find out, file types of the Partitions Hope that will resolve the issue Thanks & Regards |
Hi @Embedded-linux, Three partitions are correct. One for root filesystem, one for /boot, and a BIOS boot partition containing the bootable payload next stage that the HSS looks for (in this case, U-Boot). If you have copied the partitions using bmap correctly to the raw device (as your command line above suggests), you should not need to concern yourself with the partition types. They will be correctly created by the bmap copy step. Can you tell me what SD card you are using (manufacturer, and card model)? |
Hi @griffini , thank you for the response Thanks & regards |
Hi @griffini , Now kernel & rootfs are coming successfully Next step: Port Zephyr RTOS on Polar fire. Thank you for continuous support Thanks & Regards |
Fantastic to hear it is working for you now, thanks for letting me know! For Zephyr, you may find https://github.com/polarfire-soc/zephyr and https://github.com/polarfire-soc/polarfire-soc-zephyr-applications useful. |
Hi @griffini , I have gone through the above Zephyr related URLs, Requirement : Need to Port Zephyr OS , instead of Linux & will compile the custom python libraries on top of Zephyr. It will be great help & thanks in advance Thanks & Regards |
Provide a minimal code snippet example that reproduces the bug where appropriate.
I am using, pre-built images of microchip
Provide screenshots where appropriate
Will add the SD card issue with the board.
Does this occur all of the time or is it intermittent?
It occurs all the time
Have you tried on another board?
No, I have one board with me.
This is Satish, I recently purchased board MPFS Discovery kit
Have programmed Linux on eNVM using reference file
https://github.com/polarfire-soc/polarfire-soc-discovery-kit-reference-design/releases/tag/2024.04
have copied boot images on SD card as below
(pre built images) created 2 partitions
1 st part: boot.scr fitImage uboot.env
2nd part: core-image-minimal-xxx. wic
part 1: W95 FAT system (0b)
part 2: Linux (83)
created file system of type:
mkfs.vfat /dev/sda1 -n boot
mkfs.ext4 /dev/sda2 -L root
but SD card is not identified by the board.
Have tried multiple options in file systems,still it is keep failing.
I am using pre built images provided by Microchip
where it is going wrong?
can you please suggest & provide the reference pages for Linux booting on Discovery kit.
I have tried earlier, SD card, boot is successful with kernel & failed with kernel panic, so did the format of SD card & created new partitions, it is unable to identify the SD card
Observations: Successful case: created 2 partitions
copied 3 files in boot folder: boot.scr fitImage uboot.env
second partition is empty: no file system
so it is failing because there is no file system
Failure case : 1 st partition : Copied 3 images to boot folder of type FAT
2 nd partition : copied core-image-minimal-xxx.wic of type Linux
it is keep failing, let me add the successful case, screen shots
Thanks in advance
Regards
Satish G
The text was updated successfully, but these errors were encountered: