Hi Sascha,
> > > Can you access the NAND device? Before trying to boot from the device
> > > should make sure that it works using normal U-Boot commands.
> >
> > The only command related to the nand flash when I type help is "nand".
> > Could
> you please tell me some commands to read and write the nand that would work
> from
> the uboot prompt? Where could I find more info on this?
>
> Well the trick is that There are no other commands for nand. When the NAND
> device is initialized you should have a /dev/nand0. From there on you
> can partition the device using addpart, for example like this:
>
> addpart /dev/nand0 256k(uboot),256k(ubootenv),2M(kernel),-(root)
>
> This gives you the partition devices /dev/nand0.uboot and so on. You
> then add bad block aware devices ontop of these partitions:
>
> nand -a /dev/nand0.*
>
> You can use the standard commands like erase / cp / md on these devices.
I did the same. When I do a devinfo, I get:
uboot:/ devinfo
devices:
|----cs0
|----mem
|----nor0
| |----self0
| `----env0
|----ram0
|----eth0
|----phy0
|----nand0
| |----nand0.uboot
| | `----nand0..uboot.bb
| |----nand0.ubootenv
| | `----nand0.ubootenv.bb
| |----nand0.kernel
| | `----nand0.kernel.bb
| `----nand0.root
| | `----nand0.root.bb
|----defaultenv
|----filesystem: /
|----filesystem: /dev
drivers:
imx_serial
partition
fec_imx27
miiphy
nand_device
imx_nand
cfi_flash
imx_spi
mc13783
mem
ram
rom
nand_bb
ramfs
devfs
Now, when I use the cp command, I get
uboot:/ cp env/config dev/nand0.uboot.bb
write: I/O error
uboot:/
Is the the right way of doing it, or is there any other step I am missing out.
I tried the same with the Samsung device but it gives the same error.
Thanks in advance.
Tiju
Be the first one to try the new Messenger 9 Beta! Go to
http://in.messenger.yahoo.com/win/
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
U-Boot-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/u-boot-users