Scott McNutt | 1 Feb 2006 01:45

Re: SDRAM

Hi Mans,

> The thing i missed is which cfg_ the U-Boot has to have. Should i put
> my sram address as CFG_SDRAM_BASE and underline CFG_SRAM_BASE?

I'm assuming you're using Nios II ... in which case the code doesn't
really care about SDRAM ... since the SDRAM controller is configured
when you create the Nios II system module, not a run time. So yes,
you can set CFG_SDRAM_BASE to point to your SRAM base address. And
just set CFG_SRAM_BASE/SIZE to zero.

Also, there are several patches for the Nios II code that haven't
made it into the source tree yet -- if you run into problems, just
let me know & I'll send you the patches directly.

Regards,
--Scott

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
S. Egbert | 1 Feb 2006 02:15
Picon
Favicon

Re: Sequence of Xilinx ML403/PPC

According my HW guy, he said the ML403 reference design, the flash is
accesible only by 16-bit fetch.  I thought that this alone would make
XIP not feasible out of that flash region.

As of today, I just had the bit file made enabling Xilinx flash
side-by-side data access (two 16-bit fetch from a single chip into a
32-bit data read)...

Will give it a shot again then.

Steve

Peter Ryser wrote:
> Is there any reason why you don't start U-Boot directly out of Flash
> instead of using the initial SREC bootloader?
> 
> BTW: you can find a snapshot of U-Boot with board support for ML300,
> ML310, ML403 and ML410 at
> http://www.xilinx.com/ml410-p/designs/u-boot.zip
> The snapshot contains the patches that have been submitted to this
> mailing list back in September of last year. For ML403 just use
> $ make ml403_config
> $ make
> to build U-Boot.
> 
> - Peter
> 
> 
> S. Egbert wrote:
> 
(Continue reading)

Hiroki Kaminaga | 1 Feb 2006 06:03
Picon
Picon

[PATCH] fix undefined error on omap5912osk

Hi,

This patch fixes following error:

arm-sony-linux-gcc -Wa,-gstabs -D__ASSEMBLY__ -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8
-msoft-float -malignment-traps -D__KERNEL__ -DTEXT_BASE=0x11080000 -Iu-boot-1.1.4/include
-fno-builtin -ffreestanding -nostdinc -isystem
/usr/local/arm-sony-linux/devel/lib/gcc/arm-sony-linux/3.4.4/include -pipe  -DCONFIG_ARM
-D__ARM__ -march=armv4 -mapcs-32 -c -o cpu/arm926ejs/start.o u-boot-1.1.4/cpu/arm926ejs/start.S
u-boot-1.1.4/cpu/arm926ejs/start.S: Assembler messages:
u-boot-1.1.4/cpu/arm926ejs/start.S:169: Error: undefined symbol CFG_GBL_DATA_SIZE used as an
immediate value
u-boot-1.1.4/cpu/arm926ejs/start.S:335: Error: undefined symbol CFG_GBL_DATA_SIZE used as an
immediate value
u-boot-1.1.4/cpu/arm926ejs/start.S:336: Error: undefined symbol CFG_GBL_DATA_SIZE used as an
immediate value
...
u-boot-1.1.4/cpu/arm926ejs/start.S:391: Error: undefined symbol CFG_GBL_DATA_SIZE used as an
immediate value
make: *** [cpu/arm926ejs/start.o] Error 1

Best Regards,

HK.
--
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
(Continue reading)

Nguyen Nguyen | 1 Feb 2006 06:11

UBoot keeps looping on init

Hello,
 
I am trying to put u-boot on my Embedded Planet Board EP8248 and it keeps looping in the initialization cycle:
 
U-Boot 1.1.2 (Dec 13 2004 - 21:11:34)
MPC8248 Reset Status: Check Stop, External Soft, External Hard
MPC8248 Clock Configuration
 - Bus-to-Core Mult 3.5x, VCO Div 2, 60x Bus Freq  30-85 , Core Freq 100-300
 - dfbrg 1, corecnf 0x0e, busdf 3, cpmdf 1, plldf 0, pllmf 5
 - vco_out  396000000, scc_clk   99000000, brg_clk   24750000
 - cpu_clk  231000000, cpm_clk  198000000, bus_clk   66000000
 - pci_clk   66000000
