[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [microblaze-uclinux] Determining the MAC address on a Spartan 3e Starter Kit
On Wednesday, January 03, 2007 7:21 PM Jose Torres wrote:
> Unfortunately, the boot process
> stops on "Starting thttpd". I removed this from the system settings
> when configuring the kernel and reflashed the images but it still
> shows up.
Double check that you really removed thttpd by browsing
<distro_dir>/config/.config file. You could mix it with tftpd.
Also starting thttpd is almost last kernel is doing before jump to
login, so may be problem is in the next step.
> I did notice this in the boot up logs:
> eth0: using fifo mode.
> eth0: No PHY detected. Assuming a PHY at address 0.
> eth0: Xilinx EMACLite #0 at 0x40E00000 mapped to 0x40E00000, irq=1
I see the same and so far I set MAC address in linux, using ifconfig.
Try set u-boot bootargs macaddr=<something>
> Do you know if this is a u-boot or uClinux issue? Any idea what might
> be causing it to hang?
Not sure. Provided that Ethernet is working on u-boot stage (you could
tftp, right?) I suppose it's linux problem. BTW, how is tftp working on
u-boot stage? For me it works slow, loosing packets (and target is
behind the same switch as tftp server).
Keep pushing!
Leonid.
P.S: this is my uClinux booting snapshot:
=================================================
FS-BOOT First Stage Bootloader (c) 2006 PetaLogix
=================================================
FS-BOOT: System initialisation completed.
FS-BOOT: Booting from FLASH. Press 's' for image download.
FS-BOOT: Waiting for SREC image....
FS-BOOT: Image download successful.
FS-BOOT: Warning image location differ from default boot location. Image
will not boot automatically after POR.
FS-BOOT: Press 'n' to boot old image.
FS-BOOT: Use new image.
FS-BOOT: Booting image...
SDRAM :
U-Boot Start:0x23fc0000
Malloc Start:0x23f60000
Board Info Start:0x23f5ffd0
Boot Parameters Start:0x23f4ffd0
FLASH: 16 MB
ETHERNET: MAC:00:10:ec:00:ce:71
U-Boot> printenv
bootdelay=3
baudrate=(115200)
ipaddr=192.168.0.206
serverip=192.168.0.141
gatewayip=192.168.0.1
netmask=255.255.255.0
ethaddr=00:10:ec:00:ce:71
hostname=lm125b
nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath}
addip=setenv bootargs ${bootargs}
ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:${netdev}:o
ff panic=1
addtty=setenv bootargs ${bootargs} console=ttyS0,${baudrate}
kernel_addr=23000000
rd_size=4096
ramdisk_addr=23400000
getkernel=tftp $(kernel_addr) $(image_path)/image.ub
image_path=lm125/rel/1.0.0
ramargs=setenv bootargs ramdisk_size=$(rd_size) root=/dev/ram rw
akarom=run addip addtty getkernel; bootm $(kernel_addr)
Environment size: 668/262140 bytes
U-Boot> setenv image_path lm125/rel/1.0.1
U-Boot> run akarom
TFTP from server 192.168.0.141; our IP address is 192.168.0.206
Filename 'lm125/rel/1.0.1/image.ub'.
Load address: 0x23000000
Loading: T
#################################################################
######################T
###########################################
########################T ##########T
###############################
#############################T #####T
###############################
########################################T
#########################
#################################################################
#################################################################
############T ####T
#################################################
####################T
#############################################
###############
Retry count exceeded; starting again
TFTP from server 192.168.0.141; our IP address is 192.168.0.206
Filename 'lm125/rel/1.0.1/image.ub'.
Load address: 0x23000000
Loading:
#################################################################
#############################################################T
####
###########################T
######################################
##################T #T
########################################T ######
#################################################################
################################################T
#################
####################################################T
#############
#####T
############################################################
#########################################################T
########
#############################T ##################
Retry count exceeded; starting again
TFTP from server 192.168.0.141; our IP address is 192.168.0.206
Filename 'lm125/rel/1.0.1/image.ub'.
Load address: 0x23000000
Loading: #T ##T T T ##########T #######################T
#############################
#################################################################
###########T T T T
Retry count exceeded; starting again
TFTP from server 192.168.0.141; our IP address is 192.168.0.206
Filename 'lm125/rel/1.0.1/image.ub'.
Load address: 0x23000000
Loading: ##########T ##T
#####################################################
##########################T
###################################T T T ####
#################################################################
##################################T ####################T
#########T ##
######T ####
Retry count exceeded; starting again
TFTP from server 192.168.0.141; our IP address is 192.168.0.206
Filename 'lm125/rel/1.0.1/image.ub'.
Load address: 0x23000000
Loading: ################################T
#################################
#################################################################
################################T
#############################T ####
#T ##################T
##############################################
#######################################################T
##########
#################################################################
#################################################################
############T
#####################################################
##########################################################T
#######
####################################T ##T
###########################
#################
done
Bytes transferred = 3412032 (341040 hex)
## Booting image at 23000000 ...
Image Name: PetaLinux Kernel 2.4
Image Type: Microblaze Linux Kernel Image (uncompressed)
Data Size: 3411968 Bytes = 3.3 MB
Load Address: 22000000
Entry Point: 22000000
Verifying Checksum ... OK
OK
Linux version 2.4.32-uc0 (root@sohail-desktop) (gcc version 3.4.1 (
Xilinx EDK 8.1.01 Build EDK_I.19.4 080506 )) #13 Tue Jan 2 14:01:07 PST
2007
On node 0 totalpages: 8192
zone(0): 8192 pages.
zone(1): 0 pages.
zone(2): 0 pages.
CPU: MICROBLAZE
Kernel command line:
ip=192.168.0.206:192.168.0.141:192.168.0.1:255.255.255.0:lm125b::off
panic=1 console=ttyS0,(115200)
Console: xmbserial on UARTLite
Calibrating delay loop... 24.83 BogoMIPS
Memory: 32MB = 32MB total
Memory: 28904KB available (1154K code, 2348K data, 48K init)
Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Microblaze UARTlite serial driver version 1.00
ttyS0 at 0x40600000 (irq = 2) is a Microblaze UARTlite
ttyS1 at 0x41400000 (irq = 4) is a Microblaze UARTlite
Starting kswapd
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
eth0: using fifo mode.
eth0: No PHY detected. Assuming a PHY at address 0.
eth0: Xilinx EMACLite #0 at 0x40E00000 mapped to 0x40E00000, irq=1
physmap_auto flash device: 1000000 at 21000000
physmap_auto probing buswidth 1
cfi_cmdset_0001: Erase suspend on write enabled
0: offset=0x0,size=0x20000,blocks=128
Using buffer write method
physmap_auto: no partition info available, registering whole flash at
once
uclinux[mtd]: RAM probe address=0x22163df0 size=0x208000
uclinux[mtd]: root filesystem index=2
Directional Button & Rotary Encoder Driver
(c) 2006 PetaLogix
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 4096)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (cramfs filesystem) readonly.
Freeing init memory: 48K
Mounting proc:
Mounting var:
Populating /var:
Running local start scripts.
Mounting /etc/config:
Populating /etc/config:
flatfsd: Nonexistent or bad flatfs (-48), creating new one...
flatfsd: Failed to write flatfs (-48): No such device
flatfsd: Created 5 configuration files (389 bytes)
Setting hostname:
Setting up interface lo:
Setting up interface eth0:
Starting portmap:
Starting thttpd:
lm125b login: root
Password:
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:192.168.0.206 Bcast:192.168.0.255
Mask:255.255.255.0
UP BROADCAST RUNNING MTU:1500 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:1000
Interrupt:1
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
# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1): 56 data bytes
64 bytes from 192.168.0.1: icmp_seq=0 ttl=255 time=1008.1 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=255 time=1.3 ms
64 bytes from 192.168.0.1: icmp_seq=3 ttl=255 time=1.3 ms
64 bytes from 192.168.0.1: icmp_seq=4 ttl=255 time=1.3 ms
64 bytes from 192.168.0.1: icmp_seq=5 ttl=255 time=1.3 ms
64 bytes from 192.168.0.1: icmp_seq=6 ttl=255 time=1.3 ms
64 bytes from 192.168.0.1: icmp_seq=7 ttl=255 time=1.3 ms
64 bytes from 192.168.0.1: icmp_seq=8 ttl=255 time=1.3 ms
64 bytes from 192.168.0.1: icmp_seq=9 ttl=255 time=1.3 ms
64 bytes from 192.168.0.1: icmp_seq=10 ttl=255 time=1.3 ms
64 bytes from 192.168.0.1: icmp_seq=11 ttl=255 time=1.3 ms
64 bytes from 192.168.0.1: icmp_seq=12 ttl=255 time=1.3 ms
64 bytes from 192.168.0.1: icmp_seq=13 ttl=255 time=1.3 ms
64 bytes from 192.168.0.1: icmp_seq=14 ttl=255 time=1.3 ms
64 bytes from 192.168.0.1: icmp_seq=15 ttl=255 time=1.3 ms
64 bytes from 192.168.0.1: icmp_seq=16 ttl=255 time=1.3 ms
64 bytes from 192.168.0.1: icmp_seq=17 ttl=255 time=1.3 ms
64 bytes from 192.168.0.1: icmp_seq=18 ttl=255 time=1.3 ms
64 bytes from 192.168.0.1: icmp_seq=19 ttl=255 time=1.3 ms
64 bytes from 192.168.0.1: icmp_seq=20 ttl=255 time=1.3 ms
64 bytes from 192.168.0.1: icmp_seq=21 ttl=255 time=1.3 ms
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/