Does anyone know how to dd uboot for the tiny6410 in linux?

Reggie
Hi All, using sd-flasher.exe on a linux development system is a pita, does
anyone know how to dd either superboot or u-boot to an sd card in linux?  

I've had a look all over the interwebs and I can't find anyone that
actually does it, it seems that everyone uses sd-flasher.exe which is
pretty stupid considering these boards seem to revolve around linux.

Juergen Beisert
Nobody do it with 'dd', because it is not possible. The iROM code inside
the S3C6410 SoC expects a special sector layout. You need a tool which
first inspects the SD card (its sector count) and then spreads the u-boot
binary to the card.
If you use my BSP for the Mini6410 then you have such a small tool. But it
still fails to populate cards with more than 2 GiB capacity (SDSC versus
SDHC types of cards).

Reggie
That's odd as the irom application note mentions being able to use sdhc
cards, there's also no issue using superboot on a 4GB card, so I wonder
exactly where the limitation is Juergen?

Juergen Beisert
The limitation is
 - a bug in the iROM code which needs an annoying sector layout for SDHC
   cards. This layout differs from the SDSC cards.
 - u-boot needs some different settings when compiling it, to support this
   annoying sector layout at runtime
 - you need to u-boot binaries: one for the SDSC cards, and one for the
   SDHC cards. Maybe I'm wring, but I wasn't able to make it work with
   SDHC cards yet.

I started a different approach to be able to load Barebox instead, but it
is still not finished, because Barebox for the Mini6410 is still not fully
functional (lack of SD card support).

Reggie
Any chance you can share what information you have about the weird sector
layout for the sdhc cards and the irom bug?  Or at least where I can start
researching it?

Juergen Beisert
> Any chance you can share what information [...]

Sure. Give me your email address and I will send you the relevant PDF.
AFAIR it was posted here in the forum. But I'm not sure.
I could also provide a GIT repository with the current state of my own
bootloader which tries to deal with the sector layout.

Reggie
Thanks Juergen, I think I pretty much found all the information I needed,
there's a irom pdf and if you wander around the chinese part of the
internet there is a ton of info, those guys appear to have uboot and sdhc
working quite nicely.  I might get back to you though if it turns out this
information isn't quite enough.

yiqingliang
to Juergen Beisert :
can you share the current barebox state on 6410?
or the git repository?

I have find a nand boot patch:
(from http://www.cnblogs.com/lknlfy/archive/2013/05/26/3100382.html)
http://files.cnblogs.com/lknlfy/barebox-1.patch.rar

but the code is big different with s3c2440 in barebox.

any schedule for official support nand boot and sd card boot?

my email: niqingliang2003@gmail.com

Juergen Beisert
yiqingliang,

> can you share the current barebox state on 6410? or the git repository?

git://git.pengutronix.de/git/barebox.git

> but the code is big different with s3c2440 in barebox.

Sure. The Mini6410 uses a completely different SoC than the Mini2440.

> any schedule for official support nand boot and sd card boot?

No