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

2011-07-02 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 not writing
 with 0xFFs, but still it's not safe unless you erase the block.  Even if
 the
 main portion of the page doesn't contain any bits that go from 0 to 1, and
 you've got the data to calculate the proper new ECC, the ECC itself will
 probably have bits going from 0 to 1.

 Plus, some chips may not take writing 0xFFs as a no-op -- see the
 recent patches to support skipping pages with all 0xFFs on write.

 -Scott

 I wanted to write different parts of the page each time. And now I
undertsand that
the ECC is stored for each page, which mean that what I am trying to do , is
impossible  (if I am using ecc),
i.e. writing the same page without erasing is not allowed when using ecc. Am
I right about this conclusion ?

Thanks, Ran
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] OpenRD Ultimate SATA SD

2011-07-02 Thread Albert ARIBAUD
Hi Alexei,

(sorry for missing that reply)

Le 20/06/2011 11:30, Alexei Ozhigov a écrit :
 2011/6/18 Albert ARIBAUDalbert.u.b...@aribaud.net:
 Hi,

 Le 17/06/2011 10:29, Alexei Ozhigov a écrit :

 2011/6/17 Prafulla Wadaskarprafu...@marvell.com:


 -Original Message-
 From: Philip Hands [mailto:p...@hands.com]
 Sent: Friday, June 17, 2011 1:33 AM
 To: Alexei Ozhigov
 Cc: Prafulla Wadaskar; u-boot@lists.denx.de; Prabhanjan Sarnaik; Ashish
 Karkare
 Subject: Re: [U-Boot] OpenRD Ultimate SATASD

 On Thu, 16 Jun 2011 16:18:46 +0400, Alexei Ozhigov
 alexei.ozhi...@gmail.comwrote:
 ...

 I am experiencing the same problem with SATA right now with
 v2011.06-rc2 (tried also the latest master). If MVSATA_STATUS_TIMEOUT
 in mvsata_ide_initialize_port is ignored, SATA drive is found on the
 second port and I am able to read the drive's content.

 Inspired by what you say about timeouts, I thought perhaps increasing
 the timeout from 10ms to 1s might make a difference -- that worked!

 ... except that now, it's working regardless :-(

 So, I've no idea if that's really related to what's going on, because
 I've now gone as far as reducing the timeout to 5ms and it's _still_
 working fine, so perhaps some part of the SATA subsystem was in a state
 that was somehow reset by waiting a bit longer for the startup once, and
 that's somehow fixed it.

 It is still working despite powering down the machine for a while, so
 I'm guessing whatever changed is something to do with the state of the
 hard drive.

 Sadly that means that I've now lost the ability to test this, since
 trying any of the versions that were previously failing now work.

 Anyway, Alexei, try increasing the timeout (i.e. the value being
 assigned to timeleft) --- if that works for you too, it seems pretty
 harmless, so might be appropriate for wider adoption.

 I have already tried longer timeouts for timeleft and it does not help.

 Also with timeout circumvention the SATA flash card I was hoping to
 boot from (Transcend TS1GSDOM22V) is identified as follows:

 Bus 0: OK Bus 1: OK
Device 0: Model: TRANSCEND  Firm: 20080128 Ser#: 200804070005
  Type: Hard Disk
  Capacity: 955.8 MB = 0.9 GB (1957536 x 512)
 IDE read: device 0 not ready
 IDE read: device 0 not ready
Device 1: Model:  Firm:  Ser#:
  Type: Hard Disk
  Capacity: not available

 And then the card cannot be read. First attempt shows OK although
 the data written to memory are wrong, next attempts result in device
 0 not ready. On the other hand, Linux (Debian ARM port) does not
 recognize the card either. So if this problem is not related to
 improper initialization, the question is how SATA flash differs from
 regular SATA drives with respect to SATA controller in 88F6281 and if
 it is actually possible to work with SATA flash on OpenRD.

 Can you #define DEBUG at the start of common/cmd_ide.c and rerun the test?

 Amicalement,
 --
 Albert.



 That is what is printed with regular SATA drive:

 
 Marvell  ide reset

 Reset IDE: MVSATA_STATUS_TIMEOUT
 ide_preinit failed
 Bus 0: ide_outb (dev= 0, port= 0x118, val= 0xe0) : @ 0xf1082118
 ide_inb (dev= 0, port= 0x11c) : @ 0xf108211c -  0x50
 OK Bus 1: ide_outb (dev= 1, port= 0x118, val= 0xf0) : @ 0xf1082118
 ide_inb (dev= 1, port= 0x11c) : @ 0xf108211c -  0x50
 OK
Device 0: ide_outb (dev= 0, port= 0x118, val= 0xe0) : @ 0xf1082118
 ide_outb (dev= 0, port= 0x11c, val= 0xec) : @ 0xf108211c
 ide_inb (dev= 0, port= 0x11c) : @ 0xf108211c -  0xd0
 ide_inb (dev= 0, port= 0x11c) : @ 0xf108211c -  0x58
 in input data base for read is f1082100
 Model: TOSHIBA MK1637GSX  Firm: DL030G Ser#:  97FXT4OUT
  Type: Hard Disk
  Supports 48-bit addressing
  Capacity: 152627.8 MB = 149.0 GB (312581808 x 512)
 ide_read dev 0 start 10010, blocks 1FFBAC64 buffer at 10
 ide_outb (dev= 0, port= 0x118, val= 0xe0) : @ 0xf1082118
 ide_inb (dev= 0, port= 0x11c) : @ 0xf108211c -  0x50
 ide_outb (dev= 0, port= 0x11c, val= 0xe5) : @ 0xf108211c
 ide_inb (dev= 0, port= 0x11c) : @ 0xf108211c -  0x50
 ide_inb (dev= 0, port= 0x108) : @ 0xf1082108 -  0xff
 Powersaving FF
 ide_inb (dev= 0, port= 0x11c) : @ 0xf108211c -  0x50
 ide_outb (dev= 0, port= 0x108, val= 0x01) : @ 0xf1082108
 ide_outb (dev= 0, port= 0x10c, val= 0x10) : @ 0xf108210c
 ide_outb (dev= 0, port= 0x110, val= 0x00) : @ 0xf1082110
 ide_outb (dev= 0, port= 0x114, val= 0x00) : @ 0xf1082114
 ide_outb (dev= 0, port= 0x118, val= 0xe0) : @ 0xf1082118
 ide_outb (dev= 0, port= 0x11c, val= 0x20) : @ 0xf108211c
 ide_inb (dev= 0, port= 0x11c) : @ 0xf108211c -  0xd0
 ...
 ide_inb (dev= 0, port= 0x11c) : @ 0xf108211c -  0xd0
 ide_inb (dev= 0, port= 0x11c) : @ 0xf108211c -  0x58
 in input data base for read is f1082100
 ide_inb (dev= 0, port= 0x11c) : @ 0xf108211c -  0x50
 ide_read dev 0 start 1, blocks 1FE32A78 buffer at 0
 ide_outb (dev= 0, port= 

Re: [U-Boot] Pull request: u-boot-arm/master (updated)

2011-07-02 Thread Albert ARIBAUD
Hi Reinhard,

Le 01/07/2011 13:47, Reinhard Meyer a écrit :

 I *just* have to move all other relevant files there ;)
 I think getting it *all* up would take a good afternoon ;)
 I'll see what I can do.

Are you going to fix the author names in your pull request? If not, I'll 
fix that locally in u-boot-arm and re-issue a pull request -- unless 
wolfgang NAKs me doing it.

 Best Regards,
 Reinhard

Amicalement,
-- 
Albert.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] U-boot with USB storage support for WonderMedia WM8505

2011-07-02 Thread EvilSibling

