<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div>       I am unable to get a serial console login prompt using yocto generate rootfilesystem (core-image-minimal), for a PowerPC 440 target. </div><div><br></div><div>I saw on another thread that even for the pandaboard, a similar situation exists:</div><div><br></div><div><blockquote type="cite">On 2012-07-30 13:11, Gary Thomas wrote:<br></blockquote><blockquote type="cite"><blockquote type="cite">On 2012-07-30 12:49, Jim Abernathy wrote:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">On 07/30/2012 01:16 PM, Gary Thomas wrote:</blockquote></blockquote></blockquote></div><div><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">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 <a href="http://pandaboard.org/">pandaboard.org</a><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">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<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">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:<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">U-Boot SPL 2011.12-dirty (Jul 30 2012 - 13:44:03)<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Texas Instruments OMAP4430 ES2.1<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">OMAP SD/MMC: 0<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">reading u-boot.img<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">reading u-boot.img<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">U-Boot 2011.12-dirty (Jul 30 2012 - 13:44:03)<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">CPU  : OMAP4430 ES2.1<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Board: OMAP4 Panda<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">I2C:   ready<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">DRAM:  1 GiB<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">MMC:   OMAP SD/MMC: 0<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Using default environment<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">In:    serial<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Out:   serial<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Err:   serial<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Hit any key to stop autoboot:  0<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">reading boot.scr<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">** Unable to read "boot.scr" from mmc 0:1 **<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">reading uImage<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">4176404 bytes read<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Booting from mmc0 ...<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">## Booting kernel from Legacy Image at 82000000 ...<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">   Image Name:   Linux-3.1.0<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">   Image Type:   ARM Linux Kernel Image (uncompressed)<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">   Data Size:    4176340 Bytes = 4 MiB<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">   Load Address: 80008000<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">   Entry Point:  80008000<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">   Verifying Checksum ... OK<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">   Loading Kernel Image ... OK<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">OK<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Starting kernel ...<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Uncompressing Linux... done, booting the kernel.<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Start with the obvious - check the bootparams in U-Boot.  Break into<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">the boot process and run the 'printenv' command.  What's the value of<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">the "console" variable?<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">n.b. I've not tried this exact setup on the PandaBoard.  I may have time<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">later today to do so.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I've just verified that this does fail when using yocto:master I'm pretty<br></blockquote><blockquote type="cite">sure that the problem is related to the use of GCC 4.7.1 - I've had similar<br></blockquote><blockquote type="cite">problems with ARM kernels & GCC 4.7.1 in the past.<br></blockquote></div><div><br></div><div><br></div><div>Can someone confirm?</div><div><br></div><div>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?</div><div><br></div><div>My /etc/inittab looks like this:</div><div><br></div><div><font class="Apple-style-span" face="Monaco" size="2">S:2345:respawn:/sbin/getty 9600 ttyS0</font></div><div><br></div><div>Here is the output of my kernel boot screen:</div><div><br></div><div><div><font class="Apple-style-span" face="Monaco" size="2">zImage starting: loaded at 0x00800000 (sp: 0x00d71fb0)                                            </font></div><div><font class="Apple-style-span" face="Monaco" size="2">Allocating 0x4cea6c bytes for kernel ...                                                          </font></div><div><font class="Apple-style-span" face="Monaco" size="2">gunzipping (0x00000000 <- 0x0080f000:0x009ddcf9)...done 0x3b15c0 bytes</font></div><div><font class="Apple-style-span" face="Monaco" size="2">Attached initrd image at 0x009de000-0x00d7088a</font></div><div><font class="Apple-style-span" face="Monaco" size="2">initrd head: 0x1f8b0808</font></div><div><font class="Apple-style-span" face="Monaco" size="2"><br></font></div><div><font class="Apple-style-span" face="Monaco" size="2">Linux/PowerPC load: console=ttyS0 ip=off root=/dev/ram rw</font></div><div><font class="Apple-style-span" face="Monaco" size="2">Finalizing device tree... flat tree at 0xd7e0e0</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.000000] Using Xilinx Virtex440 machine description</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.000000] Linux version 3.3.0-14.2-build1+ (elvis@eos) (gcc version 4.7.2 20120706 (prerelease) (GCC) ) #37 PREEMPT Tue Jul 31 21:12:34 GST 2012</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.000000] Found initrd at 0xc09de000:0xc0d7088a</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.000000] Zone PFN ranges:</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.000000]   DMA      0x00000000 -> 0x00010000</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.000000]   Normal   empty</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.000000] Movable zone start PFN for each node</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.000000] Early memory PFN ranges</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.000000]     0: 0x00000000 -> 0x00010000</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.000000] Kernel command line: console=ttyS0 ip=off root=/dev/ram rw</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.000000] Memory: 251200k/262144k available (3596k kernel code, 10944k reserved, 188k data, 1138k bss, 148k init)</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.000000] Kernel virtual memory layout:</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.000000]   * 0xfffdf000..0xfffff000  : fixmap</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.000000]   * 0xfde00000..0xfe000000  : consistent mem</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.000000]   * 0xfde00000..0xfde00000  : early ioremap</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.000000]   * 0xd1000000..0xfde00000  : vmalloc & ioremap</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.000000] NR_IRQS:512</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.000000] clocksource: timebase mult[2800000] shift[24] registered</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.000000] Console: colour dummy device 80x25</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.000455] pid_max: default: 32768 minimum: 301</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.000815] Mount-cache hash table entries: 512</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.008275] NET: Registered protocol family 16</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.014106] PCI: Probing PCI hardware</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.041141] bio: create slab <bio-0> at 0</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.042516] gpiochip_add: registered GPIOs 248 to 255 on device: /plb@0/gpio@81460000</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.043034] gpiochip_add: registered GPIOs 240 to 247 on device: /plb@0/gpio@81440000</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.043625] gpiochip_add: registered GPIOs 235 to 239 on device: /plb@0/gpio@81420000</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.044150] gpiochip_add: registered GPIOs 230 to 234 on device: /plb@0/gpio@81400000</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.045659] vgaarb: loaded</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.049556] Switching to clocksource timebase</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.088781] NET: Registered protocol family 2</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.089206] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.090770] TCP established hash table entries: 8192 (order: 4, 65536 bytes)</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.091141] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.091343] TCP: Hash tables configured (established 8192 bind 8192)</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.091361] TCP reno registered</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.091381] UDP hash table entries: 256 (order: 0, 4096 bytes)</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.091425] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.092019] NET: Registered protocol family 1</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.092849] RPC: Registered named UNIX socket transport module.</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.092879] RPC: Registered udp transport module.</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.092892] RPC: Registered tcp transport module.</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.092906] RPC: Registered tcp NFSv4.1 backchannel transport module.</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.093223] Trying to unpack rootfs image as initramfs...</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.095276] rootfs image is not initramfs (no cpio magic); looks like an initrd</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.128489] Freeing initrd memory: 3660k freed</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.145577] ROMFS MTD (C) 2007 Red Hat, Inc.</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.146291] msgmni has been set to 499</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.147734] io scheduler noop registered</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.147760] io scheduler deadline registered</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.147911] io scheduler cfq registered (default)</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.180521] Console: switching to colour frame buffer device 80x30</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.444482] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    0.450055] 83e00000.serial: ttyS0 at MMIO 0x83e01003 (irq = 20) is a 16550</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    4.334314] console [ttyS0] enabled</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    4.395802] brd: module loaded</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    4.441798] loop: module loaded</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    4.478911] xsysace 83600000.sysace: Xilinx SystemACE revision 1.0.12</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    4.555785] xsysace 83600000.sysace: No CF in slot</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    4.614718] Xilinx SystemACE device driver, major=254</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    4.675508] xilinx_emaclite 81000000.ethernet: Device Tree Probing</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    4.749052] xilinx_emaclite 81000000.ethernet: error registering MDIO bus</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    4.830133] xilinx_emaclite 81000000.ethernet: MAC address is now 00:0a:35:b7:78:00</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    4.923700] xilinx_emaclite 81000000.ethernet: Xilinx EmacLite at 0x81000000 mapped to 0xD10A0000, irq=17</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    5.038540] xilinx_ps2 81480000.ps2: Device Tree Probing 'ps2'</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    5.107812] xilinx_ps2 81480000.ps2: Xilinx PS2 at 0x81480000 mapped to 0xd1036000, irq=22</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    5.207016] xilinx_ps2 81481000.ps2: Device Tree Probing 'ps2'</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    5.276713] xilinx_ps2 81481000.ps2: Xilinx PS2 at 0x81481000 mapped to 0xd1038000, irq=23</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    5.377147] mousedev: PS/2 mouse device common for all mice</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    5.444373] i2c /dev entries driver</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    5.485910] Device Tree Probing 'i2c'</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    5.530167] xilinx-iic #0 at 0x81600000 mapped to 0xD10C0000, irq=18</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    5.607687] TCP cubic registered</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    5.645541] NET: Registered protocol family 17</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    6.441625] atkbd serio0: keyboard reset failed on xilinxps2/serio at 81480000</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    6.925869] RAMDISK: gzip image found at block 0</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    7.449824] input: AT Raw Set 2 keyboard as /devices/plb.0/xps-ps2.1/81481000.ps2/serio1/input/input0</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    7.834586] VFS: Mounted root (ext2 filesystem) readonly on device 1:0.</font></div><div><font class="Apple-style-span" face="Monaco" size="2">[    7.914175] Freeing unused kernel memory: 148k freed</font></div><div><br></div></div><div><br></div><div>Best regards,</div><div><br></div><div>Elvis Dowson</div></body></html>