 | Foro Bomberos de Alcorcón Foro de un BOMBERO para ASPIRANTES, BOMBEROS y personas con Interés en las emergencias |
| | El Ubuntu llega a las PDA, ZAURUS LINUX | |
| |
| Autor | Mensaje |
|---|
equiX

Cantidad de envíos: 484 Bombero: X-Men Puntos: 839 Reputación: 0 Fecha de inscripción: 20/05/2008
 | |  | | equiX

Cantidad de envíos: 484 Bombero: X-Men Puntos: 839 Reputación: 0 Fecha de inscripción: 20/05/2008
 | Tema: Re: El Ubuntu llega a las PDA, ZAURUS LINUX Jue 29 Mayo 2008 - 22:32 | |
| Ubuntu Linux 7.04 is now available for Sharp's Zaurus PDAs. The 0.1 release comes with a minimalist filesystem that can be launched in an emulator, enhanced with software from the vast Ubuntu archives, and then flashed onto a real Zaurus.
The Zaurus Ubuntu project was created by "Omegamoon," a hacker who has previously worked on ports of Fedora Linux and Google's Android phone stack to the Sharp Zaurus. He suggests first trying the distro out in the free QEMU emulator, where configuration and tweaking is easier than on real hardware. Once customizations have been completed, it can be installed on Zaurus PDAs such as the SL-C3100, he says.
The project was inspired by Nokia's Handheld Mojo project, which is porting Ubuntu to the ARM architecture. In a presentation delivered at CELF's recent Embedded Linux Conference, Mojo project leader Andrew Christian noted that while Nokia's Maemo project has packaged 500-600 Linux binaries, Ubuntu packages upwards of 12,000. Therefore, porting Ubuntu to ARM and thence to the Zaurus should make for greater software versatility.
Learn more by clicking below to read the full story, over at LinuxDevices.com.
Ubuntu ported to a PDA _________________ "La democracia es que si a las siete llaman a tu puerta, sea el lechero"
  
  |
|  | | equiX

Cantidad de envíos: 484 Bombero: X-Men Puntos: 839 Reputación: 0 Fecha de inscripción: 20/05/2008
 | Tema: Re: El Ubuntu llega a las PDA, ZAURUS LINUX Jue 29 Mayo 2008 - 22:34 | |
| The birth of Zubuntu I thought this little project could use a name. So, since my targeted device is a Zaurus, why not call it Zubuntu.
Most of my spare time went into this project the last couple of weeks. I've managed to get a fairly complete system running now, although it's very difficult to get all the tiny bits and pieces fit into the right place and position.
A lot of time is spent finding out stuff that has already been done by others. I'm not complaining, it's just that this work isn't as efficient as it could have been. But hey, since I'm far from a Linux guru I'm still learning a lot, and for me that's worth a good thing.
I've updated the minimal image. It can be downloaded here. The version number has gone up from 0.1 to 0.3.
Same instructions apply as before, so read all the details here. I hope to fix a few other things soon, like sound, automatic Xserver rotation, brightness adjustment, right mouse click simulation, easy wireless network configuration, the hardware clock and other things I've forgotten right now.
One good thing is my experience with Xfce. I like it, it looks good and the performance is better than I expected.
If you're going to use this in Qemu, make sure you rename /etc/keymap-2.6.map temporarily, since you don't want to use the Zaurus keyboard mapping in Qemu.
 _________________ "La democracia es que si a las siete llaman a tu puerta, sea el lechero"
  
  |
|  | | equiX

Cantidad de envíos: 484 Bombero: X-Men Puntos: 839 Reputación: 0 Fecha de inscripción: 20/05/2008
 | Tema: Re: El Ubuntu llega a las PDA, ZAURUS LINUX Jue 29 Mayo 2008 - 22:34 | |
