Jhinta Kernel for Lilstevie Ubuntu

Search This thread

rdnetto

Senior Member
Jul 3, 2011
317
96
Did someone test upgrade to 12.10 ?

Cause for me first reboot was in text mode and then, stuck when booting.

Can the problem be a kernel problem ?

Unlikely - if only the distro has changed, then that's probably where the problem lies. Take a look at /var/log/syslog* and see if there's anything that stands out.
Also, check that you haven't forgotten the Tegra Xorg drivers - /var/log/Xorg*log should be useful.
 

j0ey2069

Member
Dec 10, 2011
21
3
Can anyone give me a hand with this please?

I am trying to find the patch to enable overclocking the CPU up to 1.6GHz. I have searched everywhere And cannot find it.

Thanks,

Joe.

Sent from my GT-I9300 using xda app-developers app
 

rdnetto

Senior Member
Jul 3, 2011
317
96
Can anyone give me a hand with this please?

I am trying to find the patch to enable overclocking the CPU up to 1.6GHz. I have searched everywhere And cannot find it.

Thanks,

Joe.

Sent from my GT-I9300 using xda app-developers app

This post has information on how to check if it's enabled.

My underestanding is that only the 2.6 kernel has overclocking enabled, not the 3.1 one. I'm currently merging in the latest patches from Nvidia, which will hopefully fix the broken USB hot-pluugging. I'll look at enabling OC afterwards.
 
  • Like
Reactions: j0ey2069 and dvhh

sim590

Member
Aug 3, 2012
21
0
[Q] Am I doing this right?

Hey guys,

I've red couple of pages of this thread but I couldn't find an answer to my question.

What I've done so far
  1. Installed ubuntu 11.10 rootfs from http://lilstevie.geek.nz/ports/ubuntu.img.gz on the dock's SD card
  2. Flashed 2.6.36.4 kernel from http://dl.dropbox.com/u/60048492/transformer/Ubuntu-sdcard.zip (making changes to the bootimg.cfg file in order to boot from my rootfs)
  3. Upgraded to Ubuntu 12.04
  4. Used the tutorial in order to update kernel to 3.1.10 from this wiki page http://xdaforums.com/wiki/ASUS_Eee_Pad_Transformer/How_to_install_Ubuntu/Ubuntu_Install (Skipped the tegra driver installation and went with the package "nvidia-tegra" from the repository. I don't know why but, it didn't seem to install properly after using
    Code:
    ./apply_binaries -r <path_to_rootfs> -xabi 11
    It showed an error while starting X with unity:
    AiwJH.png

    I could give the apply_binaries script another try but each time I do so, I don't really know how to undo the changes and then I have to dd an image file that I saved in order to go back... (it's really long.. 32Go)
  5. Installed lxde

Now I got some problems with the kernel. Since I use this kernel and drivers:
  • CTRL keys don't work properly (CTRL+C = ¢, etc)
  • No home, End, Page up, page down [EDIT]: Actually, page-up and page-down keys don't work only in bash terminal command line.. it seems.. Home and End still don't work.
  • top command shows this when I move the mouse really quickly
    Code:
    │
    │ ᶘ ᵒᴥᵒᶅ.. I see you little boy! 
    simon@Zergling:~$ uname -a
    Linux Zergling 3.1.10 #1 SMP PREEMPT Wed May 2 01:07:14 CEST 2012 armv7l armv7l armv7l GNU/Linux
    simon@Zergling:~$ top
    
    top - 00:18:22 up 37 min,  2 users,  load average: 0.30, 0.30, 0.25
    Tasks: 144 total,   2 running, 141 sleeping,   0 stopped,   1 zombie
    Cpu(s): 32.4%us, 15.8%sy,  0.0%ni, 51.8%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
    Mem:    742324k total,   280164k used,   462160k free,    24984k buffers
    Swap:        0k total,        0k used,        0k free,   150476k cached
    
      PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                                                                                                                           
      810 root      20   0 46808 9964 4600 S   40  1.3   6:55.76 Xorg                                                                                                                                                                              
     1655 simon     20   0 94216  12m 8612 R   25  1.7   0:11.40 gnome-terminal                                                                                                                                                                    
     1409 simon     20   0 15660 6604 4020 S   14  0.9   0:02.00 openbox                                                                                                                                                                           
     1771 simon     20   0  2164 1068  760 R    8  0.1   0:05.90 top
    ...
    CPU%---> Xorg 810 root 20 0 46808 9964 4600 S 40 1.3 6:55.76 . If the GPU was making his job properly with nvidia tegra drivers, it shouldn't take 40% cpu usage, right?
(I use canadian french multilangual)

My questions are:
  • Am I doing this right?
  • Am I using the right kernel and tegra drivers? If so, why is the keymap messed up? How can I fix these issues?

An attempt made:
Using xmodmap to modify the keycode interpreted by X. I use xev in order to find the keycode, but I can't find CTRL+key keycodes.. I'm new to all of this pretty much. I'd rather not modify the every single keys like ctrl+c, ctrl+x, etc since I also use ctrl+shift+T for new terminal tab and it doesn't work.. It prints a stripped "T"..

Thank you for all your time in advance. I've been trying to make this work for over a week now..
 
Last edited:

Sni

Member
May 29, 2009
12
9
My questions are:
  • Am I doing this right?
  • Am I using the right kernel and tegra drivers? If so, why is the keymap messed up? How can I fix these issues?

I don`t think someone break keymaps in kernel. Its probably Xorg or DE problem
However for lastest fixed build kernel Jhinta/TF101-GNU-kernel on github

Which version of l4t do you have in ubuntu repo? isn`t it outdated?
Ubuntu 12.04 is armhf, so you have to use hardfp binaries
Try latest l4t 16.2 from developer.nvidia.com/linux-tegra
 

Sni

Member
May 29, 2009
12
9
Kernel update

If someone is still interesting, I've merged kernel with lastest l4t nvidia souces (r16r3-rc)
Changes:
- framebuffer now fully works, switching between X and fb works.
- usb hotplug bugs fixed
- wifi disconnects fixed (used bcmdhd from cyanogenmod sources)
- I've remapped upper keys for F1-F12 scrollock, pause, ins, del.

Sources at github.com mozggg TF101-GNU-kernel
(sorry, external links blocked)

gnu.zip - for CWM flash. Includes kernel and modules. Installs on mmcblk0p8
bcm4329.tar.gz - firmwares for current bcmdhd driver and .hcd for bluetooth. Must be extracted to /lib/firmware
 

Attachments

  • gnu.zip
    8.7 MB · Views: 925
  • tf101_config.txt
    78.3 KB · Views: 1,034
  • bcm4329.tar.gz
    547.4 KB · Views: 1,424
Last edited:

Kingzak34

Senior Member
Jan 5, 2011
3,097
1,543
South
Google Nexus 4
OnePlus One
If someone is still interesting, I've merged kernel with lastest l4t nvidia souces (r16r3-rc)
Changes:
- framebuffer now fully works, switching between X and fb works.
- usb hotplug bugs fixed
- wifi disconnects fixed (used bcmdhd from cyanogenmod sources)
- I've remapped upper keys for F1-F12 scrollock, pause, ins, del.

Sources at github.com mozggg TF101-GNU-kernel
(sorry, external links blocked)

cwm zip attached
Maybe you can contact jrohwer to work together, he just released a new moded kernel, it will be good if we can have a mix of both kernels.

( http://xdaforums.com/showthread.php?t=2347581 )
 
Last edited:
  • Like
Reactions: geekytechie

jrohwer

Senior Member
Mar 4, 2011
424
286
If someone is still interesting, I've merged kernel with lastest l4t nvidia souces (r16r3-rc)
Changes:
- framebuffer now fully works, switching between X and fb works.
- usb hotplug bugs fixed
- wifi disconnects fixed (used bcmdhd from cyanogenmod sources)
- I've remapped upper keys for F1-F12 scrollock, pause, ins, del.

Sources at github.com mozggg TF101-GNU-kernel
(sorry, external links blocked)

cwm zip attached

Two requests/questions:
1. Can you upload the modules for this kernel compile as well?
2. What cross compiler toolchain did you use? Or did you compile on the transformer itself? Which gcc version? I used the arm-linux-gnueabihf- crosscompiler that is distributed with Ubuntu, but got compile errors with gcc-4.6, so my kernel is compiled with gcc-4.4. I haven't tried gcc-4.7 yet as I'm running Ubuntu 12.04 on my laptop and gcc-4.6 is the latest version for that release.
 
  • Like
Reactions: Kingzak34

Sni

Member
May 29, 2009
12
9
Two requests/questions:
1. Can you upload the modules for this kernel compile as well?
2. What cross compiler toolchain did you use? Or did you compile on the transformer itself? Which gcc version? I used the arm-linux-gnueabihf- crosscompiler that is distributed with Ubuntu, but got compile errors with gcc-4.6, so my kernel is compiled with gcc-4.4. I haven't tried gcc-4.7 yet as I'm running Ubuntu 12.04 on my laptop and gcc-4.6 is the latest version for that release.

1. I've included modules inside CWM gnu.zip.
You will also need newer bcm4329 firmwares. I'll update my upper post with that

Btw, your bindroot method is really prettier ( while this gnu.zip is for rootfs on mmcblk0p8).
I'm going to switch to it. But i just broke my data cable and it will be hard to repartition now =\

2. I had cross-toolchain problems before. The most stable was sourcery arm-2010q1 arm-none-eabi-gcc-4.4.1
Now I use gentoo and compile on tf101 itself. armv7a-hardfloat-linux-gnueabi-gcc-4.6.3 (not 4.7 yet)
I had one trivial compilation error with Jhinta sources. It is fixed.
 
  • Like
Reactions: Kingzak34

Top Liked Posts

  • There are no posts matching your filters.
  • 9
    Dont have this tap anymore so cant support it anymore !!!

    I do things manual as i want to know what has be done !
    So every thing below is hardcore installation. This will give you the why and know how of things !!!

    About bootimg.cfg
    This file is need for creating boot.img
    You can find it by unpacking a boot.img,but one is provided already.
    The important part of this file is the first and last option.
    The first one will say how big the image wil be, and the last is kernel cmdline.
    This is also wehre you say loop= for a loop file

    Pack or unpack blob files
    Code:
    cd /tmp
    git clone git://github.com/AndroidRoot/BlobTools.git
    cd BlobTools
    make -j2
    sudo cp blobpack /usr/bin/
    sudo cp blobunpack /usr/bin/
    cd ~

    Unpack a boot.img
    We create a folder and place a boot.img in it.
    Code:
    mkdir ~/test
    cd ~/test
    abootimg -x boot.img


    Unpacking a initrd image

    Code:
    cd ~/test
    mkdir ramdisk
    cd ramdisk
    gzip -dc ../initrd.img | cpio -i
    Now you will have a directory with the ramdisk source files in ~/test/ramdisk
    to repack it, run
    Code:
    cd ~/test/ramdisk
    find . | cpio -o -H newc | gzip > ../new-initrd.img
    for gzip
    Code:
     find . | cpio -H newc -o | lzma -c > ../initram.lzm
    for lzma
    This will give you a new-initrd.img file in ~/test/ for you to use............versions<
    Go to the folder and select ALL file or folder BUT source and build !!!!
    And compres it file wel be made in home.
    modules are install in ubuntu in /lib/modules/


    About kernel and initrd and boot.img and blob
    :D
    Kernel = basic hardware installations and setup
    initrd = like a ramdisk
    boot.img = kernel + initrd
    blob = boot.img + TF special header

    Blob file you find in cwm.zip like a kernel update for android
    boot.img you will find when using nvflash
    kernel gets compiled from a git or source
    initrd you can make your own or reuse

    i will create cwm.zip to do the flashing
    To do this i do.
    Code:
    mkdir ~/test
    cd ~/test
    cp ~/TF101-GNU-kernel/arch/arm/boot/zImage ~/test/zImage
    abootimg --create ./ubuntu.img -f ./bootimg.cfg -k ./zImage -r ./initrd.img
    This will give me a ubuntu.img ready for nvflash but i want cwm.
    so i do
    Code:
    ./blobpack kernelblob LNX ubuntu.img
    (LNX is boot partition dont change this unless you know what your doing)
    Now i got a new file kernelblob that i can add to a cmw.zip file
    To do this , open !!!! the cmw.zip below and remove and add the file kernelblob.
    Thats it, and ready for flashing.


    Rootfs
    You sould be able to use any rootfs that is for arm.
    you can also build a rootfs with rootstock
    keep in mind a rootfs kan have diffrent types of names like ( rootfs.img.ext234 or ubuntu,dabian,linux.img.ext234 or evrey name you want it to be its just a name+ext)
    If you want to relock it for oem-config ( nice first setup like name location keyboard setup) do
    Code:
    touch /var/lib/oem-config/run

    Ubuntu
    Kbuntu
    XBMX

    So how do we even flash ?
    I use nvflash directly or cwm
    The easy why is just using Olife.
    Keep in mind that i will never use uboot , only original bootloader of android.
    So dualboot is what you need.
    if you have dualboot flashed, do this.
    Replaced (backup!) initrd-2.6.38.img and 2638-zImage in the kernel folder with my files,
    and in Olife update your chromium kernel.

    For those that want to use a loop file
    Just flash this zip file
    And copy the rootfs to sdcard (nand) /sdcard/linux/ubuntu.img (more will come, thats why linux/ubuntu.img)

    Wifi setup
    Wifi simply needs 2 files and you can get them from android space -> then copy them to Ubuntu space to /lib/firmware/
    /data/misc/wifi/nvram.txt -> /lib/firmware
    /data/misc/wifi/wpa_supplicant.conf -> /etc/wpa_supplicant.conf #optional
    just use a root exploror to copy them to sdcard or usb ( this can alo be done when your in Ubuntu space (/system = mmcblk0p1, /data = mmcblk0p7))
    and put them on the right place for Ubuntu.

    Bluetooth setup
    There are 3 file needed from android space, to get this,
    Enable bluetooth
    Rename you bluetooth name to what ever you want ( once in Ubuntu you cant change this !!!! )
    Leave it on !! and boot to Ubuntu
    /data/misc/bluetooth/{bcm4329.hcd,mac.txt} -> /lib/firmware
    brcm_patchram_plus (lives on the net) -> /usr/sbin/brcm_patchram_plus (already in)
    As last edit /etc/init.d/bsp-tf101 and correct your mac adress --bd_addr ***** (replac *** with mac !!!, mac is located in mac.txt)
    .
    Code:
    #! /bin/sh
    
    do_stop(){
    #look if Board Support Package is already running
    PS=$(ps -A | grep " brcm_patchram_plus\>")
    if [ -n "$PS" ]; then
    echo "* Stoping Bluetooth Support Package..."
    killall brcm_patchram_plus
    fi
    }
    
    do_start(){
    #if already started then stop first
    do_stop
    #now start all board support binaries
    echo "* Starting Bluetooth Support Deamon..."
    rfkill unblock 0
    modprobe bcm4329
    /usr/sbin/brcm_patchram_plus --enable_hci --baudrate 921600 --bd_addr ***** --patchram /lib/firmware/bcm4329.hcd /dev/ttyHS2&
    # making sure the nvtegra dev nodes have the correct permissions
    echo "* Setting correct permissions on nvtegra device nodes..."
    chmod 0666 /dev/nv* /dev/tegra_*
    }
    
    case $1 in
    start | restart)
    do_start
    ;;
    stop)
    do_stop
    ;;
    esac
    and reboot and your done.

    Installing Tegra HEADER files ( needed when building things like XBMC )
    Copy as root all folder to /usr/include/

    Installing Opengl-ES
    Download the Tegra drivers from Nvidia
    Once downloaded unpack it and open a cmdline and go to that direction Where those files are and type,
    Code:
    sudo ./app*.sh --help
    -r = your root directeroy whey you want to install this
    --abi = witch version of abi your running, to get you version run in ubuntu on TF
    Code:
    aptitude show xserver-xorg-core | grep abi
    So when running this directy on the TF in Ubuntu you wil get this
    Code:
    sudo ./app*.sh --abi 10 -r /

    Get audio working
    Code:
    sudo usermod -a -G audio 
    sudo chmod -R 777 /dev/snd/*
    Then open alsamixer and enable
    playback
    Left And Right speaker mixer DACL/R
    Set DC input to DMIC
    And sound sould work right away.

    Install zram
    Code:
    sudo wget -O /etc/init/zramswap.conf 'https://wiki.ubuntu.com/ARM/TEGRA/AC100?action=AttachFile&do=get&target=zramswap.conf'

    Installing XBMC
    sudo apt-get install (try installing all dependencies you can in the readme.ubuntu in xbmc folder , some will fail so just remove them) )
    Code:
    cd ~
    git clone git clone git://github.com/xbmc/xbmc.git
    cd xbmc
    ./bootstrap
    ./configure --enable-tegra --enable-gles --disable-openmax --disable-vdpau --disable-hal --disable-joystick --disable-debug --disable-dvdcss
    make -j2
    sudo make install
    sudo apt-get install libgl1-mesa-swrast

    Loop or native parition
    in your config (dualboot.cfg)
    You kernel cmdline would be
    ( if you have native root=/dev/mmblk0p8 rw.........)
    ( for loop support you add loop= ( location of file !!! + root= (the partition where the file is located !!)
    root=/dev/mmcblk0p7 rw loop=/xxx/xxx

    Default Kernel
    files


    Support
    hdmi ( audio ? )
    USB ( full working )
    jack ( mic ? )
    Opengl-ES
    zram ( needs script also a most have beacuse of low ram space )
    -more to come

    Sources
    kernel
    Khronos header package
    Tegra Opengl-ES drivers
    Blobtools

    THANKS TO:
    4
    Hi,
    I'm really, really sorry for the noob question in advance.

    I have Ubuntu 12.04 booting off external memory (didn't like the idea of destroying ClockworkMod), and I saw on the wiki page linked to in the first post that Jhinta kernel 3.1.10 supports hardware acceleration as well as speakers, and I would really like both of those.

    Unfortunately, I have no idea how to compile a kernel, in addition to not knowing whether any modifications will need to be made to make it a flashable kernel that boots off external memory.

    Basically, I need all the help I can get.
    Thank you so much for your help in advance!


    --EDIT--

    Sorry if I was being vague, but Jhinta, I was directing that question at you, it being your kernel. I'd be eternally grateful for even just a git link and a quick guide to making a kernel that'll boot off external memory.

    If you look in the wiki, there's a link to a post by me which contains a pretty detailed guide on how to compile a kernel and flash it. When you reach the stage involving abootimg, you'll need to update the config file passed to it with the -f option, and change "root=mmcblk0p8" to "root=mmcblk1p1" (or whatever partition it's installed on - you can check this by mounting it under Android/Linux then using the 'mount' command to check which device it corresponds to)

    BTW, you can have a dual boot while retaining CWM - you keep CWM in the recovery partition, and modify some zip files to flash the packaged kernels for Android and Linux. (This is also the easiest way to try new kernels.) More instructions on this are in the kernel compilation guide.

    -------------------------------------------------------------------------
    In case anyone was wondering where I was, my TF was subject to a warranty claim (took them a month just to reconnect the LVDS cable). I'm currently in the process of repartitioning it and installing Debian armhf. Once I've got the new kernel working, I'll post a newbie friendly guide.
    4
    now that the secret project that we (AndroidRoot.mobi) have been working on has been released (Wheelie) I am going to update the installer to use wheelie and gain sbkv2 support soon
    4
    Kernel update

    If someone is still interesting, I've merged kernel with lastest l4t nvidia souces (r16r3-rc)
    Changes:
    - framebuffer now fully works, switching between X and fb works.
    - usb hotplug bugs fixed
    - wifi disconnects fixed (used bcmdhd from cyanogenmod sources)
    - I've remapped upper keys for F1-F12 scrollock, pause, ins, del.

    Sources at github.com mozggg TF101-GNU-kernel
    (sorry, external links blocked)

    gnu.zip - for CWM flash. Includes kernel and modules. Installs on mmcblk0p8
    bcm4329.tar.gz - firmwares for current bcmdhd driver and .hcd for bluetooth. Must be extracted to /lib/firmware
    4
    Lcd lid fixed thanks to TF101-wizard and lilstevie !!! Make sure to thank them !!

    Verstuurd van mijn HTC One X met Tapatalk