I have similar issues. It seems that no matter what I do it 'almost' boots.
Mike Smutek <msmutek@protiumtechnologies.com> wrote:
Hi,
I'm working on getting Microblaze/uClinux running on the Avnet Development
Board with an XV3S1500 and it almost works. The board has 32MB DDR, 16 MB
FLASH, and 2 MB SRAM.
It can run two different image.bin files built by John Williams, but not any
that I've been able to build. The symptom is that the system hangs up or
runs into a kernal BUG about the time the rc file is running /bin/expand.
Console output from two systems that run and two that don't are included
below.
The hardware is made from mbvanilla_net, except for changes to use DDR
memory and to the ucf for pinout. It has the same devices, and the same
interrupts in
the same order. The FLASH and SRAM were moved because they are larger, but I
don't think they are being used at the moment anyway. The hardware seems to
be
okay based on the fact that:
1) it w!
ill run
memory tests,
2) it runs the demo image.bin from the web site, and
3) it runs an image.bin posted to the mailinglist by John Williams (see
http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/archive/2004/10/msg00
041.html).
On the other hand, I've tried building both a totally default image.bin and
one that
attempts to duplicate the system John posted on the mailing list and both
begin to
run but fail at about the same place near the beginning of the rc script.
* Building the default image.bin
With clean uClinux-dist and uClinux-2.4.x trees from CVS, attempt to build a
default system. In menuconfig: select Insight/mbvanilla_net as
vendor/product;
default all settings (lose changes) and default choice (N) for all new
items. Customize Vendor/User settings to force libcrypt_old -- other than
that
keep all defaults. Make dep and make.
* Duplicate mailing list image.bin
With clean uClinux-dist and
uClinux-2.4.x trees from CVS, attempt to
duplicate the image.bin from the mailinglist by following John's
instructions. Edit files as indicated. In menuconfig: Insight/mbvanilla as
vendor/product; default all settings (lose changes) and default choice (N)
for all new items; customize kernal settings to pick up .config from the
mailing list; customize Vendor/User settings to force libcrypt_old. Make dep
and make.
Here are the various console logs. It's interesting that the two that work
have low BogoMIPS numbers while the two that don't work have much higher
numbers. Why should they be different?
Any suggestions about what I'm doing wrong, or where to look, or what to try
would be appreciated. A collection of console logs follows.
Best regards,
Mike Smutek
************************************************************************
DEMO image.bin
Linux version 2.4.21-uc0 (jwilliam@g435-9029) (gcc version!
2.95.3-4
Xilinx
EDK 6.1 Build EDK_G.3) #1352 Mon Aug 25 10:00:04 EST 2003
On node 0 totalpages: 4096
zone(0): 0 pages.
zone(1): 4096 pages.
zone(2): 0 pages.
CPU: MICROBLAZE
Console: xmbserial on UARTLite
Kernel command line:
Calibrating delay loop... 2.61 BogoMIPS
Memory: 14800K/16384K available (568K kernel code, 199K data)
Dentry cache hash table entries: 2048 (order: 2, 16384 bytes)
Inode cache hash table entries: 1024 (order: 1, 8192 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: 4096 (order: 2, 16384 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Microblaze UARTlite serial driver version 1.00
ttyS0 at 0xffff2000 (irq = 1) is a Microblaze UARTlite
ttyS1 at 0xffff4000 (irq = 2) is a Microblaze UARTlite
Starting kswapd
xgpio !
#0 at
0xFFFF5000 mapped to 0xFFFF5000
Xilinx GPIO registered
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
MBVanilla flash probe(0xff000000,8388608,4): 800000 at ff000000
CFI: Found no Flash device at location zero
Search for id:(ff d018) interleave(2) type(2)
Search for id:(ff d018) interleave(2) type(2)
Search for id:(90 d018) interleave(2) type(2)
Search for id:(ff ff) interleave(2) type(1)
Search for id:(ff ff) interleave(2) type(1)
Search for id:(90 90) interleave(2) type(1)
Search for id:(ffff b4d4) interleave(4) type(2)
Search for id:(ffff b4d4) interleave(4) type(2)
Search for id:(9090 b4d4) interleave(4) type(2)
Search for id:(ff 18) interleave(4) type(1)
Search for id:(ff 18) interleave(4) type(1)
Search for id:(90 18) interleave(4) type(1)
JEDEC: Found no Flash device at location zero
MBVanilla ram probe(0x800c0d8c,651264,4): 9f000 at 800c0d8c
Creating 1 MTD partitions on
"RAM":
0x00000000-0x0009f000 : "Romfs"
VFS: Mounted root (romfs filesystem) readonly.
Freeing unused kernel memory: 32K freed
Shell invoked to run file: /etc/rc
Command: hostname mbvanilla
Command: /bin/expand /etc/ramfs.img /dev/ram0
Command: /bin/expand /etc/ramfs.img /dev/ram1
Command: mount -t proc proc /proc
mount: /etc/mtab: Read-only file system
Command: mount -t ext2 /dev/ram0 /var
mount: /etc/mtab: Read-only file system
Command: mount -t ext2 /dev/ram1 /usr
mount: /etc/mtab: Read-only file system
Command: mkdir /var/tmp
Command: mkdir /var/log
Command: mkdir /var/run
Command: mkdir /var/lock
Command: #/bin/flatfsd -r
Command: cat /etc/motd
Welcome to
____ _ _
_ _ / ___| (_)_ __ _ _ _ _
| | | | | | | | '_ \| | | < \/ >
| |_| | |___| | | | | | |_| |> <
| __,_|\____|_|_|_| |_|\__,_/_/\_>
|_)
on Microblaze.
This is a demo. See /etc/README for info.
Bug repo!
rts,
comments and offers of help are welcome!
John Williams
http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Execution Finished, Exiting
Sash command shell (version 1.1.1)
/> ls
***************************************************************************
Mailing list image.bin
Linux version 2.4.27-uc0 (jwilliam@g435-9029) (gcc version 2.95.3-4 Xilinx
EDK 6.2.1 Build EDK_Gm.12.3) #2 Thu Oct 7 19:49:48 EST 2004
On node 0 totalpages: 2048
zone(0): 2048 pages.
zone(1): 0 pages.
zone(2): 0 pages.
CPU: MICROBLAZE
Console: xmbserial on UARTLite
Kernel command line:
Calibrating delay loop... 1.95 BogoMIPS
Memory: 8MB = 8MB total
Memory: 6336KB available (1084K code, 674K data, 44K init)
Dentry cache hash table entries: 1024 (order: 1, 8192 bytes)
Inode cache hash table entries: 512 (order: 0, 4096 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffe!
r cache
hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 2048 (order: 1, 8192 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 0xffff2000 (irq = 1) is a Microblaze UARTlite
ttyS1 at 0xffff4000 (irq = 2) is a Microblaze UARTlite
Starting kswapd
xgpio #0 at 0xFFFF5000 mapped to 0xFFFF5000
Xilinx GPIO registered
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
eth0: Xilinx EMAC #0 at 0xC0000000 mapped to 0xC0000000, irq=3
uclinux[mtd]: RAM probe address=0x801495cc size=0x6f000
uclinux[mtd]: root filesystem index=0
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 512 bind 512)
NET4: Unix domain sockets 1.0/SM!
P for
Linux NET4.0.
VFS: Mounted root (romfs filesystem) readonly.
Freeing init memory: 44K
Shell invoked to run file: /etc/rc
Command: hostname microblaze1
Command: ifconfig lo 127.0.0.1
Command: ifconfig eth0 192.168.1.1
Command: /bin/expand /etc/ramfs.img /dev/ram0
Command: /bin/expand /etc/ramfs.img /dev/ram1
eth0: Link carrier lost.
Command: mount -t proc proc /proc
Command: mount -t ext2 /dev/ram0 /var
Command: mount -t ext2 /dev/ram1 /usr
Command: portmap &
[17]
Command: mkdir /var/tmp
Command: mkdir /var/log
Command: mkdir /var/run
Command: mkdir /var/lock
Command: cat /etc/motd
Welcome to
____ _ _
_ _ / ___| (_)_ __ _ _ _ _
| | | | | | | | '_ \| | | < \/ >
| |_| | |___| | | | | | |_| |> <
| __,_|\____|_|_|_| |_|\__,_/_/\_>
|_)
on Microblaze.
http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Execution Finished, Exiting
Sash command shell (version
1.1.1)
/>
*************************************************************************
From my attempt to duplicate mailing list image.bin
Linux version 2.4.27-uc1 (microblaze@debian) (gcc version 2.95.3-4 Xilinx
EDK 6.2.1 Build EDK_Gm.12.3) #1 Mon Jan 10 07:46:44 EST 2005
On node 0 totalpages: 2048
zone(0): 2048 pages.
zone(1): 0 pages.
zone(2): 0 pages.
CPU: MICROBLAZE
Console: xmbserial on UARTLite
Kernel command line:
Calibrating delay loop... 32.97 BogoMIPS
Memory: 8MB = 8MB total
Memory: 6284KB available (1116K code, 694K data, 44K init)
Dentry cache hash table entries: 1024 (order: 1, 8192 bytes)
Inode cache hash table entries: 512 (order: 0, 4096 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: 2048 (order: 1, 8192 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 0xffff2000 (irq = 1) is a Microblaze UARTlite
ttyS1 at 0xffff4000 (irq = 2) is a Microblaze UARTlite
Starting kswapd
xgpio #0 at 0xFFFF5000 mapped to 0xFFFF5000
Xilinx GPIO registered
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
eth0: Xilinx EMAC #0 at 0xC0000000 mapped to 0xC0000000, irq=3
MBVanilla flash probe(0xff000000,8388608,4): 800000 at ff000000
CFI: Found no Flash device at location zero
Search for id:(ff d018) interleave(2) type(2)
Search for id:(ff d018) interleave(2) type(2)
Search for id:(90 d018) interleave(2) type(2)
Search for id:(ff ff) interleave(2) type(1)
Search for id:(ff ff) interleave(2) type(1)
Search for id:(90 90) interleave(2) type(1)
Search for id:(ffff b4d4) interleave(4) type(2)
Search for id:(ffff b4d4) interleave(4)
type(2)
Search for id:(9090 b4d4) interleave(4) type(2)
Search for id:(ff 18) interleave(4) type(1)
Search for id:(ff 18) interleave(4) type(1)
Search for id:(90 18) interleave(4) type(1)
JEDEC: Found no Flash device at location zero
MBVanilla ram probe(0x8015164c,475136,4): 74000 at 8015164c
Creating 1 MTD partitions on "RAM":
0x00000000-0x00074000 : "Romfs"
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 512 bind 512)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (romfs filesystem) readonly.
Freeing init memory: 44K
Shell invoked to run file: /etc/rc
Command: hostname microblaze1
Command: ifconfig lo 127.0.0.1
Command: ifconfig eth0 192.168.1.1
Command: /bin/expand /etc/ramfs.img /dev/ram0
kernel BUG at
sched.c:562!
*******************************************************************
All default image.bin
Linux version 2.4.27-uc1 (microblaze@debian) (gcc version 2.95.3-4 Xilinx
EDK 6.2.1 Build EDK_Gm.12.3) #1 Mon Jan 10 07:11:39 EST 2005
On node 0 totalpages: 8192
zone(0): 8192 pages.
zone(1): 0 pages.
zone(2): 0 pages.
CPU: MICROBLAZE
Console: xmbserial on UARTLite
Kernel command line:
Calibrating delay loop... 32.97 BogoMIPS
Memory: 32MB = 32MB total
Memory: 30596KB available (1116K code, 694K data, 44K 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 Univ!
ersity
Computer Society NET3.039
Initializing RT netlink socket
Microblaze UARTlite serial driver version 1.00
ttyS0 at 0xffff2000 (irq = 1) is a Microblaze UARTlite
ttyS1 at 0xffff4000 (irq = 2) is a Microblaze UARTlite
Starting kswapd
xgpio #0 at 0xFFFF5000 mapped to 0xFFFF5000
Xilinx GPIO registered
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
eth0: Xilinx EMAC #0 at 0xC0000000 mapped to 0xC0000000, irq=3
MBVanilla flash probe(0xff000000,8388608,4): 800000 at ff000000
CFI: Found no Flash device at location zero
Search for id:(ff d018) interleave(2) type(2)
Search for id:(ff d018) interleave(2) type(2)
Search for id:(90 d018) interleave(2) type(2)
Search for id:(ff ff) interleave(2) type(1)
Search for id:(ff ff) interleave(2) type(1)
Search for id:(90 90) interleave(2) type(1)
Search for id:(ffff b4d4) interleave(4) type(2)
Search for id:(ffff b4d4) interleave(4) type(2)
Search for id:(9090 b4d4)
interleave(4) type(2)
Search for id:(ff 18) interleave(4) type(1)
Search for id:(ff 18) interleave(4) type(1)
Search for id:(90 18) interleave(4) type(1)
JEDEC: Found no Flash device at location zero
MBVanilla ram probe(0x8015164c,475136,4): 74000 at 8015164c
Creating 1 MTD partitions on "RAM":
0x00000000-0x00074000 : "Romfs"
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 2048)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (romfs filesystem) readonly.
Freeing init memory: 44K
Shell invoked to run file: /etc/rc
Command: hostname microblaze1
Command: ifconfig lo 127.0.0.1
Command: ifconfig eth0 192.168.0.77
Command: /bin/expand /etc/ramfs.img /dev/ram0
eth0: Link carrier lost.
___________________________
microblaze-uclinux mailing
list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/