
Hi Fabio
I have managed to boot with this lts
uuu_version 1.2.39
# @_flash.bin | bootloader # @_uboot.bin | uboot.dtb # @_image [_flash.bin] | image burn to nand, default is the same as bootloader
# This command will be run when i.MX6/7 i.MX8MM, i.MX8MQ SDP: boot -f _flash.bin
# These commands will be run when use SPL and will be skipped if no spl # if (SPL support SDPV) # { SDPV: delay 1000 SDPV: write -f _uboot.bin SDPV: jump # }
FB: ucmd setenv fastboot_buffer ${loadaddr} FB: download -f _image FB: ucmd if test -z "$fastboot_bytes"; then setenv fastboot_bytes $filesize; fi # Burn image to nandfit partition if needed FB: ucmd if env exists nandfit_part; then nand erase.part nandfit; nand write ${fastboot_buffer} nandfit ${fastboot_bytes}; else true; fi; FB: ucmd nandbcb init ${fastboot_buffer} nandboot ${fastboot_bytes} FB: Done
and using sudo uuu -b nand_spl.lst SPL u-boot-dtb.img u-boot-with-spl.imx
I need to arrange the UBOOT_OFFS and OFFS_REDUNT position to take into account the padding of 0x11000 and the two copies of nandbcb tools.
Do you know how others are flashing nand on the imx6 family?
Michael
On Mon, Jul 4, 2022 at 1:00 PM Michael Nazzareno Trimarchi michael@amarulasolutions.com wrote:
Hi Fabio and Marek
Trying to understand the reason why I can boot using imx_usb loader and not the uuu tool
If I do:
./imx_usb SPL ./imx_usb u-boot-dtb.img
It works
U-Boot SPL 2022.07-rc5-00075-g01d253835a-dirty (Jul 04 2022 - 12:39: 11 +0200)
SPL: board_init_r()
spl_init Trying to boot from USB SDP SDP: initialize... SDP: handle requests... Downloading file of size 594824 to 0x877fffc0... done Jumping to header at 0x877fffc0 Header Tag is not an IMX image Found header at 0x877fffc0 image entry point: 0x87800000
U-Boot 2022.07-rc5-00075-g01d253835a-dirty (Jul 04 2022 - 12:39:11 + 0200)
CPU: Freescale i.MX6ULL rev1.1 528 MHz (running at 396 MHz) CPU: Commercial temperature grade (0C to 95C) at 37C Reset cause: POR Model: BSH SMM M2 DRAM: 128 MiB Core: 29 devices, 14 uclasses, devicetree: separate NAND: 256 MiB MMC: FSL_SDHC: 1 Loading Environment from NAND... *** Warning - bad CRC, using defaul t environment
In: serial@21f0000 Out: serial@21f0000 Err: serial@21f0000 Net: CPU Net Initialization Failed No ethernet found. Hit any key to stop autoboot
If I tried with the combined image using uuu it does not work like that.
U-Boot SPL 2022.07-rc5-00075-g01d253835a-dirty (Jul 04 2022 - 12:39: 11 +0200)
SPL: board_init_r()
spl_init Trying to boot from USB SDP SDP: initialize... SDP: handle requests... Downloading file of size 594824 to 0x877fffc0... done Jumping to header at 0x877fffc0 Header Tag is not an IMX image Found header at 0x877fffc0 image entry point: 0x87800000
Any idea?
Michael