Hi everyone,

I'm new to this forum so im not sure if im in the right place. I tried
searching for a solution but didnt find a solution.

I have a 7 Netbook based on the WonderMedia WM8505 processor. Based on all
the other forums ive read out there it looks like the hardware is very
similar to a lot of the other 7 netbooks and 7 tablets out there.

The netbook came preloaded with Windows CE 6.

The problem ive got is I inherited the netbook broken. It appeares to be
broken after a failed Android install.

The serial console on the mainboard shows wload and u-boot starts fine.

The problem looks to me like the Android installer has replaced the u-boot
which was preloaded on the netbook.

I looked through the environment variables in u-boot via the serial console
and i saw an old bootcmd variable which referred to USB commands - usbinit,
fatload usb 0:1, etc to boot the system however the uboot which is running
on the netbook now has no such commands available.

The new u-boot seems to support NAND, IDE, and MMC storage because commands
for those storage devices are available, however the NAND and IDE commands
both report no devices/controllers detected.

Ive inspected the mainboard in this netbook and its onboard storage is a USB
flash disk - that is its a 2gig NAND flash presented to the system via USB.

So my question is this.

Can anyone suggest where I could download a u-boot which has usb storage
support which might run on this netbook?

OR

Can anyone give me any suggestions how I could make a compatible u-boot from
source.

Ive downloaded the source from the DENX website and had a look but the
problem ive got is the 'make' program expects me to specify which system
board to build the u-boot binary for but none of the board names in the
u-boot source seem to resemble anything like the board in this netbook so I
dont know which board configuration to use.

These netbooks are so common and all have such similar hardware surely one
of the board configurations would match well but which one?


Heres some info about the netbook:
Make/Model: Easy Notebook Model P701
The netbook was originally purchased from
http://www.oo.com.au/EasyNotebook_Ultra_Portable_La_P41265.cfm
MOBO: P701_MAIN_V9 20100927
Daughter board: CPU8505_V3
CPU: WM8505 - WonderMedia 8505 ARM926EJ-S (ARMv5)
Flash: F40-100GCP 4Mbit serial flash
RAM: Hynix h5ps1g63efr-y5c - 128meg DDR2 667Mhz
LAN: Via Velocity VT6113
WIFI: Ralink RT3070
Sound: Everest Semiconductor ES8328 Low Power Codec
USB Hub: Genesys Logic GL850G
Storage: Samsung MLC Flash K9GAG08U0E-SCB0 - 2Gig via Chipsbank CBM2093
USB-Flash controller
Pointing device: Cube FKT0107D
Unknown: HT-95A-2 - Possibly keyboard encoder/decoder?
LEDs available: Caps lock, Scroll Lock, Num Lock, Battery Charging, Powered
on

Ive uploaded some images of the mainboard and daughter board
http://old.nabble.com/file/p31979430/IMG00193-20110701-1615.jpg Underside of
mainboard 
http://old.nabble.com/file/p31979430/IMG00194-20110701-1616.jpg Topside of
mainboard 

Really appreciate any and all help.
-- 
View this message in context: 
http://old.nabble.com/U-boot-with-USB-storage-support-for-WonderMedia-WM8505-tp31979430p31979430.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] Claim is Free

2011-07-02 Thread Motorola
You have been selected for a cash prize of £400,000.00GBP  from Motorola 
Promotion 2011. Contact Bee Line Services London UK via this 
(beelinedipl...@yahoo.com.hk)
with your Name,Address,Country,Phone Number,Age,for your Fund Release
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] U-boot with USB storage support for WonderMedia WM8505

2011-07-02 Thread Albert ARIBAUD
Hi Evilsibling,

 Can anyone suggest where I could download a u-boot which has usb storage
 support which might run on this netbook?

 OR

 Can anyone give me any suggestions how I could make a compatible u-boot from
 source.

I'd suggest asking the manufacturer -- if they put u-boot in devices 
that they distribute, then they must provide the corresponding source 
code. Did you check this with them?

 Ive downloaded the source from the DENX website and had a look but the
 problem ive got is the 'make' program expects me to specify which system
 board to build the u-boot binary for but none of the board names in the
 u-boot source seem to resemble anything like the board in this netbook so I
 dont know which board configuration to use.

 These netbooks are so common and all have such similar hardware surely one
 of the board configurations would match well but which one?

'Similar' is no warranty as far as booting a device is concerned, and 
you should not bet on 'similar' unless you have absolutely no other choice.

 Heres some info about the netbook:
 Make/Model: Easy Notebook Model P701
 The netbook was originally purchased from
 http://www.oo.com.au/EasyNotebook_Ultra_Portable_La_P41265.cfm
 MOBO: P701_MAIN_V9 20100927
 Daughter board: CPU8505_V3
 CPU: WM8505 - WonderMedia 8505 ARM926EJ-S (ARMv5)
 Flash: F40-100GCP 4Mbit serial flash
 RAM: Hynix h5ps1g63efr-y5c - 128meg DDR2 667Mhz
 LAN: Via Velocity VT6113
 WIFI: Ralink RT3070
 Sound: Everest Semiconductor ES8328 Low Power Codec
 USB Hub: Genesys Logic GL850G
 Storage: Samsung MLC Flash K9GAG08U0E-SCB0 - 2Gig via Chipsbank CBM2093
 USB-Flash controller
 Pointing device: Cube FKT0107D
 Unknown: HT-95A-2 - Possibly keyboard encoder/decoder?
 LEDs available: Caps lock, Scroll Lock, Num Lock, Battery Charging, Powered
 on

 Ive uploaded some images of the mainboard and daughter board
 http://old.nabble.com/file/p31979430/IMG00193-20110701-1615.jpg Underside of
 mainboard
 http://old.nabble.com/file/p31979430/IMG00194-20110701-1616.jpg Topside of
 mainboard

 Really appreciate any and all help.

I suggest trying to track the manufacturer down and ask for the u-boot 
sources.

Amicalement,
-- 
Albert.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] debugging with XDS100v2 Omap 3530

2011-07-02 Thread Amit kumar
Hi,
  I am new to U-Boot and my task involves porting U-Boot to Omap3530. I have
XDS100v2 but I don't have a JTAG Software to support this on Ubuntu host PC.

Please, suggest an open source Jtag Software for this.

-- 
Thanking you.

From:

Amit kumar
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] debugging with XDS100v2 Omap 3530

2011-07-02 Thread Albert ARIBAUD
Hi Amit,

Le 02/07/2011 15:47, Amit kumar a écrit :
 Hi,
I am new to U-Boot and my task involves porting U-Boot to Omap3530. I have
 XDS100v2 but I don't have a JTAG Software to support this on Ubuntu host PC.

 Please, suggest an open source Jtag Software for this.

OpenOCD supports the xds100v2, but not in the version available in the 
Ubuntu 11.04 (Natty) or 11.10 (Oneiric) repositories; you'll have to 
git-clone the latest openocd and build it from source.

Amicalement,
-- 
Albert.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] U-boot with USB storage support for WonderMedia WM8505

2011-07-02 Thread Chris Barnes
Hi Albert,

It would be great if i could get the original u-boot image and/or sources
and maybe even the original Windows CE 6 from the manufacturer, however I
dont know who the manufacturer is.

I cant find anyone who makes Easy Notebook P701 or offers downloads for
it.

These netbooks appear to be mass produced as oem units and rebranded by
numerous different sellers. for example, my netbook also matches the
hardware description of the EPC 7 P701 netbook, and even a netbook called
the Fashion 7 Netbook.


The other issue is that this netbook has been tampered with as far as the
warranty and support is concerned since the previous owner attempted to
install Android which has replaced the wload, the u-boot, and the original
Windows CE system cant be booted anymore so the store the netbook was bought
from wont help.



At this stage i really have no other choice but to take a chance and hope
that someone with similar hardware can provide their working u-boot.

Theres a lot of reports of users attempting to install Android on these
netbooks and ending up in the same position im in but so far ive not seen a
suitable solution. A lot of attempts to fix the problem involve installing a
different u-boot, which ive attempted, but none of them appear to have usb
storage support and therefore the flash disk is unavailable.


My last resort is to go back to the online store where the netbook was
originally purchased and ask someone on their forum if they will be kind
enough to let me copy the u-boot from their working netbook.


On Sat, Jul 2, 2011 at 11:46 PM, Albert ARIBAUD
albert.u.b...@aribaud.netwrote:

 Hi Evilsibling,

  Can anyone suggest where I could download a u-boot which has usb storage
 support which might run on this netbook?

 OR

 Can anyone give me any suggestions how I could make a compatible u-boot
 from
 source.


 I'd suggest asking the manufacturer -- if they put u-boot in devices that
 they distribute, then they must provide the corresponding source code. Did
 you check this with them?

  Ive downloaded the source from the DENX website and had a look but the
 problem ive got is the 'make' program expects me to specify which system
 board to build the u-boot binary for but none of the board names in the
 u-boot source seem to resemble anything like the board in this netbook so
 I
 dont know which board configuration to use.

 These netbooks are so common and all have such similar hardware surely one
 of the board configurations would match well but which one?


 'Similar' is no warranty as far as booting a device is concerned, and you
 should not bet on 'similar' unless you have absolutely no other choice.

  Heres some info about the netbook:
 Make/Model: Easy Notebook Model P701
 The netbook was originally purchased from
 http://www.oo.com.au/**EasyNotebook_Ultra_Portable_**La_P41265.cfmhttp://www.oo.com.au/EasyNotebook_Ultra_Portable_La_P41265.cfm
 MOBO: P701_MAIN_V9 20100927
 Daughter board: CPU8505_V3
 CPU: WM8505 - WonderMedia 8505 ARM926EJ-S (ARMv5)
 Flash: F40-100GCP 4Mbit serial flash
 RAM: Hynix h5ps1g63efr-y5c - 128meg DDR2 667Mhz
 LAN: Via Velocity VT6113
 WIFI: Ralink RT3070
 Sound: Everest Semiconductor ES8328 Low Power Codec
 USB Hub: Genesys Logic GL850G
 Storage: Samsung MLC Flash K9GAG08U0E-SCB0 - 2Gig via Chipsbank CBM2093
 USB-Flash controller
 Pointing device: Cube FKT0107D
 Unknown: HT-95A-2 - Possibly keyboard encoder/decoder?
 LEDs available: Caps lock, Scroll Lock, Num Lock, Battery Charging,
 Powered
 on

 Ive uploaded some images of the mainboard and daughter board
 http://old.nabble.com/file/**p31979430/IMG00193-20110701-**1615.jpghttp://old.nabble.com/file/p31979430/IMG00193-20110701-1615.jpgUnderside
  of
 mainboard
 http://old.nabble.com/file/**p31979430/IMG00194-20110701-**1616.jpghttp://old.nabble.com/file/p31979430/IMG00194-20110701-1616.jpgTopside
  of
 mainboard

 Really appreciate any and all help.


 I suggest trying to track the manufacturer down and ask for the u-boot
 sources.

 Amicalement,
 --
 Albert.




-- 
Kind Regards,

Christopher Barnes
Microsoft Certified Systems Engineer
Microsoft Certified Technology Specialist

e. chris.p.bar...@gmail.com
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] U-boot with USB storage support for WonderMedia WM8505

