FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 11-20-2008, 05:40 AM
David Querbach
 
Default Bug#506280: linux-image-2.6.26-1-versatile won't boot on AB926EJ-S

Package: linux-image-2.6.26-1-versatile
Version: 2.6.26-8
Severity: critical

This kernel won't boot on the ARM Versatile/AB926EJ-S evaluation board.

Initially, we built an nfs-root system using a kernel and cramfs filesystem
from ARM. (You can get this filesystem, kernel and the kernel config file
from http://www.arm.com/products/os/linux_download.html under the "RealView
Versatile PB926/AB926" line in the table of images on that page.)

We then did a complete Debian/lenny install using the method described in
"Installing Debian GNU/Linux from a Unix/Linux System", at
http://www.debian.org/releases/stable/arm/apds03.html.en. After a reboot,
the ARM kernel successfully runs using the Debian/lenny nfs-root filesystem.

We used then used aptitude running under this ARM-kernel/Debian-filesystem
to install the linux-image-2.6.26-1-versatile package.

The AB926EJ-S board uses U-Boot to load the kernel. To set this up, we
first use mkimage from the package uboot-mkimage (running on an x86 desktop
machine) to create U-Boot images from the vmlinuz and initrd.img installed
into the nfs-root by the ARM system:

# mkimage -A arm -O linux -T kernel -C none -a 0x8000 -e 0x8000
-n "vmlinuz-2.6.26-1-versatile" -d /tftpboot/debian/vmlinuz
/tftpboot/uImage

# mkimage -A arm -O linux -T ramdisk -C gzip -a 0x800000 -e 0x800000
-n "initrd.img-2.6.26-1-versatile" -d /tftpboot/debian/initrd.img
/tftpboot/uInitrd

(Addresses in the above are from linux/arch/arm/mach-versatile/Makefile.boot.)

U-Boot is configured as follows:

VersatileAB # printenv
bootdelay=2
baudrate=38400
bootfile="/tftpboot/uImage"
ipaddr=192.168.1.7
serverip=192.168.1.40
bootargs=root=/dev/ram rw mem=128M console=ttyAMA0
bootcmd=tftp 0x7fc0 uImage ; tftp 0x7fffc0 uInitrd ; bootm 0x7fc0 0x7fffc0
stdin=serial
stdout=serial
stderr=serial
verify=n

Environment size: 272/8188 bytes
VersatileAB #

(The tftp target addresses are chosen to place the payload of the U-Boot
images at their run addresses. Loading to different addresses gives the
same results as described below.)

When booting from a hard reset, we see the following (CR's stripped for
clarity):

Reading MCI 0
No card found - Please insert memory card.


ARM AB926EJ-S Boot Monitor
Version: V3.4.2
Build Date: Nov 7 2006
Endian: Little
%BootMonitor-Info, Creating new SYSTEM.DAT
%BootMonitor-Error, Unable to open SYSTEM.DAT

%Flash-Info, Creating new FLASH.DAT
%Flash-Error, Unable to open FLASH.DAT

> flash run u-boot


U-Boot 1.1.5-g58f62f5e-dirty (Nov 2 2006 - 03:06:12)

DRAM: 0 kB
Flash: 64 MB
In: serial
Out: serial
Err: serial
Hit any key to stop autoboot: 2  1  0
Using MAC Address 00:02:F7:00:18:54
TFTP from server 192.168.1.40; our IP address is 192.168.1.7
Filename 'uImage'.
Load address: 0x7fc0
Loading: *################################################ #################
################################################## ###############
################################################## ###############
################################################## ###########
done
Bytes transferred = 1308460 (13f72c hex)
Using MAC Address 00:02:F7:00:18:54
TFTP from server 192.168.1.40; our IP address is 192.168.1.7
Filename 'uInitrd'.
Load address: 0x7fffc0
Loading: *################################################ #################
################################################## ###############
################################################## ###############
################################################## ###############
################################################## ###############
################################################## ###############
################################################## ###############
################################################## ###############
################################################## ###############
################################################## ###############
################################################## ###############
################################################## ###############
################################################## ##########
done
Bytes transferred = 4299935 (419c9f hex)
## Booting image at 00007fc0 ...
Image Name: vmlinuz-2.6.26-1-versatile
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1308396 Bytes = 1.2 MB
Load Address: 00008000
Entry Point: 00008000
OK
## Loading Ramdisk Image at 007fffc0 ...
Image Name: initrd.img-2.6.26-1-versatile
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 4299871 Bytes = 4.1 MB
Load Address: 00800000
Entry Point: 00800000

Starting kernel ...

Uncompressing Linux............................................. ......................................... done, booting the kernel.

Then nothing further from the kernel either on the console or on the
ethernet port.

One interesting thing of note: CONFIG_VERSATILE is _not_ set in the config
file for this kernel, which seems contrary to expectations.

Any assistance with this problem would be greatly appreciated. The hardware
can be made available for testing via ssh if that would be of help.

Regards,

David Querbach
Real-Time Systems Inc.



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 11-20-2008, 05:57 AM
Martin Michlmayr
 
Default Bug#506280: linux-image-2.6.26-1-versatile won't boot on AB926EJ-S

* David Querbach <querbach@realtime.bc.ca> [2008-11-19 22:40]:
> Package: linux-image-2.6.26-1-versatile
> Version: 2.6.26-8
>
> This kernel won't boot on the ARM Versatile/AB926EJ-S evaluation board.

Aurelien, can you comment/take a look.

> Initially, we built an nfs-root system using a kernel and cramfs filesystem
> from ARM. (You can get this filesystem, kernel and the kernel config file
> from http://www.arm.com/products/os/linux_download.html under the "RealView
> Versatile PB926/AB926" line in the table of images on that page.)
>
> We then did a complete Debian/lenny install using the method described in
> "Installing Debian GNU/Linux from a Unix/Linux System", at
> http://www.debian.org/releases/stable/arm/apds03.html.en. After a reboot,
> the ARM kernel successfully runs using the Debian/lenny nfs-root filesystem.
>
> We used then used aptitude running under this ARM-kernel/Debian-filesystem
> to install the linux-image-2.6.26-1-versatile package.
>
> The AB926EJ-S board uses U-Boot to load the kernel. To set this up, we
> first use mkimage from the package uboot-mkimage (running on an x86 desktop
> machine) to create U-Boot images from the vmlinuz and initrd.img installed
> into the nfs-root by the ARM system:
>
> # mkimage -A arm -O linux -T kernel -C none -a 0x8000 -e 0x8000
> -n "vmlinuz-2.6.26-1-versatile" -d /tftpboot/debian/vmlinuz
> /tftpboot/uImage
>
> # mkimage -A arm -O linux -T ramdisk -C gzip -a 0x800000 -e 0x800000
> -n "initrd.img-2.6.26-1-versatile" -d /tftpboot/debian/initrd.img
> /tftpboot/uInitrd
>
> (Addresses in the above are from linux/arch/arm/mach-versatile/Makefile.boot.)
>
> U-Boot is configured as follows:
>
> VersatileAB # printenv
> bootdelay=2
> baudrate=38400
> bootfile="/tftpboot/uImage"
> ipaddr=192.168.1.7
> serverip=192.168.1.40
> bootargs=root=/dev/ram rw mem=128M console=ttyAMA0
> bootcmd=tftp 0x7fc0 uImage ; tftp 0x7fffc0 uInitrd ; bootm 0x7fc0 0x7fffc0
> stdin=serial
> stdout=serial
> stderr=serial
> verify=n
>
> Environment size: 272/8188 bytes
> VersatileAB #
>
> (The tftp target addresses are chosen to place the payload of the U-Boot
> images at their run addresses. Loading to different addresses gives the
> same results as described below.)
>
> When booting from a hard reset, we see the following (CR's stripped for
> clarity):
>
> Reading MCI 0
> No card found - Please insert memory card.
>
>
> ARM AB926EJ-S Boot Monitor
> Version: V3.4.2
> Build Date: Nov 7 2006
> Endian: Little
> %BootMonitor-Info, Creating new SYSTEM.DAT
> %BootMonitor-Error, Unable to open SYSTEM.DAT
>
> %Flash-Info, Creating new FLASH.DAT
> %Flash-Error, Unable to open FLASH.DAT
>
> > flash run u-boot
>
>
> U-Boot 1.1.5-g58f62f5e-dirty (Nov 2 2006 - 03:06:12)
>
> DRAM: 0 kB
> Flash: 64 MB
> In: serial
> Out: serial
> Err: serial
> Hit any key to stop autoboot: 2  1  0
> Using MAC Address 00:02:F7:00:18:54
> TFTP from server 192.168.1.40; our IP address is 192.168.1.7
> Filename 'uImage'.
> Load address: 0x7fc0
> Loading: *################################################ #################
> ################################################## ###############
> ################################################## ###############
> ################################################## ###########
> done
> Bytes transferred = 1308460 (13f72c hex)
> Using MAC Address 00:02:F7:00:18:54
> TFTP from server 192.168.1.40; our IP address is 192.168.1.7
> Filename 'uInitrd'.
> Load address: 0x7fffc0
> Loading: *################################################ #################
> ################################################## ###############
> ################################################## ###############
> ################################################## ###############
> ################################################## ###############
> ################################################## ###############
> ################################################## ###############
> ################################################## ###############
> ################################################## ###############
> ################################################## ###############
> ################################################## ###############
> ################################################## ###############
> ################################################## ##########
> done
> Bytes transferred = 4299935 (419c9f hex)
> ## Booting image at 00007fc0 ...
> Image Name: vmlinuz-2.6.26-1-versatile
> Image Type: ARM Linux Kernel Image (uncompressed)
> Data Size: 1308396 Bytes = 1.2 MB
> Load Address: 00008000
> Entry Point: 00008000
> OK
> ## Loading Ramdisk Image at 007fffc0 ...
> Image Name: initrd.img-2.6.26-1-versatile
> Image Type: ARM Linux RAMDisk Image (gzip compressed)
> Data Size: 4299871 Bytes = 4.1 MB
> Load Address: 00800000
> Entry Point: 00800000
>
> Starting kernel ...
>
> Uncompressing Linux............................................. ......................................... done, booting the kernel.
>
> Then nothing further from the kernel either on the console or on the
> ethernet port.
>
> One interesting thing of note: CONFIG_VERSATILE is _not_ set in the config
> file for this kernel, which seems contrary to expectations.
>
> Any assistance with this problem would be greatly appreciated. The hardware
> can be made available for testing via ssh if that would be of help.
>
> Regards,
>
> David Querbach
> Real-Time Systems Inc.
>
>
>
> --
> To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

--
Martin Michlmayr
http://www.cyrius.com/



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 11-20-2008, 05:58 AM
Martin Michlmayr
 
Default Bug#506280: linux-image-2.6.26-1-versatile won't boot on AB926EJ-S

* David Querbach <querbach@realtime.bc.ca> [2008-11-19 22:40]:
> One interesting thing of note: CONFIG_VERSATILE is _not_ set in the config
> file for this kernel, which seems contrary to expectations.

The option is called CONFIG_ARCH_VERSATILE as well as
CONFIG_ARCH_VERSATILE_PB and CONFIG_MACH_VERSATILE_AB, and these are
set.
--
Martin Michlmayr
http://www.cyrius.com/



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 11-20-2008, 06:02 AM
David Querbach
 
Default Bug#506280: linux-image-2.6.26-1-versatile won't boot on AB926EJ-S

On Thu, Nov 20, 2008 at 07:58:15AM +0100, Martin Michlmayr wrote:

> * David Querbach <querbach@realtime.bc.ca> [2008-11-19 22:40]:
> > One interesting thing of note: CONFIG_VERSATILE is _not_ set in the config
> > file for this kernel, which seems contrary to expectations.
>
> The option is called CONFIG_ARCH_VERSATILE as well as
> CONFIG_ARCH_VERSATILE_PB and CONFIG_MACH_VERSATILE_AB, and these are
> set.

Sorry, my mistake. Must have been something else I was looking at.

Regards,

David Querbach
Real-Time Systems Inc.



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 12-26-2008, 02:46 PM
Martin Michlmayr
 
Default Bug#506280: linux-image-2.6.26-1-versatile won't boot on AB926EJ-S

David,

* David Querbach <querbach@realtime.bc.ca> [2008-11-19 22:40]:
> This kernel won't boot on the ARM Versatile/AB926EJ-S evaluation board.

What I forgot to mention in my last email was that nobody at Debian
actually has a Versatile board. We only added the versatile flavour
for QEMU, but we don't have any actual hardware to test the kernel...

So I suggest you try the mainline kernel to see if that works. If
that works, we can try to figure out why our kernel doesn't.
--
Martin Michlmayr
http://www.cyrius.com/



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 04:05 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org