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

[microblaze-uclinux] Creating 2.6 kernel on Spartan 3E500 under EDK 8.1



Hi,

I've worked on trying to get petalinux working on my Spartan 3E500 RevD starter kit.

I'm running a CentOS 3 system with VMware under windows. The problem I'm having is that for some reason the kernel wont boot up after completed download. I followed the guide for the Spartan 3E500 RevC and using the reference design followed with the petalinux-v0.20-rc3.tar.gz download from the site. I can create the hardware just fine and I've tested the kernel files prebuilt for this board (which also is included in the petalinux package). If I use the included kernel image the system boots up just fine no problem at all. But when I try to create my own kernel using the included scripts as followed the guide the system boots but comes to an abrupt halt and stalls. I've looked into if the autoconfig file where copied correctly and it is. The kernel is created with no errors which I can detect and saved in /tftpboot directory.

I'm just getting out of ideas why this happens.

I took a look in the make menuconfig and tried the Customize kernel settings and saved. When I looked into that kernel settings menu I could not find any evidence that the scipt detected my autoconfig file becouse when I looked under the subfolder "Processor type and features-->" there should be the UARTLITE and GPIO option but none of these are there.

I would really appriciate if someone could help me with what could be my problem.

Here below I cut out from kermit what happend when I try to boot the system with the kernel I made using the Spartan 3E500 guide on petalogix site.

Thanks,
Daniel

------------------------------------------------------------------------------

=================================================

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 :

Enabling caches...Icache:OK...Dcache:OK

U-Boot Start:0x23fc0000

Malloc Start:0x23f60000

Board Info Start:0x23f5ffd0

Boot Parameters Start:0x23f4ffd0

FLASH: 16 MB

ETHERNET: MAC:00:0a:35:00:22:01

Hit any key to stop autoboot: 0

U-Boot> setenv ethaddr=

U-Boot> loadb 0x22000000

## Ready for binary (kermit) download to 0x22000000 at 115200 bps...

(Back at localhost.localdomain)

----------------------------------------------------

(/root/petalinux-v0.20-rc3/software/petalinux-dist/) C-Kermit>send /bin /tftpboot/ub.config.img

(/root/petalinux-v0.20-rc3/software/petalinux-dist/) C-Kermit>connect

Connecting to /dev/ttyS0, speed 115200

Escape character: Ctrl-\ (ASCII 28, FS): enabled

Type the escape character followed by C to get back,

or followed by ? to see other options.

----------------------------------------------------

## Total Size = 0x000005c3 = 1475 Bytes

## Start Addr = 0x22000000

U-Boot> autoscr 0x22000000

## Executing script at 22000000

PetaLogix MicroBlaze-Auto Board Configuration

---------------------------------------------

Network Configuration:

MTD Configuration:

Clobber DRAM Configuration:

Bootloader Configuration:

Kernel Configuration:

Boot Configuration:

Saving Configurations...

Saving Environment to Flash...

Un-Protected 2 sectors

Erasing Flash...

.. done

Erased 2 sectors

Writing to Flash... done

Protected 2 sectors

Configuration Completed

U-Boot> loadb 0x22000000

## Ready for binary (kermit) download to 0x22000000 at 115200 bps...

(Back at localhost.localdomain)

----------------------------------------------------

(/root/petalinux-v0.20-rc3/software/petalinux-dist/) C-Kermit>send /bin /tftpboot/u-boot-s.bin

(/root/petalinux-v0.20-rc3/software/petalinux-dist/) C-Kermit>connect

Connecting to /dev/ttyS0, speed 115200

Escape character: Ctrl-\ (ASCII 28, FS): enabled

Type the escape character followed by C to get back,

or followed by ? to see other options.

----------------------------------------------------

## Total Size = 0x00019994 = 104852 Bytes

## Start Addr = 0x22000000

U-Boot> protect off $(bootstart) +$(bootsize)

Un-Protected 2 sectors

U-Boot> erase $(bootstart) +$(bootsize)

.. done

Erased 2 sectors

