[U-Boot] [PATCH] ARM926EJ-S: relocate OMAP specific 'cpuinfo.c' into OMAP directory

2008-10-13 Thread Roman Mashak
OMAP identification is implemented in 'cpuinfo.c' and located in ARM926EJ-S directory. It makes sense to place this file in OMAP specific subdirectory, i.e. cpu/arm926ejs/omap Signed-off-by: Roman Mashak <[EMAIL PROTECTED]> --- cpu/arm926ejs/Makefile |2 +- cpu/arm

[U-Boot] non-needed objects added to resulting U-Boot image

2008-10-14 Thread Roman Mashak
y had this before? Thanks. -- Roman Mashak ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] non-needed objects added to resulting U-Boot image

2008-10-14 Thread Roman Mashak
able to add a few variables, say in $(uboot)/config_user.mk, which will more precisely define what to build. Further, $(uboot)/config.mk includes config_local.mk, and later on Makefile organizes LIBS something like that: ... ifdef BUILD_NET LIBS +=drivers/net/libnet.a endif .

[U-Boot] [PATCH] ARM/Versatile port: Removed unused functions

2008-10-20 Thread Roman Mashak
Removal of never used functions. Signed-off-by: Roman Mashak <[EMAIL PROTECTED]> --- board/versatile/versatile.c | 22 -- 1 files changed, 0 insertions(+), 22 deletions(-) diff --git a/board/versatile/versatile.c b/board/versatile/versatile.c index 3b9b020..0f35caa

Re: [U-Boot] booting the kernel

2008-10-21 Thread Roman Mashak
ption vectors and page tables. -- Roman Mashak ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH] ARM926EJ-S: relocate OMAP specific 'cpuinfo.c' into OMAP directory (fixed patch)

2008-10-22 Thread Roman Mashak
OMAP identification is implemented in 'cpuinfo.c' and located in ARM926EJ-S directory. It makes sense to place this file in OMAP specific subdirectory, i.e. cpu/arm926ejs/omap Signed-off-by: Roman Mashak <[EMAIL PROTECTED]> --- cpu/arm926ejs/Makefile |2 +- cpu/arm

[U-Boot] U-Boot hangs in start_armboot()

2008-12-11 Thread Roman Mashak
_ENV_SIZE + 128*1024) It turns out that "(_armboot_start - CFG_MALLOC_LEN - sizeof(gd_t))" is negative and converted to 0x which is certainly wrong. Where's the mistake -- link address or something else? Thanks in advance. -- Roman Mashak __

Re: [U-Boot] U-Boot hangs in start_armboot()

2008-12-11 Thread Roman Mashak
Hello 2008/12/11 Roman Mashak <[EMAIL PROTECTED]>: > Briefly about the memory map: before remap NOR flash is at 0x0 and > SDRAM 0x1000, after remap -- SDRAM is mapped at 0x0. I've built > a U-Boot image linked to 0x0, as I want to load it in RAM, so I linked > it t

Re: [U-Boot] U-Boot hangs in start_armboot()

2008-12-11 Thread Roman Mashak
-1.3.4 -- Roman Mashak ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] U-Boot hangs in start_armboot()

2008-12-11 Thread Roman Mashak
Hello 2008/12/12 Roman Mashak : > Certainly. > > * CPU is arm926ejs based processor with standard peripherals (UART, > I2C, timers etc.) > * our custom board > * U-Boot-1.3.4 Forgot to mention the serial settings in my board's configuration file: #define CONFIG_BAUDRATE

Re: [U-Boot] U-Boot hangs in start_armboot()

2008-12-11 Thread Roman Mashak
Hello 2008/12/12 Roman Mashak : [skip] > So I believe 'default_environment[]' has correct "baudrate" > environment set and on startup it will be picked up by > 'init_baudrate()' from $(UBOOT)/lib_arm/board.c Problem is fixed, it was due to a bug in the func

[U-Boot] Spansion S29JL032H and detecting problem

