Remove 'cpu' node in device tree for QEMU targets, and let U-Boot detect
and fix up those information at runtime.
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
arch/x86/dts/qemu-x86_i440fx.dts | 7 ---
arch/x86/dts/qemu-x86_q35.dts| 7 ---
2 files changed, 14 deletions(-)
Document the usage of 'qfw' command
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
Reviewed-by: Simon Glass <s...@chromium.org>
Reviewed-by: Bin Meng <bmeng...@gmail.com>
---
Changes in v5:
- maximum supported is 255 now which is imposed by QEMU
- 'fw' to 'qfw'
d
to directly read
online cpu number from firmware.
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
Reviewed-by: Bin Meng <bmeng...@gmail.com>
Reviewed-by: Simon Glass <s...@chromium.org>
---
arch/x86/cpu/qemu/Makefile | 2 +-
arch/x86/cpu/qemu/c
Rename 'find_cpu_by_apid_id' to 'find_cpu_by_apic_id'. This should be a
typo.
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
Reviewed-by: Simon Glass <s...@chromium.org>
Reviewed-by: Bin Meng <bmeng...@gmail.com>
---
arch/x86/cpu/mp_init.c | 6 +++---
1 file changed,
number at runtime, and dynamically adds 'cpu' device to U-Boot's driver
model.
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
arch/x86/cpu/mp_init.c | 73 +
arch/x86/cpu/qemu/cpu.c | 5
2 files changed, 73 insertions(+), 5 del
Hi Simon,
2015-12-31 13:08 GMT+08:00 Simon Glass <s...@chromium.org>:
> Hi Maio,
>
> On 30 December 2015 at 19:55, Miao Yan <yanmiaob...@gmail.com> wrote:
>> Add a function to fix up 'cpus' node in dts files for qemu target.
>>
>> Signed-off-by: Miao Yan &l
Hi Simon,
2015-12-31 13:07 GMT+08:00 Simon Glass <s...@chromium.org>:
> Hi Miao,
>
> On 30 December 2015 at 19:55, Miao Yan <yanmiaob...@gmail.com> wrote:
>> The QEMU fw_cfg interface allows the guest to retrieve various
>> data information from QEMU. For ex
The QEMU fw_cfg interface allows the guest to retrieve various
data information from QEMU. For example, APCI/SMBios tables, number
of online cpus, kernel data and command line, etc.
This patch adds support for QEMU fw_cfg interface.
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
C
Add a function to fix up 'cpus' node in dts files for qemu target.
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
Changes in v4:
- fix a typo in commit log
arch/x86/cpu/qemu/fw_cfg.c | 65 ++
arch/x86/cpu/qemu/fw_cfg.h | 11
2
Use actual CPU number, instead of maximum cpu configured,
to allocate stack memory in 'load_sipi_vector'
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
arch/x86/cpu/mp_init.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/x86/cpu/mp_init.c b/arch/x
Remove 'cpus' node in dts files for QEMU targets,
retrieve cpu number through 'fw_cfg' interface and
fix up device tree blob at runtime.
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
arch/x86/cpu/qemu/qemu.c | 4
arch/x86/dts/qemu-x86_i440fx.dts | 19 +--
By default, ramdisk load address is defined to 0200 in
env string. When loading bzImage to 10 (default address), there's
a chance that the ramdisk header would be overwritten by
the kernel. Thus increase the gap and make ramdisk load at 0400
by default.
Signed-off-by: Miao Yan
Rename 'find_cpu_by_apid_id' to 'find_cpu_by_apic_id'. This
should be a typo.
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
arch/x86/cpu/mp_init.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/x86/cpu/mp_init.c b/arch/x86/cpu/mp_init.c
index 4
Document the usage of 'fw' command
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
Changes in v4:
- limit maximum supported cpu number to 32
doc/README.x86 | 35 ---
1 file changed, 32 insertions(+), 3 deletions(-)
diff --git a/doc/README.x86
/cpu.c
@@ -0,0 +1,57 @@
+/*
+ * Copyright (C) 2015, Miao Yan <yanmiaob...@gmail.com>
+ *
+ * SPDX-License-Identifier:GPL-2.0+
+ */
+
+#include
+#include
+#include
+#include
+#include
+#include "fw_cfg.h"
+
+DECLARE_GLOBAL_DATA_PTR;
+
+int cpu_qemu_bind(struct udevice *dev)
+{
+
on
the cpu node hard-coded in dts files.
Changes in v4:
- drop [PATCH v3 7/8] and limit maximum supported cpu number
- chance 'fw load' to take second parameter for initrd load address
- change default initrd load address for qemu-x86
Miao Yan (8):
x86: qemu: add fw_cfg support
x86: qemu
Hi Bin,
2015-12-30 12:04 GMT+08:00 Bin Meng <bmeng...@gmail.com>:
> Hi Miao,
>
> On Tue, Dec 29, 2015 at 6:35 PM, Miao Yan <yanmiaob...@gmail.com> wrote:
>> Reserve more spaces for x86 dtb files. Otherwise when booting
>> on qemu targets, fixing 'cpu' node may
Hi Bin,
2015-12-30 12:04 GMT+08:00 Bin Meng <bmeng...@gmail.com>:
> Hi Miao,
>
> On Tue, Dec 29, 2015 at 6:35 PM, Miao Yan <yanmiaob...@gmail.com> wrote:
>> Document the usage of 'fw' command
>>
>> Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
&g
Hi Bin,
2015-12-30 12:04 GMT+08:00 Bin Meng <bmeng...@gmail.com>:
> Hi Miao,
>
> On Tue, Dec 29, 2015 at 6:35 PM, Miao Yan <yanmiaob...@gmail.com> wrote:
>> The QEMU fw_cfg interface allows the guest to retrieve various
>> data information from QEMU. For ex
on
the cpu node hard-coded in dts files.
Changes in v2:
- rebase to u-boot-x86/next
- various cleanups
Miao Yan (8):
x86: qemu: add fw_cfg support
x86: qemu: add a cpu uclass driver for qemu target
x86: fix a typo in function name
x86: use actual CPU number for allocating memory
x86
index 000..9bf9a7c
--- /dev/null
+++ b/arch/x86/cpu/qemu/cpu.c
@@ -0,0 +1,57 @@
+/*
+ * Copyright (C) 2015, Miao Yan <yanmiaob...@gmail.com>
+ *
+ * SPDX-License-Identifier:GPL-2.0+
+ */
+
+#include
+#include
+#include
+#include
+#include
+#include "fw_cfg.h"
+
+DECLARE_G
Reserve more spaces for x86 dtb files. Otherwise when booting
on qemu targets, fixing 'cpu' node may fail due to lack
of space left in dtb.
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
arch/x86/dts/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x
The QEMU fw_cfg interface allows the guest to retrieve various
data information from QEMU. For example, APCI/SMBios tables, number
of online cpus, kernel data and command line, etc.
This patch adds support for QEMU fw_cfg interface.
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
C
Add a function to fixup 'cpus' node in dts files for qemu target.
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
Changes in v2:
- various cleanups
arch/x86/cpu/qemu/fw_cfg.c | 65 ++
arch/x86/cpu/qemu/fw_cfg.h | 11
2 files chang
Remove 'cpus' node in dts files for QEMU targets,
retrieve cpu number through 'fw_cfg' interface and
fix up device tree blob at runtime.
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
Changes in v2:
- rebase to u-boot-x86/next
arch/x86/cpu/qemu/qemu.c | 4
arch/x86/dt
Use actual CPU number, instead of maximum cpu configured,
to allocate stack memory in 'load_sipi_vector'
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
Changes in v2:
- fix commit message
arch/x86/cpu/mp_init.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff
Document the usage of 'fw' command
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
Changes in v2:
- various cleanup
doc/README.x86 | 36 +---
1 file changed, 33 insertions(+), 3 deletions(-)
diff --git a/doc/README.x86 b/doc/README.x86
index 1
Rename 'find_cpu_by_apid_id' to 'find_cpu_by_apic_id'. This
should be a typo.
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
arch/x86/cpu/mp_init.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/x86/cpu/mp_init.c b/arch/x86/cpu/mp_init.c
index 4
on
the cpu node hard-coded in dts files.
Changes in v2:
- rebase to u-boot-x86/next
- various cleanups
Changes in v3:
- fix an error in do_qemu_fw()
Miao Yan (8):
x86: qemu: add fw_cfg support
x86: qemu: add a cpu uclass driver for qemu target
x86: fix a typo in function name
x86
Rename 'find_cpu_by_apid_id' to 'find_cpu_by_apic_id'. This
should be a typo.
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
arch/x86/cpu/mp_init.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/x86/cpu/mp_init.c b/arch/x86/cpu/mp_init.c
index 4
index 000..9bf9a7c
--- /dev/null
+++ b/arch/x86/cpu/qemu/cpu.c
@@ -0,0 +1,57 @@
+/*
+ * Copyright (C) 2015, Miao Yan <yanmiaob...@gmail.com>
+ *
+ * SPDX-License-Identifier:GPL-2.0+
+ */
+
+#include
+#include
+#include
+#include
+#include
+#include "fw_cfg.h"
+
+DECLARE_G
The QEMU fw_cfg interface allows the guest to retrieve various
data information from QEMU. For example, APCI/SMBios tables, number
of online cpus, kernel data and command line, etc.
This patch adds support for QEMU fw_cfg interface.
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
C
Document the usage of 'fw' command
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
Changes in v2:
- various cleanup
doc/README.x86 | 36 +---
1 file changed, 33 insertions(+), 3 deletions(-)
diff --git a/doc/README.x86 b/doc/README.x86
index 1
Add a function to fixup 'cpus' node in dts files for qemu target.
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
Changes in v2:
- various cleanups
arch/x86/cpu/qemu/fw_cfg.c | 65 ++
arch/x86/cpu/qemu/fw_cfg.h | 11
2 files chang
Use actual CPU number, instead of maximum cpu configured,
to allocate stack memory in 'load_sipi_vector'
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
Changes in v2:
- fix commit message
arch/x86/cpu/mp_init.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff
Reserve more spaces for x86 dtb files. Otherwise when booting
on qemu targets, fixing 'cpu' node may fail due to lack
of space left in dtb.
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
arch/x86/dts/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x
2015-12-29 17:45 GMT+08:00 Miao Yan <yanmiaob...@gmail.com>:
> The QEMU fw_cfg interface allows the guest to retrieve various
> data information from QEMU. For example, APCI/SMBios tables, number
> of online cpus, kernel data and command line, etc.
>
> This patch adds su
Remove 'cpus' node in dts files for QEMU targets,
retrieve cpu number through 'fw_cfg' interface and
fix up device tree blob at runtime.
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
Changes in v2:
- rebase to u-boot-x86/next
arch/x86/cpu/qemu/qemu.c | 4
arch/x86/dt
Rename 'find_cpu_by_apid_id' to 'find_cpu_by_apic_id'. This
should be a typo.
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
arch/x86/cpu/mp_init.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/x86/cpu/mp_init.c b/arch/x86/cpu/mp_init.c
index 4
/cpu.c
@@ -0,0 +1,58 @@
+/*
+ * Copyright (C) 2015, Miao Yan <yanmiaob...@gmail.com>
+ *
+ * SPDX-License-Identifier:GPL-2.0+
+ */
+
+#include
+#include
+#include
+#include
+#include
+#include "fw_cfg.h"
+
+DECLARE_GLOBAL_DATA_PTR;
+
+int cpu_qemu_bind(struct udevice *dev)
+{
+
Document the usage of 'fw' command
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
doc/README.x86 | 36 +---
1 file changed, 33 insertions(+), 3 deletions(-)
diff --git a/doc/README.x86 b/doc/README.x86
index 1271e5e..f39c157 100644
--- a/doc/README.x86
Use actual CPU number , instead of maximum cpu configured,
to allocate stack memory in 'load_sipi_vector'
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
arch/x86/cpu/mp_init.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/x86/cpu/mp_init.c b/arch/x
on
the cpu node hard-coded in dts files.
Miao Yan (7):
x86: qemu: add fw_cfg support
x86: qemu: add a cpu uclass driver for qemu target
x86: fix a typo in function name
x86: qemu: use actual CPU number for allocating memory
x86: qemu: add qemu_fwcfg_fdt_fixup()
x86: qemu: fixup cpu node
Remove 'cpus' node in dts files for QEMU targets,
retrieve cpu number through 'fw_cfg' interface and
fixup device tree blob at runtime.
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
arch/x86/cpu/qemu/qemu.c | 4
arch/x86/dts/qemu-x86_i440fx.dts | 18 +-
Add a function to fixup 'cpus' node in dts files for qemu target.
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
arch/x86/cpu/qemu/fw_cfg.c | 66 ++
arch/x86/cpu/qemu/fw_cfg.h | 1 +
2 files changed, 67 insertions(+)
diff --git a/arch/x
The QEMU fw_cfg interface allows the guest to retrieve various
data information from QEMU. For example, APCI/SMBios tables, number
of online cpus, kernel data and command line, etc.
This patch adds support for QEMU fw_cfg interface.
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
ar
limits in smp boot
I am not familiar with the acpi part, but if you have a
basic configuration to reproduce the error, maybe I can
have a try.
Thanks,
Miao
>
>
> Regards,
> Saket Sinha
>
>
> On Mon, Dec 28, 2015 at 2:48 PM, Miao Yan <yanmiaob...@gmail.com> wrote:
>&
Hi Bin,
2015-12-29 14:19 GMT+08:00 Bin Meng <bmeng...@gmail.com>:
> Hi Miao,
>
> nits: please use "x86: qemu" as the tag in the commit title.
>
> On Mon, Dec 28, 2015 at 5:18 PM, Miao Yan <yanmiaob...@gmail.com> wrote:
>> Document the usage of 'fw' comm
Hi Bin,
2015-12-29 14:19 GMT+08:00 Bin Meng <bmeng...@gmail.com>:
> Hi Miao,
>
> On Mon, Dec 28, 2015 at 5:18 PM, Miao Yan <yanmiaob...@gmail.com> wrote:
>> The QEMU fw_cfg interface allows the guest to retrieve various
>> data information from QEMU. For ex
Hi Saket,
2015-12-28 18:43 GMT+08:00 Saket Sinha :
> Hi Miao,
>
> Find my response inline.
>
>>
>> The main purpose of my patch is:
>> + directly loads kernel from qemu
>> + eliminate the cpu number limits in smp boot
>>
>
> Our patches are similar in case of fw_cfg
ng failed; host 10.33.152.2 is not alive
> =>
>
>
> ==
>
>
> 在 2015年12月14日 10:23, Miao Yan 写道:
>
> 2015-12-13 20:29 GMT+08:00 吴红青 <h...@fiberhome.com.cn>:
>
> hello,i am using u-bo
In struct e1000_rx_desc, field 'length' is declared as
uint16_t, so use le16_to_cpu() to do endianess conversion.
Also drop conversion on 'status' which is declared as
uint8_t.
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
drivers/net/e1000.c | 4 ++--
1 file changed, 2 insertions
Hi Bin,
2015-12-21 17:53 GMT+08:00 Bin Meng <bmeng...@gmail.com>:
> Hi Miao,
>
> On Mon, Dec 21, 2015 at 5:43 PM, Bin Meng <bmeng...@gmail.com> wrote:
>> On Mon, Dec 21, 2015 at 5:04 PM, Miao Yan <yanmiaob...@gmail.com> wrote:
>>> In struct
In struct e1000_rx_desc, field 'length' is declared as
uint16_t, so use le16_to_cpu() to do endianness conversion.
Also drop conversion on 'status' which is declared as
uint8_t.
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
Changes in v2:
- fix typos in commit message
drive
In pci_map_region(), pass 'range_id' to fdt_read_range(),
otherwise the same address will be mapped again in other
calls to pci_map_region()
Signed-off-by: Miao Yan <yammiaob...@gmail.com>
---
board/freescale/qemu-ppce500/qemu-ppce500.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
2015-12-13 20:29 GMT+08:00 吴红青 :
> hello,i am using u-boot on powerpc qemu,my u-boot version is
> u-boot-2016.01-rc2,i make uboot as below:
>
> cd u-boot-2016.01-rc2
> make clean
> make ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- qemu-ppce500_defconfig
> make ARCH=powerpc
2015-12-02 20:44 GMT+08:00 Bin Meng <bmeng...@gmail.com>:
> On Wed, Dec 2, 2015 at 3:39 PM, Miao Yan <yanmiaob...@gmail.com> wrote:
>> VxWorks 7 kernels retrieve 'local-mac-addr' from dtb and use
>> that for NIC MAC address. As a result, when booting the same
>>
VxWorks 7 kernels retrieve 'local-mac-addr' from dtb and use
that for NIC MAC address. As a result, when booting the same
kernel image on multiple boards, there will be address
conflicts.
So fixup MAC address when booting VxWorks 7 kernels
Signed-off-by: Miao Yan <yanmiaob...@gmail.
Otherwise, when booting VxWorks kernel, the incorrect message will
be seen:
ARM Unknown OS Kernel Image (uncompressed)
Signed-off-by: Miao Yan miao@windriver.com
---
common/image.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/image.c b/common/image.c
can still use 'bootvx'
2) minor fixes to make code more clear
Miao Yan (5):
common/cmd_bootm.c: seperate do_bootm_vxworks related code from
CONFIG_CMD_ELF.
common/config_defaults.h: make CONFIG_BOOTM_VXWORKS default
configuration
common/cmd_bootm: extend do_bootm_vxworks
Signed-off-by: Miao Yan miao@windriver.com
---
Changes for v2: none
include/config_defaults.h |1 +
1 file changed, 1 insertion(+)
diff --git a/include/config_defaults.h b/include/config_defaults.h
index 567b46c..ad08c1d 100644
--- a/include/config_defaults.h
+++ b/include
Signed-off-by: Miao Yan miao@windriver.com
---
Changes for v2: none
doc/README.vxworks | 34 ++
1 file changed, 34 insertions(+)
create mode 100644 doc/README.vxworks
diff --git a/doc/README.vxworks b/doc/README.vxworks
new file mode 100644
index 000
do_bootm_vxworks now is available under the configuration option
CONFIG_BOOTM_VXWORKS, thus aligned with other operating systems
that supported by bootm command. The bootvx command still depneds
on CONFIG_CMD_ELF.
Signed-off-by: Miao Yan miao@windriver.com
---
Changes for v2: none
common
/* EPAPR_MAGIC */, ulong r7 /* IMA size */,
ulong r8 /* 0 */, ulong r9 /* 0 */)
For ARM, the boot interface is:
void (*kernel_entry)(void *fdt_addr)
Signed-off-by: Miao Yan miao@windriver.com
---
Changes for v2:
1) remove legacy do_bootvx code from do_bootm_vxworks, thus
fdt_fixup_memory_banks() will add and update /memory node in
device tree blob. In the case that /memory node doesn't exist,
after adding a new one, this function returns error.
The correct behavior should be continuing to update its properties.
Signed-off-by: Miao Yan miao@windriver.com
fdt_fixup_memory_banks() will add and update /memory node in
device tree blob. In the case that /memory node doesn't exist,
after adding a new one, this function returns error.
The correct behavior should be continuing to update its properties.
Signed-off-by: Miao Yan miao@windriver.com
do_bootm_vxworks now is available under the configuration option
CONFIG_BOOTM_VXWORKS, thus aligned with other operating systems
that supported by bootm command. The bootvx command still depneds
on CONFIG_CMD_ELF.
Signed-off-by: Miao Yan miao@windriver.com
---
common/cmd_bootm.c | 15
:
#if (libfdt (ppc || arm))
if (using device tree)
boot_vxworks_with_device_tree
else
#endif
bootvx(...);
The following patches are rebased on today's master branch
(commit 6856254fc05d67f874d08a534724c842f93a605f).
Thanks,
Miao Yan (5):
common
Signed-off-by: Miao Yan miao@windriver.com
---
include/config_defaults.h |1 +
1 file changed, 1 insertion(+)
diff --git a/include/config_defaults.h b/include/config_defaults.h
index 567b46c..ad08c1d 100644
--- a/include/config_defaults.h
+++ b/include/config_defaults.h
@@ -14,6 +14,7
Signed-off-by: Miao Yan miao@windriver.com
---
doc/README.vxworks | 34 ++
1 file changed, 34 insertions(+)
create mode 100644 doc/README.vxworks
diff --git a/doc/README.vxworks b/doc/README.vxworks
new file mode 100644
index 000..08c3813
--- /dev/null
/* EPAPR_MAGIC */, ulong r7 /* IMA size */,
ulong r8 /* 0 */, ulong r9 /* 0 */)
For ARM, the boot interface is:
void (*kernel_entry)(void *fdt_addr)
Signed-off-by: Miao Yan miao@windriver.com
---
arch/arm/lib/bootm.c | 21 +
arch/powerpc/lib/bootm.c | 52
101 - 171 of 171 matches
Mail list logo