Installation nanonote
From JLiMe.com
Contents |
Overview
This is a simple guide for installing JLime using a Linux desktop PC. Firstly, although we can never promise anything, the nanonote is suppose to be unbrickable which in essence means that you can never make it unfixable. So if this doesnt work for you, start over.
What will you need to install JLime?
- Ben Nanonote
- Usb cable (included inside box)
- Short cable or similiar that can shorten two pins.
- A pencil that fits into the reset hole.
- A computer with any Linux distribution (you can use a LiveCD which can be run without installing it) with an free usb connection.
- Userland, Kernel and bootloader from here
- about 15mins (hardcore Linux geeks about 10) of spare time and some patience.
What will be the final result?
We will install kernel and userland onto your MicroSD. card Once the installation is done you just need to boot the nanonote from MicroSD card.
Installation
- a) Prepare the Micro SD Card
- b) Download the Neccesary Files
- c) Install the System
- d) Boot the System
If you use current official Qi bootloader (16-Jun-2010+) then you just need to divide the MicroSD card into 2 partitions: ext2 and swap. Unpackage the Jlime-muffinman-image-2010.1-ben-nanonote.rootfs_READY.tar.gz file on ext2 and then Press 'M' + PowerON button to start the system.
If you use the bootloader from jlime then :
a) Prepare the Micro SD Card
Divide the MicroSD card into 3 partitions:
* /dev/sdc1 : FAT, 8MB is ok. * /dev/sdc2 : ext2, 90MB or more. Better more. * /dev/sdc3 : swap, 32MB or less.
Note: the sizes are specific for the userland file mentioned below
Warning! : the name of the device files (/dev/sdc1, /dev/sdc2, ..) above are only examples. I assume that the MicroSD card is /dev/sdc, but it could be different in your PC, check that before and use the proper names of the device files. If you do not know how to split your MicroSD car then read
Partitioning_your_Compact_Flash_card
Creating the file systems:
mkfs.vfat /dev/sdc1
mkfs.ext2 /dev/sdc2
mkswap /dev/sdc3
b) Download the Neccesary Files
Bootloader
openwrt-xburst-qi_lb60-u-boot.bin
Kernel
uImage-2.6.34-qi
Userland-image
Jlime-muffinman-image-2010.1-ben-nanonote.rootfs_READY.tar.gz
c) Install the System
- Install the openwrt-xburst-qi_lb60-u-boot.bin bootloader file. If you do not know how to Flash the bootloader read the Debian_intallation instructions.
- Put the kernel file on FAT file system (/dev/sdc1). IMPORTANT: the file name on FAT file system, for the kernel file, must be always uImage. Example:
mount /dev/sdc1 /mnt
cp /tmp/uImage-2.6.34-qi /mnt/uImage
umount /dev/sdc1
- Install the Jlime Muffinman userland on ext2 file system (extract the file as root only). Example:
mount /dev/sdc2 /mnt
cd /mnt
tar xvzf /tmp/Jlime-muffinman-image-2010.1-ben-nanonote.rootfs_READY.tar.gz
cd /
umount /dev/sdc2
d) Boot the System
Remove the battery. Put the MicroSD card into your Ben Nanonote. Press 'M' and plug the USB cable, or put the battery again.
Check the Muffinman Manual now : Muffinman Manual
Install Xburst tools
This is a tool that enables you to reflash the nanonote. Here we describe how you download and install this tool: Code: Select all
wget http://downloads.qi-hardware.com/software/xburst-tools/xburst-tools_0.0+200906.orig.tar.gz tar -xzvf xburst-tools_0.0+200906.orig.tar.gz cd xburst-tools.git make su root make install
Installing through USBOOT (OLD WAY)
Please note that we expect that you have downloaded bootloader, kernel and userland into an folder. Below we will refer them as bootloader-image.bin, kernel-image and rootfs.jffs2 but they can of course be called anything.
Preparing (read this first!)
Finding the USBBOOT pins : Remove the battery and take a look inside the nanonote.
In the empty battery slot you will see a plastic piece with text on it (GND/RXD/TXD and USB Boot). We are interested in the USB Boot label. If you look closely you will see that there are 2 metal pins there (can be hard to see since the plastic covers part on of one pin). You will need to shorten(connect those points) those two pins (with whatever you see fit), I personally prefer using tin foil that I press hard against those pins.
a) Stop your nanote and remove the battery.
b) Insert the usb cable, if the nanonote turns on, Press U and ResetButton (at the back of ben) then goto STEP_e) or just remove the cable and try again. You want it to stay off.
c) Shorten the two pins as described, when certain press the power button for about 2-3 seconds. If nanonote remains off (no lcd) then you are most likely in usbboot mode.
e) As root do this (on your laptop/pc) Code: Select all
usbboot -c "boot" usbboot -c "nprog 0 bootloader-image.bin 0 0 -n" usbboot -c "nprog 1024 kernel-image 0 0 -n" usbboot -c "nprog 2048 rootfs.jffs2 0 0 -n"
f) You are done, remove usb cable and restart nanonote!
Updating kernel
You might want to only update the kernel while having the userland and bootloader remaining. This is almost same as the NEW WAY howto above, just that we only select parts to install.
a) remove battery and insert usb cable
b) Press U + PowerButton for 3 seconds. You should see something inside dmesg (new usb device detected)
c) write (change kernel-image to your fresh kernel name)
usbboot -c "boot"
usbboot -c "nprog 1024 kernel-image 0 0 -n"
once that is done remove cable and restart nanonote.
