Re: [RFC PATCH v2 2/2] board: ad401: example of fastboot oem board realization

2024-04-05 Thread Mattijs Korpershoek
Hi Alexey, On lun., mars 04, 2024 at 14:03, Alexey Romanov wrote: > Hello Mattijs, > > On Thu, Feb 15, 2024 at 10:24:11AM +0100, Mattijs Korpershoek wrote: >> On jeu., f'evr. 01, 2024 at 12:20, Alexey Romanov >> wrote: >> >> > An example of how we use fastboot oeam board subcommand >> > for

Re: [RFC PATCH v2 2/2] board: ad401: example of fastboot oem board realization

2024-03-04 Thread Alexey Romanov
Hello Mattijs, On Thu, Feb 15, 2024 at 10:24:11AM +0100, Mattijs Korpershoek wrote: > On jeu., f'evr. 01, 2024 at 12:20, Alexey Romanov > wrote: > > > An example of how we use fastboot oeam board subcommand > > for Sean Anderson. > > > > 1 - OEM_BOARD_WRITE_BOOTLOADER_CMD: > > > > We use it for

Re: [RFC PATCH v2 2/2] board: ad401: example of fastboot oem board realization

2024-02-15 Thread Mattijs Korpershoek
On jeu., févr. 01, 2024 at 12:20, Alexey Romanov wrote: > An example of how we use fastboot oeam board subcommand > for Sean Anderson. > > 1 - OEM_BOARD_WRITE_BOOTLOADER_CMD: > > We use it for custom Amlogic bootloader + tpl > flashing protocol. > > 2 - OEM_BOARD_ERASE_CMD: > > Custom logic for

Re: [RFC PATCH v2 2/2] board: ad401: example of fastboot oem board realization

2024-02-01 Thread Alexey Romanov
Hi, On Thu, Feb 01, 2024 at 04:56:34PM +0300, Dan Carpenter wrote: > On Thu, Feb 01, 2024 at 12:20:27PM +0300, Alexey Romanov wrote: > > +static int fastboot_nand_write_tpl(struct mtd_info *mtd, void *buffer, > > + u32 offset, size_t size, int flags) > > +{ > > + int

Re: [RFC PATCH v2 2/2] board: ad401: example of fastboot oem board realization

2024-02-01 Thread Dan Carpenter
On Thu, Feb 01, 2024 at 12:20:27PM +0300, Alexey Romanov wrote: > +static int fastboot_nand_write_tpl(struct mtd_info *mtd, void *buffer, > +u32 offset, size_t size, int flags) > +{ > + int boot_cpy_num = meson_bootloader_copy_num(BOOT_TPL); > + u64 size_per_

[RFC PATCH v2 2/2] board: ad401: example of fastboot oem board realization

2024-02-01 Thread Alexey Romanov
An example of how we use fastboot oeam board subcommand for Sean Anderson. 1 - OEM_BOARD_WRITE_BOOTLOADER_CMD: We use it for custom Amlogic bootloader + tpl flashing protocol. 2 - OEM_BOARD_ERASE_CMD: Custom logic for erasing the env-emulated partition, which isn't in the mtd markup map. Examp