• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

[HOWTO] Linux on Folio 100

Search This thread

DerArtem

Senior Member
Apr 13, 2010
210
610
Bad Homburg
Hello,

I have prepared a few update.zip's with kernels to boot linux:

There are two different zips.

One to boot linux from a USB Flashdrive and the other from a SD card.

Installation Instructions:
ALWAYS HAVE CHARGER CONNECTED WHEN UPDATING A FIRMWARE.

1. Please follow the instructions here to prepare your SD / USB Drive - start at "== Create a rootfs SD card ==". http://ac100.gudinna.com/README/

2. Extract contents to a folder and follow instructions below.

  1. copy the update.zip to a sdcard, and insert sdcard into folio.
  2. Enter "Recovery menu" when folio is just turned on and press (POWER) once and (VOL up) next.
  3. press (VOL up) Factory reset or system update.
  4. press(VOL down) to continue to system update.
  5. press (VOL up) to confirm system update.
  6. during installation progress bar will show har far it is.
  7. folio will reboot after installation.
  8. insert the usb or flashdrive with the prepared filesystem into the folio and the tablet will boot automaticly from it
 

Attachments

  • usb-update.zip
    4.3 MB · Views: 1,232
  • sdmmc-update.zip
    4.3 MB · Views: 1,747
Last edited:

Ivalex

Senior Member
Nov 19, 2009
111
95
key combination to boot ubuntu

Hello,

I have prepared a few update.zip's with kernels to boot linux:

Please follow the instructions here to prepare your SD / USB Drive - start at "== Create a rootfs SD card ==".

Unzip the zip and then use the zip inside to update your kernel.

There are two different zips.

One to boot linux from a USB Flashdrive and the other from a SD card.

Hi DerArtem,

once the media (SD) is setup, you need special key combo in order to let folio boot from the SD?:confused: thanks in advance.
 

tshoulihane

Senior Member
Jun 16, 2010
578
108
how fast/responsive is this? Can you benchmark it against the AC100 netbook running the same image - that had a noticeable lag at least on SD card access.
 

Shark17

Member
Jan 12, 2011
7
0
How prepare the SD?

Thank you for your work!!! :)

I did all the process but I can't start linux.
The kernel boots but stop without start the desktop.

You can see when stops in this image:
ifisc.uib-csic.es/~edu/fotos_folio100/1.jpg
(Put the http:..., I can't put links because the system)

I prepared the filesystem in a SD card only decompressing the tar.gz, ¿Is necessary recompile the kernel or something like configure it?

Shark. :)
 

DerArtem

Senior Member
Apr 13, 2010
210
610
Bad Homburg
Thank you for your work!!! :)

I did all the process but I can't start linux.
The kernel boots but stop without start the desktop.

You can see when stops in this image:
ifisc.uib-csic.es/~edu/fotos_folio100/1.jpg
(Put the http:..., I can't put links because the system)

I prepared the filesystem in a SD card only decompressing the tar.gz, ¿Is necessary recompile the kernel or something like configure it?

Shark. :)

I have not tested it using a SD-Card. I will try it out when I have some time...
 
  • Like
Reactions: Shark17

eraph2

New member
Sep 11, 2008
4
2
I met the same problem : stuck at the "no console found" point, and this either with an sd-card or a usb key. I also tried wolfx's method (boot via fastboot), and had the same problem.
To me, it seems that this must come from the system we put on the sdcard/usb key.

DerArtem : could you tell us what distro you put on your usb-key ? (and maybe even with links for download ?)

Regards,

eRaph
 

eraph2

