cancel
Showing results for 
Search instead for 
Did you mean: 

Some problems encountered in stm32mp157C-DK2 SD card making system

zhangtinglu
Associate III

I compiled uboot and Linux kernel packages, used a brand new SD card.and used "sgdisk" to divide them into five areas. fsbl1,fsbl2,ssbl,bootfs,rootfs.

Use the following command to complete the burning of u-boot:

---------------------------------------------------

 for basic boot mode : <SDCard dev> = /dev/sdb1

   # dd if=u-boot-spl.stm32 of=/dev/sdb1p1

   # dd if=u-boot-spl.stm32 of=/dev/sdb1p2

   # dd if=u-boot.img of=/dev/sdb1p3

--------------------------------------------------

Using "dd" command, sdb1p1, sdb1p2 and sdb1p3 will be produced in dev directory. Sdb1 is the name of my SD card.

Now I have a problem copying files to bootf and rootfs. Readme.how to.txt is as follows:

--------------------------------------------------

* kernel + devicetree

$> cd <path to install_artifact dir>/install_artifact

Verify sdcard are mounted on your Linux PC: /media/$USER/bootfs

$> cp -r boot/* /media/$USER/bootfs/

Depending of your Linux configuration, you may call the command under sudo

$> sudo cp -r boot/* /media/$USER/bootfs/

Don't forget to unmount properly sdcard

-------------------------------------------------

Before the "cp" command, I need to mount bootf and rootfs. But I don't have sdb1p4 and sdb1p5 in my dev directory.they are bootfs and rootfs. so I can't mount it.

My PC system is Ubuntu 16.04.there seems to be something missing in my operation about this problem. Please help me deal with it. Thank you

This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
PatrickF
ST Employee

Hello,

please have a look into https://wiki.st.com/stm32mpu/wiki/How_to_populate_the_SD_card_with_dd_command

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.