[#4868] For 527-ezkit/548-ezkit, if ttyBF0 is not set in bootargs, no kernel info shows when boot from uImage

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

[#4868] For 527-ezkit/548-ezkit, if ttyBF0 is not set in bootargs, no kernel info shows when boot from uImage

Submitted By: Vivi Li

Open Date

2009-02-09 01:31:04     Close Date

2009-02-10 02:19:58

Priority:

Medium     Assignee:

Nobody

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

N/A     Board:

EZKIT Lite

Processor:

BF527     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Rejected

Uboot version or rev.:

U-Boot 2008.10-svn1657     Toolchain version or rev.:

gcc4.1-2008_Dec_12

App binary format:

N/A     

Summary: For 527-ezkit/548-ezkit, if ttyBF0 is not set in bootargs, no kernel info shows when boot from uImage

Details:

 

For 527-ezkit/548-ezkit, if bootargs is set without "console=ttyBF0", then boot from uImage, no kernel boot info shows. For other platform, no such problem.

--

U-Boot 2008.10-svn1657 (ADI-2009R1-pre) (Feb  9 2009 - 10:59:07)

 

CPU:   ADSP bf527-0.0 (Detected Rev: 0.0) (parallel flash boot)

Board: ADI BF527 EZ-Kit board

       Support:   blackfin.uclinux.org/

Clock: VCO: 525 MHz, Core: 525 MHz, System: 131.250 MHz

RAM:   64 MB

Flash:  4 MB

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

MAC:   00:E0:22:FE:BB:4B

Hit any key to stop autoboot:  0

bfin>

bfin> tftp 0x1000000 uImage

Using Blackfin EMAC device

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'uImage'.

Load address: 0x1000000

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

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

         ####

done

Bytes transferred = 1955944 (1dd868 hex)

bfin> set bootargs root=/dev/mtdblock0 rw ip=10.100.4.60

bfin> bootm

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

   Image Name:   Linux-2.6.28-ADI-2009R1-pre-svn6

   Created:      2009-02-06  18:23:51 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    1955880 Bytes =  1.9 MB

   Load Address: 00001000

   Entry Point:  0018d49c

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 0018d49c

 

(although no booting kernel output info, kernel actually has started.)

 

test@uboot30-527ezkit:~/work/cruise/checkouts/u-boot/u-boot-2008.10> telnet 10.100.4.60

Trying 10.100.4.60...

Connected to 10.100.4.60.

Escape character is '^]'.

 

 

BusyBox v1.13.2 (2009-01-20 15:36:30 GMT) built-in shell (msh)

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

 

root:/> ifconfig

eth0      Link encap:Ethernet  HWaddr 00:E0:22:FE:BB:4B

          inet addr:10.100.4.60  Bcast:10.255.255.255  Mask:255.0.0.0

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:24 errors:0 dropped:0 overruns:0 frame:0

          TX packets:17 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:1765 (1.7 KiB)  TX bytes:1314 (1.2 KiB)

 

lo        Link encap:Local Loopback

          inet addr:127.0.0.1  Mask:255.0.0.0

          UP LOOPBACK RUNNING  MTU:16436  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

 

root:/>

root:/> Connection closed by foreign host.

test@uboot30-527ezkit:~/work/cruise/checkouts/u-boot/u-boot-2008.10>

--

 

They can boot only when bootargs is set with console info.

--

U-Boot 2008.10-svn1657 (ADI-2009R1-pre) (Feb  9 2009 - 10:59:07)

 

CPU:   ADSP bf527-0.0 (Detected Rev: 0.0) (parallel flash boot)

Board: ADI BF527 EZ-Kit board

       Support:   blackfin.uclinux.org/

Clock: VCO: 525 MHz, Core: 525 MHz, System: 131.250 MHz

RAM:   64 MB

Flash:  4 MB

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

MAC:   00:E0:22:FE:BB:4B

Hit any key to stop autoboot:  0

bfin>

bfin> set bootargs root=/dev/mtdblock0 rw ip=10.100.4.60 console=ttyBF0

bfin> tftp 0x1000000 uImage

Using Blackfin EMAC device

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'uImage'.

Load address: 0x1000000

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

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

         ####

done

Bytes transferred = 1955944 (1dd868 hex)

bfin> bootm

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

   Image Name:   Linux-2.6.28-ADI-2009R1-pre-svn6

   Created:      2009-02-06  18:23:51 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    1955880 Bytes =  1.9 MB

   Load Address: 00001000

   Entry Point:  0018d49c

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 0018d49c

Linux version 2.6.28-ADI-2009R1-pre-svn6060 (test@uboot30-527ezkit) (gcc version 4.1.2 (ADI svn)) #43 Fri Feb 6 18:23:38 GMT9

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

(...)

--

 

 

For other platform such as 537, even if console info is not defined in bootargs, there is also console output.

--

bfin> set bootargs root=/dev/mtdblock0 rw ip=10.100.4.60^M

bfin> tftp 0x1000000 uImage-beta^M

Using Blackfin EMAC device^M

TFTP from server 10.100.4.174; our IP address is 10.100.4.50^M

Filename 'uImage-beta'.^M

Load address: 0x1000000^M

Loading: *^H#################################################################^M

         #################################################################^M

         ###################################^M

done^M

Bytes transferred = 2408745 (24c129 hex)^M

bfin> bootm^M

## Booting kernel from Legacy Image at 01000000 ...^M

   Image Name:   Linux-2.6.28-ADI-2009R1-pre-svn6^M

   Created:      2009-02-06  11:48:20 UTC^M

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)^M

   Data Size:    2408681 Bytes =  2.3 MB^M

   Load Address: 00001000^M

   Entry Point:  0017a35c^M

   Verifying Checksum ... OK^M

   Uncompressing Kernel Image ... OK^M

Starting Kernel at = 0017a35c^M

Linux version 2.6.28-ADI-2009R1-pre-svn6060 (test@uboot34-bf537stamp) (gcc version 4.1.2 (ADI svn)) #3 Fri Feb 6 19:48:11 CST 2009^M

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

Board Memory: 64MB^M

Kernel Managed Memory: 64MB^M

Memory map:^M

(...)

--

 

Follow-ups

 

--- Mike Frysinger                                           2009-02-09 10:58:46

the kernel only sets up 1 console by default, and the default kernel for those

two boards include the framebuffer/tty which get preference over the serial

console.  so this is not a bug, but by design.

 

--- Vivi Li                                                  2009-02-09 21:06:31

OK, I see.

Close it. Thanks!

 

--- Vivi Li                                                  2009-02-09 21:15:27

Hi, Michael

  Is there any option in menuconfig that I can change default console? Or, it's

just fixed code in kernel which can't be changed?

 

-Vivi

 

--- Mike Frysinger                                           2009-02-09 21:25:42

i dont think there is any option to select the default console

 

--- Vivi Li                                                  2009-02-10 02:05:48

I see. I can add CONFIG_CMDLINE in kernel config for 548/527.

 

BTW, I found that the same problem happens in BF518f-EZBRD, which doesn't have

a LCD connected. So the default console for bf518 should be ttyBF0 and

apparently it's not. I think it's a bug for bf518.

 

--- Mike Frysinger                                           2009-02-10 02:19:58

it's the same thing for BF518F as it enables the VT options.  still not a bug.

 

just set console=ttyBF0 for all boards and be done with it.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes