Hi,
In below, debian flasher emmc image u-boot.img and MLO output. I want to minimize (now it boots at 2.621 seconds). Currently I suppose that 1sc bootdelay when u-boot is opening, how can I close it?
0.000 0.000:
0.000 0.000: U-Boot SPL 2015.07 (Oct 07 2015 - 14:27:57)
0.000 0.000: reading args
0.066 0.066: spl_load_image_fat_os: error reading image args, err - -1
0.066 0.000: reading u-boot.img
0.066 0.000: reading u-boot.img
0.066 0.000:
0.066 0.000:
U-Boot 2015.07 (Oct 07 2015 - 14:27:57 -0400)
0.276 0.000:
Watchdog enabled
I2C: ready
DRAM: 512 MiB
NAND: 0 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
reading uboot.env
0.367 0.000:
** Unable to read "uboot.env" from mmc0:1 **
Using default environment
0.514 0.000:
Net: <ethaddr> not set. Validating first E-fuse MAC
Phy 0 not found
cpsw, usb_ether
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
reading boot.scr
** Unable to read file boot.scr **
reading uEnv.txt
783 bytes read in 9 ms (85 KiB/s)
Loaded environment from uEnv.txt
Importing environment from mmc ...
Running uenvcmd ...
switch to partitions #0, OK
mmc1(part 0) is current device
switch to partitions #0, OK
mmc0 is current device
3232496 bytes read in 277 ms (11.1 MiB/s)
Booting from external microSD...
32990 bytes read in 98 (328.1 KiB/s)
## Error: "mmcargs" not defined
Kernel image @ 0x82000000 [ 0x000000 - 0x3152f0 ]
## Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
Loading Device Tree to 8fff4000, end 8ffff0dd ... OK
2.621 0.000:
my rootfs is:
arago_base_sdk
my uEnv.txt is:
optargs=
loadfdt=load mmc ${mmcdev}:2 ${fdtaddr} /boot/dtbs/${fdtfile}
loaduimage=mw.l 4804c134 fe1fffff; if load mmc 0:2 ${loadaddr} /boot/zImage; the
n setenv mmcdev 0; mw.l 4804c194 01200000; echo Booting from external microSD...
; else setenv mmcdev 1; if test $mmc0 = 1; then setenv mmcroot /dev/mmcblk1p2 rw
; fi; load mmc 1:2 ${loadaddr} /boot/zImage; mw.l 4804c194 00c00000; echo Bootin
g from internal eMMC...; fi
mmcboot=run mmcargs; bootz ${loadaddr} - ${fdtaddr}
uenvcmd=i2c mw 0x24 1 0x3e; run findfdt; if test $board_name = A335BNLT; then se
tenv mmcdev 1; mmc dev ${mmcdev}; if mmc rescan; then setenv mmc1 1; else setenv
mmc1 0; fi; fi; setenv mmcdev 0; mmc dev ${mmcdev}; if mmc rescan; then setenv
mmc0 1; else setenv mmc0 0; fi; run loaduimage && run loadfdt && run mmcboot
There are some errors and warnings on u-boot as you seen,
1) 0.066 0.066: spl_load_image_fat_os: error reading image args, err - -1
2) ** Unable to read "uboot.env" from mmc0:1 **
3) ** Unable to read file boot.scr **
4) Error: "mmcargs" not defined
how can I fix them?
Is there any way to optimize u-boot? (I also read sitara boot time reduction wiki but it doenst help me)
Best Regards,
Umit