* [help] busy loop at omap_serial_reset()
@ 2006-03-01 8:57 Hiroki Kaminaga
2006-03-01 15:46 ` U-boot 1.1.4 compilation problem Djordje Nijemcevic
2006-03-03 19:00 ` [help] busy loop at omap_serial_reset() Tony Lindgren
0 siblings, 2 replies; 4+ messages in thread
From: Hiroki Kaminaga @ 2006-03-01 8:57 UTC (permalink / raw)
To: linux-omap-open-source
Hi,
I'm facing a problem as below:
I'm trying to boot from uncompressed linux kernel.
Kernel image is allocated by boot loader.
When control is moved to kernel (pc is set to .stext of kernel head.S),
it starts fine, until it enters omap_serial_init() -> omap_serial_reset().
Here, value 0x1 is written to UART_OMAP_SYSC, and busy loops until the written
value is read. The target board hangs here, since the written value could
not be read (or reads the default 0x0 value).
Is there something that have to be set/done by boot loader before entering
kernel for serial config?
I'm kicking kernel from hand-made boot loader command, and
MMU is turned off, I/D cache disabled, r0 = 0x0, r1 = machine nr.
(From reading arch/arm/kernel/head.S Kernel startup entry point comment)
When I start kernel from (compressed) uImage, it boots fine.
I'm using (a bit old) 2.6.11 kernel, but the routine looks the same as
of 2.6.15 kernel. I'm using omap osk 5912 as target.
Any hint?
Best Regards,
HK.
--
^ permalink raw reply [flat|nested] 4+ messages in thread
* U-boot 1.1.4 compilation problem
2006-03-01 8:57 [help] busy loop at omap_serial_reset() Hiroki Kaminaga
@ 2006-03-01 15:46 ` Djordje Nijemcevic
2006-03-02 1:06 ` Hiroki Kaminaga
2006-03-03 19:00 ` [help] busy loop at omap_serial_reset() Tony Lindgren
1 sibling, 1 reply; 4+ messages in thread
From: Djordje Nijemcevic @ 2006-03-01 15:46 UTC (permalink / raw)
To: linux-omap-open-source
Hello,
I have problem compiling U-boot 1.1.4.
The report looks like following:
------------------------------------------------------------------
arm-linux-ld -Bstatic -T
/mnt/downloads/u-boot-1.1.4/board/omap5912osk/u-boot.lds -Ttext 0x11080000
$UNDEF_SYM cpu/arm926ejs/start.o \
--start-group lib_generic/libgeneric.a
board/omap5912osk/libomap5912osk.a
cpu/arm926ejs/libarm926ejs.a lib_arm/libarm.a
fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a
fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a
fs/ext2/libext2fs.a net/libnet.a disk/libdisk.a
rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a
drivers/sk98lin/libsk98lin.a post/libpost.a
post/cpu/libcpu.a common/libcommon.a --end-group -L
/usr/local/lib/gcc/arm-linux/3.4.5 -lgcc \
-Map u-boot.map -o u-boot
lib_arm/libarm.a(board.o): In function `start_armboot':
/mnt/downloads/u-boot-1.1.4/lib_arm/board.c:236: undefined reference to
`flash_init'
common/libcommon.a(cmd_bootm.o): In function `do_imls':
/mnt/downloads/u-boot-1.1.4/common/cmd_bootm.c:1160: undefined reference
to `flash_info'
common/libcommon.a(cmd_flash.o): In function `abbrev_spec':
/mnt/downloads/u-boot-1.1.4/common/cmd_flash.c:106: undefined reference to
`flash_info'
common/libcommon.a(cmd_flash.o): In function `addr_spec':
/mnt/downloads/u-boot-1.1.4/common/cmd_flash.c:195: undefined reference to
`flash_info'
common/libcommon.a(cmd_flash.o): In function `flash_fill_sect_ranges':
/mnt/downloads/u-boot-1.1.4/common/cmd_flash.c:278: undefined reference to
`flash_info'
common/libcommon.a(cmd_flash.o): In function `do_flinfo':
/mnt/downloads/u-boot-1.1.4/common/cmd_flash.c:292: undefined reference to
`flash_print_info'
/mnt/downloads/u-boot-1.1.4/common/cmd_flash.c:304: undefined reference to
`flash_print_info'
/mnt/downloads/u-boot-1.1.4/common/cmd_flash.c:306: undefined reference to
`flash_info'
common/libcommon.a(cmd_flash.o): In function `flash_sect_erase':
/mnt/downloads/u-boot-1.1.4/common/cmd_flash.c:432: undefined reference to
`flash_erase'
/mnt/downloads/u-boot-1.1.4/common/cmd_flash.c:442: undefined reference to
`flash_info'
common/libcommon.a(cmd_flash.o): In function `do_flerase':
/mnt/downloads/u-boot-1.1.4/common/cmd_flash.c:385: undefined reference to
`flash_erase'
/mnt/downloads/u-boot-1.1.4/common/cmd_flash.c:401: undefined reference to
`flash_info'
common/libcommon.a(cmd_flash.o): In function `flash_sect_protect':
/mnt/downloads/u-boot-1.1.4/common/cmd_flash.c:671: undefined reference to
`flash_info'
common/libcommon.a(cmd_flash.o): In function `do_protect':
/mnt/downloads/u-boot-1.1.4/common/cmd_flash.c:617: undefined reference to
`flash_info'
common/libcommon.a(flash.o): In function `addr2info':
/mnt/downloads/u-boot-1.1.4/common/flash.c:122: undefined reference to
`flash_info'
common/libcommon.a(flash.o): In function `flash_write':
/mnt/downloads/u-boot-1.1.4/common/flash.c:177: undefined reference to
`write_buff'
make: *** [u-boot] Error 1
------------------------------------------------------------
Can someone help?
I know that there should be a patch for omap5912osk.h that solves the
problem, but I can't find it...
Thanks
Djordje
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: U-boot 1.1.4 compilation problem
2006-03-01 15:46 ` U-boot 1.1.4 compilation problem Djordje Nijemcevic
@ 2006-03-02 1:06 ` Hiroki Kaminaga
0 siblings, 0 replies; 4+ messages in thread
From: Hiroki Kaminaga @ 2006-03-02 1:06 UTC (permalink / raw)
To: chief; +Cc: linux-omap-open-source
[-- Attachment #1: Type: Text/Plain, Size: 399 bytes --]
Hi,
> I have problem compiling U-boot 1.1.4.
I'm also using OMAP5912OSK and U-boot 1.1.4.
>From U-boot 1.1.3 to 1.1.4, flash implementation for OSK is moved from
board/omap5912osk/flash.c to drivers/cfi_flash.c but the header file
include/configs/omap5912osk.h is not taking this into account.
Attached is the patch I used to build u-boot-1.1.4 for osk.
Hope this helps.
Best Regards,
HK.
--
[-- Attachment #2: omap5912osk-fix-cfi-flash.patch --]
[-- Type: Text/Plain, Size: 1023 bytes --]
Index: u-boot-1.1.4/include/configs/omap5912osk.h
===================================================================
--- u-boot-1.1.4.orig/include/configs/omap5912osk.h 2006-02-01 15:49:40.000000000 +0900
+++ u-boot-1.1.4/include/configs/omap5912osk.h 2006-02-01 16:04:59.000000000 +0900
@@ -158,6 +158,15 @@
#define CFG_MAX_FLASH_SECT (259) /* max number of sectors on one chip */
/* addr of environment */
#define CFG_ENV_ADDR (CFG_FLASH_BASE + 0x020000)
+#define CFG_MONITOR_BASE CFG_FLASH_BASE /* Monitor at beginning of flash */
+
+/*-----------------------------------------------------------------------
+ * FLASH driver setup
+ */
+#define CFG_FLASH_CFI 1 /* Flash memory is CFI compliant */
+#define CFG_FLASH_CFI_DRIVER 1 /* Use drivers/cfi_flash.c */
+#define CFG_FLASH_USE_BUFFER_WRITE 1 /* Use buffered writes (~10x faster) */
+#define CFG_FLASH_PROTECTION 1 /* Use hardware sector protection */
/* timeout values are in ticks */
#define CFG_FLASH_ERASE_TOUT (20*CFG_HZ) /* Timeout for Flash Erase */
[-- Attachment #3: omap5912osk-fix-undef.patch --]
[-- Type: Text/Plain, Size: 429 bytes --]
Index: u-boot-1.1.4/include/configs/omap5912osk.h
===================================================================
--- u-boot-1.1.4.orig/include/configs/omap5912osk.h 2005-12-17 01:39:27.000000000 +0900
+++ u-boot-1.1.4/include/configs/omap5912osk.h 2006-02-01 14:05:13.000000000 +0900
@@ -49,6 +49,7 @@
/*
* Size of malloc() pool
*/
+#define CFG_GBL_DATA_SIZE 128
#define CFG_MALLOC_LEN (CFG_ENV_SIZE + 128*1024)
/*
[-- Attachment #4: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [help] busy loop at omap_serial_reset()
2006-03-01 8:57 [help] busy loop at omap_serial_reset() Hiroki Kaminaga
2006-03-01 15:46 ` U-boot 1.1.4 compilation problem Djordje Nijemcevic
@ 2006-03-03 19:00 ` Tony Lindgren
1 sibling, 0 replies; 4+ messages in thread
From: Tony Lindgren @ 2006-03-03 19:00 UTC (permalink / raw)
To: Hiroki Kaminaga; +Cc: linux-omap-open-source
* Hiroki Kaminaga <kaminaga@sm.sony.co.jp> [060301 01:00]:
> Hi,
>
> I'm facing a problem as below:
>
> I'm trying to boot from uncompressed linux kernel.
> Kernel image is allocated by boot loader.
> When control is moved to kernel (pc is set to .stext of kernel head.S),
> it starts fine, until it enters omap_serial_init() -> omap_serial_reset().
> Here, value 0x1 is written to UART_OMAP_SYSC, and busy loops until the written
> value is read. The target board hangs here, since the written value could
> not be read (or reads the default 0x0 value).
>
> Is there something that have to be set/done by boot loader before entering
> kernel for serial config?
If you have the lowlevel debug on in the kernel, you need to leave the
serial port enabled and configured for the kernel from the bootloader.
Maybe you don't have the serial clock on? Or maybe your loop also tries
to read for another uninitialized serial port?
Regards,
Tony
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-03-03 19:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-01 8:57 [help] busy loop at omap_serial_reset() Hiroki Kaminaga
2006-03-01 15:46 ` U-boot 1.1.4 compilation problem Djordje Nijemcevic
2006-03-02 1:06 ` Hiroki Kaminaga
2006-03-03 19:00 ` [help] busy loop at omap_serial_reset() Tony Lindgren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox