[DEV] Tutorial for installing ubuntu on Iconia

Search This thread

djxtabay

Senior Member
Feb 29, 2008
83
12
I'm trying to compile the RTL8187 USB modules but can't make it.

I'm using the 11.10 oneiric and my internal wifi is working perfectly.

I have the 2.6.38.3 kernel but if I want to apt-get linux-headers-2.6.38.3 it says not found.

Anyone could help out on how to solve that? Thanks.
 

sp3dev

Senior Member
Jul 11, 2006
554
675
Kaluga/Moscow
I'm trying to compile the RTL8187 USB modules but can't make it.

I'm using the 11.10 oneiric and my internal wifi is working perfectly.

I have the 2.6.38.3 kernel but if I want to apt-get linux-headers-2.6.38.3 it says not found.

Anyone could help out on how to solve that? Thanks.

clone git kernel source, install gcc and other crap and do
Code:
make iconiaa500_defconfig
make-kpkg --initrd kernel_headers kernel_image

it will make .deb packages with kernel images and headers.. you are not expecting the non-mainlined kernel for an unsupported device to be in ubuntu repositories, are you?


But you're better off just choosing the module in kernel config when building it or cross-compiling the module on your desktop
 
  • Like
Reactions: djxtabay

Tautvaldas

Senior Member
Jan 4, 2011
141
12
Hello. Is any way to install linux in emmc? I know how to use nvflash, but I need bootloaders who works on iconia and bct, cfg, kernels and bootimages. If someone have theese files please upload theese files, or tell me how to install ubuntu in emmc if it posible. Thanks. Sorry for bad english.
 

djxtabay

Senior Member
Feb 29, 2008
83
12
clone git kernel source, install gcc and other crap and do
Code:
make iconiaa500_defconfig
make-kpkg --initrd kernel_headers kernel_image

it will make .deb packages with kernel images and headers.. you are not expecting the non-mainlined kernel for an unsupported device to be in ubuntu repositories, are you?


But you're better off just choosing the module in kernel config when building it or cross-compiling the module on your desktop


Hi,
I am a little bit noob in that part. I can use linux built used to found my drivers by itself on my netbook.
Never used to play with building kernel & modules yet!


OK, this guy here explain a chroot method http://xdaforums.com/showthread.php?t=1455382

The thing is, I missed a part because "make -j5 modules", I just want to create the rtl8187...not all of them. Do i replace the "modules" by "rtl8187"? And also, the Makefile will need to point to the AcerA500 source kernel right?
Directory created from "tar -xzf Picasso_MR2_kernel_opensrc_0906.tar.gz"
My rom is ROM: KJY_2010_Honeylicious_Final_Rev_IC_Faux_F_Busy_FR.zip

If I want to do it via my chroot session, the commands aren't clear because it fails (probably due to my Makefile not pointing to the right place?)



Otherwise, "better off just choosing the module in kernel config when building it or cross-compiling the module on your desktop", how can I do that recompiling the kernel with the module created from my desktop? I need the deb files created earlier with your commands?

Thanks it is really appreciated!
 

el.quechon

Senior Member
Jul 28, 2011
277
63
Hello. Is any way to install linux in emmc? I know how to use nvflash, but I need bootloaders who works on iconia and bct, cfg, kernels and bootimages. If someone have theese files please upload theese files, or tell me how to install ubuntu in emmc if it posible. Thanks. Sorry for bad english.

Hey did you get Ubuntu 11.10 to log in if you did can you share steps please
 

geenyous

Inactive Recognized Themer
Oct 20, 2007
1,785
853
Shanghai
working 11.10

can somebody please post a working 11.10?
I would prefer a tarball that I can extract to my sd ext4 and run with sp3dev's recovery as the 11.04 posted some pages back is the only one I can run but the upgrade to 11.10 fails miserably (I was told that this would never work...?).

I tried several tars, including the ac100 one from here, but same as sp3dev's posted tar I end up with a blinking "_" after a few seconds and it won't continue...

Thanks for any help, I'm kinda lost here... :(
 

japinder

Senior Member
Jul 8, 2011
339
86
Singapore
Has anybody been able to get Ubuntu 12.04 run natively on the A500, now that we have up to v6 unlocked bootloader which supports multiboot?


