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.

J721EXSOMXEVM: Run vision apps on EVM in Linux+RTOS mode (via NFS boot - For Debug only) fails due to Bad Linux ARM64 Image magic!

Part Number: J721EXSOMXEVM

Hi,

recently I have upgraded to ti-processor-sdk-linux-j7-evm-07_02_00_07 and ti-processor-sdk-rtos-j721e-evm-07_02_00_06. Once the upgrade has been done, I have flashed the SD card following the instructions and I could run the vision demo applications.Scrolling down the page, I have seen that is also possible to boot from NFS, after following the steps described in the instructions I could start the booting process but it failed due to Bad Linux ARM64 Image magic! .

Attached you can find the booting logs from SD_Card and NFS.

Btw, the instructions are not really complete; when running the make linux_fs_install_sd , it will fail because the script cannot copy under /usr/lib the necessary file(s). I have fixed that by running: sudo chmod 777 /usr/lib

Could you please support me in finding the root cause of the issue?

Thank you in advance,

Benone

SD_Card_boot.txt

U-Boot 2020.01-g3c9ebdb87d (Jan 25 2021 - 04:02:01 +0000)                                                                                      
                                                                                                                                               
SoC:   J721E SR1.0                                                                                                                             
Model: Texas Instruments K3 J721E SoC                                                                                                          
Board: J721EX-PM2-SOM rev E8                                                                                                                   
DRAM:  4 GiB                                                                                                                                   
not found for dev hbmc-mux                                                                                                                     
Flash: 0 Bytes                                                                                                                                 
MMC:   sdhci@4f80000: 0, sdhci@4fb0000: 1                                                                                                      
Loading Environment from MMC... OK                                                                                                             
In:    serial@2800000                                                                                                                          
Out:   serial@2800000                                                                                                                          
Err:   serial@2800000                                                                                                                          
Detected: J7X-BASE-CPB rev E3                                                                                                                  
Detected: J7X-VSC8514-ETH rev E2                                                                                                               
Net:                                                                                                                                           
Warning: ethernet@46000000 using MAC address from ROM                                                                                          
eth0: ethernet@46000000                                                                                                                        
Hit any key to stop autoboot:  0                                                                                                               
=> setenv serverip_to_set 192.168.144.147                                                                                                      
=> setenv rootpath /home/conti/ti/vision_demo_NFS                                                                                              
=> setenv init_nfs 'run args_all args_nfs; setenv autoload no;dhcp; setenv serverip ${serverip_to_set}'                                        
=> setenv args_nfs 'setenv bootargs console=${console} ${optargs} root=/dev/nfs rw nfsroot=${serverip}:${rootpath},v3 ip=dhcp'                 
=> setenv get_overlay_nfs 'fdt address ${fdtaddr};fdt resize 0x100000;for overlay in $overlay_files;do;nfs ${overlayaddr} ${serverip}:${rootpat
h}${bootdir}/${overlay} && fdt apply ${overlayaddr};done;'                                                                                     
=> setenv get_kern_nfs 'nfs ${loadaddr} ${serverip}:${rootpath}${bootdir}/${bootfile}'                                                         
=> setenv get_fdt_nfs 'nfs ${fdtaddr} ${serverip}:${rootpath}${bootdir}/${fdtfile}'                                                            
=> setenv boot_rprocs 'if test ${dorprocboot} -eq 1; then rproc init;run boot_rprocs_mmc;fi;'                                                  
=> setenv rproc_load_and_boot_one 'if nfs $loadaddr ${serverip}:${rootpath}${rproc_fw};then if rproc load ${rproc_id} ${loadaddr} ${filesize}; 
then rproc start ${rproc_id};fi;fi'                                                                                                            
=> setenv boot nfs                                                                                                                             
=> saveenv                                                                                                                                     
Saving Environment to MMC... Writing to redundant MMC(0)... OK                                                                                 
=> boot                                                                                                                                        
switch to partitions #0, OK                                                                                                                    
mmc1 is current device                                                                                                                         
SD/MMC found on device 1                                                                                                                       
483 bytes read in 2 ms (235.4 KiB/s)                                                                                                           
Loaded env from uEnv.txt                                                                                                                       
Importing environment from mmc1 ...                                                                                                            
Running uenvcmd ...                                                                                                                            
1 bytes read in 2 ms (0 Bytes/s)                                                                                                               
Already setup.                                                                                                                                 
link up on port 1, speed 1000, full duplex                                                                                                     
BOOTP broadcast 1                                                                                                                              
*** Unhandled DHCP Option in OFFER/ACK: 26                                                                                                     
*** Unhandled DHCP Option in OFFER/ACK: 26                                                                                                     
DHCP client bound to address 192.168.144.176 (14 ms)                                                                                           
link up on port 1, speed 1000, full duplex                                                                                                     
Using ethernet@46000000 device                                                                                                                 
File transfer via NFS from server 192.168.144.147; our IP address is 192.168.144.176                                                           
Filename '/home/conti/ti/vision_demo_NFS/lib/firmware/j7-main-r5f0_0-fw'.                                                                      
Load address: 0x82000000                                                                                                                       
Loading: #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         ############################################                                                                                          
done                                                                                                                                           
Bytes transferred = 5216600 (4f9958 hex)                                                                                                       
Load Remote Processor 2 with data@addr=0x82000000 5216600 bytes: Success!                                                                      
link up on port 1, speed 1000, full duplex                                                                                                     
Using ethernet@46000000 device                                                                                                                 
File transfer via NFS from server 192.168.144.147; our IP address is 192.168.144.176                                                           
Filename '/home/conti/ti/vision_demo_NFS/lib/firmware/j7-main-r5f0_1-fw'.                                                                      
Load address: 0x82000000                                                                                                                       
Loading: #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         ###########################################################                                                                           
done                                                                                                                                           
Bytes transferred = 1964032 (1df800 hex)                                                                                                       
Load Remote Processor 3 with data@addr=0x82000000 1964032 bytes: Success!                                                                      
link up on port 1, speed 1000, full duplex                                                                                                     
Using ethernet@46000000 device                                                                                                                 
File transfer via NFS from server 192.168.144.147; our IP address is 192.168.144.176                                                           
Filename '/home/conti/ti/vision_demo_NFS/lib/firmware/j7-main-r5f1_0-fw'.                                                                      
Load address: 0x82000000                                                                                                                       
Loading: *** ERROR: File lookup fail                                                                                                           
                                                                                                                                               
done                                                                                                                                           
link up on port 1, speed 1000, full duplex                                                                                                     
Using ethernet@46000000 device                                                                                                                 
File transfer via NFS from server 192.168.144.147; our IP address is 192.168.144.176                                                           
Filename '/home/conti/ti/vision_demo_NFS/lib/firmware/j7-main-r5f1_1-fw'.                                                                      
Load address: 0x82000000                                                                                                                       
Loading: *** ERROR: File lookup fail                                                                                                           
                                                                                                                                               