| Okay, so here it is then, version 0.3 of Frisky-Firedrake for the Zaurus, the Ubuntu 7.04 "Feisy Fawn" release for Zaurus.
It is first of all a work in progress copy of my most minimal installation, based on the excellent work done by the people of the Mojo project. I want to thank Paul aka speculatrix for hosting the image files.
I messed up a lot of times now by installing far too much packages, ending up with a mess most of the times. I tried to keep in mind that the targeted Zaurus is a small device without unlimited amounts of memory and disk space. That's why I thought maybe a full blown (gnome) desktop is a bit too heavy. I tried several alternatives, like icewm and enlightenment. They all work, but I decided to install none of them on default. Since this is a matter of taste, I leave these kind of choices for you to make. It's simply a matter of running 'apt-get install whatever-package' most of the time actually.
For starters, you may be best of using icewm by running 'apt-get install icewm'. The Xserver is installed already on default. I've created a /root/.xinitrc file and added a line 'exec icewm-session'. Don't forget to edit this file (using nano or mc) when you install any other window manager (for instance, exec enligthenment for e17).
This root filesystem is a version 0.1. Why? because it's not ready for prime time yet, and needs lots of tweaking and fiddling. It can be set up to run on your Zaurus of course, but I prefer to use it in Qemu for the time being.
If you really want to install the image onto your Zaurus already, simply use the Android installation files, and copy and rename the zubuntu-minimal-rootfs.tar.gz into android-rootfs.tar.gz. Then install as if it were Android (use the instructions in the menu on the left). A Zaurus keymap can be found in /etc/keymap-2.6.map. Install console-tools first so you'll be able to run 'loadkeys /etc/keymap-2.6.map'. See for yourself what works and what doesn't work, or wait for a next version that is tested ok by me and others for the Zaurus. I've already spotted quite some Ubuntu 7.10 "Grumpy Griffin" packages, so...
For the time being, I will stick with Qemu for a while, until I'm satisfied with the setup. To set this up for use in Qemu, perform the following steps.
1. Making preparations for running Zubuntu in Qemu a. Install (or build) Qemu on your host. Google for a howto if you need. You can even use Qemu for Windows to configure your zaurus-ubuntu in Windows if you like! Just make sure qemu-system-arm is included.
b. Create an installation directoryhost$ mkdir -p ~/src/ubuntu b. Download zubuntu-minimal-rootfs.tar.gz into ~/src/ubuntu c. Download zImage-versatile-2.6.24-rc7.armv5tel into ~/src/ubuntu
2. Creating the file system on loopback device You can make it any size of course, but 4Gb matches the internal Zaurus disk of my SL-C3100, so it's kind of representative. I've tested this with a 1Gb filesystem, and never ran out of diskspace (so far).
host$ cd ~/src/ubuntu host$ dd if=/dev/zero of=ubuntu-qemu bs=1MB count=4096 host$ sudo mke2fs -F -m 0 -b 1024 ubuntu-qemu 3. Installation of the root filesystemhost$ cd ~/src/ubuntu host$ mkdir qemu host$ sudo mount -t ext2 -o loop ubuntu-qemu qemu host$ cd qemu host$ sudo tar -zxpf ../zubuntu-minimal-rootfs.tar.gz host$ cd .. host$ sudo umount qemu 4. Start Zubuntu in Qemu I've struggled quite some time to get a working network connection in Qemu, and ended up with this (for me working) setup. No bridging required!host$ sudo qemu-system-arm \ -M versatilepb -kernel zImage-versatile-2.6.24-rc7.armv5tel \ -append "root=/dev/sda ip=bootp" \ -hda ubuntu-qemu \ -net nic -net user,script=/etc/qemu-ifup After Qemu boots, login with root and enter a new root password twice. After that, lets see if it workshost$ date -s "05/07/2008" host$ apt-get install icewm host$ startx IceWM should start now.
5. Making adjustments, fixing, patching etc At this point you're running Zubuntu in an ARM emulator, roughly comparable to the Zaurus. You'll find that by doing this, fixing stuff, experimenting with packages, trying different configurations or setups is much, much easier than doing this on your Zaurus. There is of course Zaurus-specific stuff (like the keyboard mapping), but most stuff can be done from the emulator.
6. Creating a new root filesystem If you're finally happy with your setup, and think it's time to try it out on your Zaurus, you can easily (re)create a root filesystem to be flashed on your Zaurus. It is important that you exit the emulator first.
Create a new root filesystem by simply doinghost$ cd ~/src/ubuntu host$ sudo mount -t ext2 -o loop ubuntu-qemu qemu host$ cd qemu host$ sudo tar -czpf ../zubuntu-custom-rootfs.tar.gz . host$ cd .. host$ sudo umount qemu As said before, copy and rename the zubuntu-minimal-rootfs.tar.gz into android-rootfs.tar.gz. Then install onto your Zaurus as if it were Android (use the instructions in the menu on the left).
7. Known errors Most errors should be easy to fix. If you find other errors, or better, if you have any solutions to these problems, please share them here!
Known errors are currently: * perl keeps complaining about missing locale information * apt-get update complains about a GPG Error * lots of initscript errors during boot * ucf install error * Hardware clock problem * Sound is not working (forgot to install alsa) * Automatic rotation not working
So far, I ignored these without any problem, but it doesn't mean they don't need to be fixed of course.
Again, if you have any fixes, scripts, enhancements etc, please share them here! _________________ "La democracia es que si a las siete llaman a tu puerta, sea el lechero"
  
  |
|  | | equiX

Cantidad de envíos: 484 Bombero: X-Men Puntos: 839 Reputación: 0 Fecha de inscripción: 20/05/2008
 | Tema: Re: El Ubuntu llega a las PDA, ZAURUS LINUX Jue 29 Mayo 2008 - 22:44 | |
| | Código: | http://wiki.openzaurus.org/HowTos/Bridging_with_Ubuntu |
HowTos/Bridging with Ubuntu From OpenZaurus This describes how to give network access to your Zaurus via ethernet bridging with a PC running Ubuntu Linux. This allows a USB-connected Zaurus to appear as another host on the same network as the PC. Bridging is useful only if you can allocate an IP address for the Zaurus that is on the same network as the PC (e.g. you are connected to a private network). Bridging is not appropriate if your PC is connected directly to the internet (via a cable/adsl/modem) and thus has a public IP address, in this case see this howto. if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } Prerequisites for Ubuntu host machine - This HOWTO has been tested on Kubuntu 6.06 but it will probably work on the same and later versions of all the Ubuntu family and maybe even later versions of other Debian-based distros. It will probably NOT work on earlier versions of Ubuntu.
- The brctl command is provided by the bridge-utils package:
sudo apt-get install bridge-utils
Configuring the Ubuntu machine The interface with the Zaurus, usb0, will be combined with eth0 in a virtual interface called br0, this is what will be assigned the IP configuration for the PC. The Zaurus will be getting an IP address on the same network. NB: The Ubuntu package bridge-utils must be installed The Ubuntu machine is configured entirely via the /etc/network/interfaces file, which should contain: auto lo iface lo inet loopback
# Configure br0 using ifupdown with dhcp and add eth0 to the bridge auto br0 iface br0 inet dhcp bridge_ports eth0
# udev calls ifupdown for usb0 when it is created and destroyed. See /etc/udev/rules.d/85-ifupdown.rules # Tell ifupdown not to assign an IP address and add it to the bridge. auto usb0 iface usb0 inet manual up ifconfig $IFACE 0.0.0.0 up post-up brctl addif br0 usb0
Configuring the Zaurus Use the Network settings GUI to configure usbd0. Either use DHCP, or a static config on the same subnet as the PC, e.g.: Automatically bring up IP Address = 192.168.2.50 Subnet Mask = 255.255.255.0 Gateway = 192.168.2.1 (same as the PC) First DNS = 192.168.2.10 (same as the PC) Second DNS = 192.168.2.1 (same as the PC)
Troubleshooting - If you set the Zaurus to use DHCP, it can take over a minute to configure usbd0
- I found that the MTU assigned to usbd0 on the Zaurus was diferent from that assigned to usb0 on the PC:
ubuntu # ifconfig usb0 usb0 Link encap:Ethernet HWaddr 66:5E:F2:2A:07:79 UP BROADCAST RUNNING MULTICAST MTU:1494 Metric:1 RX packets:198 errors:0 dropped:0 overruns:0 frame:0 TX packets:3368 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:20256 (19.7 Kb) TX bytes:349616 (341.4 Kb)
collie # ifconfig usbd0 usbd0 Link encap:Ethernet HWaddr 40:00:01:00:00:01 inet addr:192.168.2.50 Bcast:192.168.2.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3459 errors:2 dropped:2 overruns:0 frame:2 TX packets:251 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100
This does not prevent logging into the Zaurus using ssh but does prevent downloading files larger than about 1kB. I am not sure why this happens, it may be related to this kernel bug report The solution is to reduce the MTU on the Zaurus end. You can configure the Zaurus to do this automatically by editing /etc/network/interfaces. Find the section starting 'iface usbd0' and add the following line: up ifconfig usbd0 mtu 1494
References The GNU Linux usbnet driver Linux ethernet bridging _________________ "La democracia es que si a las siete llaman a tu puerta, sea el lechero"
  
  |
|  | | equiX

Cantidad de envíos: 484 Bombero: X-Men Puntos: 839 Reputación: 0 Fecha de inscripción: 20/05/2008
 | Tema: Re: El Ubuntu llega a las PDA, ZAURUS LINUX Jue 29 Mayo 2008 - 22:46 | |
| Ubuntu ahora funciona en las PDA Sharp Zauruspor Jose Andrade 08 / 05 / 2008  En su época, las Sharp Zaurus llegaron a ser muy populares, y según vemos, todavía tienen unos fieles fanáticos. Al igual que lo había hecho con Android, el hacker Omegamoon logró instalar una versión bastante pequeña de Ubuntu (de sólo 80MB) en la PDA, y está disponible su descarga como versión 0.1. Nuestro intrépido amigo admite que todavía no es muy estable y que "hay mucho por configurar, pero una adaptación completa de Ubuntu está en camino". Si te interesa arriesgarte, sigue el enlace Leer para ver las instrucciones, y después nos contarás cómo terminó todo. [Artículo en inglés] _________________ "La democracia es que si a las siete llaman a tu puerta, sea el lechero"
  
  |
|  | | | El Ubuntu llega a las PDA, ZAURUS LINUX | |
|
| Página 1 de 1. |
| | Permiso de este foro: | No puedes responder a temas en este foro.
| |
| |
| |
|