[U-Boot] SPL: undefined reference 'file_fat_write'

2015-02-05 Thread André Schaller
Dear all, I am trying to write a file to SD card in spl_mmc.c. During compilation gcc moans: undefined reference 'file_fat_write'. I don't understand why. Directly after the (original) code in mmc_load_image_fat(): err = file_fat_read(payloadname, (u8 *)spl_image.load_addr, 0);

Re: [U-Boot] Loop Variable through to user space

2015-02-04 Thread André Schaller
Am 03.02.15 um 23:27 schrieb Albert ARIBAUD: Hello André, On Tue, 03 Feb 2015 13:57:28 +0100, André Schaller an.sch...@googlemail.com wrote: Hi all, during the execution of th MLO I create a variable, whose value I want to make accessible to user space applications in Android. How can

[U-Boot] Loop Variable through to user space

2015-02-03 Thread André Schaller
Hi all, during the execution of th MLO I create a variable, whose value I want to make accessible to user space applications in Android. How can this be achieved? One way would be to write the contents of the variable to external memory and let it read by the user space process. However, I would

[U-Boot] SPL binary too large for OMAP4460 OCM

2013-09-04 Thread André Schaller
Hi everybody, I need to add functionality to the SPL code. I tried to implement in a memory-saving way, however, the SPL is about 45 kB after compilation. To get compilation working, I had to set CONFIG_SPL_MAX_SIZE to (45 * 1024). Now, the SPL as well as u-boot won't boot. After the device'

[U-Boot] RNG implementation fails

2013-07-30 Thread André Schaller
HI, I wanted to include a RNG implementation of the Mersenne-Twister into the SPL part of u-boot. However, although the (standalone) code compiles and runs fine on my linux box, u-boot stops to boot and I am not sure why. I am sure I am missing a rather basic design principle of the u-boot code

[U-Boot] How to integrate libtomcrypt into u-boot?

2013-07-25 Thread André Schaller
Hi there, for a research project I need to incorporate different crypto functions (PRNG, SHA1, symmetric encryption/decryption) into the MLO part of u-boot. My questions: 1.) Has someone achieved this before? 2.) Do you guys know it this is even possible regarding the limited size of the MLO

[U-Boot] U-Boot + libtomcrypt

2013-07-08 Thread André Schaller
Hi there, I want to add some Random Number Generation functions / Hashing Functions to u-boot. I implemented the functionality and now I need to include it to the upstream source code of u-boot (inside hwinit-common.c). I was wondering if these even works? Is this lib small enough to fit in the

[U-Boot] ASM code for UART initialization

2013-06-06 Thread André Schaller
Hi, could someone support me with developing ASM code for initializing UART interface on OMAP4460 to send some bytes over the wire at a very early stage of booting x-loader? The code needs to be executed in start.S. Is it possible to use existing C code and use the generated assembly from gcc as

Re: [U-Boot] Reading uninitialized SDRAM values on OMAP4460 (PandaBoard)

2013-05-17 Thread André Schaller
Am 09.05.2013 14:59, schrieb Sricharan R: On Wednesday 08 May 2013 06:54 PM, An Schall wrote: Hi there, my task is to output the uninitialized SDRAM values over UART during device startup. Therefore, I first searched for the code that handles the SDRAM initialization since I have to put my