Udoo quad Debian and Ubuntu image with 4.4.20 and 3.14.79 / 16.9.2016

Discussion in 'Debian' started by igorpec, Mar 7, 2015.

  1. igorpec

    igorpec UDOOer

    Joined:
    Jan 25, 2015
    Messages:
    28
    Likes Received:
    13
    Hi people. Quite some time ago I created a script for general kernel compilation and image creation for ARM boards that are scattered around my desk ;) Recently I added support for Udoo Quad and you are able to compile your own kernel / image if you like or need to.

    [​IMG]

    Build process is based on this kernel (great work!) with my own configuration and minor modifications.

    Available for download:
    Debian Wheezy, Jessie and Ubuntu Trusty.

    v5.2
    http://docs.armbian.com/Release_Changelog/

    v1.5.2016
    - 4.4.8 and 3.14.67
    - docker ready

    v1.9 / 6.8.2015
    Kernel 4.0.8 with working analogue audio
    Added desktop image
    Added auto kernel / system update via repository apt.armbian.com
    Root password change is initialized at first boot.

    v1.8 / 13.7.2015
    Kernel 4.0.8

    v1.7 / 17.5.2015
    Kernel 3.18.13
    Ubuntu and jessie install errors fixed, removed busybox-syslogd and changed to default logger due to problems in Jessie and Ubuntu, apt-get upgrade fixed, documentations update
    Build script rework – image size shrink to actual size, possible to have fat boot partition on SD card, several script bug fixes

    v1.6 / 20.4.2015
    Kernel 3.18.11
    Added Jessie and Ubuntu Trusty
    apt-get upgrade ready but not enabled yet, serial console fixed, fixed hostapd under jessie, easy kernel switching, latest patched hostapd for best performance – normal and for realtek adaptors, auto IO scheduler script
    Build script: everything packed as DEB

    Summary:
    • Build ready – possible to compile external modules.
    • Eth and Wifi operational
    • Many performance tweaks

    Details:
    • Ethernet adapter with DHCP and SSH server ready on default port (22) with regenerated keys @ first boot
    • Wireless adapter with DHCP ready but disabled (/etc/network/interfaces, WPA2: normal connect, bonding / notebook or AP mode). It can handle between 40-70Mbit/s.
    • SATA operational
    • Enabled HDMI audio device
    • Bluetooth ready (working with external key)
    • root file-system auto resize
    • Graphics desktop environment upgrade ready
    • Serial console enabled
    • Enabled automatic security updating
    • Login script shows Udoo MOTD, hard drive temp, ambient temp from Temper if exits & actual free memory
    • root password=1234 and expires at first login

    Performance tweaks:
    • /tmp & /log = RAM, ramlog app saves logs to disk daily and on shut-down.
    • IO scheduler NOOP for SD. (change in /etc/sysfs.conf)
    • journal data writeback enabled. (/etc/fstab)
    • commit=600 to flush data to the disk every 10 minutes (/etc/fstab)

    Bugs or limitations
    • Exists. :) :( Please report that we can fix them.

    Download
     
    Last edited: Sep 16, 2016
    patrykk and Guilherme Strube like this.
  2. sirrab

    sirrab UDOOer

    Joined:
    Jul 26, 2014
    Messages:
    264
    Likes Received:
    32
    Udoo quad Debian SD image with 3.18.x

    Very cool!
     
  3. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
    Udoo quad Debian SD image with 3.18.x

    Amazing ! I will test it this week and let you know ! Thank's for it ;)
     
  4. Keridos

    Keridos New Member

    Joined:
    Nov 19, 2013
    Messages:
    22
    Likes Received:
    0
    Udoo quad Debian SD image with 3.18.x

    Hi there,
    I just took your kernel and put it into an older installation of debian wheezy I have installed. But for some reason OpenGL acceleration does not seem to work. What could cause that?
     
  5. patrykk

    patrykk Member

    Joined:
    Dec 10, 2014
    Messages:
    52
    Likes Received:
    9
    Re: Udoo quad Debian SD image with 3.18.x

    Hi Igor: please update kernel to last from my repo. I resolved bug related to VPU.
    Keridos: You need new binaries from freescale for kernel 3.10.53-ga :

    libcec-imx6 13.20141201
    imx-lib 3.10.53_1.1.0
    imx-vpu 5.4.27-1
    firmware-imx 3.10.31_1.1.0
    imx-gpu-viv-g2d 5.0.11.p4.1 (previous name: gpu-viv-g2d)
    imx-gpu-viv-(x11|fb) 5.0.11.p4.1 (previous name: gpu-viv-bin-mx6q)
    libfslvpuwrap 1.0.57
    libcec-imx6 13.20141201

    best regards,
     
  6. Keridos

    Keridos New Member

    Joined:
    Nov 19, 2013
    Messages:
    22
    Likes Received:
    0
    Re: Udoo quad Debian SD image with 3.18.x

    Ok, so I need to manually compile them or can I just apt-get them?
     
  7. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
    Udoo quad Debian SD image with 3.18.x

    Yesterday i tried uour debian version. First boot all works but after i install a desktop environment :

    Code:
    apt-get -y install xorg lightdm xfce4 xfce4-goodies tango-icon-theme gnome-icon-theme
    reboot
    
    after that i just have a box where i write my login and password. Then, i only have a terminal ! I don't have any desktop ! This is normal ?
     
  8. mocho

    mocho New Member

    Joined:
    Mar 14, 2015
    Messages:
    8
    Likes Received:
    0
    Re: Udoo quad Debian SD image with 3.18.x

    First of all thanks for your work.
    Second just to tell you that tried ubuntu and it did not work. I could compile, write image to sd card, but nothing happens. not even grub info.

    third. you say your image is bluetooth ready with external key, but I tryed 3 or 4 diferent keys and all i am getting is
    Code:
    root@udoo:~# /etc/init.d/bluetooth start
    [....] Starting bluetooth: bluetoothd rfcommCan't open RFCOMM control socket: Address family not supported by protocol
    . ok
    I can not start bluetooth

    Also, I can mount an usb ext3 disk trough mount command but it offens fails trough fstab

    Code:
    root@udoo:~# mount -a
    mount: wrong fs type, bad option, bad superblock on /dev/sda1,
           missing codepage or helper program, or other error
           In some cases useful info is found in syslog - try
           dmesg | tail  or so
    regards
     
  9. igorpec

    igorpec UDOOer

    Joined:
    Jan 25, 2015
    Messages:
    28
    Likes Received:
    13
    Udoo quad Debian SD image with 3.18.x

    Yes, this is normal. Those instructions are for quick / basic / essential / minimal desktop, more as a prove that it's possible. I leave desktop upgrade open to you since this is also a border line for me to keep focus on real problems.

    From this point is the same as on any Debian / Ubuntu.
     
  10. igorpec

    igorpec UDOOer

    Joined:
    Jan 25, 2015
    Messages:
    28
    Likes Received:
    13
    Re: Udoo quad Debian SD image with 3.18.x

    I can't comment why Ubuntu compilation wasn't successful. There are way too many things that can go wrong and I also never try to compile Ubuntu for Udoo. I plan to add Jessie / Trusty when we fix most of problems including Bluetooth. I guess I need to re-check configuration. Thanks for feedback.
     
  11. igorpec

    igorpec UDOOer

    Joined:
    Jan 25, 2015
    Messages:
    28
    Likes Received:
    13
    Re: Udoo quad Debian SD image with 3.18.x

    Yes, I just put out a new compilation. Essentials are working, now testing and since I forget to fix Bluetooth there will be an update soon.
     
  12. Keridos

    Keridos New Member

    Joined:
    Nov 19, 2013
    Messages:
    22
    Likes Received:
    0
    Udoo quad Debian SD image with 3.18.x / 14.3.2015

    Hm, I have an issue, i used my old chroot to build the stuff, copied the new kernel headers from the repository you specified via
    Code:
    make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_HDR_PATH=../xbmc-build/usr/src/linux headers_install
    But on compiling imx-lib I get the issue that
    Code:
    pxp_lib.h:19:30: fatal error: linux/pxp_device.h: No such file or directory
    .

    What did I do wrong there?

    Or can I just fetch the binaries from your image somehow?
     
  13. mmeinert

    mmeinert Member

    Joined:
    Jun 17, 2014
    Messages:
    61
    Likes Received:
    1
    Re: Udoo quad Debian SD image with 3.18.x / 14.3.2015

    Great work !
    Will test 1.4 this weekend :)

    Thank you
     
  14. mocho

    mocho New Member

    Joined:
    Mar 14, 2015
    Messages:
    8
    Likes Received:
    0
    Re: Udoo quad Debian and Ubuntu image with 3.18.x / 20.4.201

    Thank you!
    Best image for Udoo by far, the ones that are in download area are crap, don't even have bridge suport in kernel.
     
  15. punk45rock

    punk45rock Member

    Joined:
    Dec 21, 2013
    Messages:
    32
    Likes Received:
    2
    Hi is it possible to access the arduino with this image? I have been trying with the instructions in jas-mx Debian Jessie thread but the arduino ide says it can't find gpio pins.
     
  16. patrykk

    patrykk Member

    Joined:
    Dec 10, 2014
    Messages:
    52
    Likes Received:
    9
    Hi,
    You could use arduino from serial and Arduino IDE level under this kernel. Just read README for 3.18 unofficial udoo kernel:
    https://github.com/patrykk/linux-udoo/blob/3.18/README.md
    "Arduino with Udoo patch (export gpio 0 and 117: "echo 0 > /sys/class/gpio/export; echo 117 > /sys/class/gpio/export")"

    @Igor: Please create some howto for yours users.
     
  17. punk45rock

    punk45rock Member

    Joined:
    Dec 21, 2013
    Messages:
    32
    Likes Received:
    2
    Thanks, have got the gpio stuff working, i could blink an led on gpio40 and i have got systemd enabling pins gpio0 and gpio117 at boot. my only problem now is the arduino reports "no device found on ttymxc3" after chmod 777 on /dev/ttymxc3 and chgrp -R dialout /sys/class/gpio. it also spits the same error if i just try running the ide as root. i have also tried using the patched bossac and followed directions for arduino ide in jas-mx debian post.
     
  18. patrykk

    patrykk Member

    Joined:
    Dec 10, 2014
    Messages:
    52
    Likes Received:
    9
    Hm, It sounds like some problem with latest kernels but could you confirm that you couldn't reflash cpu via arduino IDE ?
     
  19. patrykk

    patrykk Member

    Joined:
    Dec 10, 2014
    Messages:
    52
    Likes Received:
    9
  20. punk45rock

    punk45rock Member

    Joined:
    Dec 21, 2013
    Messages:
    32
    Likes Received:
    2
    Fantastic, thank you. I will have a go at compiling the kernel over the weekend.
     

Share This Page