2008-09-11 17:58:27     Boot problem.

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

2008-09-11 17:58:27     Boot problem.

Matt Gilg (UNITED STATES)

Message: 62014   

 

Loading .text @ 0x00001000 (1050112 bytes)

Loading .rodata @ 0x00102000 (214584 bytes)

Loading __ksymtab @ 0x00136638 (14616 bytes)

Loading __ksymtab_gpl @ 0x00139f50 (3920 bytes)

Loading __ksymtab_strings @ 0x0013aea0 (44356 bytes)

Loading __param @ 0x00145be4 (300 bytes)

Loading .data @ 0x00146000 (81920 bytes)

Loading .init.text @ 0x0015a000 (64916 bytes)

Loading .init.data @ 0x00169d94 (3176 bytes)

Loading .init.setup @ 0x0016a9fc (580 bytes)

Loading .initcall.init @ 0x0016ac40 (432 bytes)

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

Loading .security_initcall.init @ 0x0016adf4 (4 bytes)

Loading .init.ramfs @ 0x0016adf8 (133 bytes)

Loading .text_l1 @ 0xffa00000 (8360 bytes)

sh_addr: FFA00000, p_paddr: 0016AE7D

Loading from: 0116B000 to 0016AE7D, size: 8360

Loading .data_l1 @ 0xff800000 (192 bytes)

sh_addr: FF800000, p_paddr: 0016CF25

Loading from: 0116E000 to 0016CF25, size: 192

Clearing .bss @ 0x0016d000 (65616 bytes)

Loading .romfs @ 0x0017d050 (32505856 bytes)

## Starting application at 0x0015a000 ...

Linux version 2.6.22.19-ADI-2008R1.5-svn234 (ubuntu@dev2-ubuntu) (gcc version 4.1.2 (ADI svn)) #379 Thu Sep 11 15:44:21 MDT 2008

Hardware Trace Active and Enabled

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

Compiled for ADSP-BF537 Rev 0.2

Blackfin Linux support by http://blackfin.uclinux.org/

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

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  text      = 0x00001000-0x00101600

  rodata    = 0x00102000-0x00145d10

  data      = 0x00146000-0x0015a000

    stack   = 0x00146000-0x00148000

  init      = 0x0015a000-0x0016d000

  bss       = 0x0016d000-0x0017d050

  available = 0x0017d050-0x02000000

  rootfs    = 0x02000000-0x03f00000

  DMA Zone  = 0x03f00000-0x04000000

Built 1 zonelists.  Total pages: 8128

Kernel command line: root=/dev/mtdblock0 rw console=ttyBF0,115200

Configuring Blackfin Priority Driven Interrupts

Hardware Trace expanded to 16k

PID hash table entries: 128 (order: 7, 512 bytes)

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

Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)

Memory available: 30944k/65536k RAM, (76k init code, 1025k kernel code, 419k data, 1024k dma, 304k reserved)

Blackfin Scratchpad data SRAM: 4 KB

Blackfin Data A SRAM: 32 KB (31 KB free)

Blackfin Data B SRAM: 32 KB (32 KB free)

Blackfin Instruction SRAM: 48 KB (39 KB free)

Security Framework v1.0.0 initialized

Capability LSM initialized

Mount-cache hash table entries: 512

NET: Registered protocol family 16

Blackfin GPIO Controller

Blackfin DMA Controller

stamp_init(): registering device resources

Generic PHY: Registered new driver

NET: Registered protocol family 2

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

TCP established hash table entries: 1024 (order: 1, 8192 bytes)

TCP bind hash table entries: 1024 (order: 0, 4096 bytes)

TCP: Hash tables configured (established 1024 bind 1024)

TCP reno registered

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

ISA-BlackFin-CAN CAN Driver 3.4.6_AD_BLACKFIN (c) Sep 11 2008

BlackFin port by H.J. Oertel (oe@port.de)

Serial: Blackfin serial driver

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

RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize

bfin_mac_mdio: probed

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

bfin_mac: Version 1.1, Blackfin BF53[67] BF527 on-chip Ethernet MAC driver

uclinux[mtd]: RAM probe address=0x2000000 size=0x1f00000

Creating 1 MTD partitions on "RAM":

0x00000000-0x01f00000 : "ROMfs"

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

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

TCP cubic registered

NET: Registered protocol family 1

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting the system clock to 2008-09-09 01:05:41 (1220922341)

