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.

66AK2G12: Linux: Boot hangs at Starting kernel...

Part Number: 66AK2G12


Hi,

I am designing a custom board with 66AK2G12, I am using the SDK Linux 06_01_00_08 and I am doing some test with k2g-evm board. I was able to flash the QSPI via DFU-USB and u-boot start correctly but the boot hangs at the following point:

U-Boot 2019.01-g171fca6551-dirty (Mar 06 2020 - 03:00:28 -0800)

CPU: 66AK2Gx-100 SR1.0
Model: Texas Instruments K2G General Purpose EVM
DRAM:
Clear entire DDR3 memory to enable ECC
2 GiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from FAT... Card did not respond to voltage select!
Loading Environment from SPI Flash... SF: Detected s25fl512s_256k with page size 256 Bytes, erase size 256 KiB, total 64 MiB
*** Warning - bad CRC, using default environment

In:    serial@02530c00
Out:   serial@02530c00
Err:   serial@02530c00
Net:
Warning: netcp@4000000 using MAC address from ROM
eth0: netcp@4000000
Hit any key to stop autoboot:  0
2 Found keystone-k2g-evm.dtb
Running spiargs ...
Booting from spi ...
Running spiargs ...
SF: Detected s25fl512s_256k with page size 256 Bytes, erase size 256 KiB, total 64 MiB
device 0 offset 0x1b0000, size 0x800000
SF: 8388608 bytes @ 0x1b0000 Read: OK
device 0 offset 0x160000, size 0x40000
SF: 262144 bytes @ 0x160000 Read: OK
magic:                  0xd00dfeed
totalsize:              0x73a7 (29607)
off_dt_struct:          0x38
off_dt_strings:         0x6acc
off_mem_rsvmap:         0x28
version:                17
last_comp_version:      16
boot_cpuid_phys:        0x0
size_dt_strings:        0x8db
size_dt_struct:         0x6a94
number mem_rsv:         0x0

Start Boot
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Device Tree to 8fff5000, end 8ffff3a6 ... OK

Starting kernel ...

The printenv in u-boot shows the following result:

=> pri
addr_load_sec_bm=0x0c09c000
addr_mon=0x87000000
addr_non_sec_mon=0x0c097fc0
addr_secdb_key=0xc000000
addr_ubi=0x82000000
arch=arm
args_all=setenv bootargs console=ttyS0,115200n8 rootwait=1 mtdparts=spi1.0:1m(u-boot-spl)ro,-(misc);
args_mmc=run finduuid;setenv bootargs console=${console} ${optargs} root=PARTUUID=${uuid} rw rootfstype=${mmcrootfstype}
args_net=setenv bootargs ${bootargs} rootfstype=nfs root=/dev/nfs rw nfsroot=${serverip}:${nfs_root},${nfs_options} ip=dhcp
args_ramfs=setenv bootargs ${bootargs} rdinit=/sbin/init rw root=/dev/ram0 initrd=0x808080000,80M
args_ubi=setenv bootargs ${bootargs} rootfstype=ubifs root=ubi0:rootfs rootflags=sync rw ubi.mtd=ubifs,2048
baudrate=115200
board=ks2_evm
board_name=66AK2GG1
boot=mmc
boot_fdt=try
boot_fit=0
bootcmd=run findfdt; run spiargs; run spiboot;
bootdelay=2
bootdir=/boot
bootenvfile=uEnv.txt
bootfile=zImage
bootm_size=0x10000000
bootpart=0:2
bootscript=echo Running bootscript from mmc${mmcdev} ...; source ${loadaddr}
burn_ubi=nand erase.part ubifs; nand write ${addr_ubi} ubifs ${filesize}
burn_uboot_nand=nand erase 0 0x100000; nand write ${loadaddr} 0 ${filesize}
burn_uboot_spi=sf probe; sf erase 0 0x100000; sf write ${loadaddr} 0 ${filesize}
console=ttyO0,115200n8 earlyprintk
cpu=armv7
dev_pmmc=0
dfu_alt_info_mmc=boot part 0 1;rootfs part 0 2;MLO fat 0 1;MLO.raw raw 0x100 0x200;u-boot.img.raw raw 0x300 0x1000;u-env.raw raw 0x1300 0x200;spl-os-args.raw raw 0x1500 0x200;spl-os-image.raw raw 0x1700 0x6900;spl-os-args fat 0 1;spl-os-image fat 0 1;u-boot.img fat 0 1;uEnv.txt fat 0 1
dfu_alt_info_qspi=MLO raw 0x00000000 0x000B0000;u-boot.img raw 0x000B0000 0x000B0000;blob raw 0x00160000 0x00040000;skern raw 0x001A0000 0x00010000;kernel raw 0x001B0000 0x0800000;file-system raw 0x009B0000 0x2700000
dfu_alt_info_ram=MLO ram 0x80000000 0x00B0000;u-boot.img ram 0x800B0000 0x00B0000;blob ram 0x80160000 0x00040000;skern ram 0x801A0000 0x00010000;kernel ram 0x801B0000 0x0800000;file-system ram 0x809B0000 0x2700000
dfu_bufsiz=0x10000
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;
ethaddr=70:ff:76:1c:67:ed
fdt_addr_r=0x88000000
fdtaddr=0x88000000
fdtcontroladdr=fdeff738
fdtfile=undefined
findfdt=if test $board_name = 66AK2GGP; then echo 1 Found keystone-k2g-evm.dtb; setenv name_fdt keystone-k2g-evm.dtb; else if test $board_name = 66AK2GG1; then echo 2 Found keystone-k2g-evm.dtb; setenv name_fdt keystone-k2g-evm.dtb; else if test $board_name = 66AK2GIC; then echo 1 Found keystone-k2g-ice.dtb; setenv name_fdt keystone-k2g-ice.dtb; else if test $name_fdt = undefined; then echo WARNING: Could not determine device tree to use;fi;fi;fi;fi; setenv fdtfile ${name_fdt}
finduuid=part uuid mmc ${bootpart} uuid
fit_bootfile=fitImage
fit_loadaddr=0x90000000
get_fdt_mmc=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${name_fdt}
get_fdt_net=dhcp ${fdtaddr} ${tftp_root}/${name_fdt}
get_fdt_nfs=nfs ${fdtaddr} ${nfs_root}/boot/${name_fdt}
get_fdt_ramfs=dhcp ${fdtaddr} ${tftp_root}/${name_fdt}
get_fdt_ubi=ubifsload ${fdtaddr} ${bootdir}/${name_fdt}
get_fit_mmc=load mmc ${bootpart} ${fit_loadaddr} ${bootdir}/${fit_bootfile}
get_fit_net=dhcp ${fit_loadaddr} ${tftp_root}/${fit_bootfile}
get_fit_nfs=nfs ${fit_loadaddr} ${nfs_root}/boot/${fit_bootfile}
get_fit_ramfs=dhcp ${fit_loadaddr} ${tftp_root}/${fit_bootfile}
get_fit_ubi=ubifsload ${fit_loadaddr} ${bootdir}/${fit_bootfile}
get_fs_ramfs=dhcp ${rdaddr} ${tftp_root}/${name_fs}
get_kern_mmc=load mmc ${bootpart} ${loadaddr} ${bootdir}/${name_kern}
get_kern_net=dhcp ${loadaddr} ${tftp_root}/${name_kern}
get_kern_nfs=nfs ${loadaddr} ${nfs_root}/boot/${name_kern}
get_kern_ramfs=dhcp ${loadaddr} ${tftp_root}/${name_kern}
get_kern_ubi=ubifsload ${loadaddr} ${bootdir}/${name_kern}
get_mon_mmc=load mmc ${bootpart} ${addr_mon} ${bootdir}/${name_mon}
get_mon_net=dhcp ${addr_mon} ${tftp_root}/${name_mon}
get_mon_nfs=nfs ${addr_mon} ${nfs_root}/boot/${name_mon}
get_mon_ramfs=dhcp ${addr_mon} ${tftp_root}/${name_mon}
get_mon_ubi=ubifsload ${addr_mon} ${bootdir}/${name_mon}
get_overlaystring=for overlay in $overlay_files;do;setenv overlaystring ${overlaystring}'#'${overlay};done;
get_pmmc_mmc=load mmc ${bootpart} ${loadaddr} ${bootdir}/${name_pmmc}
get_pmmc_net=dhcp ${loadaddr} ${tftp_root}/${name_pmmc}
get_pmmc_nfs=nfs ${loadaddr} ${nfs_root}/boot/${name_pmmc}
get_pmmc_ramfs=run get_pmmc_net
get_pmmc_ubi=ubifsload ${loadaddr} ${bootdir}/${name_pmmc}
get_ubi_net=dhcp ${addr_ubi} ${tftp_root}/${name_ubi}
get_ubi_nfs=nfs ${addr_ubi} ${nfs_root}/boot/${name_ubi}
get_uboot_net=dhcp ${loadaddr} ${tftp_root}/${name_uboot}
get_uboot_nfs=nfs ${loadaddr} ${nfs_root}/boot/${name_uboot}
importbootenv=echo Importing environment from mmc${mmcdev} ...; env import -t ${loadaddr} ${filesize}
init_fw_rd_mmc=load mmc ${bootpart} ${rdaddr} ${bootdir}/${name_fw_rd}; run set_rd_spec
init_fw_rd_net=dhcp ${rdaddr} ${tftp_root}/${name_fw_rd}; run set_rd_spec
init_fw_rd_nfs=nfs ${rdaddr} ${nfs_root}/boot/${name_fw_rd}; run set_rd_spec
init_fw_rd_ramfs=setenv rd_spec -
init_fw_rd_ubi=ubifsload ${rdaddr} ${bootdir}/${name_fw_rd}; run set_rd_spec
init_mmc=run args_all args_mmc
init_net=run args_all args_net
init_nfs=setenv autoload no; dhcp; run args_all args_net
init_ramfs=run args_all args_ramfs get_fs_ramfs
init_ubi=run args_all args_ubi; ubi part ubifs; ubifsmount ubi:rootfs;
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}
loadfit=run args_mmc; run run_fit;
loadimage=load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${bootfile}
loadramdisk=load mmc ${mmcdev} ${rdaddr} ramdisk.gz
mem_lpae=1
mmcboot=mmc dev ${mmcdev}; setenv devnum ${mmcdev}; setenv devtype mmc; if mmc rescan; then echo SD/MMC found on device ${mmcdev};if run loadimage; then if test ${boot_fit} -eq 1; then run loadfit; else run mmcloados;fi;fi;fi;
mmcdev=0
mmcloados=run args_mmc; 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
mtdparts=mtdparts=davinci_nand.0:1024k(bootloader)ro,512k(params)ro,-(ubifs)
name_fs=arago-base-tisdk-image-k2g-evm.cpio
name_fw_rd=k2-fw-initrd.cpio.gz
name_kern=zImage
name_mon=skern-k2g.bin
name_ubi=k2g-evm-ubifs.ubi
name_uboot=u-boot-spi-k2g-evm.gph
nfs_options=v3,tcp,rsize=4096,wsize=4096
nfs_root=/export
no_post=1
partitions=uuid_disk=${uuid_gpt_disk};name=bootloader,start=384K,size=1792K,uuid=${uuid_gpt_bootloader};name=rootfs,start=2688K,size=-,uuid=${uuid_gpt_rootfs}
pxefile_addr_r=0x80100000
ramargs=setenv bootargs console=${console} ${optargs} root=${ramroot} rootfstype=${ramrootfstype}
ramboot=echo Booting from ramdisk ...; run ramargs; bootz ${loadaddr} ${rdaddr} ${fdtaddr}
ramdisk_addr_r=0x88080000
ramroot=/dev/ram0 rw
ramrootfstype=ext2
rd_spec=-
rdaddr=0x88080000
run_fit=bootm ${fit_loadaddr}#${fdtfile}${overlaystring}
run_kern=bootz ${loadaddr} ${rd_spec} ${fdtaddr}
run_mon=mon_install ${addr_mon}
run_mon_hs=mon_install ${addr_non_sec_mon} ${addr_load_sec_bm}
run_pmmc=rproc init; rproc list; rproc load ${dev_pmmc} ${loadaddr} 0x${filesize}; rproc start ${dev_pmmc}
scriptaddr=0x80000000
set_name_pmmc=setenv name_pmmc ti-sci-firmware-${soc_variant}.bin
set_rd_spec=setenv rd_spec ${rdaddr}:${filesize}
soc=keystone
soc_variant=k2g
spiargs=echo Running spiargs ...; setenv bootargs console=${console} ${optargs} root=${spiroot} rootfstype=${spirootfstype}
spiboot=echo Booting from spi ...; run spiargs; sf probe ${spibusno}:0; sf read ${loadaddr} ${spisrcaddr} ${spiimgsize}; sf read ${fdtaddr} ${spifdtaddr} ${spifdtsize}; fdt addr ${fdtaddr}; fdt header; echo Start Boot; bootz ${loadaddr} - ${fdtaddr}
spibusno=4
spifdtaddr=0x160000
spifdtsize=0x40000
spiimgsize=0x800000
spiroot=/dev/mtdblock5 rw
spirootfstype=jffs2
spisrcaddr=0x1b0000
stderr=serial@02530c00
stdin=serial@02530c00
stdout=serial@02530c00
tftp_root=/
update_to_fit=setenv loadaddr ${fit_loadaddr}; setenv bootfile ${fit_bootfile}
vendor=ti
ver=U-Boot 2019.01-g171fca6551-dirty (Mar 06 2020 - 03:00:28 -0800)

Environment size: 8462/262139 bytes

In keystone-k2g-evm.dts I modified the QSPI partitions to adapt my needs and I generated the relative .dtb:

&qspi {
	status = "okay";
	pinctrl-names = "default";
	pinctrl-0 = <&qspi_pins>;
	cdns,rclk-en;

	flash0: m25p80@0 {
		compatible = "s25fl512s", "jedec,spi-nor";
		reg = <0>;
		spi-tx-bus-width = <1>;
		spi-rx-bus-width = <4>;
		spi-max-frequency = <96000000>;
		#address-cells = <1>;
		#size-cells = <1>;
		cdns,read-delay = <5>;
		cdns,tshsl-ns = <500>;
		cdns,tsd2d-ns = <500>;
		cdns,tchsh-ns = <119>;
		cdns,tslch-ns = <119>;

		partition@0 {
			label = "QSPI.MLO";
			reg = <0x00000000 0x000B0000>;
		};
		partition@1 {
			label = "QSPI.u-boot-img";
			reg = <0x000B0000 0x000B0000>;
		};
		partition@2 {
			label = "QSPI.blob";
			reg = <0x00160000 0x00040000>;
		};
		partition@3 {
			label = "QSPI.skern";
			reg = <0x001A0000 0x00010000>;
		};
		partition@4 {
			label = "QSPI.kernel";
			reg = <0x001B0000 0x0800000>;
		};
		partition@5 {
			label = "QSPI.file-system";
			reg = <0x009B0000 0x2700000>;
		};
	};
};