CPU:   MPC8248 (HiP7 Rev 13, Mask 0.0 0K50M) at 231 MHz
Board: EP8248E 1.0 CPLD revision 2
I2C:   ready
DRAM:  128 M
U-Boot 1.1.2 (Dec 13 2004 - 21:11:34)
MPC8248 Reset Status: Check Stop, External Soft, External Hard
MPC8248 Clock Configuration
......
 
 
Could you make some suggestions?  I thought U-boot has been successfully ported to EP8248 board.  My board has 128Mbyte SDRAM and 64MB of flash.
 
Thanks,
 
Nguyen
 
Hiroki Kaminaga | 1 Feb 2006 06:45
Picon
Picon

build error for omap5912osk on u-boot 1.1.4

Hi,

While building u-boot-1.1.4 for omap5912osk, I got following error:

...
	arm-sony-linux-ld -Bstatic -T 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/arm-sony-linux/devel/lib/gcc/arm-sony-linux/3.4.4 -lgcc \
		-Map u-boot.map -o u-boot
lib_arm/libarm.a(board.o)(.text+0x1c4): In function `start_armboot':
u-boot-1.1.4/lib_arm/board.c:236: undefined reference to `flash_init'
common/libcommon.a(cmd_bootm.o)(.text+0x56c): In function `do_imls':
u-boot-1.1.4/common/cmd_bootm.c:1160: undefined reference to `flash_info'
...
(and more flash related undef ref)
...
common/libcommon.a(flash.o)(.text+0x2a8): In function `flash_write':
u-boot-1.1.4/common/flash.c:177: undefined reference to `write_buff'
make: *** [u-boot] Error 1

This was due to file removal of board/omap5912osk/flash.c, which was in
u-boot-1.1.3. Looking at board/omap5912osk/Makefile, I assume intention of 
removing this file is to use drivers/cfi_flash.c as in omap1510inn.

However, in order to use drivers/cfi_flash.c, CFG_FLASH_CFI_DRIVER
macro must be defined, but it was not, in omap5912osk.h.
(It is defined in omap1510inn.h)

What else do I have to #define other than CFG_FLASH_CFI_DRIVER?

Best Regards,

HK.
--

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
Hiroki Kaminaga | 1 Feb 2006 07:45
Picon
Picon

Re: build error for omap5912osk on u-boot 1.1.4

Hi,

> While building u-boot-1.1.4 for omap5912osk, I got following error:
 ...
> What else do I have to #define other than CFG_FLASH_CFI_DRIVER?

Attached is the patch I'm using for omap5912osk on u-boot-1.1.4.

With this patch (and other patch I posted), u-boot-1.1.4 build for
omap5912osk is successful.

Best Regards,

HK.
--
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
 <at>  <at>  -158,6 +158,15  <at>  <at> 
 #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 */
S. Egbert | 1 Feb 2006 07:36
Picon
Favicon

XUARTLITE/PPC405/Linux after UBOOT.

I'm using XUARTLITE with PPC405 and special core.  U-Boot hasn't
leverage this combo before (AFAICT, U-Boot XUARTLITE is used only with
MicroBlaze CPU).

So, I took a Oct. 10 2005 snapshot and integrated the XUARTLITE into
U-Boot.  That works so far when Xilinx bootloader (via ISOCM/DSOCM)
loads the Linux 2.4.20 SREC-formatted file directly from flash into DDR
and jumps to 0x100.  So, it has been established that a working Linux
XUARTLITE output has been had by Xilinx-booting directly from
flash-based Linux.SREC.  (that was my earlier announcement).

But flashing 8MB Linux.SREC, every time I tweak things, isn't my cup of
tea.  It is not reasonable to wait 45 minutes for a serial download to
finish.  So, I thought, why not U-Boot it.

My next step is to put a uImage (Linux XUARTLITE) into flash using

    => tftpboot 30000000 uImage
    => bootm 30000000

bootm confirms that the uImage checksum is good and jumps to 0x100.

The calling sequence within Linux in question is:

 + _start  (linux/arch/ppc/kernel/head_4xx.S)
   + initial_mmu (also in head_4xx.S)
   + start_here (head_4xx.S)
     + machine_init (
     + MMU_init (arch/ppc/mm/init.c)
         --> XUARLITE register goes phantom here <--
     + start_kernel (init/main.c)

Via linux/arch/ppc/mm/init.c ppc_md.progress() debug output, I see that
outputs various "MMU:" debug lines and then it falls silent (no further
output).

   id mach(): done
   MMU:enter
   MMU:hw init
   MMU:mapin
   MMU:setio
   MMU:exit

so, it finished mmu_init() and platform_init() just fine.

Using Xilinx XDM, one can repeatedly poke the XUARTLITE transmit
register and evoke character outputs just fine while in Linux IDLE
(scheduler) mode.  So, the XUARTLITE hardware is still working at this
point.  HW works still.

I noticed that in Linux PPC, to get 'early debug output' using
CONFIG_SERIAL_TEXT_DEBUG option, PPC4xx TLB Slot 0 is dedicated to
mapping serial hardware registers/memory region.  Somehow that TLB
remapping fails.

At the moment, I'm about to re-review the TLB slot 0 and figure out why
poking the XUARTLITE transmit register isn't working from memory-mapped
mode.

Any insight is greatly appreciated, particularly on how to read PPC405
TLB registers.

Steve

Peter Ryser wrote:
> Is there any reason why you don't start U-Boot directly out of Flash
> instead of using the initial SREC bootloader?
> 
> BTW: you can find a snapshot of U-Boot with board support for ML300,
> ML310, ML403 and ML410 at
> http://www.xilinx.com/ml410-p/designs/u-boot.zip
> The snapshot contains the patches that have been submitted to this
> mailing list back in September of last year. For ML403 just use
> $ make ml403_config
> $ make
> to build U-Boot.
> 
> - Peter
> 
> 
> S. Egbert wrote:
> 
>> Awesome... Got U-boot 1.1.4 working on a Xilinx ML403 (PPC 405)
>> evaluation board with our custom core.
>>
>> Next for this planning stage, I'm trying to juggle 'leap-frogging'
>> memory mapping between the first-loader (Xilinx SREC bootloader in
>> firmware), second loader (U-boot 1.1.4) and Linux 2.4 OS.
>>
>> Firstly, we started with Xilinx's SREC (bootloader.c) bootloader (I
>> know, I know, SREC is space consuming) and plan to replace this first
>> bootloader with an ELF or pseudo-binary version later after
>> everything-else is checked out.
>>
>>
>> Planning-wise, I envisioned that such a bring-up memory overlaying
>> sequence would be something like this:
>>
>> 1. Xilinx bootloader.c reads SREC from 16-bit flash and
>> decode/verify/copies to lowest RAM (0000_0000).  Then transfers control
>> to 0000_0100.
>>
>> 2. U-boot starts up and relocate itself to MONITOR region which is in
>> the highest RAM region of 01F0_0000.
>>
>> 3. U-boot Scripting occurs which copies Linux OS from flash into where?
>> Next highest or lowest portion of RAM?  Is it dependent on whether
>> dual-stage vmlinux.initrd or single-stage vmlinux is used or not?
>>
>>
>> At power-up, with U-Boot 1.1.4 being unusually low-RAM-based before
>> starting up (instead of executing straight out of ROM), I noticed that
>> despite being relocated to MONITOR (higher RAM) region, the PIT
>> exception vector appears to be active in 0000_10c0-ish.
>>
>> Despite this RAM-to-RAM relocation, this "mtest" clobbering of the
>> 0000_10C0 region caused Machine Exception error whenever I attempt to
>> perform memory test over this supposedly former exception vector region.
>> I thought that the objective during U-boot relocation was to ensure a
>> completely discontinued RAM region (formerly occupied by U-boot
>> ROM-based session).
>>
>> A hard and easy questions to the esteemed and avid readers of
>> u-boot-users mailing list...
>>
>> 1.  Where do I go from there with regard to the 0000_1000
>> (PIT_EXCEPTION).  Isn't the PIT specific to Motorola 8xx-series (this
>> here is a PPC 405).  What exception did the lib_ppc/start.S/trap_init()
>> exactly skipped? Skipped an exception mentioned vaguely in this source
>> code vaguely.  Do I need to tweak the trap_init() some more to relocate
>> these untransfered exception vectors into the high MONITOR region?
>>
>> 2. And lastly, do I go high or low for Linux OS?
>>
>> Thank you,
>>
>> S. Egbert
>>
>>
>> -------------------------------------------------------
>> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
>> files
>> for problems?  Stop!  Download the new AJAX search engine that makes
>> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
>> _______________________________________________
>> U-Boot-Users mailing list
>> U-Boot-Users <at> lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/u-boot-users
>>
>>
>>  
>>
> 
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
> 
 and

--

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GAT d- s++: !a C+++ UL++++ P+++ L+++ E W+++ N+ o++ K+++ w--
O- M+ V- PS PE++ Y+ PGP++ t++ 5++ X++ R tv- b++ DI+ D+
G++ e* h++ r+++ z
------END GEEK CODE BLOCK------
GPG Public Key: http://www.egbert.net/pgp

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
Mark | 1 Feb 2006 08:30
Picon
Favicon

