Why my mx28 board with Linux system for mfgtool takes a long time when it is starting : see the attachment in detail
first time point:
[ 3.340000] Trying to unpack rootfs image as initramfs...
[ 4.030000] Boot process: fb dev not inited, boot process not start!
[ 67.760000] Freeing initrd memory: 6144K
[ 68.470000] Bus freq driver module loaded
[ 81.600000] mxs_cpu_init: cpufreq init finished
[ 89.810000] audit: initializing netlink socket (disabled)
[ 89.820000] type=2000 audit(89.820:1): initialized
[ 145.100000] JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
second time point:
[ 167.020000] Console: tianma1 Console: tianma2 Console: tianma3 Console: switching to colour frame buffer device 60x34
[ 167.800000] set dclk 8000000 Hz,real lcd clk=8000000 Hz
[ 1039.100000] mxs-duart.0: ttyAM0 at MMIO 0x80074000 (irq = 47) is a DebugUART
[ 1041.890000] mxs-auart.0: ttySP0 at MMIO 0x8006a000 (irq = 112) is a mxs-auart.0
third time point:
[ 1049.920000] Found APPUART 3.1.0
[ 1058.700000] brd: module loaded
[ 1076.970000] loop: module loaded
[ 1092.350000] Loading iSCSI transport class v2.0-870.
fourth time point :
[ 1137.440000] Boot area protection is enabled.
[ 1137.450000] Creating 2 MTD partitions on "gpmi-nfc-main":
Original Attachment has been moved to: output_from_console_with_mfgtool.txt.zip
when I set different size of initramfs in /linux_prep/core/setup.c and updater_ivt.bd ,The starting time is different as fellow.
size of initramfs is 3M :
[ 4.030000] Boot process: fb dev not inited, boot process not start!
[ 39.900000] Freeing initrd memory: 3072K
[ 41.050000] Bus freq driver module loaded
[ 55.640000] mxs_cpu_init: cpufreq init finished
[ 80.590000] audit: initializing netlink socket (disabled)
[ 80.600000] type=2000 audit(80.600:1): initialized
size of initramfs is 2M:
[ 3.330000] Unpacking initramfs...
[ 4.020000] Boot process: fb dev not inited, boot process not start!
[ 32.360000] Initramfs unpacking failed: read error
[ 32.420000] Freeing initrd memory: 2048K
[ 105.970000] mxs-rtc mxs-rtc.0: setting system clock to 1970-01-01 00:02:31 UTC (151)
^@[ 106.010000] Freeing init memory: 124K
[ 106.020000] Failed to execute /init
[ 106.030000] Kernel panic - not syncing: No init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[ 106.050000] Backtrace:
size of initramfs is 1M:
[ 4.030000] Boot process: fb dev not inited, boot process not start!
[ 18.230000] Initramfs unpacking failed: read error
[ 18.260000] Freeing initrd memory: 1024K
[ 18.330000] Bus freq driver module loaded
[ 19.070000] mxs_cpu_init: cpufreq init finished
[ 22.820000] audit: initializing netlink socket (disabled)
[ 22.840000] type=2000 audit(22.830:1): initialized
My board' DDR2 is mt47h32m16nf25e with 64MB .its power is 5v only
Hi jie
general approach may be removing unused modules (probably framebuffer,lcd,pwm,nand, e.t.c)
from mfg tools image, please refer to attached Linux Manual and User Guide sect.2.5 Building the
Manufacturing Firmware.
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
hi igorpadykov
thank you
I hve removed almost all unused modules as seventh.config in attach.but console output as follow,why the following two steps has always long time.
[ | 2.340000] Unpacking initramfs... |
[ 55.570000] Freeing initrd memory: 4096K
[ 56.240000] Bus freq driver module loaded
[ 59.560000] mxs_cpu_init: cpufreq init finished
[ 99.960000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
[ 99.970000] io scheduler noop registered (default)
[ 191.790000] mxs-duart.0: ttyAM0 at MMIO 0x80074000 (irq = 47) is a DebugUART
[ 207.620000] i.MX GPMI NFC
[ 207.650000] NFC: Version 1, 8-chip GPMI and BCH
[ 207.650000] Boot ROM: Version 1, Single-chip boot area, block mark swapping supported
[ 207.670000] Scanning for NAND Flash chips...
[ 209.730000] NAND device: Manufacturer ID: 0xc2, Chip ID: 0xf1 (Macronix NAND 128MiB 3,3V 8-bit)
and
MFGTool output as follow :
Tuesday, August 23, 2016 14:36:02
1 - Panel A Start processing Singlechip NAND <LIST/>.
1 - Panel A Start <CMD/> type="boot" body="Recovery" file="updater_ivt.sb" timeout="600" onError="" text="Booting update firmware.".
1 - Panel A Finished <CMD/> type="boot" body="Recovery" file="updater_ivt.sb" timeout="600" onError="" text="Booting update firmware." SUCCESS code=0.
1 - Panel A Start <CMD/> type="find" body="Updater" file="" timeout="600" onError="" text="".
1 - Panel A Finished <CMD/> type="find" body="Updater" file="" timeout="600" onError="" text="" FAIL code=-65536.
Panel A: 2 - Panel A Finished processing Singlechip NAND <LIST/> : FAIL code=-65536.
Panel A: