Merge lp:~lool/linaro-image-tools/mx53-loco into lp:~linaro-landing-team-freescale/linaro-image-tools/mx53-loco

Proposed by Loïc Minier
Status: Merged
Merged at revision: 291
Proposed branch: lp:~lool/linaro-image-tools/mx53-loco
Merge into: lp:~linaro-landing-team-freescale/linaro-image-tools/mx53-loco
Diff against target: 45 lines (+0/-28)
1 file modified
linaro_media_create/boards.py (+0/-28)
To merge this branch: bzr merge lp:~lool/linaro-image-tools/mx53-loco
Reviewer Review Type Date Requested Status
Linaro Landing Team: Freescale Pending
Review via email: mp+52309@code.launchpad.net

Description of the change

Misc cleanups and simplifications; biggest change is to require u-boot.imx, this makes the implementation much simpler.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'linaro_media_create/boards.py'
--- linaro_media_create/boards.py 2011-03-05 14:33:21 +0000
+++ linaro_media_create/boards.py 2011-03-05 22:07:55 +0000
@@ -418,22 +418,6 @@
418 load_addr = '0x70008000'418 load_addr = '0x70008000'
419 kernel_suffix = 'linaro-imx5'419 kernel_suffix = 'linaro-imx5'
420420
421 @classmethod
422 def _make_boot_files(cls, uboot_parts_dir, boot_cmd, chroot_dir,
423 boot_dir, boot_script, boot_device_or_file):
424 uboot_imx_file = os.path.join(chroot_dir, 'usr', 'lib', 'u-boot', 'mx53_loco', 'u-boot.imx')
425 uboot_bin_file = os.path.join(chroot_dir, 'usr', 'lib', 'u-boot', 'mx53_loco', 'u-boot.bin')
426 if os.path.exists(uboot_imx_file):
427 uboot_file = uboot_imx_file
428 uboot_padded = 0
429 else:
430 uboot_file = uboot_bin_file
431 uboot_padded = 1
432 install_mx5_uboot(uboot_file, uboot_padded, boot_device_or_file)
433 make_uImage(cls.load_addr, uboot_parts_dir, cls.kernel_suffix, boot_dir)
434 make_uInitrd(uboot_parts_dir, cls.kernel_suffix, boot_dir)
435 make_boot_script(boot_cmd, boot_script)
436
437421
438class VexpressConfig(BoardConfig):422class VexpressConfig(BoardConfig):
439 uboot_flavor = 'ca9x4_ct_vxp'423 uboot_flavor = 'ca9x4_ct_vxp'
@@ -542,18 +526,6 @@
542 proc.wait()526 proc.wait()
543527
544528
545def install_mx5_uboot(uboot_file, padded, boot_device_or_file):
546 proc = cmd_runner.run([
547 "dd",
548 "if=%s" % uboot_file,
549 "of=%s" % boot_device_or_file,
550 "bs=1024",
551 "seek=1",
552 "skip=%d" % padded,
553 "conv=notrunc"], as_root=True)
554 proc.wait()
555
556
557def _get_mlo_file(chroot_dir):529def _get_mlo_file(chroot_dir):
558 # XXX bug=702645: This is a temporary solution to make sure l-m-c works530 # XXX bug=702645: This is a temporary solution to make sure l-m-c works
559 # with any version of x-loader-omap. The proper solution is to have531 # with any version of x-loader-omap. The proper solution is to have

Subscribers

People subscribed via source and target branches