From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Matwey V. Kornilov" Subject: Re: [PATCH v6 5/6] rockchip: Add Single boot image (with binman, pad_cat) Date: Fri, 10 Jan 2020 12:42:03 +0300 Message-ID: References: <20200104083806.3930-1-jagan@amarulasolutions.com> <20200104083806.3930-6-jagan@amarulasolutions.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" To: Simon Glass Cc: "open list:ARM/Rockchip SoC support" , U-Boot Mailing List , linux-amarula , Akash Gajjar List-Id: linux-rockchip.vger.kernel.org =D0=BF=D1=82, 10 =D1=8F=D0=BD=D0=B2. 2020 =D0=B3. =D0=B2 12:39, Simon Glass= : > > Hi Jagan, > > On Sat, 4 Jan 2020 at 21:38, Jagan Teki wrot= e: > > > > All rockchip platforms support TPL or SPL-based bootloader > > in mainline with U-Boot proper as final stage. For each > > stage we need to burn the image on to flash with respective > > offsets. > > > > This patch creates a single boot image component using > > - binman, for arm32 rockchip platforms > > - pad_cat, for arm64 rockchip platforms. > > > > This would help users to get rid of burning different > > boot stage images. > > > > The new image called 'u-boot-rockchip.bin' > > which can burn into flash like: > > > > =E2=82=B9 sudo dd if=3Du-boot-rockchip.bin of=3D/dev/sda seek=3D64 > > How about adding the initial 64 blocks into the image too, so the seek > isn't needed? > It will break partition tables on the target device. > > This would support all rockchip platforms, except rk3128 > > since it doesn't support for SPL yet. > > > > Cc: Kever Yang > > Cc: Matwey V. Kornilov > > Signed-off-by: Jagan Teki > > Reviewed-by: Kever Yang > > --- > > Makefile | 14 ++++++++++++-- > > arch/arm/Kconfig | 1 + > > arch/arm/dts/rk3036-u-boot.dtsi | 2 ++ > > arch/arm/dts/rk3288-u-boot.dtsi | 2 ++ > > arch/arm/dts/rockchip-u-boot.dtsi | 21 +++++++++++++++++++++ > > include/configs/rockchip-common.h | 3 +++ > > 6 files changed, 41 insertions(+), 2 deletions(-) > > create mode 100644 arch/arm/dts/rockchip-u-boot.dtsi > > Regards, > Simon --=20 With best regards, Matwey V. Kornilov From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matwey V. Kornilov Date: Fri, 10 Jan 2020 12:42:03 +0300 Subject: [PATCH v6 5/6] rockchip: Add Single boot image (with binman, pad_cat) In-Reply-To: References: <20200104083806.3930-1-jagan@amarulasolutions.com> <20200104083806.3930-6-jagan@amarulasolutions.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de пт, 10 янв. 2020 г. в 12:39, Simon Glass : > > Hi Jagan, > > On Sat, 4 Jan 2020 at 21:38, Jagan Teki wrote: > > > > All rockchip platforms support TPL or SPL-based bootloader > > in mainline with U-Boot proper as final stage. For each > > stage we need to burn the image on to flash with respective > > offsets. > > > > This patch creates a single boot image component using > > - binman, for arm32 rockchip platforms > > - pad_cat, for arm64 rockchip platforms. > > > > This would help users to get rid of burning different > > boot stage images. > > > > The new image called 'u-boot-rockchip.bin' > > which can burn into flash like: > > > > ₹ sudo dd if=u-boot-rockchip.bin of=/dev/sda seek=64 > > How about adding the initial 64 blocks into the image too, so the seek > isn't needed? > It will break partition tables on the target device. > > This would support all rockchip platforms, except rk3128 > > since it doesn't support for SPL yet. > > > > Cc: Kever Yang > > Cc: Matwey V. Kornilov > > Signed-off-by: Jagan Teki > > Reviewed-by: Kever Yang > > --- > > Makefile | 14 ++++++++++++-- > > arch/arm/Kconfig | 1 + > > arch/arm/dts/rk3036-u-boot.dtsi | 2 ++ > > arch/arm/dts/rk3288-u-boot.dtsi | 2 ++ > > arch/arm/dts/rockchip-u-boot.dtsi | 21 +++++++++++++++++++++ > > include/configs/rockchip-common.h | 3 +++ > > 6 files changed, 41 insertions(+), 2 deletions(-) > > create mode 100644 arch/arm/dts/rockchip-u-boot.dtsi > > Regards, > Simon -- With best regards, Matwey V. Kornilov