linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* linux 2.6 boot failure with rfs installed in the flash disk (xupv2p + ppc)
@ 2008-11-03 16:39 saadia dhouib
  2008-11-03 18:27 ` saadia dhouib
  0 siblings, 1 reply; 3+ messages in thread
From: saadia dhouib @ 2008-11-03 16:39 UTC (permalink / raw)
  To: linuxppc-embedded


Hi all,

After booting successfully the kernel with the ramdisk, I tried to boot the
kernel with a root file system installed on the third partition of the flas=
h
disk.=20
Partition 1: Type =3D FAT16, Size =3D 32Mbyte
Partition 2 : Type =3D Linux Swap, Size =3D 256Mbyte
partition 3: Type=3DLinux, Size =3D 950 Mbyte

I installed the filesystem (using BusyBox 1.12.1, and the script mkrootfs.s=
h
written by Wofgang Klingauf), and I configured the kernel to support xsysac=
e
driver.

I changed bootargs to "console=3DttyUL0,9600 root=3D/dev/xsa3 rw"; /* it wa=
s
console=3DttyS0, root=3D/dev/ram rw*/

I rebooted the kernel, it stops after "Warning: unable to open an initial
console."

The output of the console is as follows:

***************************************************************************=
**************
zImage starting: loaded at 0x00400000 (sp: 0x0059eefc)
Allocating 0x377124 bytes for kernel ...
gunzipping (0x00000000 <- 0x0040c000:0x0059d133)...done 0x3545e8 bytes

Linux/PowerPC load: console=3DttyUL0,9600 root=3D/dev/xsa3 rw
Finalizing device tree... flat tree at 0x40ae18
Using Xilinx Virtex machine description
Linux version 2.6.27-rc9 (dhouib@lo-lester-030) (gcc version 3.4.5) #29
PREEMPT Mon Nov 3 16:23:09 CET 2008
Zone PFN ranges:
  DMA      0x00000000 -> 0x00010000
  Normal   0x00010000 -> 0x00010000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00010000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
Kernel command line: console=3DttyUL0,9600 root=3D/dev/xsa3 rw
Xilinx intc at 0x41200000 mapped to 0xfdfff000
PID hash table entries: 1024 (order: 10, 4096 bytes)
clocksource: timebase mult[d55555] shift[22] registered
Console: colour dummy device 80x25
console [ttyUL0] enabled
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 256000k/262144k available (3256k kernel code, 5832k reserved, 128k
data, 136k bss, 160k init)
Calibrating delay loop... 598.01 BogoMIPS (lpj=3D1196032)
Mount-cache hash table entries: 512
net_namespace: 756 bytes
NET: Registered protocol family 16
PCI: Probing PCI hardware
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
NET: Registered protocol family 1
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
msgmni has been set to 500
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver4 ports, IRQ sharing disabled
40600000.serial: ttyUL0 at MMIO 0x40600003 (irq =3D 16) is a uartlite
brd: module loaded
loop: module loaded
xsysace 41800000.sysace: Xilinx SystemACE revision 1.0.12
xsysace 41800000.sysace: capacity: 3940272 sectors
 xsa: xsa1 xsa2 xsa3
Xilinx SystemACE device driver, major=3D254
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 160k init
Warning: unable to open an initial console.
=20

*******************************************************************

I made a search in the net and I have found in (
http://rm-rfroot.net/files/courses/xupv2p/docs/carithers/report.pdf) that:
If we do not include the option to automatically mount the =E2=80=98/dev=E2=
=80=99 file
system, the init process will not be able to open a terminal since =E2=80=
=98console=E2=80=99
is listed in =E2=80=98/dev=E2=80=99 as a device.=20

But there was no option in the kernel config that enable /dev Automatically
mount at boot.

=20

My questions are:

1. can i configure the kernel to automatically mount /dev at boot?

2. how can I configure correctly the ram size (the default options
virtex4_defconfig are: CONFIG_BLK_DEV_RAM_COUNT=3D16
CONFIG_BLK_DEV_RAM_SIZE=3D8192). But I have an SDRAM of 256 Megabytes size.

=20

Thanks=20

Saadia

--=20
View this message in context: http://www.nabble.com/linux-2.6-boot-failure-=
with-rfs-installed-in-the-flash-disk-%28xupv2p-%2B-ppc%29-tp20306038p203060=
38.html
Sent from the linuxppc-embedded mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: linux 2.6 boot failure with rfs installed in the flash disk (xupv2p + ppc)
  2008-11-03 16:39 linux 2.6 boot failure with rfs installed in the flash disk (xupv2p + ppc) saadia dhouib
@ 2008-11-03 18:27 ` saadia dhouib
  2008-11-04 14:29   ` Grant Likely
  0 siblings, 1 reply; 3+ messages in thread
From: saadia dhouib @ 2008-11-03 18:27 UTC (permalink / raw)
  To: linuxppc-embedded


Finally I created a node for ttyUL0 in /dev
mknod /dev/ttyUL0 c 5 0
mknod /dev/console c 5 1

Then I modified /etc/inittab (from klingauf mkrootfs), I replaced the line
:12345:respawn:/sbin/getty 9600 tts/0
by 
ttyUL0:12345:respawn:/sbin/getty -L ttyUL0 9600 vt100

Then I rebooted the kernel, and there were errors:

zImage starting: loaded at 0x00400000 (sp: 0x0059eefc)
Allocating 0x377124 bytes for kernel ...
gunzipping (0x00000000 <- 0x0040c000:0x0059d133)...done 0x3545e8 bytes

Linux/PowerPC load: console=ttyUL0,9600 root=/dev/xsa3 rw
Finalizing device tree... flat tree at 0x40ae18
Using Xilinx Virtex machine description
Linux version 2.6.27-rc9 (dhouib@lo-lester-030) (gcc version 3.4.5) #29
PREEMPT Mon Nov 3 16:23:09 CET 2008
Zone PFN ranges:
  DMA      0x00000000 -> 0x00010000
  Normal   0x00010000 -> 0x00010000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00010000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
Kernel command line: console=ttyUL0,9600 root=/dev/xsa3 rw
Xilinx intc at 0x41200000 mapped to 0xfdfff000
PID hash table entries: 1024 (order: 10, 4096 bytes)
clocksource: timebase mult[d55555] shift[22] registered
Console: colour dummy device 80x25
console [ttyUL0] enabled
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 256000k/262144k available (3256k kernel code, 5832k reserved, 128k
data, 136k bss, 160k init)
Calibrating delay loop... 598.01 BogoMIPS (lpj=1196032)
Mount-cache hash table entries: 512
net_namespace: 756 bytes
NET: Registered protocol family 16
PCI: Probing PCI hardware
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
NET: Registered protocol family 1
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
msgmni has been set to 500
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver4 ports, IRQ sharing disabled
40600000.serial: ttyUL0 at MMIO 0x40600003 (irq = 16) is a uartlite
brd: module loaded
loop: module loaded
xsysace 41800000.sysace: Xilinx SystemACE revision 1.0.12
xsysace 41800000.sysace: capacity: 3940272 sectors
 xsa: xsa1 xsa2 xsa3
Xilinx SystemACE device driver, major=254
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 160k init
xsysace 41800000.sysace: kicking stalled fsm; state=8 task=2 iter=12 dc=128
xsysace 41800000.sysace: kicking stalled fsm; state=8 task=2 iter=12 dc=128
xsysace 41800000.sysace: transfer failure
xsysace 41800000.sysace:     ctrl:  0000038a  seccnt/cmd: 0308      ver:100c
    status:0017e31a  mpu_lba:001f91e5  busmode:   1
    error: 00000014  cfg_lba:00000000  fatstat:0000
xsysace 41800000.sysace: transfer failure
xsysace 41800000.sysace:     ctrl:  0000038a  seccnt/cmd: 0308      ver:100c
    status:0017e31a  mpu_lba:001f91e5  busmode:   1
    error: 00000014  cfg_lba:00000000  fatstat:0000
xsysace 41800000.sysace: kicking stalled fsm; state=8 task=2 iter=12 dc=128
xsysace 41800000.sysace: kicking stalled fsm; state=8 task=2 iter=12 dc=128
xsysace 41800000.sysace: kicking stalled fsm; state=8 task=2 iter=12 dc=128
xsysace 41800000.sysace: kicking stalled fsm; state=8 task=2 iter=12 dc=128
xsysace 41800000.sysace: kicking stalled fsm; state=8 task=2 iter=12 dc=128
xsysace 41800000.sysace: kicking stalled fsm; state=8 task=2 iter=12 dc=128
xsysace 41800000.sysace: kicking stalled fsm; state=8 task=2 iter=12 dc=128



Could someone help me please?
Thanks


-- 
View this message in context: http://www.nabble.com/linux-2.6-boot-failure-with-rfs-installed-in-the-flash-disk-%28xupv2p-%2B-ppc%29-tp20306038p20307909.html
Sent from the linuxppc-embedded mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: linux 2.6 boot failure with rfs installed in the flash disk (xupv2p + ppc)
  2008-11-03 18:27 ` saadia dhouib
@ 2008-11-04 14:29   ` Grant Likely
  0 siblings, 0 replies; 3+ messages in thread
From: Grant Likely @ 2008-11-04 14:29 UTC (permalink / raw)
  To: saadia dhouib; +Cc: linuxppc-embedded

On Mon, Nov 3, 2008 at 11:27 AM, saadia dhouib <saadia_dhouib@yahoo.fr> wrote:
>
> Finally I created a node for ttyUL0 in /dev
> mknod /dev/ttyUL0 c 5 0
> mknod /dev/console c 5 1
>
> Then I modified /etc/inittab (from klingauf mkrootfs), I replaced the line
> :12345:respawn:/sbin/getty 9600 tts/0
> by
> ttyUL0:12345:respawn:/sbin/getty -L ttyUL0 9600 vt100
>
> Then I rebooted the kernel, and there were errors:
>
> xsysace 41800000.sysace: kicking stalled fsm; state=8 task=2 iter=12 dc=128
> xsysace 41800000.sysace: kicking stalled fsm; state=8 task=2 iter=12 dc=128
> xsysace 41800000.sysace: transfer failure
> xsysace 41800000.sysace:     ctrl:  0000038a  seccnt/cmd: 0308      ver:100c
>    status:0017e31a  mpu_lba:001f91e5  busmode:   1
>    error: 00000014  cfg_lba:00000000  fatstat:0000
> xsysace 41800000.sysace: transfer failure
> xsysace 41800000.sysace:     ctrl:  0000038a  seccnt/cmd: 0308      ver:100c
>    status:0017e31a  mpu_lba:001f91e5  busmode:   1
>    error: 00000014  cfg_lba:00000000  fatstat:0000
> xsysace 41800000.sysace: kicking stalled fsm; state=8 task=2 iter=12 dc=128
> xsysace 41800000.sysace: kicking stalled fsm; state=8 task=2 iter=12 dc=128
> xsysace 41800000.sysace: kicking stalled fsm; state=8 task=2 iter=12 dc=128
> xsysace 41800000.sysace: kicking stalled fsm; state=8 task=2 iter=12 dc=128
> xsysace 41800000.sysace: kicking stalled fsm; state=8 task=2 iter=12 dc=128
> xsysace 41800000.sysace: kicking stalled fsm; state=8 task=2 iter=12 dc=128
> xsysace 41800000.sysace: kicking stalled fsm; state=8 task=2 iter=12 dc=128

The sysace device can very easily get wedged up and the current driver
doesn't handle it very gracefully.  Usually the problem is seen if the
board gets reset mid-transaction (which looks a little bid different
from what you've got here; but is probably related).  The problem
should be solvable, but I haven't been able to spend any time working
on it recently.  You'll need to dig into the sysace documentation and
figure out what the status/ctrl registers mean to find out why it is
wedged up and see if you can teach the driver to work around it.

g.

>
>
>
> Could someone help me please?
> Thanks
>
>
> --
> View this message in context: http://www.nabble.com/linux-2.6-boot-failure-with-rfs-installed-in-the-flash-disk-%28xupv2p-%2B-ppc%29-tp20306038p20307909.html
> Sent from the linuxppc-embedded mailing list archive at Nabble.com.
>
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>



-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-11-04 14:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-03 16:39 linux 2.6 boot failure with rfs installed in the flash disk (xupv2p + ppc) saadia dhouib
2008-11-03 18:27 ` saadia dhouib
2008-11-04 14:29   ` Grant Likely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).