AnsweredAssumed Answered

kernel optimisation

Question asked by sachu sanal on May 15, 2015
Latest reply on May 25, 2015 by jamesbone

Hai ,

 

Dear all I optimsed my kernel image up to 2.6MB , but for the kernel loading time is too much higher.I here by attach my .config file .let me know what change i need to done for optimising the kernel loading time. please help me,loading log alos i attached.

 

 

U-Boot 2009.08 (May 15 2015 - 13:14:14)

 

 

CPU: Freescale i.MX6 family TO1.2 at 792 MHz

Thermal sensor with ratio = 179

Temperature:   39 C, calibration data 0x56e4e269

mx6q pll1: 792MHz

mx6q pll2: 528MHz

mx6q pll3: 480MHz

mx6q pll8: 50MHz

ipg clock     : 66000000Hz

ipg per clock : 66000000Hz

uart clock    : 80000000Hz

cspi clock    : 60000000Hz

ahb clock     : 132000000Hz

axi clock   : 264000000Hz

emi_slow clock: 132000000Hz

ddr clock     : 528000000Hz

usdhc1 clock  : 198000000Hz

usdhc2 clock  : 198000000Hz

usdhc3 clock  : 198000000Hz

usdhc4 clock  : 198000000Hz

nfc clock     : 24000000Hz

Board: i.MX6Q-SABRESD: unknown-board Board: 0x63012 [POR ]

Boot Device: MMC

DRAM:   1 GB

MMC:   FSL_USDHC: 0,FSL_USDHC: 1,FSL_USDHC: 2,FSL_USDHC: 3

*** Warning - bad CRC or MMC, using default environment

 

 

In:    serial

Out:   serial

Err:   serial

Net:   got MAC address from IIM: 00:10:2e:e0:00:03

FEC0 [PRIME]

Hit any key to stop autoboot:  0

********Power On Reset *****************

***Image validation flag=0******

*** Image Identifier flag is 1

Enabled Watch Dog Timer

System going to reboot within 120 sec, if watchdog not get feeding

file name=/

<DIR>       1024 .

<DIR>       1024 ..

<DIR>      12288 lost+found

<DIR>       1024 home

             435 JreTestApp.class

<DIR>       1024 mnt

<DIR>       1024 etc

<DIR>       3072 lib

<DIR>       1024 I2C2_0X18

<DIR>       1024 root

<DIR>      17408 dev

<DIR>       1024 sbin

<DIR>       1024 usr

<DIR>       1024 proc

<DIR>       1024 opt

           83516 CV-1TestApp

<SYM>         11 linuxrc

<DIR>       1024 run

<DIR>       1024 config

           44754 I2CRead2

           71660 gpioTestApp

<DIR>       1024 var

<DIR>       1024 tmp

<DIR>       3072 bin

<DIR>       1024 jre

<DIR>       1024 sys

<DIR>       1024 media

*******************Execute Primary Image ***********

mmc3(part 0) is current device

 

 

MMC read: dev # 3, block # 40960, count 8192 ... 8192 blocks read: OK

## Booting kernel from Legacy Image at 10800000 ...

****CV1 Kernel Validation Based on CRC Algorithm***

   Image Name:   Linux-3.0.35-ts-armv7l

   Image Type:   ARM Linux Kernel Image (uncompressed)

   Data Size:    2713924 Bytes =  2.6 MB

   Load Address: 10008000

   Entry Point:  10008000

Verifying Checksum ... OK

********Image validated********

   Loading Kernel Image ... OK

OK

 

 

Starting kernel ...

 

 

init started: BusyBox v1.20.2 (2014-07-11 16:18:48 IST)

Setting hotplug handler: [ OK ]

Creating device files: Auto-mount of [/media/mmcblk0p1] successful

Auto-mount of [/media/mmcblk0p2] successful

Auto-mount of [/media/mmcblk0p3] successful

Auto-mount of [/media/mmcblk0p4] successful

Auto-mount of [/media/mmcblk1p1] successful

[ OK ]

modprobe: module galcore not found in modules.dep

Setting timezone and system clock: hwclock: settimeofday: Invalid argument

[Fail]

Starting system logging.

Configuring network interfaces: done

Starting dbus: [ OK ]

Starting ntpd: [OK]

****Executing Custom Script*********insmod: can't insert '/home/CV1/Driver/gadgetfs.ko': invalid module format

mount: mounting gadgetfs on /dev/gadget failed: No such device

AR6k module loading start...

Module Arguments...

Platform set to LOCAL_i686-SDIO

Platform Setup Script is: /home/plat_LOCAL_i686-SDIO.sh

Image path: /home

Mac address:

sdiostack loading

loading AR6K module... Args = (bmienable=1  ifname=wlan0 busspeedlow=0) , logfile:/tmp/dbglog.out

insmod: can't insert '/home/ar6000.ko': invalid module format

*** Failed to install AR6K Module

/home/plat_LOCAL_i686-SDIO.sh: exit: line 141: Illegal number: -1

Platform script failed : loadAR6K

loadAR6000.sh: exit: line 344: Illegal number: -1

Platform set to LOCAL_i686-SDIO

Platform Setup Script is: /home/plat_LOCAL_i686-SDIO.sh

Image path: /home

Mac address:

sdiostack loading

loading AR6K module... Args = (bmienable=1  ifname=uap0 busspeedlow=0) , logfile:/tmp/dbglog.out

insmod: can't insert '/home/ar6000.ko': invalid module format

*** Failed to install AR6K Module

/home/plat_LOCAL_i686-SDIO.sh: exit: line 141: Illegal number: -1

Platform script failed : loadAR6K

loadAR6000.sh: exit: line 344: Illegal number: -1

AR6k module load Done...

Starting /usr/sbin/sshd: ifconfig: SIOCGIFFLAGS: No such device

killall: hostapd: no process killed

killall: udhcpd: no process killed

Could not load host key: /etc/openssh/ssh_host_ed25519_key

[ OK ]

Starting apache-httpd

ifconfig: SIOCSIFADDR: No such device

info, udhcpd (v0.9.9-pre) started

error, max_leases value (234) not sane, setting to 9 instead

error, SIOCGIFADDR failed, is the interface up and configured?: No such device

Configuration file: /home/hostapd.conf

ioctl(SIOCGIFINDEX): No such device

ar6000 driver initialization failed.

rmdir[ctrl_interface]: No such file or directory

killall: udhcpc,: no process killed

killall: wpa_supplicant: no process killed

ifconfig: SIOCGIFFLAGS: No such device

ifconfig: SIOCGIFFLAGS: No such device

Internet Systems Consortium DHCP Client V3.1-ESV-R3

Copyright 2004-2011 Internet Systems Consortium.

All rights reserved.

For info, please visit https://www.isc.org/software/dhcp/

 

 

Corrupt lease file - possible data loss!

Listening on LPF/eth0/00:10:2e:e0:00:03

Sending on   LPF/eth0/00:10:2e:e0:00:03

Sending on   Socket/fallback

Internet Systems Consortium DHCP Client V3.1-ESV-R3

Copyright 2004-2011 Internet Systems Consortium.

All rights reserved.

For info, please visit https://www.isc.org/software/dhcp/

 

 

 

 

 

 

BusyBox v1.20.2 (2014-07-11 16:18:48 IST) built-in shell (ash)

Enter 'help' for a list of built-in commands.

 

 

QIconvCodec::convertFromUnicode: using Latin-1 for conversion, iconv_open failed

Could not read interface wlan0 flags: No such device

wlan0: Failed to initialize driver interface

httpd not running, trying to start

(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80

no listening sockets available, shutting down

AH00015: Unable to open logs

Listening on LPF/eth0/00:10:2e:e0:00:03

Sending on   LPF/eth0/00:10:2e:e0:00:03

Sending on   Socket/fallback

?? don't recognize /dev/gadget bulk device

/dev/gadget/(null) ep1 configured

serial="74jpl5tote9fgdzjum9bt6z7a4ujv164r5l27r1kv7jmz0k0uc48rkskc7d00te"

DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7

Internet Systems Consortium DHCP Client V3.1-ESV-R3

Copyright 2004-2011 Internet Systems Consortium.

All rights reserved.

For info, please visit https://www.isc.org/software/dhcp/

 

 

Device setup complete

# Listening on LPF/eth0/00:10:2e:e0:00:03

Sending on   LPF/eth0/00:10:2e:e0:00:03

Sending on   Socket/fallback

DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7

DHCPOFFER from 10.15.0.3

DHCPREQUEST on eth0 to 255.255.255.255 port 67

DHCPACK from 10.15.0.3

bound to 10.15.1.78 -- renewal in 335039 seconds.

1 Jan 05:30:36 sntp[2617]: Started sntp

1 Jan 05:30:36 sntp[2617]: kod_init_kod_db(): Cannot open KoD db file /var/db/ntp-kod

DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14

DHCPOFFER from 10.15.0.3

DHCPREQUEST on eth0 to 255.255.255.255 port 67

DHCPACK from 10.15.0.3

route: SIOCADDRT: File exists

bound to 10.15.1.78 -- renewal in 284681 seconds.

Starting ntpd: ntpd already running

1 Jan 05:30:38 sntp[2638]: Started sntp

1 Jan 05:30:38 sntp[2638]: kod_init_kod_db(): Cannot open KoD db file /var/db/ntp-kod

Starting ntpd: [OK]

Original Attachment has been moved to: .config.zip

Outcomes