update.scr fails - fsimage missing

  • Hello,

    I just started a development project with the PicoCoreMX8MP. For that, I downloaded the latest Fedora36 VM, which comes with the fsimx8mp-Y2023.09 release. According to the readme file, it is required to update Nboot and U-boot for this release. So I followed the advices, copied the files from the sdcard folder onto an USB stick, and renamed the update.scr(_disabled) script.

    The first problem is, that U-boot ignores the stick. Actually, seems that the usb subsystem is not powered up at all during the boot sequence (at least I would expect some output about this in the console, and the boot process is also much too fast for that). My current U-boot version is 2020.4, the board is revision 1.10. The updatecheck variable is set to "usb,mmc". I made also attempts with "usb" only, but with the same result.

    But let's put this problem aside for now, maybe it is fixed with the new U-boot version. So I started the update command manually, and now the usb subsystem came up, and the update process started to run - but not for long:


    1 Storage Device(s) found

    Loading /update.scr ... done!

    Loaded!

    Loading /uboot-fsimx8mp.fs ... done!

    1030752 bytes read in 33 ms (29.8 MiB/s)

    Unknown command 'fsimage' - try 'help'

    Loading from usb 0 failed! Aborting installation..


    So it seems that fsimage has not been compiled into my current U-boot version 2020.4, but is required to update itself. Therefore I'm stuck now. Do you have any hints, how I can overcome this problem?

  • Thank you for your help. Indeed, we bought the board some time ago, but the project start was shifted.


    I think I'm a step further. The recovery tool completed, and now both problems are solved - the usb stick is checked during the boot sequence, and fsimage is available. However, the update to fsimx8mp-Y2023.09 still fails:


    1 Storage Device(s) found

    Loading /update.scr ... done!

    Loaded!

    Loading /nboot-fsimx8mp.fs ... done!

    379072 bytes read in 17 ms (21.3 MiB/s)

    No BOARD-CONFIGS found for fsimx8mp

    No BOARD-CONFIGS found for arch fsimx8mp

    Loading from usb 0 failed! Aborting installation..

  • Here's the full U-boot log:


    U-Boot SPL 2020.04-00378-gcc0cba256 (May 16 2023 - 18:33:13 +0200)

    Normal Boot



    U-Boot 2020.04-fsimx8mp-Y2023.03 (Mar 13 2023 - 19:29:40 +0000) for F&S


    CPU: i.MX8MP[8] rev1.1, 1600 MHz (running at 1200 MHz)

    CPU: Industrial temperature grade (-40C to 105C)

    Reset: POR

    Model: PicoCoreMX8MP

    Board: PicoCoreMX8MP Rev 1.10 (2x LAN, WLAN, eMMC, 1x DRAM)

    DRAM: 2 GiB

    TCPC: Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C2 0x52]

    MMC: FSL_SDHC: 0, FSL_SDHC: 2

    Loading Environment from MMC... OK

    In: serial

    Out: serial

    Err: serial


    BuildInfo:

    - ATF 1d14183

    - U-Boot 2020.04-fsimx8mp-Y2023.03


    flash target is MMC:2

    Net: eth1: ethernet@30be0000, eth0: ethernet@30bf0000 [PRIME]

    Fastboot: Normal

    Normal Boot

    Hit any key to stop autoboot: 0

    ---- Trying update from mmc 0 with update.scr ----

    MMC: no card present

    MMC: no card present

    Failed!

    ---- Trying update from usb 0 with update.scr ----

    Register 2000140 NbrPorts 2

    Starting the controller

    USB XHCI 1.10

    Register 2000140 NbrPorts 2

    Starting the controller

    USB XHCI 1.10

    scanning bus usb@38100000 for devices... 3 USB Device(s) found

    scanning bus usb@38200000 for devices... 1 USB Device(s) found

    1 Storage Device(s) found

    Loading /update.scr ... done!

    Loaded!

    Loading /nboot-fsimx8mp.fs ... done!

    379072 bytes read in 17 ms (21.3 MiB/s)

    No BOARD-CONFIGS found for fsimx8mp

    No BOARD-CONFIGS found for arch fsimx8mp

    Loading from usb 0 failed! Aborting installation..

    ---- update FAILED! ----

    PicoCoreMX8MP #

  • It seems that I just bricked the device. After following your advices the update started and succeeded, but the following boot fails. Here the last lines from the console:


    MMC write: dev # 2, block # 1634304, count 28672 ... 28672 blocks written: OK

    Loading /emmc-fsimx8mp.sysimg ... done!

    8735744 bytes read in 299 ms (27.9 MiB/s)


    MMC write: dev # 2, block # 1662976, count 17062 ... 17062 blocks written: OK

    Saving Environment to MMC... Writing to redundant MMC(2)... OK

    Installation complete


    Please set/verify ethernet address(es) now and call saveenv

    ---- update COMPLETE! ----

    PicoCoreMX8MP #

    U-Boot SPL 2020.04-00378-gcc0cba256 (May 16 2023 - 18:33:13 +0200)

    Normal Boot

    mmc_load_image_raw_sector: mmc block read error

    Booting from MMC1 failed

    SPL: failed to boot from all boot devices

    ### ERROR ### Please RESET the board ###


    I guess I should retry the recovery tool, right?

  • Okay, after repeating everything the update finally succeeded. And even Nboot seems to be updated now:


    U-Boot SPL 2021.04-nboot-fsimx8mp-2023.09 (Sep 01 2023 - 09:16:24 +0200)


    Whatever went wrong before, it seems to be fixed now. Thank you very much for your support! :thumbup: