Jhinta Kernel for Lilstevie Ubuntu

Search This thread

conizius

Senior Member
Oct 27, 2010
86
12
Okay graphics driver working well now, booting and having fun.
Until I tried to get online and noticed my not working wifi.
Does I have to inject the wifi driver or anything I missed?

Well I wish you a lot of fun in spain jhinta!

Sent from my HTC Vision using XDA
 

jozka.1

Senior Member
Apr 9, 2011
216
91
Okay graphics driver working well now, booting and having fun.
Until I tried to get online and noticed my not working wifi.
Does I have to inject the wifi driver or anything I missed?

Well I wish you a lot of fun in spain jhinta!

Sent from my HTC Vision using XDA

How did you install the tegra driver please? And which version and which ubuntu version :D

Wifi? Which image do you use?
 

Jhinta

Senior Member
Dec 20, 2010
704
276
How did you install the tegra driver please? And which version and which ubuntu version :D

Wifi? Which image do you use?

did you installed the modules correctly? or do a insmod on the wifi module,
if you have your own rootfs get nvram and bcm firmware file and place under /lib/firmware
 

ssciberras

Senior Member
Feb 29, 2012
133
5
many thanks to jhinta

this really works nice.

sounds worked, and even hdmi - although the image on a projector is cropped ( resolution still 1280 rather than 1024 ) so i need to work on that.

one issue is that anything not connected to the tf before booting will not be recognised, eg dock, usb mouse, and flash drives.

but now i have 11.10, with most that i need, so cannot complain.

btw what is the main advantage of hf?
 

conizius

Senior Member
Oct 27, 2010
86
12
did you installed the modules correctly? or do a insmod on the wifi module,
if you have your own rootfs get nvram and bcm firmware file and place under /lib/firmware

Well I unziped 3.1.10 into /lib/modules/
lsmod shows a loaded bcm4329 (thats the wifi, or am I mistaken?)
in /lib/firmware are
nvram.txt
nvrm_avp_xxxxxxxx.bin (5 different)
nvrm_avp.bin

I used apply_binaries.sh (r15 beta) to install all tegra drivers.

I'm running 12.04 upgraded from 11.10 rootfs from lilstevie.
Previously wifi was working on 12.04
Or ware there just no drivers for 12.04 working with 3.1 kernel?

Anything I missed?

---------- Post added at 05:29 PM ---------- Previous post was at 05:17 PM ----------

btw what is the main advantage of hf?


As far as I know it's faster for floating point arithmetics
 

Ke1evraTi

Senior Member
Oct 7, 2010
148
22
I used apply_binaries.sh (r15 beta) to install all tegra drivers.

I'm running 12.04 upgraded from 11.10 rootfs from lilstevie.
Previously wifi was working on 12.04
Or ware there just no drivers for 12.04 working with 3.1 kernel?

So the 3.1 kernel works fine with 12.04? I thought that we had the use the beta 12 drivers with ubuntu because the new ones did not work properly.
 

conizius

Senior Member
Oct 27, 2010
86
12
So the 3.1 kernel works fine with 12.04? I thought that we had the use the beta 12 drivers with ubuntu because the new ones did not work properly.

Well yeah it works pretty fine (now even get a time estimation for battery life), but I have no wifi till now :(

Well previously we had to use beta 12 because we used no 3.1 kernel ;)
 
  • Like
Reactions: Ke1evraTi

Ke1evraTi

Senior Member
Oct 7, 2010
148
22
Thanks! You could try using Olife to inject the wifi modules. I think that bcm4329 is for wifi but I could be mistaken.
 

Jhinta

Senior Member
Dec 20, 2010
704
276
Well I unziped 3.1.10 into /lib/modules/
lsmod shows a loaded bcm4329 (thats the wifi, or am I mistaken?)
in /lib/firmware are
nvram.txt
nvrm_avp_xxxxxxxx.bin (5 different)
nvrm_avp.bin

I used apply_binaries.sh (r15 beta) to install all tegra drivers.

I'm running 12.04 upgraded from 11.10 rootfs from lilstevie.
Previously wifi was working on 12.04
Or ware there just no drivers for 12.04 working with 3.1 kernel?

Anything I missed?

---------- Post added at 05:29 PM ---------- Previous post was at 05:17 PM ----------




As far as I know it's faster for floating point arithmetics

bcm firmware file (fw_bcm4329.bin)? look ad dmesg it show more then loading wifi

---------- Post added at 07:14 PM ---------- Previous post was at 07:00 PM ----------

some more audio setup , copy android /etc/asound.conf to ubuntu /etc/asound.conf
Got my xbmc fully working now .
 
Last edited:

conizius

Senior Member
Oct 27, 2010
86
12
bcm firmware file (fw_bcm4329.bin)? look ad dmesg it show more then loading wifi

yep file is there. I'm scanning throu dmesg right now and attached it (maybe someone sees more than I do - would be not suprising).

