Merge lp://qastaging/~lool/linaro-image-tools/efikamx into lp://qastaging/linaro-image-tools/11.11
Status: | Merged |
---|---|
Merged at revision: | 290 |
Proposed branch: | lp://qastaging/~lool/linaro-image-tools/efikamx |
Merge into: | lp://qastaging/linaro-image-tools/11.11 |
Diff against target: |
366 lines (+130/-30) 3 files modified
linaro_media_create/boards.py (+18/-4) linaro_media_create/populate_boot.py (+5/-10) linaro_media_create/tests/test_media_create.py (+107/-16) |
To merge this branch: | bzr merge lp://qastaging/~lool/linaro-image-tools/efikamx |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Guilherme Salgado (community) | Approve | ||
Review via email: mp+50151@code.qastaging.launchpad.net |
Description of the change
Relatively simple support for EfikaMX smarttops.
After setting the board up to boot from MMC via DIP switches, it currently doesn't autoboot due to bug #720714, but can be booted with these commands at the u-boot boot prompt:
mmc rescan
mmc part 0
fatload mmc 0:2 0x90000000 boot.scr
source 0x90000000
While working on this, I realized that install_
I've also came across a conflict with usage of "uboot_flavor" which has an omap-specific meaning due to being used in partitions.py; I wonder whether this should be moved to boards.py instead.
On Thu, 2011-02-17 at 13:58 +0000, Loïc Minier wrote: maintainers) /code.launchpad .net/~lool/ linaro- image-tools/ efikamx/ +merge/ 50151
> Loïc Minier has proposed merging lp:~lool/linaro-image-tools/efikamx into lp:linaro-image-tools.
>
> Requested reviews:
> Linaro Maintainers (linaro-
>
> For more details, see:
> https:/
>
> Relatively simple support for EfikaMX smarttops.
>
> After setting the board up to boot from MMC via DIP switches, it currently doesn't autoboot due to bug #720714, but can be booted with these commands at the u-boot boot prompt:
> mmc rescan
> mmc part 0
> fatload mmc 0:2 0x90000000 boot.scr
> source 0x90000000
IIUC this is a workaround for the bug you mentioned above and once the
bug is fixed we'll be able to boot without this?
> omap_boot_ loader( ) and install_ mx5_boot_ loader( ) aren't currently tested, nor are the concrete calls to these functions tested; I figured that this wasn't a regression and that we might drop most of these while moving to hardware pack v2, so I'm sending this in now. If you have suggestions on testing these, they are welcome :-)
>
> While working on this, I realized that install_
>
We could have some simple tests that mock Popen() and check that it was
called with the correct arguments, similar to the make_uImage test in
TestPopulateBoot. The calls to these functions are already tested in
TestBootSteps, though.
> I've also came across a conflict with usage of "uboot_flavor" which has an omap-specific meaning due to being used in partitions.py; I wonder whether this should be moved to boards.py instead.
I'm not sure what you mean here, but uboot_flavor is not used in
partitions.py (I think you mean that it's used in populate_boot.py?).
Also, I've filed a bug recently about refactoring populate_boot.py and
moving it all to boards.py.
> differences between files attachment (review-diff.txt) media_create/ boards. py' media_create/ boards. py 2011-02-14 16:26:08 +0000 media_create/ boards. py 2011-02-17 13:58:01 +0000 script( boot_cmd, boot_script) BoardConfig) : BoardConfig) : %s,115200n8' % serial_tty files(cls, uboot_parts_dir, boot_cmd, chroot_dir, or_file) : mx51evk_ boot_loader( uboot_file, boot_device_ or_file) mx5_boot_ loader( uboot_file, boot_device_ or_file) uboot_parts_ dir, cls.kernel_suffix, boot_dir) script( boot_cmd, boot_script) Mx5Config) :
> === modified file 'linaro_
> --- linaro_
> +++ linaro_
> @@ -346,7 +346,7 @@
> make_boot_
>
>
> -class Mx51evkConfig(
> +class Mx5Config(
> serial_tty = 'ttymxc0'
> extra_serial_opts = 'console=tty0 console=
> live_serial_opts = 'serialtty=%s' % serial_tty
> @@ -390,14 +390,21 @@
> def _make_boot_
> boot_dir, boot_script, boot_device_
> uboot_file = os.path.join(
> - chroot_dir, 'usr', 'lib', 'u-boot', 'mx51evk', 'u-boot.imx')
> - install_
> + chroot_dir, 'usr', 'lib', 'u-boot', cls.uboot_name, 'u-boot.imx')
> + install_
> make_uImage(
> cls.load_addr, uboot_parts_dir, cls.kernel_suffix, boot_dir)
> make_uInitrd(
> make_boot_
>
>
> +class EfikamxConfig(
> + uboot_name = 'efikamx'
Oh, I think I see what you mean now...