Q: sp805 watchdog is only for fsl ?

2020-08-30 Thread Ran Shalit
Hello, In watchdog sp805_wdt.c there is usage of gd->bus_clk which seems to be initialized only in fsl code. So, it seems that sp805 usage is limited to fsl chips. I think it could have been generic for any other chip if the clock was initialized using device tree. What do you think? Thanks

[U-Boot] Environement in NVRAM

2012-06-17 Thread Ran Shalit
Hello, Is there a way to save environemnet in NVRAM ? I did not find any information about that. Best Regards, Ran ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] stuck after redirecting stdout to nc

2012-01-06 Thread Ran Shalit
On Fri, Jan 6, 2012 at 1:26 AM, Mike Frysinger wrote: > On Monday 02 January 2012 09:50:42 ran shalit wrote: > > On uboot loading, I checking a specific environement (called > consoleddev), > > to decide to rediect console to nc or staying in serial. > > I then see some s

Re: [U-Boot] stuck after redirecting stdout to nc

2012-01-06 Thread Ran Shalit
On Fri, Jan 6, 2012 at 11:18 AM, Wolfgang Denk wrote: > Dear Ran Shalit, > > In message s...@mail.gmail.com> you wrote: > > > > Do you think such bug is independent of architecture type ? > > This is impossible to say without knowing where and what the bug is.

[U-Boot] Q: Bad bits in Nand Write

2012-02-14 Thread Ran Shalit
Hello, I am using Micron Nand MT29F1G08ABC , with OMAP-L138 board, and I write the Nand with the following sequence in U-Boot: 1. erase block 2, read complete page change the first byte and then write back the complete page (2048 bytes) 3, read complete page change the next byte and then write bac

Re: [U-Boot] Q: Bad bits in Nand Write

2012-02-17 Thread Ran Shalit
On Thu, Feb 16, 2012 at 9:21 PM, Scott Wood wrote: > On 02/14/2012 09:05 AM, Ran Shalit wrote: >> Hello, >> >> I am using Micron Nand MT29F1G08ABC , with OMAP-L138 board, and I >> write the Nand with the following sequence in U-Boot: >> 1. erase block >>

[U-Boot] Atmel spi flash

2012-02-19 Thread Ran Shalit
Hello, I am using U-boot with Atmel SPI flash AT45DB321D. After erase command (using sf erase) and reading the first page (sf read) in the block, I see that the whole page is filled with 0x... ( just as expected) But then on writing any byte in any offset in the page (using sf write) and read

[U-Boot] stuck after redirecting stdout to nc

2012-01-02 Thread ran shalit
Hello, On uboot loading, I checking a specific environement (called consoleddev), to decide to rediect console to nc or staying in serial. I then see some strange behaviour: if the environment tell uboot to redirect to net console, everything works well, but only if the ethernet cable is connecte

[U-Boot] Modifying IP&mac address

2012-07-01 Thread Ran Shalit
Hello, I would like to ask your advise concerning modifying ip address: I need to modify ip address and ethernet address according to some hardware input in application. This change can be done in u-boot or linux. When I consider where is the best place to set the ip/mac address ( u-boot or linux)

[U-Boot] multiple serial in evaluation board

2011-02-04 Thread Ran Shalit
Hello, I would like to configure multiple serial (UART's) in the OMAP l-138 evaluation board (da850evm). I thought that in the serial section of the da850evm.h I should only add CONFIG_SERIAL_MULTI, but then I got compilation problem: \common\serial.c " #error No default console ". It also seem th

[U-Boot] bank8 im OMAP-L138

2011-05-22 Thread Ran Shalit
Hello, It seems that bank 8 is missing in [u-boot.git] / arch / arm/ include

Re: [U-Boot] bank8 in OMAP-L138 ?

2011-05-23 Thread Ran Shalit
On Sun, May 22, 2011 at 9:55 PM, Ran Shalit wrote: > Hello, > > It seems that bank 8 is missing in > [u-boot.git] <http://e2e.ti.com/cgi-bin/gitweb.cgi?p=u-boot.git;a=tree> / > arch <http://e2e.ti.com/cgi-bin/gitweb.cgi?p=u-boot.git;a=tree;f=arch> / > arm <htt

[U-Boot] Q: NAND read/write: unaligned offset

2011-07-01 Thread Ran Shalit
Hello, I am trying to read\write NAND from unaligned offset & length. I saw Scott Wood patch in http://lists.denx.de/pipermail/u-boot/2010-August/076435.html for allowing unaligned length, but I see that it still demands unaligned offset in write, and also the patch added demand for unaligned offs

Re: [U-Boot] Q: NAND read/write: unaligned offset

2011-07-01 Thread Ran Shalit
> > > > For writes, you'll need to do a read-modify-write sequence on the entire > block, after you determine what the proper block is given prior > block-skipping. Or better, don't try to use this simplistic mechanism to > do writes in the middle of a partition -- use something like ubi that was

Re: [U-Boot] Q: NAND read/write: unaligned offset

2011-07-01 Thread Ran Shalit
For writes, you'll need to do a read-modify-write sequence on the entire block, after you determine what the proper block is given prior block-skipping. Or better, don't try to use this simplistic mechanism to do writes in the middle of a partition -- use something like ubi that was meant for this

Re: [U-Boot] Q: NAND read/write: unaligned offset

2011-07-01 Thread Ran Shalit
On Fri, Jul 1, 2011 at 1:42 PM, Scott Wood wrote: > On Fri, 1 Jul 2011 13:29:41 -0700 > Ran Shalit wrote: > > > I might be missing something... > > When using nand_write_skip_bad, the aligned offset refers to page (not > > sector or block), so if as I understand , I

Re: [U-Boot] Q: NAND read/write: unaligned offset

2011-07-01 Thread Ran Shalit
> > > When using nand_write_skip_bad, the aligned offset refers to page (not > > sector or block), so if as I understand , I can read from the start of > > page the whole relevant data, then modify only the parts which is > changed, > > That's not the same thing as just filling in the parts you're

[U-Boot] write to mcBsp address space

2011-02-14 Thread Ran Shalit
Hello, I'm working on OMAPL138 EVM board, with the U-BOOT. I'm trying to access and write into the register (which have write bits), but I always read 0 in all the map space of the mcBSP0 and mcBSP1. (0x01d1 - 0x1d10800, 0x01d11000 - 0x1d11800). I wonder what I missed here. any ideas are welco

[U-Boot] question: multiple serial

2011-02-24 Thread Ran Shalit
Hello, I try to understand what is the right way in U-Boot to configure multiple serials. I use in my board more 3 UART's , one of them is the console. Should I define config_serial_multi ? when I did try to do so, I got "#error No default console" though UART2 is defined as console. Could it be t

Re: [U-Boot] question: multiple serial

2011-02-27 Thread ran shalit
Stefano Babic wrote: > > On 02/24/2011 09:53 PM, Ran Shalit wrote: >> Hello, >> >> I try to understand what is the right way in U-Boot to configure multiple >> serials. > > That is correct. > >> I use in my board more 3 UART'

Re: [U-Boot] question: multiple serial

2011-02-27 Thread ran shalit
Hi, In the same subject of multiple serials, there is something else which I am not sure about: All the serial use the same driver (NS16550), but in the board h. file (da850evm.h) there is the following definition: #define CONFIG_SYS_NS16550_CLK clk_get(DAVINCI_UART2_CLKID) UART2 is the

[U-Boot] question: ns16550 clock

2011-03-01 Thread Ran Shalit
Hello, I am using multiple serials (all UART'S) , and I am confused as to the meaning of the ns16550 clock. By default it is defined : #define CONFIG_SYS_NS16550_CLK clk_get(DAVINCI_UART2_CLKID) But if ns16550 driver is the same for all UART'S, it seems wrong to define it to depend on UART2 cloc

[U-Boot] multiple serial

2011-03-04 Thread Ran Shalit
Hello, I am trying to undertsnad the multiple serial configuration/usage in u-boot. in doc/ README.serial_multi

[U-Boot] Q: MII read

2011-03-13 Thread Ran Shalit
Hello, I would like to ask a question regarding the MII functionality : When using mii commands (cmd_mii.c) everything works well, until trying to do a ping (using net command). After any ping try(with success or not), the mii read function is stuck. Maybe it has to do with davinci mii implementa

[U-Boot] Q: nand usage

2011-03-17 Thread Ran Shalit
Hello, When using the nand, with regards to its implementation in U-boot or linux, does a good strategy would be to map Nand to areas with *space* between the end of one area to the start on another ? It seems a good ideas becuase of the bad block issue and the skipping of bad blocks. I did not fi

Re: [U-Boot] Q: nand usage

2011-03-18 Thread ran shalit
Hello, I think my question was not very well expressed. I ment to ask about the mapping of the partitions inside the NAND: Does each partitions need some spare blocks (padding block) becuase of the bad block skipping in the Nand ? As I said, I did not find any information about the strategy of ma

Re: [U-Boot] Q: nand usage

2011-03-18 Thread ran shalit
wd wrote: > > >> I think my question was not very well expressed. I ment to ask about the >> mapping of the partitions inside the NAND: Does each partitions need some >> spare blocks (padding block) becuase of the bad block skipping in the >> Nand ? >> As I said, I did not find any information

[U-Boot] SPI - cs validity

2011-04-05 Thread Ran Shalit
Hello, I am trying to understand the logic behind the implementation of SPI interface, and came across a validity routine (for different baords it is about the same): for Atmel and Davinci for example: int spi_cs_is_valid(unsigned int bus, unsigned int cs) { return bus == 0 && cs == 0; } Altho

Re: [U-Boot] SPI - cs validity

2011-04-06 Thread Ran Shalit
> It seems that currently both atmel & davinci boards supports only 1 spi > instance at a time. > > In order to support different spi instances, > In case of atmel declare SPIx_BASE as required & set CONFIG_DEFAULT_SPI_BUS > to required bus > In case of davinci set CONFIG_SYS_SPI_BASE to base addre

Re: [U-Boot] ramtron f-ram

2011-04-12 Thread Ran Shalit
Hello, I use the spi interfaces with more then one flash in the U-Boot. Actually I use one spi fram(ramtron) and one spi flash (stmicro). I first thought that configuring both flags is just what I need: CONFIG_SPI_FLASH_STMICRO CONFIG_SPI_FLASH_RAMTRON But since the ramtron implementation change t

[U-Boot] Periodic task

2015-08-25 Thread Ran Shalit
Hello, I need to do some periodic very simple task during u-boot prompt (while u-boot wais for commands). The task is very simple, just writing into a watchdog refresh register. But it seems that it's very difficult to "hack" u-boot with such periodic task. I see that main loop is waiting in loop

Re: [U-Boot] Periodic task

2015-08-25 Thread Ran Shalit
On Wed, Aug 26, 2015 at 7:45 AM, Heiko Schocher wrote: > Hello Ran, > > Am 25.08.2015 um 22:03 schrieb Ran Shalit: >> >> Hello, >> >> I need to do some periodic very simple task during u-boot prompt >> (while u-boot wais for commands). The task is very

Re: [U-Boot] Periodic task

2015-08-26 Thread Ran Shalit
On Wed, Aug 26, 2015 at 10:05 AM, Heiko Schocher wrote: > Hello Ran, > > > Am 26.08.2015 um 08:09 schrieb Ran Shalit: >> >> On Wed, Aug 26, 2015 at 7:45 AM, Heiko Schocher wrote: >>> >>> Hello Ran, >>> >>> Am 25.08.2015 um 22:03 schr

Re: [U-Boot] Periodic task

2015-08-26 Thread Ran Shalit
On Wed, Aug 26, 2015 at 12:29 PM, Heiko Schocher wrote: > Hello Ran, > > > Am 26.08.2015 um 10:57 schrieb Ran Shalit: >> >> On Wed, Aug 26, 2015 at 10:05 AM, Heiko Schocher wrote: >>> >>> Hello Ran, >>> >>> >>> Am 26.08.2015

[U-Boot] nand bad block identification

2016-07-26 Thread Ran Shalit
Hello, I would like to ask if u-boot is capable of identifying bad blocks, as described in the following article in section "Recognizing Bad Blocks" (page 2). In essence, it says that we should scan the first page in each block and check if the first word in OOB is equal 0xff (if not - it's bad b

[U-Boot] Q: erase.raw for NAND ?

2016-07-26 Thread Ran Shalit
Hello, I am trying to detect bad blocks in nand by erasing blocks and checking if all bytes are 0x... I want to include the OOB area in such testing (so that I treat them as regular bytes in nand, which can be read,write, and erased) In u-boot there is support for nand read.raw & write.raw, b

[U-Boot] can't change stdin and stdout environment

2016-03-19 Thread Ran Shalit
Hello, I have some strange behaviour when trying to modify stdin and stdout in u-boot environment. I do $setenv stdout nc but on watching the value $pri stdout stdout=serial It always keeps serial , and it given no error on trying to modify it. Is there any idea ? Regards, Ran _

[U-Boot] AES library used for kernel loading ?

2017-03-13 Thread Ran Shalit
Hello, I intend to use AES for kernel loading, and before kernel programming from u-boot. Is there some package which already does that yet ? Another thing, can I expect that it will work if we use openssl 128, cbc in host for sending the file (from hoist to target) ? I see that library support

[U-Boot] standalone application

2017-06-06 Thread Ran Shalit
Hello, I am trying to load standalone application. It works fine with the hello_world example ( bin format). Then I move to build and run another application (uc/os) in eclipse. The problem is that the bin format is very large. Is there a way to load other a standalone application in another forma

[U-Boot] eeprom - spi collides with i2c

2016-12-02 Thread Ran Shalit
Hello, I'm trying to use eeprom with u-boot. I've added CONFIG_CMD_EEPROM, But then I see that the file uses spi epprom (bacause config use CONFIG_SPI for other devices - not eeprom). Does it mean I just need to #undef CONFIG_SPI at the start of cmd_eeprom.c file ? Thank you! Ran

[U-Boot] u-boot environment tool

2018-03-29 Thread Ran Shalit
Hello, Is there a tool to create u-boot environment from text and save into SPI NOR flash ? Thank you, Ran ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] u-boot environment tool

2018-03-29 Thread Ran Shalit
On Thu, Mar 29, 2018 at 10:57 AM, Chris Packham wrote: > On Thu, Mar 29, 2018 at 8:19 PM, Ran Shalit wrote: >> Hello, >> >> Is there a tool to create u-boot environment from text and save into >> SPI NOR flash ? >> > > You'll get some mileage out of to

[U-Boot] send message on serial ports

2018-04-19 Thread Ran Shalit
Hello, Is it possible to send a message on different uart ports , while leaving the console in the same port ? Which command in common can be used for that ? Thank you, ranran ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u

[U-Boot] tftp reliability

2017-09-18 Thread Ran Shalit
Hello, Does tftp checks the integrity of the file with checksum or any other similar method ? If not - how can it assure the reliability of the file that was transferred ? Thank you, Ran ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de

Re: [U-Boot] tftp reliability

2017-09-18 Thread Ran Shalit
On Tue, Sep 19, 2017 at 7:04 AM, Chris Packham wrote: > On Tue, Sep 19, 2017 at 8:26 AM, Ran Shalit wrote: >> Hello, >> >> Does tftp checks the integrity of the file with checksum or any other >> similar method ? If not - how can it assure the reliability of the &

[U-Boot] eeprom with i2c (instead spi)

2016-12-29 Thread Ran Shalit
Hello, I'm trying to use eeprom with u-boot. I've added CONFIG_CMD_EEPROM, But then I see that the file uses spi eeprom (because config use CONFIG_SPI for other devices - not eeprom). Does it mean I just need to #undef CONFIG_SPI at the start of cmd_eeprom.c file ? Thank you! Ran

[U-Boot] i2c_set_bus_num freeze

2017-01-26 Thread Ran Shalit
Hello, I have some issue in u-boot trying to access bus #1. I can access bus #0, #2 with i2c dev 0/2 I can also access bus #0,1,2 from linux. But on trying to access i2c #1 in u-boot in hangs: The function i2c_set_bus_num get stuck . ret = i2c_set_bus_num(1); <<--- never gets here .

Re: [U-Boot] i2c_set_bus_num freeze

2017-01-26 Thread Ran Shalit
On Jan 27, 2017 1:20 AM, "Adam Ford" wrote: > > > > On Jan 26, 2017 11:44 AM, "Ran Shalit" wrote: >> >> Hello, >> >> I have some issue in u-boot trying to access bus #1. >> >> I can access bus #0, #2 with i2c dev 0/2 >>

Re: [U-Boot] i2c_set_bus_num freeze

2017-01-26 Thread Ran Shalit
On Fri, Jan 27, 2017 at 8:46 AM, Heiko Schocher wrote: > Hello Ran, > > Am 26.01.2017 um 18:42 schrieb Ran Shalit: > >> Hello, >> >> I have some issue in u-boot trying to access bus #1. >> > > On which hardware? Is the board in mainline? Yes, it&#

Re: [U-Boot] i2c_set_bus_num freeze

2017-01-26 Thread Ran Shalit
On Fri, Jan 27, 2017 at 9:08 AM, Ran Shalit wrote: > > > On Fri, Jan 27, 2017 at 8:46 AM, Heiko Schocher wrote: > >> Hello Ran, >> >> Am 26.01.2017 um 18:42 schrieb Ran Shalit: >> >>> Hello, >>> >>> I have some issue in u-boot try