done                                                                                                                                           
link up on port 1, speed 1000, full duplex                                                                                                     
Using ethernet@46000000 device                                                                                                                 
File transfer via NFS from server 192.168.144.147; our IP address is 192.168.144.176                                                           
Filename '/home/conti/ti/vision_demo_NFS/lib/firmware/j7-c66_0-fw'.                                                                            
Load address: 0x82000000                                                                                                                       
Loading: #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################                                                                                     
done                                                                                                                                           
Bytes transferred = 1579152 (181890 hex)                                                                                                       
Load Remote Processor 6 with data@addr=0x82000000 1579152 bytes: Success!                                                                      
link up on port 1, speed 1000, full duplex                                                                                                     
Using ethernet@46000000 device                                                                                                                 
File transfer via NFS from server 192.168.144.147; our IP address is 192.168.144.176                                                           
Filename '/home/conti/ti/vision_demo_NFS/lib/firmware/j7-c66_1-fw'.                                                                            
Load address: 0x82000000                                                                                                                       
Loading: #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################                                                                                     
done                                                                                                                                           
Bytes transferred = 1579152 (181890 hex)                                                                                                       
Load Remote Processor 7 with data@addr=0x82000000 1579152 bytes: Success!                                                                      
link up on port 1, speed 1000, full duplex                                                                                                     
Using ethernet@46000000 device                                                                                                                 
File transfer via NFS from server 192.168.144.147; our IP address is 192.168.144.176                                                           
Filename '/home/conti/ti/vision_demo_NFS/lib/firmware/j7-c71_0-fw'.                                                                            
Load address: 0x82000000                                                                                                                       
Loading: #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         #################################################################                                                                     
         ###############################################################                                                                       
done                                                                                                                                           
Bytes transferred = 9969648 (981ff0 hex)                                                                                                       
Load Remote Processor 8 with data@addr=0x82000000 9969648 bytes: Success!                                                                      
link up on port 1, speed 1000, full duplex                                                                                                     
Using ethernet@46000000 device                                                                                                                 
File transfer via NFS from server 192.168.144.147; our IP address is 192.168.144.176                                                           
Filename '/home/conti/ti/vision_demo_NFS/boot/'.                                                                                               
Load address: 0x82000000                                                                                                                       
Loading: *** ERROR: File lookup fail                                                                                                           
                                                                                                                                               