Well and I found till now:
Code:
[    2.827531] bcm4329_rfkill_probe: can't find bcm4329_32k_clk.				assuming 32k clock to chip
[    2.827577] bcm4329_rfkill_probe : can't find reset gpio.
.
.
.
[    8.245653] wifi_set_power = 1
[    8.586018] wifi_set_carddetect = 1
[    8.586275] 
[    8.586278] Dongle Host Driver, version 4.218.248.23
[    8.636117] mmc2: new high speed SDIO card at address 0001
[    8.654337] DHD: dongle ram size is set to 294912(orig 294912)
[    8.707275] _dhdsdio_download_firmware: dongle image file download failed
[    8.707352] dhd_bus_start: dhdsdio_probe_download failed. firmware = /lib/firmware/bcm4329/fw_bcm4329.bin nvram = /lib/firmware/bcm4329/nvram.txt
[    8.707404] dhdsdio_probe: failed

I also got some stacktraces but nothing looks like having todo with wifi and bcm4329.

Anyone got an idea?
 

Attachments

  • dmesg.txt
    31.7 KB · Views: 6

conizius

Senior Member
Oct 27, 2010
86
12
Oh well! Shame on me (or maybe not).

My files fw_bcm4329.bin and nvram.txt (and the others) where directly in /lib/firmware
But as dmesg told, they were searched in /lib/firmware/bcm4329/

Well I keep them in both places, just in case I change to a kernel with the other search path compiled ;)

Now I'm on wifi... thanks to everyone that helped!
 

Jhinta

Senior Member
Dec 20, 2010
704
276
Oh well! Shame on me (or maybe not).

My files fw_bcm4329.bin and nvram.txt (and the others) where directly in /lib/firmware
But as dmesg told, they were searched in /lib/firmware/bcm4329/

Well I keep them in both places, just in case I change to a kernel with the other search path compiled ;)

Now I'm on wifi... thanks to everyone that helped!

Rofl

Verstuurd van mijn Desire HD met Tapatalk
 

Ke1evraTi

Senior Member
Oct 7, 2010
148
22
I just tried the kernel and I get an error stating that the modules are missing even though I installed them. Form the command line I go to the lib/modules directory and it's completely empty. Any reason why this might happen?
 

conizius

Senior Member
Oct 27, 2010
86
12
I just tried the kernel and I get an error stating that the modules are missing even though I installed them. Form the command line I go to the lib/modules directory and it's completely empty. Any reason why this might happen?

Well I had that, when I was using a false initrd (therefore I think initrd isn't ignored). Which setup are you using?
if you are on skb1 and using olife, than use the initrd from jhinta's post. If your loopmounting on skb2, there's an other one (few posts after jhinta).

Btw what you see is surely the content of the initrd

Sent from my HTC Vision using XDA
 

ssciberras

Senior Member
Feb 29, 2012
133
5
bcm firmware file (fw_bcm4329.bin)? look ad dmesg it show more then loading wifi

---------- Post added at 07:14 PM ---------- Previous post was at 07:00 PM ----------

some more audio setup , copy android /etc/asound.conf to ubuntu /etc/asound.conf
Got my xbmc fully working now .
3 small issues remain for me:
- hdmi clones, but on a projector, the image will be cropped.
- keyboard does not work fully, eg Fn key + left arrow does not do end
- usb devices need to be connected from boot, otherwise they are not recognised


thanks for the hard work, this is nearly what I was hopig for when I bought the TF. pity arm linux is not as supported by third party, eg adobe, skype, dropbox
 

Jhinta

Senior Member
Dec 20, 2010
704
276
3 small issues remain for me:
- hdmi clones, but on a projector, the image will be cropped.
- keyboard does not work fully, eg Fn key + left arrow does not do end
- usb devices need to be connected from boot, otherwise they are not recognised


thanks for the hard work, this is nearly what I was hopig for when I bought the TF. pity arm linux is not as supported by third party, eg adobe, skype, dropbox

compile original asusec or edit current one ( original need touchpad fix to work !!!)
 

ssciberras

Senior Member
Feb 29, 2012
133
5
compile original asusec or edit current one ( original need touchpad fix to work !!!)

will try to find the way to config the current one then. But this will solve the keyboard issues only i presume.

HDMI solved with xrandr

usb prob boils down to tegra.ehci driver, but needs more looking into.
 

Jhinta

Senior Member
Dec 20, 2010
704
276
will try to find the way to config the current one then. But this will solve the keyboard issues only i presume.

HDMI solved with xrandr

usb prob boils down to tegra.ehci driver, but needs more looking into.

my source has the touchpad working , so if you edit it you can .

HDMI solved with xrandr , share please.
 

jozka.1

Senior Member
Apr 9, 2011
216
91
Can you please upload your compiled xbmc? In repositary isn't and I can't compile it.

I think armel arch.
 

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