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
1=== modified file 'linaro_media_create/boards.py'
2--- linaro_media_create/boards.py 2011-03-05 14:33:21 +0000
3+++ linaro_media_create/boards.py 2011-03-05 22:07:55 +0000
4@@ -418,22 +418,6 @@
5 load_addr = '0x70008000'
6 kernel_suffix = 'linaro-imx5'
7
8- @classmethod
9- def _make_boot_files(cls, uboot_parts_dir, boot_cmd, chroot_dir,
10- boot_dir, boot_script, boot_device_or_file):
11- uboot_imx_file = os.path.join(chroot_dir, 'usr', 'lib', 'u-boot', 'mx53_loco', 'u-boot.imx')
12- uboot_bin_file = os.path.join(chroot_dir, 'usr', 'lib', 'u-boot', 'mx53_loco', 'u-boot.bin')
13- if os.path.exists(uboot_imx_file):
14- uboot_file = uboot_imx_file
15- uboot_padded = 0
16- else:
17- uboot_file = uboot_bin_file
18- uboot_padded = 1
19- install_mx5_uboot(uboot_file, uboot_padded, boot_device_or_file)
20- make_uImage(cls.load_addr, uboot_parts_dir, cls.kernel_suffix, boot_dir)
21- make_uInitrd(uboot_parts_dir, cls.kernel_suffix, boot_dir)
22- make_boot_script(boot_cmd, boot_script)
23-
24
25 class VexpressConfig(BoardConfig):
26 uboot_flavor = 'ca9x4_ct_vxp'
27@@ -542,18 +526,6 @@
28 proc.wait()
29
30
31-def install_mx5_uboot(uboot_file, padded, boot_device_or_file):
32- proc = cmd_runner.run([
33- "dd",
34- "if=%s" % uboot_file,
35- "of=%s" % boot_device_or_file,
36- "bs=1024",
37- "seek=1",
38- "skip=%d" % padded,
39- "conv=notrunc"], as_root=True)
40- proc.wait()
41-
42-
43 def _get_mlo_file(chroot_dir):
44 # XXX bug=702645: This is a temporary solution to make sure l-m-c works
45 # with any version of x-loader-omap. The proper solution is to have

Subscribers

People subscribed via source and target branches