* [PATCH 2/2] doc: intel: Update serial driver changes in slimbootloader.rst
@ 2019-12-18 5:56 Park, Aiden
2020-02-03 2:43 ` Bin Meng
0 siblings, 1 reply; 3+ messages in thread
From: Park, Aiden @ 2019-12-18 5:56 UTC (permalink / raw)
To: u-boot
Now, Slim Bootloader uses NS16550_DYNAMIC to support serial port
configuration at runtime, so no more code change is required.
Therefore, remove unnecessary steps and fix minor typo.
Signed-off-by: Aiden Park <aiden.park@intel.com>
---
doc/board/intel/slimbootloader.rst | 35 +++++++-----------------------
1 file changed, 8 insertions(+), 27 deletions(-)
diff --git a/doc/board/intel/slimbootloader.rst b/doc/board/intel/slimbootloader.rst
index 375e676804..a8c41b1aa7 100644
--- a/doc/board/intel/slimbootloader.rst
+++ b/doc/board/intel/slimbootloader.rst
@@ -111,35 +111,16 @@ Download it from http://downloads.yoctoproject.org/releases/yocto/yocto-2.0/mach
Build Instruction for Slim Bootloader for LeafHill (APL) target
---------------------------------------------------------------
-LeafHill is using PCI UART2 device as a serial port.
-For MEM32 serial port, CONFIG_SYS_NS16550_MEM32 needs to be enabled in U-Boot.
+Prepare U-Boot and Slim Bootloader as described at the beginning of this page.
+Also, the PayloadId needs to be set for APL board.
-1. Enable CONFIG_SYS_NS16550_MEM32 in U-Boot::
-
- $ vi include/configs/slimbootloader.h
- +#define CONFIG_SYS_NS16550_MEM32
- #ifdef CONFIG_SYS_NS16550_MEM3
-
-2. Build U-Boot::
-
- $ make disclean
- $ make slimbootloader_defconfig
- $ make all
-
-3. Copy u-boot-dtb.bin to Slim Bootloader.
- Slim Bootloader looks for a payload from the specific location.
- Copy the build u-boot-dtb.bin to the expected location::
-
- $ mkdir -p <Slim Bootloader Dir>/PayloadPkg/PayloadBins/
- $ cp <U-Boot Dir>/u-boot-dtb.bin <Slim Bootloader Dir>/PayloadPkg/PayloadBins/u-boot-dtb.bin
-
-4. Update PayloadId. Let's use 'U-BT' as an example::
+1. Update PayloadId. Let's use 'U-BT' as an example::
$ vi Platform/ApollolakeBoardPkg/CfgData/CfgData_Int_LeafHill.dlt
-GEN_CFG_DATA.PayloadId | 'AUTO
+GEN_CFG_DATA.PayloadId | 'U-BT'
-5. Update payload text base.
+2. Update payload text base.
* PAYLOAD_EXE_BASE must be the same as U-Boot CONFIG_SYS_TEXT_BASE
in board/intel/slimbootloader/Kconfig.
@@ -149,18 +130,18 @@ For MEM32 serial port, CONFIG_SYS_NS16550_MEM32 needs to be enabled in U-Boot.
+ self.PAYLOAD_LOAD_HIGH = 0
+ self.PAYLOAD_EXE_BASE = 0x00100000
-6. Build APL target. Make sure u-boot-dtb.bin and U-BT PayloadId
+3. Build APL target. Make sure u-boot-dtb.bin and U-BT PayloadId
in build command. The output is Outputs/apl/Stitch_Components.zip::
$ python BuildLoader.py build apl -p "OsLoader.efi:LLDR:Lz4;u-boot-dtb.bin:U-BT:Lzma"
-7. Stitch IFWI.
+4. Stitch IFWI.
Refer to Apollolake_ page in Slim Bootloader document site::
$ python Platform/ApollolakeBoardPkg/Script/StitchLoader.py -i <Existing IFWI> -s Outputs/apl/Stitch_Components.zip -o <Output IFWI>
-8. Flash IFWI.
+5. Flash IFWI.
Use DediProg to flash IFWI. You should reach at U-Boot serial console.
@@ -175,7 +156,7 @@ Build Instruction to use ELF U-Boot
2. Build U-Boot::
- $ make disclean
+ $ make distclean
$ make slimbootloader_defconfig
$ make all
$ strip u-boot (removing symbol for reduced size)
--
2.20.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] doc: intel: Update serial driver changes in slimbootloader.rst
2019-12-18 5:56 [PATCH 2/2] doc: intel: Update serial driver changes in slimbootloader.rst Park, Aiden
@ 2020-02-03 2:43 ` Bin Meng
2020-02-03 2:48 ` Bin Meng
0 siblings, 1 reply; 3+ messages in thread
From: Bin Meng @ 2020-02-03 2:43 UTC (permalink / raw)
To: u-boot
On Wed, Dec 18, 2019 at 1:56 PM Park, Aiden <aiden.park@intel.com> wrote:
>
> Now, Slim Bootloader uses NS16550_DYNAMIC to support serial port
> configuration at runtime, so no more code change is required.
> Therefore, remove unnecessary steps and fix minor typo.
>
> Signed-off-by: Aiden Park <aiden.park@intel.com>
> ---
> doc/board/intel/slimbootloader.rst | 35 +++++++-----------------------
> 1 file changed, 8 insertions(+), 27 deletions(-)
>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 2/2] doc: intel: Update serial driver changes in slimbootloader.rst
2020-02-03 2:43 ` Bin Meng
@ 2020-02-03 2:48 ` Bin Meng
0 siblings, 0 replies; 3+ messages in thread
From: Bin Meng @ 2020-02-03 2:48 UTC (permalink / raw)
To: u-boot
On Mon, Feb 3, 2020 at 10:43 AM Bin Meng <bmeng.cn@gmail.com> wrote:
>
> On Wed, Dec 18, 2019 at 1:56 PM Park, Aiden <aiden.park@intel.com> wrote:
> >
> > Now, Slim Bootloader uses NS16550_DYNAMIC to support serial port
> > configuration at runtime, so no more code change is required.
> > Therefore, remove unnecessary steps and fix minor typo.
> >
> > Signed-off-by: Aiden Park <aiden.park@intel.com>
> > ---
> > doc/board/intel/slimbootloader.rst | 35 +++++++-----------------------
> > 1 file changed, 8 insertions(+), 27 deletions(-)
> >
>
> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
applied to u-boot-x86, thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-02-03 2:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-18 5:56 [PATCH 2/2] doc: intel: Update serial driver changes in slimbootloader.rst Park, Aiden
2020-02-03 2:43 ` Bin Meng
2020-02-03 2:48 ` Bin Meng
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.