[Linux] [DEV] [WIP]Backtrack 5 on the gtablet HYBRID. 7/18/11 1.2 BL kernel

Search This thread

cj1171

Senior Member
Jun 7, 2008
143
16
Soooo has anyone gotten BT5 to work booting within a ROM? I always get errors about loop devices..
 

slimm609

Senior Member
Jul 10, 2010
125
41
Soooo has anyone gotten BT5 to work booting within a ROM? I always get errors about loop devices..

Read post 2 under the
************OLD WAY****************** section. This explains it.
pershoots gtab/zpad kernel works. The kernel must have loopback device support.

if /proc/config.gz exists you can check with

zcat -c /proc/config.gz | grep DEV_LOOP
and you should see
CONFIG_BLK_DEV_LOOP=y
 

slimm609

Senior Member
Jul 10, 2010
125
41
Got the 4 side buttons to work with a bit of a C and bash hack. Just need to finish up a few things with the buttons then will try to work on sound for a bit and see what we can do with it. there should be a new version up on the main thread in the next few days.

Sent from my PC36100 using XDA App
 

KitsunePaws

Senior Member
Jun 29, 2007
277
67
/home/kp
Got the 4 side buttons to work with a bit of a C and bash hack. Just need to finish up a few things with the buttons then will try to work on sound for a bit and see what we can do with it. there should be a new version up on the main thread in the next few days.

Sent from my PC36100 using XDA App

Keep up the great work! I'm looking forward to this replacing android on my gtab!!
 

slm4996

Senior Member
Dec 5, 2007
295
10
homecncfun.com
I have this running, I cannot login using the username "root" and password "toor" or "toortoor"

Going to have to hack a user into it to use it!
 
Last edited:

slm4996

Senior Member
Dec 5, 2007
295
10
homecncfun.com
To correct the password error:

Code:
cp /sdcard/etc/shadow-  /sdcard/etc/shadow
sync

as the last thing in adb before you flash the kernel.

user: root
password: toor
 

slimm609

Senior Member
Jul 10, 2010
125
41
To correct the password error:

Code:
cp /sdcard/etc/shadow-  /sdcard/etc/shadow
sync

as the last thing in adb before you flash the kernel.

user: root
password: toor

Thanks slm4996

i fixed the bt5.tbz2 to correct the password issue and added a new kernel to flash with nvflash. touchscreen will be coming very soon. its a ton of deps and takes a while to update the image off the gtab.
 
  • Like
Reactions: argusvision

rswindle

Member
Nov 30, 2010
38
5
Is the X11 hardware accelerated? Can we install any linux video players and have them do hardware decoding? What about any linux 3d apps, will they have opengl hardware acceleration? Is Flash 10.3 have hardware acceleration on linux or has flash not gone there yet?

Or are none of these things compiled into the kernel/X11 subsystem yet?
 

slimm609

Senior Member
Jul 10, 2010
125
41
Would you be so kind as to release a kernel built with "root=/dev/mmcblk2p1" for those of us who want to use the external sdcard?

I can post that tonight. It is based off of pershoots kernel but the config is different. zcat /proc/config.gz if you want to see it before I get a chance to post it

Sent from my PC36100 using XDA App
 
  • Like
Reactions: slm4996

slimm609

Senior Member
Jul 10, 2010
125
41
Post one updated. with extsd kernel and added config. slm4996 let me know if you have any problems with the other kern.


there is no flash version for arm linux currently and i not sure if the driver supports accel for X.
 
Last edited:
  • Like
Reactions: argusvision

slimm609

Senior Member
Jul 10, 2010
125
41
updated bz2 image to include touchscreen and side buttons. added new kernels for sdcard or external sdcard and added link to video
 

LoSt-CaUzE

Member
May 13, 2008
11
0
forwarding devices lsusb

Hi, how can I forward my usb devices to chrooted linux? If I plug in an external usb device I can see it via lsusb in adb shell / terminal emulator. I tried using mount -bind /my_device_directory /chroot/path/my_device_directory, however when I run lsusb in chroot nothing is returned.

Thanks
 

slm4996

Senior Member
Dec 5, 2007
295
10
homecncfun.com
slimm609 the new extsd kernel works just fine. How do you have the wireless setup? Bringing the wlan0 interface up and do a scan returns no networks, do you have the required modules pre-inserted or do we need to insert them after boot?

Keep up the great work, I will contribute when I can.
 

slm4996

Senior Member
Dec 5, 2007
295
10
homecncfun.com
Also you can "Dual boot" in a fashion by using flash_image and just swapping kernels.

A couple of limitations apply, you have to setup the sdcards correctly, if you have backtrack on internal then your android rom must use the external sdcard on /sdcard.

The command to flash the kernel is:

From android:
Code:
flash_image boot linux_kernel.img

From backtrack (you must copy the flash_image binary from android or recovery):
Code:
flash_image boot your-android-kernel-image.img

Also you do not need to nvflash at all using this method as long as you are already on a 1.1 based bootlader.

In theory it would be possible to create a recovery installable .zip that would handle every part of the install of backtrack.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 12
    6/13/12 update
    updated links and some instructions.
    I currently do not have time to do any work on this currently as i have been working 18+ hours a day. Hopefully if i ever get some time again I will continue it.


    Jaybob413 built the kernel for 1.2 Bootloader. Link is posted below
    Thanks jaybob413

    *PLEASE READ AND UNDERSTAND EVERYTHING HERE BEFORE ATTEMPTING THIS*


    BACKTRACK 5 IS running on the GTABLET in Hybrid mode!

    http://www.youtube.com/watch?v=kJb3mwBhMik video up now =)
    http://www.youtube.com/watch?v=be-9F_VzbHY Dual boot video

    working
    boots natively into backtrack
    X11 desktop works
    wifi
    TOUCHSCREEN!!!!!
    4 buttons. Search opens firefox, home opens users home dir, settings toggles the Onscreen keyboard, and back switches through virtual desktops.

    Not Working
    sound
    bluetooth
    battery stats

    ------------------------------------------------
    I currently have this set up for windows. It can be done from linux but will link everything for windows in this post.

    you must have ADB installed on windows working with the gtablet. see http://xdaforums.com/showthread.php?t=902860

    required files:
    bt5.tar.xz http://d-h.st/YZ4
    restore_droid-kern.zip http://dev-host.org/qsbz1s7xbebt/restore_droid-kern.zip
    droid-kern_backup.zip http://dev-host.org/evmqb1yrd0tn/droid-kern_backup.zip

    1.1 bootloader:
    bt5kern-01-20110525.zip http://dev-host.org/s4d4pp1wvxx4/bt5kern-01-20110525.zip

    1.2 bootloader: thanks jaybob413 for the 1.2 kernel.
    http://xdaforums.com/showpost.php?p=15703493&postcount=137


    optional files:
    nvidia_windows.zip http://dl.dropbox.com/u/4917587/nvflash_windows.zip
    kernel config file http://dl.dropbox.com/u/4917587/config this file is only for reference. you do not have to download it or install it


    the root password is "toor"


    THIS MAY ERASE EVERYTHING ON YOUR TABLET!!!!

    Do this at your own risk!! I take no responsibility for anything that happens to your tablet.

    Start by installing your favorite ROM and kernel.

    Make sure you have adb working and CWM installed


    turn off the device then boot into recovery. (vol+ and power).

    once in recovery you must format the EXTERNAL sdcard into ext3.

    Code:
    adb shell
    
    parted /dev/block/mmcblk2
     
    
    mkfs 1 ext2 
    
    confirm 
    exit
    
    tune2fs -j /dev/block/mmcblk2p1 to format the external SDcard to ext3
    
    mkdir /tmp/ext-sd
    
    mount /dev/block/mmcblk2p1 /tmp/ext-sd/

    exit adb and run

    * this will take a long time *
    Code:
    on a linux box unxz bt5.tar.xz
    
    adb push c:\path\to\bt5.tar /tmp/ext-sd/bt5.tar
    
    adb shell 
    # cd /tmp/ext-sd/
    tar xvf bt5.tar
    
    rm bt5.tar
    cd /
    umount /tmp/ext-sd/

    reboot the device into android and connect the INTERNAL sdcard to the computer to place files on to the sdcard.

    make a directory called kernels on the sdcard and put the 3 zips from above in that folder.
    bt5kern-01-20110525.zip
    droid-kern_backup.zip
    restore_droid-kern.zip

    reboot into recovery and flash the
    droid-kern_backup.zip this will create a backup of the android kernel. This will ONLY need to be done any time that you UPGRADE or CHANGE your android kernel.

    once this is done you switch back and forth between android and backtrack with:

    bt5kern-{date}.zip to boot into backtrack
    restore_droid-kern.zip to boot into android
    ******* You do NOT have to wipe cache or anything when switching back and forth. Just flash whichever you want to boot into and you are done************


    http://xdaforums.com/showpost.php?p=16223052&postcount=139 WICD fix
    5
    Linux touchscreen drivers and settings
    xf86-input-multitouch https://launchpad.net/debian/+archi...ut-multitouch_1.0~rc2+git20110312.orig.tar.gz
    libmtdev1 http://ftp.de.debian.org/debian/pool/main/m/mtdev/mtdev_1.1.0.orig.tar.gz


    ************OLD WAY******************
    How to install backtrack 5 to run on the gtablet with out gtab filesystem modification.

    You must recreate the img file to be less then 4Gb. The img file is currently 4.6Gb. The new image created will be 2.9Gb. this is a vfat limitation

    this has been tested on vegan 5.1 with the gtab/zpad 1.4 OC kernel. Its still a little buggy with random reboots depending on what your are doing but it is a WIP

    The kernel must have loop devices support. Also looks like the kernel needs swap functionality to be enabled.



    I could release the img file that has already been created but backtrack would prefer that people not release other images so this will allow you to create your own after downloading it from them so it remains trusted.


    you either need:
    linux with ADB working on the gtab
    OR
    windows with ADB and access to a linux box with about 10gb of free space.


    Backup your sdcard because it needs to be repartitioned with CWM.

    In CWM under advanced > Partition SD Card > 2048 > 128


    download the arm version of backtrack from www.backtrack-linux.org/downloads/
    and extract the files. you need to copy the bt5.img.gz to the linux box and do all the following steps.

    make a working directory for all the files, copy and gunzip the img file

    Code:
    mkdir bt5
    cp /root/bt5.img.gz bt5
    cd bt5
    gunzip bt5.img.gz

    rename the old bt5.img to something else and create a new image that fits onto the gtabs vfat filesystem.
    then create 2 directory to mount each image and copy the files over to the new img file.
    Code:
    mv bt5.img bt5.old.img
    
    dd if=/dev/zero of=bt5.img bs=4k count=900000
    mke2fs -F -i 8192 bt5.img
    
    mkdir bt5old bt5new
    mount -o loop bt5.old.img bt5old
    mount -o loop bt5.img bt5new
    cd bt5old
    cp -rp * ../bt5new

    *****************************************
    since the system does not go through the full startup scripts once you run "sh bootbt" you must run /etc/rc.local from the chroot to start the vnc server if you add these lines otherwise you must type them each time.

    Code:
    cd ../bt5new/
    vi etc/rc.local and add the following 2 lines before the exit 0 line
    
    export USER=root
    /usr/bin/startvnc

    save the file and then continue on.

    also you can edit /usr/bin/startvnc and modify the screensize to fit the tablet
    the gtablet is 1024x600
    Code:
    vncserver -geometry 1024x600

    *****************************************

    after all files have been copied over you just unmount the 2 directories and gzip the new image.

    Code:
    cd ..  
    (you should now be in the directory with the 2 img files and 2 directories)
    umount bt5old
    umount bt5new
    gzip bt5.img

    edit the bootbt file and change the line

    Code:
    mount -o remount,rw /dev/block/mmcblk0p5 /system
    with
    Code:
    mount -o remount,rw /dev/block/mtdblock3 /system
    *** this needs to be changed to whatever your /system is on your tablet or phone if it is something other then the gtablet.



    now copy this new bt5.img.gz file over to the directory where you got the original image from and then follow the instructions that are included with the download in the README file.



    a good VNC viewer is located
    http://code.google.com/p/android-vnc-viewer/downloads/list

    and also install a terminal emulator so you can start Backtrack 5 from the device.


    ---BUGS---

    running from a terminal emulator everything runs fine but running VNC gnome takes up way to much RAM currently. Looking at fluxbox and/or swap as a fix. causes the tablet to lock up and must be powered off by holding the power button.



    ---Thanks---
    The Backtrack Team -- for coming up with an amazing security distro
    The G-TabDevs Team -- for the vegan 5.1 Rom
    Pershoot -- for maintaining the 1.4 kernel for the gtab and hopefully adding support for needed features =)

    Sorry for the flash in the pictures

    attachment.php

    attachment.php
    3
    BL1.2 test

    Ive got it fixed... I think . Hoping to try and pick back up on it soon. Gonna move to the 1.2 bl and get it working
    Hopefully in the next few weeks... Been really swamped but should be able to get back onto it soon.

    Sent from my PG86100 using XDA App

    I was too impatient to wait any longer for a BL1.2 version, so I rebuilt the kernel with CONFIG_NEWBL=y and updated the posted kernel zip with the new version (bt5kern-bl2.zip). Also attached are the updated LKM files (dhd.ko and scsi_wait_scan.ko) in a separate file (bt5-bl2-lkm.zip). These files will go into the rootfs on your sdcard in /lib/modules/2.6.32.42-slimm/kernel/drivers/... as described in the README included in the zip.

    As always, be safe. All risk is assumed by the user.
    2
    Help please! I can not configure Wi-Fi.
    The description says that Wi-Fi works, but I is not working, maybe you need to install the file config? How to do it?
    Or did I something wrong? Help I can not understand.
    Who knows help!

    edit wpa_supplicant.conf in /etc/

    run
    "wpa_supplicant -BDwext -iwlan0 -c/etc/wpa_supplicant.conf &"
    "dhclient"

    that will get it working then you can install wicd from the repos. (not sure if you need network manager also??)
    2
    wifi is working now. tested with wpa-psk

    New files coming tomorrow with wifi included.
    the touchscreen is seen by the system and xorg just need to find the right configuration for it to work

    now trying to compile as a single touch device because Xorg does not support multi-touch displays