U-Boot> cp.b 0x22000000 $(bootstat

Usage:

cp - memory copy

U-Boot> cp.b 0x22000000 $(bootstart) $(filesize)

Copy to Flash... done

U-Boot> loadb 0x22000000

## Ready for binary (kermit) download to 0x22000000 at 115200 bps...

(Back at localhost.localdomain)

----------------------------------------------------

(/root/petalinux-v0.20-rc3/software/petalinux-dist/) C-Kermit>send /bin /tftpboot/image.ub

(/root/petalinux-v0.20-rc3/software/petalinux-dist/) C-Kermit>connect

Connecting to /dev/ttyS0, speed 115200

Escape character: Ctrl-\ (ASCII 28, FS): enabled

Type the escape character followed by C to get back,

or followed by ? to see other options.

----------------------------------------------------

## Total Size = 0x004370ef = 4419823 Bytes

## Start Addr = 0x22000000

U-Boot> protect off $(kernstart) +$(kernsize)

Un-Protected 40 sectors

U-Boot> erase $(kernstart) +$(kernsize)

........................................ done

Erased 40 sectors

U-Boot> cp.b $(fileaddr) $(kernstart) $(filesize)#

Usage:

cp - memory copy

U-Boot> cp.b 0x22000000 $(kernstart) $(filesize)

Copy to Flash... done

=================================================

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: Booting image...

SDRAM :

Enabling caches...Icache:OK...Dcache:OK

U-Boot Start:0x23fc0000

Malloc Start:0x23f60000

Board Info Start:0x23f5ffd0

Boot Parameters Start:0x23f4ffd0

FLASH: 16 MB

ETHERNET: MAC:00:0a:35:00:22:01

Hit any key to stop autoboot: 0

## Booting image at 210c0000 ...

Image Name: PetaLinux Kernel 2.6

Image Type: Microblaze Linux Kernel Image (uncompressed)

Data Size: 4419759 Bytes = 4.2 MB

Load Address: 22000000

Entry Point: 22000000

Verifying Checksum ... OK

OK

Found romfs @ 0x2220708c (0x00230000)

#### klimit 2221f000 ####

Moving 0x00230000 bytes from 0x2220708c to 0x2221e994

New klimit: 0x2244f000

Linux version 2.6.20-uc0 (root@xxxxxxxxxxxxxxxxxxxxx) (gcc version 3.4.1 ( PetaLinux 0.20 Build -rc1 050607 )) #1 Fri Sep 7 01:26:29 EDT 2007

setup_cpuinfo: initialising

setup_cpuinfo: No PVR support in CPU. Using static compile-time info

set_cpuinfo_static: Using static CPU info.

setup_memory: max_mapnr: 0x23fff

setup_memory: min_low_pfn: 0x22000

setup_memory: max_low_pfn: 0x2000

On node 0 totalpages: 8192

DMA zone: 64 pages used for memmap

DMA zone: 0 pages reserved

DMA zone: 8128 pages, LIFO batch:0

Normal zone: 0 pages used for memmap

Built 1 zonelists. Total pages: 8128

Kernel command line: mtdparts=physmap-flash.0:256K(boot),256K(bootenv),256K(config),5M(image),10M(spare) macaddr=00:0a:35:00:22:01

OPB INTC #0 at 0x41200000

PID hash table entries: 128 (order: 7, 512 bytes)

Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)

Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)

Memory: 28068k/32768k available

Calibrating delay loop... 24.72 BogoMIPS (lpj=123648)

Mount-cache hash table entries: 512

NET: Registered protocol family 16

NET: Registered protocol family 2

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

TCP established hash table entries: 1024 (order: 0, 4096 bytes)

TCP bind hash table entries: 1024 (order: 0, 4096 bytes)

TCP: Hash tables configured (established 1024 bind 1024)

TCP reno registered

io scheduler noop registered

io scheduler anticipatory registered

io scheduler deadline registered

io scheduler cfq registered (default)

xgpio0 #0 at 0x40000000 mapped to 0x40000000 device: 10,185 not using IRQ

xgpio1 #1 at 0x40020000 mapped to 0x40020000 device: 10,186 not using IRQ

uartlite.0: ttyS0 at MMIO 0x40600000 (irq = 2) is a uartlite

RAMDISK driver initialized: 16 RAM disks of 8192K 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 platform flash device: 01000000 at 21000000

physmap-flash.0: Found 1 x16 devices at 0x0 in 8-bit bank

Intel/Sharp Extended Query Table at 0x0031

Using buffer write method

cfi_cmdset_0001: Erase suspend on write enabled

erase region 0: offset=0x0,size=0x20000,blocks=128

5 cmdlinepart partitions found on MTD device physmap-flash.0

Creating 5 MTD partitions on "physmap-flash.0":

0x00000000-0x00040000 : "boot"

0x00040000-0x00080000 : "bootenv"

0x00080000-0x000c0000 : "config"

0x000c0000-0x005c0000 : "image"

0x005c0000-0x00fc0000 : "spare"

uclinux[mtd]: RAM probe address=0x2221e994 size=0x230000

Creating 1 MTD partitions on "RAM":

0x00000000-0x00230000 : "ROMfs"

uclinux[mtd]: set ROMfs to be root filesystem index=5

i8042.c: i8042 controller self test timeout.

input: Button Keypad as /class/input/input0

Directional Button & Rotary Encoder Driver

(c) 2007 PetaLogix

TCP cubic registered

NET: Registered protocol family 1

VFS: Mounted root (cramfs filesystem) readonly.

Freeing unused kernel memory: 84k freed

Unable to allocate RAM for process text/data, errno 12

Unable to allocate RAM for process text/data, errno 12

Kernel panic - not syncing: No init found. Try passing init= option to kernel.

<0>Rebooting in 120 seconds..Machine restart...

Stack:

23ffbf20 00000000 00000000 0001d228 23ffa000 2201765c 221a6164 0000000b

0000000b 00000000 ffffcd35 00000d35 22008868 22115720 800000a4 800000a4

800000a4 00000000 00000001 22000390 221a6eb8 00000078 22209520 00000000

Call Trace:

[<2201765c>] emergency_restart+0xc/0x20

[<22008868>] panic+0x11c/0x14c

[<22115720>] i8042_panic_blink+0x60/0x108

[<22000390>] init+0x2c4/0x34c

[<220011ac>] kernel_thread_helper+0x10/0x24

[<2200119c>] kernel_thread_helper+0x0/0x24

_________________________________________________________________
Fräscha middagstips på MSN http://arla.msn.se/

___________________________
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/