From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabio Estevam Date: Thu, 31 Aug 2017 10:56:27 -0300 Subject: [U-Boot] [PATCH V2] imx: mx7: Add support for USB and normal boot modes In-Reply-To: References: <1504131194-24902-1-git-send-email-eric@nelint.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Aug 31, 2017 at 10:35 AM, Fabio Estevam wrote: > Hi Eric, > > On Wed, Aug 30, 2017 at 7:13 PM, Eric Nelson wrote: >> This adds support for two additional boot modes on the i.MX7D SoC, which >> is most useful when doing U-Boot development on this chip. >> >> 1. "bmode usb" can be used to force the ROM boot loader's serial >> 2. "bmode normal" can be used to revert to the normal boot mode >> as specified by fuses and BOOT_MODE pins >> >> Signed-off-by: Eric Nelson > > I tried testing your patch on a imx7d sabresd, but it seems there is > an issue with bmode that is unrelated to your patch. > > I also did: > > diff --git a/configs/mx7dsabresd_defconfig b/configs/mx7dsabresd_defconfig > index 8f2e33a..c70fde8 100644 > --- a/configs/mx7dsabresd_defconfig > +++ b/configs/mx7dsabresd_defconfig > @@ -5,7 +5,6 @@ CONFIG_VIDEO=y > # CONFIG_ARMV7_VIRT is not set > CONFIG_IMX_RDC=y > CONFIG_IMX_BOOTAUX=y > -# CONFIG_CMD_BMODE is not set > CONFIG_DEFAULT_DEVICE_TREE="imx7d-sdb" > CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/mx7dsabresd/imximage.cfg" > CONFIG_BOOTDELAY=3 > > so that bmode command can be added. > > However I am getting: > > => bmode usb > bmode - I missed to add 'add_board_boot_modes(board_boot_modes);' Now I get: => bmode usb resetting ... U-Boot 2017.09-rc2-36996-g63af4b0-dirty (Aug 31 2017 - 10:53:12 -0300) CPU: Freescale i.MX7D rev1.2 1000 MHz (running at 792 MHz) CPU: Commercial temperature grade (0C to 95C) at 41C Reset cause: POR Model: Freescale i.MX7 SabreSD Board Board: i.MX7D SABRESD in non-secure mode DRAM: 1 GiB PMIC: PFUZE3000 DEV_ID=0x30 REV_ID=0x11 MMC: MMC Device 0 not found *** Warning - No MMC card found, using default environment Video: 480x272x24 In: serial Out: serial Err: serial Net: FEC0 Hit any key to stop autoboot: 0 => So the board is resetting instead of going into serial download mode. Any ideas? Thanks