[#4636] selecting INSTALL_ELF_TRIM_LIBS in config makes kernel boot fails at init

Document created by Aaronwu Employee on Aug 29, 2013
Version 1Show Document
  • View in full screen mode

[#4636] selecting INSTALL_ELF_TRIM_LIBS in config makes kernel boot fails at init

Submitted By: Mingquan Pan

Open Date

2008-11-12 02:15:09     Close Date

2008-11-13 00:58:44

Priority:

Medium     Assignee:

Mike Frysinger

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

N/A     Board:

N/A

Processor:

N/A     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

Oct 10

App binary format:

N/A     

Summary: selecting INSTALL_ELF_TRIM_LIBS in config makes kernel boot fails at init

Details:

 

selecting INSTALL_ELF_TRIM_LIBS in config makes kernel boot fails at init.

 

U-Boot 1.1.6-svn1273 (ADI-2008R1.5) (Jul 21 2008 - 00:33:04)

 

CPU:   ADSP bf537-0.2 (Detected Rev: 0.2)

Board: ADI BF537 stamp board

       Support:   blackfin.uclinux.org/

Clock: VCO: 500 MHz, Core: 500 MHz, System: 100 MHz

RAM:   64 MB

Fl

RAM size is 64 MB.

ash:  4 MB

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

MAC:   00:11:22:33:44:33

Hit any key to stop autoboot:  0

bfin> set bootargs root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600

bfin> set serverip 10.100.4.174

bfin> set ipaddr 10.100.4.50

bfin> save

Saving Environment to Flash...

. done

Un-Protected 1 sectors

Erasing Flash...

. done

Erased 1 sectors

Writing to Flash... done

. done

Protected 1 sectors

bfin> tftpboot 0x2000000 linux

Using Blackfin EMAC device

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'linux'.

Load address: 0x2000000

Loading: #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         ####################################################

done

Bytes transferred = 3923729 (3bdf11 hex)

Image size is 3bdf11

bfin> run addip

bfin> bootelf

Loading .text @ 0x00001000 (1092736 bytes)

Loading .rodata @ 0x0010bc80 (261612 bytes)

Loading .init.rodata @ 0x0014ba6c (80 bytes)

Loading __ksymtab @ 0x0014babc (15880 bytes)

Loading __ksymtab_gpl @ 0x0014f8c4 (5064 bytes)

Loading __ksymtab_strings @ 0x00150c8c (46782 bytes)

Loading __init_rodata @ 0x0015c34c (172 bytes)

Loading __param @ 0x0015c3f8 (380 bytes)

Clearing .bss @ 0x0015c580 (65524 bytes)

Loading .data @ 0x0016c574 (64140 bytes)

Loading .init.text @ 0x0017c000 (100844 bytes)

Loading .init.data @ 0x001949ec (13652 bytes)

Loading .init.setup @ 0x00197f40 (588 bytes)

Loading .initcall.init @ 0x0019818c (548 bytes)

Loading .con_initcall.init @ 0x001983b0 (4 bytes)

Loading .init.ramfs @ 0x001983b4 (1711100 bytes)

Loading .text_l1 @ 0xffa00000 (6952 bytes)

sh_addr: FFA00000, p_paddr: 00339FB0

Loading from: 0232A000 to 00339FB0, size: 6952

Loading .data_l1 @ 0xff800000 (192 bytes)

sh_addr: FF800000, p_paddr: 0033BAD8

Loading from: 0232C000 to 0033BAD8, size: 192

## Starting application at 0x0018a248 ...

Linux version 2.6.28-rc2-ADI-2009R1-pre-svn5608 (test@uclinux72-bf537-stamp-elf) (gcc version 4.1.2 (ADI svn)) #245 Mon Nov 10 05:09:09 CST 2008

console [early_BFuart0] enabled

early printk enabled on early_BFuart0

Warning: limiting memory to 56MB due to hardware anomaly 05000263

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x0010bc80

  rodata    = 0x0010bc80-0x0015c574

  bss       = 0x0015c580-0x0016c574

  data      = 0x0016c574-0x0017c000

    stack   = 0x0017a000-0x0017c000

  init      = 0x0017c000-0x0033c000

  available = 0x0033c000-0x037ff000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace Active and Enabled

Reset caused by Software reset

Blackfin support (C) 2004-2008 Analog Devices, Inc.

Compiled for ADSP-BF537 Rev 0.2

Blackfin Linux support by   blackfin.uclinux.org/

Processor Speed: 500 MHz core clock and 100 MHz System Clock

NOMPU: setting up cplb tables for global access

Instruction Cache Enabled for CPU0

Data Cache Enabled for CPU0 (write-through)

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 14223

Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600 ip=10.100.4.50:10.100.4.174:192.168.0.1:255.255.255.0:BF537:eth0:off

Configuring Blackfin Priority Driven Interrupts

PID hash table entries: 256 (order: 8, 1024 bytes)

bfin-rtc: invalid date; resetting

console handover: boot [early_BFuart0] -> real [ttyBF0]

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

Memory available: 53448k/65536k RAM, (1792k init code, 1067k kernel code, 449k data, 1024k dma, 7756k reserved)

Calibrating delay loop... 997.37 BogoMIPS (lpj=1994752)

Security Framework initialized

Mount-cache hash table entries: 512

Blackfin Scratchpad data SRAM: 4 KB

Blackfin L1 Data A SRAM: 16 KB (15 KB free)

Blackfin L1 Data B SRAM: 16 KB (16 KB free)

Blackfin L1 Instruction SRAM: 48 KB (41 KB free)

PDA for CPU0 reserved at 0015d908

net_namespace: 288 bytes

NET: Registered protocol family 16

Blackfin GPIO Controller

Blackfin DMA Controller

stamp_init(): registering device resources

NET: Registered protocol family 2

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

TCP established hash table entries: 2048 (order: 2, 16384 bytes)

TCP bind hash table entries: 2048 (order: 1, 8192 bytes)

TCP: Hash tables configured (established 2048 bind 2048)

TCP reno registered

NET: Registered protocol family 1

msgmni has been set to 104

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

Serial: Blackfin serial driver

bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART

brd: module loaded

bfin_mac_mdio: probed

bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=19)@sclk=100MHz)

bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1

bfin-spi bfin-spi.0: Blackfin BF5xx on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0

bfin-wdt: initialized: timeout=20 sec (nowayout=0)

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 1970-01-01 00:00:01 UTC (1)

IP-Config: Gateway not on directly connected network.

Freeing unused kernel memory: 1792k freed

dma_alloc_init: dma_page @ 0x00338000 - 256 pages at 0x03f00000

Failed to execute /init

Kernel panic -kernel panic detected... trying to recover from it

 

the configs are attached.

 

Follow-ups

 

--- Mike Frysinger                                           2008-11-12 06:21:27

you probably dont have pax-utils installed like the help says you need

 

ive changed the script to not delete ELF libs in this case

 

--- Mingquan Pan                                             2008-11-13 00:58:44

Yes, it can output error if there is no pax-utils. And after I do install the

pax-utils(with INSTALL_ELF_TRIM_LIBS on ), the kernel built can boot up ok.So

close.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.kernel.trim    application/octet-stream    37039    Mingquan Pan

config.vendor.trim    application/octet-stream    45468    Mingquan Pan

Outcomes