Need to exclude some ./flash.sh commands for pandaboard #193

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@malini
malini commented Jan 17, 2013

Pandaboards are special. You have to manually put the pandaboard in fastboot mode because any 'reboot' command causes it to just shutdown and not reboot, so I had to change some things in ./flash.sh:

  • remove reboot bootloader code,
  • erase userdata takes eons to complete and isn't necessary, so i removed it
  • update_time doesn't work because you can't reboot the panda this way. It just shuts down, so i removed it for pandas

I tested this flash.sh file against a pandaboard and for an unagi build, and it works as expected. The Unagi build runs all the previous commands, and the pandabuild excludes the ones in the if statements.

@tdz
Contributor
tdz commented Jan 18, 2013

Hi, thanks for the patch. It tried it, but it doesn't work for me. The board doesn't restart and fastboot ignores all commands. If you don't restart the board, how do you get into a state where you can flash the images?

The problem with rebooting might be that the board's boot loader hangs during the reboot, such that it looks like it shut down. I see this sometimes, but you won't notice without serial output.

I'd definitely take the second part where you skipped over erasing the userdata partition. For the other parts, could you make them dependent on a command-line switch; something like '--no-reboot'?

@malini
malini commented Jul 4, 2013

Thanks for the review, but we switched gears and this is no longer being used for automation.

@malini malini closed this Jul 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment