3.10.17 Kernel

Discussion in 'Kernels' started by jas-mx, Feb 11, 2014.

  1. ivan.stojanovic

    ivan.stojanovic New Member

    Joined:
    Jan 21, 2014
    Messages:
    7
    Likes Received:
    0
    I guess you have to set that set of commands each time. In that case, you haven't created boot.scr.
    Do following:
    - create a file (e.g. boot.script) containing those boot commands,
    - use following command to generate boot.scr: mkimage -A arm -T script -C none -n "My Boot.scr" -d PATH_TO_BOOT_SCRIPT/boot.script /PATH_WHERE_YOU_WANT_IT_GENERATED/boot.scr
    - copy boot.scr to the root of your UDOO
    - in u-boot, check if environment variable "script" is set to "boot.scr"

    It should boot now.
     
  2. ivan.stojanovic

    ivan.stojanovic New Member

    Joined:
    Jan 21, 2014
    Messages:
    7
    Likes Received:
    0
    Thank you very much for your help. You were right, it was the "HDMI to DVI" adapter. With "HDMI to VGA" I finally got output. I tried two 19" LCD monitors and it basically works with both but only in resolution 640x480. I tried to change frame buffer settings to support 800x600 or 1024x768 resolution but that didn't work. Do you have any idea why? What I tried is following: fbset -g 800 600 800 600 32. After I do that, I get black screen :( If I return it to 640x480, I get the output again. Do you know what changes are needed in order to support other resolutions? I also tried to change boot command but it always runs in 640x480 no matter what I set in the kernel boot command.

    In return for your help (I don't have anything else to offer), here is a nice joke I heard this morning: Why was 6 afraid of 7? Because 7 ate 9 :)
     
  3. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    It reverts to 640x480 because there was no EDID values detected, some HDMI to VGA adapters require additional power to make them work correcty. Did you try adding the resolution to boot.scr, if yes can you pastebin the uboot/kernel output.
     
  4. ivan.stojanovic

    ivan.stojanovic New Member

    Joined:
    Jan 21, 2014
    Messages:
    7
    Likes Received:
    0
    Hi jas-mx,

    I tried to give it additional power (via USB) but that didn't help. Please find attached uboot_kernel_output.zip. You will see there that I tried to set (manually) 800x600 resolution in u-boot.

    Thanks,
    Ivan
     

    Attached Files:

  5. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    You are setting the resolution for fb1 NOT fb0 in your uboot script:

    Code:
    video=mxcfb1:dev=hdmi,800x600M@60,bpp=32
    It should be:

    Code:
    video=mxcfb0:dev=hdmi,800x600M@60,bpp=32
    BTW next time can you provide a dump via pastebin.
     
  6. flok

    flok New Member

    Joined:
    Nov 19, 2013
    Messages:
    6
    Likes Received:
    0
    Are you considering working on 3.14 as well?

    Is this dts-file required? Because on my ubuntu-for-udoo-image there's no dts file to be found.

    The 2013uboot is probably integrated in ubuntu 12.04 v2.1 right?
     
  7. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    Not at the moment.

    For later kernel releases dts file(s) are required as they replace the inconsistency of creating "board specific files" for every ARM device.

    Not sure because I have not deployed/used it. If you have serial console output then you can easily verify because the uboot version is displayed.
     
  8. Ionut

    Ionut New Member

    Joined:
    Jun 9, 2013
    Messages:
    10
    Likes Received:
    0
    Has anyone been able to access the udoo camera on this kernel, I loaded the modules but for the life of me I can't create a device node for it.
     
  9. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    Thats because the MIPI interface is not configured in the dts file, if you know what your doing then you can try configuring it to the dts file.

    As I don't own any of the official UDOO peripherals hence can't test, I haven't configured them in the dts.
     
  10. Ionut

    Ionut New Member

    Joined:
    Jun 9, 2013
    Messages:
    10
    Likes Received:
    0
    I can try and get my hands dirty, tho I doubt it's as easy as getting the configuration from the sabre/nitrogen or wandboard and it would just work on the udoo. Need to do some reading on dts and i2c. Any pointers?
     
  11. oktavio1

    oktavio1 New Member

    Joined:
    Feb 11, 2014
    Messages:
    3
    Likes Received:
    0
    Hi, jas-mx

    Great work, I am very interested in this debian distribution with support for camera (well i'm on computer vision projects with embedded boards), in udooDebianarmhf I have installed opencv but no usb webcamera works ("I think the driver") I dont know why??. I'm try installing with the steps from this tutorial but it didn't work (for me :D ), so I follow this instructions, next I will try to install opencv and if i have success I will upload instructions

    first install some dependencies:
    Code:
    sudo apt-get install git build-essential wget u-boot-tools zlib1g-dev ncurses-dev cmake gcc-arm-linux-gnueabihf libc-dev-armhf-cross g++-arm-linux-gnueabihf pkg-config-arm-linux-gnueabihf build-essential checkinstall cmake pkg-config lzop
    1. linux kernel deploy
    workpath ~/ or better your workpath
    Code:
    git clone git://github.com/mtx512/linux-imx.git
    cd linux-imx
    git checkout -b imx_3.10.17_1.0.0_beta-udoo origin/imx_3.10.17_1.0.0_beta-udoo
    make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf-  udoo_defconfig
    make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf- dtbs
    make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf- -j4 uImage LOADADDR=0x12000000
    make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf- INSTALL_MOD_PATH=output modules
    make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf- INSTALL_MOD_PATH=output modules_install
    2. Build Uboot and deploy to SD card. ~/
    Code:
    git clone git://git.denx.de/u-boot.git
    cd u-boot/
    git checkout v2014.04 -b tmp
    patch
    Code:
    wget -c https://raw.github.com/eewiki/u-boot-patches/master/v2014.04/0001-udoo-uEnv.txt-bootz-n-fixes.patch
    patch -p1 < 0001-udoo-uEnv.txt-bootz-n-fixes.patch
    make
    Code:
    make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf- distclean
    make CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf- udoo_quad_config
    make CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf-
    Setup microSD/SD card , Erase microSD/SD card, Install Bootloader: ~/u-boot/ (is good to have a formated sdcard)
    export DISK=/dev/sd*
    Code:
    export DISK=/dev/sdb
    sudo dd if=/dev/zero of=${DISK} bs=1M count=16
    sudo dd if=~/u-boot/u-boot.imx of=${DISK} bs=512 seek=2
    and Create Partition Layout:
    Code:
    sudo sfdisk --in-order --Linux --unit M ${DISK} <<-__EOF__
    1,48,0x83,*
    ,,,-
    __EOF__
    Format Partitions and Mount Partitions:
    Code:
    sudo mkfs.ext2 ${DISK}1 -L boot
    sudo mkfs.ext4 ${DISK}2 -L rootfs
    
    sudo mkdir -p /media/boot/
    sudo mkdir -p /media/rootfs/
    sudo mount ${DISK}1 /media/boot/
    sudo mount ${DISK}2 /media/rootfs/
    Create uEnv.txt based bootscript
    ~/uEnv.txt
    Code:
      #optargs=
      #mmcroot=/dev/mmcblk0p2 ro
      #mmcrootfstype=ext4 rootwait fixrtc
      #video=
     
      #Quad:
      fdtfile=imx6q-udoo.dtb
     
      #Dual:
      #fdtfile=imx6dl-udoo.dtb
    Copy uEnv.txt to the boot partition:
    Code:
    sudo cp -v ./uEnv.txt /media/boot/
    3. Extract debian rootfs onto ext4 partition on SD card
    Code:
    cd path/to/roofts.tar.gz
    sudo tar -zxvf ./jessie-3.10.17_beta.tar.gz -C /media/rootfs/
    4. Copy kernel/modules and dts to ext4 parition:

    Kernel Image:
    Code:
    sudo cp -v ./linux-imx/arch/arm/boot/zImage /media/boot/zImage
    Kernel Device Tree Binaries:
    Code:
    sudo mkdir -p /media/boot/dtbs/
    sudo cp ./linux-imx/arch/arm/boot/dts/imx6q-udoo.dtb /media/boot/dtbs/
    Kernel Modules:
    Code:
    sudo cp -r ./linux-imx/output/lib/modules/3.10.17-xxxx  /media/rootfs/lib/modules
    5. Edit: /etc/fstab
    Code:
    sudo nano /media/rootfs/etc/fstab
    copy:
    Code:
    /dev/mmcblk0p2   /           auto   errors=remount-ro   0   1
    /dev/mmcblk0p1   /boot/uboot auto   defaults            0   2
    6. Edit: /etc/network/interfaces
    Code:
    sudo nano /media/rootfs/etc/network/interfaces
    copy
    Code:
     
    auto lo
    iface lo inet loopback
     
    auto eth0
    iface eth0 inet dhcp
    7. Serial Login
    Code:
    sudo nano /media/rootfs/etc/inittab
    copy:
    Code:
    T0:23:respawn:/sbin/getty -L ttymxc1 115200p
    8. Remove microSD/SD card:
    Code:
    sync
    sudo umount /media/boot
    sudo umount /media/rootfs
    references from RobertNelson and jas-mx
    http://eewiki.net/display/linuxonarm/UDOO
    viewtopic.php?f=19&t=693
     
  12. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    Updated rootfs to 3.10.17 GA release, see original post for link. You need to create a new kernel with my udoo patches from my beta branch.
     
  13. moon.linux

    moon.linux New Member

    Joined:
    Feb 17, 2014
    Messages:
    6
    Likes Received:
    0
    Hi Jas-mx,

    I would like to submit a patch to fix the cpufreq_interactive scheduling issue. Probably a race on the notifier chains. To which mailing list should I send the patch. Could you suggest me some.

    -Anand Moon
     
  14. Rodobmx

    Rodobmx New Member

    Joined:
    Oct 15, 2014
    Messages:
    1
    Likes Received:
    0
    Hi there,

    Do someone have updated the "bossac" driver (Processor part) for this kernel ?
    See the original one (3.0.35) :
    https://github.com/UDOOboard/Kernel_Uni ... udoo_ard.c

    But It cant be used as it is. I tried to adapt it, but i have still some errors while inserting module :

    Serial debug info :
    Unknown symbol __gpio_get_value (err 0)
    udoo_ard: Unknown symbol gpio_free (err 0)
    udoo_ard: Unknown symbol __gpio_to_irq (err 0)
    udoo_ard: Unknown symbol gpio_direction_output (err 0)
    udoo_ard: Unknown symbol gpio_direction_input (err 0)
    udoo_ard: Unknown symbol __gpio_set_value (err 0)
    udoo_ard: Unknown symbol gpio_request (err 0)
    udoo_ard: Unknown symbol __alloc_workqueue_key (err 0)
    udoo_ard: Unknown symbol local_clock (err 0)
    udoo_ard: no symbol version for module_layout


    cmd line error:
    $ sudo insmod ./misc/udoo_ard.ko
    [sudo] password for ####:
    Error: could not insert module ./misc/udoo_ard.ko: Unknown symbol in module

    Thanks
     
  15. hamidsani

    hamidsani New Member

    Joined:
    Oct 17, 2014
    Messages:
    4
    Likes Received:
    0
    Hi folks,

    Could anyone guide me through how to enable the Uart 3 and 5 on this kernel? It appears that it has the Uart 2 and 4 turned on by default (used by the imx chip). In the original UDOO kernel_unico, I would set the proper pins in the board-mx6qd_seco_UDOO.h and .c files. But now I have no clue where I can set the proper pins.

    I need a newer kernal 3.4+ and two UART pins for the project that I am currently working on.

    Any help would be appreciate it. Thanks in advance
     
  16. SnakeDoc

    SnakeDoc New Member

    Joined:
    Oct 31, 2014
    Messages:
    1
    Likes Received:
    0
    what are the exact differences between the "Udoo" kernel and the mainline kernel? Am i able to use mainline? (their github repo was setup poorly as a fresh repo instead of a fork, making it hard to tell the exact changes as well as making it hard for the udoo project to keep up-to-date with mainline)
     
  17. larryhartman50

    larryhartman50 New Member

    Joined:
    Jun 6, 2014
    Messages:
    6
    Likes Received:
    0
    For those who are testing, I am interested to see if the I2C buses work alongside Dallas one-wire library w1-gpio and w1-therm. Seems to be a conflict on the 3.0.35 kernel that causes an error when module w1-gpio is loaded. rPi forums discuss the issue and seems to be resolved on this platform.

    Larry
     
  18. chrta

    chrta New Member

    Joined:
    Aug 5, 2014
    Messages:
    4
    Likes Received:
    0
    You can have a look at my repository: https://github.com/chrta/kernel-udoo/co ... doo_3.0.35 It shows the differences to the freescale kernel 3.0.35.
    I reworked the initial commit (https://github.com/chrta/kernel-udoo/co ... 5a3a89a32d), so i can see the diff to the freescale kernel 3.0.35.
     

Share This Page