Bootloader on Mini-210

iah.vector
I have a mini-210 with Android pre-installed on the NAND flash. I have a
linux OS customized by me that I want to boot from the SD card while
keeping the Android intact on the NAND. I need the steps to do that using
the default bootloader on the board or the steps to replace it with U-Boot
to do the same function.

Gall
Currently there is no official support for Mini210 in U-boot. There was an
unofficial build somewhere on the web. It's not trivial to make it work.

To boot Superboot from SD card you have to place it starting at sector 1.
From Linux, you can do

dd if=superboot.bin of=/dev/your/sd/card bs=512 seek=1

To boot U-boot, you have to do exactly the same with 1st stage binary and
then plase 2nd stage binary at sector 49 (usually).

dong
hey~can u explain why seek=1 ﹠seek=49?
any help will be appreciated

Gall
The built-in iROM code on S5PV210 looks for bootloader at sector 1 of the
MMC card. (Each sector is 512 bytes, first sector is nubmer 0). Thus
seek=1.

U-boot's first stage looks for the second stage at certain sector too. Many
U-boot distributions have 48 sectors reserved for 1st stage plus
environment, resulting in stage2 starting at sector 49. This is most likely
caused by copying and pasting the code from some other board's u-boot.

Right now I'm preparing Barebox support for tiny210. It is not quite ready
yet. It looks for both stage1 and stage2 at sector 1, just like superboot.
Hope you'll be able to use it soon, too.

dong
totally understand.
Thank you very much,looking forward to your Barebox support for 210

rakesha
Hi, 
   I have done booting from SD card, stuck up in booting from NAND.
   please help in this .

Regards,
Rakesha PN

rakesha
Hi,
   As explained above writen First level bootloader in to sector 1 and
second level boot loader in to sector 49 of SD card but now i am stuck up
with  booting from NAND ( i kept Fist level boot loader in to page zero on
NAND) when power is appied i am not getting anything in serial prompt and i
added a code to LED to on in the First stage boot loader that LEDs are on
only if i do SD boot but nothing is working for NAND boot help in this i am
totaly stuck up. not able to proceed