2008-12-11 Thread Roman Mashak
.. fwc addr 2c00 cmd f0 00f0 16bit x 16 bit fwc addr 2c000aaa cmd aa 00aa 16bit x 16 bit fwc addr 2c000554 cmd 55 0055 16bit x 16 bit fwc addr 2c000aaa cmd 90 0090 16bit x 16 bit Does this indicate the problem with sectors number or this chip is not supported by CFI drive? Thanks

[U-Boot] timer interface

2008-12-14 Thread Roman Mashak
rt of timer's interface? - Now, what are reset_timer_masked() and other *_masked() for? - Is it required to customize 'udelay()' routine fo revery ARM-based platform or there's a basic skeleton to use? Thanks. -- Roman Mashak ___ U

[U-Boot] U-Boot version for a new port

2008-09-02 Thread Roman Mashak
Hello, I'm planning to make a port on a ARM926EJ-S based board. What is the recommended way: take release or GIT version as a base ? Thanks. -- Roman Mashak ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] U-Boot version for a new port

2008-09-02 Thread Roman Mashak
e board, ti davinci boards for reference. I was considering this, but thought there would probably be something more specific. Anyway, I need to investigate H/W more thoroughly. -- Roman Mashak ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] U-Boot version for a new port

2008-09-02 Thread Roman Mashak
rent sources ? > The current window for changes is (almost) closed: there will be a period of > stabilization. The ToT is generally stable despite the change What is ToT ? -- Roman Mashak ___ U-Boot mailing list U-Boot@lists.denx.de http://lists

[U-Boot] running u-boot from SDRAM

2008-09-04 Thread Roman Mashak
k from you. Thanks. -- Roman Mashak ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] running u-boot from SDRAM

2008-09-05 Thread Roman Mashak
is > writable. You have to take care not to try to re-initialize the RAM > in U-Boot, though. This is my understanding that I have to define these optioins: CONFIG_SKIP_LOWLEVEL_INIT and CONFIG_SKIP_RELOCATE_UBOOT in order to avoid re-initialization

[U-Boot] U-Boot and ELDK

2008-09-12 Thread Roman Mashak
t and use it for, let's say, ARM9 based platform ? How necessary is it to install ELDK in order to be able to compile U-Boot for non-PPC platform? Thanks. -- Roman Mashak ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/

Re: [U-Boot] U-Boot and ELDK

2008-09-17 Thread Roman Mashak
now. One more question to clarify my doubts: it's valid to use ELDK toolchain for both building bootloader and linux kernel? I ever encountered cases where two distinct toolchains were used to compile u-boot and kernel, target was ARM9. Does it make sense, and what might be the reasons for

[U-Boot] U-Boot on ARM9

2008-09-22 Thread Roman Mashak
or. It is defined on just a few targets. 3) The stack set up -- commonly startup code initializes stacks for all modes, but it's not clear how it's done in 'start.S'. Seems like somehow stacks are run-time configured, but I didn't perceive how. Than

Re: [U-Boot] U-Boot on ARM9

2008-09-23 Thread Roman Mashak
epaare it to launch OS on it. IRQ/FIQ may be necessary to run standalone code within bootlloader ? -- Roman Mashak ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] PrimeCell Peripherals

2008-09-23 Thread Roman Mashak
forms (i.e. (AMBA bus-compliant), but marked in U-Boot sources with different names or so ? Thanks in advance. -- Roman Mashak ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] PrimeCell Peripherals

2008-09-23 Thread Roman Mashak
e that widely used interrupt controllers like PL19x are not supported by default? > I developed few others my self, like pl18x mmc, rtc, gpio. > > I recently sent a patch for RTC pl031. Yes, I saw that patch. Are you planning to send patch for GPIO as well? -- Roman Mashak _

Re: [U-Boot] PrimeCell Peripherals

2008-09-23 Thread Roman Mashak
aps these definitions are for future ? -- Roman Mashak ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] PrimeCell Peripherals

2008-09-23 Thread Roman Mashak
there any interrupt related drivers in U-boot for other platforms? -- Roman Mashak ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] PrimeCell Peripherals

2008-09-23 Thread Roman Mashak
-Boot. Probably you're right and interrupts related stuff is meanugful on PPC platform; moreover README says about interrupts mainly in PPC or PowerPC marked sections. -- Roman Mashak ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] PrimeCell Peripherals

2008-09-24 Thread Roman Mashak
ARM architecture library ($(U_BOOT)/lib_arm). So if we build for arm920t-based platform (provided that CONFIG_USE_IRQ is defined), then which one will be actually compiled in resulting image? Thanks. -- Roman Mashak ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] PrimeCell Peripherals

2008-09-24 Thread Roman Mashak
7; routine will be in compiled in -- $(UBOOT)/lib_arm/interrupts.c and $(UBOOT)/cpu/arm920t/interrupts.c. Therefore I was wondering how it turns out that in the target image one 'do_irq' function exists? Perhaps it's u-boot irrelevant question and rather concern GNU toolchains behav

Re: [U-Boot] PrimeCell Peripherals

2008-09-24 Thread Roman Mashak
Hello, 2008/9/24 Gururaja Hebbar K R <[EMAIL PROTECTED]>: [skip] > So both are mutual exclusive and finally only one will be compiled. Exactly! Really I didn't spot that subtle difference -- #ifdef, #ifndef. Thanks for pointing out. --

[U-Boot] platform configuration

2008-09-25 Thread Roman Mashak
. If speaking about Linux, it is defined in $(LINUX)/arch/arm/mach-xxx/Makefile.boot -- but how is it defined to be what it is? (3) can't yet figure out how CONFIG_BOOTARGS is pulled in. Somwhow it should get into board's information structur

Re: [U-Boot] platform configuration

2008-09-25 Thread Roman Mashak
alization gets done (i.e. CPU, board, memory are ready) => therefore possible to put environment in RAM. The process also involves CRC checking and if it's faulty, then restore configuration. Well, something like that :) Correct me if I'm wrong. -- Roman Mashak ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] platform configuration

2008-09-25 Thread Roman Mashak
machid, bd->bi_boot_params) > > where the arguments get put into registers r0, r1, r2 and are 0, the > machine ID, and a pointer to the ATAGS structure respectively. Thanks a lot for such a useful and clear explanation. -- Roman Mashak ___ U

[U-Boot] question about environment variables

2008-09-26 Thread Roman Mashak
this macro. (2) do I understand right that when CFG_ENV_IS_NOWHERE defined, environment variables are not changeable and always default values are used.? Thanks in advance! -- Roman Mashak ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.

[U-Boot] U-Boot's memory configuration

2008-09-26 Thread Roman Mashak
and, for the case of booting from flash. How will it look when u-boot is loaded in RAM by preliminary boot code? I specifically want to understand how memory is organized by U-Boot on ARM platform. Sorry if question sounds silly. -- Roman Mashak ___ U-Boot

[U-Boot] ELDK 4.1 - ARM target

2008-09-29 Thread Roman Mashak
or instructions - http://www.denx.de/wiki/view/DULG/ELDKInitialInstallation Thanks. -- Roman Mashak ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] ARM Versatile port - possibly inefficient code?

2008-09-29 Thread Roman Mashak
o many flash banks!\n"); break; } size += flash_info[i].size; } . } Regardless of CFG_MAX_FLASH_BANKS value, the only first bank is configured. Was it done deliberately or it's logical flaw? I think this code could cloned on a multiple of oth

Re: [U-Boot] ARM Versatile port - possibly inefficient code?

2008-09-30 Thread Roman Mashak
ent place & the flash.c is a different file, care is taken to > see > that an incorrect bank is not considered for initialization Yes, that makes sense then. Thank you. -- Roman Mashak ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] NAND flash support

2008-09-30 Thread Roman Mashak
flash can be taken as a reference? Thanks. -- Roman Mashak ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] NAND flash driver for Samsung K9F1G08

2008-09-30 Thread Roman Mashak
eciate any comments. Thanks. -- Roman Mashak ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] NAND flash driver for Samsung K9F1G08

2008-09-30 Thread Roman Mashak
Hello 2008/9/30 Roman Mashak <[EMAIL PROTECTED]>: > Flash ID is in $(UBOOT)/include/linux/mtd/nand_ids.h > Seems this chip is not CFI compliant (at least datasheet says nothing > of it), so the use of CFI driver falls away. After some investigations I see that $(uboot)/drivers/mtd

Re: [U-Boot] NAND flash driver for Samsung K9F1G08

2008-10-01 Thread Roman Mashak
ash -- but on the other hand, do_flinfo() in $(uboot)/common/cmd_flash.c uses 'flash_print_info()' defined in target's flash.c Hmm.. completely confused. Hopefully somebody can bring me out in the light :) -- Roman Mashak ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] NAND flash driver for Samsung K9F1G08

2008-10-01 Thread Roman Mashak
7;s obviously a 'flash storage' device, but is supported in NOR memory interface in cmd_flash.c ? -- Roman Mashak ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] NAND flash driver for Samsung K9F1G08

2008-10-03 Thread Roman Mashak
Hello 2008/10/2 Scott Wood <[EMAIL PROTECTED]>: > On Wed, Oct 01, 2008 at 06:04:02PM -0700, Roman Mashak wrote: >> As far as I understand not all manufacturers adhere to CFI standards, >> so this is flash chip's problem rather then board itself. >> CFI is for both

Re: [U-Boot] how can i change u-boot load address?

2008-10-06 Thread Roman Mashak
RAM -- should not it involve remapping as well? I didn't find how it's done in U-Boot (if it's done at all). Would appreciate a lot for clarification. I'm trying to understand how it's done on ARM -- -- Roman Mashak ___ U-Boot

Re: [U-Boot] how can i change u-boot load address?

2008-10-06 Thread Roman Mashak
Hello 2008/10/6 Roman Mashak <[EMAIL PROTECTED]>: [skip] > On many MCUs built on arm7tdmi core (for example, SAM7 family from > Atmel) the process of starting up involves remapping, i.e. 0x0 address > points on ROM at reset and on RAM after remap. U-Boot usually resides >

Re: [U-Boot] how can i change u-boot load address?

2008-10-07 Thread Roman Mashak
it cannot be adjusted to varying RAM sizes. Usually one ports U-Boot on a board with predefined hardware layout, i.e. flash, SDRAM and peripherals are fixed. If hardware changes, say SDRAM size, no big deal to make two/three distinct u-boot images -- after all it ends up by chan

Re: [U-Boot] how can i change u-boot load address?

2008-10-07 Thread Roman Mashak
be some hero ready to break it up and build a new from scratch. -- Roman Mashak ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] ARM/Versatile - bootup

2008-10-09 Thread Roman Mashak
d appreciate if someone explains me this nuance. Thanks in advance! -- Roman Mashak ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] ARM926EJ-S: defining TEXT_BASE

2008-12-20 Thread Roman Mashak
er or linker options doing this (like -fpic or -pie etc.). Perhaps I misunderstand something in a work of U-Boot... Thanks. -- Roman Mashak ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] ARM: set up endianess

2008-12-30 Thread Roman Mashak
n. I know that modifying platform's startup code is not encouraged. Is there more correct approach? Thanks. -- Roman Mashak ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] Kernel loading and memory layout

2009-01-20 Thread Roman Mashak
s. > >Would it for example be in : arch/powerpc/boot and in one of the assembly > language files? Look at $(uboot)/common/cmd_bootm.c, cmd_boot.c. On ARM the process also involves $(uboot)/lib_arm/bootm.c, I guess should be something similar o

Re: [U-Boot] Kernel loading and memory layout

2009-01-21 Thread Roman Mashak
ight in your board's configuration file. Will provide you with lots of useful debug messages. -- Roman Mashak ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] u-boot for ARM

2009-01-23 Thread Roman Mashak
o rule to make target 'arm926ejs_config'. Stop. That's correct, 'make' is unable to find such target. You must specify the target corresponding to your board, for example "make davinci_dvevm_config", i.e. prefix preceding '_c

Re: [U-Boot] u-boot for ARM

2009-01-24 Thread Roman Mashak
sly, either you're responding wrong person. -- Roman Mashak ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] Reset command on u-boot command line not working

2009-01-27 Thread Roman Mashak
Probably the first thing you should do is grab the latest U-Boot. The version you're experimenting is quite old, I'm afraid. -- Roman Mashak ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot