build parallella-linux kernel

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

Re: build parallella-linux kernel

Postby Yggdrasil » Sat Sep 13, 2014 10:12 pm

Feik wrote:Ok. Win! I have managed to build a default kernel + devicetree.
Below are the commands that have gained be success:

[/code]


Many thanks! Finally, with this instructions I was able to boot.
Yggdrasil
 
Posts: 5
Joined: Wed Jan 15, 2014 12:51 pm

Re: build parallella-linux kernel

Postby toralf » Sun Sep 14, 2014 5:07 pm

Feik wrote:Ok. Win! I have managed to build a default kernel + devicetree.
Below are the commands that have gained be success:
Code: Select all
// Change all modules to be compiled in (edit .config and swap =m with =y)
vi .config
...

To reject module building just put a comment signin fromt of this line :
Code: Select all
#CONFIG_MODULES=y
-the next "make oldconfig" will automatically re-create the .config with "=y" instad of "=m"
toralf
 
Posts: 8
Joined: Thu Nov 07, 2013 3:41 pm

Re: build parallella-linux kernel

Postby g3vbv » Sun Sep 14, 2014 6:54 pm

UIMAGE arch/arm/boot/uImage
Image Name: Linux-3.14.12-parallella-xilinx-
Created: Sun Sep 14 02:56:16 2014
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3371896 Bytes = 3292.87 kB = 3.22 MB
Load Address: 00008000
Entry Point: 00008000
Image arch/arm/boot/uImage is ready
root@parallella-16:/usr/src/parallella-linux# make zynq-parallella1-hdmi.dtb
DTC arch/arm/boot/dts/zynq-parallella1-hdmi.dtb

I did the backups and copies in /dev/mmcblk0p1 followed by sync and reboot.
No HDMI output - kernel .config same as the original kernel
.
root@parallella-16:/usr/src/parallella-linux# grep HDMI .config
CONFIG_VIDEO_AXI_HDMI_RX=y
CONFIG_DRM_ADI_AXI_HDMI=y
CONFIG_HDMI=y
CONFIG_SND_SOC_ADV7511_HDMI=y

slipstream:~ # ssh -X parallella-16
root@parallella-16's password:
Welcome to Linaro 14.04 (GNU/Linux 3.14.12-parallella-xilinx-g1095261-dirty armv7l)

* Documentation: https://wiki.linaro.org/
Last login: Sun Sep 14 16:40:09 2014
root@parallella-16:~# ps fax|grep X
2790 pts/0 S+ 0:00 \_ grep --color=auto X
root@parallella-16:~# lsusb
Bus 001 Device 006: ID 0d8c:0102 C-Media Electronics, Inc. CM106 Like Sound Device
Bus 001 Device 005: ID 0458:0019 KYE Systems Corp. (Mouse Systems)
Bus 001 Device 004: ID 0eef:0001 D-WAV Scientific Co., Ltd eGalax TouchScreen
Bus 001 Device 003: ID 047d:2043 Kensington
Bus 001 Device 002: ID 04cc:1521 ST-Ericsson USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@parallella-16:~#

Xorg.0.log
-----------------
[ 21.648] (==) AIGLX enabled
[ 21.648] Loading extension GLX
[ 21.648] (II) LoadModule: "modesetting"
[ 21.649] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 21.653] (II) Module modesetting: vendor="X.Org Foundation"
[ 21.653] compiled for 1.15.0, module version = 0.8.1
[ 21.653] Module class: X.Org Video Driver
[ 21.653] ABI class: X.Org Video Driver, version 15.0
[ 21.653] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 21.653] (++) using VT number 7

[ 21.654] (WW) Falling back to old probe method for modesetting
[ 21.654] (EE) open /dev/dri/card0: No such file or directory
[ 21.654] (EE) No devices detected.
[ 21.654] (==) Matched modesetting as autoconfigured driver 0
[ 21.654] (==) Matched fbdev as autoconfigured driver 1
[ 21.654] (==) Assigned the driver to the xf86ConfigLayout
[ 21.654] (II) LoadModule: "modesetting"
[ 21.655] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 21.655] (II) Module modesetting: vendor="X.Org Foundation"
[ 21.655] compiled for 1.15.0, module version = 0.8.1
[ 21.656] Module class: X.Org Video Driver
[ 21.656] ABI class: X.Org Video Driver, version 15.0
[ 21.656] (II) UnloadModule: "modesetting"
[ 21.656] (II) Unloading modesetting
[ 21.656] (II) Failed to load module "modesetting" (already loaded, -1224808232)
[ 21.656] (II) LoadModule: "fbdev"
[ 21.657] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[ 21.659] (II) Module fbdev: vendor="X.Org Foundation"
[ 21.659] compiled for 1.15.0, module version = 0.4.4
[ 21.659] Module class: X.Org Video Driver
[ 21.659] ABI class: X.Org Video Driver, version 15.0
[ 21.659] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 21.660] (II) FBDEV: driver for framebuffer: fbdev
[ 21.660] (++) using VT number 7

[ 21.660] (WW) xf86OpenConsole: setpgid failed: Operation not permitted
[ 21.660] (WW) xf86OpenConsole: setsid failed: Operation not permitted
[ 21.660] (WW) Falling back to old probe method for modesetting
[ 21.660] (EE) open /dev/dri/card0: No such file or directory
[ 21.660] (WW) Falling back to old probe method for fbdev
[ 21.660] (II) Loading sub module "fbdevhw"
[ 21.660] (II) LoadModule: "fbdevhw"
[ 21.667] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[ 21.669] (II) Module fbdevhw: vendor="X.Org Foundation"
[ 21.669] compiled for 1.15.1, module version = 0.0.2
[ 21.669] ABI class: X.Org Video Driver, version 15.0
[ 21.670] (EE) open /dev/fb0: No such file or directory
[ 21.670] (EE) No devices detected.
[ 21.670] (EE)
Fatal server error:
[ 21.670] (EE) no screens found(EE)
[ 21.670] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 21.670] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 21.671] (EE)
[ 21.672] (EE) Server terminated with error (1). Closing log file.

root@parallella-16:~# ls -l /usr/lib/xorg/modules/libfb.so
-rw-r--r-- 1 root root 92452 Apr 16 14:51 /usr/lib/xorg/modules/libfb.so

FB and CONFIG_FB_XILINX settings same as in the 3.12 kernel and /etc/X11/xorg.conf the same.
root@parallella-16:/usr/src/parallella-linux# grep FB .config
CONFIG_DRM_KMS_FB_HELPER=y
CONFIG_FB=y
CONFIG_FB_SYS_FILLRECT=y
CONFIG_FB_SYS_COPYAREA=y
CONFIG_FB_SYS_IMAGEBLIT=y

root@parallella-16:/usr/src/parallella-linux# grep CONFIG_FB_XILINX .config
# CONFIG_FB_XILINX is not set
Retired - Senior Staff Specialist Amdahl worldwide supporting AMDAHL/Fujitsu/IBM Mainframes and Sun/Fujitsu SPARC servers.
g3vbv
 
Posts: 30
Joined: Mon Dec 17, 2012 3:25 am
Location: Halesowen, West Midlands, UK

Re: build parallella-linux kernel

Postby 9600 » Mon Sep 15, 2014 9:39 am

g3vbv wrote:I did the backups and copies in /dev/mmcblk0p1 followed by sync and reboot.
No HDMI output - kernel .config same as the original kernel


As noted elsewhere, if you build a kernel from git there is presently no HDMI support, but this is being worked on.

Regards,

Andrew
Andrew Back (a.k.a. 9600 / carrierdetect)
User avatar
9600
 
Posts: 997
Joined: Mon Dec 17, 2012 3:25 am

Re: build parallella-linux kernel

Postby g3vbv » Mon Sep 15, 2014 12:09 pm

Thanks Andrew,
Good to know it wasn't anything I overlooked.
Keep up the good work.
Regards
Sid.
Retired - Senior Staff Specialist Amdahl worldwide supporting AMDAHL/Fujitsu/IBM Mainframes and Sun/Fujitsu SPARC servers.
g3vbv
 
Posts: 30
Joined: Mon Dec 17, 2012 3:25 am
Location: Halesowen, West Midlands, UK

Re: build parallella-linux kernel

Postby tufei » Sat Sep 20, 2014 6:34 pm

Thanks! I was able to build the kernel and device tree using your guide and booted successfully. The only change I made, since I am running it without HDMI, is:

make zynq-parallella1-headless.dtb

Feik wrote:Ok. Win! I have managed to build a default kernel + devicetree.
Below are the commands that have gained be success:
Code: Select all
// Check out from GIT
git clone https://github.com/parallella/parallella-linux

cd parallella-linux

// Build config
make mrproper
make parallella_defconfig

// Change all modules to be compiled in (edit .config and swap =m with =y)
vi .config

// Make kernel
make -j 4 LOADADDR=0x8000 uImage

// Make DeviceTree
make zynq-parallella1-hdmi.dtb

// Mount boot partition
sudo mount /dev/mmcblk0p1 /mnt

// Move old files out of the way
sudo mv /mnt/uImage /mnt/uImage.bak
sudo mv /mnt/devicetree.dtb /mnt/devicetree.dtb.bak

// Copy new files into place
sudo cp arch/arm/boot/uImage /mnt/uImage
sudo cp arch/arm/boot/dts/zynq-parallella1-hdmi.dtb /mnt/devicetree.dtb

// Reboot and pray
sudo sync
sudo reboot


I haven't tried doing any more modifications to the kernel yet. But I presume make menuconfig will do the trick

It seems the default config is missing some things.
The main thing I have found so far is IIO is missing so the temp sensor script won't work.
I have also yet to succeed in getting Wifi going... but I have a feeling I am missing something in the setup process for that.
tufei
 
Posts: 4
Joined: Sat Jul 05, 2014 3:05 pm

Re: build parallella-linux kernel

Postby fuzz » Sun Nov 09, 2014 6:00 am

9600 wrote:
g3vbv wrote:I did the backups and copies in /dev/mmcblk0p1 followed by sync and reboot.
No HDMI output - kernel .config same as the original kernel


As noted elsewhere, if you build a kernel from git there is presently no HDMI support, but this is being worked on.

Regards,

Andrew


Are there any discussions on HDMI support in the git kernel?

I compiled 3.14.12-parallella-xilinx-gf8baec6 this evening, working great with /dev/epiphany support and the latest esdk. I also enabled IIO and the ADC which is disabled in the config for some reason. Temperature monitoring works. No HDMI which isn't a big deal for me, but I'm curious about it. Is it something in the kernel, or do we need an updated FPGA bitstream?
fuzz
 
Posts: 11
Joined: Fri Jul 04, 2014 2:19 am

Re: build parallella-linux kernel

Postby g3vbv » Sun Nov 09, 2014 1:01 pm

I built 3.14.12 5 days ago but it didn't boot.
"git pull" says it's already up to date.

I have never been able to get serial console messages to help identify problems.

For 3.14.12
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y
CONFIG_USB_SERIAL=y
CONFIG_USB_SERIAL_CP210X=y
CONFIG_USB_SERIAL_PL2303=y
root@parallella-16:/a1/parallella-linux# ls -l /dev/ttyPS0
crw-rw---- 1 root dialout 251, 0 Jan 1 1970 /dev/ttyPS0

3.12.0-g0bc9c3a-dirty
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y
CONFIG_SERIAL_XILINX_PS_UART=y
CONFIG_SERIAL_XILINX_PS_UART_CONSOLE=y
Retired - Senior Staff Specialist Amdahl worldwide supporting AMDAHL/Fujitsu/IBM Mainframes and Sun/Fujitsu SPARC servers.
g3vbv
 
Posts: 30
Joined: Mon Dec 17, 2012 3:25 am
Location: Halesowen, West Midlands, UK

Re: build parallella-linux kernel

