From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joris Offouga Date: Wed, 23 Jan 2019 22:01:05 +0100 Subject: [U-Boot] [RFC 0/9] Convert Pico-Pi i.MX7D to DM In-Reply-To: <20190122104701.74934f97@jawa> References: <1548023912-14308-1-git-send-email-offougajoris@gmail.com> <20190122104701.74934f97@jawa> Message-ID: <9980fc32-0e2b-db5e-72d8-8dcfadc7b767@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de Le 22/01/2019 à 10:47, Lukasz Majewski a écrit : > On Sun, 20 Jan 2019 23:38:32 +0100 > Joris Offouga wrote: > >> Hi all, >> >> Pinctrl, GPIO, I2C, MMC, ETH are converted. >> >> Convert PMIC is the same of warp7 but i have a some erros, si this >> log : U-Boot SPL 2019.01-00197-ga524e5d-dirty (Jan 20 2019 - 21:09:49 >> +0100) Trying to boot from USB SDP >> SDP: initialize... >> SDP: handle requests... >> Downloading file of size 556397 to 0x877fffc0... done >> Jumping to header at 0x877fffc0 >> Header Tag is not an IMX image >> >> U-Boot 2019.01-00197-ga524e5d-dirty (Jan 20 2019 - 21:09:49 +0100) >> >> CPU: Freescale i.MX7D rev1.2 1000 MHz (running at 792 MHz) >> CPU: Commercial temperature grade (0C to 95C) at 43C >> Reset cause: POR >> Model: TechNexion PICO-IMX7D Board and PI baseboard >> Board: i.MX7D PICOSOM >> DRAM: 512 MiB >> read error from device: 9df65458 register: 0x3! >> PMIC: PFUZE3000 DEV_ID=0x0 REV_ID=0xfffffffb >> read error from device: 9df65458 register: 0x69! >> write error to device: 9df65458 register: 0x23! >> write error to device: 9df65458 register: 0x31! >> write error to device: 9df65458 register: 0x21! >> write error to device: 9df65458 register: 0x2f! >> read error from device: 9df65458 register: 0x2e! >> write error to device: 9df65458 register: 0x2e! >> MMC: FSL_SDHC: 2, FSL_SDHC: 1, FSL_SDHC: 0 >> Loading Environment from MMC... OK >> In: serial at 30a70000 >> Out: serial at 30a70000 >> Err: serial at 30a70000 >> Net: >> Warning: ethernet at 30be0000 using MAC address from ROM >> eth0: ethernet at 30be0000 >> Hit any key to stop autoboot: 0 >> >> USB is convert but update u-boot with dfu log a error : >> >> => dfu 0 mmc 0 >> Request would exceed designated area! >> #Deferred dfu_flush() failed!=> Hi Lukasz, > Please check if malloc pool size (in Kconfig) is large enough to handle > DFU requests. The dfu request is smaller than the size of malloc pool size > > Otherwise, please #define DEBUG in ./drivers/dfu.c and dfu_mmc.c and > share output. This is a log when dfu failed : blk_find_device: if_type=6, devnum=0: usdhc at 30b40000.blk, 6, 2 blk_find_device: if_type=6, devnum=0: usdhc at 30b50000.blk, 6, 1 blk_find_device: if_type=6, devnum=0: usdhc at 30b60000.blk, 6, 0 Request would exceed designated area! dfu_write_buffer_drain: Write error! #Deferred dfu_flush() failed!reset_config: unbind function 'dfu'/9ef6e678 g_dnl_unbind: calling usb_gadget_disconnect for controller 'ci_udc' Best Regards, Joris Offouga > >> Thanks a advance for your help. >> >> Best Regards, >> >> Joris Offouga >> >> Joris Offouga (9): >> Arm: dts: imx7d-pico: Import Linux pico-pi dts >> Arm: imx7d-pico: Add DT file hooks >> pico-pi-imx7d: defconfig Enable DM gpio pinctrl and pinctrl_imx7 >> arm: imx7d-pico-pi: Convert to DM MMC initialization >> pico-pi-imx7d: defconfig: Switch to DM for I2C >> pico-imx7d-pico: defconfig: Switch to DM for UART >> pico-imx7d: Convert to DM PMIC >> arm: pico-pi-imx7d: Convert to DM USB >> pico-imx7d: Convert to DM Ethernet >> >> arch/arm/dts/Makefile | 3 +- >> arch/arm/dts/imx7d-pico-pi.dts | 102 ++++++ >> arch/arm/dts/imx7d-pico.dtsi | 588 >> +++++++++++++++++++++++++++++++ >> board/technexion/pico-imx7d/pico-imx7d.c | 105 +----- >> configs/pico-pi-imx7d_defconfig | 17 +- >> include/configs/pico-imx7d.h | 11 - 6 files changed, 726 >> insertions(+), 100 deletions(-) create mode 100644 >> arch/arm/dts/imx7d-pico-pi.dts create mode 100644 >> arch/arm/dts/imx7d-pico.dtsi >> > > > > Best regards, > > Lukasz Majewski > > -- > > DENX Software Engineering GmbH, Managing Director: Wolfgang Denk > HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany > Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma at denx.de