VFS: Mounted root (ext2 filesystem).

Freeing unused kernel memory: 76k freed

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

Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

 

---------------------------------------------------------

 

 

 

A filesystem format configuration issue? 

 

-Matt

 

 

QuoteReplyEditDelete

 

 

2008-09-11 18:02:43     Re: Boot problem.

Mike Frysinger (UNITED STATES)

Message: 62015   

 

check your romfs directory to make sure you have an init and make sure you enabled support for all the required file formats in the kernel and user space menuconfigs

QuoteReplyEditDelete

 

 

2008-09-11 18:29:16     Re: Boot problem.

Matt Gilg (UNITED STATES)

Message: 62016   

 

Hi Mike,

 

My romfs directory contains an initial directory system, if that is what you mean.

 

I've enabled the corresponding filesystem types in the user/vendor section of menuconfig and kernel configuration.  This was my first thought about the matter as well.  Is there any particular sections that I should pay close attention to?

 

Also, when i enable the sash shell, i get compiler errors seems to be missing 'linux/autoconf.h'.  Saw another post on the board about this and switched shells to the 'new' shell.

 

Anyhow, still the same issue.  I've got to be misunderstanding something.

 

-Matt

QuoteReplyEditDelete

 

 

2008-09-11 18:30:36     Re: Boot problem.

Matt Gilg (UNITED STATES)

Message: 62017   

 

Oops, initial directory listing, not system.

QuoteReplyEditDelete

 

 

2008-09-11 18:33:21     Re: Boot problem.

Mike Frysinger (UNITED STATES)

Message: 62018   

 

sash is old and awful ... why would you want it ?  the busybox msh is so much better

 

i said "file formats" (probably should have stuck "executable" before it), not "file system formats" ... if you're using FLAT or FDPIC, you need to make sure your kernel supports it and you have the libraries in the romfs/ directory as need be

 

what toolchain/kernel version are you using ?  what is your hardware platform ?

QuoteReplyEditDelete

 

 

2008-09-11 18:48:24     Re: Boot problem.

Matt Gilg (UNITED STATES)

Message: 62019   

 

Don't need sash, it just happened to be enabled in our old build, and the first thing that I did was port our configuration file.

 

It appears that my lib directory has a modules folder, but other than that, it is empty and I don't think it should be.  Any ideas?

 

I've got kernel support enabled for both flat and elf binaries.

 

Upgrading to kernel uClinux-dist-2008R15-RC3 using toolchain 08r1.5-14.i386.rpm

 

- Matt

QuoteReplyEditDelete

 

 

2008-09-11 18:51:01     Re: Boot problem.

Robin Getz (UNITED STATES)

Message: 62020   

 

Matt:

 

When Mike said check init - he meant check init

 

rgetz@imhotep:~/blackfin/trunk/uClinux-dist> ls -l romfs/bin/init

-rwxr-xr-x 1 rgetz users 12380 2008-09-10 10:02 romfs/bin/init

 

rgetz@imhotep:~/blackfin/trunk/uClinux-dist> file romfs/bin/init

romfs/bin/init: ELF 32-bit LSB executable, Analog Devices Blackfin, version 1 (SYSV), dynamically linked (uses shared libs), stripped

 

Since my system is elf/fdpic with shared libs - I need to check the libs to make sure they are all there. (if it is flat, or statically linked - this is fine - stop here).

 

rgetz@imhotep:~/blackfin/trunk/uClinux-dist> bfin-elf-readelf -d romfs/bin/init | grep NEEDED | awk '{print $5}'

[libcrypt.so.0]

[libgcc_s.so.1]

[libc.so.0]

 

rgetz@imhotep:~/blackfin/trunk/uClinux-dist> ls -l romfs/lib/libcrypt.so.0

lrwxrwxrwx 1 rgetz users 18 2008-09-10 10:02 romfs/lib/libcrypt.so.0 -> libcrypt-0.9.29.so

rgetz@imhotep:~/blackfin/trunk/uClinux-dist> ls -l romfs/lib/libcrypt-0.9.29.so

-rwxr-xr-x 1 rgetz users 9564 2008-09-10 10:02 romfs/lib/libcrypt-0.9.29.so

 

Make sure you don't have symlinks that point nowhere.

 

-Robin

QuoteReplyEditDelete

 

 

2008-09-12 11:37:00     Re: Boot problem.

Matt Gilg (UNITED STATES)

Message: 62058   

 

