Merge lp:~berolinux/linaro-image-tools/mx6qsabrelite-bootargs into lp:linaro-image-tools/11.11

Proposed by Bernhard Rosenkraenzer
Status: Rejected
Rejected by: Данило Шеган
Proposed branch: lp:~berolinux/linaro-image-tools/mx6qsabrelite-bootargs
Merge into: lp:linaro-image-tools/11.11
Diff against target: 41 lines (+24/-1)
1 file modified
linaro_image_tools/media_create/android_boards.py (+24/-1)
To merge this branch: bzr merge lp:~berolinux/linaro-image-tools/mx6qsabrelite-bootargs
Reviewer Review Type Date Requested Status
Mattias Backman (community) Needs Fixing
Zach Pfeffer Pending
Review via email: mp+95181@code.launchpad.net

Description of the change

New version of the Mx6QSabreLite bootargs patch - this time implemented completely inside android_boards.py

To post a comment you must log in.
Revision history for this message
Mattias Backman (mabac) wrote :

Thanks for the update. I have a couple of more requests.

On Wed, Feb 29, 2012 at 3:34 PM, Bernhard Rosenkraenzer
<email address hidden> wrote:
> Bernhard Rosenkraenzer has proposed merging lp:~berolinux/linaro-image-tools/mx6qsabrelite-bootargs into lp:linaro-image-tools.
>
> Requested reviews:
>  Zach Pfeffer (pfefferz)
>  linaro-image-tools maintainers (linaro-image-tools)
>
> For more details, see:
> https://code.launchpad.net/~berolinux/linaro-image-tools/mx6qsabrelite-bootargs/+merge/95181
>
> New version of the Mx6QSabreLite bootargs patch - this time implemented completely inside android_boards.py
> --
> https://code.launchpad.net/~berolinux/linaro-image-tools/mx6qsabrelite-bootargs/+merge/95181
> You are subscribed to branch lp:linaro-image-tools.
>
> === modified file 'linaro_image_tools/media_create/android_boards.py'
> --- linaro_image_tools/media_create/android_boards.py   2012-02-21 08:01:08 +0000
> +++ linaro_image_tools/media_create/android_boards.py   2012-02-29 14:33:21 +0000
> @@ -296,13 +296,36 @@
>         install_mx5_boot_loader(os.path.join(boot_device_or_file, "u-boot.imx"), boot_partition, cls.LOADER_MIN_SIZE_S)
>
>
> -class AndroidMx6QSabreliteConfig(AndroidMx53LoCoConfig):
> +class AndroidMx6QSabreliteConfig(AndroidBoardConfig, Mx53LoCoConfig):
> +    serial_tty = 'ttymxc1'

This fails the test, could you please update that too? Please run
    testr init
    testr run

to make sure that the test suite succeeds before we merge this.

>     uboot_flavor = 'mx6qsabrelite'
>     kernel_addr = '0x10000000'
>     initrd_addr = '0x12000000'
>     load_addr = '0x10008000'
>     dtb_addr = '0x11ff0000'
>     dtb_name = 'board.dtb'
> +    extra_boot_args_options = (
> +        'earlyprintk rootdelay=1 fixrtc nocompcache di1_primary tve')
> +    _extra_serial_opts = 'console=%s,115200n8' % (
> +        serial_tty)
> +    android_specific_args = 'init=/init androidboot.console=%s' % (
> +        serial_tty)
> +
> +    @classmethod
> +    def get_sfdisk_cmd(cls, should_align_boot_part=False):
> +        loader_start, loader_end, loader_len = align_partition(
> +            1, cls.LOADER_MIN_SIZE_S, 1, PART_ALIGN_S)
> +
> +        command = super(AndroidMx6QSabreliteConfig, cls).get_sfdisk_cmd(
> +            should_align_boot_part=True, start_addr=loader_end,
> +            extra_part=True)
> +
> +        return '%s,%s,0xDA\n%s' % (
> +            loader_start, loader_len, command)
> +
> +    @classmethod
> +    def install_boot_loader(cls, boot_partition, boot_device_or_file):
> +        install_mx5_boot_loader(os.path.join(boot_device_or_file, "u-boot.imx"), boot_partition, cls.LOADER_MIN_SIZE_S)

Are these new functions identical to those on AndroidMx53LoCoConfig?
Could you find a way to avoid duplicating them, like ?

>
>
>  class AndroidSamsungConfig(AndroidBoardConfig):
>
>

Revision history for this message
Mattias Backman (mabac) wrote :

