[#4568] Kernel can't boot up in latest u-boot-2008.10

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

[#4568] Kernel can't boot up in latest u-boot-2008.10

Submitted By: Vivi Li

Open Date

2008-10-28 05:44:33     Close Date

2008-11-04 03:42:39

Priority:

Medium     Assignee:

Mike Frysinger

Category:

N/A     Fixed In Release:

N/A

Found In Release:

N/A     Status:

Closed

Board:

N/A     Processor:

N/A

Silicon Revision:

    Resolution:

Fixed

Is the bug repeatable?:

N/A     

Summary: Kernel can't boot up in latest u-boot-2008.10

Details:

 

Kernel can't boot up in latest u-boot-2008.10.

 

--

U-Boot 2008.10-svn1444 (ADI-2009R1-pre) (Oct 28 2008 - 18:41:54)

 

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

Board: ADI BF537 stamp board

       Support: http://blackfin.uclinux.org/

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

RAM:   64 MB

Flash:  4 MB

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

MAC:   00:E0:13:AF:BF:98

Hit any key to stop autoboot:  0

bfin>

bfin>

bootargs=root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600 console=ttyBF0,57600

baudrate=57600

loads_echo=1

rootpath=/romfs

hostname=bf537-stamp

loadaddr=0x1000000

ubootfile=u-boot.bin

update=tftp $(loadaddr) $(ubootfile);protect off 0x20000000 0x2003FFFF;erase 0x20000000 0x2003FFFF;cp.b $(loadaddr) 0x20000000 )

addip=set bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname):eth0:off

ramargs=set bootargs root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600 console=ttyBF0,57600

ramboot=tftp $(loadaddr) uImage;run ramargs;run addip;bootm

nfsargs=set bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath),tcp,nfsvers=3

nfsboot=tftp $(loadaddr) vmImage;run nfsargs;run addip;bootm

flashboot=bootm 0x20100000

ethact=Blackfin EMAC

ethaddr=00:E0:13:AF:BF:98

filesize=25B74

fileaddr=1000000

gatewayip=10.100.4.174

netmask=255.255.255.0

ipaddr=10.100.4.50

serverip=10.100.4.174

bootcmd=bootm

tftp_boot=tftp 0x1000000 linux.dxe;boote 0x1000000

bootdelay=9

date_tested=Tue Oct 28 18:57:35 CST 2008

stdin=serial

stdout=serial

stderr=serial

 

Environment size: 1081/8188 bytes

bfin> tftp 0x1000000 linux.null_point

Using Blackfin EMAC device

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'linux.null_point'.

Load address: 0x1000000

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

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

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

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

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

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

done

Bytes transferred = 5216428 (4f98ac hex)

bfin> boote

Loading .text @ 0x00001000 (1081680 bytes)

Loading .rodata @ 0x00109160 (273488 bytes)

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

Loading __ksymtab @ 0x0014be00 (15440 bytes)

Loading __ksymtab_gpl @ 0x0014fa50 (4648 bytes)

Loading __ksymtab_strings @ 0x00150c78 (44538 bytes)

Loading __init_rodata @ 0x0015ba74 (172 bytes)

Loading __param @ 0x0015bb20 (340 bytes)

Clearing .bss @ 0x0015bc80 (62296 bytes)

Loading .data @ 0x0016afd8 (61480 bytes)

Loading .init.text @ 0x0017a000 (100112 bytes)

Loading .init.data @ 0x00192710 (13544 bytes)

Loading .init.setup @ 0x00195bf8 (644 bytes)

Loading .initcall.init @ 0x00195e7c (480 bytes)

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

Loading .init.ramfs @ 0x00196060 (3023780 bytes)

Loading .text_l1 @ 0xffa00000 (6980 bytes)

Loading .data_l1 @ 0xff800000 (224 bytes)

## Starting application at 0x00188298 ...

--

 

Follow-ups

 

--- Mike Frysinger                                           2008-10-28 06:55:02

booting Linux elfs will no longer work with dynamic command lines ... there are

no plans to re-implement the changes that were made to common code in

u-boot-1.1.6 and older

 

--- Sonic Zhang                                              2008-10-28 23:28:10

Hi Mike,

What do you mean by "Dynamic command line"? Is it this line

"bootargs=root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600"? How

to deal with it in new uboot? Configure it in head file before building?

 

 

 

--- Mike Frysinger                                           2008-10-28 23:43:29

i posted information to the u-boot mailing list

 

--- Vivi Li                                                  2008-10-30 05:15:54

When I config kernel, I set the following:

 

--

Default bootloader kernel arguments (CMDLINE_BOOL) [N/y] Y

  Initial kernel command string (CMDLINE) [console=ttyBF0,57600] (NEW)

root=/dev/mtdblock0 rw earlyprintk=serial,uart1,57600 console=tty0

console=ttyBF0,57600

--

 

Then I build the kernel, it still can't boot up from linux image.

Is there anything wrong with my config?

 

-Vivi

 

--- Mike Frysinger                                           2008-10-31 08:01:37

our older u-boots apparently patch the cmd_elf code.  u-boot's

"bootelf" loads things into their VMA's, not LMA's, and then clears

the bss and such.  but we patched it to load into the LMA instead.

 

--- Mike Frysinger                                           2008-10-31 09:22:55

ive added a config option (which is enabled by default for ADI boards) to have

the ELF loading step load ELFs according to their LMAs/PHDRs instead of

VMAs/SHDRs

 

--- Vivi Li                                                  2008-11-04 03:42:39

OK now. Close this bug.

Thanks!

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

u-boot-bfin-bootelf.patch    application/octet-stream    2474    Mike Frysinger

Attachments

Outcomes