Postby fuzz » Sun Nov 09, 2014 8:44 pm

g3vbv wrote:I built 3.14.12 5 days ago but it didn't boot.
"git pull" says it's already up to date.

I have never been able to get serial console messages to help identify problems.

For 3.14.12
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y
CONFIG_USB_SERIAL=y
CONFIG_USB_SERIAL_CP210X=y
CONFIG_USB_SERIAL_PL2303=y
root@parallella-16:/a1/parallella-linux# ls -l /dev/ttyPS0
crw-rw---- 1 root dialout 251, 0 Jan 1 1970 /dev/ttyPS0

3.12.0-g0bc9c3a-dirty
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y
CONFIG_SERIAL_XILINX_PS_UART=y
CONFIG_SERIAL_XILINX_PS_UART_CONSOLE=y


I haven't tried the uart, but it appears to be enabled. Did you remember to compile and copy the dtb after compiling uImage?

Code: Select all
linaro-nano:~/fuzz> uname -a
Linux linaro-nano 3.14.12-parallella-xilinx-gf8baec6 #1 SMP PREEMPT Sun Nov 9 03:25:59 UTC 2014 armv7l armv7l armv7l GNU/Linux


Code: Select all
Jan  1 00:00:04 linaro-nano kernel: e0001000.uart: ttyPS0 at MMIO 0xe0001000 (irq = 82, base_baud = 3124999) is a xuartps
Jan  1 00:00:04 linaro-nano kernel: console [ttyPS0] enabled


Code: Select all
linaro-nano:~/fuzz> zcat /proc/config.gz |grep UART
# CONFIG_BT_HCIUART is not set
# CONFIG_SERIAL_UARTLITE is not set
# CONFIG_SERIAL_ALTERA_JTAGUART is not set
# CONFIG_SERIAL_ALTERA_UART is not set
CONFIG_SERIAL_XILINX_PS_UART=y
CONFIG_SERIAL_XILINX_PS_UART_CONSOLE=y
# CONFIG_SERIAL_FSL_LPUART is not set
# CONFIG_SDIO_UART is not set
# CONFIG_DEBUG_ZYNQ_UART0 is not set
CONFIG_DEBUG_ZYNQ_UART1=y
# CONFIG_DEBUG_LL_UART_8250 is not set
# CONFIG_DEBUG_LL_UART_PL01X is not set
# CONFIG_DEBUG_UART_PL01X is not set
# CONFIG_DEBUG_UART_8250 is not set
fuzz
 
Posts: 11
Joined: Fri Jul 04, 2014 2:19 am

Re: build parallella-linux kernel

Postby g3vbv » Sat Nov 22, 2014 1:00 am

I followed the regular instructions:-
// Check out from GIT
git clone https://github.com/parallella/parallella-linux

cd parallella-linux

// Build config
make mrproper
make parallella_defconfig

// Change all modules to be compiled in (edit .config and swap =m with =y)
vi .config

// Make kernel
make -j 4 LOADADDR=0x8000 uImage

// Make DeviceTree
make zynq-parallella1-hdmi.dtb

// Mount boot partition
sudo mount /dev/mmcblk0p1 /mnt

// Move old files out of the way
sudo mv /mnt/uImage /mnt/uImage.bak
sudo mv /mnt/devicetree.dtb /mnt/devicetree.dtb.bak

// Copy new files into place
sudo cp arch/arm/boot/uImage /mnt/uImage
sudo cp arch/arm/boot/dts/zynq-parallella1-hdmi.dtb /mnt/devicetree.dtb

// Reboot and pray
sudo sync
sudo reboot
Retired - Senior Staff Specialist Amdahl worldwide supporting AMDAHL/Fujitsu/IBM Mainframes and Sun/Fujitsu SPARC servers.
g3vbv
 
Posts: 30
Joined: Mon Dec 17, 2012 3:25 am
Location: Halesowen, West Midlands, UK

PreviousNext

Return to Linux/U-Boot

Who is online

Users browsing this forum: No registered users and 1 guest