Author Topic: A Clean, Fresh, Configured Eabi Rootfs Tarball  (Read 160366 times)

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
A Clean, Fresh, Configured Eabi Rootfs Tarball
« on: November 09, 2007, 04:20:19 am »
==================================
Quick notes on the configured debian eabi rootfs tarball
====================================


I. Introduction
II. Download
III. What is in this rootfs?
IV. Installation steps (brief)
V. Special notes

I. Introduction
This tarball is primarily for use with the yonggun (eabi) kernel.  For users of other kernels (such as Angstrom and cortez's Poky), please refer to the special notes at the end.
This rootfs can run on the internal drive, a SD card and a CF card.
The yonggun kernel has been verified to be working on C1000, C3100 and C3200 (but not C3000 as it cannot use uboot due to its limited NAND space).
Feel free to post your questions here.
Update: It is now verified that the rootfs tarball also works fine on C3000 with the Angstrom kernel. You don't need uboot at all but just flash the Angstrom kernel in the usual Flash Menu (or the "OK mode"). So skip Steps 5 & 6, and extract jpmatrix's customization tarball: tar xvf custo_c3k.tar -C /. , after extracting the rootfs and kernel modules.

II. Download
Download the 071201 rootfs tarball here OR the mirror here
Changelogs
08-04-16
  • updated with updater.sh for C1000 (for sharp bootloader)
  • updated cackohddfix to v0.2
08-03-21
  • updated the instructions to using yonggun kernel 2.6.24-3
07-12-01
  • removed leading path (/mnt/card) in the extracted rootfs
  • fixed loadkeys in /etc/rc.local
  • added yonggun kernel modules: 2.6.22.9, 2.6.23.1, 2.6.23.3 (so users just need to flash the kernel)
  • new packages presinstalled: ssh, openssh-client, openssh-server
Note: Those who already got the previous rootfs running do not need this.


III. What is in this rootfs?
1) eabi rootfs tarball (Jan 2007)

2) apt-get dist-upgrade (Nov 28 2007) -- FULLY upgraded!

3) yonggun's (= 2or0's) deb packages & keymap (for details, see: http://yonggun.tistory.com/54 )
Highlights:
-- X-window fully set up (xfbdev)
-- Video and sound playback enabled (mplayer, alsa stuff, xmms)
-- Display auto-rotation between landscape/portrait modes
-- Wireless networking enabled
-- Keymap in pdaXrom's style
-- Mouse keybindings with xbindkeys: [Calendar] = left button; [Address] = middle button; [Mail] = right button

4) fine-tuning with my previous after installation scripts & settings: including hardware clock setting, sources.list with working repos, some basic network setup, usb modules loading, etc.

5) locales installed, generated, and set to en_US.UTF-8 (export added to ~/.profile)

6) additional packages installed:
-- file manager: pcmanfm
-- editor: leafpad
-- browsers: dillo, links2, epiphany-browser, epiphany-webkit
-- essential networking tools: ssh, cvs, subversion
-- hardware management tools: pcmciautils, hdparm
-- archiving tools: bzip2, unrar-free, unzip, xarchiver (tar and zip are already presinstalled in the rootfs)

7) touchscreen calibrated (/dev/input/ts0)

8) executable paths, compiler architecture optimization options and QT3/QT4 paths (commented) set in ~/.bashrc

9) gtk-icon-theme set to "gnome" (in ~/.gtkrc-2.0)

10) default window manager = icewm + some basic fine-tuning (e.g. the [Menu] key call the wm menu); custom settings files in ~/.icewm

11) backlight adjustment enabled ([Fn]+3, [Fn]+4)

12) sound playback (tuned in alsamixer) with headphone/speaker hot-swapping functionality


IV. Installation steps (last modified: 080321)
Step 1:
Prepare an ext2/ext3 formatted media (internal drive/SD/CF) and at least two partitions (root, swap).  A media of at least 1GB of memory is required.

Step 2:
Extract the rootfs tarball to the target media:  tar -xjpf zaurus_eabi_rootfs_071201.tar.bz2 -C to the root level of a CF/SD(depending on which media you want to load Debian)
(NOTE: This can take *quite* a while because the extracted rootfs is almost 700MB. More patience, more joy.)
Also download and extract "modules-2.6.24-yonggun.tar.gz" from http://yonggun.tistory.com/68 to the same location.

Step 3:
Edit /etc/fstab and assign the correct mount points to the root partition and the swap partition. The default is set to boot from the internal drive. Just comment the lines for /dev/hdaX and uncomment the lines for /dev/mmcblk0pX if debian boots from SD.

Step 4:
Flash a new kernel
There are two sets of kernels to work with Debian EABI, one using the default Sharp bootloader and the other using uboot. Both work fine.
================================================================================

Kernel installation for Sharp bootloader

I. Get the latest yonggun kernel here: http://yonggun.tistory.com/68 (under "For Sharp Bootloader"), rename the kernel image to "zImage.bin", put it together with this at the root level of a CF/SD. Remove the ".txt" file extension before use.
updater.sh (for C3000/3100/3200) or this updater.sh (for C1000)

II. Reboot the machine into the normal Flash Menu (press [OK] before powering up/rebooting)

III. In the Japanese menu, choose "4", then choose the media, then choose "Y" to confirm.  

================================================================================

Kernel installation for Uboot

I. Install the pdaXrom uboot (http://www.pdaxrom.org/?q=node/106)

II. Press [OK] to reboot into the uboot emergency mode.

III. Install the yonggun kernel
For all Cxx00 series: 2.6.24
 by running this autoboot.sh  (remove the ending .txt extension) on a SD/CF.
 [ Invalid Attachment ]

IV: As soon as booting starts,
press and hold [1] to boot from SD
press and hold [2] to boot from the internal drive
press and hold [3] to boot from CF

================================================================================

Step 5:
First boot
Only the root account is set up: login = root; password = zaurus

Step 6:
Set the correct date and time:
date MMDDHHMMYYYY  e.g. 112814002007 (= Nov 28, 14:00, 2007)
hwclock -w

Step 7:
Make the kernel modules work
depmod -a

Step 8:
Set up network connection
Set up your own network profile in /etc/network/interfaces . A sample file has been provided. After that run /etc/init.d/networking restart
Then plug in your wifi CF card if not inserted yet. If the card fails to work, either take out the card and insert in again, or run pccardctl eject 1 && pccardctl insert 1

That's it.  Debian EABI is ready to run.  
Run startx to launch the window manager (icewm).
Run apt-get install PACKAGE_NAME to install your desired packages.
Run apt-get update to update the package lists.
Run apt-get dist-upgrade to upgrade all the upgradable packages.


V. Special notes:
Although this is a tailor-made rootfs for running with the yonggun kernels, you may still use it with other eabi kernels, such as the Angstrom kernels and cortez's Poky kernels. YMMV.

Touchscreen issue:
This tarball is primarily tailor made for the yonggun kernel. The touchscreen device is /dev/input/ts0. If you use other kernels, such as Angstrom's, you may have to change to another device, such as /dev/input/event1 (to be verified). Specify the setting in ~/.profile.
Or if you find that the touchscreen pointer goes wild, exit X and run ts_calibrate in the login shell.
« Last Edit: April 16, 2008, 04:25:01 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

Vitel

  • Newbie
  • *
  • Posts: 48
    • View Profile
A Clean, Fresh, Configured Eabi Rootfs Tarball
« Reply #1 on: November 09, 2007, 04:54:19 am »
That's good idea, I think.

BTW, we can also simplify the UBOOT INSTALLATION and KERNEL INSTALLATION steps by uploading internal flash backups for all Z models. For example, I can upload my internal flash for C1000 with already installed Uboot and Kernel kernel 2.6.22.9 yonggun. So, it will make installation a little bit simpler (via NAND flash restore DM feature).
« Last Edit: November 09, 2007, 04:54:34 am by Vitel »
Regards,
Vitel

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
A Clean, Fresh, Configured Eabi Rootfs Tarball
« Reply #2 on: November 09, 2007, 07:59:37 am »
Sounds good too. But I wonder how to install the NAND backup image.

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ThomasR

  • Newbie
  • *
  • Posts: 4
    • View Profile
A Clean, Fresh, Configured Eabi Rootfs Tarball
« Reply #3 on: November 09, 2007, 09:15:05 am »
I am very interested in this!    I would really like to see how debian runs on my SL-C1000, but I have not had much luck. But thats mostly user error  

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
A Clean, Fresh, Configured Eabi Rootfs Tarball
« Reply #4 on: November 09, 2007, 09:15:45 am »
Good. Will start working on this tonight....

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

matthis

  • Full Member
  • ***
  • Posts: 217
    • View Profile
    • http://badaboum.bidibom.free.fr/mat/
A Clean, Fresh, Configured Eabi Rootfs Tarball
« Reply #5 on: November 09, 2007, 10:06:26 am »
Indeed, sounds very interesting for me too!!

walkman

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
A Clean, Fresh, Configured Eabi Rootfs Tarball
« Reply #6 on: November 09, 2007, 10:12:59 am »
Give it a try. It would be nice to play a bit with yet another distro until I finally settle down on a final decision .
Sharp SL-C1000 Akita + D-Link 660W

Vitel

  • Newbie
  • *
  • Posts: 48
    • View Profile
A Clean, Fresh, Configured Eabi Rootfs Tarball
« Reply #7 on: November 09, 2007, 11:16:36 am »
Quote from: ZDevil
Sounds good too. But I wonder how to install the NAND backup image.
It's described here, for example: https://www.oesf.org/forum/index.php?showtopic=24199

Quote
Issue: My Z won't boot after trying to install pdaXrom. I want to go back to ROM xyz.

Solution: Do a NAND restore. Download the correct file from here (select your Z model on the right):

http://www.trisoft.de/en_downloads.htm

and put the SYSTCXXX.DBK file on an SD/CF card (FAT16 formatted). remove all power from the Z (battery and AC), then hold Fn+D+M and insert the adapter. YOu should get a diagnostics menu. Go to the third page and select NAND restore. Note that you should only have one card (either SD or CF in the Z at this point).
Regards,
Vitel

glac

  • Newbie
  • *
  • Posts: 17
    • View Profile
A Clean, Fresh, Configured Eabi Rootfs Tarball
« Reply #8 on: November 09, 2007, 11:41:34 am »
I'll be eagerly waiting for this! Thanks for your hard work!

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
A Clean, Fresh, Configured Eabi Rootfs Tarball
« Reply #9 on: November 09, 2007, 12:04:07 pm »
Quote from: Vitel
Quote from: ZDevil
Sounds good too. But I wonder how to install the NAND backup image.
It's described here, for example: https://www.oesf.org/forum/index.php?showtopic=24199

Quote
Issue: My Z won't boot after trying to install pdaXrom. I want to go back to ROM xyz.

Solution: Do a NAND restore. Download the correct file from here (select your Z model on the right):

http://www.trisoft.de/en_downloads.htm

and put the SYSTCXXX.DBK file on an SD/CF card (FAT16 formatted). remove all power from the Z (battery and AC), then hold Fn+D+M and insert the adapter. YOu should get a diagnostics menu. Go to the third page and select NAND restore. Note that you should only have one card (either SD or CF in the Z at this point).
You can't do a NAND restore of a backup that has uBoot installed. uBoot messes up something so the restore tool won't restore it correctly, or so I gather.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

scottlfa

  • Sr. Member
  • ****
  • Posts: 281
    • View Profile
    • http://
A Clean, Fresh, Configured Eabi Rootfs Tarball
« Reply #10 on: November 10, 2007, 04:59:21 am »
Would be awesome I think to have a pre-packaged rootfs.
"So there I was, spitting on my goldfish trying to keep it alive ..."
---------------------------------------------------------------< O >-------------------------------------------------------
Viliv N5 [Debian]
Acer One Running OSX 10.5.7 [Dell 3190 & Ram Upgraded]
SL-C1000 [ZUbuntu], JasJar [WM 6.5], Nokia N900, and Samsung Galaxy S 4G.
Sony Ux280P [Kbuntu 10.4 Lucid], PsP Go and DSi

Vitel

  • Newbie
  • *
  • Posts: 48
    • View Profile
A Clean, Fresh, Configured Eabi Rootfs Tarball
« Reply #11 on: November 10, 2007, 01:41:24 pm »
Quote from: Capn_Fish
You can't do a NAND restore of a backup that has uBoot installed. uBoot messes up something so the restore tool won't restore it correctly, or so I gather.
Thanks for clarification, Capn_Fish.
Regards,
Vitel

scottlfa

  • Sr. Member
  • ****
  • Posts: 281
    • View Profile
    • http://
A Clean, Fresh, Configured Eabi Rootfs Tarball
« Reply #12 on: November 10, 2007, 01:45:07 pm »
I personally think the nand part of the process is the easiest, include the exact kernel.img and files along with the image.  That way its two relatively clean steps.  Step one setup u-boot and step two untar the rootfs.  Would be awesome to have a setup rootfs right off ... no fiddling with ts this and that
"So there I was, spitting on my goldfish trying to keep it alive ..."
---------------------------------------------------------------< O >-------------------------------------------------------
Viliv N5 [Debian]
Acer One Running OSX 10.5.7 [Dell 3190 & Ram Upgraded]
SL-C1000 [ZUbuntu], JasJar [WM 6.5], Nokia N900, and Samsung Galaxy S 4G.
Sony Ux280P [Kbuntu 10.4 Lucid], PsP Go and DSi

zecrazytux

  • Newbie
  • *
  • Posts: 35
    • View Profile
    • http://zecrazytux.net
A Clean, Fresh, Configured Eabi Rootfs Tarball
« Reply #13 on: November 12, 2007, 07:13:16 pm »
hoy m8s !

too late and too much pain for my poor eyes, i need too sleep
so i neither release anything nor write some docs or explanations now...

just wanna say that i could post a working rootfs of Debian Sid running e16 with right click support (well, seems to be, as i get menu/settings then i tap on the desktop with fn/ctrl keys )

i'm very surprise about anything quite important: the speed.
Last time, xfce4 was so slow that i tried to run matchbox, blackbox, and so on. I though that was acceptable, but that EABI wasn't as fast as i had heard.

now, i can tell you that that's uncomparatively faster than pdaxrom or old OABI builds of OE
especielly E16 is even faster than openbox

for now vim is broken, and i need some time to polish that rootfs. but if anyone is interested, i would post it


if anyone knows how to get rid of the "help board" of e16 (explaining what would happen if i do this or that), that'll be very nice to tell me
i also can set up a feed for new compiled eabi packages on my server, which as a low bandwith, but it can be convenient ?

by for now, hope i'll could get up in 5 hours ]
Debian GNU/Linux Sid on C1000 akita (rootfs on sd) - 2.6.21 from poky - e16 - www.zecrazytux.net

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
A Clean, Fresh, Configured Eabi Rootfs Tarball
« Reply #14 on: November 13, 2007, 08:07:32 am »
Quote from: zecrazytux
just wanna say that i could post a working rootfs of Debian Sid running e16 with right click support (well, seems to be, as i get menu/settings then i tap on the desktop with fn/ctrl keys )

cool
why e16 and not e17 ? e17 works great under angstrom

Quote from: zecrazytux
i'm very surprise about anything quite important: the speed.
Last time, xfce4 was so slow that i tried to run matchbox, blackbox, and so on. I though that was acceptable, but that EABI wasn't as fast as i had heard.

did you try icewm too ? i wonder if e16/e17 is faster than icewm...

Quote from: zecrazytux
i also can set up a feed for new compiled eabi packages on my server, which as a low bandwith, but it can be convenient ?
by for now, hope i'll could get up in 5 hours ]

wake up ! it's 14h07 in France !!!
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun