All of lore.kernel.org
 help / color / mirror / Atom feed
* Unable to get login prompt for Xilinx ML507 PowerPC440 target development board
@ 2012-07-24 17:03 Elvis Dowson
  2012-07-24 19:15 ` McClintock Matthew-B29882
  0 siblings, 1 reply; 6+ messages in thread
From: Elvis Dowson @ 2012-07-24 17:03 UTC (permalink / raw)
  To: Yocto Discussion Mailing List

[-- Attachment #1: Type: text/plain, Size: 5132 bytes --]

Hi,
      I have progressed somewhat further with getting Yocto to build a kernel image and rootfilesystem for the Xilinx ML507 PowerPC440 target development board.

For some reason, I'm unable to get a login prompt. The serial console device is ttyUL0. If someone could help me figure out what's going wrong, it would be great. I have checked /etc/securetty and it does contain an entry for ttyUL0.

Here is the output of the linux boot process:

Using Xilinx Virtex440 machine description                      
Linux version 2.6.38+ (elvis@eos) (gcc version 4.7.2 20120706 (prerelease) (GCC) ) #13 PREEMPT Mon Ju2
Zone PFN ranges:                                                
  DMA      0x00000000 -> 0x00010000
  Normal   empty
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00010000
MMU: Allocated 1088 bytes of context maps for 255 contexts
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
Kernel command line: console=ttyUL0 root=/dev/xsa2 rw rootfstype=ext3
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 254716k/262144k available (3788k kernel code, 7428k reserved, 132k data, 1146k bss, 168k init)
Kernel virtual memory layout:
  * 0xfffdf000..0xfffff000  : fixmap
  * 0xfde00000..0xfe000000  : consistent mem
  * 0xfde00000..0xfde00000  : early ioremap
  * 0xd1000000..0xfde00000  : vmalloc & ioremap
Preemptable hierarchical RCU implementation.
        RCU-based detection of stalled CPUs is disabled.
        Verbose stalled-CPUs detection is disabled.
NR_IRQS:512 nr_irqs:512 16
clocksource: timebase mult[a00000] shift[22] registered
Console: colour dummy device 80x25
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
devtmpfs: initialized
NET: Registered protocol family 16
PCI: Probing PCI hardware
bio: create slab <bio-0> at 0
XGpio: /plb@0/gpio@81460000: registered
XGpio: /plb@0/gpio@81440000: registered
XGpio: /plb@0/gpio@81420000: registered
XGpio: /plb@0/gpio@81400000: registered
vgaarb: loaded
Switching to clocksource timebase
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
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
ROMFS MTD (C) 2007 Red Hat, Inc.
JFS: nTxBlock = 1997, nTxLock = 15983
msgmni has been set to 499
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Console: switching to colour frame buffer device 80x30
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
84000000.serial: ttyUL0 at MMIO 0x84000000 (irq = 20) is a uartlite
console [ttyUL0] enabled
brd: module loaded
loop: module loaded
of:xsysace 83600000.sysace: Xilinx SystemACE revision 1.0.12
of:xsysace 83600000.sysace: capacity: 3915072 sectors
 xsa: xsa1 xsa2
Xilinx SystemACE device driver, major=254
8c000000.flash: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000089 Chip ID 0x008919
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Using buffer write method
Using auto-unlock on power-up/resume
cfi_cmdset_0001: Erase suspend on write enabled
RedBoot partition parsing not available
of:xilinx_emaclite 81000000.ethernet: Device Tree Probing
Xilinx Emaclite MDIO: probed
of:xilinx_emaclite 81000000.ethernet: MAC address is now 00:0a:35:01:a5:00
of:xilinx_emaclite 81000000.ethernet: Xilinx EmacLite at 0x81000000 mapped to 0xD11C0000, irq=17
of:xilinx_ps2 81480000.ps2: Device Tree Probing 'ps2'
of:xilinx_ps2 81480000.ps2: Xilinx PS2 at 0x81480000 mapped to 0xd103e000, irq=22
of:xilinx_ps2 81481000.ps2: Device Tree Probing 'ps2'
of:xilinx_ps2 81481000.ps2: Xilinx PS2 at 0x81481000 mapped to 0xd1052000, irq=23
mousedev: PS/2 mouse device common for all mice
TCP cubic registered
NET: Registered protocol family 17
atkbd serio0: keyboard reset failed on xilinxps2/serio at 81480000
EXT3-fs: barriers not enabled
kjournald starting.  Commit interval 5 seconds
EXT3-fs (xsa2): using internal journal
EXT3-fs (xsa2): mounted filesystem with writeback data mode
VFS: Mounted root (ext3 filesystem) on device 254:2.
devtmpfs: mounted
Freeing unused kernel memory: 168k init
input: AT Raw Set 2 keyboard as /devices/plb.0/xps-ps2.1/81481000.ps2/serio1/input/input0

Best regards,

Elvis Dowson

[-- Attachment #2: Type: text/html, Size: 12520 bytes --]

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

* Re: Unable to get login prompt for Xilinx ML507 PowerPC440 target development board
  2012-07-24 17:03 Unable to get login prompt for Xilinx ML507 PowerPC440 target development board Elvis Dowson
@ 2012-07-24 19:15 ` McClintock Matthew-B29882
  2012-07-24 19:36   ` Elvis Dowson
  0 siblings, 1 reply; 6+ messages in thread
From: McClintock Matthew-B29882 @ 2012-07-24 19:15 UTC (permalink / raw)
  To: Elvis Dowson; +Cc: Yocto Discussion Mailing List

On Tue, Jul 24, 2012 at 12:03 PM, Elvis Dowson <elvis.dowson@gmail.com> wrote:
> Hi,
>       I have progressed somewhat further with getting Yocto to build a
> kernel image and rootfilesystem for the Xilinx ML507 PowerPC440 target
> development board.
>
> For some reason, I'm unable to get a login prompt. The serial console device
> is ttyUL0. If someone could help me figure out what's going wrong, it would
> be great. I have checked /etc/securetty and it does contain an entry for
> ttyUL0.

You don't use /etc/inittab to spawn consoles?

-M


>
> Here is the output of the linux boot process:
>
> Using Xilinx Virtex440 machine description
> Linux version 2.6.38+ (elvis@eos) (gcc version 4.7.2 20120706 (prerelease)
> (GCC) ) #13 PREEMPT Mon Ju2
> Zone PFN ranges:
>   DMA      0x00000000 -> 0x00010000
>   Normal   empty
> Movable zone start PFN for each node
> early_node_map[1] active PFN ranges
>     0: 0x00000000 -> 0x00010000
> MMU: Allocated 1088 bytes of context maps for 255 contexts
> Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
> Kernel command line: console=ttyUL0 root=/dev/xsa2 rw rootfstype=ext3
> PID hash table entries: 1024 (order: 0, 4096 bytes)
> Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
> Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
> Memory: 254716k/262144k available (3788k kernel code, 7428k reserved, 132k
> data, 1146k bss, 168k init)
> Kernel virtual memory layout:
>   * 0xfffdf000..0xfffff000  : fixmap
>   * 0xfde00000..0xfe000000  : consistent mem
>   * 0xfde00000..0xfde00000  : early ioremap
>   * 0xd1000000..0xfde00000  : vmalloc & ioremap
> Preemptable hierarchical RCU implementation.
>         RCU-based detection of stalled CPUs is disabled.
>         Verbose stalled-CPUs detection is disabled.
> NR_IRQS:512 nr_irqs:512 16
> clocksource: timebase mult[a00000] shift[22] registered
> Console: colour dummy device 80x25
> pid_max: default: 32768 minimum: 301
> Mount-cache hash table entries: 512
> devtmpfs: initialized
> NET: Registered protocol family 16
> PCI: Probing PCI hardware
> bio: create slab <bio-0> at 0
> XGpio: /plb@0/gpio@81460000: registered
> XGpio: /plb@0/gpio@81440000: registered
> XGpio: /plb@0/gpio@81420000: registered
> XGpio: /plb@0/gpio@81400000: registered
> vgaarb: loaded
> Switching to clocksource timebase
> 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
> UDP hash table entries: 256 (order: 0, 4096 bytes)
> UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
> NET: Registered protocol family 1
> RPC: Registered udp transport module.
> RPC: Registered tcp transport module.
> RPC: Registered tcp NFSv4.1 backchannel transport module.
> ROMFS MTD (C) 2007 Red Hat, Inc.
> JFS: nTxBlock = 1997, nTxLock = 15983
> msgmni has been set to 499
> Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
> io scheduler noop registered
> io scheduler deadline registered
> io scheduler cfq registered (default)
> Console: switching to colour frame buffer device 80x30
> Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
> 84000000.serial: ttyUL0 at MMIO 0x84000000 (irq = 20) is a uartlite
> console [ttyUL0] enabled
> brd: module loaded
> loop: module loaded
> of:xsysace 83600000.sysace: Xilinx SystemACE revision 1.0.12
> of:xsysace 83600000.sysace: capacity: 3915072 sectors
>  xsa: xsa1 xsa2
> Xilinx SystemACE device driver, major=254
> 8c000000.flash: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID
> 0x000089 Chip ID 0x008919
> Intel/Sharp Extended Query Table at 0x010A
> Intel/Sharp Extended Query Table at 0x010A
> Intel/Sharp Extended Query Table at 0x010A
> Intel/Sharp Extended Query Table at 0x010A
> Intel/Sharp Extended Query Table at 0x010A
> Using buffer write method
> Using auto-unlock on power-up/resume
> cfi_cmdset_0001: Erase suspend on write enabled
> RedBoot partition parsing not available
> of:xilinx_emaclite 81000000.ethernet: Device Tree Probing
> Xilinx Emaclite MDIO: probed
> of:xilinx_emaclite 81000000.ethernet: MAC address is now 00:0a:35:01:a5:00
> of:xilinx_emaclite 81000000.ethernet: Xilinx EmacLite at 0x81000000 mapped
> to 0xD11C0000, irq=17
> of:xilinx_ps2 81480000.ps2: Device Tree Probing 'ps2'
> of:xilinx_ps2 81480000.ps2: Xilinx PS2 at 0x81480000 mapped to 0xd103e000,
> irq=22
> of:xilinx_ps2 81481000.ps2: Device Tree Probing 'ps2'
> of:xilinx_ps2 81481000.ps2: Xilinx PS2 at 0x81481000 mapped to 0xd1052000,
> irq=23
> mousedev: PS/2 mouse device common for all mice
> TCP cubic registered
> NET: Registered protocol family 17
> atkbd serio0: keyboard reset failed on xilinxps2/serio at 81480000
> EXT3-fs: barriers not enabled
> kjournald starting.  Commit interval 5 seconds
> EXT3-fs (xsa2): using internal journal
> EXT3-fs (xsa2): mounted filesystem with writeback data mode
> VFS: Mounted root (ext3 filesystem) on device 254:2.
> devtmpfs: mounted
> Freeing unused kernel memory: 168k init
> input: AT Raw Set 2 keyboard as
> /devices/plb.0/xps-ps2.1/81481000.ps2/serio1/input/input0
>
> Best regards,
>
> Elvis Dowson
>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>


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

* Re: Unable to get login prompt for Xilinx ML507 PowerPC440 target development board
  2012-07-24 19:15 ` McClintock Matthew-B29882
