This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM625: fs_devread read outside partition

Part Number: AM625

Hi TI,

        We are using an Am625-based custom board, and we are trying to boot the kernel from u-boot using the file system already stored in emmc memory. We are following the below-mentioned steps.

at u-boot prompt

=>  setenv mmcdev 0

=> setenv bootpart 0

=> boot 

Initially, we were able to boot Linux by running the above command at the u-boot prompt. Recently, we have been facing issues mentioned below.

=> setenv mmcdev 0
=> setenv bootpart 0
=> boot
switch to partitions #0, OK
mmc0(part 0) is current device
SD/MMC found on device 0
fs_devread read outside partition 22717587368
Failed to load 'boot.scr'
** Unrecognized filesystem type **
fs_devread read outside partition 22717587368
Failed to load '/boot/Image'
fs_devread read outside partition 22717587368
Failed to load '/boot/am62xx-fsp.dtb'
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
No FDT memory address configured. Please configure
the FDT address via "fdt addr <address>" command.
Aborting!
Bad Linux ARM64 Image magic!

We are supposed to retrieve the log files, which are stored in the /home folder of the file system. But we weren't able to load the file system.

Kindly let us know how we can retrieve the log files stored inside the /home folder and also overcome the above-mentioned issue.

  • Looks like your eMMC contents is at least partially corrupted.

    You can try if you can list the directories using the U-Boot `ls` command, as shown in the below example. I suppose your `/home` folder will be on `0:2`.

    => ls mmc 0:1
       291205   tiboot3-am62x-gp-evm.bin
       293794   tiboot3-am62x-hs-evm.bin
       293794   tiboot3-am62x-hs-fs-evm.bin
       293794   tiboot3.bin
      1138011   tispl.bin
       962779   u-boot.img
       143433   u-boot.img.strings
    
    7 file(s), 0 dir(s)
    
    => ls mmc 0:2
    <DIR>       4096 .
    <DIR>       4096 ..
    <SYM>          7 bin
    <DIR>       4096 boot
    <DIR>       4096 dev
    <DIR>       4096 etc
    <DIR>       4096 home
    <SYM>          7 lib
    <DIR>       4096 media
    <DIR>       4096 mnt
    <DIR>       4096 opt
    <DIR>       4096 proc
    <DIR>       4096 root
    <DIR>       4096 run
    <SYM>          8 sbin
    <DIR>       4096 srv
    <DIR>       4096 sys
    <DIR>       4096 tmp
    <DIR>       4096 usr
    <DIR>       4096 var
    
    => ls mmc 0:2 home
    <DIR>       4096 .
    <DIR>       4096 ..
    =>

    If you can access the directories,  try loading the file to DDR using the `load` command (type `load` for help). If you can load it to DDR, you can then save/export it depending on what interfaces you have on your system. You can use the `${filesize}` U-Boot ENV variable after loading the specify the file length (in bytes) when writing it out somewhere.

    Regards, Andreas