[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] mb_vanilla can't run kernel image



John Williams wrote:

> Hi Aaron,
>
> Aaron Rasmussen wrote:
>
>>> Is this a stock standard mbvanilla_net on an Insight v2mb1000 
>>> board?  Or have you ported it across to a new board?
>>>
>>> Also, just make sure your kernel tree is up to date with CVS, and 
>>> you've applied at least the critical patch from the website.  Ensure 
>>> you have the latest toolchain as well.
>>
>>
>> Yes, we are using Insight v2mb1000 board with the mbvanilla_net 
>> target. The only change we made to it was to delete some lines that 
>> caused problems in etc/download.cmd. That file now looks like this:
>
>
> [snip]
>
> hmm, that's odd.  Those download commands shouldn't make any difference.
>
> I've attached a compressed image.bin that resulted from the fresh make 
> I did yesterday - can you try it on your board and see if it works 
> (don't forget to gunzip it first!). Might help us to isolate the cause 
> of your difficulties.
>
> Cheers,
>
> John

I tried this a few times, and it never worked very well.
First I ran it via the bootloader included with mb_vanilla. It acted the 
same as the kernel I built, freezing just after "portmap &" possibly 
when it tried to run a mkdir command.

Second time I ran it by typing in "con 0x80000000" in xmd. It came back 
with some memory related errors (can't allocate memory for 3 or 4 
commands like cat) but it did bring up a shell prompt. I typed in "ls" 
and it froze.

Third try I plugged in a live ethernet cable before typing con 
0x800000000. It didn't bring up a shell and looked like it was caught in 
an infinite loop in the eth0 driver. I've attatched the bootlog from 
this attempt. It also had memory problems like "Unable to read 
code+data+bss."

With a crossover cable connected to my PC, I got output similar to try 
2. That output is also attatched...

I'm going to try this on some different boards when I get time later 
today or tomorrow.

Cheers,

Aaron
Linux version 2.4.24-uc0 (jwilliam@g435-9029) (gcc version 2.95.3-4 Xilinx EDK 6.1 Build EDK_G.11) #2 Thu Mar 18 07:57:02 EST 2004
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... 33.07 BogoMIPS
Memory: 30640K/32768K available (1097K kernel code, 229K data)
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 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: No PHY detected.  Assuming a PHY at address 0.
eth0: Xilinx EMAC #0 at 0xC0000000 mapped to 0xC0000000, irq=3
MBVanilla flash probe(0xff000000,8388608,4): 800000 at ff000000
 Amd/Fujitsu Extended Query Table v1.1 at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling fast programming due to code brokenness.
Creating 8 MTD partitions on "Flash":
0x00000000-0x00020000 : "Bootloader"
0x00020000-0x00040000 : "Bootargs"
0x00040000-0x00060000 : "MAC"
0x00080000-0x00100000 : "Config"
0x00060000-0x00080000 : "Spare"
0x00100000-0x00300000 : "Image"
0x00300000-0x00800000 : "JFFS2"
0x00000000-0x00800000 : "Flash"
MBVanilla ram probe(0x8014d5b0,450560,4): 6e000 at 8014d5b0
Creating 1 MTD partitions on "RAM":
0x00000000-0x0006e000 : "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 unused kernel memory: 40K freed
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
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
Unable to read code+data+bss, errno 8
Unable to read code+data+bss, errno 8
Allocation of length 16 from process 19 failed
Buffer memory:      236kB
Cache memory:      696kB
Free pages:       28520kB (     0kB HighMem)
Zone:DMA freepages: 28520kB
Zone:Normal freepages:     0kB
Zone:HighMem freepages:     0kB
( Active: 84, inactive: 149, free: 7130 )
0*4kB 1*8kB 0*16kB 1*32kB 1*64kB 0*128kB 1*256kB 1*512kB 1*1024kB 13*2048kB = 28520kB)
= 0kB)
= 0kB)
eth0: device error 8, resetting device.
eth0: device error 8, resetting device.
eth0: device error 8, resetting device.
eth0: device error 8, resetting device.
eth0: device error 8, resetting device.
eth0: device error 8, resetting device.
eth0: device error 8, resetting device.
eth0: device error 8, resetting device.
eth0: device error 8, resetting device.
eth0: device error 8, resetting device.
eth0: device error 8, resetting device.
eth0: device error 8, resetting device.
eth0: device error 8, resetting device.
Linux version 2.4.24-uc0 (jwilliam@g435-9029) (gcc version 2.95.3-4 Xilinx EDK 6.1 Build EDK_G.11) #2 Thu Mar 18 07:57:02 EST 2004
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... 33.07 BogoMIPS
Memory: 30640K/32768K available (1097K kernel code, 229K data)
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 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
 Amd/Fujitsu Extended Query Table v1.1 at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling fast programming due to code brokenness.
Creating 8 MTD partitions on "Flash":
0x00000000-0x00020000 : "Bootloader"
0x00020000-0x00040000 : "Bootargs"
0x00040000-0x00060000 : "MAC"
0x00080000-0x00100000 : "Config"
0x00060000-0x00080000 : "Spare"
0x00100000-0x00300000 : "Image"
0x00300000-0x00800000 : "JFFS2"
0x00000000-0x00800000 : "Flash"
MBVanilla ram probe(0x8014d5b0,450560,4): 6e000 at 8014d5b0
Creating 1 MTD partitions on "RAM":
0x00000000-0x0006e000 : "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 unused kernel memory: 40K freed
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
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 /vAllocation of length 4 from process 8 failed
Buffer memory:      232kB
Cache memory:      700kB
Free pages:       28528kB (     0kB HighMem)
Zone:DMA freepages: 28528kB
Zone:Normal freepages:     0kB
Zone:HighMem freepages:     0kB
( Active: 84, inactive: 149, free: 7132 )
0*4kB 2*8kB 0*16kB 1*32kB 1*64kB 0*128kB 1*256kB 1*512kB 1*1024kB 13*2048kB = 28528kB)
= 0kB)
= 0kB)
ar/run
Allocation of tblock for 196722 byte allocation from process 20 failed
Buffer memory:      232kB
Cache memory:      700kB
Free pages:       28516kB (     0kB HighMem)
Zone:DMA freepages: 28516kB
Zone:Normal freepages:     0kB
Zone:HighMem freepages:     0kB
( Active: 84, inactive: 149, free: 7129 )
1*4kB 0*8kB 0*16kB 1*32kB 1*64kB 0*128kB 1*256kB 1*512kB 1*1024kB 13*2048kB = 28516kB)
= 0kB)
= 0kB)
Unable to allocate RAM for process text/data, errno 12
munmap of non-mmaped memory by process 20 (mkdir): 80311000
mkdir: InvalAllocation of tblock for 4 byte allocation from process 8 failed
Buffer memory:      236kB
Cache memory:      708kB
Free pages:       28520kB (     0kB HighMem)
Zone:DMA freepages: 28520kB
Zone:Normal freepages:     0kB
Zone:HighMem freepages:     0kB
( Active: 85, inactive: 151, free: 7130 )
2*4kB 2*8kB 1*16kB 0*32kB 1*64kB 0*128kB 1*256kB 1*512kB 1*1024kB 13*2048kB = 28520kB)
= 0kB)
= 0kB)
Allocation of tblock for 4095 byte allocation from process 21 failed
Buffer memory:      236kB
Cache memory:      708kB
Free pages:       28512kB (     0kB HighMem)
Zone:DMA freepages: 28512kB
Zone:Normal freepages:     0kB
Zone:HighMem freepages:     0kB
( Active: 85, inactive: 151, free: 7128 )
2*4kB 1*8kB 1*16kB 0*32kB 1*64kB 0*128kB 1*256kB 1*512kB 1*1024kB 13*2048kB = 28512kB)
= 0kB)
= 0kB)
id argument
Allocation of tblock for 4 byte allocation from process 8 failed
Buffer memory:      236kB
Cache memory:      708kB
Free pages:       28520kB (     0kB HighMem)
Zone:DMA freepages: 28520kB
Zone:Normal freepages:     0kB
Zone:HighMem freepages:     0kB
( Active: 85, inactive: 151, free: 7130 )
2*4kB 2*8kB 1*16kB 0*32kB 1*64kB 0*128kB 1*256kB 1*512kB 1*1024kB 13*2048kB = 28520kB)
= 0kB)
= 0kB)

Command: mkdir /var/lock
mkdir: Cannot allocate memory
Command: cat /etc/motd
Allocation of tblock for 4095 byte allocation from process 22 failed
Buffer memory:      236kB
Cache memory:      708kB
Free pages:       28512kB (     0kB HighMem)
Zone:DMA freepages: 28512kB
Zone:Normal freepages: