Create partitions from uboot

Hello,
I’m a little bit lost with one of your Module. It is originally supplied with eboot, so I decided to flash in recovery mode with uboot, but I can’t load my dtb and uImage.

I can run a NFS server without a problem, but when I tried to copy the dtb, uImage and rootfs :
** Unable to use mmc 0:1 for fatwrite **

With the command mmc part, this is what i get:

Colibri iMX6 # mmc part          
Partition Map for MMC device 0  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     192654          524286          00000000-01     0b Boot

With a correct uboot I got this:

Colibri iMX6 # mmc part
Partition Map for MMC device 0  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     8192            32768           000a3671-01     0c
  2     40960           7086080         000a3671-02     83

How can I create the rights partitions, without doing something nasty (I did not try to do something, I don’t want to break the mmc)?

Thank you for the help,

Pierre-Olivier

Hi

Note that you loaded U-Boot over USB directly into RAM and executed it there.
The eMMC still contains WinCE including a WinCE partition.

It looks like you then directly tried to write kernel and device tree into the (not existing) first partition used by Linux.

Why don’t you first try it like described here and update the entire module back to Linux first:

Colibri iMX6 # run setupdate
Colibri iMX6 # run update

Max

Your best bet would probably be to stick to and flash one of our demo images.

Alternatively I guess you may use U-Boot’s USB mass storage feature e.g. entering ums 0 mmc 0 and plugging your target’s USB device cable into your PC and doing everything just like the target’s flash were a USB drive.