2011-07-02 Thread Albert ARIBAUD
Le 02/07/2011 16:21, Chris Barnes a écrit :
 Hi Albert,

 It would be great if i could get the original u-boot image and/or
 sources and maybe even the original Windows CE 6 from the manufacturer,
 however I dont know who the manufacturer is.

 I cant find anyone who makes Easy Notebook P701 or offers downloads
 for it.

 These netbooks appear to be mass produced as oem units and rebranded by
 numerous different sellers. for example, my netbook also matches the
 hardware description of the EPC 7 P701 netbook, and even a netbook
 called the Fashion 7 Netbook.

This might prove to be a problem.

 The other issue is that this netbook has been tampered with as far as
 the warranty and support is concerned since the previous owner attempted
 to install Android which has replaced the wload, the u-boot, and the
 original Windows CE system cant be booted anymore so the store the
 netbook was bought from wont help.

They might still let you know which provider they bought from.

 At this stage i really have no other choice but to take a chance and
 hope that someone with similar hardware can provide their working u-boot.

 Theres a lot of reports of users attempting to install Android on these
 netbooks and ending up in the same position im in but so far ive not
 seen a suitable solution. A lot of attempts to fix the problem involve
 installing a different u-boot, which ive attempted, but none of them
 appear to have usb storage support and therefore the flash disk is
 unavailable.

If you know of some u-boot board configs that were successfully used for 
this device, and if the board config has USB support enabled but USB 
storage support disabled, then you *might* have a chance of adding USB 
storage. Can you list these configs that were used and what the result was?

 My last resort is to go back to the online store where the netbook was
 originally purchased and ask someone on their forum if they will be kind
 enough to let me copy the u-boot from their working netbook.

That's assuming they can get their hand on it. It would require access 
to the Flash from the OS level, something that is far from granted.

Amicalement,
-- 
Albert.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [RFC PATCH 6/7] omap: common spl support for OMAP3/4

2011-07-02 Thread Aneesh V
Hi Albert,

On Saturday 02 July 2011 01:21 AM, Albert ARIBAUD wrote:
 Hi Aneesh,

 Le 01/07/2011 13:48, Aneesh V a écrit :
 Dear Andreas,

 On Friday 01 July 2011 03:25 PM, Andreas Bießmann wrote:
 Dear Aneesh,
 [snip ..]
 But the second part is not clear to me. I saw in your linker, that bss
 is placed in SDRAM. In start.S the boundaries for clear_bss are
 calculated at compile time to

 ---8---
 _bss_start_ofs:
 .word __bss_start - _start
 ---8---

 Will that also work with e.g. SDRAM adress space is before SRAM, SDRAM
 addressing is far away ( 4GiB) ... So in you special case it may work,
 but if this is a blueprint for SPL on arm(v7) we should consider this.


 Nice catch. Actually, in my original OMAP4 series I tried to add
 support for disjoint bss to support my case. But now I realize that it
 works only for non-relocation case and that too only when the bss is at
 higher address compared to .text

 Basically disjoint bss is not relocation friendly. So here is what I
 propose:

 1. Modify existing clear_bss sub-routine in start.S to take absolute
 addresses.
 2. In regular u-boot, calculate the relocated bss address and pass to
 this function.
 3. In SPL don't try to calculate the relocated address and directly
 pass the absolute address.

 If this is fine I will make the necessary changes in start.S in the
 next revision.

 So you would compute the BSS location in board_init_f() and pass that to
 relocate_code()?

I was thinking of doing that in start.S itself. I haven't looked at
all the details though.

BTW, please note that I am not trying to support disjoint BSS in
regular u-boot. I think it becomes complex with relocation + it doesn't
seem to be worth when all SDRAM is at our disposal.

So:
1.  #ifdef CONFIG_PRELOADER part in start.s will just pass __bss_start
and __bss_end to the clear_bss function(assumes no relocation).
2. #else part of above will assume that bss follows text and data(or at
least that __bss_start  _start), so add relocation offset to
__bss_start and __bss_end, and pass them to the clear_bss()

Does that sound ok?

br,
Aneesh
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot