On Thu, Aug 31, 2017 at 10:35 AM, Fabio Estevam <feste...@gmail.com> wrote: > Hi Eric, > > On Wed, Aug 30, 2017 at 7:13 PM, Eric Nelson <e...@nelint.com> 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 <e...@nelint.com> > > 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 - <NULL>
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 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot