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.

RTOS/DRA745: DRA745

Part Number: DRA745
Other Parts Discussed in Thread: DRA752, DRA742

Tool/software: TI-RTOS

I have the same issues "out of memory" when i tape many times on the touchscreen , the surfcaeFlinger get stooped and the board crashed the rebooted  

i'm using the board Jacinto6 DRA74x  running under android oreo  6AO.1.1 (processors.wiki.ti.com/.../6AO.1.1_Release_Notes) , with the rvc 

  • - Prebuilt Release Image : software-dl.ti.com/.../index_FDS.html
  • - RobustRVC : Robust_RVC-5.0_Phase-6 (RobustRVC-5.0/rvc_phase-6/emmc_files)
  • - SDK Vision : PROCESSOR_SDK_VISION_03_02_00_00

and here the log file . 5270.minicom.txt

  • Hi Ahmed,

    In your boot log I see you're using your own kernel, can you verify if this occurs with only the prebuilt release images?

    I wasn't able to reproduce the issue by tapping around various screens in the Android UI, is there anything else that could help us reproduce the issue? How many taps does it take for you to reproduce the out of memory?

    Thanks,
    David
  • HI David thank you for your reply ,

    I flashed the prebuilt release images with rvc . and by tapping more than 3 times in UI it carshes .

    here the logs msg.jacinto6evm.txt

    Best regards

    Ahmed.

  • Hi Ahmed,

    Can you include the full logs of this crash after flashing with only the prebuilt images?

    Also, can you show me what prints if you stop at u-boot and do `printenv` before you start flashing images? When you do the `fastboot erase` steps, are both ipu2 and dsp1 erasing successfully?

    Thanks,
    David
  • Hello David ,

    here is the log of the crash :

    => 
    arch=arm
    args_fit=setenv bootargs console=${console} 
    args_mmc=run finduuid;setenv bootargs console=${console} ${optargs} root=PARTUUID=${uuid} rw rootfstype=${mmcrootfstype}
    baudrate=115200
    board=dra7xx
    board_name=dra7xx
    board_rev=H.0
    boot_fdt=try
    boot_fit=0
    boot_os=0
    bootargs=androidboot.serialno=${serial#} 
    bootcmd=if test ${dofastboot} -eq 1; then echo Boot fastboot requested, resetting dofastboot ...;setenv dofastboot 0; saveenv;echo Booting into fastboot ...; fastboot 0; fi;if test ${boot_fit} -eq 1; then
     run update_to_fit;fi;run findfdt; run envboot; run mmcboot;run emmc_android_boot; 
    bootdelay=2
    bootdir=/boot
    bootenvfile=uEnv.txt
    bootfile=zImage
    bootm_size=0x10000000
    bootpart=0:2
    bootscript=echo Running bootscript from mmc${mmcdev} ...; source ${loadaddr}
    console=ttyO0,115200n8
    cpu=armv7
    dfu_alt_info_emmc=rawemmc raw 0 3751936;boot part 1 1;rootfs part 1 2;MLO fat 1 1;MLO.raw raw 0x100 0x100;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 1 1;spl-os-image fat 1 1;u-boot.img fat 1 1;uEnv.txt fat 1 1
    dfu_alt_info_mmc=boot part 0 1;rootfs part 0 2;MLO fat 0 1;MLO.raw raw 0x100 0x100;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 0
    x6900;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 0x0 0x040000;u-boot.img raw 0x040000 0x0100000;u-boot-spl-os raw 0x140000 0x080000;u-boot-env raw 0x1C0000 0x010000;u-boot-env.backup raw 0x1D0000 0x010000;kernel raw 0x1E0000 0x
    800000
    dfu_alt_info_ram=kernel ram 0x80200000 0x4000000;fdt ram 0x80f80000 0x80000;ramdisk ram 0x81000000 0x4000000
    dfu_bufsiz=0x10000
    dofastboot=0
    emmc_android_boot=setenv eval_bootargs setenv bootargs $bootargs; run eval_bootargs; setenv mmcdev 1; setenv fdt_part 3; setenv boot_part 9; if test $reboot_image = recovery; then setenv boot_part 8; sete
    nv reboot_image boot; saveenv; fi;setenv machid fe6; mmc dev $mmcdev; mmc rescan; part start mmc ${mmcdev} ${fdt_part} fdt_start; part size mmc ${mmcdev} ${fdt_part} fdt_size; part start mmc ${mmcdev} ${b
    oot_part} boot_start; part size mmc ${mmcdev} ${boot_part} boot_size; mmc read ${fdtaddr} ${fdt_start} ${fdt_size}; mmc read ${loadaddr} ${boot_start} ${boot_size}; echo Booting from eMMC ...; bootm $load
    addr $loadaddr $fdtaddr;
    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 import
    bootenv;fi;if test -n $uenvcmd; then echo Running uenvcmd ...;run uenvcmd;fi;fi;fi;
    ethaddr=0c:b2:b7:f4:4e:72
    fastboot.board_rev=H.0
    fastboot.cpu=DRA752
    fastboot.secure=GP
    fastboot.userdata_size=6185567 KB
    fdt_addr_r=0x88000000
    fdtaddr=0x88000000
    fdtcontroladdr=fdf0a598
    fdtfile=undefined
    findfdt=if test $board_name = omap5_uevm; then setenv fdtfile omap5-uevm.dtb; fi; if test $board_name = dra7xx; then setenv fdtfile dra7-evm.dtb; fi;if test $board_name = dra72x-revc; then setenv fdtfile 
    dra72-evm-revc.dtb; fi;if test $board_name = dra72x; then setenv fdtfile dra72-evm.dtb; fi;if test $board_name = dra71x; then setenv fdtfile dra71-evm.dtb; fi;if test $board_name = dra76x; then setenv fdt
    file dra76-evm.dtb; fi;if test $board_name = beagle_x15; then setenv fdtfile am57xx-beagle-x15.dtb; fi;if test $board_name = beagle_x15_revb1; then setenv fdtfile am57xx-beagle-x15-revb1.dtb; fi;if test $
    board_name = am57xx_evm; then setenv fdtfile am57xx-evm.dtb; fi;if test $board_name = am57xx_evm_reva3; then setenv fdtfile am57xx-evm-reva3.dtb; fi;if test $board_name = am572x_idk && test $idk_lcd = no;
     then setenv fdtfile am572x-idk.dtb; fi;if test $board_name = am572x_idk && test $idk_lcd = osd101t2045; then setenv fdtfile am572x-idk-lcd-osd.dtb; fi;if test $board_name = am572x_idk && test $idk_lcd = 
    osd101t2587; then setenv fdtfile am572x-idk-lcd-osd101t2587.dtb; fi;if test $board_name = am571x_idk && test $idk_lcd = no; then setenv fdtfile am571x-idk.dtb; fi;if test $board_name = am571x_idk && test 
    $idk_lcd = osd101t2045; then setenv fdtfile am571x-idk-lcd-osd.dtb; fi;if test $board_name = am571x_idk && test $idk_lcd = osd101t2587; then setenv fdtfile am571x-idk-lcd-osd101t2587.dtb; fi;if test $fdtf
    ile = undefined; then echo WARNING: Could not determine device tree to use; fi; 
    finduuid=part uuid mmc ${bootpart} uuid
    fit_bootfile=fitImage.itb
    fit_loadaddr=0x88000000
    importbootenv=echo Importing environment from mmc${mmcdev} ...; env import -t ${loadaddr} ${filesize}
    kernel_addr_r=0x82000000
    loadaddr=0x82000000
    loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenvfile}
    loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr
    loadfdt=load ${devtype} ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}
    loadfit=run args_fit; bootm ${loadaddr}#${fdtfile};
    loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile}
    mmcboot=if mmc dev ${mmcdev}; then setenv devtype mmc; if mmc rescan; then echo SD/MMC found on device ${mmcdev};if run loadimage; then run loadfdt; echo Booting from mmc${mmcdev} ...; run args_mmc; bootz
     ${loadaddr} - ${fdtaddr}; 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 lo
    ad the DT; fi; fi; else bootz; fi;
    mmcrootfstype=ext4 rootwait
    netargs=setenv bootargs console=${console} ${optargs} root=/dev/nfs nfsroot=${serverip}:${rootpath},${nfsopts} rw ip=dhcp
    netboot=echo Booting from network ...; setenv autoload no; dhcp; run netloadimage; run netloadfdt; run netargs; bootz ${loadaddr} - ${fdtaddr}
    netloadfdt=tftp ${fdtaddr} ${fdtfile}
    netloadimage=tftp ${loadaddr} ${bootfile}
    nfsopts=nolock
    partitions=uuid_disk=${uuid_gpt_disk};name=xloader,start=128K,size=256K,uuid=${uuid_gpt_xloader};name=bootloader,size=2304K,uuid=${uuid_gpt_bootloader};name=environment,size=256K,uuid=${uuid_gpt_environme
    nt};name=misc,size=128K,uuid=${uuid_gpt_misc};name=reserved,size=384K,uuid=${uuid_gpt_reserved};name=efs,size=16M,uuid=${uuid_gpt_efs};name=crypto,size=16K,uuid=${uuid_gpt_crypto};name=recovery,size=30M,u
    uid=${uuid_gpt_recovery};name=boot,size=30M,uuid=${uuid_gpt_boot};name=system,size=768M,uuid=${uuid_gpt_system};name=vendor,size=256M,uuid=${uuid_gpt_vendor};name=cache,size=256M,uuid=${uuid_gpt_cache};na
    me=ipu1,size=8M,uuid=${uuid_gpt_ipu1};name=ipu2,size=7M,uuid=${uuid_gpt_ipu2};name=dsp1,size=1M,uuid=${uuid_gpt_dsp1};name=dsp2,size=8M,uuid=${uuid_gpt_dsp2};name=userdata,size=-,uuid=${uuid_gpt_userdata}
    partitions_android=uuid_disk=${uuid_gpt_disk};name=xloader,start=128K,size=256K,uuid=${uuid_gpt_xloader};name=bootloader,size=2304K,uuid=${uuid_gpt_bootloader};name=environment,size=256K,uuid=${uuid_gpt_e
    nvironment};name=misc,size=128K,uuid=${uuid_gpt_misc};name=reserved,size=384K,uuid=${uuid_gpt_reserved};name=efs,size=16M,uuid=${uuid_gpt_efs};name=crypto,size=16K,uuid=${uuid_gpt_crypto};name=recovery,si
    ze=30M,uuid=${uuid_gpt_recovery};name=boot,size=30M,uuid=${uuid_gpt_boot};name=system,size=768M,uuid=${uuid_gpt_system};name=vendor,size=256M,uuid=${uuid_gpt_vendor};name=cache,size=256M,uuid=${uuid_gpt_c
    ache};name=ipu1,size=8M,uuid=${uuid_gpt_ipu1};name=ipu2,size=7M,uuid=${uuid_gpt_ipu2};name=dsp1,size=1M,uuid=${uuid_gpt_dsp1};name=dsp2,size=8M,uuid=${uuid_gpt_dsp2};name=userdata,size=-,uuid=${uuid_gpt_u
    serdata}
    pxefile_addr_r=0x80100000
    ramdisk_addr_r=0x88080000
    rdaddr=0x88080000
    reboot_image=boot
    rootpath=/export/rootfs
    scriptaddr=0x80000000
    scsidevs=0
    serial#=0101800e0d4c0002
    soc=omap5
    static_ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off
    stderr=serial@4806a000
    stdin=serial@4806a000
    stdout=serial@4806a000
    update_to_fit=setenv loadaddr ${fit_loadaddr}; setenv bootfile ${fit_bootfile}
    usbtty=cdc_acm
    uuid_gpt_boot=cf2eecfa-4485-41e2-b19d-757e796da607
    uuid_gpt_bootloader=77877125-add0-4374-9e60-02cb591c9737
    uuid_gpt_cache=b6c45ead-9f2d-4485-9417-fe3bd1c9b1b3
    uuid_gpt_crypto=3d5088db-a534-413e-836d-c757cb682814
    uuid_gpt_disk=00042021-0408-4601-9dcc-a8c51255994f
    uuid_gpt_dsp1=369a6c6d-19e9-4d26-a9ee-bd00379686c7
    uuid_gpt_dsp2=0e8cb960-adbe-43b0-9cc6-5bd4e026d14a
    uuid_gpt_efs=02a90af2-5d1c-4a29-9177-97a513e3cae4
    uuid_gpt_environment=b4b84b8a-04e3-48ae-8536-aff5c9c495b1
    uuid_gpt_ipu1=180bebcc-cb39-47d5-9db7-03b405fa77d4
    uuid_gpt_ipu2=2b1a98d4-7804-4e54-9607-7fd3c651068d
    uuid_gpt_misc=35219908-c613-4b08-9322-3391ff571e19
    uuid_gpt_recovery=03332b01-ac34-4d28-99b4-34e03a2335f4
    uuid_gpt_reserved=8e123a33-e3d3-4db9-92f4-d3ebd9b3224f
    uuid_gpt_system=78093af1-b5b1-4e1a-8821-39438e24b627
    uuid_gpt_userdata=7bfe05ed-d33c-41cc-adaf-be8e55b00591
    uuid_gpt_vendor=04eb10b7-b945-4ae9-8d0b-21458d596f54
    uuid_gpt_xloader=8ef917d1-2c6f-4bd0-a5b2-331a19f91cb2
    vendor=ti
    ver=U-Boot 2016.05 (May 27 2019 - 14:33:26 +0200)
    vram=16M

    Environment size: 9091/131067 bytes

  • Hi Ahmed,

    Pinging for now, the log does not appear to be attached. Your u-boot environment looks correct at first glance though.

    Thanks,

    David

  • thank you for the reply David

    so what i can do now , the crashes appear only with the rvc ! 

  • Hi Ahmed,

    Can you test if you see the same issue on a 6AO issue without Robust RVC? http://processors.wiki.ti.com/index.php/6AO.1.1_Release_Notes

    Thanks,

    David

  • HI David

    I already tested it without the rvc and there are no issues it works . I have to add the rvc  its the main feature of my project.

    Thanks.

  • Hi Ahmed,

    Thanks for letting me know. I wanted to make sure the issue was more definitely RVC, and not a more general setup issue. 

    Can you attach the full logs of this with our prebuilt binaries? I mentioned before your previous post did not include a log, only the printenv.

    Can you also include logs of both your host command line and uart during the entire flashing process as well?

    Thanks,

    David

  • HI David and sorry for the late I was busy for another work on the board   

    I would to thank you for the reply , here you can find the minicom log during before and after the flashing process also the logcat log .

    Best regards.

    log_minicom.txt7725.logcat.txt

  • Hi Ahmed,

    Attaching a tarball of some scripts I use in my flashing process to simplify. It would help if you can attach the logs of host side where you're issuing the fastboot commands as well, so I can double check both sides of the flashing process. 

    The latest just now looks like the adb push commands may have been missed, so try using those scripts to ensure we're getting everything if you can. 

    Thanks,

    David

    flash_scripts.tar.gz

  • Hi DAVID THANK YOU again for your support

    I executed the attached scripts in the right order the fastboot erase steps, and adb push  done successfully. also  i attached the logs of my host machine .

    best regards .

    log_host_machine.txt
    ahmed@ahmed-Lenovo:~/RobustRVC-5.0/RobustRVC-5.0/rvc_phase-6/emmc_files$ sudo ./1_erase.sh 
    [sudo] password for ahmed: 
    Warning: May have to do this script over and over (reboot in between) in order to get both ipu2 and dsp1 to erase correctly
    ...
    OKAY [  0.405s]
    finished. total time: 0.405s
    erasing 'ipu2'...
    FAILED (remote: failed erasing from device)
    finished. total time: 6.763s
    erasing 'dsp1'...
    FAILED (remote: cannot find partition)
    finished. total time: 2.038s
    ahmed@ahmed-Lenovo:~/RobustRVC-5.0/RobustRVC-5.0/rvc_phase-6/emmc_files$ sudo ./1_erase.sh 
    Warning: May have to do this script over and over (reboot in between) in order to get both ipu2 and dsp1 to erase correctly
    ...
    OKAY [  0.400s]
    finished. total time: 0.400s
    erasing 'ipu2'...
    FAILED (remote: failed erasing from device)
    finished. total time: 7.035s
    erasing 'dsp1'...
    FAILED (remote: cannot find partition)
    finished. total time: 2.038s
    ahmed@ahmed-Lenovo:~/RobustRVC-5.0/RobustRVC-5.0/rvc_phase-6/emmc_files$ cat 1_erase.sh 
    echo "Warning: May have to do this script over and over (reboot in between) in order to get both ipu2 and dsp1 to erase correctly"
    
    fastboot oem format
    sleep 1
    fastboot erase ipu2
    fastboot erase dsp1
    ahmed@ahmed-Lenovo:~/RobustRVC-5.0/RobustRVC-5.0/rvc_phase-6/emmc_files$ sudo fastboot erase ipu2
    erasing 'ipu2'...
    FAILED (remote: failed erasing from device)
    finished. total time: 6.972s
    ahmed@ahmed-Lenovo:~/RobustRVC-5.0/RobustRVC-5.0/rvc_phase-6/emmc_files$ sudo fastboot erase ipu2
    erasing 'ipu2'...
    FAILED (remote: cannot find partition)
    finished. total time: 2.038s
    ahmed@ahmed-Lenovo:~/RobustRVC-5.0/RobustRVC-5.0/rvc_phase-6/emmc_files$ sudo fastboot erase ipu2
    < waiting for any device >
    erasing 'ipu2'...
    FAILED (remote: cannot find partition)
    finished. total time: 2.038s
    ahmed@ahmed-Lenovo:~/RobustRVC-5.0/RobustRVC-5.0/rvc_phase-6/emmc_files$ sudo fastboot erase ipu2
    erasing 'ipu2'...
    OKAY [  1.308s]
    finished. total time: 1.308s
    ahmed@ahmed-Lenovo:~/RobustRVC-5.0/RobustRVC-5.0/rvc_phase-6/emmc_files$ sudo ./1_erase.sh 
    Warning: May have to do this script over and over (reboot in between) in order to get both ipu2 and dsp1 to erase correctly
    ...
    OKAY [  0.018s]
    finished. total time: 0.018s
    erasing 'ipu2'...
    FAILED (remote: failed erasing from device)
    finished. total time: 6.512s
    erasing 'dsp1'...
    FAILED (remote: cannot find partition)
    finished. total time: 2.038s
    ahmed@ahmed-Lenovo:~/RobustRVC-5.0/RobustRVC-5.0/rvc_phase-6/emmc_files$ sudo ./1_erase.sh 
    Warning: May have to do this script over and over (reboot in between) in order to get both ipu2 and dsp1 to erase correctly
    ...
    OKAY [  0.018s]
    finished. total time: 0.018s
    erasing 'ipu2'...
    OKAY [  1.391s]
    finished. total time: 1.391s
    erasing 'dsp1'...
    OKAY [  0.118s]
    finished. total time: 0.118s
    ahmed@ahmed-Lenovo:~/RobustRVC-5.0/RobustRVC-5.0/rvc_phase-6/emmc_files$ sudo ./2_fastboot.sh 
    Fastboot: ./fastboot
    Image location: ./
    
    Fastboot - device detected: 030150126b5600a2
    
    DTB = ./dra7-evm-lcd-osd.dtb
    Create GPT partition table
    ...
    OKAY [  0.018s]
    finished. total time: 0.018s
    Setting target for bootloader to SPI
    ...
    OKAY [  5.337s]
    finished. total time: 5.337s
    Flashing bootloader.....
       xloader:     ./GP_MLO
    target reported max download size of 788529152 bytes
    sending 'xloader' (127 KB)...
    OKAY [  0.020s]
    writing 'xloader'...
    OKAY [  0.361s]
    finished. total time: 0.381s
       bootloader:  ./u-boot.img
    target reported max download size of 788529152 bytes
    sending 'bootloader' (817 KB)...
    OKAY [  0.053s]
    writing 'bootloader'...
    OKAY [  1.418s]
    finished. total time: 1.471s
    rebooting into bootloader...
    OKAY [  0.021s]
    finished. total time: 0.223s
    Re-creating GPT partition table with new bootloader
    ...
    OKAY [  0.018s]
    finished. total time: 0.018s
    Flash android partitions
    target reported max download size of 788529152 bytes
    sending 'boot' (8736 KB)...
    OKAY [  0.366s]
    writing 'boot'...
    OKAY [  0.939s]
    finished. total time: 1.305s
    Flashing environemnt.....
       environment: ./dra7-evm-lcd-osd.dtb
    target reported max download size of 788529152 bytes
    sending 'environment' (108 KB)...
    OKAY [  0.019s]
    writing 'environment'...
    OKAY [  0.023s]
    finished. total time: 0.042s
    target reported max download size of 788529152 bytes
    sending 'recovery' (13400 KB)...
    OKAY [  0.540s]
    writing 'recovery'...
    OKAY [  1.206s]
    finished. total time: 1.746s
    target reported max download size of 788529152 bytes
    sending 'system' (653360 KB)...
    OKAY [ 25.187s]
    writing 'system'...
    OKAY [ 47.912s]
    finished. total time: 73.099s
    target reported max download size of 788529152 bytes
    sending 'vendor' (17776 KB)...
    OKAY [  0.713s]
    writing 'vendor'...
    OKAY [  1.966s]
    finished. total time: 2.679s
    Resizing userdata.img
    Current userdata partition size=6185567 KB
    Creating filesystem with parameters:
        Size: 6334017536
        Block size: 4096
        Blocks per group: 32768
        Inodes per group: 8064
        Inode size: 256
        Journal blocks: 24162
        Label: 
        Blocks: 1546391
        Block groups: 48
        Reserved block group size: 383
    Created filesystem with 23/387072 inodes and 52565/1546391 blocks
    target reported max download size of 788529152 bytes
    sending 'userdata' (104785 KB)...
    OKAY [  3.891s]
    writing 'userdata'...
    OKAY [  8.668s]
    finished. total time: 12.559s
    target reported max download size of 788529152 bytes
    sending 'cache' (192 KB)...
    OKAY [  0.023s]
    writing 'cache'...
    OKAY [  0.043s]
    finished. total time: 0.066s
    rebooting...
    
    finished. total time: 0.255s
    
    After this script, let Android boot to UI before executing the next script
    
    ahmed@ahmed-Lenovo:~/RobustRVC-5.0/RobustRVC-5.0/rvc_phase-6/emmc_files$ ^C
    ahmed@ahmed-Lenovo:~/RobustRVC-5.0/RobustRVC-5.0/rvc_phase-6/emmc_files$ adb devices 
    List of devices attached
    
    030150126b5600a2	device
    
    ahmed@ahmed-Lenovo:~/RobustRVC-5.0/RobustRVC-5.0/rvc_phase-6/emmc_files$ sudo ./3_push.sh 
    restarting adbd as root
    ./3_push.sh: 8: [: List of devices attached
    030150126b5600a2	device: unexpected operator
    remount succeeded
    omapconf: 1 file pushed. 18.5 MB/s (2145005 bytes in 0.111s)
    appA15HeartBeatHost: 1 file pushed. 0.5 MB/s (20380 bytes in 0.037s)
    vis3.2/dra74-ipu2-fw.xem4: 1 file pushed. 22.9 MB/s (7001140 bytes in 0.291s)
    vis3.2/dra74-dsp1-fw.xe66: 1 file pushed. 23.4 MB/s (584384 bytes in 0.024s)
    ahmed@ahmed-Lenovo:~/RobustRVC-5.0/RobustRVC-5.0/rvc_phase-6/emmc_files$ sudo ./4_rvc_fastboot_dra74x.sh 
    < waiting for any device >
    ...
    OKAY [  0.424s]
    finished. total time: 0.424s
    target reported max download size of 788529152 bytes
    sending 'ipu2' (6837 KB)...
    OKAY [  0.267s]
    writing 'ipu2'...
    OKAY [  0.883s]
    finished. total time: 1.151s
    target reported max download size of 788529152 bytes
    sending 'dsp1' (570 KB)...
    OKAY [  0.035s]
    writing 'dsp1'...
    OKAY [  0.118s]
    finished. total time: 0.154s
    target reported max download size of 788529152 bytes
    sending 'environment' (109 KB)...
    OKAY [  0.034s]
    writing 'environment'...
    OKAY [  0.023s]
    finished. total time: 0.057s
    rebooting...
    
    finished. total time: 0.205s
    

  • Hi Ahmed,

    Can you provide the output of `free -m` before and after the crash if possible?

    Thanks,

    David

  • HI David ,

    i made script to show the memory on the board every second . so I noticed that there are a free memory up to 2.6 G and the shared memory is 105 . I reproduced the crash so just after the crash the shared memo jumpped to 169 it may be the cause . I attached bellow the log free memory  you can check the first crash just after the line number 651.  

    Best regards.memory_log.txt

  • Hi Ahmed,

    Sorry for the delay.

    The issue looks like we're running out of lowmem, which is the memory region used by alloc_pages.

    Can you try these "OOM issues with monkey test" patches from http://processors.wiki.ti.com/index.php/6AO.1.1_Application_Notes#Post_release_patches?

    If you continue to encounter, can you do a similar script with `cat /proc/meminfo`? Also, full logs including boot are always more helpful.

    Thanks,

    David

  • Hello David ;

    I already applied those two patches but there are no changes ! also you can check this attached file to see output "cat /proc/memoinfo"

    Thanks.

     log_cat_proc.txt

  • Hi Ahmed,

    Please try these instructions: http://processors.wiki.ti.com/index.php/6AO.1.1_Application_Notes#LPAE_and_SGX_buffers

    If 384M isn't enough you can try increasing it. 

    Thanks,

    David

    Edit: 384M may actually be much more than you need, in which case feel free to decrease as well. I was recommended 128M is probably enough, though I haven't tested that locally yet.

  • HI DAVID , thanks a lot for the reply . 

    I tried to set the cma=128M as u said but there are  no changes ! Now i'am trying to increase it up to 340M . would you confirm to me where should i modify the cam ? actualy i added CONFIG_CMA_SIZE_MBYTES=384 and  CONFIG_CMDLINE="root=/dev/mmcblk0p2 rw init=/init rootfstype=ext4 rootwait drm.rnodes=1 androidboot.selinux=permissive snd.slots_reserved=1,1 snd-soc-core.pmdown_time=-1 uio_pdrv_genirq.of_id=generic-uio console=ttyS0,115200 androidboot.console=ttyS0  cma=384M" in the file kernel/android-4.4/arch/arm/configs/ti_sdk_dra7x_android_release_defconfig is that correct ?  and what about the u-boot side shoud  change DRA7_RPROC_CMA_SIZE_IPU2 value in lateattach.c file ? note that the patches just applied on drivers/base/dma-contiguous.c in the kernel side and eurasia_km/services4/srvkm/env/linux/mm.c b/jacinto6/sgx_src/eurasia_km/services4/srvkm/env/linux/mm.c in the UI . And finally what about disabling the CONFIG_LATE_ATTACH_DMA_POOL ??? . 

    Best regards .

    AHMED

  • Hi Ahmed,

    I do not manually set CONFIG_CMA_SIZE_MBYTES, instead my CONFIG_CMDLILNE is:

    CONFIG_CMDLINE="root=/dev/mmcblk0p2 rw init=/init rootfstype=ext4 rootwait drm.rnodes=1 androidboot.selinux=permissive snd.slots_reserved=1,1 snd-soc-core.pmdown_time=-1 uio_pdrv_genirq.of_id=generic-uio console=ttyS0,115200 androidboot.console=ttyS0 androidboot.hardware=jacinto6evmboard cma=384M@0xc0000000"

    In the file ti_config_fragments/android_omap.cfg

    This should work if you're using defconfig_builder to create your defconfig. If not, then please edit that into whatever defconfig you are using.

    Thanks,

    David

    Edit: 

    For reference, you should see the highlighted line below change to 384M or whatever size you set it to during boot:

    Starting kernel ...

    [ 0.000000] Booting Linux on physical CPU 0x0
    [ 0.000000] Initializing cgroup subsys cpuset
    [ 0.000000] Initializing cgroup subsys cpu
    [ 0.000000] Initializing cgroup subsys cpuacct
    [ 0.000000] Linux version 4.4.117-00001-g8fa2c69-dirty (a0226152local@udc0226152) (gcc version 4.9.x 20150123 (prerelease) (GCC) ) #2 SMP PREEMPT Thu Jul 11 16:25:57 CDT 2019
    [ 0.000000] CPU: ARMv7 Processor [412fc0f2] revision 2 (ARMv7), cr=30c5387d
    [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
    [ 0.000000] Machine model: TI DRA742
    [ 0.000000] Reserved memory: created CMA memory pool at 0x0000000099000000, size 80 MiB
    [ 0.000000] Reserved memory: initialized node ipu2_cma@95800000, compatible id shared-dma-pool
    [ 0.000000] Reserved memory: created CMA memory pool at 0x000000009e000000, size 32 MiB
    [ 0.000000] Reserved memory: initialized node ipu1_cma@9d000000, compatible id shared-dma-pool
    [ 0.000000] Reserved memory: created CMA memory pool at 0x00000000a1000000, size 32 MiB
    [ 0.000000] Reserved memory: initialized node dsp1_cma@99000000, compatible id shared-dma-pool
    [ 0.000000] Reserved memory: created CMA memory pool at 0x00000000a3000000, size 32 MiB
    [ 0.000000] Reserved memory: initialized node dsp2_cma@9f000000, compatible id shared-dma-pool
    [ 0.000000] cma: Reserved 384 MiB at 0x00000000c0000000
    [ 0.000000] Forcing write-allocate cache policy for SMP
    [ 0.000000] Memory policy: Data cache writealloc
    [ 0.000000] OMAP4: Map 0x000000027fd00000 to fe600000 for dram barrier
    [ 0.000000] DRA752 ES2.0

  • HI david 

    I edited the defconf and android-omap.cfg and now the log after kernel starting appears as yours ,you can check mine in the log below : 

    ## Booting Android Image at 0x82000000 ...
    Kernel load addr 0x80008000 size 7847 KiB
    Kernel command line: buildvariant=userdebug
    RAM disk load addr 0x83000000 size 2113 KiB
    ## Flattened Device Tree blob at 88000000
    Booting using the fdt blob at 0x88000000
    Loading Kernel Image ... OK
    Loading Ramdisk to 8fdef000, end 8ffff030 ... OK
    Loading Device Tree to 8fdd0000, end 8fdee589 ... OK
    Using machid 0xfe6 from environment

    Starting kernel ...

    [ 0.000000] Booting Linux on physical CPU 0x0
    [ 0.000000] Initializing cgroup subsys cpuset
    [ 0.000000] Initializing cgroup subsys cpu
    [ 0.000000] Initializing cgroup subsys cpuacct
    [ 0.000000] Linux version 4.4.117 (ahmed@ActiaSystem) (gcc version 4.9.x 20150123 (prerelease) (GCC) ) #1 SMP PREEMPT Wed Jul 17 08:52:48 CET 2019
    [ 0.000000] CPU: ARMv7 Processor [412fc0f2] revision 2 (ARMv7), cr=30c5387d
    [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
    [ 0.000000] Machine model: TI DRA742
    [ 0.000000] Reserved memory: created CMA memory pool at 0x0000000099000000, size 80 MiB
    [ 0.000000] Reserved memory: initialized node ipu2_cma@95800000, compatible id shared-dma-pool
    [ 0.000000] Reserved memory: created CMA memory pool at 0x000000009e000000, size 32 MiB
    [ 0.000000] Reserved memory: initialized node ipu1_cma@9d000000, compatible id shared-dma-pool
    [ 0.000000] Reserved memory: created CMA memory pool at 0x00000000a1000000, size 32 MiB
    [ 0.000000] Reserved memory: initialized node dsp1_cma@99000000, compatible id shared-dma-pool
    [ 0.000000] Reserved memory: created CMA memory pool at 0x00000000a3000000, size 32 MiB
    [ 0.000000] Reserved memory: initialized node dsp2_cma@9f000000, compatible id shared-dma-pool
    [ 0.000000] cma: Reserved 384 MiB at 0x00000000c0000000
    [ 0.000000] Forcing write-allocate cache policy for SMP
    [ 0.000000] Memory policy: Data cache writealloc
    [ 0.000000] OMAP4: Map 0x000000027fd00000 to fe600000 for dram barrier
    [ 0.000000] DRA752 ES2.0
    [ 0.000000] PERCPU: Embedded 12 pages/cpu @eb718000 s19968 r8192 d20992 u49152
    [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 1040448
    [ 0.000000] Kernel command line: root=/dev/mmcblk0p2 rw init=/init rootfstype=ext4 rootwait drm.rnodes=1 androidboot.selinux=permissive snd.slots_reserved=1,1 snd-soc-core.pmdown_time=-1 uio_pdrv_genirq.of_id
    =generic-uio console=ttyS0,115200 androidboot.console=ttyS0 androidboot.hardware=jacintoboard cma=384M@0xc0000000 androidboot.serialno=030150126b5600a2 buildvariant=userdebug
    [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
    [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
    [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
    [ 0.000000] Memory: 3271716K/4168704K available (10240K kernel code, 626K rwdata, 3132K rodata, 2048K init, 667K bss, 323548K reserved, 573440K cma-reserved, 2993152K 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 : 0xc0008000 - 0xc0c00000 (12256 kB)
    [ 0.000000] .init : 0xc1000000 - 0xc1200000 (2048 kB)
    [ 0.000000] .data : 0xc1200000 - 0xc129ca64 ( 627 kB)
    [ 0.000000] .bss : 0xc129ca64 - 0xc1343764 ( 668 kB)
    [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
    [ 0.000000] Preemptible hierarchical RCU implementation.
    [ 0.000000] Build-time adjustment of leaf fanout to 32.
    [ 0.000000] NR_IRQS:16 nr_irqs:16 16
    [ 0.000000] ti_dt_clocks_register: failed to lookup clock node gmac_gmii_ref_clk_div
    [ 0.000000] OMAP clockevent source: timer1 at 32786 Hz
    [ 0.000000] Architected cp15 timer(s) running at 6.14MHz (phys).
    [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x16af5adb9, max_idle_ns: 440795202250 ns
    [ 0.000005] sched_clock: 56 bits at 6MHz, resolution 162ns, wraps every 4398046511023ns
    [ 0.000016] Switching to timer-based delay loop, resolution 162ns
    [ 0.000313] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns
    [ 0.000321] OMAP clocksource: 32k_counter at 32768 Hz
    [ 0.000738] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.29 BogoMIPS (lpj=61475)
    [ 0.000751] pid_max: default: 32768 minimum: 301
    [ 0.000825] Security Framework initialized
    [ 0.000836] SELinux: Initializing.
    [ 0.000911] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [ 0.000921] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [ 0.001488] Initializing cgroup subsys io
    [ 0.001506] Initializing cgroup subsys memory
    [ 0.001531] Initializing cgroup subsys devices
    [ 0.001544] Initializing cgroup subsys freezer
    [ 0.001554] Initializing cgroup subsys perf_event
    [ 0.001566] Initializing cgroup subsys pids
    [ 0.001603] CPU: Testing write buffer coherency: ok
    [ 0.001843] /cpus/cpu@0 missing clock-frequency property
    [ 0.001859] /cpus/cpu@1 missing clock-frequency property
    [ 0.001868] CPU0: update cpu_capacity 1024
    [ 0.001876] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    [ 0.001923] Setting up static identity map for 0x80200000 - 0x80200060
    [ 0.080184] CPU1: update cpu_capacity 1024
    [ 0.080189] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    [ 0.080262] Brought up 2 CPUs
    [ 0.080278] SMP: Total of 2 processors activated (24.59 BogoMIPS).
    [ 0.080285] CPU: All CPU(s) started in HYP mode.
    [ 0.080290] CPU: Virtualization extensions available.
    [ 0.080321] CPU1: update max cpu_capacity 1024
    [ 0.090193] CPU1: update max cpu_capacity 1024
    [ 0.110940] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
    [ 0.111946] omap_hwmod: l3_main_2 using broken dt data from ocp
    [ 0.295047] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [ 0.295070] futex hash table entries: 512 (order: 3, 32768 bytes)
    [ 0.304878] pinctrl core: initialized pinctrl subsystem
    [ 0.305866] NET: Registered protocol family 16
    [ 0.307029] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [ 0.330265] cpuidle: using governor ladder
    [ 0.360288] cpuidle: using governor menu
    [ 0.362518] ------------[ cut here ]------------
    [ 0.362541] WARNING: CPU: 0 PID: 1 at drivers/bus/omap_l3_noc.c:147 l3_interrupt_handler+0x318/0x400()
    [ 0.362551] 44000000.ocp:L3 Standard Error: MASTER IPU2 TARGET DSS (Read Link): At Address: 0x00001064 : Data Access in User mode during Functional access
    [ 0.362557] Modules linked in:
    [ 0.362572] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.4.117 #1
    [ 0.362579] Hardware name: Generic DRA74X (Flattened Device Tree)
    [ 0.362586] Backtrace:

    Again there are the same issue , our client noticed that when the rvc is enabled, if he tape many times quickly on one of the menu button of the bottom bar in the surfaceflinger it crashs with oom ! Until now tried to solve this without success ! does your board  do the same ? and what about cma reserved pages the highlighted ones ?

    [ 848.090530] Mem-Info:
    [ 848.092959] active_anon:43756 inactive_anon:53139 isolated_anon:0
    [ 848.092959] active_file:20554 inactive_file:31842 isolated_file:0
    [ 848.092959] unevictable:21850 dirty:0 writeback:0 unstable:0
    [ 848.092959] slab_reclaimable:3096 slab_unreclaimable:6110
    [ 848.092959] mapped:75330 shmem:53216 pagetables:3730 bounce:0
    [ 848.092959] free:735592 free_pcp:92 free_cma:104014
    [ 848.127628] DMA free:82296kB min:2108kB low:5632kB high:6160kB active_anon:12708kB inactive_anon:212180kB active_file:64kB inactive_file:344kB unevictable:5536kB isolated(anon):0kB isolated(file):0kB present:
    782336kB managed:462952kB mlocked:5536kB dirty:0kB writeback:0kB mapped:5804kB shmem:212180kB slab_reclaimable:12384kB slab_unreclaimable:24440kB kernel_stack:5680kB pagetables:1352kB unstable:0kB bounce:0kB fre
    e_pcp:56kB local_pcp:56kB free_cma:80464kB writeback_tmp:0kB pages_scanned:48 all_unreclaimable? no
    [ 848.173445] lowmem_reserve[]: 0 0 2923 2923
    [ 848.178263] HighMem free:2860188kB min:512kB low:26332kB high:30188kB active_anon:162416kB inactive_anon:376kB active_file:82152kB inactive_file:127064kB unevictable:81864kB isolated(anon):0kB isolated(file):
    0kB present:3386368kB managed:3386368kB mlocked:81880kB dirty:0kB writeback:0kB mapped:295892kB shmem:684kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:13568kB unstable:0kB bounce:0kB
    free_pcp:192kB local_pcp:120kB free_cma:335592kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
    [ 848.224523] lowmem_reserve[]: 0 0 0 0
    [ 848.228286] DMA: 173*4kB (UMEC) 119*8kB (UME) 30*16kB (UME) 2*32kB (C) 4*64kB (C) 2*128kB (C) 0*256kB 2*512kB (C) 1*1024kB (C) 0*2048kB 19*4096kB (C) = 82572kB
    [ 848.242898] HighMem: 893*4kB (UMC) 1080*8kB (UM) 659*16kB (UMC) 371*32kB (UMC) 214*64kB (UMC) 72*128kB (UMC) 25*256kB (UMC) 23*512kB (UMC) 7*1024kB (UMC) 4*2048kB (UM) 676*4096kB (MC) = 2859972kB
    [ 848.260751] 127400 total page cache pages
    [ 848.264714] 0 pages in swap cache
    [ 848.268118] Swap cache stats: add 0, delete 0, find 0/0
    [ 848.273364] Free swap = 0kB
    [ 848.276289] Total swap = 0kB
    [ 848.279180] 1042176 pages RAM
    [ 848.282154] 846592 pages HighMem/MovableOnly
    [ 848.286510] 79846 pages reserved
    [ 848.289747] 143360 pages cma reserved
    [ 848.293481] [ pid ] uid tgid total_vm rss nr_ptes nr_pmds swapents oom_score_adj name
    [ 848.302113] [ 132] 0 132 874 375 5 2 0 -1000 ueventd
    [ 848.310967] [ 159] 1036 159 3357 922 12 1 0 -1000 logd
    [ 848.319615] [ 160] 1000 160 1311 573 6 1 0 -1000 servicemanager
    [ 848.329112] [ 161] 1000 161 2319 1043 11 1 0 -1000 hwservicemanage
    [ 848.338689] [ 162] 1000 162 1277 531 6 1 0 -1000 vndservicemanag
    [ 848.348228] [ 163] 1000 163 2292 1128 11 1 0 -1000 keymaster@3.0-s
    [ 848.357794] [ 164] 0 164 3271 1341 14 1 0 -1000 vold
    [ 848.366410] [ 177] 0 177 6017 1190 18 2 0 -1000 Binder:177_2
    [ 848.375731] [ 178] 0 178 316852 26350 139 3 0 -1000 main
    [ 848.384350] [ 179] 0 179 1453 569 7 1 0 -1000 iptables-restor
    [ 848.393907] [ 180] 0 180 1455 593 6 1 0 -1000 ip6tables-resto
    [ 848.403512] [ 204] 1000 204 389406 65001 269 3 0 -900 system_server
    [ 848.412889] [ 224] 1000 224 1799 752 9 1 0 -1000 allocator@1.0-s
    [ 848.422487] [ 225] 1041 225 3942 1746 16 1 0 -1000 audio@2.0-servi
    [ 848.432070] [ 226] 0 226 3361 909 12 1 0 -1000 vehicle@2.0-ser
    [ 848.441667] [ 227] 1002 227 2210 781 9 1 0 -1000 bluetooth@1.0-s
    [ 848.451255] [ 228] 1047 228 3560 1618 16 1 0 -1000 provider@2.4-se
    [ 848.460792] [ 229] 1013 229 2009 890 8 1 0 -1000 cas@1.0-service
    [ 848.470411] [ 230] 1000 230 2231 762 9 1 0 -1000 configstore@1.0
    [ 848.480000] [ 231] 1013 231 2644 1161 12 1 0 -1000 drm@1.0-service
    [ 848.489640] [ 232] 1021 232 2398 1049 10 1 0 -1000 gnss@1.0-servic
    [ 848.499172] [ 237] 1000 237 3139 1155 13 1 0 -1000 allocator@2.0-s
    [ 848.508755] [ 238] 1000 238 2084 769 8 1 0 -1000 usb@1.0-service
    [ 848.518315] [ 239] 1010 239 2159 1085 9 1 0 -1000 android.hardwar
    [ 848.527865] [ 240] 0 240 2101 836 9 1 0 -1000 healthd
    [ 848.536724] [ 242] 0 242 1184 557 7 1 0 -1000 lmkd
    [ 848.545297] [ 243] 1000 243 59613 4395 36 1 0 -1000 surfaceflinger
    [ 848.554771] [ 244] 0 244 2212 926 11 1 0 -1000 thermalserviced

    Best regards

    Ahmed

  • Hi Ahmed,

    Can you make sure that both the PVR and kernel patches are applied and that you are also rebuilding the PVR driver in addition to kernel, and pushing it in the updated image?

    I am not able to reproduce the issue right now. Before these sets of patches we had a known issue where opening too many apps could create an OOM issue, but the first set of patches were the solution for that. After having both the Graphics OOM issue patch set and this LPAE and SGX buffers allocation patch set applied, I cannot create any OOM issues by tapping on the screen or opening apps on my local EVM.

    Thanks,

    David

  • Hi David

    I verified the patches on PVR and kernel , now I noticed that there are some improvements but the crash still occurred (tapping faster the screen than before)  even by increasing the cam into 684 M . I guess this issue not only related to the lack of memory it may be also about the default auto launcher ! also can you share your own .conf file in the kernel and u-boot side please ? . you can find below the full log between starting until the first crash .3005.full_log.txt

  • Hi Ahmed,

    Double checking, the issue was produced on prebuilt images by just tapping the home button a few times in the first place?

    My kernel/u-boot .config files are attached.

    Thanks,

    David

    configs.tar.gz

  • Hi Ahmed,

    I haven't heard back from you, I'm assuming you were able to resolve your issue.

    If not, just post a reply below (or create a new thread if the thread has locked due to time-out).

    Thanks,

    David

  • HI David ,

    Thank you for all your support ,

    Sorry for the late , the last time i compared my .config files with yours , and found them a little bit similar , also the reproducing of the issue is decreased but it can happen so we decide to change the default launcher of our OS . I can confirm that the patches that we applied before doesn't really solved the problem but that is helps to a better improvements .

    So David thank you again , you can  now close this thread . 

    Best regards

    AHMED