How to build a kernel on a Parallela board

Forum about Parallella boot process, linux kernel, distros, SD-cards, etc.

Re: How to build a kernel on a Parallela board

Postby Kelledin » Wed Jul 09, 2014 6:05 pm

For those who are interested in running a more up-to-date kernel:

I took a diff of the Parallella 3.12.0 kernel and forward-ported it to 3.12.24. Surprisingly, it was mostly a clean patch, although I had to resolve some manual conflicts. The one area I'm most worried about is in drivers/dma/xilinx_dma.c; the device_prep_dma_cyclic() callback prototype has changed to include a flags parameter, and I'm not sure what should be done with that on our platform. Use of this new parameter is spotty across several other DMA drivers though (not just the Xilinx driver), so I suspect it's not that much of a problem to ignore it for now.

(I looked at the latest linux-xlnx 3.14/3.15 git tree to see what it's doing there, but the Xilinx DMA driver has been massively rearchitected and split into three pieces.)

In any event I've got the updated kernel booting, and it appears to be working reasonably well so far, given the hour or so of run-time. YMMV.

The attached patch fits right into the vanilla 3.12.24 kernel.

EDIT: really, no support for .xz? Fine, eat an extra 400K. :roll:
Attachments
linux-3.12.24-parallella.patch.gz
(1021.86 KiB) Downloaded 959 times
Kelledin
 
Posts: 3
Joined: Fri May 23, 2014 6:58 pm

Re: How to build a kernel on a Parallela board

Postby yanidubin » Thu Sep 18, 2014 10:23 am

Hi kelledin - I came across your post, because I am interested in the linux-xlnx kernel. But in particular I am after the DMA drivers which seem to have been an issue for you. Anything new since July?

I'm thinking of just using the linux-xlnx kernel entire as a starting point, see if I can get FPGA DMA working, and then might try to port this across (will at least have a reference so can see if I break stuff where right option is not so clear). Or perhaps someone will have ported it by then.
User avatar
yanidubin
 
Posts: 95
Joined: Mon Dec 17, 2012 3:23 am
Location: Christchurch, New Zealand

Re: How to build a kernel on a Parallela board

Postby Gowrav » Sun Feb 15, 2015 3:24 pm

@shodruk, Hi this was my first attempt at building the kernel, I followed the post point to point even though the build process had quite a few warnings it yielded a kernel of ~5MB., but the parallella board refused to boot after that and ends with an error in 'clk' file and ending with kernel panic in earlyprintk in the bootargs of devicetree.

I am trying to add the support for realtek wireless adapter rtl8188eu, with the zynq7010 parallella 16 board which is currently booting linaro with default hdmi kernel files.
User avatar
Gowrav
 
Posts: 3
Joined: Fri Feb 13, 2015 6:41 am

Re: How to build a kernel on a Parallela board

Postby jahorin » Sat Jul 11, 2015 2:17 pm

Where is the xcomm_zynq.tar.gz link now? The link in shodruk's instructions seems to have been moved
Get the kernel source

Code: Select all
mkdir ~/src

cd ~/src

wget -O parallella-linux-adi-xcomm_zynq.tar.gz https://github.com/parallella/parallella-linux-adi/archive/xcomm_zynq.tar.gz

tar xzf parallella-linux-adi-xcomm_zynq.tar.gz

cd parallella-linux-adi-xcomm_zynq
jahorin
 
Posts: 18
Joined: Wed Jun 03, 2015 5:19 pm

Re: How to build a kernel on a Parallela board

Postby dcd4408 » Wed Aug 05, 2015 5:24 pm

Where is the xcomm_zynq.tar.gz link now? The link in shodruk's instructions seems to have been moved


I've tried this 3 times, even using the most up-to-date version from https://github.com/parallella/parallella-linux and every time I
Code: Select all
sync
then
Code: Select all
reboot
I get nothing. I have to wipe and reinstall my image.

Any ideas?
dcd4408
 
Posts: 7
Joined: Wed Jul 29, 2015 3:19 pm

Previous

Return to Linux/U-Boot

Who is online

Users browsing this forum: Majestic-12 [Bot] and 4 guests