[U-Boot-Users] [Question]stuck in linux boot on Walnut...

장형욱 jazz0719 at dreamwiz.com
Tue Sep 9 03:46:26 CEST 2003


* Environment
board : IBM Walnut(IBM PowerPC 405GP Rev. D)
bootloader : u-boot 0.4.0
linux kernel : Montavista Linux Preview Kit 3.0 modification -> mkimage


"Real time clock seems stuck!" messeage comes out but
real stuck position is on sti() in _start_kernel() (init/main.c)

I tested in OpenBIOS bootloader using same kernel source and
it worked fine...

what do i do for u-boot and kernel setting ??

please, help me. refer to following rom monitor messeage for checking...

===================================================
U-Boot 0.4.0 (Sep 3 2003 - 14:10:09)

CPU: IBM PowerPC 405GP Rev. D at 200 MHz (PLB=100, OPB=50, EBC=50 MHz)
PCI sync clock at 33 MHz, internal PCI arbiter enabled
16 kB I-Cache 8 kB D-Cache
Board: ### No HW ID - assuming WALNUT405
I2C: ready
DRAM: 32 MB
FLASH: 512 kB
In: serial
Out: serial
Err: serial
KGDB: kgdb ready
ready
BEDBUG:ready
Hit any key to stop autoboot: 0
=> tftpboot 800000 /tftpboot/vmlinux.u-boot
ENET Speed is 100 Mbps - FULL duplex connection
TFTP from server 192.168.1.210; our IP address is 192.168.1.200
Filename '/tftpboot/vmlinux.u-boot'.
Load address: 0x800000
Loading: #################################################################
######################################################
done
Bytes transferred = 605010 (93b52 hex)
=> tftpboot 900000 /tftpboot/ramdisk
ENET Speed is 100 Mbps - FULL duplex connection
TFTP from server 192.168.1.210; our IP address is 192.168.1.200
Filename '/tftpboot/ramdisk'.
Load address: 0x900000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#########################
done
Bytes transferred = 5784523 (5843cb hex)
=> bootm 800000 900000
## Booting image at 00800000 ...
Image Name: Kernel(PK2.0 mod for u-boot)
Created: 2003-09-05 3:48:06 UTC
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 604946 Bytes = 590.8 kB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
## Loading RAMDisk Image at 00900000 ...
Image Name: Ramdisk(HHL2.0 mod)
Created: 2003-09-02 4:03:08 UTC
Image Type: PowerPC Linux RAMDisk Image (gzip compressed)
Data Size: 5784459 Bytes = 5.5 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Loading Ramdisk to 01a28000, end 01fac38b ... OK
Linux version 2.4.18_mvl30-walnut (root at hwjang) (gcc version 2.95.3 20010315 (rTIBM Walnut (IBM405GP) Platform
Port by MontaVista Software, Inc. (source at mvista.com)
On node 0 totalpages: 147456
zone(0): 147456 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/ram
Warning: real time clock seems stuck!
(1)
(2)

=================================================

고친 커널소스부분...

asmlinkage void __init start_kernel(void)
{
char * command_line;
unsigned long mempages;
extern char saved_command_line[];
/*
* Interrupts are still disabled. Do necessary setups, then
* enable them
*/
lock_kernel();
printk(linux_banner);
setup_arch(&command_line);
printk("Kernel command line: %s\n", saved_command_line);
parse_options(command_line);
trap_init();
init_IRQ();
sched_init();
softirq_init();
time_init();

/*
* HACK ALERT! This is early. We're enabling the console before
* we've done PCI setups etc, and console_init() must be aware of
* this. But we do want output early, in case something goes wrong.
*/
console_init();
#ifdef CONFIG_MODULES
init_modules();
#endif
if (prof_shift) {
unsigned int size;
/* only text is profiled */
prof_len = (unsigned long) &_etext - (unsigned long) &_stext;
prof_len >>= prof_shift;

size = prof_len * sizeof(unsigned int) + PAGE_SIZE-1;
prof_buffer = (unsigned int *) alloc_bootmem(size);
}
printk("(1)\n");
kmem_cache_init();
printk("(2)\n");
sti();                 /* ---> PROBLEM OCCURS HERE */
printk("(3)\n");
calibrate_delay();
printk("(4)\n");

-------------------------------------------------
Your Life on the Net
DreamWiz Free Mail @ http://www.dreamwiz.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20030909/6453a8a7/attachment.htm 


More information about the U-Boot mailing list