From: Cmmn Ml <cm...@ya...> - 2007-05-04 09:42:10
|
Hi all, I'm using linux kernel 2.6.21-rc7 with the sh: Solution Engine SH7705 board and CPU updates (http://git.kernel.org/?p=linux/kernel/git/lethal/sh-2.6.git;a=commit;h=5452d25e28f365938b36f3a972fe2a1bb69a4c3e) added by Nobuhiro Iwamatsu to the sh-2.6.git. Initial boot up of the kernel works fine, I'm getting the early console outputs, printk is working, but after the ram disk is mounted and when the init/main.c starts the /sbin/init, I'm not getting the system console. This ram disk with the busybox ver 1.00 was working fine with 2.6.16.9 kernel (with sh--stable--2.6.16 patch). To find out the problem, I replaced the /sbin/init with a small helloworld program (dynamically linked) which has only a printf in a loop, then I noticed that the printf is not working. This program was also working fine with 2.6.16.9 kernel (with sh--stable--2.6.16 patch). As a summary, my situation is the system boots up fine, printk is working fine but printf is not working and also busybox is not able start a console. This might appear like a crazy question, but if any one have some idea about this, it will be a great help. Following is the early console output of my system. ------------------------------------------------------------------------------- Linux version 2.6.21-rc7 (root@cmmnml-linux-vm) (gcc version 3.4.4) #5 PREEMPT Thu Apr 26 14:58:55 LKT 2007 Built 1 zonelists. Total pages: 8128 Kernel command line: mem=32M console=ttySC0,115200 root=/dev/ram PID hash table entries: 128 (order: 7, 512 bytes) Interval = 83250 Using tmu for system timer Console: colour dummy device 80x25 Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) Inode-cache hash table entries: 2048 (order: 1, 8192 bytes) Memory: 28424k/32768k available (1692k kernel code, 4344k reserved, 73k data, 76 k init) Mount-cache hash table entries: 512 CPU: SH7705 NET: Registered protocol family 16 NET: Registered protocol family 2 IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 1024 (order: 1, 8192 bytes) TCP bind hash table entries: 1024 (order: 0, 4096 bytes) TCP: Hash tables configured (established 1024 bind 1024) TCP reno registered checking if image is initramfs...it isn't (no cpio magic); looks like an initrd Freeing initrd memory: 2048k freed JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc. io scheduler noop registered io scheduler anticipatory registered (default) SuperH SCI(F) driver initialized sh-sci: ttySC0 at MMIO 0xa4410000 (irq = 59) is a scif sh-sci: ttySC1 at MMIO 0xa4400000 (irq = 55) is a scif RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize NS ST-NIC 83902A PPP generic driver version 2.4.2 PPP Deflate Compression module registered TCP cubic registered NET: Registered protocol family 1 NET: Registered protocol family 17 RAMDISK: Compressed image found at block 0 EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended VFS: Mounted root (ext2 filesystem). Freeing unused kernel memory: 76k freed ------------------------------------------------------------------------------- Thanks in advance. Cmmn Paul Mundt <pau...@re...> wrote: On Tue, May 01, 2007 at 06:49:06AM -0700, Cmmn Ml wrote: > As I found that the file arch/sh/kernel/cpu/sh3/entry.S is broken for SH3 in 2.6.20.7 kernel. > > arch/sh/kernel/cpu/sh3/entry.S > > ... > ... > > #if defined(CONFIG_CPU_SH4) > #define ldmmupteh(r) mov.l 8f, r > #else > #define ldmmupteh(r) mov #MMU_PTEH, r > #endif > > ... > ... > This doesn't exist in sh-2.6.git, or even 2.6.21. Please use a current kernel before submitting bug reports that have no relevance. --------------------------------- Bored stiff? Loosen up... Download and play hundreds of games for free on Yahoo! Games. |