[#5323] network is not started after bootup if set console=null in u-boot
Submitted By: Mingquan Pan
Open Date
2009-07-07 23:21:06 Close Date
2009-08-09 23:30:22
Priority:
Medium High Assignee:
Sonic Zhang
Status:
Closed Fixed In Release:
N/A
Found In Release:
N/A Release:
Category:
N/A Board:
N/A
Processor:
BF537 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Fixed
Uboot version or rev.:
Toolchain version or rev.:
09R1-RC9
App binary format:
N/A
Summary: network is not started after bootup if set console=null in u-boot
Details:
network is not started after bootup if set console=null in u-boot.
U-Boot 2008.10-svn1956 (ADI-2009R1-rc2) (Jul 2 2009 - 20:05:22)
CPU: ADSP bf537-0.2 (Detected Rev: 0.2) (bypass boot)
Board: ADI BF537 stamp board
Support: http://blackfin.uclinux.org/
Clock: VCO: 500 MHz, Core: 500 MHz, System: 125 MHz
RAM: 64 MB
Flash:
RAM size is 64 MB.
4 MB
In: serial
Out: serial
Err: serial
Net: Blackfin EMAC
MAC: 00:E0:22:FE:58:B9
Hit any key to stop autoboot: 0
bfin> set bootargs root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600 console=null ip=10.100.4.50
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>
bfin> tftpboot 0x2000000 uImage
Using Blackfin EMAC device
TFTP from server 10.100.4.174; our IP address is 10.100.4.50
Filename \'uImage\'.
Load address: 0x2000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
############################################################
done
Bytes transferred = 4688976 (478c50 hex)
Image size is 478c50
bfin> run addip
bfin> bootm
## Booting kernel from Legacy Image at 02000000 ...
Image Name: Linux-2.6.28.10-ADI-2009R1-svn69
Created: 2009-07-07 7:56:58 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 4688912 Bytes = 4.5 MB
Load Address: 00001000
Entry Point: 0018662c
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 0018662c
Linux version 2.6.28.10-ADI-2009R1-svn6933 (test@uclinux50-bf537-ad9960-ad1836) (gcc version 4.1.2 (ADI svn)) #12 Tue Jul 7 15:56:15 CST 2009
bootconsole [early_shadow0] enabled
bootconsole [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-0x00104730
rodata = 0x00104730-0x00155408
bss = 0x00156000-0x00167720
data = 0x00167720-0x00178000
stack = 0x00176000-0x00178000
init = 0x00178000-0x008c1000
available = 0x008c1000-0x037ff000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace Active and Enabled
Boot Mode: 0
Reset caused by Software reset
Blackfin support (C) 2004-2009 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 125 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
Data Cache Enabled for CPU0 (write-back)
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 14223
Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600 console=null ip=10.100.4.50 ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:bf537-stamp:eth0:off
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 47808k/65536k RAM, (7460k init code, 1037k kernel code, 463k data, 1024k dma, 7744k reserved)
Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
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 (37 KB free)
net_namespace: 288 bytes
NET: Registered protocol family 16
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 93
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_mii_bus: probed
bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=24)@sclk=125MHz)
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1
bfin-spi bfin-spi.0: Blackfin 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
turn off boot console early_BFuart0
(Back at uclinux50-bf537-ad9960-ad1836.analog.com)
----------------------------------------------------
(/home/test/work/cruise/checkouts/uclinux-dist/testsuites/serial/) C-Kermit>q
Closing /dev/ttyS0...OK
spawn /bin/sh
uclinux50-bf537-ad9960-ad1836:~/work/cruise/checkouts/uclinux-dist/testsuites/serial> telnet 10.100.4.50
Trying 10.100.4.50...
telnet: connect to address 10.100.4.50: No route to host
Failed inital telnet
Passed version: linux 6921,uclinux-dist 8427
failed version: linux 6933 uclinux-dist 8441.
Follow-ups
--- Robin Getz 2009-07-08 00:26:42
I have seen this as well - but it appears to be intermittent - sometimes it
works, sometimes it fails. I'm not sure why.
-Robin
--- Mike Frysinger 2009-07-08 01:32:26
perhaps related to [#4601] and svn commit 5693. i was unable to reproduce this
behavior and Sonic hadnt root caused this. if you can get a board to show it at
work Robin, i can take a look.
--- Mike Frysinger 2009-07-08 01:38:50
although, Grace is seeing the problem on the branch and it has this change while
Robin is seeing the problem on trunk and it does not have this change (since i
dropped it)
--- Sonic Zhang 2009-07-08 05:18:02
This bug is caused by Robin's patch r6931 "Store the actual value of
IPEND".
Some kernel code doesn't handle the extra IPEND on stack properly when
CONFIG_DEBUG_KERNEL is selected.
--- Sonic Zhang 2009-07-08 05:34:27
Ignore last comments. the patch is not r6931, but r6928 "Add a
shadow_console". I suggest to remove this patch from 2009R1 branch.
--- Robin Getz 2009-07-08 08:06:11
I have been able to recreate the issue before that was added. (like I said above
- the issue is intermittent).
Why do you think it was that patch?
--- Sonic Zhang 2009-07-08 22:32:29
Because I can't replicate this bug with svn branch 2009R1 r6924 and released
toolchain.
--- Sonic Zhang 2009-07-20 06:55:46
Fixed.
Disable all boot consoles instead of only one in disable_boot_consoles().
--- Robin Getz 2009-07-20 08:34:38
Sorry - this is not acceptable - I'm reverting.
-Robin
--- Robin Getz 2009-07-20 08:49:10
Sorry - from reading your comment - it wasn't apparent that you fixed the bug.
but I do still have a question (on the commits list).
--- Mingquan Pan 2009-08-10 04:30:32
This issue is seen gone on regression machine. So close.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found