done                                                                                                                                           
link up on port 1, speed 1000, full duplex                                                                                                     
Using ethernet@46000000 device                                                                                                                 
File transfer via NFS from server 192.168.144.147; our IP address is 192.168.144.176                                                           
Filename '/home/conti/ti/vision_demo_NFS/boot/k3-j721e-common-proc-board.dtb'.                                                                 
Load address: 0x88000000                                                                                                                       
Loading: ###################                                                                                                                   
done                                                                                                                                           
Bytes transferred = 93829 (16e85 hex)                                                                                                          
Bad Linux ARM64 Image magic!                                                                                                                   
=> 

  • Hi Benone,

    In your bootargs $bootfile is not set so Image is not being rightly found.

    So in your boot commands that you key in u-boot prompt please replace

    => setenv get_kern_nfs 'nfs ${loadaddr} ${serverip}:${rootpath}${bootdir}/${bootfile}'

    With

    => setenv get_kern_nfs 'nfs ${loadaddr} ${serverip}:${rootpath}${bootdir}/${name_kern}'

    Let me know if this solves your boot problem.

    Best Regards,
    Keerthy

  • Hi Keerthy.

    I have tried your proposal and indeed it fixed the original issue. The kernel starts booting but after a while it stops; it looks like while booting, the network interface is reconfigured and instead of booting from 192.168.144.147 it tries to boot from 192.168.144.1 which is the dhcp server address.

    I have tried to manually configure the network interface but this didn't help.

    Attached you can find the log and the commands I have sent to configure the uboot.

    In case it helps, I have attached the printenv content too.

    Any clue why while booting the network interface is reconfigured?

    Regards,

    Benone

    => printenv
    addr_fit=0x90000000
    arch=arm
    args_all=setenv optargs earlycon=ns16550a,mmio32,0x02800000 ${mtdparts}
    args_mmc=run finduuid;setenv bootargs console=${console} ${optargs} root=PARTUUID=${uuid} rw rootfstype=${mmcrootfstype}
    args_nfs=setenv bootargs console=${console} ${optargs} root=/dev/nfs rw nfsroot=${serverip}:${rootpath},v3 ip=${ipaddr}
    args_ufs=setenv devtype scsi;setenv bootpart 1:1;run ufs_finduuid;setenv bootargs console = ${console} ${optargs}root=PARTUUID=${uuid} rw rootfstype=${
    scsirootfstype};setenv devtype scsi;setenv bootpart 1:1
    baudrate=115200
    board=j721e
    board_name=j721e
    board_rev=E8
    board_serial=0035
    board_software_revision=01
    boot=nfs
    boot_fdt=try
    boot_fit=0
    boot_rprocs=if test ${dorprocboot} -eq 1; then rproc init;run boot_rprocs_mmc;fi;
    boot_rprocs_mmc=env set rproc_id;env set rproc_fw;for i in ${rproc_fw_binaries} ; do if test -z "${rproc_id}" ; then env set rproc_id $i;else env set r
    proc_fw $i;run rproc_load_and_boot_one;env set rproc_id;env set rproc_fw;fi;done
    bootcmd=run findfdt; run envboot; run init_${boot}; run boot_rprocs; run get_kern_${boot}; run get_fdt_${boot}; run get_overlay_${boot}; run run_kern
    bootdelay=2
    bootdir=/boot
    bootenvfile=uEnv.txt
    bootm_size=0x10000000
    bootpart=1:2
    bootscript=echo Running bootscript from mmc${mmcdev} ...; source ${loadaddr}
    bootserver=192.168.144.147
    console=ttyS2,115200n8
    cpu=armv8
    default_device_tree=k3-j721e-common-proc-board.dtb
    dfu_alt_info_emmc=rawemmc raw 0 0x800000 mmcpart 1;rootfs part 0 1 mmcpart 0;tiboot3.bin.raw raw 0x0 0x400 mmcpart 1;tispl.bin.raw raw 0x400 0x1000 mmc
    part 1;u-boot.img.raw raw 0x1400 0x2000 mmcpart 1;u-env.raw raw 0x3400 0x100 mmcpart 1;sysfw.itb.raw raw 0x3600 0x800 mmcpart 1
    dfu_alt_info_mmc=boot part 1 1;rootfs part 1 2;tiboot3.bin fat 1 1;tispl.bin fat 1 1;u-boot.img fat 1 1;uEnv.txt fat 1 1;sysfw.itb fat 1 1
    dfu_alt_info_ospi=tiboot3.bin raw 0x0 0x080000;tispl.bin raw 0x080000 0x200000;u-boot.img raw 0x280000 0x400000;u-boot-env raw 0x680000 0x020000;sysfw.
    itb raw 0x6c0000 0x100000;rootfs raw 0x800000 0x3800000
    dfu_alt_info_ram=tispl.bin ram 0x80080000 0x100000;u-boot.img ram 0x81000000 0x100000
    dfu_bufsiz=0x40000
    dorprocboot=0
    dtboaddr=0x89000000
    envboot=mmc dev ${mmcdev}; if mmc rescan; then echo SD/MMC found on device ${mmcdev};if run loadbootscript; then run bootscript;else if run loadbootenv
    ; then echo Loaded env from ${bootenvfile};run importbootenv;fi;if test -n $uenvcmd; then echo Running uenvcmd ...;run uenvcmd;fi;fi;fi;
    eth1addr=70:ff:76:1d:9b:ba
    eth2addr=70:ff:76:1d:9b:bb
    eth3addr=70:ff:76:1d:9b:bc
    eth4addr=70:ff:76:1d:9b:bd
    ethaddr=e4:15:f6:58:30:b1
    fdt_addr_r=0x88000000
    fdtaddr=0x88000000
    fdtcontroladdr=fdeb9828
    findfdt=setenv name_fdt ${default_device_tree};setenv fdtfile ${name_fdt}
    finduuid=part uuid mmc ${bootpart} uuid
    get_fdt_mmc=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${name_fdt}
    get_fdt_nfs=nfs ${fdtaddr} ${serverip}:${rootpath}${bootdir}/${fdtfile}
    get_fdt_ufs=load ${devtype} ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}
    get_fit_mmc=load mmc ${bootpart} ${addr_fit} ${bootdir}/${name_fit}
    get_kern_mmc=load mmc ${bootpart} ${loadaddr} ${bootdir}/${name_kern}
    get_kern_nfs=nfs ${loadaddr} ${serverip}:${rootpath}${bootdir}/${name_kern}
    get_kern_ufs=load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${name_kern}
    get_overlay_mmc=fdt address ${fdtaddr};fdt resize 0x100000;for overlay in $name_overlays;do;load mmc ${bootpart} ${dtboaddr} ${bootdir}/${overlay} && f
    dt apply ${dtboaddr};done;
    get_overlay_nfs=fdt address ${fdtaddr};fdt resize 0x100000;for overlay in $overlay_files;do;nfs ${overlayaddr} ${serverip}:${rootpath}${bootdir}/${over
    lay} && fdt apply ${overlayaddr};done;
    get_overlay_ufs=fdt address ${fdtaddr};fdt resize 0x100000;for overlay in $name_overlays;do;load scsi ${bootpart} ${dtboaddr} ${bootdir}/${overlay} && 
    fdt apply ${dtboaddr};done;
    get_overlaystring=for overlay in $name_overlays;do;setenv overlaystring ${overlaystring}'#'${overlay};done;
    importbootenv=echo Importing environment from mmc${mmcdev} ...; env import -t ${loadaddr} ${filesize}
    init_mmc=run args_all args_mmc
    init_nfs=run args_all args_nfs; setenv autoload no; setenv ipaddr 192.168.144.176; setenv serverip ${serverip_to_set}
    init_ufs=ufs init; scsi scan; run args_ufs
    ipaddr=192.168.144.176
    kernel_addr_r=0x82000000
    loadaddr=0x82000000
    loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenvfile}
    loadbootscript=load mmc ${mmcdev} ${loadaddr} boot.scr
    loadfdt=load ${devtype} ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}
    loadimage=load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${bootfile}
    mmcboot=mmc dev ${mmcdev}; devnum=${mmcdev}; setenv devtype mmc; if mmc rescan; then echo SD/MMC found on device ${mmcdev};if run loadimage; then run a
    rgs_mmc; if test ${boot_fit} -eq 1; then run run_fit; else run mmcloados;fi;fi;fi;
    mmcdev=1
    mmcloados=if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if run loadfdt; then bootz ${loadaddr} - ${fdtaddr}; else if test ${boot_fdt} = try
    ; then bootz; else echo WARN: Cannot load the DT; fi; fi; else bootz; fi;
    mmcrootfstype=ext4 rootwait
    mtdids=nor0=47040000.spi.0,nor0=47034000.hyperbus
    mtdparts=mtdparts=47040000.spi.0:512k(ospi.tiboot3),2m(ospi.tispl),4m(ospi.u-boot),128k(ospi.env),128k(ospi.env.backup),1m(ospi.sysfw),57216k@8m(ospi.r
    ootfs),128k(ospi.phypattern);47034000.hyperbus:512k(hbmc.tiboot3),2m(hbmc.tispl),4m(hbmc.u-boot),256k(hbmc.env),1m(hbmc.sysfw),-@8m(hbmc.rootfs)
    name_fit=fitImage
    name_kern=Image
    partitions=name=rootfs,start=0,size=-,uuid=${uuid_gpt_rootfs}
    pxefile_addr_r=0x80100000
    ramdisk_addr_r=0x88080000
    rd_spec=-
    rdaddr=0x88080000
    rootpath=/home/conti/ti/vision_demo_NFS
    rootserver=192.168.144.147
    rproc_fw_binaries=2 /lib/firmware/j7-main-r5f0_0-fw 3 /lib/firmware/j7-main-r5f0_1-fw 4 /lib/firmware/j7-main-r5f1_0-fw 5 /lib/firmware/j7-main-r5f1_1-
    fw 6 /lib/firmware/j7-c66_0-fw 7 /lib/firmware/j7-c66_1-fw 8 /lib/firmware/j7-c71_0-fw 
    rproc_load_and_boot_one=if nfs $loadaddr ${serverip}:${rootpath}${rproc_fw};then if rproc load ${rproc_id} ${loadaddr} ${filesize}; then rproc start ${
    rproc_id};fi;fi
    run_fit=bootm ${addr_fit}#${fdtfile}${overlaystring}
    run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr}
    scriptaddr=0x80000000
    scsirootfstype=ext4 rootwait
    serial#=0000000000000035
    serverip_to_set=192.168.144.147
    soc=k3
    stderr=serial@2800000
    stdin=serial@2800000
    stdout=serial@2800000
    ufs_finduuid=part uuid scsi ${bootpart} uuid
    update_to_fit=setenv loadaddr ${addr_fit}; setenv bootfile ${name_fit}
    vendor=ti
    
    Environment size: 6462/131067 bytes
    

    kernel_boot_error_dhcp.txt

    setenv serverip_to_set 192.168.144.147
    setenv ipaddr 192.168.144.176
    setenv rootpath /home/conti/ti/vision_demo_NFS
    setenv init_nfs 'run args_all args_nfs; setenv autoload no; setenv ipaddr 192.168.144.176; setenv serverip ${serverip_to_set}'
    setenv args_nfs 'setenv bootargs console=${console} ${optargs} root=/dev/nfs rw nfsroot=${serverip}:${rootpath},v3 ip=${ipaddr}'
    setenv get_overlay_nfs 'fdt address ${fdtaddr};fdt resize 0x100000;for overlay in $overlay_files;do;nfs ${overlayaddr} ${serverip}:${rootpath}${bootdir}/${overlay} && fdt apply ${overlayaddr};done;'
    setenv get_kern_nfs 'nfs ${loadaddr} ${serverip}:${rootpath}${bootdir}/${name_kern}'
    setenv get_fdt_nfs 'nfs ${fdtaddr} ${serverip}:${rootpath}${bootdir}/${fdtfile}'
    setenv rproc_load_and_boot_one 'if nfs $loadaddr ${serverip}:${rootpath}${rproc_fw};then if rproc load ${rproc_id} ${loadaddr} ${filesize}; then rproc start ${rproc_id};fi;fi'
    setenv boot nfs
    saveenv
    boot

  • Hi Benone,

    Can you please run the below command from u-boot just before the 'boot' command

    run args_nfs

    It seems like nfsroot and root as /dev/nfs are not being set so the above command should
    help you proceed further.

    Best Regards,
    Keerthy

  • Hi Keerthy,

    that command doesn't help.

    Attached you can find the new log file.

    U-Boot SPL 2020.01-g3c9ebdb87d (Jan 25 2021 - 04:06:36 +0000)
    SYSFW ABI: 3.1 (firmware rev 0x0014 '20.8.5--v2020.08b (Terrific Lla')
    Trying to boot from MMC2
    Loading Environment from MMC... *** Warning - No MMC card found, using default environment
    
    Starting ATF on ARM64 core...
    
    NOTICE:  BL31: v2.3():07.01.00.006-dirty
    NOTICE:  BL31: Built : 03:49:38, Jan 25 2021
    
    U-Boot SPL 2020.01-g3c9ebdb87d (Jan 25 2021 - 04:02:01 +0000)
    SYSFW ABI: 3.1 (firmware rev 0x0014 '20.8.5--v2020.08b (Terrific Lla')
    Detected: J7X-BASE-CPB rev E3
    Detected: J7X-VSC8514-ETH rev E2
    Trying to boot from MMC2
    
    
    U-Boot 2020.01-g3c9ebdb87d (Jan 25 2021 - 04:02:01 +0000)
    
    SoC:   J721E SR1.0
    Model: Texas Instruments K3 J721E SoC
    Board: J721EX-PM2-SOM rev E8
    DRAM:  4 GiB
    not found for dev hbmc-mux
    Flash: 0 Bytes
    MMC:   sdhci@4f80000: 0, sdhci@4fb0000: 1
    Loading Environment from MMC... OK
    In:    serial@2800000
    Out:   serial@2800000
    Err:   serial@2800000
    Detected: J7X-BASE-CPB rev E3
    Detected: J7X-VSC8514-ETH rev E2
    Net:   
    Warning: ethernet@46000000 using MAC address from ROM
    eth0: ethernet@46000000
    Hit any key to stop autoboot:  0 
    => setenv serverip_to_set 192.168.144.147
    => setenv ipaddr 192.168.144.176
    => setenv rootpath /home/conti/ti/vision_demo_NFS
    => setenv init_nfs 'run args_all args_nfs; setenv autoload no; setenv ipaddr 192.168.144.176; setenv serverip ${serverip_to_set}'
    => setenv args_nfs 'setenv bootargs console=${console} ${optargs} root=/dev/nfs rw nfsroot=${serverip}:${rootpath},v3 ip=${ipaddr}'
    => setenv get_overlay_nfs 'fdt address ${fdtaddr};fdt resize 0x100000;for overlay in $overlay_files;do;nfs ${overlayaddr} ${serverip}:${rootpath}${boot
    dir}/${overlay} && fdt apply ${overlayaddr};done;'
    => setenv get_kern_nfs 'nfs ${loadaddr} ${serverip}:${rootpath}${bootdir}/${name_kern}'
    => setenv get_fdt_nfs 'nfs ${fdtaddr} ${serverip}:${rootpath}${bootdir}/${fdtfile}'
    => setenv rproc_load_and_boot_one 'if nfs $loadaddr ${serverip}:${rootpath}${rproc_fw};then if rproc load ${rproc_id} ${loadaddr} ${filesize}; then rpr
    oc start ${rproc_id};fi;fi'
    => setenv boot nfs
    => saveenv
    Saving Environment to MMC... Writing to MMC(0)... OK
    => run args_nfs
    => boot
    switch to partitions #0, OK
    mmc1 is current device
    SD/MMC found on device 1
    483 bytes read in 1 ms (471.7 KiB/s)
    Loaded env from uEnv.txt
    Importing environment from mmc1 ...
    Running uenvcmd ...
    1 bytes read in 2 ms (0 Bytes/s)
    Already setup.
    link up on port 1, speed 1000, full duplex
    Using ethernet@46000000 device
    File transfer via NFS from server 192.168.144.147; our IP address is 192.168.144.176
    Filename '/home/conti/ti/vision_demo_NFS/boot/Image'.
    Load address: 0x82000000
    Loading: #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             ######
    done
    Bytes transferred = 16666632 (fe5008 hex)
    link up on port 1, speed 1000, full duplex
    Using ethernet@46000000 device
    File transfer via NFS from server 192.168.144.147; our IP address is 192.168.144.176
    Filename '/home/conti/ti/vision_demo_NFS/boot/k3-j721e-common-proc-board.dtb'.
    Load address: 0x88000000
    Loading: ###################
    done
    Bytes transferred = 93829 (16e85 hex)
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Loading Device Tree to 000000008fee6000, end 000000008fffffff ... OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd080]
    [    0.000000] Linux version 5.4.74-g9574bba32a (oe-user@oe-host) (gcc version 9.2.1 20191025 (GNU Toolchain for the A-profile Architecture 9.2-2019.12
     (arm-9.10))) #1 SMP PREEMPT Mon Jan 25 04:03:30 UTC 2021
    [    0.000000] Machine model: Texas Instruments K3 J721E SoC
    [    0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002800000 (options '')
    [    0.000000] printk: bootconsole [ns16550a0] enabled
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a0000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a0000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a0100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@a0100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a1000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a1000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a1100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@a1100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a2000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a2000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a2100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@a2100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a3000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a3000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a3100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@a3100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a4000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a4000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a4100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@a4100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a5000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a5000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a5100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@a5100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a6000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node c66-dma-memory@a6000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a6100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node c66-memory@a6100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a7000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node c66-dma-memory@a7000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a7100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node c66-memory@a7100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a8000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node c71-dma-memory@a8000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a8100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node c71-memory@a8100000, compatible id shared-dma-pool
    [    0.000000] cma: Reserved 512 MiB at 0x00000000e0000000
    [    0.000000] psci: probing for conduit method from DT.
    [    0.000000] psci: PSCIv1.1 detected in firmware.
    [    0.000000] psci: Using standard PSCI v0.2 function IDs
    [    0.000000] psci: Trusted OS migration not required
    [    0.000000] psci: SMC Calling Convention v1.0
    [    0.000000] percpu: Embedded 2 pages/cpu s48408 r8192 d74472 u131072
    [    0.000000] Detected PIPT I-cache on CPU0
    [    0.000000] CPU features: detected: GIC system register CPU interface
    [    0.000000] CPU features: detected: EL2 vector hardening
    [    0.000000] Built 1 zonelists, mobility grouping off.  Total pages: 48144
    [    0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 mtdparts=47040000.spi.0:512k(ospi.tiboot3),2m(ospi.tispl
    ),4m(ospi.u-boot),128k(ospi.env),128k(ospi.env.backup),1m(ospi.sysfw),57216k@8m(ospi.rootfs),128k(ospi.phypattern);47034000.hyperbus:512k(hbmc.tiboot3)
    ,2m(hbmc.tispl),4m(hbmc.u-boot),256k(hbmc.env),1m(hbmc.sysfw),-@8m(hbmc.rootfs) root=/dev/nfs rw nfsroot=:/home/conti/ti/vision_demo_NFS,v3 ip=192.168.
    144.176
    [    0.000000] Dentry cache hash table entries: 524288 (order: 6, 4194304 bytes, linear)
    [    0.000000] Inode-cache hash table entries: 262144 (order: 5, 2097152 bytes, linear)
    [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
    [    0.000000] software IO TLB: mapped [mem 0xbbff0000-0xbfff0000] (64MB)
    [    0.000000] Memory: 3374528K/3084288K available (9598K kernel code, 788K rwdata, 3840K rodata, 1664K init, 683K bss, 18446744073708737088K reserved,
     524288K cma-reserved)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
    [    0.000000] rcu: Preemptible hierarchical RCU implementation.
    [    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=2.
    [    0.000000]  Tasks RCU enabled.
    [    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
    [    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
    [    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
    [    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
    [    0.000000] GICv3: 960 SPIs implemented
    [    0.000000] GICv3: 0 Extended SPIs implemented
    [    0.000000] GICv3: Distributor has no Range Selector support
    [    0.000000] GICv3: 16 PPIs implemented
    [    0.000000] GICv3: no VLPI support, no direct LPI support
    [    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000001900000
    [    0.000000] ITS [mem 0x01820000-0x0182ffff]
    [    0.000000] GIC: enabling workaround for ITS: Socionext Synquacer pre-ITS
    [    0.000000] ITS@0x0000000001820000: allocated 1048576 Devices @8c0800000 (flat, esz 8, psz 64K, shr 0)
    [    0.000000] ITS: using cache flushing for cmd queue
    [    0.000000] GICv3: using LPI property table @0x00000008c00c0000
    [    0.000000] GIC: using cache flushing for LPI property table
    [    0.000000] GICv3: CPU0: using allocated LPI pending table @0x00000008c00d0000
    [    0.000000] random: get_random_bytes called from start_kernel+0x2b8/0x43c with crng_init=0
    [    0.000000] arch_timer: cp15 timer(s) running at 200.00MHz (phys).
    [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049d3e8, max_idle_ns: 440795210634 ns
    [    0.000001] sched_clock: 56 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns
    [    0.008347] Console: colour dummy device 80x25
    [    0.012911] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000)
    [    0.023579] pid_max: default: 32768 minimum: 301
    [    0.028329] LSM: Security Framework initializing
    [    0.033075] Mount-cache hash table entries: 8192 (order: 0, 65536 bytes, linear)
    [    0.040642] Mountpoint-cache hash table entries: 8192 (order: 0, 65536 bytes, linear)
    [    0.049748] ASID allocator initialised with 32768 entries
    [    0.055333] rcu: Hierarchical SRCU implementation.
    [    0.060374] Platform MSI: gic-its@1820000 domain created
    [    0.066013] PCI/MSI: /bus@100000/interrupt-controller@1800000/gic-its@1820000 domain created
    [    0.074829] smp: Bringing up secondary CPUs ...
    [    0.080606] Detected PIPT I-cache on CPU1
    [    0.080631] GICv3: CPU1: found redistributor 1 region 0:0x0000000001920000
    [    0.080642] GICv3: CPU1: using allocated LPI pending table @0x00000008c00e0000
    [    0.080668] CPU1: Booted secondary processor 0x0000000001 [0x411fd080]
    [    0.080717] smp: Brought up 1 node, 2 CPUs
    [    0.110061] SMP: Total of 2 processors activated.
    [    0.114865] CPU features: detected: 32-bit EL0 Support
    [    0.120118] CPU features: detected: CRC32 instructions
    [    0.131910] CPU: All CPU(s) started at EL2
    [    0.136105] alternatives: patching kernel code
    [    0.141209] devtmpfs: initialized
    [    0.149372] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
    [    0.159340] futex hash table entries: 512 (order: -1, 32768 bytes, linear)
    [    0.167317] pinctrl core: initialized pinctrl subsystem
    [    0.173171] NET: Registered protocol family 16
    [    0.180689] DMA: preallocated 256 KiB pool for atomic allocations
    [    0.187241] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
    [    0.203283] HugeTLB registered 16.0 GiB page size, pre-allocated 0 pages
    [    0.210139] HugeTLB registered 512 MiB page size, pre-allocated 0 pages
    [    0.216899] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
    [    0.224915] cryptd: max_cpu_qlen set to 1000
    [    0.231168] vsys_3v3: supplied by evm_12v0
    [    0.235462] vsys_5v0: supplied by evm_12v0
    [    0.240051] iommu: Default domain type: Translated 
    [    0.245197] SCSI subsystem initialized
    [    0.249359] mc: Linux media interface: v0.10
    [    0.253730] videodev: Linux video capture interface: v2.00
    [    0.259340] pps_core: LinuxPPS API ver. 1 registered
    [    0.264410] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.273746] PTP clock support registered
    [    0.277758] EDAC MC: Ver: 3.0.0
    [    0.281473] FPGA manager framework
    [    0.284983] Advanced Linux Sound Architecture Driver Initialized.
    [    0.291611] clocksource: Switched to clocksource arch_sys_counter
    [    0.297925] VFS: Disk quotas dquot_6.6.0
    [    0.301966] VFS: Dquot-cache hash table entries: 8192 (order 0, 65536 bytes)
    [    0.311402] thermal_sys: Registered thermal governor 'step_wise'
    [    0.311404] thermal_sys: Registered thermal governor 'power_allocator'
    [    0.317831] NET: Registered protocol family 2
    [    0.329223] tcp_listen_portaddr_hash hash table entries: 4096 (order: 0, 65536 bytes, linear)
    [    0.337990] TCP established hash table entries: 32768 (order: 2, 262144 bytes, linear)
    [    0.346183] TCP bind hash table entries: 32768 (order: 3, 524288 bytes, linear)
    [    0.353985] TCP: Hash tables configured (established 32768 bind 32768)
    [    0.360715] UDP hash table entries: 2048 (order: 0, 65536 bytes, linear)
    [    0.367615] UDP-Lite hash table entries: 2048 (order: 0, 65536 bytes, linear)
    [    0.375040] NET: Registered protocol family 1
    [    0.379751] RPC: Registered named UNIX socket transport module.
    [    0.385804] RPC: Registered udp transport module.
    [    0.390607] RPC: Registered tcp transport module.
    [    0.395409] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.401994] PCI: CLS 0 bytes, default 64
    [    0.406345] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
    [    0.416289] Initialise system trusted keyrings
    [    0.420921] workingset: timestamp_bits=46 max_order=16 bucket_order=0
    [    0.429575] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.435829] NFS: Registering the id_resolver key type
    [    0.441001] Key type id_resolver registered
    [    0.445273] Key type id_legacy registered
    [    0.449370] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [    0.456328] 9p: Installing v9fs 9p2000 file system support
    [    0.468994] Key type asymmetric registered
    [    0.473180] Asymmetric key parser 'x509' registered
    [    0.478182] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
    [    0.485742] io scheduler mq-deadline registered
    [    0.490367] io scheduler kyber registered
    [    0.495645] pinctrl-single 4301c000.pinmux: 94 pins, size 376
    [    0.501730] pinctrl-single 11c000.pinmux: 173 pins, size 692
    [    0.509942] k3-ringacc 2b800000.ringacc: Failed to get MSI domain
    [    0.516230] k3-ringacc 3c000000.ringacc: Failed to get MSI domain
    [    0.522572] ti-pat 31010000.pat: Found PAT Rev 1.0 with 16384 pages
    [    0.528985] debugfs: Directory '31010000.pat' with parent 'regmap' already present!
    [    0.536955] ti-pat 31011000.pat: Found PAT Rev 1.0 with 16384 pages
    [    0.543371] debugfs: Directory '31011000.pat' with parent 'regmap' already present!
    [    0.551293] ti-pat 31012000.pat: Found PAT Rev 1.0 with 16384 pages
    [    0.557705] debugfs: Directory '31012000.pat' with parent 'regmap' already present!
    [    0.565624] ti-pat 31013000.pat: Found PAT Rev 1.0 with 2048 pages
    [    0.571947] debugfs: Directory '31013000.pat' with parent 'regmap' already present!
    [    0.579868] ti-pat 31014000.pat: Found PAT Rev 1.0 with 2048 pages
    [    0.586191] debugfs: Directory '31014000.pat' with parent 'regmap' already present!
    [    0.595585] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
    [    0.607516] brd: module loaded
    [    0.613775] loop: module loaded
    [    0.618550] libphy: Fixed MDIO Bus: probed
    [    0.622917] tun: Universal TUN/TAP device driver, 1.6
    [    0.628359] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.4.0-k
    [    0.636364] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
    [    0.642430] sky2: driver version 1.30
    [    0.646724] VFIO - User Level meta-driver version: 0.3
    [    0.652337] i2c /dev entries driver
    [    0.656419] sdhci: Secure Digital Host Controller Interface driver
    [    0.662734] sdhci: Copyright(c) Pierre Ossman
    [    0.667397] sdhci-pltfm: SDHCI platform and OF driver helper
    [    0.673656] ledtrig-cpu: registered to indicate activity on CPUs
    [    0.680428] optee: probing for conduit method from DT.
    [    0.685700] optee: revision 3.8 (199fca17)
    [    0.685995] optee: initialized driver
    [    0.694776] NET: Registered protocol family 17
    [    0.699397] 9pnet: Installing 9P2000 support
    [    0.703783] Key type dns_resolver registered
    [    0.708293] registered taskstats version 1
    [    0.712479] Loading compiled-in X.509 certificates
    [    0.721373] k3-ringacc 2b800000.ringacc: Failed to get MSI domain
    [    0.727699] k3-ringacc 3c000000.ringacc: Failed to get MSI domain
    [    0.735849] ti-sci 44083000.dmsc: ABI: 3.1 (firmware rev 0x0014 '20.8.5--v2020.08b (Terrific Lla')
    [    0.845565] random: fast init done
    [    1.018309] davinci-mcasp 2ba0000.mcasp: IRQ common not found
    [    1.028231] omap_i2c 40b00000.i2c: bus 0 rev0.12 at 100 kHz
    [    1.034523] omap_i2c 40b10000.i2c: bus 1 rev0.12 at 100 kHz
    [    1.040948] omap_i2c 42120000.i2c: bus 2 rev0.12 at 100 kHz
    [    1.047448] pca953x 3-0020: 3-0020 supply vcc not found, using dummy regulator
    [    1.054867] pca953x 3-0020: using no AI
    [    1.080126] pca953x 3-0022: 3-0022 supply vcc not found, using dummy regulator
    [    1.087527] pca953x 3-0022: using AI
    [    1.091794] GPIO line 481 (MCASP/TRACE_MUX_S0) hogged as output/low
    [    1.098388] GPIO line 482 (MCASP/TRACE_MUX_S1) hogged as output/high
    [    1.105218] omap_i2c 2000000.i2c: bus 3 rev0.12 at 400 kHz
    [    1.111545] omap_i2c 2010000.i2c: bus 4 rev0.12 at 400 kHz
    [    1.117783] omap_i2c 2020000.i2c: bus 5 rev0.12 at 100 kHz
    [    1.124036] pca953x 6-0020: 6-0020 supply vcc not found, using dummy regulator
    [    1.131450] pca953x 6-0020: using no AI
    [    1.155975] omap_i2c 2030000.i2c: bus 6 rev0.12 at 400 kHz
    [    1.162222] omap_i2c 2040000.i2c: bus 7 rev0.12 at 100 kHz
    [    1.168431] omap_i2c 2050000.i2c: bus 8 rev0.12 at 100 kHz
    [    1.174670] pca953x 9-0020: 9-0020 supply vcc not found, using dummy regulator
    [    1.182077] pca953x 9-0020: using no AI
    [    1.207942] omap_i2c 2060000.i2c: bus 9 rev0.12 at 400 kHz
    [    1.214541] ti-sci-intr bus@100000:bus@28380000:interrupt-controller2: Interrupt Router 137 domain created
    [    1.224821] ti-sci-intr bus@100000:interrupt-controller0: Interrupt Router 131 domain created
    [    1.233994] ti-sci-intr bus@100000:navss@30000000:interrupt-controller1: Interrupt Router 213 domain created
    [    1.244821] ti-sci-inta 33d00000.interrupt-controller: Interrupt Aggregator domain 209 created
    [    1.282059] cdns-torrent-phy 5050000.serdes: 4 lanes, max bit rate 5.400 Gbps
    [    2.292036] j721e-pcie 2900000.pcie: host bridge /bus@100000/pcie@2900000 ranges:
    [    2.299710] j721e-pcie 2900000.pcie:    IO 0x10001000..0x10010fff -> 0x10001000
    [    2.307188] j721e-pcie 2900000.pcie:   MEM 0x10011000..0x17ffffff -> 0x10011000
    [    2.314732] j721e-pcie 2900000.pcie: PCI host bridge to bus 0000:00
    [    2.321137] pci_bus 0000:00: root bus resource [bus 00-0f]
    [    2.326742] pci_bus 0000:00: root bus resource [io  0x0000-0xffff] (bus address [0x10001000-0x10010fff])
    [    2.336432] pci_bus 0000:00: root bus resource [mem 0x10011000-0x17ffffff]
    [    2.343471] pci 0000:00:00.0: [104c:b00d] type 01 class 0x060400
    [    2.349621] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x4 may corrupt adjacent RW1C bits
    [    2.359491] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x4 may corrupt adjacent RW1C bits
    [    2.369377] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0xe8 may corrupt adjacent RW1C bits
    [    2.379335] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x3e may corrupt adjacent RW1C bits
    [    2.389301] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x92 may corrupt adjacent RW1C bits
    [    2.399260] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0xb2 may corrupt adjacent RW1C bits
    [    2.409245] pci 0000:00:00.0: supports D1
    [    2.413338] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
    [    2.419210] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x84 may corrupt adjacent RW1C bits
    [    2.430788] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
    [    2.438975] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x3e may corrupt adjacent RW1C bits
    [    2.448934] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x3e may corrupt adjacent RW1C bits
    [    2.458892] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x3e may corrupt adjacent RW1C bits
    [    2.470249] pci_bus 0000:01: busn_res: [bus 01-0f] end is updated to 01
    [    2.477017] pci 0000:00:00.0: PCI bridge to [bus 01]
    [    2.482278] pcieport 0000:00:00.0: PME: Signaling with IRQ 44
    [    2.488280] pcieport 0000:00:00.0: AER: enabled with IRQ 44
    [    3.497706] j721e-pcie 2910000.pcie: host bridge /bus@100000/pcie@2910000 ranges:
    [    3.505385] j721e-pcie 2910000.pcie:    IO 0x18001000..0x18010fff -> 0x18001000
    [    3.512862] j721e-pcie 2910000.pcie:   MEM 0x18011000..0x1fffffff -> 0x18011000
    [    3.520397] j721e-pcie 2910000.pcie: PCI host bridge to bus 0001:00
    [    3.526803] pci_bus 0001:00: root bus resource [bus 00-0f]
    [    3.532407] pci_bus 0001:00: root bus resource [io  0x10000-0x1ffff] (bus address [0x18001000-0x18010fff])
    [    3.542274] pci_bus 0001:00: root bus resource [mem 0x18011000-0x1fffffff]
    [    3.549310] pci 0001:00:00.0: [104c:b00d] type 01 class 0x060400
    [    3.555515] pci 0001:00:00.0: supports D1
    [    3.559609] pci 0001:00:00.0: PME# supported from D0 D1 D3hot
    [    3.567000] pci 0001:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
    [    3.576588] pci_bus 0001:01: busn_res: [bus 01-0f] end is updated to 01
    [    3.583353] pci 0001:00:00.0: PCI bridge to [bus 01]
    [    3.588593] pcieport 0001:00:00.0: PME: Signaling with IRQ 47
    [    3.594587] pcieport 0001:00:00.0: AER: enabled with IRQ 47
    [    4.603834] j721e-pcie 2920000.pcie: host bridge /bus@100000/pcie@2920000 ranges:
    [    4.611516] j721e-pcie 2920000.pcie:    IO 0x4400001000..0x4400010fff -> 0x00001000
    [    4.619348] j721e-pcie 2920000.pcie:   MEM 0x4400011000..0x4407ffffff -> 0x00011000
    [    4.627238] j721e-pcie 2920000.pcie: PCI host bridge to bus 0002:00
    [    4.633643] pci_bus 0002:00: root bus resource [bus 00-0f]
    [    4.639248] pci_bus 0002:00: root bus resource [io  0x20000-0x2ffff] (bus address [0x1000-0x10fff])
    [    4.648494] pci_bus 0002:00: root bus resource [mem 0x4400011000-0x4407ffffff] (bus address [0x00011000-0x07ffffff])
    [    4.659261] pci 0002:00:00.0: [104c:b00d] type 01 class 0x060400
    [    4.665464] pci 0002:00:00.0: supports D1
    [    4.669558] pci 0002:00:00.0: PME# supported from D0 D1 D3hot
    [    4.676981] pci 0002:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
    [    4.686567] pci_bus 0002:01: busn_res: [bus 01-0f] end is updated to 01
    [    4.693334] pci 0002:00:00.0: PCI bridge to [bus 01]
    [    4.698578] pcieport 0002:00:00.0: PME: Signaling with IRQ 50
    [    4.704576] pcieport 0002:00:00.0: AER: enabled with IRQ 50
    [    4.711395] k3-ringacc 2b800000.ringacc: Ring Accelerator probed rings:286, gp-rings[96,20] sci-dev-id:235
    [    4.721279] k3-ringacc 2b800000.ringacc: dma-ring-reset-quirk: disabled
    [    4.728039] k3-ringacc 2b800000.ringacc: RA Proxy rev. 66346100, num_proxies:64
    [    4.737291] k3-ringacc 3c000000.ringacc: Ring Accelerator probed rings:1024, gp-rings[440,150] sci-dev-id:211
    [    4.747435] k3-ringacc 3c000000.ringacc: dma-ring-reset-quirk: disabled
    [    4.754193] k3-ringacc 3c000000.ringacc: RA Proxy rev. 66346100, num_proxies:64
    [    4.762488] 40a00000.serial: ttyS1 at MMIO 0x40a00000 (irq = 7, base_baud = 6000000) is a 8250
    [    4.772057] 2800000.serial: ttyS2 at MMIO 0x2800000 (irq = 23, base_baud = 3000000) is a 8250
    [    4.780800] printk: console [ttyS2] enabled
    [    4.780800] printk: console [ttyS2] enabled
    [    4.789237] printk: bootconsole [ns16550a0] disabled
    [    4.789237] printk: bootconsole [ns16550a0] disabled
    [    4.799897] 2810000.serial: ttyS3 at MMIO 0x2810000 (irq = 24, base_baud = 3000000) is a 8250
    [    4.809124] 2840000.serial: ttyS6 at MMIO 0x2840000 (irq = 25, base_baud = 3000000) is a 8250
    [    4.818258] arm-smmu-v3 36600000.smmu: ias 48-bit, oas 48-bit (features 0x00001faf)
    [    4.827126] arm-smmu-v3 36600000.smmu: allocated 524288 entries for cmdq
    [    4.835868] arm-smmu-v3 36600000.smmu: allocated 524288 entries for evtq
    [    4.843408] arm-smmu-v3 36600000.smmu: msi_domain absent - falling back to wired irqs
    [    4.855647] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vdd-hba-supply regulator, assuming enabled
    [    4.866170] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vcc-supply regulator, assuming enabled
    [    4.876330] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vccq-supply regulator, assuming enabled
    [    4.886569] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vccq2-supply regulator, assuming enabled
    [    4.899650] scsi host0: ufshcd
    [    4.921499] cdns-ufshcd 4e84000.ufs: ufshcd_print_pwr_info:[RX, TX]: gear=[1, 1], lane[1, 1], pwr[SLOWAUTO_MODE, SLOWAUTO_MODE], rate = 0
    [    4.951617] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [    4.959261] cdns-ufshcd 4e84000.ufs: ufshcd_print_pwr_info:[RX, TX]: gear=[3, 3], lane[2, 2], pwr[FAST MODE, FAST MODE], rate = 2
    [    4.970889] libphy: 46000f00.mdio: probed
    [    4.974890] cdns-ufshcd 4e84000.ufs: ufshcd_find_max_sup_active_icc_level: Regulator capability was not set, actvIccLevel=0
    [    4.975997] davinci_mdio 46000f00.mdio: phy[0]: device 46000f00.mdio:00, driver TI DP83867
    [    4.994274] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA00101, cpsw version 0x6BA80100 Ports: 2 quirks:00000000
    [    5.007078] scsi 0:0:0:49488: Well-known LUN    TOSHIBA  THGAF8G8T23BAILB 0300 PQ: 0 ANSI: 6
    [    5.007128] am65-cpsw-nuss 46000000.ethernet: Failed to request tx dma channel -517
    [    5.023542] scsi 0:0:0:49476: Well-known LUN    TOSHIBA  THGAF8G8T23BAILB 0300 PQ: 0 ANSI: 6
    [    5.026799] am65-cpts 310d0000.cpts: CPTS ver 0x4e8a010a, freq:200000000, add_val:4 pps:0
    [    5.040518] cdns-ufshcd 4e84000.ufs: ufshcd_scsi_add_wlus: BOOT WLUN not found
    [    5.041257] mmc0: CQHCI version 5.10
    [    5.090188] mmc0: SDHCI controller on 4f80000.sdhci [4f80000.sdhci] using ADMA 64-bit
    [    5.100819] davinci-mcasp 2ba0000.mcasp: IRQ common not found
    [    5.127323] vdd_mmc1: supplied by vsys_3v3
    [    5.132196] pca953x 4-0020: 4-0020 supply vcc not found, using dummy regulator
    [    5.139447] pca953x 4-0020: using no AI
    [    5.164157] GPIO line 200 (DP0_PWR_SW_EN) hogged as output/high
    [    5.171975] omap-mailbox 31f80000.mailbox: omap mailbox rev 0x66fc7100
    [    5.180028] omap-mailbox 31f81000.mailbox: omap mailbox rev 0x66fc7100
    [    5.188087] omap-mailbox 31f82000.mailbox: omap mailbox rev 0x66fc7100
    [    5.196126] omap-mailbox 31f83000.mailbox: omap mailbox rev 0x66fc7100
    [    5.204171] omap-mailbox 31f84000.mailbox: omap mailbox rev 0x66fc7100
    [    5.216593] mmc0: Command Queue Engine enabled
    [    5.221045] mmc0: new HS200 MMC card at address 0001
    [    5.226228] ti-udma 285c0000.dma-controller: Channels: 24 (tchan: 12, rchan: 12, gp-rflow: 8)
    [    5.235072] mmcblk0: mmc0:0001 S0J56X 14.8 GiB 
    [    5.239740] mmcblk0boot0: mmc0:0001 S0J56X partition 1 31.5 MiB
    [    5.246375] mmcblk0boot1: mmc0:0001 S0J56X partition 2 31.5 MiB
    [    5.252396] mmcblk0rpmb: mmc0:0001 S0J56X partition 3 4.00 MiB, chardev (240:0)
    [    5.263357] ti-udma 31150000.dma-controller: Channels: 84 (tchan: 42, rchan: 42, gp-rflow: 16)
    [    5.296153] cadence-qspi 47040000.spi: PHY calibration failed: -2
    [    5.302240] spi-nor spi0.0: mt35xu512aba (65536 Kbytes)
    [    5.307461] 8 cmdlinepart partitions found on MTD device 47040000.spi.0
    [    5.314059] Creating 8 MTD partitions on "47040000.spi.0":
    [    5.319532] 0x000000000000-0x000000080000 : "ospi.tiboot3"
    [    5.325576] 0x000000080000-0x000000280000 : "ospi.tispl"
    [    5.331245] 0x000000280000-0x000000680000 : "ospi.u-boot"
    [    5.337025] 0x000000680000-0x0000006a0000 : "ospi.env"
    [    5.342620] 0x0000006a0000-0x0000006c0000 : "ospi.env.backup"
    [    5.348748] 0x0000006c0000-0x0000007c0000 : "ospi.sysfw"
    [    5.354501] 0x000000800000-0x000003fe0000 : "ospi.rootfs"
    [    5.360293] 0x000003fe0000-0x000004000000 : "ospi.phypattern"
    [    5.374903] spi-nor spi1.0: mt25qu512a (65536 Kbytes)
    [    5.419629] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [    5.427275] libphy: 46000f00.mdio: probed
    [    5.432354] davinci_mdio 46000f00.mdio: phy[0]: device 46000f00.mdio:00, driver TI DP83867
    [    5.440615] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA00101, cpsw version 0x6BA80100 Ports: 2 quirks:00000000
    [    5.457713] am65-cpsw-nuss 46000000.ethernet: set new flow-id-base 48
    [    5.466277] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 57.4
    [    5.473574] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64
    [    5.480545] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a010a, freq:500000000, add_val:1 pps:0
    [    5.492818] mmc1: CQHCI version 5.10
    [    6.565152] mmc1: SDHCI controller on 4fb0000.sdhci [4fb0000.sdhci] using ADMA 64-bit
    [    6.574105] davinci-mcasp 2ba0000.mcasp: IRQ common not found
    [    6.610833] debugfs: Directory 'pd:242' with parent 'pm_genpd' already present!
    [    6.618280] debugfs: Directory 'pd:241' with parent 'pm_genpd' already present!
    [    6.625590] debugfs: Directory 'pd:240' with parent 'pm_genpd' already present!
    [    6.632975] debugfs: Directory 'pd:239' with parent 'pm_genpd' already present!
    [    6.641166] input: gpio-keys as /devices/platform/gpio-keys/input/input0
    [    6.648285] hctosys: unable to open rtc device (rtc0)
    [    6.667275] TI DP83867 46000f00.mdio:00: attached PHY driver [TI DP83867] (mii_bus:phy_addr=46000f00.mdio:00, irq=POLL)
    [    6.679901] am65-cpsw-nuss 46000000.ethernet eth0: Link is Down
    [    6.695359] mmc1: new ultra high speed DDR50 SDHC card at address aaaa
    [    6.702301] mmcblk1: mmc1:aaaa SP32G 29.7 GiB 
    [    6.710968]  mmcblk1: p1 p2
    [   10.768458] am65-cpsw-nuss 46000000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
    [   10.799612] Sending DHCP requests ...... timed out!
    [   82.932906] am65-cpsw-nuss 46000000.ethernet eth0: Link is Down
    [   82.943071] IP-Config: Retrying forever (NFS root)...
    [   82.955426] TI DP83867 46000f00.mdio:00: attached PHY driver [TI DP83867] (mii_bus:phy_addr=46000f00.mdio:00, irq=POLL)
    [   82.967841] am65-cpsw-nuss 46000000.ethernet eth0: Link is Down
    [   87.056448] am65-cpsw-nuss 46000000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
    [   87.087611] Sending DHCP requests ., OK
    [   87.107444] IP-Config: Got DHCP answer from 192.168.144.1, my address is 192.168.144.176
    [   87.115519] IP-Config: Complete:
    [   87.118738]      device=eth0, hwaddr=e4:15:f6:58:30:b1, ipaddr=192.168.144.176, mask=255.255.255.0, gw=192.168.144.1
    [   87.129235]      host=192.168.144.176, domain=, nis-domain=(none)
    [   87.135312]      bootserver=192.168.144.1, rootserver=192.168.144.1, rootpath=, mtu=1500
    [   87.135314]      nameserver0=192.168.144.1
    [   87.261681] ALSA device list:
    [   87.264642]   No soundcards found.
    

  • Hi Benone,

    Issue is that it is not able to find the file system on nfs and its hanging.
    Could you re-check at your end?

    I will try at my end as well.

    Best Regards,
    keerthy

  • Hi Keerthy,

    Thank you very much for providing me the hints. As you have mentioned, the boot process stops because is not able to find the file system on NFS. To backtrack a bit, the issue comes from this line:

    setenv init_nfs 'run args_all args_nfs; setenv autoload no;setenv serverip ${serverip_to_set}'  

    it looks like the serverip is not always set; hence the following line will fail

    setenv args_nfs 'setenv bootargs console=${console} ${optargs} root=/dev/nfs rw nfsroot=\${serverip}:\${rootpath},v3 ip=${ipaddr}'

    The failure happens by setting the nfsroot; instead of setting it to nfsroot=IP:PATH it sets it to nfsroot=:PATH. 

    For solving the issue, I have run the run init_nfs before boot command.

    I have attached my working minicom script. Hopefully it helps someone else too.

    Thank you for your support,

    Benone

    timeout 300
    verbose on
    expect {
        "stop autoboot:"
    }
    send " "
    
    expect {
        "=>"
    }
    send "env default -f -a"
    
    expect {
        "=>"
    }
    
    send "saveenv"
    
    expect {
        "=>"
    }
    
    send "reset"
    
    expect {
        "stop autoboot:"
    }
    
    send " "
    
    expect {
        "=>"
    }
    
    send "setenv serverip_to_set 192.168.144.147"
    
    expect {
        "=>"
    }
    
    send "setenv ipaddr 192.168.144.176"
    
    expect {
        "=>"
    }
    
    send "setenv netmask 255.255.255.0"
    
    expect {
        "=>"
    }
    
    send "setenv hostname evm7"
    
    expect {
        "=>"
    }
    
    send "setenv gatewayip 192.168.144.147"
    
    expect {
        "=>"
    }
    
    send "setenv rootpath /home/conti/ti/vision_demo_NFS"
    
    expect {
        "=>"
    }
    
    send "setenv init_nfs 'run args_all args_nfs; setenv autoload no;setenv serverip ${serverip_to_set}' "
    
    expect {
        "=>"
    }
    
    send "setenv args_nfs 'setenv bootargs console=${console} ${optargs} root=/dev/nfs rw nfsroot=\${serverip}:\${rootpath},v3 ip=${ipaddr}'"
    
    expect {
        "=>"
    }
    
    send "setenv get_overlay_nfs 'fdt address ${fdtaddr};fdt resize 0x100000;for overlay in $overlay_files;do;nfs ${overlayaddr} ${serverip}:${rootpath}${bootdir}/${overlay} && fdt apply ${overlayaddr};done;'"
    
    expect {
        "=>"
    }
    
    send "setenv get_kern_nfs 'nfs ${loadaddr} ${serverip}:${rootpath}${bootdir}/${name_kern}'"
    
    expect {
        "=>"
    }
    
    send "setenv get_fdt_nfs 'nfs ${fdtaddr} ${serverip}:${rootpath}${bootdir}/${fdtfile}'"
    
    expect {
        "=>"
    }
    
    send "setenv boot_rprocs 'if test ${dorprocboot} -eq 1; then rproc init;run boot_rprocs_mmc;fi;'"
    
    expect {
        "=>"
    }
    
    send "setenv rproc_load_and_boot_one 'if nfs $loadaddr ${serverip}:${rootpath}${rproc_fw};then if rproc load ${rproc_id} ${loadaddr} ${filesize}; then rproc start ${rproc_id};fi;fi'"
    
    expect {
        "=>"
    }
    
    send "setenv boot nfs"
    
    expect {
        "=>"
    }
    
    send "saveenv"
    
    expect {
        "=>"
    }
    
    send "run init_nfs"
    
    expect {
        "=>"
    }
    send "boot"
    

  • Hi Benone,

    Great! Thanks for sharing your findings. Glad you are unblocked! I will get this documentation fixed.

    Cheers,
    Keerthy