Hello Katu, I'm mailing this again, sorry for spelling mistake in email-id in the previous reply..!

I worked on it now. You can use the attached boot script for automation. I have tested it here in my hardware. And it is working..!

The attached script is in text format, you can compile it for u-boot using,
mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "flashnboot" -d boot.txt boot.scr
and place it in the boot partition of the SD card.!

This script will flash MLO and u-boot, from the boot partition on the SD card to NAND flash; and then continue to boot with the kernel on the SD card and proceed to the Linux Shell...!

I hope that will help you..!

Best,

---------------------------------
Sudhangathan BS
Ph:(+91) 9731-905-205
---------------------------------


On Wed, Feb 26, 2014 at 10:32 PM, Katu Txakur <katutxakurra@gmail.com> wrote:
Hi,

Thanks, that's exactly what I've tried to do. The problem is that after the MLO & u-boot flashing part, the system stays in the 
Overo# 

I've tried to add "boot" at the end of the script, but this reboots the machine and runs the same MLO & u-boot script and reboots again and again. I've also tried to continue with the boot using "bootm $loadaddr" but it didn't work either. What is the command to continue with the boot of the SD card without rebooting the system?

Cheers,
Katu


2014-02-26 14:45 GMT+00:00 Sudhangathan B S <sudhangathan@gmail.com>:

Hi, 
I always use 2 scripts. One in the u-boot for flashing MLO and u-boot and the other script in the linux, after booting, to flash the rootfs..!

It can be automated in the same way..!!

Remove the flashing of rootfs part from the u-boot script and MLO & u-boot flashing part from the linux shell script.
u-boot script can be run automatically before booting the kernel image..! and the linux shell script can also be run automatically from the linux..! I haven't tried such an automation before though.! You can try it..!

Best,

---------------------------------
Sudhangathan BS
Ph:(+91) 9731-905-205
---------------------------------


On Wed, Feb 26, 2014 at 7:16 PM, Katu Txakur <katutxakurra@gmail.com> wrote:
Adam,

Thanks for your answer. Unfortunately, I couldn't make it work. I've tried to flash my image in two ways:

1) using a boot.src created with myscript.cmd (attached renamed to myscript_cmd) that runs commands in Overo#
    This script flashes MLO and u-boot correctly but not the kernel image.
    The error displayed is
    Wrong Image Format for bootm command
    ERROR: can't get kernel image!
    That suggests that the kernel image is not in $loadaddr = 0x82000000
   
2) using the flash-image.sh script from linux once the system has booted:
    This script flashes the kernel and rootfs correctly but it fails flashing u-boot.
    Error displayed
    "Error: Bad compare! failed"

So both methods complement each other but none of them works completely. I tried as last option to use 1) for u-boot and 2) for kernel and rootfs, but if I add "boot" at the end of myscript.cmd, the gumstix reboots instead of continuing with the boot process. This makes my boot.src script to run again and again in a loop.

Anyone has managed to do this in an automatized way?
Regards,
Katu

   


2014-02-20 19:45 GMT+00:00 adam <adam@gumstix.com>:
Hi Katu, if I remember correctly, the work around was to use HW ECC (nandecc hw) to write 2nd stage boot loader (u-boot.img). 
Use it with caution though, as I am not aware of what the difference is. 

Adam


On Wed, Feb 19, 2014 at 12:13 PM, katutxakurra [via Gumstix] <[hidden email]> wrote:
Hi,

I want to flash my u-boot.img, uImage and file system to an Overo.
It works following the instructions in

However, I would like to do it booting my image and running a script. We are going to flash about 50 gumstix and I don't want to interrupt the boot process and write a command for each one. Running a script at start would be better.

but the u-boot part doesn't work. when I reboot, I get "Error: Bad compare! failed", as described in http://gumstix.8.x6.nabble.com/nandwrite-and-u-boot-suffix-td4966892.html
and I have to write u-boot manually stopping the boot process.

Can anyone please tell me how to fix that script?

Thank you,
Katu

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users



If you reply to this email, your message will be added to the discussion below:
http://gumstix.8.x6.nabble.com/flashing-u-boot-to-overo-from-linux-tp4968782.html
To start a new topic under Gumstix, email [hidden email]
To unsubscribe from Gumstix, click here.
NAML



View this message in context: Re: flashing u-boot to overo from linux
Sent from the Gumstix mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users



------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk

_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users



------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users



------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users