@ 2012-07-24 19:36   ` Elvis Dowson
  2012-07-24 19:55     ` Gary Thomas
  0 siblings, 1 reply; 6+ messages in thread
From: Elvis Dowson @ 2012-07-24 19:36 UTC (permalink / raw)
  To: McClintock Matthew-B29882; +Cc: Yocto Discussion Mailing List

[-- Attachment #1: Type: text/plain, Size: 761 bytes --]

Hi,

On Jul 24, 2012, at 11:15 PM, McClintock Matthew-B29882 <B29882@freescale.com> wrote:

> On Tue, Jul 24, 2012 at 12:03 PM, Elvis Dowson <elvis.dowson@gmail.com> wrote:
>> Hi,
>>      I have progressed somewhat further with getting Yocto to build a
>> kernel image and rootfilesystem for the Xilinx ML507 PowerPC440 target
>> development board.
>> 
>> For some reason, I'm unable to get a login prompt. The serial console device
>> is ttyUL0. If someone could help me figure out what's going wrong, it would
>> be great. I have checked /etc/securetty and it does contain an entry for
>> ttyUL0.
> 
> You don't use /etc/inittab to spawn consoles?
> 
 
It is set as follows:
0:2345:respawn:/sbin/agetty 115200 ttyUL0
Best regards,

Elvis

[-- Attachment #2: Type: text/html, Size: 3447 bytes --]

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

* Re: Unable to get login prompt for Xilinx ML507 PowerPC440 target development board
  2012-07-24 19:36   ` Elvis Dowson
@ 2012-07-24 19:55     ` Gary Thomas
  2012-07-25  1:55       ` Elvis Dowson
  2012-07-25 19:59       ` Elvis Dowson
  0 siblings, 2 replies; 6+ messages in thread
From: Gary Thomas @ 2012-07-24 19:55 UTC (permalink / raw)
  To: yocto

On 2012-07-24 13:36, Elvis Dowson wrote:
> Hi,
>
> On Jul 24, 2012, at 11:15 PM, McClintock Matthew-B29882 <B29882@freescale.com <mailto:B29882@freescale.com>> wrote:
>
>> On Tue, Jul 24, 2012 at 12:03 PM, Elvis Dowson <elvis.dowson@gmail.com <mailto:elvis.dowson@gmail.com>> wrote:
>>> Hi,
>>>      I have progressed somewhat further with getting Yocto to build a
>>> kernel image and rootfilesystem for the Xilinx ML507 PowerPC440 target
>>> development board.
>>>
>>> For some reason, I'm unable to get a login prompt. The serial console device
>>> is ttyUL0. If someone could help me figure out what's going wrong, it would
>>> be great. I have checked /etc/securetty and it does contain an entry for
>>> ttyUL0.
>>
>> You don't use /etc/inittab to spawn consoles?
>>
> It is set as follows:
>
> 0:2345:respawn:/sbin/agetty 115200 ttyUL0
>
> Best regards,

Did 'udev' run?  I didn't see it in your log.  Normally, udev
would be responsible for creating /dev/ttyUL0

What image are you trying to run?  e.g. core-image-minimal, etc?

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


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

* Re: Unable to get login prompt for Xilinx ML507 PowerPC440 target development board
  2012-07-24 19:55     ` Gary Thomas
@ 2012-07-25  1:55       ` Elvis Dowson
  2012-07-25 19:59       ` Elvis Dowson
  1 sibling, 0 replies; 6+ messages in thread
From: Elvis Dowson @ 2012-07-25  1:55 UTC (permalink / raw)
  To: Gary Thomas; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 1266 bytes --]

Hi Gary,

On Jul 24, 2012, at 11:55 PM, Gary Thomas wrote:

> Did 'udev' run?  I didn't see it in your log.  Normally, udev
> would be responsible for creating /dev/ttyUL0

No udev did not run. 

> What image are you trying to run?  e.g. core-image-minimal, etc?

I tried with both core-image-minimal and core-image-base.

I am using the meta-xilinx layer, virtex5.conf 

http://git.yoctoproject.org/cgit.cgi/meta-xilinx/plain/conf/machine/virtex5.conf

has the following entry

# Don't use tty1
# USE_VT = "0"
SERIAL_CONSOLE ?= "115200 ttyUL0"

# Device nodes add xsa for (system ace)
IMAGE_DEVICE_TABLES = "files/device_table-minimal.txt \
                       files/device_table_add-xsa.txt"

There is a device_table_add-xsa.txt file, whose contents are as follows:

# Add nodes for xilinx system ace
/dev/xsa    b   640     0   0   125     0   0   0   -
/dev/xsa1   b   640     0   1   125     0   0   0   -
/dev/xsa2   b   640     0   2   125     0   0   0   -
/dev/xsa3   b   640     0   3   125     0   0   0   -
/dev/ttyUL  c   666     0   0   204     187 0   1   4
Perhaps this is the reason? Should there be an additional entry for /dev/ttyUL0 ?

How can I ensure that udev runs? 

Best regards,

Elvis Dowson


[-- Attachment #2: Type: text/html, Size: 2188 bytes --]

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

* Re: Unable to get login prompt for Xilinx ML507 PowerPC440 target development board
  2012-07-24 19:55     ` Gary Thomas
  2012-07-25  1:55       ` Elvis Dowson
@ 2012-07-25 19:59       ` Elvis Dowson
  1 sibling, 0 replies; 6+ messages in thread
From: Elvis Dowson @ 2012-07-25 19:59 UTC (permalink / raw)
  To: Yocto Discussion Mailing List

[-- Attachment #1: Type: text/plain, Size: 323 bytes --]

Hi,
       I was going through the files generated by core-image-base, and found that /sbin/getty link was broken. 

This is the reason why probably after boot up, I didn't get a login prompt. 

How can I fix this, so that getty gets generated properly in the generate image?




Best regards,

Elvis Dowson


[-- Attachment #2.1: Type: text/html, Size: 807 bytes --]

[-- Attachment #2.2: core-image-base-getty-broken-link.jpg --]
[-- Type: image/jpg, Size: 166561 bytes --]

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

end of thread, other threads:[~2012-07-25 19:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-24 17:03 Unable to get login prompt for Xilinx ML507 PowerPC440 target development board Elvis Dowson
2012-07-24 19:15 ` McClintock Matthew-B29882
2012-07-24 19:36   ` Elvis Dowson
2012-07-24 19:55     ` Gary Thomas
2012-07-25  1:55       ` Elvis Dowson
2012-07-25 19:59       ` Elvis Dowson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.