* [Buildroot] [PATCH] configs: add Qemu nios2 defconfig
@ 2017-01-25 21:48 Romain Naour
2017-01-25 22:27 ` Peter Korsgaard
0 siblings, 1 reply; 5+ messages in thread
From: Romain Naour @ 2017-01-25 21:48 UTC (permalink / raw)
To: buildroot
Tested with Qemu the latest master (upcoming 2.9 release)
Signed-off-by: Romain Naour <romain.naour@gmail.com>
Cc: Waldemar Brodkorb <wbx@openadk.org>
---
Tested with the codesourcery Nios2 prebuild toolchain and internal
toolchain.
---
board/qemu/nios2-10m50/linux-4.9.fragment | 3 +++
board/qemu/nios2-10m50/readme.txt | 9 +++++++++
configs/qemu_nios2_10m50_defconfig | 7 +++++++
3 files changed, 19 insertions(+)
create mode 100644 board/qemu/nios2-10m50/linux-4.9.fragment
create mode 100644 board/qemu/nios2-10m50/readme.txt
create mode 100644 configs/qemu_nios2_10m50_defconfig
diff --git a/board/qemu/nios2-10m50/linux-4.9.fragment b/board/qemu/nios2-10m50/linux-4.9.fragment
new file mode 100644
index 0000000..72ffcd3
--- /dev/null
+++ b/board/qemu/nios2-10m50/linux-4.9.fragment
@@ -0,0 +1,3 @@
+# Embed the DTB in the kernel image
+CONFIG_NIOS2_DTB_SOURCE_BOOL=y
+CONFIG_NIOS2_DTB_SOURCE="arch/nios2/boot/dts/10m50_devboard.dts"
diff --git a/board/qemu/nios2-10m50/readme.txt b/board/qemu/nios2-10m50/readme.txt
new file mode 100644
index 0000000..978ba95
--- /dev/null
+++ b/board/qemu/nios2-10m50/readme.txt
@@ -0,0 +1,9 @@
+Run the emulation with:
+
+ qemu-system-nios2 -kernel output/images/vmlinux -nographic
+
+The login prompt will appear in the terminal that started Qemu.
+
+Tested with the upcoming QEMU 2.9.0 [1]
+
+[1] http://git.qemu.org/?p=qemu.git;h=ae5045ae5b2bbd8ce1335d1b05f9ecacca83a6cf
diff --git a/configs/qemu_nios2_10m50_defconfig b/configs/qemu_nios2_10m50_defconfig
new file mode 100644
index 0000000..d6b3e1f
--- /dev/null
+++ b/configs/qemu_nios2_10m50_defconfig
@@ -0,0 +1,7 @@
+BR2_nios2=y
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.9.5"
+BR2_LINUX_KERNEL_DEFCONFIG="10m50"
+BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/qemu/nios2-10m50/linux-4.9.fragment"
+BR2_TARGET_ROOTFS_INITRAMFS=y
--
2.9.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] configs: add Qemu nios2 defconfig
2017-01-25 21:48 [Buildroot] [PATCH] configs: add Qemu nios2 defconfig Romain Naour
@ 2017-01-25 22:27 ` Peter Korsgaard
2017-01-25 22:31 ` Romain Naour
0 siblings, 1 reply; 5+ messages in thread
From: Peter Korsgaard @ 2017-01-25 22:27 UTC (permalink / raw)
To: buildroot
>>>>> "Romain" == Romain Naour <romain.naour@gmail.com> writes:
> Tested with Qemu the latest master (upcoming 2.9 release)
> Signed-off-by: Romain Naour <romain.naour@gmail.com>
> Cc: Waldemar Brodkorb <wbx@openadk.org>
> ---
> Tested with the codesourcery Nios2 prebuild toolchain and internal
> toolchain.
Wow, that was fast!
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] configs: add Qemu nios2 defconfig
2017-01-25 22:27 ` Peter Korsgaard
@ 2017-01-25 22:31 ` Romain Naour
2017-01-25 22:55 ` Peter Korsgaard
0 siblings, 1 reply; 5+ messages in thread
From: Romain Naour @ 2017-01-25 22:31 UTC (permalink / raw)
To: buildroot
Hi Peter,
Le 25/01/2017 ? 23:27, Peter Korsgaard a ?crit :
>>>>>> "Romain" == Romain Naour <romain.naour@gmail.com> writes:
>
> > Tested with Qemu the latest master (upcoming 2.9 release)
> > Signed-off-by: Romain Naour <romain.naour@gmail.com>
> > Cc: Waldemar Brodkorb <wbx@openadk.org>
> > ---
> > Tested with the codesourcery Nios2 prebuild toolchain and internal
> > toolchain.
>
> Wow, that was fast!
It was ready since the last Buildroot meeting (thanks to Waldemar) :p
Best regards,
Romain
>
> Committed, thanks.
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] configs: add Qemu nios2 defconfig
2017-01-25 22:31 ` Romain Naour
@ 2017-01-25 22:55 ` Peter Korsgaard
2017-01-25 23:12 ` Romain Naour
0 siblings, 1 reply; 5+ messages in thread
From: Peter Korsgaard @ 2017-01-25 22:55 UTC (permalink / raw)
To: buildroot
>>>>> "Romain" == Romain Naour <romain.naour@gmail.com> writes:
Hi,
>> Wow, that was fast!
> It was ready since the last Buildroot meeting (thanks to Waldemar) :p
Ahh, nice - But the qemu stuff only landed today, didn't it?
https://plus.google.com/+MarekVa%C5%A1ut/posts/epVt4ubfwwU
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] configs: add Qemu nios2 defconfig
2017-01-25 22:55 ` Peter Korsgaard
@ 2017-01-25 23:12 ` Romain Naour
0 siblings, 0 replies; 5+ messages in thread
From: Romain Naour @ 2017-01-25 23:12 UTC (permalink / raw)
To: buildroot
Le 25/01/2017 ? 23:55, Peter Korsgaard a ?crit :
>>>>>> "Romain" == Romain Naour <romain.naour@gmail.com> writes:
>
> Hi,
>
> >> Wow, that was fast!
>
> > It was ready since the last Buildroot meeting (thanks to Waldemar) :p
>
> Ahh, nice - But the qemu stuff only landed today, didn't it?
>
> https://plus.google.com/+MarekVa%C5%A1ut/posts/epVt4ubfwwU
>
Indeed, we use a previous version of this series (v2) during the meeting, just
retested today with master.
See: https://lists.gnu.org/archive/html/qemu-devel/2016-10/msg03430.html
Best regards,
Romain
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-01-25 23:12 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-25 21:48 [Buildroot] [PATCH] configs: add Qemu nios2 defconfig Romain Naour
2017-01-25 22:27 ` Peter Korsgaard
2017-01-25 22:31 ` Romain Naour
2017-01-25 22:55 ` Peter Korsgaard
2017-01-25 23:12 ` Romain Naour
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.