desktop environment with kernel > 3.10.40

Hi All,

I am wondering if someone has a working desktop environment with a kernel > 3.10.40.
Please pay attention no ssh or serial log in but X11/Xorg, working USB3.0 and HDMI.

lsub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

I used different linux distributions[1] and kernels[2] without obtain a stable environment such as
Santyago or L4T official solutions (kernel 3.10.40)[3].

I would like to bring to your attention that I always enabled the USB3 in extlinux.conf:

sudo sed -i 's/usb_port_owner_info=0/usb_port_owner_info=2/' /boot/extlinux/extlinux.conf

I copied the zImage and its tegra124-jetson*.dtb files in the /boot directory as well.
And most of the time with Native compilation! :)

At moment the only stable configuration that I achieved is the release R21.4 or the grinch r21.3 (Santjago) with the optimized Nvidia kernel[3]

I am sure that one of you guys have a working desktop configuration ]with upstream/mainline kernel (> 3.10.40) or whatever is called :P
If so, please, let me know how you did it. Well, no problem I accept clone.img ;)

http://jetsonhacks.com/2015/08/26/clone-image-nvidia-jetson-tk1/
(of course the above link is not for the smart fox will pass me the system.img. It is for the other poor lamers as me…)

Actually we should share working configuration images!
with

sudo ./flash.sh -r -S 14580MiB jetson-tk1 mmcblk0p1

and with 10GB file we will avoid a lot curses and swears!

look forward

[1]

[2]
http://elinux.org/Tegra/Mainline_SW
https://github.com/swarren/linux-tegra.git
https://www.kernel.org/
…and more
native .config command:
make ARCH=arm tegra_defconfig

[3]

http://developer.download.nvidia.com/embedded/L4T/r21_Release_v4.0/source/kernel_src.tbz2

FYI: following my working configuration with kernel 3.10.40

First Flash:
simply download the JetPack software from the NVIDIA
https://developer.nvidia.com/jetson-tk1-development-pack

$ 	chmod +x jetpack-${VERSION}.run
$ "Run the jetpack-${VERSION}.run by double-clicking it in the File Browser"

CHOOSE WHAT TO INSTALL: in particular, if you want to use OpenCV3.0 as described in this script, do not install opencvfortegra from this script or you will end up with two different opencv versions.

read reference for details:
- http://docs.nvidia.com/jetpack-tk1/index.html#developertools/mobile/jetpack/jetpack_install.htm

- http://jetsonhacks.com/2015/03/09/jetpack-1-1-nvidia-jetson-tk1-development-pack/

Enable USB3:
sudo sed -i ‘s/usb_port_owner_info=0/usb_port_owner_info=2/’ /boot/extlinux/extlinux.conf

Disable Autosuspend USB:
sudo sed -i ‘s// usbcore.autosuspend=-1/’ /boot/extlinux/extlinux.conf

Increase usbfs buffer to 1GB (not sure if this helps at all):
sudo sed -i ‘s// usbcore.usbfs_memory_mb=1000/’ /boot/extlinux/extlinux.conf

Add serial and vendor of Twiga interface to Sony camera:
sudo sed -i ‘s// usbserial.vendor=0x04b4 usbserial.product=0x00f9/’ /boot/extlinux/extlinux.conf

After the previous settings, you have to REBOOT. After reboot, go

Chek if USB3 is enabled:
lsub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

Check if autosuspend is OFF:
cat /sys/module/usbcore/parameters/autosuspend must be -1

Enable Max Performance (OPTIONAL FOR PRODUCTION BUT RECOMMENDED TO REDUCE COMPILE TIME):
echo 0 > /sys/devices/system/cpu/cpuquiet/tegra_cpuquiet/enable
echo 1 > /sys/devices/system/cpu/cpu0/online
echo 1 > /sys/devices/system/cpu/cpu1/online
echo 1 > /sys/devices/system/cpu/cpu2/online
echo 1 > /sys/devices/system/cpu/cpu3/online
echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

Check max performance enabled:

check cpu running
cat /sys/devices/system/cpu/online
prompt return is 0-3 all 4 core are running

check frequency

example cpu3
cat /sys/devices/system/cpu/cpu3/cpufreq/scaling_cur_freq 
must be  2320500
otherwise run
echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

cat /sys/kernel/cluster/active 
must be G, error if cpu_n is sleeping

reference:
- http://elinux.org/Jetson/Performance

Add support for USB serial ports to enable camera serial controls over USB:

you will need to recompile the kernel or use grinch. To recompile kernel 

$	sudo apt-add-repository universe
$	sudo apt-get update
$	sudo apt-get upgrade
$	sudo apt-get install libncurses5-dev
$	cd /usr/src/

- Download source kernerl source:
wget http://developer.download.nvidia.com/embedded/L4T/r21_Release_v4.0/source/kernel_src.tbz2
tar -xvf kernel_src.tbz2

- Extract present kernel config and then configure Kernel
cd kernel
zcat /proc/config.gz > .config
sudo make menuconfig

make sure to flag this driver:
1) Device Drivers--> USB support -->
*** USB Host Controller Drivers *** 
[*] xHCI HCD (USB 3.0) support -->

2)  --- USB Serial Converter support   
[*] USB Serial Console device support
[*] USB Generic Serial Driver


---optional to check due to e-con system manual
HID support
[*] /dev/hidraw

- Compile kernel and modules
make -j4
make modules
make modules_install

- backup exising zImage
cp /boot/zImage zImage00
- copy new image of kernel
cp arch/arm/boot/zImage /boot/

- reboot and check usb2serial
ls /dev/ttyUSB0