2010-10-12 12:32:06     netconsole problem

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

2010-10-12 12:32:06     netconsole problem

Prasanth Rajagopal (INDIA)

Message: 94436   

 

I am trying to get the net console working

 

I included "#define CONFIG_NETCONSOLE 1" in the uboot and compiled. I have netcat installed.

 

But, the script doesnt seem to give me the correct output. Nothing comes to the Linux terminal, until I press an Enter, and for every Enter key Press, I just get the LAN chip detection:

 

 

 

linux-68ge:~/Desktop/u-boot/u-boottrunk/u-boot-trunk-svn-2466 # ./tools/netconsole 10.121.10.250

NOTE: the interrupt signal (normally ^C) has been remapped to ^T

 

bfin> smc911x: detected LAN9218 controller

smc911x: phy initialized

smc911x: MAC 00:e0:22:fe:bd:98

 

bfin> smc911x: detected LAN9218 controller

smc911x: phy initialized

smc911x: MAC 00:e0:22:fe:bd:98

 

 

 

At u-boot end:

 

bfin> set ncip 10.121.10.251    

bfin> ping 10.121.10.251        

smc911x: detected LAN9218 controller

smc911x: phy initialized

smc911x: MAC 00:e0:22:fe:bd:98

Using smc911x-0 device

host 10.121.10.251 is alive

bfin> set stdin nc; set stdout nc; set stderr nc

 

Any idea why I am unable to get the net console working, as in a serial console case?

 

ENV variables:

 

bfin> printenv

bootargs=root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart1,57600

console=tty0 console=ttyBF1,57600

bootcmd=run ramboot

bootdelay=5

baudrate=57600

loads_echo=1

autoload=no

rootpath=/romfs

gatewayip=192.168.0.1

netmask=255.255.255.0

hostname=bf548-ezkit

loadaddr=0x1000000

nandargs=set bootargs root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial

,uart1,57600 console=tty0 console=ttyBF1,57600

nandboot=nand read $(loadaddr) 0x20000 0x100000;run nandargs;bootm

nc=set ncip ${serverip};set stdin nc;set stdout nc

ubootfile=u-boot.ldr

update=tftp $(loadaddr) $(ubootfile);protect off 0x20000000 +$(filesize);erase 0x

20000000 +$(filesize);cp.b $(loadaddr) 0x20000000 $(filesize)

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

(hostname):eth0:off

ramfile=uImage

ramargs=set bootargs root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,

uart1,57600 console=tty0 console=ttyBF1,57600

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

nfsfile=vmImage

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

=3

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

flashboot=bootm 0x20100000

ethact=smc911x-0

ipaddr=10.121.10.250

serverip=10.121.10.251

stdin=serial

stdout=serial

stderr=serial

 

bfin> bdinfo

U-Boot      = U-Boot 2010.09 (ADI-2011R1-pre) (Oct 13 2010 - 02:13:55)

CPU         = bf548-0.0

Board       = bf548-ezkit

VCO         =    525 MHz

CCLK        =    525 MHz

SCLK        = 131.250 MHz

boot_params = 0x00000000

memstart    = 0x00000000

memsize     = 0x04000000

flashstart  = 0x20000000

flashsize   = 0x01000000

flashoffset = 0x00000000

ethaddr     = (not set)

ip_addr     = 10.121.10.250

baudrate    = 57600 bps

 

Thanks

 

Prasanth.

QuoteReplyEditDelete

 

 

2010-10-12 14:54:14     Re: netconsole problem

Mike Frysinger (UNITED STATES)

Message: 94438   

 

are you actually using a bf548-ezkit ?

 

some net drivers may not operate correctly with netconsole due to the net API of bringing up/down the hardware

QuoteReplyEditDelete

 

 

2010-10-13 02:49:00     Re: netconsole problem

Prasanth Rajagopal (INDIA)

Message: 94454   

 

Mike,

 

Yes, I have a BF548 Kit with board rev 1.4 & Si rev 0.2. I have been using serial console for a long time.

 

I downloaded u-boot u-boot-trunk-svn.src.tar.bz2 and just followed the steps to get net console working.

 

Do you want me to try a newer version of the Kit? If not, perhaps with BF527 or something? I have the Kits for all Blackfins.

 

Thanks.

 

Prasanth.

QuoteReplyEditDelete

 

 

2010-10-13 11:12:58     Re: netconsole problem

Prasanth Rajagopal (INDIA)

Message: 94477   

 

I tried on multiple kits, of BF548 but with same result. Then i tried with stdin serial and stdout nc & this worked back and forth:

 

U-boot:

 

bfin> set ncip 10.121.10.251

bfin> set stdout nc; set stderr nc

 

linux-68ge:~/Desktop/u-boot/u-boottrunk/u-boot-trunk-svn-2466 # ./tools/netconsole 10.121.10.250

NOTE: the interrupt signal (normally ^C) has been remapped to ^T

bfin> help

?       - alias for 'help'

base    - print or set address offset

bdinfo  - print Board Info structure

boot    - boot default, i.e., run 'bootcmd'

bootd   - boot default, i.e., run 'bootcmd'

bootelf - Boot from an ELF image in memory

bootldr - boot ldr image from memory

bootm   - boot application image from memory

bootp   - boot image via network using BOOTP/TFTP protocol

bootvx  - Boot vxWorks from an ELF image

cmp     - memory compare

coninfo - print console devices and information

cp      - memory copy

cplbinfo- display current CPLB tables

crc32   - checksum calculation

date    - get/set/reset date & time

dcache  - enable or disable data cache

dhcp    - boot image via network using DHCP/TFTP protocol

dns     - lookup the IP of a hostname

echo    - echo args to console

editenv - edit environment variable

erase   - erase FLASH memory

ext2load- load binary file from a Ext2 filesystem

ext2ls  - list files in a directory (default /)

bfin> bdinfo

U-Boot      = U-Boot 2010.09 (ADI-2011R1-pre) (Oct 13 2010 - 02:13:55)

CPU         = bf548-0.0

Board       = bf548-ezkit

VCO         =    525 MHz

CCLK        =    525 MHz

SCLK        = 131.250 MHz

boot_params = 0x00000000

memstart    = 0x00000000

memsize     = 0x04000000

flashstart  = 0x20000000

flashsize   = 0x01000000

flashoffset = 0x00000000

ethaddr     = (not set)

ip_addr     = 10.121.10.250

baudrate    = 57600 bps

bfin> set stdis

bfin> set stdos

bfin> set stdusl

bfin> set stdout serial

 

Also, I noticed that the characters come in very slow (nearly a second delay) that you would not want it as a console.

 

There is a difference of Si Rev that I saw, my Kit is actually 0.2.

QuoteReplyEditDelete

 

 

2010-10-13 11:58:35     Re: netconsole problem

Mike Frysinger (UNITED STATES)

Message: 94478   

 

it's as i said -- you're seeing misbehavior between the networking layers and the smsc driver.  use a Blackfin with an on-chip mac instead.

 

we have no plans to work on non-Blackfin net drivers in this regard.

Attachments

    Outcomes