Bootm hangs on SMDK2410 varity

I had success in porting the U-boot-1.1.4 to a varity
of SMDK2410 board. 
But I found the bootm command does not work as
expected.

When booting from zImage with go command:

HH2410STUDY# tftp 31000000 zimage
dm9000 i/o: 0x8000300, id: 0x90000a46 
MAC: 00:80:00:80:00:80
could not establish link
TFTP from server 192.168.2.122; our IP address is
192.168.2.120
Filename 'zimage'.
Load address: 0x31000000
Loading:
#################################################################

#################################################################

##################################################
done
Bytes transferred = 916804 (dfd44 hex)
HH2410STUDY# bootelf 31000000
## No elf image at address 0x31000000
HH2410STUDY# go 31000000
## Starting application at 0x31000000 ...
Uncompressing
Linux...................................................................
done, booting the kernel.

Error: a

This is understood and expected. Because the go
command did not pass the archtecure # to kerner.
That's why
it says "Error: a".

On the other side, this proves the console setting is
right because it received the msg from the kernal.

When booting from uImage with bootm command:

HH2410STUDY# run uimage
dm9000 i/o: 0x8000300, id: 0x90000a46 
MAC: 00:80:00:80:00:80
could not establish link
TFTP from server 192.168.2.122; our IP address is
192.168.2.120
Filename 'uimage'.
Load address: 0x31000000
Loading:
#################################################################

#################################################################

###############################################
done
Bytes transferred = 904449 (dcd01 hex)
## Booting image at 31000000 ...
   Image Name:   ARM Linux Kernel
   Created:      2006-02-01   0:29:18 UTC
   Image Type:   ARM Linux Kernel Image (gzip
compressed)
   Data Size:    904385 Bytes = 883.2 kB
   Load Address: 30008000
   Entry Point:  30008000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

The operation system hangs here.

I double checked the uimage making process and it is
right. Here it the command list:
	arm-linux-objcopy -O binary \
				 -R .note -R .comment \
				 -S vmlinux linux.bin

	gzip -9 linux.bin

	mkimage -A arm -O linux -T kernel -C gzip \
		-a 30008000 -e 30008000 -n "ARM Linux Kernel" \
		-d linux.bin.gz uImage

BTW, I also tried to set up bootargs by setting
without success:
	console=ttyS0 baudrate=9600
	console=ttyS0 baudrate=115200 and etc 

Any hints why this happen?

If possible, please copy me on reply. But anyway I
should go to list achieve to check the reply. Thanks a lot!

	

	
		
___________________________________________________________ 
雅虎1G免费邮箱百分百防垃圾信 
http://cn.mail.yahoo.com/

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
Wolfgang Denk | 1 Feb 2006 09:09
Picon
Picon
Favicon

Re: Bootm hangs on SMDK2410 varity

In message <20060201073010.46707.qmail <at> web15403.mail.cnb.yahoo.com> you wrote:
>
> But I found the bootm command does not work as
> expected.
> 
> When booting from zImage with go command:

Please RTFM. U-Boot does not use zImages images.

> When booting from uImage with bootm command:
> 
> HH2410STUDY# run uimage

What's your definition of uimage here?

...
>    Uncompressing Kernel Image ... OK
> 
> Starting kernel ...
> 
> The operation system hangs here.

See FAQ...

Best regards,

Wolfgang Denk

--

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd <at> denx.de
People are very flexible and learn to adjust to strange  surroundings
--  they can become accustomed to read Lisp and Fortran programs, for
example.   - Leon Sterling and Ehud Shapiro, Art of Prolog, MIT Press

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
Andreas Schweigstill | 1 Feb 2006 15:45
Picon

Re: Re: unexpected behaviour !!!

Dear Maximus!

Maximus schrieb:
 > Thanks a lot - it took me 2 days to find it out!!!.

Have you ever read a book or taken a course about ARM
architecture? It doesn't seem like this, but it is
extremely important to understand the processor
architecture when working with it.

With best regards
Andreas Schweigstill

--

-- 
Dipl.-Phys. Andreas Schweigstill
Schweigstill IT | Embedded Systems
Schauenburgerstraße 116, D-24118 Kiel, Germany
Phone: (+49) 431 5606-435, Fax: (+49) 431 5606-436
Mobile: (+49) 171 6921973, Web: http://www.schweigstill.de/

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

Gmane