Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] configs/xilfpga: Add xilfpga defconfig
@ 2015-10-21 14:57 Zubair Lutfullah Kakakhel
  2015-10-21 15:14 ` Thomas Petazzoni
  0 siblings, 1 reply; 5+ messages in thread
From: Zubair Lutfullah Kakakhel @ 2015-10-21 14:57 UTC (permalink / raw)
  To: buildroot

Under the IMG University Program 'MIPSfpga', RTL verilog code for a MIPS
m14kEC core is released under an academic license.

The core is used to make a soft-SOC which can run the Linux kernel +
buildroot.

This patch adds a defconfig for it and a readme file.

The config generates a simple mips32r2 rootfs using uClibc.

Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Reviewed-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>

---
p.s.

The kernel patches for MIPSfpga will hopefully be upstreamed by 4.4.

Once that is done, I'll look into adding the stuff to enable buildroot
to compile the kernel as well.

Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
---
 board/xilfpga/readme.txt  | 20 ++++++++++++++++++++
 configs/xilfpga_defconfig |  6 ++++++
 2 files changed, 26 insertions(+)
 create mode 100644 board/xilfpga/readme.txt
 create mode 100644 configs/xilfpga_defconfig

diff --git a/board/xilfpga/readme.txt b/board/xilfpga/readme.txt
new file mode 100644
index 0000000..6ff65b8
--- /dev/null
+++ b/board/xilfpga/readme.txt
@@ -0,0 +1,20 @@
+*********************************************
+* Imagination University Program: MIPSfpga  *
+*********************************************
+
+Under the IMG University Program, academics can receive the
+complete RTL source code for the MIPS microAptiv core under
+an academic license.
+
+The package comes with an example soft-SoC design that can
+run the Linux kernel + Buildroot in RAM on the Nexys4DDR board
+by Digilent.
+
+To create a simple root filesystem that runs on MIPSfpga run:
+
+$> make xilfpga_defconfig
+$> make
+
+This will create a root filesystem under the output/images directory.
+
+This filesystem needs to be built into the kernel as initramfs.
diff --git a/configs/xilfpga_defconfig b/configs/xilfpga_defconfig
new file mode 100644
index 0000000..6e861a8
--- /dev/null
+++ b/configs/xilfpga_defconfig
@@ -0,0 +1,6 @@
+BR2_mipsel=y
+BR2_mips_32r2=y
+BR2_TARGET_GENERIC_HOSTNAME="mipsfpga"
+BR2_TARGET_GENERIC_ISSUE="Welcome to MIPSfpga"
+BR2_TARGET_ROOTFS_CPIO=y
+# BR2_TARGET_ROOTFS_TAR is not set
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 1/1] configs/xilfpga: Add xilfpga defconfig
  2015-10-21 14:57 [Buildroot] [PATCH 1/1] configs/xilfpga: Add xilfpga defconfig Zubair Lutfullah Kakakhel
@ 2015-10-21 15:14 ` Thomas Petazzoni
  2015-10-22  9:26   ` Zubair Lutfullah Kakakhel
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2015-10-21 15:14 UTC (permalink / raw)
  To: buildroot

Zubair,

On Wed, 21 Oct 2015 15:57:56 +0100, Zubair Lutfullah Kakakhel wrote:
> Under the IMG University Program 'MIPSfpga', RTL verilog code for a MIPS
> m14kEC core is released under an academic license.
> 
> The core is used to make a soft-SOC which can run the Linux kernel +
> buildroot.

Cool! :-)

> 
> This patch adds a defconfig for it and a readme file.
> 
> The config generates a simple mips32r2 rootfs using uClibc.
> 
> Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
> Reviewed-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
> 
> ---
> p.s.
> 
> The kernel patches for MIPSfpga will hopefully be upstreamed by 4.4.
> 
> Once that is done, I'll look into adding the stuff to enable buildroot
> to compile the kernel as well.

A defconfig which doesn't build a kernel nor a bootloader is pretty
useless IMO.

Isn't the code to build this kernel available on some Git repository,
even if it's not upstream yet ? If so, then it would be better to have
a defconfig that points to this Git repository (actually, many of our
defconfigs point to non-upstream kernel source code).

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 1/1] configs/xilfpga: Add xilfpga defconfig
  2015-10-21 15:14 ` Thomas Petazzoni
@ 2015-10-22  9:26   ` Zubair Lutfullah Kakakhel
  2015-10-22 14:20     ` Arnout Vandecappelle
  0 siblings, 1 reply; 5+ messages in thread
From: Zubair Lutfullah Kakakhel @ 2015-10-22  9:26 UTC (permalink / raw)
  To: buildroot

Hi,

On 21/10/15 16:14, Thomas Petazzoni wrote:
> Zubair,
>
> On Wed, 21 Oct 2015 15:57:56 +0100, Zubair Lutfullah Kakakhel wrote:
>> Under the IMG University Program 'MIPSfpga', RTL verilog code for a MIPS
>> m14kEC core is released under an academic license.
>>
>> The core is used to make a soft-SOC which can run the Linux kernel +
>> buildroot.
>
> Cool! :-)
>

Indeed :)

>>
>> This patch adds a defconfig for it and a readme file.
>>
>> The config generates a simple mips32r2 rootfs using uClibc.
>>
>> Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
>> Reviewed-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
>>
>> ---
>> p.s.
>>
>> The kernel patches for MIPSfpga will hopefully be upstreamed by 4.4.
>>
>> Once that is done, I'll look into adding the stuff to enable buildroot
>> to compile the kernel as well.
>
> A defconfig which doesn't build a kernel nor a bootloader is pretty
> useless IMO.
>
> Isn't the code to build this kernel available on some Git repository,
> even if it's not upstream yet ? If so, then it would be better to have
> a defconfig that points to this Git repository (actually, many of our
> defconfigs point to non-upstream kernel source code).

The users of MIPSfpga are academics who receive the patches along with
other documentation + MIPS core tar-balled up in a package.

Hence, instead of making a staging repo on github, I went for directly
up-streaming things.

I do intend to make buildroot build the kernel when the time comes.

e.g.
https://patchwork.linux-mips.org/project/linux-mips/list/?submitter=6836

Regards,
ZubairLK

>
> Thanks!
>
> Thomas
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 1/1] configs/xilfpga: Add xilfpga defconfig
  2015-10-22  9:26   ` Zubair Lutfullah Kakakhel
@ 2015-10-22 14:20     ` Arnout Vandecappelle
  2015-10-22 15:55       ` Thomas Petazzoni
  0 siblings, 1 reply; 5+ messages in thread
From: Arnout Vandecappelle @ 2015-10-22 14:20 UTC (permalink / raw)
  To: buildroot

On 22-10-15 11:26, Zubair Lutfullah Kakakhel wrote:
> Hi,
> 
> On 21/10/15 16:14, Thomas Petazzoni wrote:
>> Zubair,
>>
>> On Wed, 21 Oct 2015 15:57:56 +0100, Zubair Lutfullah Kakakhel wrote:
>>> Under the IMG University Program 'MIPSfpga', RTL verilog code for a MIPS
>>> m14kEC core is released under an academic license.
>>>
>>> The core is used to make a soft-SOC which can run the Linux kernel +
>>> buildroot.
>>
>> Cool! :-)
>>
> 
> Indeed :)
> 
>>>
>>> This patch adds a defconfig for it and a readme file.
>>>
>>> The config generates a simple mips32r2 rootfs using uClibc.
>>>
>>> Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
>>> Reviewed-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
>>>
>>> ---
>>> p.s.
>>>
>>> The kernel patches for MIPSfpga will hopefully be upstreamed by 4.4.
>>>
>>> Once that is done, I'll look into adding the stuff to enable buildroot
>>> to compile the kernel as well.
>>
>> A defconfig which doesn't build a kernel nor a bootloader is pretty
>> useless IMO.
>>
>> Isn't the code to build this kernel available on some Git repository,
>> even if it's not upstream yet ? If so, then it would be better to have
>> a defconfig that points to this Git repository (actually, many of our
>> defconfigs point to non-upstream kernel source code).
> 
> The users of MIPSfpga are academics who receive the patches along with
> other documentation + MIPS core tar-balled up in a package.
> 
> Hence, instead of making a staging repo on github, I went for directly
> up-streaming things.

 Well, to be able to upstream, you must have at least a local repo, so it's just
a matter of pushing that to github or gitlab.

> I do intend to make buildroot build the kernel when the time comes.
> 
> e.g.
> https://patchwork.linux-mips.org/project/linux-mips/list/?submitter=6836

 If those patches are all that is needed, it would be possible to include them
in buildroot. Or download them from patchwork. We're really not going to accept
a defconfig that doesn't build a kernel.

 What about the bootloader?

 Regards,
 Arnout


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 1/1] configs/xilfpga: Add xilfpga defconfig
  2015-10-22 14:20     ` Arnout Vandecappelle
@ 2015-10-22 15:55       ` Thomas Petazzoni
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2015-10-22 15:55 UTC (permalink / raw)
  To: buildroot

Arnout, Zubair,

On Thu, 22 Oct 2015 16:20:29 +0200, Arnout Vandecappelle wrote:

>  If those patches are all that is needed, it would be possible to include them
> in buildroot. Or download them from patchwork. We're really not going to accept
> a defconfig that doesn't build a kernel.

We could indeed just do:

BR2_LINUX_KERNEL_PATCH="https://patchwork.linux-mips.org/patch/11324/mbox/ https://patchwork.linux-mips.org/patch/11325/mbox/ https://patchwork.linux-mips.org/patch/11327/mbox/ https://patchwork.linux-mips.org/patch/11326/mbox/"

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-10-22 15:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-21 14:57 [Buildroot] [PATCH 1/1] configs/xilfpga: Add xilfpga defconfig Zubair Lutfullah Kakakhel
2015-10-21 15:14 ` Thomas Petazzoni
2015-10-22  9:26   ` Zubair Lutfullah Kakakhel
2015-10-22 14:20     ` Arnout Vandecappelle
2015-10-22 15:55       ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox