Message ID | 1445439476-32911-1-git-send-email-Zubair.Kakakhel@imgtec.com |
---|---|
State | Changes Requested |
Headers | show |
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
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 >
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, 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
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