Skip to main content
Visitor II
January 20, 2020
Question

Some problems encountered in stm32mp157C-DK2 SD card making system

  • January 20, 2020
  • 1 reply
  • 767 views

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 topic has been closed for replies.

    1 reply

    Technical Moderator
    January 20, 2020