> Thanks for the update. I have a couple of more requests.
>
> On Wed, Feb 29, 2012 at 3:34 PM, Bernhard Rosenkraenzer
> <email address hidden> wrote:
> > Bernhard Rosenkraenzer has proposed merging lp:~berolinux/linaro-image-tools
> /mx6qsabrelite-bootargs into lp:linaro-image-tools.
> >
> > Requested reviews:
> >  Zach Pfeffer (pfefferz)
> >  linaro-image-tools maintainers (linaro-image-tools)
> >
> > For more details, see:
> > https://code.launchpad.net/~berolinux/linaro-image-tools/mx6qsabrelite-
> bootargs/+merge/95181
> >
> > New version of the Mx6QSabreLite bootargs patch - this time implemented
> completely inside android_boards.py
> > --
> > https://code.launchpad.net/~berolinux/linaro-image-tools/mx6qsabrelite-
> bootargs/+merge/95181
> > You are subscribed to branch lp:linaro-image-tools.
> >
> > === modified file 'linaro_image_tools/media_create/android_boards.py'
> > --- linaro_image_tools/media_create/android_boards.py   2012-02-21 08:01:08
> +0000
> > +++ linaro_image_tools/media_create/android_boards.py   2012-02-29 14:33:21
> +0000
> > @@ -296,13 +296,36 @@
> >         install_mx5_boot_loader(os.path.join(boot_device_or_file,
> "u-boot.imx"), boot_partition, cls.LOADER_MIN_SIZE_S)
> >
> >
> > -class AndroidMx6QSabreliteConfig(AndroidMx53LoCoConfig):
> > +class AndroidMx6QSabreliteConfig(AndroidBoardConfig, Mx53LoCoConfig):
> > +    serial_tty = 'ttymxc1'
>
> This fails the test, could you please update that too? Please run
> testr init
> testr run
>
> to make sure that the test suite succeeds before we merge this.
>
> >     uboot_flavor = 'mx6qsabrelite'
> >     kernel_addr = '0x10000000'
> >     initrd_addr = '0x12000000'
> >     load_addr = '0x10008000'
> >     dtb_addr = '0x11ff0000'
> >     dtb_name = 'board.dtb'
> > +    extra_boot_args_options = (
> > +        'earlyprintk rootdelay=1 fixrtc nocompcache di1_primary tve')
> > +    _extra_serial_opts = 'console=%s,115200n8' % (
> > +        serial_tty)
> > +    android_specific_args = 'init=/init androidboot.console=%s' % (
> > +        serial_tty)
> > +
> > +    @classmethod
> > +    def get_sfdisk_cmd(cls, should_align_boot_part=False):
> > +        loader_start, loader_end, loader_len = align_partition(
> > +            1, cls.LOADER_MIN_SIZE_S, 1, PART_ALIGN_S)
> > +
> > +        command = super(AndroidMx6QSabreliteConfig, cls).get_sfdisk_cmd(
> > +            should_align_boot_part=True, start_addr=loader_end,
> > +            extra_part=True)
> > +
> > +        return '%s,%s,0xDA\n%s' % (
> > +            loader_start, loader_len, command)
> > +
> > +    @classmethod
> > +    def install_boot_loader(cls, boot_partition, boot_device_or_file):
> > +        install_mx5_boot_loader(os.path.join(boot_device_or_file,
> "u-boot.imx"), boot_partition, cls.LOADER_MIN_SIZE_S)
>
> Are these new functions identical to those on AndroidMx53LoCoConfig?
> Could you find a way to avoid duplicating them, like ?

Like letting mx6 inherit the mx5 functions, was what I intended to write. :)

>
> >
> >
> >  class AndroidSamsungConfig(AndroidBoardConfig):
> >
> >

review: Needs Fixing
Revision history for this message
Данило Шеган (danilo) wrote :

No activity for a while: if you want to resurrect it, please address comments from Mattias, and then resubmit.

Unmerged revisions

497. By Bernhard Rosenkraenzer

Use the right bootargs for MX6QSabrelite

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'linaro_image_tools/media_create/android_boards.py'
2--- linaro_image_tools/media_create/android_boards.py 2012-02-21 08:01:08 +0000
3+++ linaro_image_tools/media_create/android_boards.py 2012-02-29 14:33:21 +0000
4@@ -296,13 +296,36 @@
5 install_mx5_boot_loader(os.path.join(boot_device_or_file, "u-boot.imx"), boot_partition, cls.LOADER_MIN_SIZE_S)
6
7
8-class AndroidMx6QSabreliteConfig(AndroidMx53LoCoConfig):
9+class AndroidMx6QSabreliteConfig(AndroidBoardConfig, Mx53LoCoConfig):
10+ serial_tty = 'ttymxc1'
11 uboot_flavor = 'mx6qsabrelite'
12 kernel_addr = '0x10000000'
13 initrd_addr = '0x12000000'
14 load_addr = '0x10008000'
15 dtb_addr = '0x11ff0000'
16 dtb_name = 'board.dtb'
17+ extra_boot_args_options = (
18+ 'earlyprintk rootdelay=1 fixrtc nocompcache di1_primary tve')
19+ _extra_serial_opts = 'console=%s,115200n8' % (
20+ serial_tty)
21+ android_specific_args = 'init=/init androidboot.console=%s' % (
22+ serial_tty)
23+
24+ @classmethod
25+ def get_sfdisk_cmd(cls, should_align_boot_part=False):
26+ loader_start, loader_end, loader_len = align_partition(
27+ 1, cls.LOADER_MIN_SIZE_S, 1, PART_ALIGN_S)
28+
29+ command = super(AndroidMx6QSabreliteConfig, cls).get_sfdisk_cmd(
30+ should_align_boot_part=True, start_addr=loader_end,
31+ extra_part=True)
32+
33+ return '%s,%s,0xDA\n%s' % (
34+ loader_start, loader_len, command)
35+
36+ @classmethod
37+ def install_boot_loader(cls, boot_partition, boot_device_or_file):
38+ install_mx5_boot_loader(os.path.join(boot_device_or_file, "u-boot.imx"), boot_partition, cls.LOADER_MIN_SIZE_S)
39
40
41 class AndroidSamsungConfig(AndroidBoardConfig):

Subscribers

People subscribed via source and target branches