Posts by BrenkeM

    I noticed that the commands reboot and poweroff seems to be switch on the current fsimx8mp version.


    When I try to reboot the system on the command line interface via "reboot" the system stops and halts, but mainly never somes up (see [1]). Sporadically I noticed a reboot.

    On the other side when I try to perform a poweroff to shut down the system, its starting again right away.



    I am the only one with this issue? What can be done to fix this behavior?



    [1]:

    Code
    1. kvm: exiting hardware virtualization
    2. reboot: Restarting system


    ------------ freeze ------------------



    [2]:

    Hello Ladies and Gentleman,


    I am able to build and adjust the bootloader UBOOT from [GITHUB]. Because I we use BUILDROOT for the picocore MX8MP platform. Which means we want to build NBOOT and UBOOT directly from the repo.


    But building NBOOT is failing, see [1]. So how are we able to build NBOOT standalone without using the yocto project?



    [GITHUB]:

    https://github.com/FSEmbedded/…58b1bd2602ea70764313ba110


    [1]:

    Hi,


    I can confirm the fix, where the file /etc/fw_env.config should contain the following content:


    Code
    1. # MMCdevice offset size
    2. /dev/mmcblk2boot0 0x00040000 0x4000
    3. /dev/mmcblk2boot1 0x00040000 0x4000


    With this I was able to read the ENV. But writing failed:

    Code
    1. # fw_setenv zzz 42
    2. Write error on /dev/mmcblk2boot1: Operation not permitted
    3. Error: can't write fw_env to flash


    Regarding [1], I was able to verify the fix above, but only until the next boot.

    Code
    1. # echo 0 > /sys/block/mmcblk2boot0/force_ro
    2. # echo 0 > /sys/block/mmcblk2boot1/force_ro
    3. # fw_setenv zzz 42


    Where you able to write the uboot env out of the box?

    Or where do we need to enable writing permanently?



    [1]:

    https://www.kernel.org/doc/Doc…ion/mmc/mmc-dev-parts.txt

    Hi.


    Unter [1] you can find the system variant.


    So I updated the following file. Does this mean the file did not fit into DRAM before I wrote it to eMMC?


    $ du -h emmc-fsimx8mp.sysimg

    68M emmc-fsimx8mp.sysimg

    $ ll emmc-fsimx8mp.sysimg -h

    -rw-r--r-- 1 brenkem domain_users 233M Apr 29 14:09 emmc-fsimx8mp.sysimg


    For every one who noticed a file size difference between du and ls, see [2].





    [1]:

    U-Boot 2021.04-F+S-fsimx8mp-Y2023.09 (Aug 31 2023 - 12:56:23 +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: PicoCoreMX8MPr2

    Board: PicoCoreMX8MPr2 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

    Env: Loading from MMC... OK

    In: serial

    Out: serial

    Err: serial

    SEC0: RNG instantiated

    ATF: fa25831

    CFG: Found at 0x918000

    NBoot: 2023.09

    Fastb: flash target is MMC:2

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

    Fastb: Normal fastboot

    Normal Boot

    Hit any key to stop autoboot: 0


    PicoCoreMX8MPr2 # printenv platform

    platform=picocoremx8mpr2

    PicoCoreMX8MPr2 # bdinfo

    boot_params = 0x0000000000000000

    DRAM bank = 0x0000000000000000

    -> start = 0x0000000040000000

    -> size = 0x0000000080000000

    flashstart = 0x0000000000000000

    flashsize = 0x0000000000000000

    flashoffset = 0x0000000000000000

    baudrate = 115200 bps

    relocaddr = 0x00000000bff15000

    reloc off = 0x000000007fd15000

    Build = 64-bit

    current eth = ethernet@30bf0000

    ethaddr = 00:05:51:07:55:83

    IP addr = 169.254.255.44

    fdt_blob = 0x00000000bdbf32b0

    new_fdt = 0x00000000bdbf32b0

    fdt_size = 0x000000000000cb00

    lmb_dump_all:

    memory.cnt = 0x1

    memory.size = 0x0

    memory.reg[0x0].base = 0x40000000

    .size = 0x80000000


    reserved.cnt = 0x1

    reserved.size = 0x0

    reserved.reg[0x0].base = 0xbdbf1eb0

    .size = 0x240e150

    arch_number = 0x00000000ffffffff

    TLB addr = 0x00000000bfff0000

    irq_sp = 0x00000000bdbf32a0

    sp start = 0x00000000bdbf32a0

    BOARD-CFG = 0x0000000000918000

    Early malloc usage: a448 / 15000


    [2]:

    https://askubuntu.com/question…nt-size-for-the-same-file

    Hi,


    we like the github repos of F+S and already adopted the repos.


    What is missing is the toolchain repo (precompiled). I already created this repo on our side ([1]), but it would be great to simply mirror the latest github repo from F+S.


    Can you do this. I can also share my repo with older versions (maybe not complete (see [2]).



    [1]:

    toolchain-armv7ahf

    toolchain-armv8ahf


    [2]:

    Code
    1. toolchain-armv7ahf$ git tag
    2. 11.2
    3. 4.7.2
    4. 5.2.0
    5. 7.4.0
    6. 8.3
    7. 9.3

    Hi.


    Thanks. Indeed, the documentation of F+S describes the TFTP option unter 7.2 Installation to eMMC:


    "Of course downloading these system images to the board using tftp like in the NAND case
    would theoretically also work. But unfortunately these system images are rather big and do
    not fit into RAM. And because tftp does not support downloading arbitrary parts of a file,
    this approach is typically not a valid option. In the following sections we will use an SD card
    or a USB pendrive to install these system images."



    What is the DRAM limit of the PicoCore™MX8MPr2?

    Hi,


    after some research unter [1] and [2] with the documentation under [3] I was able to successfully update the mmc memroy via tftp (see [4]).


    Thanks. Case closed.


    [1]:

    https://gist.github.com/pirate…6a7303404a0793533de38672f


    [2]:

    https://e2e.ti.com/support/pro…ot-0-partition-using-tftp


    [3]:

    https://docs.u-boot.org/en/latest/usage/cmd/mmc.html


    [4]:

    Files

    • upd.txt

      (1 kB, downloaded 50 times, last: )

    Hi.


    That would be great. Because only to replace the *.fs files does not seems to work and the uuu-*.exe displays an error.

    I could fix the issue in the meantime with reflashing the NBOOT and UBOOT after I flashed the ROOTFS image.


    Thanks.

    I performed to recover NBOOT and UBOOT according the documentation. I successfully was able to go back to the uboot command line interface and installed the image from the release package (directory: binaries) via the command "update usb install.scr". The boot was also a success but after a restart/reboot from LINUX the board was bricked again (see [1] for full log):


    mmc_load_image_raw_sector: mmc block read error

    Booting from MMC1 failed

    SPL: failed to boot from all boot devices


    I tested it multiple times and with two separate SKITs. But always the same result.

    Please assist to permanantly recover the board.


    Thanks.


    [1]:recovery.txt