New member
Sep 11, 2008
4
2
Actually, I just found what the problem was : on the image I uncompressed on the usb key (tegra-rootfs.tgz), the /dev directory was empty, and lacked a console and a null entry (see h**p://ubuntuforums.org/showthread.php?t=28550)

The folowing command solved the problem (to do on your sdcard/usbkey) :
cd dev
mknod -m 660 console c 5 1
mknod -m 660 null c 1 3
 

DerArtem

Senior Member
Apr 13, 2010
210
610
Bad Homburg
Hi,

I met the same problem : stuck at the "no console found" point, and this either with an sd-card or a usb key. I also tried wolfx's method (boot via fastboot), and had the same problem.
To me, it seems that this must come from the system we put on the sdcard/usb key.

DerArtem : could you tell us what distro you put on your usb-key ? (and maybe even with links for download ?)

Regards,

eRaph

I have used gentoo linux on a usb flash:

http://dev.gentoo.org/~armin76/arm/tegra2/install.xml
http://www.gentoo.org/doc/en/handbook/handbook-arm.xml
 

DerArtem

Senior Member
Apr 13, 2010
210
610
Bad Homburg
Actually, I just found what the problem was : on the image I uncompressed on the usb key (tegra-rootfs.tgz), the /dev directory was empty, and lacked a console and a null entry (see h**p://ubuntuforums.org/showthread.php?t=28550)

The folowing command solved the problem (to do on your sdcard/usbkey) :
cd dev
mknod -m 660 console c 5 1
mknod -m 660 null c 1 3

Yes, this files exists in the gentoo in the .tgz ....

I think that ubuntu might require a initrd...
 

eraph2

New member
Sep 11, 2008
4
2
I successfully managed to boot the ac100 ubuntu image (tegra-rootfs.tgz) copied on my sdcard. X started well, and hooking a keyboard, I managed to create a user, edit his password, ...

Nevertheless, I did not manage yet to make both a keyboard and a mouse work at the same time (the usb hub does not seem to work), and unpluggin/replugging the keyboard did not work either.

So, the ac100 ubuntu image works somewhat (in text mode via ALT-F1, i managed to get root access), but seems to lack some hardware support (which is quite normal).

The first problem is probably that the boot.img I used was the one DerArtem provided with his modified sdmmc-update.zip archive, which contains a 2.6.32 kernel, whereas the ubuntu image uses a 2.6.29-ac100 kernel, hence no modules get loaded. I should find how to rebuild a boot.img with the good kernel (or better : add the good modules to the ubuntu image).

DerArtem : may I ask you how you did rebuild the boot.img in your various packages ?

Regards,

eRaph
 

DerArtem

Senior Member
Apr 13, 2010
210
610
Bad Homburg
I successfully managed to boot the ac100 ubuntu image (tegra-rootfs.tgz) copied on my sdcard. X started well, and hooking a keyboard, I managed to create a user, edit his password, ...

Nevertheless, I did not manage yet to make both a keyboard and a mouse work at the same time (the usb hub does not seem to work), and unpluggin/replugging the keyboard did not work either.

So, the ac100 ubuntu image works somewhat (in text mode via ALT-F1, i managed to get root access), but seems to lack some hardware support (which is quite normal).

The first problem is probably that the boot.img I used was the one DerArtem provided with his modified sdmmc-update.zip archive, which contains a 2.6.32 kernel, whereas the ubuntu image uses a 2.6.29-ac100 kernel, hence no modules get loaded. I should find how to rebuild a boot.img with the good kernel (or better : add the good modules to the ubuntu image).

DerArtem : may I ask you how you did rebuild the boot.img in your various packages ?

Regards,

eRaph

Hi,

please search on the web how to rebuild the boot.img. This is not a problem. My zip also contains the config to rebuild the kernel. The sources of the kernel are also documented in the readme inside the zip. The initrd is just empty.

But running ubunu on the folio might be a bad idea. Ubuntu is compiled for NEON instruction set, but the Tegra 2 CPU does not support this, so a lot of applications can crash when they will try to execute more advanced code....

Debian (optimized for ARMv6 without NEON) or Gentoo are better for the Folio.
 
  • Like
Reactions: Shark17

halu85

Member
Dec 10, 2010
14
2
Córdoba
Then, if I want to install gentoo instead ubuntu, do I have to follow the same steps but changing the distro linux for the gentoo? Or is it necessary to do anything else?

Thanks
 
  • Like
Reactions: Shark17

Shark17

Member
Jan 12, 2011
7
0
I tried to install gentoo in a USB, but it's a long process and it's not usual for me.
I'm very lost!

halu:
If you obtain a opetative distro image, can you upload in any place?
I'm thinking in write a howto with the results.
Bests

(Saludos desde Mallorca!! :D )
 

Top Liked Posts

  • There are no posts matching your filters.
  • 7
    Hello,

    I have prepared a few update.zip's with kernels to boot linux:

    There are two different zips.

    One to boot linux from a USB Flashdrive and the other from a SD card.

    Installation Instructions:
    ALWAYS HAVE CHARGER CONNECTED WHEN UPDATING A FIRMWARE.

    1. Please follow the instructions here to prepare your SD / USB Drive - start at "== Create a rootfs SD card ==". http://ac100.gudinna.com/README/

    2. Extract contents to a folder and follow instructions below.

    1. copy the update.zip to a sdcard, and insert sdcard into folio.
    2. Enter "Recovery menu" when folio is just turned on and press (POWER) once and (VOL up) next.
    3. press (VOL up) Factory reset or system update.
    4. press(VOL down) to continue to system update.
    5. press (VOL up) to confirm system update.
    6. during installation progress bar will show har far it is.
    7. folio will reboot after installation.
    8. insert the usb or flashdrive with the prepared filesystem into the folio and the tablet will boot automaticly from it
    3
    [ONLY FOR DEVELOPERS AND SKILLED PEOPLE: NOT FOR NEWBIES!!!]

    My 2 cents:

    I installed ubuntu and it works quite well. I'd like to point out that it you can boot android or ubuntu flashing the boot.img containing the linux kernel in place of recovery kernel (fastboot flash recovery boot.img). You can even try a kernel before flashing it to the device (fastboot boot boot.img). To enter fastboot mode in your device, simply press the power button three times when the Toshiba logo appears on the screen at powerup, then press volume up one time. Voila, you are in fastboot mode...
    To boot linux, you have to press "power+volume up", then follow the instruction on screen to wipe the device (don't worry, it will boot linux and it will not wipe anything). You'll miss the recovery partition that way, but you'll gain a dual-boot tablet with android and ubuntu in change. Not a bad trade.
    If you really need recovery, you can always reflash it with fastboot, so the process is perfectly reversible.

    Now, back to business:

    1) Touchscreen works (sort of). If you apt-get evtest, you'll notice that /dev/input/event3 is bound to the touchscreen and it reports to be alive and kicking. The test reports the coordinate changing and the pressure on the screen (multitouch works too). But......in Xorg, the device only reports the pressure and coordinates are not changing. You can test with xinput as I did. It seems a software-related issue: the drivers does not report correctly what the hardware is telling him. I'll investigate and report back if news will come out.

    2) Wifi could eventually work. The card is bound via SDIO bus, and a ar6000 driver supporting SDIO is available. I'll try to compile the driver ASAP.

    3) Suspend, cpufreq do not work and I doubt they will work without driver sources

    4) Battery is working, framebuffer is working good and the system seems quite snappy also with an EXT4 partition on a MMC. Openoffice works great, quicker than expected.

    5) If you compile the kernel with nilfs2 support, you can easily mount all the android partitions within ubuntu with ease. Not bad...

    That's all for the moment: I hope that someone will help me to make this little devil fly.
    2
    Here is an Ubuntu NetBook Remix IMG suitable for folio 100. It's a 4GB image so you need a 4GB SDCard or USB FLash drive.

    aliantic.com/files/ubuntu-netbook-folio.img.bz2

    You can write this image using dd : dd if=/pathtoimage of=/dev/sdX (X is the letter of your key) bs=1024k

    At the login screen, choose ubuntu-netbook 2D. Login is ubuntu as the password
    VirtualKeyboard is easy to enable.

    Akta
    2
    Actually, I just found what the problem was : on the image I uncompressed on the usb key (tegra-rootfs.tgz), the /dev directory was empty, and lacked a console and a null entry (see h**p://ubuntuforums.org/showthread.php?t=28550)

    The folowing command solved the problem (to do on your sdcard/usbkey) :
    cd dev
    mknod -m 660 console c 5 1
    mknod -m 660 null c 1 3
    2
    I think this topic deserves more!

    After several days of reading every page of this forum and all I could find on the net. I understand there are people here who can do their work together and make a distribution to all! Here is my small contribution, and if you agree to open a new thread NEW FOLIO FOR LINUX something like that. In searching for solutions I came across very well HOW TO now I give it to you. I do not know who wrote it, but I thank him a lot!!



    Flash your Android tablet with Ubuntu

    How to flash your folio 100 from Toshiba with a fresh Ubuntu build.

    Here is a quick method to install Ubuntu 10.10 into a folio 100 tablet (originally android).

    First, thanks to all the fox at XDA. More detail at:
    http://ac100.gudinna.com/README/
    http://forum.xda-developers.com/showthread.php?t=907960&page=1
    http://forum.xda-developers.com/showthread.php?t=907960

    So far, wifi and touchscreen are broken, i am sure someone will soon take care of this. most important is to have the tools to debug.

    Two parts:
    build ubuntu for ARM
    build the kernel and flash it,
    install ubuntu on a SD card.

    First we will prepare a rootfs to install in the SD card. It is so handy to do this with the ubuntu tool called roostock. roostock will help you to build a rootfs image for arm, please read the detail at: https://wiki.ubuntu.com/ARM/RootfsFromScratch

    # sudo apt-get install roostock
    # sudo rootstock --fqdn myhostname --login ubuntu --password temppwd --imagesize 4G --seed ubuntu
    # ls armel-rootfs-201101132334.tgz

    Easy, no? Then the kernel, almost that easy. Toshiba GPL kernel can be found at: https://github.com/tsh/folio100, Attached is the kernel config i used, it is inspired from http://forum.xda-developers.com/showthread.php?t=907960

    # git clone git://github.com/tsh/folio100.git kernel-folio
    # cd kernel-folio
    # export ARCH=arm; export CROSS_COMPILE=arm-linux-gnueabi-
    # make tegra_harmony_android_defconfig
    # make menuconfig
    # make -j16
    # ls arch/arm/boot/zImage


    To flash this kernel, we will need to include it in a update.zip file and ask the folio boot loader to flash it. The kernel image will be boot.img, it contains a header and a ramdisk (empty for us). This boot.img file is created with the tool mkbootimg (available from cyanogen, as well as unpackbootimg). The boot.img will be simply zipped with a script to do the updated.

    Note that here we are telling the kernel to boot on /dev/mmcblk1p1 (sd card) if you plan to boot your system from a usb key, use /dev/sda1 instead in the kernel command line. Attached is an update.zip image ready to be flashed. You can take it as a starting point, remove the boot.img file (with the kernel) and create your own (you will need the attached empty ramdisk file as well):

    # unzip update.zip
    # rm boot.img
    # mkbootimg --kernel arch/arm/boot/zImage --cmdline "[email protected] [email protected] vmalloc=192M video=tegrafb usbcore.old_scheme_first=1 tegrapart=recovery:122000:a00:800,linux:a0e00:1000:800,loader:300:400:800,mbr:700:200:800,system:900:20000:800,cache:20900:80000:800,misc:a0900:400:800,userdata:a1f00:80000:800 boardtype=PR root=/dev/mmcblk1p1 init=/sbin/init usb-storage.delay_use=0 rootdelay=10" -o boot.img --ramdisk boot.img-ramdisk.gz
    # zip -r update.zip boot.img META-INF


    Before you can flash your folio’s kernel partition, be sure you know how to restore a working image (available at http://forum.xda-developers.com/showthread.php?t=846199)

    To flash the kernel:
    copy the update.zip file in FAT formated SD card
    insert the SD card in the folio and be sure the folio power cable is plugged
    power on the device and press power and volum-up in the same time
    press volume up to confirm
    press volume down for android update
    press volume up to confirm

    From now your device will boot with you custom kernel and try to boot on the SD card.

    Insert the SD card in your computer, unmount it, reformat it with a ext3 file system and copy the ubuntu rootfs. Here i assume the sdcard is sdb1, your responsibility to change this. By the way, i had to update /etc/fstab...

    # umount /dev/sdb1
    # cfdisk /dev/sdb # change the file system type to 83 (linux) and save
    # mkfs.ext3 /dev/sdb1
    # mount /dev/sdb1 /mnt
    # tar xvzf armel-rootfs-201101132334.tgz --numeric-owner -C /mnt
    # echo "dev /dev tmpfs rw 0 0" >> /mnt/etc/fstab
    # umount /mnt

    Insert the SD card in the folio and reboot it. Hopefully you can enjoy Ubuntu on your device.