[yocto] Unable to get serial console login prompt - PowerPC 440 Virtex 5 processor

Elvis Dowson elvis.dowson at gmail.com
Tue Jul 31 10:27:54 PDT 2012


Hi,
       I am unable to get a serial console login prompt using yocto generate rootfilesystem (core-image-minimal), for a PowerPC 440 target. 

I saw on another thread that even for the pandaboard, a similar situation exists:

> On 2012-07-30 13:11, Gary Thomas wrote:
>> On 2012-07-30 12:49, Jim Abernathy wrote:
>>> On 07/30/2012 01:16 PM, Gary Thomas wrote:

>>> I got core-image-minimal built without errors, Thanks, now I need to ask some questions about booting that image.  I'm assuming that I can follow the instructions on pandaboard.org
>>> for creating the SD card format and just copy the deploy/image/ u-boot, MLO, uImage, and rootfs to the right places and boot the sdcard in the pandaboard. Anyway, that's what I
>>> tried.  I'm connected to the panadboard via serial port and the U-Boot works and the uImage seems to be found, but I don't get a login console on the serial port:
>>> 
>>> U-Boot SPL 2011.12-dirty (Jul 30 2012 - 13:44:03)
>>> Texas Instruments OMAP4430 ES2.1
>>> OMAP SD/MMC: 0
>>> reading u-boot.img
>>> reading u-boot.img
>>> 
>>> 
>>> U-Boot 2011.12-dirty (Jul 30 2012 - 13:44:03)
>>> 
>>> CPU  : OMAP4430 ES2.1
>>> Board: OMAP4 Panda
>>> I2C:   ready
>>> DRAM:  1 GiB
>>> MMC:   OMAP SD/MMC: 0
>>> Using default environment
>>> 
>>> In:    serial
>>> Out:   serial
>>> Err:   serial
>>> Hit any key to stop autoboot:  0
>>> reading boot.scr
>>> 
>>> ** Unable to read "boot.scr" from mmc 0:1 **
>>> reading uImage
>>> 
>>> 4176404 bytes read
>>> Booting from mmc0 ...
>>> ## Booting kernel from Legacy Image at 82000000 ...
>>>    Image Name:   Linux-3.1.0
>>>    Image Type:   ARM Linux Kernel Image (uncompressed)
>>>    Data Size:    4176340 Bytes = 4 MiB
>>>    Load Address: 80008000
>>>    Entry Point:  80008000
>>>    Verifying Checksum ... OK
>>>    Loading Kernel Image ... OK
>>> OK
>>> 
>>> Starting kernel ...
>>> 
>>> Uncompressing Linux... done, booting the kernel.
>> 
>> Start with the obvious - check the bootparams in U-Boot.  Break into
>> the boot process and run the 'printenv' command.  What's the value of
>> the "console" variable?
>> 
>> n.b. I've not tried this exact setup on the PandaBoard.  I may have time
>> later today to do so.
>> 
> 
> I've just verified that this does fail when using yocto:master I'm pretty
> sure that the problem is related to the use of GCC 4.7.1 - I've had similar
> problems with ARM kernels & GCC 4.7.1 in the past.



Can someone confirm?

Any suggestions on how to get past this issue? Is serial console login prompt broken on yocto for targets other than Intel? Does it work on ARM or PowerPC at the moment, with the latest yocto updates as of today?

My /etc/inittab looks like this:

S:2345:respawn:/sbin/getty 9600 ttyS0

Here is the output of my kernel boot screen:

zImage starting: loaded at 0x00800000 (sp: 0x00d71fb0)                                            
Allocating 0x4cea6c bytes for kernel ...                                                          
gunzipping (0x00000000 <- 0x0080f000:0x009ddcf9)...done 0x3b15c0 bytes
Attached initrd image at 0x009de000-0x00d7088a
initrd head: 0x1f8b0808

Linux/PowerPC load: console=ttyS0 ip=off root=/dev/ram rw
Finalizing device tree... flat tree at 0xd7e0e0
[    0.000000] Using Xilinx Virtex440 machine description
[    0.000000] Linux version 3.3.0-14.2-build1+ (elvis at eos) (gcc version 4.7.2 20120706 (prerelease) (GCC) ) #37 PREEMPT Tue Jul 31 21:12:34 GST 2012
[    0.000000] Found initrd at 0xc09de000:0xc0d7088a
[    0.000000] Zone PFN ranges:
[    0.000000]   DMA      0x00000000 -> 0x00010000
[    0.000000]   Normal   empty
[    0.000000] Movable zone start PFN for each node
[    0.000000] Early memory PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00010000
[    0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0 ip=off root=/dev/ram rw
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 251200k/262144k available (3596k kernel code, 10944k reserved, 188k data, 1138k bss, 148k init)
[    0.000000] Kernel virtual memory layout:
[    0.000000]   * 0xfffdf000..0xfffff000  : fixmap
[    0.000000]   * 0xfde00000..0xfe000000  : consistent mem
[    0.000000]   * 0xfde00000..0xfde00000  : early ioremap
[    0.000000]   * 0xd1000000..0xfde00000  : vmalloc & ioremap
[    0.000000] NR_IRQS:512
[    0.000000] clocksource: timebase mult[2800000] shift[24] registered
[    0.000000] Console: colour dummy device 80x25
[    0.000455] pid_max: default: 32768 minimum: 301
[    0.000815] Mount-cache hash table entries: 512
[    0.008275] NET: Registered protocol family 16
[    0.014106] PCI: Probing PCI hardware
[    0.041141] bio: create slab <bio-0> at 0
[    0.042516] gpiochip_add: registered GPIOs 248 to 255 on device: /plb at 0/gpio at 81460000
[    0.043034] gpiochip_add: registered GPIOs 240 to 247 on device: /plb at 0/gpio at 81440000
[    0.043625] gpiochip_add: registered GPIOs 235 to 239 on device: /plb at 0/gpio at 81420000
[    0.044150] gpiochip_add: registered GPIOs 230 to 234 on device: /plb at 0/gpio at 81400000
[    0.045659] vgaarb: loaded
[    0.049556] Switching to clocksource timebase
[    0.088781] NET: Registered protocol family 2
[    0.089206] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.090770] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    0.091141] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[    0.091343] TCP: Hash tables configured (established 8192 bind 8192)
[    0.091361] TCP reno registered
[    0.091381] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.091425] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.092019] NET: Registered protocol family 1
[    0.092849] RPC: Registered named UNIX socket transport module.
[    0.092879] RPC: Registered udp transport module.
[    0.092892] RPC: Registered tcp transport module.
[    0.092906] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.093223] Trying to unpack rootfs image as initramfs...
[    0.095276] rootfs image is not initramfs (no cpio magic); looks like an initrd
[    0.128489] Freeing initrd memory: 3660k freed
[    0.145577] ROMFS MTD (C) 2007 Red Hat, Inc.
[    0.146291] msgmni has been set to 499
[    0.147734] io scheduler noop registered
[    0.147760] io scheduler deadline registered
[    0.147911] io scheduler cfq registered (default)
[    0.180521] Console: switching to colour frame buffer device 80x30
[    0.444482] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.450055] 83e00000.serial: ttyS0 at MMIO 0x83e01003 (irq = 20) is a 16550
[    4.334314] console [ttyS0] enabled
[    4.395802] brd: module loaded
[    4.441798] loop: module loaded
[    4.478911] xsysace 83600000.sysace: Xilinx SystemACE revision 1.0.12
[    4.555785] xsysace 83600000.sysace: No CF in slot
[    4.614718] Xilinx SystemACE device driver, major=254
[    4.675508] xilinx_emaclite 81000000.ethernet: Device Tree Probing
[    4.749052] xilinx_emaclite 81000000.ethernet: error registering MDIO bus
[    4.830133] xilinx_emaclite 81000000.ethernet: MAC address is now 00:0a:35:b7:78:00
[    4.923700] xilinx_emaclite 81000000.ethernet: Xilinx EmacLite at 0x81000000 mapped to 0xD10A0000, irq=17
[    5.038540] xilinx_ps2 81480000.ps2: Device Tree Probing 'ps2'
[    5.107812] xilinx_ps2 81480000.ps2: Xilinx PS2 at 0x81480000 mapped to 0xd1036000, irq=22
[    5.207016] xilinx_ps2 81481000.ps2: Device Tree Probing 'ps2'
[    5.276713] xilinx_ps2 81481000.ps2: Xilinx PS2 at 0x81481000 mapped to 0xd1038000, irq=23
[    5.377147] mousedev: PS/2 mouse device common for all mice
[    5.444373] i2c /dev entries driver
[    5.485910] Device Tree Probing 'i2c'
[    5.530167] xilinx-iic #0 at 0x81600000 mapped to 0xD10C0000, irq=18
[    5.607687] TCP cubic registered
[    5.645541] NET: Registered protocol family 17
[    6.441625] atkbd serio0: keyboard reset failed on xilinxps2/serio at 81480000
[    6.925869] RAMDISK: gzip image found at block 0
[    7.449824] input: AT Raw Set 2 keyboard as /devices/plb.0/xps-ps2.1/81481000.ps2/serio1/input/input0
[    7.834586] VFS: Mounted root (ext2 filesystem) readonly on device 1:0.
[    7.914175] Freeing unused kernel memory: 148k freed


Best regards,

Elvis Dowson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20120731/bbacc2f9/attachment.html>


More information about the yocto mailing list