I read that this kind of problem could depend by wrong UART definition (ttyOX or ttySX) or dtb mismatch. How can I do in order to find the  problem and go on with boot? 

To enable qspi boot I modified k2g_evm.h where #define CONFIG_BOOTCOMMAND executes "run findfdt;" "run spiargs;" "run  spiboot;"; the details are in u-boot printenv above. Are there other actions to do beyond my modification?

Regards

Graziano

  • Hi, Graziano,

    Take a look at TI's default u-boot env variables setup. You are missing stuffs like boot monitors. TI's default bootcmd is shown below:

    bootcmd=run findfdt; run envboot; run init_${boot}; run get_mon_${boot} run_mon; run set_name_pmmc get_pmmc_${boot} run_pmmc; run get_kern_${boot}; run init_fw_rd_${boot}; run get_fdt_${boot}; run run_kern

    To boot kernel from NAND, please follow boot=ubi and find those relevant scripts for it, 

    Rex

  • Hi Rex,

    TI's default bootcmd are set as you described and the default variable {boot} is mmc, not of interest of my scope. Neither boot kernel from NAND is of my interest since I want to boot from QSPI flash (NOR).

    I see another thread similar to my issue and the bootcmd is not so different from mine (regarding spi) but effectively it doesn not follow the TI's default bootcmd

    https://e2e.ti.com/support/legacy_forums/embedded/linux/f/354/t/579034

    If I understood properly, it select the proper .dtb, then select the proper UART console (ttyO0 or ttyO3 based on board name) and finally execute the bootz considering what is read in RAM addresses {loadaddr} and {fdtaddr} loaded from SPI.

    In that case the boot has gone much more on than me, therefore I think that some other thing is the reason of the hang in my situation.

    Regards

    Graziano

      

  • Hi, Graziano,

    You misunderstand my post. I know default setting is boot=mmc, but TI provides several boot options in the u-boot scripts. One of those is boot from NAND (boot=ubi). I want you to follow u-boot scripts with boot=ubi. So, in the bootcmd, it executes several scripts including get_mon_${boot}. So, did you do "run get_mon_ubi", etc. in your boot process? You can go through TI's bootcmd and see what are missing from your boot and if other things are set up correctly.

    Rex

  • Hi Rex,

    I executed your indications, please see steps below:

    => setenv boot ubi
    
    => run init_${boot}
    Could not find a valid device for davinci_nand.0
    Partition ubifs not found!
    UBIFS error (pid: 1): cannot open "ubi:rootfs", error -19
    Error reading superblock on volume 'ubi:rootfs' errno=-19!
    ubifsmount - mount UBIFS volume
    
    
    => run get_mon_${boot}
    UBIFS not mounted, use ubifs mount to mount volume first!
    ubifsload - load file from an UBIFS filesystem
    

    It seems that something miss in u-boot sources.

    However I did some added some options to tisdk_k2g-evm-rt_defconfig and rebuilt the kernel. In this way I obtained the boot hangs after "[    0.000000] OF: fdt: Machine model: Texas Instruments K2G General Purpose EVM":

    Start Boot
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Loading Device Tree to 8fff5000, end 8ffff3f6 ... OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.19.59-rt24-g4203cb8c96 (root@ubuntu) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #1 SMP PREEMPT RT Fri Mar 13 14:15:55 CET 2020
    [    0.000000] CPU: ARMv7 Processor [412fc0f4] revision 4 (ARMv7), cr=30c5387d
    [    0.000000] CPU: div instructions available: patching division code
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
    [    0.000000] OF: fdt: Machine model: Texas Instruments K2G General Purpose EVM

    In tisdk_k2g-evm-rt_defconfig I see that CONFIG_CMDLINE="" meaning that nothing is appended to bootargs declared in u-boot, therefore I imagine the the uart console (console=ttyS0,115200n8 earlyprintk) remain declared in this way during boot.

    Any other advice is useful to resolve this issue.

    Thank you for your support.

    Regards

    Graziano

  • Hi, Graziano,

    I go back to your original post, and it seems that you are trying to boot both u-boot and kernel from NAND. Is that correct? I rethink of the ubi boot in our configuration. I think that is booting u-boot from either NOR or SD card, and kernel from NAND. I see in ubi boot, the kernel, fdt, and skern are taken from /boot in the filesystem. From the boot logs, ubifsmount and ubifsload failed could be caused by not having the filesystem in NAND which is setup in args_ubi. It sets up the rootfstype=ubifs and at root=ubi0:rootfs partition. So, it seems to me that you may want to try with filesystem be programmed to that partition. If my recollection is correct, the script in bin/create-ubifs.sh is used to create the filesystem ubi file. 

    Rex

  • Hi Rex,

    my aim is to boot only from QSPI NOR Flash. Currently I am using the K2G-EVM (http://www.ti.com/lit/ug/sprui65a/sprui65a.pdf) as evaluation board to start-up the Linux OS since I am waiting for that the custom board is released.

    On the evaluation board a Cypress NOR Flash Memory S25FL512S is present and I am using only this component to boot. Through DFU I flashed u-boot, kernel image and filesystem according the partitions described in keystone-k2g-evm.dts:

    &qspi {
        status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&qspi_pins>;
        cdns,rclk-en;
    
        flash0: m25p80@0 {
            compatible = "s25fl512s", "jedec,spi-nor";
            reg = <0>;
            spi-tx-bus-width = <1>;
            spi-rx-bus-width = <4>;
            spi-max-frequency = <96000000>;
            #address-cells = <1>;
            #size-cells = <1>;
            cdns,read-delay = <5>;
            cdns,tshsl-ns = <500>;
            cdns,tsd2d-ns = <500>;
            cdns,tchsh-ns = <119>;
            cdns,tslch-ns = <119>;
    
            partition@0 {
                label = "QSPI.MLO";
                reg = <0x00000000 0x000B0000>;
            };
            partition@1 {
                label = "QSPI.u-boot-img";
                reg = <0x000B0000 0x000B0000>;
            };
            partition@2 {
                label = "QSPI.blob";
                reg = <0x00160000 0x00040000>;
            };
            partition@3 {
                label = "QSPI.skern";
                reg = <0x001A0000 0x00010000>;
            };
            partition@4 {
                label = "QSPI.kernel";
                reg = <0x001B0000 0x0800000>;
            };
            partition@5 {
                label = "QSPI.file-system";
                reg = <0x009B0000 0x2700000>;
            };
        };
    };

    In k2g-evm.h I set the bootcmd in order that it boots image and fdt loaded from QSPI in RAM:

    
    
    bootcmd=run findfdt; run spiargs; run spiboot;
    spiargs=echo Running spiargs ...; setenv bootargs console=${console} ${optargs} root=${spiroot} rootfstype=${spirootfstype}
    spiboot=echo Booting from spi ...; run spiargs; sf probe ${spibusno}:0; sf read ${loadaddr} ${spisrcaddr} ${spiimgsize}; sf read ${fdtaddr} ${spifdtaddr} ${spifdtsize}; fdt addr ${fdtaddr}; fdt header; echo Start Boot; bootz ${loadaddr} - ${fdtaddr}
    

    Probably I set something wrong beyond the above code. In previuos post I shared the bootloog and the printenv, but if you need more information don't hesitate to ask me.

    Regards

    Graziano

  • Hi Rex,

    have you any idea why the kernel stops at point "[    0.000000] OF: fdt: Machine model: Texas Instruments K2G General Purpose EVM" and no other message is seen on uart console?

    Based on your suggetion I think that the problem is related to the MTD partition that is not well defined. In u-boot I launch the command "mtdparts" and I obtain "Device nor0 not found!".

    In .dts I defined the partition for qspi and I defined the same infomation in k2g_evm.h in u-boot.

    Could it the reason of kernel hang or it could depend from other aspects?

    Regards

    Graziano 

  • Hi, Graziano,

    I compared your bootcmd with TI K2G's and there are differences. Here's TI's bootcmd

    bootcmd=run findfdt; run envboot; run init_${boot}; run get_mon_${boot} run_mon; run set_name_pmmc get_pmmc_${boot} run_pmmc; run get_kern_${boot}; run init_fw_rd_${boot}; run get_fdt_${boot}; run run_kern

    Yours:

    bootcmd=run findfdt; run spiargs; run spiboot;

    spiboot=echo Booting from spi ...; run spiargs; sf probe ${spibusno}:0; sf read ${loadaddr} ${spisrcaddr} ${spiimgsize}; sf read ${fdtaddr} ${spifdtaddr} ${spifdtsize}; fdt addr ${fdtaddr}; fdt header; echo Start Boot; bootz ${loadaddr} - ${fdtaddr}

    I see you get the kernel image, fdt/dtb, then do bootz to boot kernel. TI's get the boot monitor(mon) and pmmc, also get the init_fw_rd and set rd_spec. When booting kernel TI does "bootz ${loadaddr} ${rd_spec} ${fdtaddr}", but you only do "bootz ${loadaddr} - ${fdtaddr}

    These differences may cause kernel not booting up. You may want to have all needed images and correct boot sequence to boot kernel.

    Rex

    => pri
    addr_load_sec_bm=0x0c09c000
    addr_mon=0x87000000
    addr_non_sec_mon=0x0c097fc0
    addr_secdb_key=0xc000000
    addr_ubi=0x82000000
    arch=arm
    args_all=setenv bootargs console=ttyS0,115200n8 rootwait=1 mtdparts=spi1.0:1m(u-boot-spl)ro,-(misc);
    args_mmc=run finduuid;setenv bootargs console=${console} ${optargs} root=PARTUUID=${uuid} rw rootfstype=${mmcrootfstype}
    args_net=setenv bootargs ${bootargs} rootfstype=nfs root=/dev/nfs rw nfsroot=${serverip}:${nfs_root},${nfs_options} ip=dhcp
    args_ramfs=setenv bootargs ${bootargs} rdinit=/sbin/init rw root=/dev/ram0 initrd=0x808080000,80M
    args_ubi=setenv bootargs ${bootargs} rootfstype=ubifs root=ubi0:rootfs rootflags=sync rw ubi.mtd=ubifs,2048
    baudrate=115200
    board=ks2_evm
    board_name=66AK2GG1
    boot=mmc
    boot_fdt=try
    boot_fit=0
    bootcmd=run findfdt; run spiargs; run spiboot;
    bootdelay=2
    bootdir=/boot
    bootenvfile=uEnv.txt
    bootfile=zImage
    bootm_size=0x10000000
    bootpart=0:2
    bootscript=echo Running bootscript from mmc${mmcdev} ...; source ${loadaddr}
    burn_ubi=nand erase.part ubifs; nand write ${addr_ubi} ubifs ${filesize}
    burn_uboot_nand=nand erase 0 0x100000; nand write ${loadaddr} 0 ${filesize}
    burn_uboot_spi=sf probe; sf erase 0 0x100000; sf write ${loadaddr} 0 ${filesize}
    console=ttyO0,115200n8 earlyprintk
    cpu=armv7
    dev_pmmc=0
    dfu_alt_info_mmc=boot part 0 1;rootfs part 0 2;MLO fat 0 1;MLO.raw raw 0x100 0x200;u-boot.img.raw raw 0x300 0x1000;u-env.raw raw 0x1300 0x200;spl-os-args.raw raw 0x1500 0x200;spl-os-image.raw raw 0x1700 0x6900;spl-os-args fat 0 1;spl-os-image fat 0 1;u-boot.img fat 0 1;uEnv.txt fat 0 1
    dfu_alt_info_qspi=MLO raw 0x00000000 0x000B0000;u-boot.img raw 0x000B0000 0x000B0000;blob raw 0x00160000 0x00040000;skern raw 0x001A0000 0x00010000;kernel raw 0x001B0000 0x0800000;file-system raw 0x009B0000 0x2700000
    dfu_alt_info_ram=MLO ram 0x80000000 0x00B0000;u-boot.img ram 0x800B0000 0x00B0000;blob ram 0x80160000 0x00040000;skern ram 0x801A0000 0x00010000;kernel ram 0x801B0000 0x0800000;file-system ram 0x809B0000 0x2700000
    dfu_bufsiz=0x10000
    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;
    ethaddr=70:ff:76:1c:67:ed
    fdt_addr_r=0x88000000
    fdtaddr=0x88000000
    fdtcontroladdr=fdeff738
    fdtfile=undefined
    findfdt=if test $board_name = 66AK2GGP; then echo 1 Found keystone-k2g-evm.dtb; setenv name_fdt keystone-k2g-evm.dtb; else if test $board_name = 66AK2GG1; then echo 2 Found keystone-k2g-evm.dtb; setenv name_fdt keystone-k2g-evm.dtb; else if test $board_name = 66AK2GIC; then echo 1 Found keystone-k2g-ice.dtb; setenv name_fdt keystone-k2g-ice.dtb; else if test $name_fdt = undefined; then echo WARNING: Could not determine device tree to use;fi;fi;fi;fi; setenv fdtfile ${name_fdt}
    finduuid=part uuid mmc ${bootpart} uuid
    fit_bootfile=fitImage
    fit_loadaddr=0x90000000
    get_fdt_mmc=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${name_fdt}
    get_fdt_net=dhcp ${fdtaddr} ${tftp_root}/${name_fdt}
    get_fdt_nfs=nfs ${fdtaddr} ${nfs_root}/boot/${name_fdt}
    get_fdt_ramfs=dhcp ${fdtaddr} ${tftp_root}/${name_fdt}
    get_fdt_ubi=ubifsload ${fdtaddr} ${bootdir}/${name_fdt}
    get_fit_mmc=load mmc ${bootpart} ${fit_loadaddr} ${bootdir}/${fit_bootfile}
    get_fit_net=dhcp ${fit_loadaddr} ${tftp_root}/${fit_bootfile}
    get_fit_nfs=nfs ${fit_loadaddr} ${nfs_root}/boot/${fit_bootfile}
    get_fit_ramfs=dhcp ${fit_loadaddr} ${tftp_root}/${fit_bootfile}
    get_fit_ubi=ubifsload ${fit_loadaddr} ${bootdir}/${fit_bootfile}
    get_fs_ramfs=dhcp ${rdaddr} ${tftp_root}/${name_fs}
    get_kern_mmc=load mmc ${bootpart} ${loadaddr} ${bootdir}/${name_kern}
    get_kern_net=dhcp ${loadaddr} ${tftp_root}/${name_kern}
    get_kern_nfs=nfs ${loadaddr} ${nfs_root}/boot/${name_kern}
    get_kern_ramfs=dhcp ${loadaddr} ${tftp_root}/${name_kern}
    get_kern_ubi=ubifsload ${loadaddr} ${bootdir}/${name_kern}
    get_mon_mmc=load mmc ${bootpart} ${addr_mon} ${bootdir}/${name_mon}
    get_mon_net=dhcp ${addr_mon} ${tftp_root}/${name_mon}
    get_mon_nfs=nfs ${addr_mon} ${nfs_root}/boot/${name_mon}
    get_mon_ramfs=dhcp ${addr_mon} ${tftp_root}/${name_mon}
    get_mon_ubi=ubifsload ${addr_mon} ${bootdir}/${name_mon}
    get_overlaystring=for overlay in $overlay_files;do;setenv overlaystring ${overlaystring}'#'${overlay};done;
    get_pmmc_mmc=load mmc ${bootpart} ${loadaddr} ${bootdir}/${name_pmmc}
    get_pmmc_net=dhcp ${loadaddr} ${tftp_root}/${name_pmmc}
    get_pmmc_nfs=nfs ${loadaddr} ${nfs_root}/boot/${name_pmmc}
    get_pmmc_ramfs=run get_pmmc_net
    get_pmmc_ubi=ubifsload ${loadaddr} ${bootdir}/${name_pmmc}
    get_ubi_net=dhcp ${addr_ubi} ${tftp_root}/${name_ubi}
    get_ubi_nfs=nfs ${addr_ubi} ${nfs_root}/boot/${name_ubi}
    get_uboot_net=dhcp ${loadaddr} ${tftp_root}/${name_uboot}
    get_uboot_nfs=nfs ${loadaddr} ${nfs_root}/boot/${name_uboot}
    importbootenv=echo Importing environment from mmc${mmcdev} ...; env import -t ${loadaddr} ${filesize}
    init_fw_rd_mmc=load mmc ${bootpart} ${rdaddr} ${bootdir}/${name_fw_rd}; run set_rd_spec
    init_fw_rd_net=dhcp ${rdaddr} ${tftp_root}/${name_fw_rd}; run set_rd_spec
    init_fw_rd_nfs=nfs ${rdaddr} ${nfs_root}/boot/${name_fw_rd}; run set_rd_spec
    init_fw_rd_ramfs=setenv rd_spec -
    init_fw_rd_ubi=ubifsload ${rdaddr} ${bootdir}/${name_fw_rd}; run set_rd_spec
    init_mmc=run args_all args_mmc
    init_net=run args_all args_net
    init_nfs=setenv autoload no; dhcp; run args_all args_net
    init_ramfs=run args_all args_ramfs get_fs_ramfs
    init_ubi=run args_all args_ubi; ubi part ubifs; ubifsmount ubi:rootfs;
    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}
    loadfit=run args_mmc; run run_fit;
    loadimage=load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${bootfile}
    loadramdisk=load mmc ${mmcdev} ${rdaddr} ramdisk.gz
    mem_lpae=1
    mmcboot=mmc dev ${mmcdev}; setenv devnum ${mmcdev}; setenv devtype mmc; if mmc rescan; then echo SD/MMC found on device ${mmcdev};if run loadimage; then if test ${boot_fit} -eq 1; then run loadfit; else run mmcloados;fi;fi;fi;
    mmcdev=0
    mmcloados=run args_mmc; 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
    mtdparts=mtdparts=davinci_nand.0:1024k(bootloader)ro,512k(params)ro,-(ubifs)
    name_fs=arago-base-tisdk-image-k2g-evm.cpio
    name_fw_rd=k2-fw-initrd.cpio.gz
    name_kern=zImage
    name_mon=skern-k2g.bin
    name_ubi=k2g-evm-ubifs.ubi
    name_uboot=u-boot-spi-k2g-evm.gph
    nfs_options=v3,tcp,rsize=4096,wsize=4096
    nfs_root=/export
    no_post=1
    partitions=uuid_disk=${uuid_gpt_disk};name=bootloader,start=384K,size=1792K,uuid=${uuid_gpt_bootloader};name=rootfs,start=2688K,size=-,uuid=${uuid_gpt_rootfs}
    pxefile_addr_r=0x80100000
    ramargs=setenv bootargs console=${console} ${optargs} root=${ramroot} rootfstype=${ramrootfstype}
    ramboot=echo Booting from ramdisk ...; run ramargs; bootz ${loadaddr} ${rdaddr} ${fdtaddr}
    ramdisk_addr_r=0x88080000
    ramroot=/dev/ram0 rw
    ramrootfstype=ext2
    rd_spec=-
    rdaddr=0x88080000
    run_fit=bootm ${fit_loadaddr}#${fdtfile}${overlaystring}
    run_kern=bootz ${loadaddr} ${rd_spec} ${fdtaddr}
    run_mon=mon_install ${addr_mon}
    run_mon_hs=mon_install ${addr_non_sec_mon} ${addr_load_sec_bm}
    run_pmmc=rproc init; rproc list; rproc load ${dev_pmmc} ${loadaddr} 0x${filesize}; rproc start ${dev_pmmc}
    scriptaddr=0x80000000
    set_name_pmmc=setenv name_pmmc ti-sci-firmware-${soc_variant}.bin
    set_rd_spec=setenv rd_spec ${rdaddr}:${filesize}
    soc=keystone
    soc_variant=k2g
    spiargs=echo Running spiargs ...; setenv bootargs console=${console} ${optargs} root=${spiroot} rootfstype=${spirootfstype}
    spiboot=echo Booting from spi ...; run spiargs; sf probe ${spibusno}:0; sf read ${loadaddr} ${spisrcaddr} ${spiimgsize}; sf read ${fdtaddr} ${spifdtaddr} ${spifdtsize}; fdt addr ${fdtaddr}; fdt header; echo Start Boot; bootz ${loadaddr} - ${fdtaddr}
    spibusno=4
    spifdtaddr=0x160000
    spifdtsize=0x40000
    spiimgsize=0x800000
    spiroot=/dev/mtdblock5 rw
    spirootfstype=jffs2
    spisrcaddr=0x1b0000
    stderr=serial@02530c00
    stdin=serial@02530c00
    stdout=serial@02530c00
    tftp_root=/
    update_to_fit=setenv loadaddr ${fit_loadaddr}; setenv bootfile ${fit_bootfile}
    vendor=ti
    ver=U-Boot 2019.01-g171fca6551-dirty (Mar 06 2020 - 03:00:28 -0800)
    Environment size: 8462/262139 bytes
  • Hi Rex,

    thank you for your explanation and patience for my issue.

    I flashed the other binaries in QSPI (skern-k2g.bin, ti-sci-firmware, k2-fw-initrd.cpio.gz) and executed the other steps ("run init_${boot}"; "get_mon_${boot} run mon"; "set_name_pmmc get_pmmc_${boot} run_pmmc"; "init_fw_rd_${boot}"; "bootz ${loadaddr} ${rd_spec} ${fdtaddr}" ) that missed in my previous u-boot configuration. In this way the kernel goes much more on and hangs some print after "[    3.308594] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---".

    Below the boot steps:

    U-Boot 2019.01-g171fca6551-dirty (Apr 02 2020 - 16:41:42 +0200)
    
    CPU: 66AK2Gx-100 SR1.0
    Model: Texas Instruments K2G General Purpose EVM
    DRAM:
    Clear entire DDR3 memory to enable ECC
    2 GiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    Loading Environment from FAT... Card did not respond to voltage select!
    Loading Environment from SPI Flash... SF: Detected s25fl512s_256k with page size 256 Bytes, erase size 256 KiB, total 64 MiB
    *** Warning - bad CRC, using default environment
    
    In:    serial@02530c00
    Out:   serial@02530c00
    Err:   serial@02530c00
    Net:
    Warning: netcp@4000000 using MAC address from ROM
    eth0: netcp@4000000
    Hit any key to stop autoboot:  0
    Found keystone-k2g-evm.dtb
    Card did not respond to voltage select!
    Card did not respond to voltage select!
    Running spiargs ...
    SF: Detected s25fl512s_256k with page size 256 Bytes, erase size 256 KiB, total 64 MiB
    Unknown command 'root=/dev/mtdblock7' - try 'help'
    device 0 offset 0x240000, size 0x8040
    SF: 32832 bytes @ 0x240000 Read: OK
    K2_BM_15. 07-nogit SoC:k2g built:14:47:37, Mar 13 2020
    
    ## installed monitor @ 0xc0f7000, freq [24000000], status 202338304
    device 0 offset 0x250000, size 0x8354
    SF: 33620 bytes @ 0x250000 Read: OK
    0 - Name:'pmmc@2900000' type:'internal memory mapped' supports: load start
    Load Remote Processor 0 with data@addr=0x82000000 33620 bytes: Success!
    device 0 offset 0x280000, size 0x800000
    SF: 8388608 bytes @ 0x280000 Read: OK
    device 0 offset 0x260000, size 0x8625
    SF: 34341 bytes @ 0x260000 Read: OK
    device 0 offset 0x200000, size 0x40000
    SF: 262144 bytes @ 0x200000 Read: OK
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Loading Ramdisk to 90000000, end 90000000 ... OK
       Loading Device Tree to 8fff5000, end 8ffff44f ... OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.19.59-rt24-g4203cb8c96 (root@ubuntu) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #2 SMP PREEMPT RT Wed Apr 1 16:58:39 CEST 2020
    [    0.000000] CPU: ARMv7 Processor [412fc0f4] revision 4 (ARMv7), cr=30c5387d
    [    0.000000] CPU: div instructions available: patching division code
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
    [    0.000000] OF: fdt: Machine model: Texas Instruments K2G General Purpose EVM
    [    0.000000] bootconsole [earlycon0] enabled
    [    0.000000] Memory policy: Data cache writealloc
    [    0.000000] Switching physical address space to 0x800000000
    [    0.000000] efi: Getting EFI parameters from FDT:
    [    0.000000] efi: UEFI not found.
    [    0.000000] Reserved memory: created CMA memory pool at 0x000000081f800000, size 8 MiB
    [    0.000000] OF: reserved mem: initialized node dsp-common-memory@81f800000, compatible id shared-dma-pool
    [    0.000000] cma: Reserved 48 MiB at 0x000000087cc00000
    [    0.000000] random: get_random_bytes called from start_kernel+0xb0/0x488 with crng_init=0
    [    0.000000] percpu: Embedded 16 pages/cpu s36320 r8192 d21024 u65536
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 491840
    [    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk
    [    0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
    [    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
    [    0.000000] Memory: 1883144K/1974272K available (8192K kernel code, 290K rwdata, 2684K rodata, 2048K init, 275K bss, 33784K reserved, 57344K cma-reserved, 1261568K highmem)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    [    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (10208 kB)
    [    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (2048 kB)
    [    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 291 kB)
    [    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 276 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] rcu: Preemptible hierarchical RCU implementation.
    [    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
    [    0.000000] rcu:     RCU priority boosting: priority 1 delay 500 ms.
    [    0.000000]  No expedited grace period (rcu_normal_after_boot).
    [    0.000000]  Tasks RCU enabled.
    [    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
    [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
    [    0.000000] GIC: Using split EOI/Deactivate mode
    [    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
    [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
    [    0.000005] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
    [    0.000011] Switching to timer-based delay loop, resolution 41ns
    [    0.000129] keystone_timer_init: failed to get clock
    [    0.000142] Failed to initialize '/soc@0/timer@2210000': -517
    [    0.000379] Console: colour dummy device 80x30
    [    0.261406] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
    [    0.261415] pid_max: default: 32768 minimum: 301
    [    0.261549] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.261558] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.262291] CPU: Testing write buffer coherency: ok
    [    0.262318] CPU0: Spectre v2: firmware did not set auxiliary control register IBE bit, system vulnerable
    [    0.262577] /cpus/cpu@0 missing clock-frequency property
    [    0.311023] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    [    0.370302] Setting up static identity map for 0x80200000 - 0x80200138
    [    0.390267] rcu: Hierarchical SRCU implementation.
    [    0.450772] EFI services will not be available.
    [    0.470397] smp: Bringing up secondary CPUs ...
    [    0.474947] smp: Brought up 1 node, 1 CPU
    [    0.478971] SMP: Total of 1 processors activated (48.00 BogoMIPS).
    [    0.485211] CPU: All CPU(s) started in HYP mode.
    [    0.489843] CPU: Virtualization extensions available.
    [    0.495571] devtmpfs: initialized
    [    0.510562] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
    [    0.518657] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.528538] futex hash table entries: 256 (order: 2, 16384 bytes)
    [    0.535764] pinctrl core: initialized pinctrl subsystem
    [    0.542018] DMI not present or invalid.
    [    0.546368] NET: Registered protocol family 16
    [    0.553721] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.562704] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
    [    0.570797] hw-breakpoint: maximum watchpoint size is 8 bytes.
    [    0.584931] davinci_gpio 2603000.gpio: Error -517 getting gpio clock
    [    0.592910] davinci_gpio 260a000.gpio: Error -517 getting gpio clock
    [    0.657054] SCSI subsystem initialized
    [    0.661526] media: Linux media interface: v0.10
    [    0.666121] videodev: Linux video capture interface: v2.00
    [    0.671777] pps_core: LinuxPPS API ver. 1 registered
    [    0.676760] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.685966] PTP clock support registered
    [    0.689918] EDAC MC: Ver: 3.0.0
    [    0.711250] Advanced Linux Sound Architecture Driver Initialized.
    [    0.718747] clocksource: Switched to clocksource arch_sys_counter
    [    0.738084] NET: Registered protocol family 2
    [    0.743359] tcp_listen_portaddr_hash hash table entries: 512 (order: 2, 16384 bytes)
    [    0.751217] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.758375] TCP bind hash table entries: 8192 (order: 5, 229376 bytes)
    [    0.765264] TCP: Hash tables configured (established 8192 bind 8192)
    [    0.771819] UDP hash table entries: 512 (order: 3, 32768 bytes)
    [    0.777812] UDP-Lite hash table entries: 512 (order: 3, 32768 bytes)
    [    0.784607] NET: Registered protocol family 1
    [    0.848968] RPC: Registered named UNIX socket transport module.
    [    0.854913] RPC: Registered udp transport module.
    [    0.859688] RPC: Registered tcp transport module.
    [    0.864409] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.871657] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available
    [    0.881031] platform alarmtimer: set dma_pfn_offset00780000
    [    0.887602] Initialise system trusted keyrings
    [    0.892401] workingset: timestamp_bits=14 max_order=19 bucket_order=5
    [    0.909465] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.929214] NFS: Registering the id_resolver key type
    [    0.934318] Key type id_resolver registered
    [    0.938517] Key type id_legacy registered
    [    0.942625] ntfs: driver 2.1.32 [Flags: R/O].
    [    0.947287] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
    [    0.956852] Key type asymmetric registered
    [    0.961016] Asymmetric key parser 'x509' registered
    [    0.966087] bounce: pool size: 64 pages
    [    0.970044] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
    [    0.977473] io scheduler noop registered
    [    0.981478] io scheduler deadline registered
    [    0.986066] io scheduler cfq registered (default)
    [    0.990819] io scheduler mq-deadline registered
    [    0.995368] io scheduler kyber registered
    [    1.000235] keystone_irq 26202a0.keystone_irq: irqchip registered, nr_irqs 28
    [    1.009371] pinctrl-single 2621000.pinmux: please update dts to use #pinctrl-cells = <1>
    [    1.017923] pinctrl-single 2621000.pinmux: 260 pins, size 1040
    [    1.124657] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
    [    1.131173] platform serial8250: set dma_pfn_offset00780000
    [    1.162863] brd: module loaded
    [    1.180040] loop: module loaded
    [    1.188570] platform Fixed MDIO bus.0: set dma_pfn_offset00780000
    [    1.195157] libphy: Fixed MDIO Bus: probed
    [    1.203053] i2c /dev entries driver
    [    1.209126] sdhci: Secure Digital Host Controller Interface driver
    [    1.215331] sdhci: Copyright(c) Pierre Ossman
    [    1.220330] sdhci-pltfm: SDHCI platform and OF driver helper
    [    1.231341] platform snd-soc-dummy: set dma_pfn_offset00780000
    [    1.239882] NET: Registered protocol family 10
    [    1.259316] Segment Routing with IPv6
    [    1.263095] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    [    1.270003] NET: Registered protocol family 17
    [    1.274836] Key type dns_resolver registered
    [    1.279295] Registering SWP/SWPB emulation handler
    [    1.284981] Loading compiled-in X.509 certificates
    [    1.292394] davinci_gpio 2603000.gpio: Error -517 getting gpio clock
    [    1.300351] davinci_gpio 260a000.gpio: Error -517 getting gpio clock
    [    1.321371] ti-sci 2921c00.pmmc: ABI: 2.4 (firmware rev 0x0011 '0.1.1-50-g129ef (Eagle)')
    [    1.345606] random: fast init done
    [    1.431889] ti-sci-clk 2921c00.pmmc:clocks: get-parent failed for dev=76, clk=11, ret=-19
    [    1.440250] ti-sci-clk 2921c00.pmmc:clocks: get-parent failed for dev=76, clk=11, ret=-19
    [    1.448907] ti-sci-clk 2921c00.pmmc:clocks: get-parent failed for dev=76, clk=11, ret=-19
    [    1.468719] keystone timer clock @166666666 Hz
    [    1.495523] edma 2700000.edma: TI EDMA DMA engine driver
    [    1.501955] edma 2728000.edma: memcpy is disabled
    [    1.513288] edma 2728000.edma: TI EDMA DMA engine driver
    [    1.523049] platform hdmi-audio-codec.0.auto: set dma_pfn_offset00780000
    [    1.530846] i2c i2c-1: Added multiplexed i2c bus 3
    [    1.536714] ti,keystone-serdes 2320000.phy: Direct firmware load for ks2_pcie_serdes.bin failed with error -2
    [    1.546778] ti,keystone-serdes 2320000.phy: can't get any serdes init fw
    [    1.553517] ti,keystone-serdes 2320000.phy: serdes procider init failed -19
    [    1.562174] keystone-pcie 21800000.pcie: host bridge /soc@0/pcie@21800000 ranges:
    [    1.569710] keystone-pcie 21800000.pcie:   No bus range found for /soc@0/pcie@21800000, using [bus 00-ff]
    [    1.579351] keystone-pcie 21800000.pcie:    IO 0x23250000..0x23253fff -> 0x00000000
    [    1.587055] keystone-pcie 21800000.pcie:   MEM 0x70000000..0x7fffffff -> 0x70000000
    [    2.595962] keystone-pcie 21800000.pcie: Phy link never came up
    [    2.602147] keystone-pcie 21800000.pcie: PCI host bridge to bus 0000:00
    [    2.608799] pci_bus 0000:00: root bus resource [bus 00-ff]
    [    2.614309] pci_bus 0000:00: root bus resource [io  0x0000-0x3fff]
    [    2.620517] pci_bus 0000:00: root bus resource [mem 0x70000000-0x7fffffff]
    [    2.629834] PCI: bus0: Fast back to back transfers disabled
    [    2.637401] PCI: bus1: Fast back to back transfers enabled
    [    2.642941] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
    [    2.648449] pcieport 0000:00:00.0: limiting MRRS to 256
    [    2.654286] pcieport 0000:00:00.0: Signaling PME with IRQ 288
    [    2.660472] pcieport 0000:00:00.0: AER enabled with IRQ 288
    [    2.666221] keystone-pcie 21800000.pcie: AXI tag lookup fatal Error
    [    2.673004] keystone-navigator-qmss soc@0:qmss@4020000: qmgr start queue 0, number of queues 128
    [    2.682000] keystone-navigator-qmss soc@0:qmss@4020000: added qmgr start queue 0, num of queues 128, reg_peek (ptrval), reg_status   (null), reg_config (ptrval), reg_region (ptrval), reg_push (ptrval), reg_pop (ptrval)
    [    2.702918] keystone-navigator-dma soc@0:knav_dmas@0: DMA dma_gbe registered 53 logical channels, flows 32, tx chans: 21, rx chans: 32
    [    2.717301] console [ttyS0] disabled
    [    2.720958] 2530c00.serial: ttyS0 at MMIO 0x2530c00 (irq = 24, base_baud = 12000000) is a TI DA8xx/66AK2x
    [    2.730663] console [ttyS0] enabled
    [    2.730663] console [ttyS0] enabled
    [    2.737635] bootconsole [earlycon0] disabled
    [    2.737635] bootconsole [earlycon0] disabled
    [    2.748986] 2531400.serial: ttyS2 at MMIO 0x2531400 (irq = 25, base_baud = 12000000) is a TI DA8xx/66AK2x
    [    2.760168] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [    2.766773] [drm] No driver support for vblank timestamp query.
    [    2.774448] [drm] Initialized tidss 1.0.0 20180215 for 2540000.dss on minor 0
    [    2.781833] [drm] Cannot find any crtc or sizes
    [    2.788692] cadence-qspi 2940000.qspi: non-uniform erase sector maps are not supported yet.
    [    2.797049] cadence-qspi 2940000.qspi: s25fl512s (65536 Kbytes)
    [    2.803044] 8 fixed-partitions partitions found on MTD device 2940000.qspi.0
    [    2.810082] Creating 8 MTD partitions on "2940000.qspi.0":
    [    2.815570] 0x000000000000-0x000000100000 : "MLO"
    [    2.821715] 0x000000100000-0x000000200000 : "u-boot-img"
    [    2.828368] 0x000000200000-0x000000240000 : "fdt"
    [    2.834355] 0x000000240000-0x000000250000 : "skern-k2g.bin"
    [    2.839919] mtd: partition "skern-k2g.bin" doesn't end on an erase/write block -- force read-only
    [    2.850100] 0x000000250000-0x000000260000 : "ti-sci-firmware-k2g.bin"
    [    2.856530] mtd: partition "ti-sci-firmware-k2g.bin" doesn't start on an erase/write block boundary -- force read-only
    [    2.868502] 0x000000260000-0x000000280000 : "k2-fw-initrd.cpio.gz"
    [    2.874674] mtd: partition "k2-fw-initrd.cpio.gz" doesn't start on an erase/write block boundary -- force read-only
    [    2.886369] 0x000000280000-0x000000a80000 : "kernel"
    [    2.892658] 0x000000a80000-0x000004000000 : "filesystem"
    [    2.900662] spi_davinci 21805400.spi: DMA is not supported (-19)
    [    2.907159] spi_davinci 21805400.spi: Controller at 0x(ptrval)
    [    2.914298] spi_davinci 21805800.spi: DMA is not supported (-19)
    [    2.922633] m25p80 spi1.0: n25q128a13 (16384 Kbytes)
    [    2.927626] 2 fixed-partitions partitions found on MTD device spi1.0
    [    2.933969] Creating 2 MTD partitions on "spi1.0":
    [    2.938772] 0x000000000000-0x000000100000 : "u-boot-spl"
    [    2.945494] 0x000000100000-0x000001000000 : "misc"
    [    2.951680] spi_davinci 21805800.spi: Controller at 0x(ptrval)
    [    2.958830] spi_davinci 21805c00.spi: DMA is not supported (-19)
    [    2.965325] spi_davinci 21805c00.spi: Controller at 0x(ptrval)
    [    2.972360] spi_davinci 21806000.spi: DMA is not supported (-19)
    [    2.978898] spi_davinci 21806000.spi: Controller at 0x(ptrval)
    [    3.038801] davinci_mdio 4200f00.mdio: davinci mdio revision 1.7, bus freq 2500000
    [    3.046360] libphy: 4200f00.mdio: probed
    [    3.051414] davinci_mdio 4200f00.mdio: phy[0]: device 4200f00.mdio:00, driver Micrel KSZ9031 Gigabit PHY
    [    3.061598] netcp-1.0 2620110.netcp: ALE enabled
    [    3.066473] netcp-1.0 2620110.netcp: initialized cpsw ale version 1.4
    [    3.072923] netcp-1.0 2620110.netcp: ALE Table size 64
    [    3.078193] netcp-1.0 2620110.netcp: cpts: overflow check period 500 (jiffies)
    [    3.085410] netcp-1.0 2620110.netcp: CPTS: ref_clk_freq:250000000 calc_mult:2147483648 calc_shift:29 error:0 nsec/sec
    [    3.097134] netcp-1.0 2620110.netcp: module(netcp-xgbe) not used for device
    [    3.105033] sdhci-omap 23000000.mmc: Got CD GPIO
    [    3.110063] sdhci-omap 23000000.mmc: Linked as a consumer to regulator.1
    [    3.116940] sdhci-omap 23000000.mmc: Dropping the link to regulator.1
    [    3.123546] sdhci-omap 23000000.mmc: Linked as a consumer to regulator.1
    [    3.157142] mmc0: SDHCI controller on 23000000.mmc [23000000.mmc] using ADMA
    [    3.165608] sdhci-omap 23100000.mmc: Linked as a consumer to regulator.2
    [    3.172487] sdhci-omap 23100000.mmc: Dropping the link to regulator.2
    [    3.179104] sdhci-omap 23100000.mmc: Linked as a consumer to regulator.1
    [    3.185938] sdhci-omap 23100000.mmc: Linked as a consumer to regulator.2
    [    3.193564] sdhci-omap 23100000.mmc: vqmmc set voltage failed
    [    3.199307] sdhci-omap 23100000.mmc: failed to switch IO voltage to 3300000mV
    [    3.206433] sdhci-omap 23100000.mmc: vqmmc set voltage failed
    [    3.212171] sdhci-omap 23100000.mmc: failed to switch IO voltage to 1800000mV
    [    3.244637] mmc1: SDHCI controller on 23100000.mmc [23100000.mmc] using ADMA
    [    3.254933] hctosys: unable to open rtc device (rtc0)
    [    3.280985] ALSA device list:
    [    3.283977]   No soundcards found.
    [    3.300335] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
    [    3.308594] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---
    [    3.335584] mmc1: new high speed MMC card at address 0001
    [    3.381537] mmcblk1: mmc1:0001 S10016 14.6 GiB
    [    3.386887] mmcblk1boot0: mmc1:0001 S10016 partition 1 4.00 MiB
    [    3.403487] mmcblk1boot1: mmc1:0001 S10016 partition 2 4.00 MiB
    [    3.419551] mmcblk1rpmb: mmc1:0001 S10016 partition 3 4.00 MiB, chardev (244:0)
    [   13.289327] [drm] Cannot find any crtc or sizes

    It seems that kernel is not able to mount the filesystem. At the moment only "run envboot" is not executed in opposite to TI's default bootcmd and "root" and "rootfstype" are set respectively as "/dev/mtdblock7 rw" and "jffs2". Below the printenv:

    => pri
    addr_load_sec_bm=0x0c09c000
    addr_mon=0x87000000
    addr_non_sec_mon=0x0c097fc0
    addr_secdb_key=0xc000000
    addr_ubi=0x82000000
    arch=arm
    args_all=setenv bootargs console=ttyS0,115200n8 rootwait=1 mtdparts=spi4.0:1m(MLO),1m(u-boot.img),256k(fdt),64k(skern-k2g.bin),64k(ti-sci-firmware-k2g.bin),128k(k2-fw-initrd.cpio.gz),8m(kernel),-(file-system);
    args_mmc=run finduuid;setenv bootargs console=${console} ${optargs} root=PARTUUID=${uuid} rw rootfstype=${mmcrootfstype}
    args_net=setenv bootargs ${bootargs} rootfstype=nfs root=/dev/nfs rw nfsroot=${serverip}:${nfs_root},${nfs_options} ip=dhcp
    args_qspi=echo Running spiargs ...;sf probe ${spibusno}:0; setenv bootargs console=${console}; mtdparts=spi4.0:1m(MLO),1m(u-boot.img),256k(fdt),64k(skern-k2g.bin),64k(ti-sci-firmware-k2g.bin),128k(k2-fw-initrd.cpio.gz),8m(kernel),-(file-system) ${optargs} root=${spiroot} rootfstype=${spirootfstype}
    args_ramfs=setenv bootargs ${bootargs} rdinit=/sbin/init rw root=/dev/ram0 initrd=0x808080000,80M
    args_ubi=setenv bootargs ${bootargs} rootfstype=ubifs root=ubi0:rootfs rootflags=sync rw ubi.mtd=ubifs,2048
    baudrate=115200
    board=ks2_evm
    board_name=66AK2GG1
    boot=qspi
    boot_fdt=try
    boot_fit=0
    bootcmd=run findfdt; run envboot; run init_${boot}; run get_mon_${boot} run_mon; run set_name_pmmc get_pmmc_${boot} run_pmmc; run get_kern_${boot}; run init_fw_rd_${boot}; run get_fdt_${boot}; run run_kern
    bootdelay=2
    bootdir=/boot
    bootenvfile=uEnv.txt
    bootfile=zImage
    bootm_size=0x10000000
    bootpart=0:2
    bootscript=echo Running bootscript from mmc${mmcdev} ...; source ${loadaddr}
    burn_ubi=nand erase.part ubifs; nand write ${addr_ubi} ubifs ${filesize}
    burn_uboot_nand=nand erase 0 0x100000; nand write ${loadaddr} 0 ${filesize}
    burn_uboot_spi=sf probe; sf erase 0 0x100000; sf write ${loadaddr} 0 ${filesize}
    console=ttyS0,115200n8 earlyprintk
    cpu=armv7
    dev_pmmc=0
    dfu_alt_info_mmc=boot part 0 1;rootfs part 0 2;MLO fat 0 1;MLO.raw raw 0x100 0x200;u-boot.img.raw raw 0x300 0x1000;u-env.raw raw 0x1300 0x200;spl-os-args.raw raw 0x1500 0x200;spl-os-image.raw raw 0x1700 0x6900;spl-os-args fat 0 1;spl-os-image fat 0 1;u-boot.img fat 0 1;uEnv.txt fat 0 1
    dfu_alt_info_qspi=MLO raw 0x00000000 0x000B0000;u-boot.img raw 0x000B0000 0x000B0000;fdt raw 0x00160000 0x00010000;u-boot-env raw 0x00170000 0x00010000;u-boot-env.backup raw 0x00180000 0x00010000;kernel raw 0x00190000 0x0800000;file-system raw 0x00990000 0x2700000
    dfu_alt_info_ram=MLO ram 0x80000000 0x00100000;u-boot.img ram 0x80100000 0x00100000;fdt ram 0x80200000 0x00040000;skern-k2g.bin ram 0x80240000 0x00010000;ti-sci-firmware-k2g.bin ram 0x80250000 0x00010000;k2-fw-initrd.cpio.gz ram 0x80260000 0x00020000;kernel ram 0x80280000 0x0800000;file-system ram 0x80A80000 0x3580000
    dfu_bufsiz=0x10000
    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;
    ethaddr=70:ff:76:1c:67:ed
    fdt_addr_r=0x88000000
    fdtaddr=0x88000000
    fdtcontroladdr=fdefe6d8
    fdtfile=undefined
    findfdt=if test $board_name = 66AK2GGP; then echo Found keystone-k2g-evm.dtb; setenv name_fdt keystone-k2g-evm.dtb; else if test $board_name = 66AK2GG1; then echo Found keystone-k2g-evm.dtb; setenv name_fdt keystone-k2g-evm.dtb; else if test $board_name = 66AK2GIC; then echo Found keystone-k2g-ice.dtb; setenv name_fdt keystone-k2g-ice.dtb; else if test $name_fdt = undefined; then echo WARNING: Could not determine device tree to use;fi;fi;fi;fi; setenv fdtfile ${name_fdt}
    finduuid=part uuid mmc ${bootpart} uuid
    fit_bootfile=fitImage
    fit_loadaddr=0x90000000
    get_fdt_mmc=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${name_fdt}
    get_fdt_net=dhcp ${fdtaddr} ${tftp_root}/${name_fdt}
    get_fdt_nfs=nfs ${fdtaddr} ${nfs_root}/boot/${name_fdt}
    get_fdt_qspi=sf read ${fdtaddr} ${spifdtaddr} ${spifdtsize}
    get_fdt_ramfs=dhcp ${fdtaddr} ${tftp_root}/${name_fdt}
    get_fdt_ubi=ubifsload ${fdtaddr} ${bootdir}/${name_fdt}
    get_fit_mmc=load mmc ${bootpart} ${fit_loadaddr} ${bootdir}/${fit_bootfile}
    get_fit_net=dhcp ${fit_loadaddr} ${tftp_root}/${fit_bootfile}
    get_fit_nfs=nfs ${fit_loadaddr} ${nfs_root}/boot/${fit_bootfile}
    get_fit_ramfs=dhcp ${fit_loadaddr} ${tftp_root}/${fit_bootfile}
    get_fit_ubi=ubifsload ${fit_loadaddr} ${bootdir}/${fit_bootfile}
    get_fs_ramfs=dhcp ${rdaddr} ${tftp_root}/${name_fs}
    get_kern_mmc=load mmc ${bootpart} ${loadaddr} ${bootdir}/${name_kern}
    get_kern_net=dhcp ${loadaddr} ${tftp_root}/${name_kern}
    get_kern_nfs=nfs ${loadaddr} ${nfs_root}/boot/${name_kern}
    get_kern_qspi=sf read ${loadaddr} ${spisrcaddr} ${spiimgsize}
    get_kern_ramfs=dhcp ${loadaddr} ${tftp_root}/${name_kern}
    get_kern_ubi=ubifsload ${loadaddr} ${bootdir}/${name_kern}
    get_mon_mmc=load mmc ${bootpart} ${addr_mon} ${bootdir}/${name_mon}
    get_mon_net=dhcp ${addr_mon} ${tftp_root}/${name_mon}
    get_mon_nfs=nfs ${addr_mon} ${nfs_root}/boot/${name_mon}
    get_mon_qspi=sf read ${addr_mon} ${spimonaddr} ${spimonsize}
    get_mon_ramfs=dhcp ${addr_mon} ${tftp_root}/${name_mon}
    get_mon_ubi=ubifsload ${addr_mon} ${bootdir}/${name_mon}
    get_overlaystring=for overlay in $overlay_files;do;setenv overlaystring ${overlaystring}'#'${overlay};done;
    get_pmmc_mmc=load mmc ${bootpart} ${loadaddr} ${bootdir}/${name_pmmc}
    get_pmmc_net=dhcp ${loadaddr} ${tftp_root}/${name_pmmc}
    get_pmmc_nfs=nfs ${loadaddr} ${nfs_root}/boot/${name_pmmc}
    get_pmmc_qspi=sf read ${loadaddr} ${spiprocaddr} ${spiprocsize}
    get_pmmc_ramfs=run get_pmmc_net
    get_pmmc_ubi=ubifsload ${loadaddr} ${bootdir}/${name_pmmc}
    get_ubi_net=dhcp ${addr_ubi} ${tftp_root}/${name_ubi}
    get_ubi_nfs=nfs ${addr_ubi} ${nfs_root}/boot/${name_ubi}
    get_uboot_net=dhcp ${loadaddr} ${tftp_root}/${name_uboot}
    get_uboot_nfs=nfs ${loadaddr} ${nfs_root}/boot/${name_uboot}
    importbootenv=echo Importing environment from mmc${mmcdev} ...; env import -t ${loadaddr} ${filesize}
    init_fw_rd_mmc=load mmc ${bootpart} ${rdaddr} ${bootdir}/${name_fw_rd}; run set_rd_spec
    init_fw_rd_net=dhcp ${rdaddr} ${tftp_root}/${name_fw_rd}; run set_rd_spec
    init_fw_rd_nfs=nfs ${rdaddr} ${nfs_root}/boot/${name_fw_rd}; run set_rd_spec
    init_fw_rd_qspi=sf read ${rdaddr} ${spiinitrdaddr} ${spiinitrdsize}; run set_rd_spec
    init_fw_rd_ramfs=setenv rd_spec -
    init_fw_rd_ubi=ubifsload ${rdaddr} ${bootdir}/${name_fw_rd}; run set_rd_spec
    init_mmc=run args_all args_mmc
    init_net=run args_all args_net
    init_nfs=setenv autoload no; dhcp; run args_all args_net
    init_qspi=run args_all args_qspi
    init_ramfs=run args_all args_ramfs get_fs_ramfs
    init_ubi=run args_all args_ubi; ubi part ubifs; ubifsmount ubi:rootfs;
    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}
    loadfit=run args_mmc; run run_fit;
    loadimage=load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${bootfile}
    loadramdisk=load mmc ${mmcdev} ${rdaddr} ramdisk.gz
    mem_lpae=1
    mmcboot=mmc dev ${mmcdev}; setenv devnum ${mmcdev}; setenv devtype mmc; if mmc rescan; then echo SD/MMC found on device ${mmcdev};if run loadimage; then if test ${boot_fit} -eq 1; then run loadfit; else run mmcloados;fi;fi;fi;
    mmcdev=0
    mmcloados=run args_mmc; 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
    name_fs=arago-tiny-image-k2g-evm.cpio
    name_fw_rd=k2-fw-initrd.cpio.gz
    name_kern=zImage
    name_mon=skern-k2g.bin
    name_ubi=k2g-evm-ubifs.ubi
    name_uboot=u-boot-spi-k2g-evm.gph
    nfs_options=v3,tcp,rsize=4096,wsize=4096
    nfs_root=/export
    no_post=1
    partitions=uuid_disk=${uuid_gpt_disk};name=bootloader,start=384K,size=1792K,uuid=${uuid_gpt_bootloader};name=rootfs,start=2688K,size=-,uuid=${uuid_gpt_rootfs}
    pxefile_addr_r=0x80100000
    ramargs=setenv bootargs console=${console} ${optargs} root=${ramroot} rootfstype=${ramrootfstype}
    ramboot=echo Booting from ramdisk ...; run ramargs; bootz ${loadaddr} ${rdaddr} ${fdtaddr}
    ramdisk_addr_r=0x88080000
    ramroot=/dev/ram0 rw
    ramrootfstype=ext2
    rd_spec=-
    rdaddr=0x88080000
    run_fit=bootm ${fit_loadaddr}#${fdtfile}${overlaystring}
    run_kern=bootz ${loadaddr} ${rd_spec} ${fdtaddr}
    run_mon=mon_install ${addr_mon}
    run_mon_hs=mon_install ${addr_non_sec_mon} ${addr_load_sec_bm}
    run_pmmc=rproc init; rproc list; rproc load ${dev_pmmc} ${loadaddr} ${spiprocsize}; rproc start ${dev_pmmc}
    scriptaddr=0x80000000
    set_name_pmmc=setenv name_pmmc ti-sci-firmware-${soc_variant}.bin
    set_rd_spec=setenv rd_spec ${rdaddr}:${filesize}
    soc=keystone
    soc_variant=k2g
    spiboot=echo Booting from spi ...; run spiargs; sf probe ${spibusno}:0; sf read ${loadaddr} ${spisrcaddr} ${spiimgsize}; sf read ${fdtaddr} ${spifdtaddr} ${spifdtsize}; fdt addr ${fdtaddr}; fdt header; echo Start Boot; bootz ${loadaddr} - ${fdtaddr}
    spibusno=4
    spifdtaddr=0x200000
    spifdtsize=0x40000
    spiimgsize=0x800000
    spiinitrdaddr=0x260000
    spiinitrdsize=0x8625
    spimonaddr=0x240000
    spimonsize=0x8040
    spiprocaddr=0x250000
    spiprocsize=0x8354
    spiroot=/dev/mtdblock7 rw
    spirootfstype=jffs2
    spisrcaddr=0x280000
    stderr=serial@02530c00
    stdin=serial@02530c00
    stdout=serial@02530c00
    tftp_root=/
    update_to_fit=setenv loadaddr ${fit_loadaddr}; setenv bootfile ${fit_bootfile}
    vendor=ti
    ver=U-Boot 2019.01-g171fca6551-dirty (Apr 02 2020 - 16:41:42 +0200)
    
    Environment size: 9459/262139 bytes

    What could be the reason of that stop?

    Regards

    Graziano

  • Hi, Graziano,

    Yes, kernel panic is because the filesystem doesn't exist. I think you should look at how TI ubi boot works and I think your case is similar to it. The ubi boot has filesystem mounted in the beginning of the bootcmd when doing init_ubi. UBI has ubifsmount to mount the filesystem before everything else started. I don't know if SPI can do that.. You may also want to refer to TI ramfs boot which also download the filesystem into memory in the beginning of the boot. I don't know if ramfs boot fits in your case, but you will need to experiment a bit.

    Rex

  • Hi Rex,

    while waiting your last response I have tried with jffs2. I enabled jffs2 in linux kernel and compiled. I extracted arago-tiny-image-k2g-evm-tax.xz available in sdk and I installed kernel modules into this filesystem and created a jffs2 fs using the command mkfs.jffs2. I chose this fs because its size is compatible with QSPI size.

    At this poing the boot goes on more than my last communication:

    U-Boot 2019.01 (Apr 08 2020 - 17:12:06 +0200)
    
    CPU: 66AK2Gx-100 SR1.0
    Model: Texas Instruments K2G General Purpose EVM
    DRAM:
    Clear entire DDR3 memory to enable ECC
    2 GiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    Loading Environment from FAT... Card did not respond to voltage select!
    Net:
    Warning: netcp@4000000 using MAC address from ROM
    eth0: netcp@4000000
    Hit any key to stop autoboot:  0
    Card did not respond to voltage select!
    Card did not respond to voltage select!
    SF: Detected s25fl512s_256k with page size 256 Bytes, erase size 256 KiB, total 64 MiB
    device 0 offset 0x240000, size 0x8040
    SF: 32832 bytes @ 0x240000 Read: OK
    K2_BM_15.07-53-ge1f885a SoC:k2g built:17:19:23, Oct 19 2019
    
    ## installed monitor @ 0xc0f7000, freq [24000000], status 202338304
    device 0 offset 0x250000, size 0x8354
    SF: 33620 bytes @ 0x250000 Read: OK
    0 - Name:'pmmc@2900000' type:'internal memory mapped' supports: load start
    Load Remote Processor 0 with data@addr=0x82000000 33620 bytes: Success!
    device 0 offset 0x280000, size 0x800000
    SF: 8388608 bytes @ 0x280000 Read: OK
    device 0 offset 0x260000, size 0x8625
    SF: 34341 bytes @ 0x260000 Read: OK
    device 0 offset 0x200000, size 0x40000
    SF: 262144 bytes @ 0x200000 Read: OK
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Loading Ramdisk to 90000000, end 90000000 ... OK
       Loading Device Tree to 8fff5000, end 8ffff41a ... OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.19.59-rt24-g4203cb8c96 (root@ubuntu) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #1 SMP PREEMPT RT Wed Apr 8 19:13:36 CEST 2020
    [    0.000000] CPU: ARMv7 Processor [412fc0f4] revision 4 (ARMv7), cr=30c5387d
    [    0.000000] CPU: div instructions available: patching division code
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
    [    0.000000] OF: fdt: Machine model: Texas Instruments K2G General Purpose EVM
    [    0.000000] bootconsole [earlycon0] enabled
    [    0.000000] Memory policy: Data cache writealloc
    [    0.000000] Switching physical address space to 0x800000000
    [    0.000000] efi: Getting EFI parameters from FDT:
    [    0.000000] efi: UEFI not found.
    [    0.000000] Reserved memory: created CMA memory pool at 0x000000081f800000, size 8 MiB
    [    0.000000] OF: reserved mem: initialized node dsp-common-memory@81f800000, compatible id shared-dma-pool
    [    0.000000] cma: Reserved 48 MiB at 0x000000087cc00000
    [    0.000000] random: get_random_bytes called from start_kernel+0xb0/0x488 with crng_init=0
    [    0.000000] percpu: Embedded 17 pages/cpu s36896 r8192 d24544 u69632
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 491840
    [    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk root=/dev/mtdblock7 rw rootfstype=jffs2 rootwait
    [    0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
    [    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
    [    0.000000] Memory: 1887348K/1974272K available (6144K kernel code, 210K rwdata, 1708K rodata, 2048K init, 245K bss, 29580K reserved, 57344K cma-reserved, 1261568K highmem)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    [    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (8160 kB)
    [    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (2048 kB)
    [    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 211 kB)
    [    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 246 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] rcu: Preemptible hierarchical RCU implementation.
    [    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
    [    0.000000] rcu:     RCU priority boosting: priority 1 delay 500 ms.
    [    0.000000]  No expedited grace period (rcu_normal_after_boot).
    [    0.000000]  Tasks RCU enabled.
    [    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
    [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
    [    0.000000] GIC: Using split EOI/Deactivate mode
    [    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
    [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
    [    0.000005] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
    [    0.000011] Switching to timer-based delay loop, resolution 41ns
    [    0.000129] keystone_timer_init: failed to get clock
    [    0.000141] Failed to initialize '/soc@0/timer@2210000': -517
    [    0.000376] Console: colour dummy device 80x30
    [    0.265584] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
    [    0.265592] pid_max: default: 32768 minimum: 301
    [    0.265736] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.265744] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.266423] CPU: Testing write buffer coherency: ok
    [    0.266449] CPU0: Spectre v2: firmware did not set auxiliary control register IBE bit, system vulnerable
    [    0.266707] /cpus/cpu@0 missing clock-frequency property
    [    0.315151] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    [    0.380287] Setting up static identity map for 0x80200000 - 0x80200138
    [    0.400251] rcu: Hierarchical SRCU implementation.
    [    0.460759] EFI services will not be available.
    [    0.480385] smp: Bringing up secondary CPUs ...
    [    0.484934] smp: Brought up 1 node, 1 CPU
    [    0.488958] SMP: Total of 1 processors activated (48.00 BogoMIPS).
    [    0.495197] CPU: All CPU(s) started in HYP mode.
    [    0.499831] CPU: Virtualization extensions available.
    [    0.505656] devtmpfs: initialized
    [    0.520565] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
    [    0.528667] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.538547] futex hash table entries: 256 (order: 2, 16384 bytes)
    [    0.545804] pinctrl core: initialized pinctrl subsystem
    [    0.552021] DMI not present or invalid.
    [    0.556369] NET: Registered protocol family 16
    [    0.563708] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.580652] cpuidle: using governor menu
    [    0.585048] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
    [    0.593087] hw-breakpoint: maximum watchpoint size is 8 bytes.
    [    0.607117] davinci_gpio 2603000.gpio: Error -517 getting gpio clock
    [    0.615164] davinci_gpio 260a000.gpio: Error -517 getting gpio clock
    [    0.664518] SCSI subsystem initialized
    [    0.668891] pps_core: LinuxPPS API ver. 1 registered
    [    0.673954] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.683176] PTP clock support registered
    [    0.687130] EDAC MC: Ver: 3.0.0
    [    0.702253] clocksource: Switched to clocksource arch_sys_counter
    [    0.721315] NET: Registered protocol family 2
    [    0.726604] tcp_listen_portaddr_hash hash table entries: 512 (order: 2, 16384 bytes)
    [    0.734460] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.741617] TCP bind hash table entries: 8192 (order: 5, 229376 bytes)
    [    0.748434] TCP: Hash tables configured (established 8192 bind 8192)
    [    0.754982] UDP hash table entries: 512 (order: 3, 32768 bytes)
    [    0.760972] UDP-Lite hash table entries: 512 (order: 3, 32768 bytes)
    [    0.767629] NET: Registered protocol family 1
    [    0.772910] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available
    [    0.782174] platform alarmtimer: set dma_pfn_offset00780000
    [    0.788807] Initialise system trusted keyrings
    [    0.793545] workingset: timestamp_bits=14 max_order=19 bucket_order=5
    [    0.808891] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.814999] ntfs: driver 2.1.32 [Flags: R/O].
    [    0.819658] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
    [    0.829249] Key type asymmetric registered
    [    0.833438] Asymmetric key parser 'x509' registered
    [    0.838507] bounce: pool size: 64 pages
    [    0.842439] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
    [    0.849869] io scheduler noop registered
    [    0.853809] io scheduler deadline registered
    [    0.858390] io scheduler cfq registered (default)
    [    0.863191] io scheduler mq-deadline registered
    [    0.867740] io scheduler kyber registered
    [    0.872641] keystone_irq 26202a0.keystone_irq: irqchip registered, nr_irqs 28
    [    0.881113] pinctrl-single 2621000.pinmux: please update dts to use #pinctrl-cells = <1>
    [    0.889765] pinctrl-single 2621000.pinmux: 260 pins, size 1040
    [    0.979852] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
    [    0.986365] platform serial8250: set dma_pfn_offset00780000
    [    1.012461] brd: module loaded
    [    1.029515] loop: module loaded
    [    1.037069] platform Fixed MDIO bus.0: set dma_pfn_offset00780000
    [    1.043475] libphy: Fixed MDIO Bus: probed
    [    1.049188] i2c /dev entries driver
    [    1.057928] NET: Registered protocol family 10
    [    1.082838] Segment Routing with IPv6
    [    1.086631] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    [    1.093485] NET: Registered protocol family 17
    [    1.097996] Key type dns_resolver registered
    [    1.102460] Registering SWP/SWPB emulation handler
    [    1.108146] Loading compiled-in X.509 certificates
    [    1.114969] davinci_gpio 2603000.gpio: Error -517 getting gpio clock
    [    1.122689] davinci_gpio 260a000.gpio: Error -517 getting gpio clock
    [    1.137343] ti-sci 2921c00.pmmc: ABI: 2.4 (firmware rev 0x0011 '0.1.1-50-g129ef (Eagle)')
    [    1.161298] random: fast init done
    [    1.247007] ti-sci-clk 2921c00.pmmc:clocks: get-parent failed for dev=76, clk=11, ret=-19
    [    1.255392] ti-sci-clk 2921c00.pmmc:clocks: get-parent failed for dev=76, clk=11, ret=-19
    [    1.264011] ti-sci-clk 2921c00.pmmc:clocks: get-parent failed for dev=76, clk=11, ret=-19
    [    1.283497] keystone timer clock @166666666 Hz
    [    1.307766] edma 2700000.edma: TI EDMA DMA engine driver
    [    1.314107] edma 2728000.edma: memcpy is disabled
    [    1.325352] edma 2728000.edma: TI EDMA DMA engine driver
    [    1.334207] ti,keystone-serdes 2320000.phy: Direct firmware load for ks2_pcie_serdes.bin failed with error -2
    [    1.344264] ti,keystone-serdes 2320000.phy: can't get any serdes init fw
    [    1.350994] ti,keystone-serdes 2320000.phy: serdes procider init failed -19
    [    1.358922] keystone-navigator-qmss soc@0:qmss@4020000: qmgr start queue 0, number of queues 128
    [    1.367974] keystone-navigator-qmss soc@0:qmss@4020000: added qmgr start queue 0, num of queues 128, reg_peek (ptrval), reg_status   (null), reg_config (ptrval), reg_region (ptrval), reg_push (ptrval), reg_pop (ptrval)
    [    1.388906] keystone-navigator-dma soc@0:knav_dmas@0: DMA dma_gbe registered 53 logical channels, flows 32, tx chans: 21, rx chans: 32
    [    1.403213] console [ttyS0] disabled
    [    1.406837] 2530c00.serial: ttyS0 at MMIO 0x2530c00 (irq = 24, base_baud = 12000000) is a TI DA8xx/66AK2x
    [    1.416544] console [ttyS0] enabled
    [    1.416544] console [ttyS0] enabled
    [    1.423533] bootconsole [earlycon0] disabled
    [    1.423533] bootconsole [earlycon0] disabled
    [    1.434727] 2531400.serial: ttyS2 at MMIO 0x2531400 (irq = 25, base_baud = 12000000) is a TI DA8xx/66AK2x
    [    1.446405] cadence-qspi 2940000.qspi: non-uniform erase sector maps are not supported yet.
    [    1.454763] cadence-qspi 2940000.qspi: s25fl512s (65536 Kbytes)
    [    1.460752] 8 fixed-partitions partitions found on MTD device 2940000.qspi.0
    [    1.467787] Creating 8 MTD partitions on "2940000.qspi.0":
    [    1.473270] 0x000000000000-0x000000100000 : "MLO"
    [    1.479417] 0x000000100000-0x000000200000 : "u-boot.img"
    [    1.486078] 0x000000200000-0x000000240000 : "fdt"
    [    1.492087] 0x000000240000-0x000000250000 : "skern-k2g.bin"
    [    1.497652] mtd: partition "skern-k2g.bin" doesn't end on an erase/write block -- force read-only
    [    1.507847] 0x000000250000-0x000000260000 : "ti-sci-firmware"
    [    1.513585] mtd: partition "ti-sci-firmware" doesn't start on an erase/write block boundary -- force read-only
    [    1.524924] 0x000000260000-0x000000280000 : "k2-fw-initrd.cpio.gz"
    [    1.531093] mtd: partition "k2-fw-initrd.cpio.gz" doesn't start on an erase/write block boundary -- force read-only
    [    1.542889] 0x000000280000-0x000000a80000 : "kernel"
    [    1.549171] 0x000000a80000-0x000004000000 : "file-system"
    [    1.557105] spi_davinci 21805400.spi: DMA is not supported (-19)
    [    1.563611] spi_davinci 21805400.spi: Controller at 0x(ptrval)
    [    1.570547] spi_davinci 21805800.spi: DMA is not supported (-19)
    [    1.578850] m25p80 spi1.0: n25q128a13 (16384 Kbytes)
    [    1.583846] 2 fixed-partitions partitions found on MTD device spi1.0
    [    1.590189] Creating 2 MTD partitions on "spi1.0":
    [    1.594976] 0x000000000000-0x000000100000 : "u-boot-spl"
    [    1.601702] 0x000000100000-0x000001000000 : "misc"
    [    1.607858] spi_davinci 21805800.spi: Controller at 0x(ptrval)
    [    1.614772] spi_davinci 21805c00.spi: DMA is not supported (-19)
    [    1.621255] spi_davinci 21805c00.spi: Controller at 0x(ptrval)
    [    1.628092] spi_davinci 21806000.spi: DMA is not supported (-19)
    [    1.634564] spi_davinci 21806000.spi: Controller at 0x(ptrval)
    [    1.692304] davinci_mdio 4200f00.mdio: davinci mdio revision 1.7, bus freq 2500000
    [    1.699862] libphy: 4200f00.mdio: probed
    [    1.714922] davinci_mdio 4200f00.mdio: phy[0]: device 4200f00.mdio:00, driver unknown
    [    1.723290] netcp-1.0 2620110.netcp: ALE enabled
    [    1.728151] netcp-1.0 2620110.netcp: initialized cpsw ale version 1.4
    [    1.734603] netcp-1.0 2620110.netcp: ALE Table size 64
    [    1.739882] netcp-1.0 2620110.netcp: cpts: overflow check period 500 (jiffies)
    [    1.747097] netcp-1.0 2620110.netcp: CPTS: ref_clk_freq:250000000 calc_mult:2147483648 calc_shift:29 error:0 nsec/sec
    [    1.758783] netcp-1.0 2620110.netcp: module(netcp-xgbe) not used for device
    [    1.766465] hctosys: unable to open rtc device (rtc0)
    [    1.792113] ldo1: disabling
    [    3.579787] VFS: Mounted root (jffs2 filesystem) on device 31:7.
    [    3.586112] devtmpfs: mounted
    [    3.592181] Freeing unused kernel memory: 2048K
    [    3.596801] Run /sbin/init as init process
    [    3.980254] random: crng init done
    INIT: version 2.88 booting
    mount: /proc: operation permitted for root only.
    Framebuffer /dev/fb0 not detected
    Boot splashscreen disabled
    mount: only root can use "--types" option (effective UID is 1000)
    grep: /proc/filesystems: No such file or directory
    mount: only root can use "--no-mtab" option (effective UID is 1000)
    grep: /proc/filesystems: No such file or directory
    Sat Oct 19 19:15:05 UTC 2019
    /etc/init.d/rc: /etc/rcS.d/S37populate-volatile.sh: line 219: can't open /proc/cmdline: no such file
    /etc/init.d/rc: /etc/rcS.d/S38dmesg.sh: line 17: can't create /var/log/dmesg: nonexistent directory
    INIT: Entering runlevel: 5
    sed: /proc/mounts: No such file or directory
    sed: /proc/mounts: No such file or directory
    sed: /proc/mounts: No such file or directory
    Configuring network interfaces... grep: /proc/cmdline: No such file or directory
    done.
    Starting syslogd/klogd: done
    Oct 19 19:15:05 k2g-evm syslog.info syslogd started: BusyBox v1.29.3
    Oct 19 19:15:05 k2g-evm user.notice kernel: klogd started: BusyBox v1.29.3 (2019-10-19 17:24:13 UTC)
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.000000] Booting Linux on physical CPU 0x0
    Oct 19 19:15:05 k2g-evm user.notice kernel: [    0.000000] Linux version 4.19.59-rt24-g4203cb8c96 (root@ubuntu) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #1 SMP PREEMPT RT Wed Apr 8 19:13:36 CEST 2020
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.000000] CPU: ARMv7 Processor [412fc0f4] revision 4 (ARMv7), cr=30c5387d
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.000000] CPU: div instructions available: patching division code
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.000000] OF: fdt: Machine model: Texas Instruments K2G General Purpose EVM
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.000000] bootconsole [earlycon0] enabled
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.000000] Memory policy: Data cache writealloc
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.000000] Switching physical address space to 0x800000000
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.000000] efi: Getting EFI parameters from FDT:
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.000000] efi: UEFI not found.
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.000000] Reserved memory: created CMA memory pool at 0x000000081f800000, size 8 MiB
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.000000] OF: reserved mem: initialized node dsp-common-memory@81f800000, compatible id shared-dma-pool
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.000000] cma: Reserved 48 MiB at 0x000000087cc00000
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    0.000000] On node 0 totalpages: 493568
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    0.000000]   DMA zone: 1728 pages used for memmap
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    0.000000]   DMA zone: 0 pages reserved
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    0.000000]   DMA zone: 165888 pages, LIFO batch:31
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    0.000000]   HighMem zone: 327680 pages, LIFO batch:63
    Oct 19 19:15:05 k2g-evm user.notice kernel: [    0.000000] random: get_random_bytes called from start_kernel+0xb0/0x488 with crng_init=0
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.000000] percpu: Embedded 17 pages/cpu s36896 r8192 d24544 u69632
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    0.000000] pcpu-alloc: s36896 r8192 d24544 u69632 alloc=17*4096
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    0.000000] pcpu-alloc: [0] 0
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 491840
    Oct 19 19:15:05 k2g-evm user.notice kernel: [    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk root=/dev/mtdblock7 rw rootfstype=jffs2 rootwait
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.000000] Memory: 1887348K/1974272K available (6144K kernel code, 210K rwdata, 1708K rodata, 2048K init, 245K bss, 29580K reserved, 57344K cma-reserved, 1261568K highmem)
    Oct 19 19:15:05 k2g-evm user.notice kernel: [    0.000000] Virtual kernel memory layout:
    Oct 19 19:15:05 k2g-evm user.notice kernel: [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    Oct 19 19:15:05 k2g-evm user.notice kernel: [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    Oct 19 19:15:05 k2g-evm user.notice kernel: [    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
    Oct 19 19:15:05 k2g-evm user.notice kernel: [    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
    Oct 19 19:15:05 k2g-evm user.notice kernel: [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    Oct 19 19:15:05 k2g-evm user.notice kernel: [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    Oct 19 19:15:05 k2g-evm user.notice kernel: [    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (8160 kB)
    Oct 19 19:15:05 k2g-evm user.notice kernel: [    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (2048 kB)
    Oct 19 19:15:05 k2g-evm user.notice kernel: [    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 211 kB)
    Oct 19 19:15:05 k2g-evm user.notice kernel: [    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 246 kB)
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.000000] rcu: Preemptible hierarchical RCU implementation.
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.000000] rcu:   RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.000000] rcu:   RCU priority boosting: priority 1 delay 500 ms.
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.000000]        No expedited grace period (rcu_normal_after_boot).
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.000000]        Tasks RCU enabled.
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.000000] GIC: Using split EOI/Deactivate mode
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.000005] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.000011] Switching to timer-based delay loop, resolution 41ns
    Oct 19 19:15:05 k2g-evm user.err kernel: [    0.000129] keystone_timer_init: failed to get clock
    Oct 19 19:15:05 k2g-evm user.err kernel: [    0.000141] Failed to initialize '/soc@0/timer@2210000': -517
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.000376] Console: colour dummy device 80x30
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.265584] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.265592] pid_max: default: 32768 minimum: 301
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.265736] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.265744] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.266423] CPU: Testing write buffer coherency: ok
    Oct 19 19:15:05 k2g-evm user.err kernel: [    0.266449] CPU0: Spectre v2: firmware did not set auxiliary control register IBE bit, system vulnerable
    Oct 19 19:15:05 k2g-evm user.err kernel: [    0.266707] /cpus/cpu@0 missing clock-frequency property
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.315151] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.380287] Setting up static identity map for 0x80200000 - 0x80200138
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.400251] rcu: Hierarchical SRCU implementation.
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.460759] EFI services will not be available.
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.480385] smp: Bringing up secondary CPUs ...
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.484934] smp: Brought up 1 node, 1 CPU
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.488958] SMP: Total of 1 processors activated (48.00 BogoMIPS).
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.495197] CPU: All CPU(s) started in HYP mode.
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.499831] CPU: Virtualization extensions available.
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.505656] devtmpfs: initialized
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.520565] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.528667] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.538547] futex hash table entries: 256 (order: 2, 16384 bytes)
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.545804] pinctrl core: initialized pinctrl subsystem
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.552021] DMI not present or invalid.
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.556369] NET: Registered protocol family 16
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.563708] DMA: preallocated 256 KiB pool for atomic coherent allocations
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.580652] cpuidle: using governor menu
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.585048] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.593087] hw-breakpoint: maximum watchpoint size is 8 bytes.
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    0.606959] gpio gpiochip0: (davinci_gpio.0): added GPIO chardev (254:0)
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    0.607091] gpiochip_setup_dev: registered GPIOs 0 to 143 on device: gpiochip0 (davinci_gpio.0)
    Oct 19 19:15:05 k2g-evm user.err kernel: [    0.607117] davinci_gpio 2603000.gpio: Error -517 getting gpio clock
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    0.615021] gpio gpiochip0: (davinci_gpio.0): added GPIO chardev (254:0)
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    0.615141] gpiochip_setup_dev: registered GPIOs 0 to 67 on device: gpiochip0 (davinci_gpio.0)
    Oct 19 19:15:05 k2g-evm user.err kernel: [    0.615164] davinci_gpio 260a000.gpio: Error -517 getting gpio clock
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    0.662853] of_get_named_gpiod_flags: can't parse 'gpio' property of node '/fixedregulator-vcc3v3-dcin[0]'
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    0.663245] of_get_named_gpiod_flags: can't parse 'gpio' property of node '/fixedregulator-vcc1v8-ldo1[0]'
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    0.663627] of_get_named_gpiod_flags: can't parse 'gpio' property of node '/fixedregulator-vcc1v8-aud[0]'
    Oct 19 19:15:05 k2g-evm user.notice kernel: [    0.664518] SCSI subsystem initialized
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.668891] pps_core: LinuxPPS API ver. 1 registered
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.673954] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.683176] PTP clock support registered
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.687130] EDAC MC: Ver: 3.0.0
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.702253] clocksource: Switched to clocksource arch_sys_counter
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.721315] NET: Registered protocol family 2
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.726604] tcp_listen_portaddr_hash hash table entries: 512 (order: 2, 16384 bytes)
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.734460] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.741617] TCP bind hash table entries: 8192 (order: 5, 229376 bytes)
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.748434] TCP: Hash tables configured (established 8192 bind 8192)
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.754982] UDP hash table entries: 512 (order: 3, 32768 bytes)
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.760972] UDP-Lite hash table entries: 512 (order: 3, 32768 bytes)
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.767629] NET: Registered protocol family 1
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.772910] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available
    Oct 19 19:15:05 k2g-evm user.err kernel: [    0.782174] platform alarmtimer: set dma_pfn_offset00780000
    Oct 19 19:15:05 k2g-evm user.notice kernel: [    0.788807] Initialise system trusted keyrings
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.793545] workingset: timestamp_bits=14 max_order=19 bucket_order=5
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.808891] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.814999] ntfs: driver 2.1.32 [Flags: R/O].
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.819658] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
    Oct 19 19:15:05 k2g-evm user.notice kernel: [    0.829249] Key type asymmetric registered
    Oct 19 19:15:05 k2g-evm user.notice kernel: [    0.833438] Asymmetric key parser 'x509' registered
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.838507] bounce: pool size: 64 pages
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.842439] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.849869] io scheduler noop registered
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.853809] io scheduler deadline registered
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.858390] io scheduler cfq registered (default)
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.863191] io scheduler mq-deadline registered
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.867740] io scheduler kyber registered
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.872641] keystone_irq 26202a0.keystone_irq: irqchip registered, nr_irqs 28
    Oct 19 19:15:05 k2g-evm user.warn kernel: [    0.881113] pinctrl-single 2621000.pinmux: please update dts to use #pinctrl-cells = <1>
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.889765] pinctrl-single 2621000.pinmux: 260 pins, size 1040
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    0.896274] gpio-syscon 2620240.keystone_dsp_gpio: can't read the dir register offset!
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    0.896297] gpiochip_find_base: found new base at 484
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    0.896554] gpio gpiochip0: (2620240.keystone_dsp_gpio): added GPIO chardev (254:0)
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    0.896676] gpiochip_setup_dev: registered GPIOs 484 to 511 on device: gpiochip0 (2620240.keystone_dsp_gpio)
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    0.896788] gpio-syscon 262026c.keystone-pruss-gpio: can't read the dir register offset!
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    0.896807] gpiochip_find_base: found new base at 456
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    0.897029] gpio gpiochip1: (262026c.keystone-pruss-gpio): added GPIO chardev (254:1)
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    0.897144] gpiochip_setup_dev: registered GPIOs 456 to 483 on device: gpiochip1 (262026c.keystone-pruss-gpio)
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    0.897254] gpio-syscon 2620270.keystone-pruss-gpio: can't read the dir register offset!
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    0.897271] gpiochip_find_base: found new base at 428
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    0.897464] gpio gpiochip2: (2620270.keystone-pruss-gpio): added GPIO chardev (254:2)
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    0.897586] gpiochip_setup_dev: registered GPIOs 428 to 455 on device: gpiochip2 (2620270.keystone-pruss-gpio)
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    0.897690] gpio-syscon 2620274.keystone-pruss-gpio: can't read the dir register offset!
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    0.897707] gpiochip_find_base: found new base at 400
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    0.897900] gpio gpiochip3: (2620274.keystone-pruss-gpio): added GPIO chardev (254:3)
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    0.898020] gpiochip_setup_dev: registered GPIOs 400 to 427 on device: gpiochip3 (2620274.keystone-pruss-gpio)
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    0.898123] gpio-syscon 2620278.keystone-pruss-gpio: can't read the dir register offset!
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    0.898141] gpiochip_find_base: found new base at 372
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    0.898340] gpio gpiochip4: (2620278.keystone-pruss-gpio): added GPIO chardev (254:4)
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    0.898453] gpiochip_setup_dev: registered GPIOs 372 to 399 on device: gpiochip4 (2620278.keystone-pruss-gpio)
    Oct 19 19:15:05 k2g-evm user.info kernel: [    0.979852] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
    Oct 19 19:15:05 k2g-evm user.err kernel: [    0.986365] platform serial8250: set dma_pfn_offset00780000
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.012461] brd: module loaded
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.029515] loop: module loaded
    Oct 19 19:15:05 k2g-evm user.err kernel: [    1.037069] platform Fixed MDIO bus.0: set dma_pfn_offset00780000
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    1.043424] mdio_bus fixed-0: GPIO lookup for consumer reset
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    1.043433] mdio_bus fixed-0: using lookup tables for GPIO lookup
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    1.043443] mdio_bus fixed-0: No GPIO consumer reset found
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.043475] libphy: Fixed MDIO Bus: probed
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.049188] i2c /dev entries driver
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.057928] NET: Registered protocol family 10
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.082838] Segment Routing with IPv6
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.086631] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.093485] NET: Registered protocol family 17
    Oct 19 19:15:05 k2g-evm user.notice kernel: [    1.097996] Key type dns_resolver registered
    Oct 19 19:15:05 k2g-evm user.notice kernel: [    1.102460] Registering SWP/SWPB emulation handler
    Oct 19 19:15:05 k2g-evm user.notice kernel: [    1.108146] Loading compiled-in X.509 certificates
    umount: /mnt/.psplash: umount failed: No such file or directory.
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    1.114819] gpio gpiochip5: (davinci_gpio.0): added GPIO chardev (254:5)
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    1.114942] gpiochip_setup_dev: registered GPIOs 0 to 143 on device: gpiochip5 (davinci_gpio.0)
    Oct 19 19:15:05 k2g-evm user.err kernel: [    1.114969] davinci_gpio 2603000.gpio: Error -517 getting gpio clock
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    1.122541] gpio gpiochip5: (davinci_gpio.0): added GPIO chardev (254:5)
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    1.122665] gpiochip_setup_dev: registered GPIOs 0 to 67 on device: gpiochip5 (davinci_gpio.0)
    Oct 19 19:15:05 k2g-evm user.err kernel: [    1.122689] davinci_gpio 260a000.gpio: Error -517 getting gpio clock
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.137343] ti-sci 2921c00.pmmc: ABI: 2.4 (firmware rev 0x0011 '0.1.1-50-g129ef (Eagle)')
    Oct 19 19:15:05 k2g-evm user.notice kernel: [    1.161298] random: fast init done
    Oct 19 19:15:05 k2g-evm user.err kernel: [    1.247007] ti-sci-clk 2921c00.pmmc:clocks: get-parent failed for dev=76, clk=11, ret=-19
    Oct 19 19:15:05 k2g-evm user.err kernel: [    1.255392] ti-sci-clk 2921c00.pmmc:clocks: get-parent failed for dev=76, clk=11, ret=-19
    Oct 19 19:15:05 k2g-evm user.err kernel: [    1.264011] ti-sci-clk 2921c00.pmmc:clocks: get-parent failed for dev=76, clk=11, ret=-19
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.283497] keystone timer clock @166666666 Hz
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    1.288534] gpio gpiochip5: (davinci_gpio.0): added GPIO chardev (254:5)
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    1.288658] gpiochip_setup_dev: registered GPIOs 0 to 143 on device: gpiochip5 (davinci_gpio.0)
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    1.296055] gpio gpiochip6: (davinci_gpio.1): added GPIO chardev (254:6)
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    1.296193] gpiochip_setup_dev: registered GPIOs 144 to 211 on device: gpiochip6 (davinci_gpio.1)
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.307766] edma 2700000.edma: TI EDMA DMA engine driver
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.314107] edma 2728000.edma: memcpy is disabled
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.325352] edma 2728000.edma: TI EDMA DMA engine driver
    Oct 19 19:15:05 k2g-evm user.warn kernel: [    1.334207] ti,keystone-serdes 2320000.phy: Direct firmware load for ks2_pcie_serdes.bin failed with error -2
    Oct 19 19:15:05 k2g-evm user.err kernel: [    1.344264] ti,keystone-serdes 2320000.phy: can't get any serdes init fw
    Oct 19 19:15:05 k2g-evm user.err kernel: [    1.350994] ti,keystone-serdes 2320000.phy: serdes procider init failed -19
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.358922] keystone-navigator-qmss soc@0:qmss@4020000: qmgr start queue 0, number of queues 128
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.367974] keystone-navigator-qmss soc@0:qmss@4020000: added qmgr start queue 0, num of queues 128, reg_peek (ptrval), reg_status   (null), reg_config (ptrval), reg_region (ptrval), reg_push (ptrval), reg_pop (ptrval)
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.388906] keystone-navigator-dma soc@0:knav_dmas@0: DMA dma_gbe registered 53 logical channels, flows 32, tx chans: 21, rx chans: 32
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.403213] console [ttyS0] disabled
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.406837] 2530c00.serial: ttyS0 at MMIO 0x2530c00 (irq = 24, base_baud = 12000000) is a TI DA8xx/66AK2x
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.416544] console [ttyS0] enabled
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.423533] bootconsole [earlycon0] disabled
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.434727] 2531400.serial: ttyS2 at MMIO 0x2531400 (irq = 25, base_baud = 12000000) is a TI DA8xx/66AK2x
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.446405] cadence-qspi 2940000.qspi: non-uniform erase sector maps are not supported yet.
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.454763] cadence-qspi 2940000.qspi: s25fl512s (65536 Kbytes)
    Oct 19 19:15:05 k2g-evm user.notice kernel: [    1.460752] 8 fixed-partitions partitions found on MTD device 2940000.qspi.0
    grep: /proc/tty/drivers: No such file or directory
    Oct 19 19:15:05 k2g-evm user.notice kernel: [    1.467787] Creating 8 MTD partitions on "2940000.qspi.0":
    Oct 19 19:15:05 k2g-evm user.notice kernel: [    1.473270] 0x000000000000-0x000000100000 : "MLO"
    Oct 19 19:15:05 k2g-evm user.notice kernel: [    1.479417] 0x000000100000-0x000000200000 : "u-boot.img"
    Oct 19 19:15:05 k2g-evm user.notice kernel: [    1.486078] 0x000000200000-0x000000240000 : "fdt"
    Oct 19 19:15:05 k2g-evm user.notice kernel: [    1.492087] 0x000000240000-0x000000250000 : "skern-k2g.bin"
    Oct 19 19:15:05 k2g-evm user.warn kernel: [    1.497652] mtd: partition "skern-k2g.bin" doesn't end on an erase/write block -- force read-only
    Oct 19 19:15:05 k2g-evm user.notice kernel: [    1.507847] 0x000000250000-0x000000260000 : "ti-sci-firmware"
    Oct 19 19:15:05 k2g-evm user.warn kernel: [    1.513585] mtd: partition "ti-sci-firmware" doesn't start on an erase/write block boundary -- force read-only
    Oct 19 19:15:05 k2g-evm user.notice kernel: [    1.524924] 0x000000260000-0x000000280000 : "k2-fw-initrd.cpio.gz"
    Oct 19 19:15:05 k2g-evm user.warn kernel: [    1.531093] mtd: partition "k2-fw-initrd.cpio.gz" doesn't start on an erase/write block boundary -- force read-only
    Oct 19 19:15:05 k2g-evm user.notice kernel: [    1.542889] 0x000000280000-0x000000a80000 : "kernel"
    Oct 19 19:15:05 k2g-evm user.notice kernel: [    1.549171] 0x000000a80000-0x000004000000 : "file-system"
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    1.557039] of_get_named_gpiod_flags: can't parse 'cs-gpios' property of node '/soc@0/spi@21805400[0]'
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    1.557058] of_get_named_gpiod_flags: can't parse 'cs-gpios' property of node '/soc@0/spi@21805400[1]'
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    1.557074] of_get_named_gpiod_flags: can't parse 'cs-gpios' property of node '/soc@0/spi@21805400[2]'
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    1.557090] of_get_named_gpiod_flags: can't parse 'cs-gpios' property of node '/soc@0/spi@21805400[3]'
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.557105] spi_davinci 21805400.spi: DMA is not supported (-19)
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.563611] spi_davinci 21805400.spi: Controller at 0x(ptrval)
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    1.570486] of_get_named_gpiod_flags: can't parse 'cs-gpios' property of node '/soc@0/spi@21805800[0]'
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    1.570504] of_get_named_gpiod_flags: can't parse 'cs-gpios' property of node '/soc@0/spi@21805800[1]'
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    1.570519] of_get_named_gpiod_flags: can't parse 'cs-gpios' property of node '/soc@0/spi@21805800[2]'
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    1.570533] of_get_named_gpiod_flags: can't parse 'cs-gpios' property of node '/soc@0/spi@21805800[3]'
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.570547] spi_davinci 21805800.spi: DMA is not supported (-19)
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.578850] m25p80 spi1.0: n25q128a13 (16384 Kbytes)
    Oct 19 19:15:05 k2g-evm user.notice kernel: [    1.583846] 2 fixed-partitions partitions found on MTD device spi1.0
    Oct 19 19:15:05 k2g-evm user.notice kernel: [    1.590189] Creating 2 MTD partitions on "spi1.0":
    Oct 19 19:15:05 k2g-evm user.notice kernel: [    1.594976] 0x000000000000-0x000000100000 : "u-boot-spl"
    Oct 19 19:15:05 k2g-evm user.notice kernel: [    1.601702] 0x000000100000-0x000001000000 : "misc"
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.607858] spi_davinci 21805800.spi: Controller at 0x(ptrval)
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    1.614709] of_get_named_gpiod_flags: can't parse 'cs-gpios' property of node '/soc@0/spi@21805c00[0]'
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    1.614727] of_get_named_gpiod_flags: can't parse 'cs-gpios' property of node '/soc@0/spi@21805c00[1]'
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    1.614742] of_get_named_gpiod_flags: can't parse 'cs-gpios' property of node '/soc@0/spi@21805c00[2]'
    grep: /proc/tty/drivers: No such file or directory
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    1.614758] of_get_named_gpiod_flags: can't parse 'cs-gpios' property of node '/soc@0/spi@21805c00[3]'
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.614772] spi_davinci 21805c00.spi: DMA is not supported (-19)
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.621255] spi_davinci 21805c00.spi: Controller at 0x(ptrval)
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    1.628034] of_get_named_gpiod_flags: can't parse 'cs-gpios' property of node '/soc@0/spi@21806000[0]'
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    1.628050] of_get_named_gpiod_flags: can't parse 'cs-gpios' property of node '/soc@0/spi@21806000[1]'
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    1.628065] of_get_named_gpiod_flags: can't parse 'cs-gpios' property of node '/soc@0/spi@21806000[2]'
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    1.628079] of_get_named_gpiod_flags: can't parse 'cs-gpios' property of node '/soc@0/spi@21806000[3]'
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.628092] spi_davinci 21806000.spi: DMA is not supported (-19)
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.634564] spi_davinci 21806000.spi: Controller at 0x(ptrval)
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    1.640961] mdio_bus 4200f00.mdio: GPIO lookup for consumer reset
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    1.640972] mdio_bus 4200f00.mdio: using device tree for GPIO lookup
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    1.641003] of_get_named_gpiod_flags: can't parse 'reset-gpios' property of node '/soc@0/mdio@4200f00[0]'
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    1.641020] of_get_named_gpiod_flags: can't parse 'reset-gpio' property of node '/soc@0/mdio@4200f00[0]'
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    1.641032] mdio_bus 4200f00.mdio: using lookup tables for GPIO lookup
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    1.641042] mdio_bus 4200f00.mdio: No GPIO consumer reset found
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.692304] davinci_mdio 4200f00.mdio: davinci mdio revision 1.7, bus freq 2500000
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.699862] libphy: 4200f00.mdio: probed
    Oct 19 19:15:05 k2g-evm user.debug kernel: [    1.714755] of_get_named_gpiod_flags: can't parse 'reset-gpios' property of node '/soc@0/mdio@4200f00/ethernet-phy@0[0]'
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.714922] davinci_mdio 4200f00.mdio: phy[0]: device 4200f00.mdio:00, driver unknown
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.723290] netcp-1.0 2620110.netcp: ALE enabled
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.728151] netcp-1.0 2620110.netcp: initialized cpsw ale version 1.4
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.734603] netcp-1.0 2620110.netcp: ALE Table size 64
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.739882] netcp-1.0 2620110.netcp: cpts: overflow check period 500 (jiffies)
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.747097] netcp-1.0 2620110.netcp: CPTS: ref_clk_freq:250000000 calc_mult:2147483648 calc_shift:29 error:0 nsec/sec
    Oct 19 19:15:05 k2g-evm user.warn kernel: [    1.758783] netcp-1.0 2620110.netcp: module(netcp-xgbe) not used for device
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.766465] hctosys: unable to open rtc device (rtc0)
    Oct 19 19:15:05 k2g-evm user.info kernel: [    1.792113] ldo1: disabling
    Oct 19 19:15:05 k2g-evm user.info kernel: [    3.579787] VFS: Mounted root (jffs2 filesystem) on device 31:7.
    Oct 19 19:15:05 k2g-evm user.info kernel: [    3.586112] devtmpfs: mounted
    Oct 19 19:15:05 k2g-evm user.info kernel: [    3.592181] Freeing unused kernel memory: 2048K
    Oct 19 19:15:05 k2g-evm user.info kernel: [    3.596801] Run /sbin/init as init process
    Oct 19 19:15:05 k2g-evm user.notice kernel: [    3.980254] random: crng init done
    grep: /proc/tty/drivers: No such file or directory
    grep: /proc/tty/drivers: No such file or directory
    grep: /proc/tty/drivers: No such file or directory
    grep: /proc/tty/drivers: No such file or directory
    grep: /proc/tty/drivers: No such file or directory
    grep: /proc/tty/drivers: No such file or directory
    grep: /proc/tty/drivers: No such file or directory
    grep: /proc/tty/drivers: No such file or directory
    Oct 19 19:15:06 k2g-evm daemon.info init: Id "S0" respawning too fast: disabled for 5 minutes
    INIT: Id "S0" respawning too fast: disabled for 5 minutes
    Oct 19 19:15:06 k2g-evm daemon.info init: no more processes left in this runlevel
    INIT: no more processes left in this runlevel
    grep: /proc/tty/drivers: No such file or directory
    grep: /proc/tty/drivers: No such file or directory
    grep: /proc/tty/drivers: No such file or directory
    grep: /proc/tty/drivers: No such file or directory
    grep: /proc/tty/drivers: No such file or directory
    grep: /proc/tty/drivers: No such file or directory
    grep: /proc/tty/drivers: No such file or directory
    grep: /proc/tty/drivers: No such file or directory
    grep: /proc/tty/drivers: No such file or directory
    grep: /proc/tty/drivers: No such file or directory
    Oct 19 19:20:08 k2g-evm daemon.info init: Id "S0" respawning too fast: disabled for 5 minutes
    INIT: Id "S0" respawning too fast: disabled for 5 minutes
    grep: /proc/tty/drivers: No such file or directory

    Googling the print " Id "S0" respawning too fast: disabled for 5 minutes " I see that this loop is derived fron etc/initab inside the filesystem.

    # /etc/inittab: init(8) configuration.
    # $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $
    
    # The default runlevel.
    id:5:initdefault:
    
    # Boot-time system configuration/initialization script.
    # This is run first except when booting in emergency (-b) mode.
    si::sysinit:/etc/init.d/rcS
    
    # What to do in single-user mode.
    ~~:S:wait:/sbin/sulogin
    
    # /etc/init.d executes the S and K scripts upon change
    # of runlevel.
    #
    # Runlevel 0 is halt.
    # Runlevel 1 is single-user.
    # Runlevels 2-5 are multi-user.
    # Runlevel 6 is reboot.
    
    l0:0:wait:/etc/init.d/rc 0
    l1:1:wait:/etc/init.d/rc 1
    l2:2:wait:/etc/init.d/rc 2
    l3:3:wait:/etc/init.d/rc 3
    l4:4:wait:/etc/init.d/rc 4
    l5:5:wait:/etc/init.d/rc 5
    l6:6:wait:/etc/init.d/rc 6
    # Normally not reached, but fallthrough in case of emergency.
    z6:6:respawn:/sbin/sulogin
    S0:12345:respawn:/bin/start_getty 115200 ttyS0 vt102
    # /sbin/getty invocations for the runlevels.
    #
    # The "id" field MUST be the same as the last
    # characters of the device (after "tty").
    #
    # Format:
    #  <id>:<runlevels>:<action>:<process>
    #

    start_getty is defined in /bin.

    #!/bin/sh
    ###############################################################################
    # This script is used to automatically set up the serial console(s) on startup.
    # The variable SERIAL_CONSOLES can be set in meta/conf/machine/*.conf.
    # Script enhancement has been done based on Bug YOCTO #10844.
    # Most of the information is retrieved from /proc virtual filesystem containing
    # all the runtime system information (eg. system memory, device mount, etc).
    ###############################################################################
    
    # Get active serial filename.
    active_serial=$(grep "serial" /proc/tty/drivers | cut -d/ -f1 | sed "s/ *$//")
    
    # Rephrase input parameter from ttyS target index (ttyS1, ttyS2, ttyAMA0, etc).
    runtime_tty=$(echo $2 | grep -oh '[0-9]')
    
    # Backup $IFS.
    DEFAULT_IFS=$IFS
    # Customize Internal Field Separator.
    IFS="$(printf '\n\t')"
    
    for line in $active_serial; do
    	# Check we have the file containing current active serial target index.
    	if [ -e "/proc/tty/driver/$line" ]
            then
    		# Remove all unknown entries and discard the first line (desc).
    		activetty=$(grep -v "unknown" "/proc/tty/driver/$line" \
    			    | tail -n +2 | grep -oh "^\s*\S*[0-9]")
    		for active in $activetty; do
    			# If indexes do match then enable the serial console.
    			if [ $active -eq $runtime_tty ]
    			then
    				if [ -c /dev/$2 ]
    				then
    				    /sbin/getty -L $1 $2 $3
    				fi
    				break
    			fi
    		done
    	fi
    done
    
    # Restore $IFS.
    IFS=$DEFAULT_IFS
    

    Do you have any idea to resolve the problem?

    It seems that I am almost at the end of the bootstage and this could be the last issue before the complete boot-up via QSPI. 

    Regards

    Graziano

  • Hi Rex,

    just to inform you that I was able to boot completely the OS Linux from QSPI. Regarding my last problem, I changed two things:

    • added -p and -U option to mkfs.jffs2 command;
    • modified etc/fstab in  chosen filesystem based on my root and rootfstype.

    Hope this can help who deals with a similar issue.

    Thank you for your support, in particular your response on the first of April was useful to go on.

    Regards

    Graziano

  • Hi, Graziano,

    Thanks for posting back the solutioin to it. It definitely helps others in the similar issue.

    Rex