[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2] Initial support for the android bootimg filesystem.
From: |
Andrei Borzenkov |
Subject: |
Re: [PATCH v2] Initial support for the android bootimg filesystem. |
Date: |
Wed, 27 Jan 2016 10:22:34 +0300 |
On Tue, Jan 26, 2016 at 10:42 PM, Shea Levy <address@hidden> wrote:
> Currently, the kernel and, if present, the ramdisk are made available as
> regular files.
...
> +
> +struct boot_img_hdr
> +{
> + uint8_t magic[BOOT_MAGIC_SIZE];
> +
> + uint32_t kernel_size;
> + uint32_t kernel_addr;
> +
> + uint32_t ramdisk_size;
> + uint32_t ramdisk_addr;
> +
> + uint32_t second_size;
> + uint32_t second_addr;
> +
> + uint32_t tags_addr;
> + uint32_t page_size;
> + uint32_t unused[2];
> +
> + uint8_t name[BOOT_NAME_SIZE];
> +
> + uint8_t cmdline[BOOT_ARGS_SIZE];
> +
> + uint32_t id[8];
> +
> + uint8_t extra_cmdline[BOOT_EXTRA_ARGS_SIZE];
> +} GRUB_PACKED;
> +
What is the use case for exposing it as filesystem in the first place?
Dedicated android loader that reads them looks more logical.
Should this layout/content ever change in the future it will be near
to impossible to modify without breaking unknown number of users
relying on it; while simple
android hd1,msdos4
can transparently handle any forward and backward compatibility
without impacting existing grub.cfg.
- [PATCH v2] Initial support for the android bootimg filesystem., Shea Levy, 2016/01/26
- Re: [PATCH v2] Initial support for the android bootimg filesystem.,
Andrei Borzenkov <=
- Re: [PATCH v2] Initial support for the android bootimg filesystem., shea, 2016/01/27
- Re: [PATCH v2] Initial support for the android bootimg filesystem., shea, 2016/01/28
- Re: [PATCH v2] Initial support for the android bootimg filesystem., Andrei Borzenkov, 2016/01/29
- Re: [PATCH v2] Initial support for the android bootimg filesystem., Shea Levy, 2016/01/29
- Re: [PATCH v2] Initial support for the android bootimg filesystem., Vladimir 'phcoder' Serbinenko, 2016/01/29
- Re: [PATCH v2] Initial support for the android bootimg filesystem., Andrei Borzenkov, 2016/01/29
- Re: [PATCH v2] Initial support for the android bootimg filesystem., shea, 2016/01/29
- Re: [PATCH v2] Initial support for the android bootimg filesystem., Michael Zimmermann, 2016/01/29