Other Parts Discussed in Thread: AM3359
Hi ,
WE are using a AM3359 on our custom board and using a SDK 7.0. We are working on OS boot optimization part .We have referred following links
http://processors.wiki.ti.com/index.php/Sitara_Linux_Training:_Boot_Time_Reduction
http://processors.wiki.ti.com/index.php/Optimize_Linux_Boot_Time
did the changes as per instructions but we found following things which needs optimization so we can reduce over all boot time till we get console login.
1) NAND read time taken by uboot to load kernel image is 6 sec. – Here it should be 2 sec as per the NAND datasheet.
2) CAN initialization is taking 3 sec.—How can we reduce this time?
3) It is spending more time in audio initialization about 3Sec.- How can we reduce this time?
Please refer below logs for details.
0.000 0.000: 0.006 0.006: U-Boot SPL 2013.10-00189-g78d8ebd-dirty (Oct 04 2015 - 15:35:44) 0.009 0.004: Enabling NAND pin mux Successful 0.013 0.003: s_init Success 0.375 0.363: 0.375 0.000: 0.375 0.000: 0.376 0.001: before gpmc_init 0.377 0.001: 0.377 0.000: 0.377 0.000: 0.377 0.000: 0.378 0.001: 0.380 0.002: after gpmc_init 0.380 0.000: 0.380 0.000: 0.383 0.003: DRA 618 MPU freq set to 720Mhz 0.386 0.003: DRA 618 Core freq set to 720Mhz 0.992 0.606: 0.992 0.000: 0.997 0.006: U-Boot 2013.10-00189-g78d8ebd-dirty (Oct 04 2015 - 15:35:44) 0.997 0.000: 1.000 0.003: I2C: ready 1.002 0.002: DRAM: 256 MiB 1.458 0.457: 8-12-2014 before gpmc_init8-12-2014 after gpmc_initNAND: 1024 MiB 1.459 0.001: MMC: 1.461 0.002: Using default environment 1.461 0.000: 1.539 0.078: 1.542 0.002: Booting from nand ... 1.542 0.000: 1.546 0.005: NAND read: device 0 offset 0x600000, size 0x400000 6.896 5.350: 4194304 bytes read: OK 6.901 0.004: Kernel image @ 0x80200000 [ 0x000000 - 0x3a7708 ] 6.901 0.000: 6.903 0.002: Starting kernel ... 6.903 0.000: 7.619 0.716: [ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d 7.628 0.009: [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache 7.634 0.006: [ 0.000000] Memory policy: ECC disabled, Data cache writeback 7.642 0.008: [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 64256 7.656 0.014: [ 0.000000] Memory: 224024K/259072K available (5107K kernel code, 548K rwdata, 1772K rodata, 340K init, 213K bss, 35048K reserved, 0K highmem) 7.663 0.007: [ 0.094912] platform mpu.1: FIXME: clock-name 'fck' DOES NOT exist in dt! 7.671 0.008: [ 0.096029] platform 49000000.edma: FIXME: clock-name 'fck' DOES NOT exist in dt! 7.675 0.005: [ 0.110715] DSS not supported on this SoC 7.682 0.007: [ 0.329434] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) 7.686 0.004: [ 0.335911] Request irq success for 47 7.690 0.004: [ 0.335938] Request irq success for 63 7.719 0.029: [ 0.448484] mtdoops: mtd device (mtddev=name/number) must be supplied INIT: version 2.88 booting 10.520 0.316: Starting udev 12.112 1.592: [ 4.838300] c_can_platform 481d0000.d_can: can't request region for resource [mem 0x44e10644-0x44e10647] 15.347 3.235: [ 8.076120] davinci_evm sound.3: ASoC: CPU DAI (null) not registered 15.471 0.124: [ 8.199985] davinci_evm sound.3: snd_soc_register_card failed (-517) 15.492 0.021: [ 8.220864] davinci_evm sound.3: ASoC: CPU DAI (null) not registered 15.498 0.006: [ 8.227598] davinci_evm sound.3: snd_soc_register_card failed (-517) 15.623 0.125: [ 8.352220] davinci_evm sound.3: ASoC: CPU DAI (null) not registered 15.630 0.006: [ 8.358959] davinci_evm sound.3: snd_soc_register_card failed (-517) 17.933 2.304: UIM SYSFS Node Not Found INIT: Entering runlevel: 1 18.204 0.170: 18.206 0.002: NGT GPIO Init Successful 18.206 0.000: 18.213 0.007: 18.216 0.003: NGT usbDataFile Init Successful 18.216 0.000: 18.216 0.000: 18.217 0.001: NGT CAN1 18.217 0.000: 18.245 0.028: 01-01-2000 00:00:10.781323 pca9535ReadGpio : ngt_gpio_exp_priv.c:375 bit_pos = 9, read_val = 512 18.253 0.008: 01-01-2000 00:00:10.782760 pca9535ReadGpio : ngt_gpio_exp_priv.c:396 GPIO 137 value read 1 18.262 0.009: 01-01-2000 00:00:10.783499 pca9535ReadGpio : ngt_gpio_exp_priv.c:375 bit_pos = 10, read_val = 1024 18.270 0.008: 01-01-2000 00:00:10.784625 pca9535ReadGpio : ngt_gpio_exp_priv.c:396 GPIO 138 value read 1 18.271 0.001: can1_en = 1 18.272 0.001: can1_stbyn = 1 18.272 0.000: 18.274 0.002: NGT Startup Power Mode 18.274 0.000: 18.278 0.004: ifdown: interface wlan0 not configured 18.293 0.015: gpio/set-value: No such file or directory 20.776 2.482: UBI device number 1, total 6143 LEBs (792594432 bytes, 755.9 MiB), available 0 LEBs (0 bytes), LEB size 129024 bytes (126.0 KiB) 20.841 0.066: mkdir: can't create directory '/tmp/ngt/': File exists 20.855 0.013: cp: can't stat '/mnt/NAND_file_system2/ngt/TML_Main_Application': No such file or directory 20.860 0.006: chmod: /tmp/ngt/TML_Main_Application: No such file or directory 20.869 0.009: /etc/rc1.d/S02ngt_gpio_init.sh: line 324: /tmp/ngt/TML_Main_Application: No such file or directory 20.869 0.000: 20.873 0.004: NGT Application execution and Mounting Successful 20.874 0.000: 20.880 0.006: umount: can't umount /mnt/.psplash: Invalid argument
Thanks & Regards,
Uday Rajeshirke.