[Folio 100 General] ph84:
I'm sorry it took so long, I got lots of stuff to deal with. Good things are worth waiting for (i heard) ;)

First off: You are responsible for any of your actions! Changes that are needed to boot Ubuntu on your folio will void your warranty!

Special Thanks goes to DerArtem for posting his Kernels, Weeds2000 for eMail support, topogigi for wifi hacking and last but not least the Ubuntu-Touch Team on IRC that made it possible for me to tweak the touchscreen driver.

However, the system you are about to create is not fully functional, there are still things missing (a working sound driver for example). Its nice to play with it anyway :D

Heres a quick walk-through:

We will flash a kernel to the toshiba folio tablet which makes it possible to boot from an sdcard or USB-stick (You have to choose one, we need at least 2GB, I'd recommend 4GB so you can install fancy stuff like OpenOffice etc.).

We will then create a root filesystem with rootstock, which will hold our Ubuntu system (similar to your hard drive-Ubuntu).

Finally, we have to tweak that filesystem and change passwords, copy wifi driver etc.

Then we're able to boot a beautiful Ubuntu. :)

Things you will need:

- A Computer running Linux (Debian / Ubuntu would be great. If you're not running Linux on your computer, running it on the folio would make absolutely no sense. Please don't ask, I don't know how to install it in Windows.)

- The files i added to this post

- A SD-Card, 2-4 GB should be fine.

- optional: A second SD-card, 128MB would be enough (for flashing)

- A USB hub (If you want to boot from USB AND use a keyboard.

- Some time... =)

The first thing you should do is flash one of the update.zip files; choose update-sdmmc.zip (this will boot your folio from sdcard) or update-usb.zip (this will boot from a usb pen drive), open it and unpack the content to a sdcard (This has to be a SDcard, we're gonna flash our device from there.)

Backup all your data on your folio (I'm serious! It'll be gone!) and turn it off.

Put the SDcard in its slot and turn the folio back on. Press + hold both power and volume up.

Follow instructions to do a system update (If you've never done this before you shouldn't start now =) )

When it reboots, your folio will show some funny black and white linux text stuff and hang somewhere. Congratulations! You just bricked your tablet. Now lets see how we can fix it... :) Turn it off (Keep power pressed for about 5 seconds) and take out the sdcard, put it in your PC.

It's getting messy now, so grab a beer and let's go:

Open a Terminal on your linux computer.

#echo "Hello world!"

If your console says "Hello World" you got it. Awesome! =)

#sudo apt-get install rootstock gparted

This will install rootstock, the tool we're gonna need to create our filesystem, as well as gparted, a tool for partitioning our flash drive. You can also install rootstock-gtk, the graphical version. Try it if you like:

#sudo apt-get install rootstock-gtk

I heard that ubuntu-netbook won't work because there are drivers missing, would somebody try that and report please?

If your beer is already empty when this is done, you need a faster computer. Tell your wife the guys at xda-developers told you so ;)

Back to the terminal:

#sudo rootstock -f MyCoolHostName -l myCoolUserName -p myCoolPassword --seed xubuntu-desktop -i 2G --notarball

This will create our filesystem with a user called "myCoolUserName" and (theoretically) his password "myCoolPassword" and install a basic xubuntu-desktop. I had to change the password manually because it didn't work this way... We'll do that later.

Rootstock will download lots of packages (You could also set it up with "--seed ubuntu-desktop", then youll download even more packages or "--seed ubuntu-minimal" or kubuntu... I still didnt find a list of seeds online :-/

The creating will take quite some time, get another beer. ;)

When this is done, you'll get a file like this : "qemu-armel-201104112120.img". We will now mount this image: (make sure the directory /mnt/ does exist and is empty:

#ls -la /mnt )

#sudo su

(its simpler to be root for now)

#mount -o loop qemu-armel-201104112120.img /mnt/

(You are aware that your filename is different, are you? Try this:

# mount -o loop qemu-armel-*TAB*

and your terminal will automatically fill in your filename. Awesome linux, huh? =)

)

#cd /mnt/etc/
#mv fstab fstab.bak
#echo "proc /proc proc defaults 0 0" > fstab
#echo "dev /dev tmpfs rw 0 0" >> fstab

Note that the first time we create a file called fstab (echo asdf > fstab), then we add one line to this file (echo asdfasdf >> fstab)

Now we need to copy our wifi-driver over. Remember I told you to write down the directory you put them in? =)

#cp /home/YourUserName/Desktop/FolioStuff/firmware /mnt/lib/firmware

We will now do something stupid: We chroot into our arm-based system from an intel-system. But since we're only changing passwords, we should be OK.

#cd /
#chroot /mnt/
#passwd myCoolUserName
#passwd
#exit

That's it, we're out of the chroot.

It's now time to prepare the SDcard (The steps are the same for a USB Flash drive, I think you'll figure them out.)

Find out how your SDcard can be accessed (You should still be root):

# fdisk -l

In my card reader, it's "/dev/mmcblk0", it could also be "/dev/sdb1" in your computer.

Now there are two possibilities:

1. You know what youre doing. Then it's easy: You wipe the only partition (or, if there are more than one, the first partition) on your sdcard and format it with ext3:

#mkfs.ext3 /dev/mmcblk0p1

Note: The device is called /dev/mmcblk0, the partition itself /dev/mmcblk0p1 (Partition 1)

2. You are not sure about this. No problem, start gparted: (as root!)

#gparted

In the upper right corner, select your flash drive, delete all partitions and create one formatted with ext3. Close gparted.

Mount your freshly created partition somewhere (i chose /mnt2/):

#mkdir /mnt2/

#mount /dev/mmcblk0p1 /mnt2

We can now copy our filesystem over. Make sure you use exactly the same flags (rfp for recursive, force, preserve (attributes))

#cp -rfp /mnt/* /mnt2/

OK, that could work. Unmount the sdcard:

#umount /mnt2/

Put it in your folio and cross your fingers. :)

Wifi drivers will be up soon...