Cheers, Jp
 

blackthund3r

Senior Member
Feb 27, 2012
594
493
London
What does it mean full, does it mean that we can compile it for ICS and native Linux same kernel? Sorry for bad English.

No it means we have all the kernel source for inbuilt drivers and flash access etc. Although one could theoretically boot Linux with that kernel but it would be far from optimized for backtrack / Ubuntu etc plus it would need tweaking anyway for storage etc

Sent from my Iconia A500 using Tapatalk 2
 

MikeCriggs

Recognized Dev / Inactive Recognized Contributor
Dec 24, 2010
2,750
5,838
Catskills, NY
twitter.com
I'm waiting on my A500 to come in the mail. I'll be attempting to compile an Ubuntu 12.04 image with a custom kernel based on the latest ACER source when I get a new PC (had to sell mine). Has anyone had any luck with a Linux 3 kernel at least booting with Ubuntu yet?

Sent from my Galaxy Nexus using Tapatalk 2
 

Vintage144

Guest
Jan 1, 1970
32
127
before I try this are there any advantages to installing linux on the a500 ? or is this just one of those "because I can"? Just curious , possibly running "backtrack" in command might be worth it but Im not sure about Ubuntu
 

djxtabay

Senior Member
Feb 29, 2008
83
12
before I try this are there any advantages to installing linux on the a500 ? or is this just one of those "because I can"? Just curious , possibly running "backtrack" in command might be worth it but Im not sure about Ubuntu

I think it is more "Do I need to install it?" than "Because I can". I sold my netbook because my A500 would be enough for me. Now that I can have Ubuntu running means I can do things Android wouldn't. Like running Backtrack tools over an Android tablet. ;-)
 

Vintage144

Guest
Jan 1, 1970
32
127
my netbook does all I need :
~Acer Aspire One 722 AMD C-60 netbook~
Kubuntu 12.04 LTS
OC with unlocked bios

but of course given the time I might venture this route as well ,can we dual boot?
 

apapousek

Senior Member
Jul 18, 2011
308
266
before I try this are there any advantages to installing linux on the a500 ? or is this just one of those "because I can"? Just curious , possibly running "backtrack" in command might be worth it but Im not sure about Ubuntu

For starters, it gives you the power and veratility of a full desktop os. This will allow one to compile code, etc.

It's Backtrack. You don't need to put it in quotes. I don't ask if "vintage144" posted anything, so you shouldn't call it "backtrack." Backtrack on our Tab isn't the worst, it runs fairly smoothly (still some hiccups). Ubuntu would be worth it, mostly for development purposes, though.
 

blackthund3r

Senior Member
Feb 27, 2012
594
493
London
my netbook does all I need :
~Acer Aspire One 722 AMD C-60 netbook~
Kubuntu 12.04 LTS
OC with unlocked bios

but of course given the time I might venture this route as well ,can we dual boot?

My dad has that netbook. Can you PM me on how you unlocked the BIOS? ;D I was interested in doing it but I didn't really find the right thing

Sent from my Iconia A500 using Tapatalk 2
 

Top Liked Posts

  • There are no posts matching your filters.
  • 12
    For those who want a tutorial, here's my experience in installing the system:

    (PS: FOR those who want a really simple command-by-command tutorial, please see #26 post. That's part 1 of the tutorial on how to boot ubuntu up without wireless. If you need wireless working and want a command-by-command tutorial on that, just reply and I'll make it. )
    I mainly referred to sp3dev's thread: http://xdaforums.com/showthread.php?t=1158260

    I've make ubuntu run on my iconia, but I cannot let bluetooth run so you'd better have a usb keyboard and (if you could find the trick to use the touch screen, no need of) a usb mouse.

    Tools to prepare:
    1. Ubuntu OS on PC with adb tool.
    2. A >=4GB microSD card and make sure iconia can identify it.
    3. USB keyboard and USB mouse
    4. rooted iconia with acer recovery installer, busybox, terminal emulator.
    5. Perhaps more that I didn't listed

    Files to download:
    1. rootfs: http://www.dmmhosting.co.uk/tegra-rootfs.tar from Digitaldaz;
    2. precompiled header: http://www.mediafire.com/?ucvk6x66129igzc from sp3dev;
    3. itsmagic: http://xdaforums.com/showthread.php?t=1121543&highlight=itsmagic from sc2k;
    4. source code: https://github.com/astarasikov/iconia-gnu-kernel from sp3dev;
    5. Perhaps more that I didn't listed

    Procedure to install ubuntu:
    1. Use your computer to format your microSD card into two partitions: one is in FAT32, to be used as normal external storage. Suggested minimum size is 1GB, to store backup file in step 2. The other is ext4, to store root filesystem of ubuntu. Suggested minimum size is 3GB. Tools: fdisk, mkfs.vfat, mkfs.ext4. Using sudo when making filesystem. Refer to rkaszala's post for further information: http://xdaforums.com/showthread.php?t=1158260&highlight=itsmagic&page=12
    (Comment: I use computer to format while he/she uses iconia to format.)
    Make sure the formatted sdcard can be recognized by iconia as /dev/block/mmcblk1p1 and /dev/block/mmcblk1p2 .

    2. Backup all data using itsmagic link above. Be familiar with usage of itsmagic, esp. use it to recalculate the checksum.

    3. use tools here: http://xdaforums.com/showthread.php?t=1126364 to flash the newrec.img file onto the /dev/block/mmcblk0p1, and use itsmagic to recalculate checksum.

    3.1. on android system, use terminal emulator to copy /system/etc/nvram.txt out as bcm4329-fullmac-4.txt .

    4. USING SUDO to unzip the rootfs tarball referred in Files:1 into the ext4 fs mentioned in step 1. If you do not use sudo, some device nodes will not be able to be created.

    5. SUDO EDIT the etc/fstab IN YOUR UNZIPPED ROOT FILESYSTEM NOT IN YOUR OWN UBUNTU SYSTEM to one line:
    proc /proc proc defaults 0 0

    6. compile source code using instructions by sp3dev here: http://xdaforums.com/showthread.php?t=1158260&highlight=itsmagic&page=9 in the middle part of the page.

    7. copy the compiled bcm4329-fullmac-4.bin firmware (should be at lib/firmware/brcm/) to sdcard's root filesystem's location: /lib/firmware/brcm/ folder and copy the previous bcm4329-fullmac-4.txt here.

    8. copy the compiled modules into sdcard's root filesystem's /lib/modules/ (I forget the name of the folder so be sure to name it correctly. )

    9. insert the sdcard into iconia and reboot with wolume down key pressed (the way to boot into recovery img.)

    and now, you should have reached what I have reached.

    If you failed on some step please tell me. All I summarized is what I have done, so please refer to their original post for more information.
    3
    Guys, please take this to PM. Thanks.

    Sent from my Galaxy Nexus using Tapatalk 2

    Sorry, my bad. Now, back on topic. Would you care for me to write up a script to do all of the installation work?
    2
    Version 0.2: More details - Part 1

    I mainly explained the procedure not included in the links I referenced. So please reference to original post as I don't want to put duplicate code stuff here. If u feel confused pls mail me or original author.

    Tools to prepare:
    1. Ubuntu OS on PC with adb tool. See google's website about adb tools and how to use it.
    2. A >=4GB microSD card and make sure iconia can identify it.
    3. USB keyboard and USB mouse
    4. rooted iconia with acer recovery installer, busybox, terminal emulator.
    5. Perhaps more that I didn't listed

    Files to download:
    1. rootfs: http://www.dmmhosting.co.uk/tegra-rootfs.tar from Digitaldaz;
    2. precompiled header: http://www.mediafire.com/?ucvk6x66129igzc from sp3dev;
    3. itsmagic: http://xdaforums.com/showthread.php?t=1121543&highlight=itsmagic from sc2k;
    4. source code: https://github.com/astarasikov/iconia-gnu-kernel from sp3dev;
    5. Perhaps more that I didn't listed

    Procedure to install ubuntu:
    1.0 Boot into ubuntu on your own desktop/laptop. Insert the microsd card into it. Identify the device name for the sdcard you have just inserted. Usually it would be 'sdb' if u have one hard disk. Make sure no partition of the sdcard is mounted on i.e. Eject the sdcard partition(s) in your file browser.
    1.1 'sudo fdisk sdb'. If you get different device name on step 1, please use 'sudo fdisk [Your device name]'. after it enters fdisk, use 'd', choose a partition number, and delete all partitions.
    1.2 Use 'n' to set up two new partitions: choose 'p' to set up primary partitions. First one: Partition number 1, First cylinder 1, last cylinder is (Total Cylinder Number)*(Partition Size)/(Card size). If u want Partition size to be 1GB, just calculate the Last cylinder number. Recommended minimum size for the first partition is 1GB.
    1.3 Use 'n' again to set up another partition. For this partition, recommended minimum size is 3GB.
    1.4 After u have set ur partition, use 'p' to print partition table. Make sure they're correct, Use 'w' to write them into disk. You should not get trouble in writing partiton info to disk.
    1.5 Now in /dev you can see two more devices: sdb1 and sdb2. sdb1 should be the partition whose minimum size is 1GB, used as sdcard data partition for furtuer use; sdb2 use mkfs.vfat sdb1 to create fat32 filesystem on sdb1.
    1.6 Make two directory in /media/, namely /media/vfat/ and /media/ext4/. Use 'mount /dev/sdb1 /media/vfat' and 'mount /dev/sdb2 /media/ext4' to mount the two partitions u have just created. Make sure you could create files under /media/ext4 and /media/vfat i.e. ubuntu could access the two partitions.
    Now you have finished setting up filesystems and make ubuntu recognize them.
    1.7 Use 'umount /media/vfat' and 'umount /media/ext4' to unmount partitions and insert sdcard into iconia. Use terminal emulator to see if you have '/dev/block/mmcblk1p1' and '/dev/block/mmcblk1p2'.

    2.0 Back up all data using itsmagic: use the link above and use the automatic method. Seems the bat file only runs at windows. This would take a while so just let it go. it's not dead!
    2.1 use adb tool to push itsmagic into /data/local/itsmagic, and change the itsmagic file property to 755: use adb shell and cd to /data/local: use 'chmod 755 itsmagic'.

    3.0 use tools here: http://xdaforums.com/showthread.php?t=1126364 to flash the newrec.img file onto the /dev/block/mmcblk0p1, and use itsmagic to recalculate checksum.
    3.1 on adb shell or terminal emulator, 'cp /system/etc/nvram.txt /mnt/external_sd/bcm4329-fullmac-4.txt'

    4.0 Now get the microsd card back to your computer. We're now ready to copy ubuntu filesystem to microsd.
    4.1 cd into the downloaded tarball 'tegra-rootfs.tar'. Get to know where the >3GB ext4 filesystem is mounted on your system. use 'sudo cp tegra-rootfs.tar /media/[YOUR DISK NAME]/'. cd to the latter folder. 'sudo tar -zxf tegra-rootfs.tar .' to unzip it here.
    4.2 in the same directory, 'sudo gedit etc/fstab' (Pay attention not 'sudo gedit /etc/fstab'!!!), add one line after the first #-started line:
    proc /proc proc defaults 0 0
    4.3 insert sdcard back to iconia
    4.4 turn off iconia and restart, holding vol down key and power key to power up
    4.5 and now, after bundles of command lines, you'd probably see ubuntu's desktop in one or two minutes!!!
    2
    We would all WORSHIP you like a god. Especially me :).

    Sent from my Galaxy Nexus using Tapatalk 2

    Working on it now. Expect an alpha-level script by this weekend. I'm not too fond of the ubuntu rootfs supplied, so I'm getting one with 12.04 to run smoothly, etc.
    1
    you need download this http://www.mediafire.com/?ycq1ro22vrwks6z then unzthen tryip in your home directory in iconia ubuntu then open terminal and type:
    $ sudo -i
    ~# mkdir /lib/firmware/brcm
    ~# cp /home/your directory/brcm/bcm4329... all 4 files /lib/firmware/brcm


    if your dont understand this i will make some video later. And dont forget your screen lock on your iconia it should be turn on. sorry for bad english

    I did everything you posted but still no internet

    Then try type in terminal this:
    $ cd /lib/firmware/brcm
    $ ls
    You should see your 4 bcm... files.
    If you have them then type this:
    $ sudo rfkill unblock wifi
    Then you should have wifi.