Hi Robin,

 

My /romfs/bin directory does not contain init.  Any idea why?

 

-Matt

QuoteReplyEditDelete

 

 

2008-09-12 11:41:34     Re: Boot problem.

Matt Gilg (UNITED STATES)

Message: 62059   

 

And it appears that my lib directory is empty (when it shouldn't be) and the same with my bin directory (contains only nwsh).

 

-Matt

QuoteReplyEditDelete

 

 

2008-09-12 11:44:09     Re: Boot problem.

Mike Frysinger (UNITED STATES)

Message: 62060   

 

fix your busybox configuration then.  you probably have a lot of things that didnt get upgraded properly in the userspace configuration.

QuoteReplyEditDelete

 

 

2008-09-12 14:03:59     Re: Boot problem.

Matt Gilg (UNITED STATES)

Message: 62069   

 

Init seems to be ok,

 

ubuntu@dev2-ubuntu:~/Blackfin/uClinux$ file romfs/bin/init

romfs/bin/init: ELF 32-bit LSB executable, Analog Devices Blackfin, version 1 (SYSV), dynamically linked (uses shared libs), stripped

 

 

and it appears that the relevant links are here now.

 

ubuntu@dev2-ubuntu:~/Blackfin/uClinux/romfs/lib$ ls -l

total 1796

-rwxr-xr-x 1 ubuntu ubuntu   20108 2008-09-12 11:46 libhistory.so.5

-rwxr-xr-x 1 ubuntu ubuntu   22188 2008-09-12 11:46 libiw.so.27

-rwxr-xr-x 1 ubuntu ubuntu  229744 2008-09-12 11:46 libncurses.so.5

-rwxr-xr-x 1 ubuntu ubuntu  149772 2008-09-12 11:46 libreadline.so.5

-rwxr-xr-x 1 ubuntu ubuntu 1174272 2008-09-12 11:46 libsmbclient.so.0

-rwxr-xr-x 1 ubuntu ubuntu  144796 2008-09-12 11:46 libspeex.so.1

lrwxrwxrwx 1 ubuntu ubuntu      13 2008-09-12 11:46 libz.so.1 -> libz.so.1.2.3

-rwxr-xr-x 1 ubuntu ubuntu   57784 2008-09-12 11:46 libz.so.1.2.3

drwxr-xr-x 3 ubuntu ubuntu    4096 2008-09-12 11:46 modules

 

 

Don't seem to have bfin-read-elf program, can't do the last test with grep.

 

I rebuilt, loaded the image, and it failed again.

 

Bytes transferred = 34582574 (20fb02e hex)

bfin> bootelf 0x1000000

Loading .text @ 0x00001000 (1073984 bytes)

Loading .rodata @ 0x00108000 (218772 bytes)

Loading __ksymtab @ 0x0013d694 (14616 bytes)

Loading __ksymtab_gpl @ 0x00140fac (3920 bytes)

Loading __ksymtab_strings @ 0x00141efc (44356 bytes)

Loading __param @ 0x0014cc40 (300 bytes)

Loading .data @ 0x0014d000 (86016 bytes)

Loading .init.text @ 0x00162000 (65384 bytes)

Loading .init.data @ 0x00171f68 (3172 bytes)

Loading .init.setup @ 0x00172bcc (580 bytes)

Loading .initcall.init @ 0x00172e10 (440 bytes)

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

Loading .security_initcall.init @ 0x00172fcc (4 bytes)

Loading .init.ramfs @ 0x00172fd0 (133 bytes)

Loading .text_l1 @ 0xffa00000 (8360 bytes)

sh_addr: FFA00000, p_paddr: 00173055

Loading from: 01174000 to 00173055, size: 8360

Loading .data_l1 @ 0xff800000 (192 bytes)

sh_addr: FF800000, p_paddr: 001750FD

Loading from: 01177000 to 001750FD, size: 192

Clearing .bss @ 0x00176000 (65712 bytes)

Loading .romfs @ 0x001860b0 (32505856 bytes)

## Starting application at 0x00162000 ...

Linux version 2.6.22.19-ADI-2008R1.5-svn234 (ubuntu@dev2-ubuntu) (gcc version 4.1.2 (ADI svn)) #385 Fri Sep 12 11:42:40 MDT 2008

Hardware Trace Active and Enabled

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

Compiled for ADSP-BF537 Rev 0.2

Blackfin Linux support by http://blackfin.uclinux.org/

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

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  text      = 0x00001000-0x00107340

  rodata    = 0x00108000-0x0014cd6c

  data      = 0x0014d000-0x00162000

    stack   = 0x0014e000-0x00150000

  init      = 0x00162000-0x00176000

  bss       = 0x00176000-0x001860b0

  available = 0x001860b0-0x02000000

  rootfs    = 0x02000000-0x03f00000

  DMA Zone  = 0x03f00000-0x04000000

Built 1 zonelists.  Total pages: 8128

Kernel command line: root=/dev/mtdblock0 rw console=ttyBF0,115200

Configuring Blackfin Priority Driven Interrupts

Hardware Trace expanded to 16k

PID hash table entries: 128 (order: 7, 512 bytes)

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

Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)

Memory available: 30908k/65536k RAM, (80k init code, 1048k kernel code, 428k data, 1024k dma, 304k reserved)

Blackfin Scratchpad data SRAM: 4 KB

Blackfin Data A SRAM: 32 KB (31 KB free)

Blackfin Data B SRAM: 32 KB (32 KB free)

Blackfin Instruction SRAM: 48 KB (39 KB free)

Security Framework v1.0.0 initialized

Capability LSM initialized

Mount-cache hash table entries: 512

NET: Registered protocol family 16

Blackfin GPIO Controller

Blackfin DMA Controller

stamp_init(): registering device resources

Generic PHY: Registered new driver

NET: Registered protocol family 2

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

TCP established hash table entries: 1024 (order: 1, 8192 bytes)

TCP bind hash table entries: 1024 (order: 0, 4096 bytes)

TCP: Hash tables configured (established 1024 bind 1024)

TCP reno registered

fuse init (API version 7.8)

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

ISA-BlackFin-CAN CAN Driver 3.4.6_AD_BLACKFIN (c) Sep 12 2008

BlackFin port by H.J. Oertel (oe@port.de)

Serial: Blackfin serial driver

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

RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize

bfin_mac_mdio: probed

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

bfin_mac: Version 1.1, Blackfin BF53[67] BF527 on-chip Ethernet MAC driver

uclinux[mtd]: RAM probe address=0x2000000 size=0x1f00000

Creating 1 MTD partitions on "RAM":

0x00000000-0x01f00000 : "ROMfs"

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

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

TCP cubic registered

NET: Registered protocol family 1

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting the system clock to 2008-09-09 21:07:54 (1220994474)

VFS: Mounted root (ext2 filesystem).

Freeing unused kernel memory: 80k freed

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

Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

 

-Matt

QuoteReplyEditDelete

 

 

2008-09-12 14:16:58     Re: Boot problem.

Mike Frysinger (UNITED STATES)

Message: 62072   

 

you're missing the C library, so no ELF is going to work

 

if you're updating an old version, you need to compare your Makefile to the AnalogDevices ones to make sure you're executing the right things ... you're probably not calling the romfs.shared.libs target

QuoteReplyEditDelete

 

 

2008-09-12 14:41:06     Re: Boot problem.

Matt Gilg (UNITED STATES)

Message: 62074   

 

The uClinux Makefile is unmodified, and should be the one that came with this version of the uClinux distribution.  I'll attach it.

 

-Matt

 

Makefile

QuoteReplyEditDelete

 

 

2008-09-12 14:47:38     Re: Boot problem.

Mike Frysinger (UNITED STATES)

Message: 62075   

 

i'm talking about your vendor settings

QuoteReplyEditDelete

 

 

2008-09-12 16:58:20     Re: Boot problem.

Matt Gilg (UNITED STATES)

Message: 62080   

 

The Makefile in the vendors directory is the same as the original distribution as well.  I'll attach it.

 

-Matt

 

Makefile

QuoteReplyEditDelete

 

 

2008-09-12 17:23:25     Re: Boot problem.

Matt Gilg (UNITED STATES)

Message: 62082   

 

Oh, you probably mean exactly what you said - our vendor makefile.  Whoops, ok.  I'll give that a shot.  Thanks for the help Mike.

 

-Matt

QuoteReplyEditDelete

 

 

2008-09-12 17:56:38     Re: Boot problem.

Mike Frysinger (UNITED STATES)

Message: 62088   

 

if you want to reuse some of the code in AnalogDevices/, then look at the Bluetechnix or HVSistemas directories ... they source the ADI files so they dont have to duplicate things

Attachments

Outcomes