[meta-freescale] [3rdparty][PATCH v2] imx7d-pico: Add machine configuration (booting)

Vanessa Ayumi Maegima van.ayumi at gmail.com
Tue Oct 3 05:14:12 PDT 2017


Hi Takashi,

On Tue, Oct 3, 2017 at 7:35 AM, Takashi Matsuzawa <tmatsuzawa at xevo.com> wrote:
> Hello.
> By the way, I found I could boot successfully using this wic image (only one
> ext4 partition) by the following.
> So, it might have to do something with the boot code  - but I still not sure
> what being wrong.
>
> 1) Connect power (USB-C cable)
> 2) sudo imx_usb u-boot.imx
>
> Then, the linux successfull boot into the logon prompt.
> This seems to work regardless of the J1 jumper setting (so eMMC boot setting
> is not working and always being serial download mode?)
>
>
> ________________________________
> From: Takashi Matsuzawa
> Sent: Tuesday, October 3, 2017 6:47 PM
> To: Vanessa Maegima; meta-freescale at yoctoproject.org
> Cc: desrochers.philippe at gmail.com; festevam at gmail.com; van.ayumi at gmail.com
> Subject: Re: [3rdparty][PATCH v2] imx7d-pico: Add machine configuration
> (booting)
>
>
> Hello.
> I am now trying this with my board and want to make sure if what I am doing
> is correct.
>
>>Add machine definition for imx7d-pico board.
>>
>>For more information about this reference design, please visit:
>>
>>https://www.wandboard.org/products/android-things/PICO-PI-IMX7/
>
> My local build creates wic.gz file (core-image-minimal-imx7d-pico.wic.gz).
>
> 1) This is expected to be a one-partition disk image with an ext4 partition
> in it?
>
> (I can see no fat partition for #1, only one ext4 partition.  Is this
> expected?)
>
> 2) In serial download mode, I could boot the board using u-boot (using
> imx_usb loader tool, by pushing u-boot.imx data to the board).
>
> 3) However, I am failing to boot it from eMMC.
>
> I have written u-boot data to 1K offset on the eMMC (/dev/sdc as it is
> mounted on the host).
> So, at least it should boot into u-boot, but it does not.
>
> Though looking into hardware manuals for PICP-PI-IMX7, I am seeing
> conflicing information on which is the eMMC boot mode setting on the J1/J2
> jumpers,
> I tried them but non worked.
>
> The board as deliverd booted into the default Linux (provided by
> technexsion), so the problem is not hardware.
> (Unfortunately, I did not take not of the default jumper setting or data of
> pre-installed boot loader)
>

This machine configuration generates the wic image only. This image
includes u-boot.imx, dtb, zImage and rootfs and generates only the
ext4 partition. The kernel files can be found at /boot.

I've created a tutorial on how to build and flash this image, please see
it here:

https://imxdev.gitlab.io/announcement/The_imx7d-pico_board_is_now_supported_in_FSL_Community_BSP/

I faced a similar issue as you are facing now. The problem was that the
default u-boot by TechNexion was locked and I needed to unlock it in
order to flash a new U-Boot.

Please see this tutorial:

https://imxdev.gitlab.io/tutorial/WaRP7_possible_brick_and_solution/

Please try to unlock your user partition and flash u-boot again in serial
downloader mode. You will need to set the right parameters to
mmc partconf (mmc partconf dev [boot_ack boot_partition partition_access])

Best,
Vanessa


More information about the meta-freescale mailing list