Skip to main content

New/Upcoming z2sidX preview

Posted in

UPDATE: I packed up my current rootfs for anyone who would like to test it. If anyone has suggestions please post some comments. I'm really looking for a good panel type app that is light, has a menu and can display stats (cpu/batt/wifi). Autologin is setup for the username "user" with the password "user". Root has the password "root".

z2sidX_v7_rc1.tar.bz2 (mirror) Jul-7-2011 (md5sum 826d74c7a37a3d747a7a08aa1500a8da)

It's been a while since my Zipit(s) got some playtime, but lately I've been working on a new z2sidX. X is probably not the best interface for the Z2 but getting it to run is still fun, entertaining and I've learned a bit. This post is mostly for me to keep track of the changes/fixes I've made to z2sid so I apologize if it sounds like unorganized rambling. When will this be released? Probably soon, but I would like to get some more applications installed and tested.

X server would crash on resume or when trying to switch VT's. Found this patch http://www.xora.org.uk/cgi-bin/cgit.cgi/openembedded/tree/recipes/xorg-x... which does the trick. Recompiled libfbdevhw and you can suspend/resume directly from X without crashing.

Backlight-daemon changes. Now that we are running X and console, the backlight-daemon must set screen blanking using setterm for console or xset for X. It now runs the proper util depending on if X is running. Implemented a workaround to "disable" keyboard input when the lid is closed. Got the idea from rkdavis' screenblanker source. Basically it works by switching to an empty virtual term when you close the lid and back when you open. There was one time after a resume where I got stuck on the wrong VT. Not sure what went wrong but this could be a potential problem (added resume script that changes the vt to 2 if X is running or 1 if not so you won't get stuck). This wouldn't be possible (in X) without the hack above. I am not a programmer so please be nice if my code is very sloppy. backlight-daemon source code.

Keypad would not work after leaving X. Certain console utilites and some compose/string entries in the default keymap were causing this problem. Removing the compose/string lines from the keymap and installing the following packages fixed the problem: console-tools console-data libconsole kbd.

Ebindkeys only works with one input. Z2 mouse emulator grabs keyboard input on another input device it creates. So, you must kill and reload ebindkeys with different config files for X and console. This is done with ~/.xinitrc when startx is run and /usr/local/bin/quitx when Quit X is chosen from the logout/shutdown menu.

Console and X Keymap changes. Volume up and down work as vol+ and vol-. Pgup and Pgdn moved to Alt-Up and Alt-Dn

I successfully compiled mplayer with anarsoul's pxa overlay patch. It runs but the video loses sync with the audio and is generally slow. Possibly the codecs? http://wejp.k.vu/zipit-z2/pxa270_overlay_patch_for_mplayer_1_0rc4

Currently using lxpanel for menu/panel. Having a visible panel on the zipit is nice, but takes up screen real estate. Lxpanel seems to use a lot of cpu (maybe it's the cpu monitor ). Lxlauncher is installed also and works but isn't started by default. Tried fbpanel but it constantly flickers and is unusable. (any suggestions for a panel?)

Using conky for stats. CPU Freq Display in conky was causing the zipit to freeze for some reason so it is disabled. (cpu scaling works, only conky display causes problem). CPU Freq is removed from the conkyrc file so it is still safe to run conky.

Pm-utils for suspend/resume. Made a z2 network script to auto connect after resume at /etc/pm/sleep.d/70z2wifi.

USB host and device modes can be switched with two scripts that must be run as root. "usbmodesw" will switch to the opposite mode it's currently in (if it's currently set for device it switches to host and vice versa). "usbhost" switches from device mode to host mode which will also trigger a scan of the USB bus and redetect devices. This is helpful since the Zipit doesn't have a built in hub. You can just run usbhost after plugging in a new device. http://anarsoul.blogspot.com/2011/04/usb-on-zipit-z2.html

Not in the pre-release (v7-rc1):
Working Pianobar (console pandora client). Pianobar from the repos works, but audio is choppy because of libfaad using floating point. Recompiled libfaad2 from debian repo's with tip from anarsoul (http://mozzwald.com/irclog/readlog.php?chan=zipit&date=2011-4-14 at 15:30). You can download and install this deb package (as root: dpkg -i libfaad2_2.7-1_armel.deb) which will replace the currently installed libfaad2. Also, let the system know where to look for the new libs (as root): echo "/usr/local/lib" > /etc/ld.so.conf.d/locallibs.conf && ldconfig

Update: Pianobar stopped working on Jul-9. Apparently there was an update to the Pandora protocol. I compiled the latest version from http://6xq.net/projects/pianobar/ and all is working again. You can get my deb package here.

framebuffer and wifi not detected

Hello

I just tried z2sidX 7-rc1, and I got:

could not read interface eth1 flags: no such device
and
/dev/fb0: no such file or directory

so it seems that the framebuffer and the wireless interface are not detected.

Do I need a specific bootloader to make it work?
(the md5 of the image is OK, i tried to reformat the SD and I got the same thing)

on z2sid v6, the wifi was working OK

Any hint?

Thank you and keep up the good work!
Regards

Eric

RE: framebuffer and wifi not detected

Well, I'm using uboot and haven't tested it with blob/2.6.29 kernel. If yer using 2.6.29, I suspect you are missing the kernel modules. 

wifi problems with the 7-rc1 version

Hello

I still couldn't get the wifi to work.
When unloading/modprobing libertas_spi modules, I got different errors like:
if_spi_c2h_cmd "response packet too large"
or:
libertas: command 0x0006 timed out

I also had a lockup twice when unloading the modules

Does anyone else encounter these problems?

I think I also hit a bug with the wifi connection tool (ewoc-z2sid.sh)
I had a SSID in range, which contained spaces, and its name was splitted in the list of the SSIDs available.

I think the bug in at line 55: for LINE in `cat /tmp/ap_list.txt`

maybe the IFS should be changed to ""

Eric

RE: wifi problems with the 7-rc1 version

I haven't seen any problems like that when loading and unloading the modules. The firmware is already in the rootfs so that shouldn't be a problem. Try using the latest kernel and see if it helps. Just untar it as root to the root of your sd card. 

 

3.0.0+ (md5 7bb811ada45152c40faa1688ea80112c / Oct-5-2011)

The bug in ewoc has been around for some time and I had a fix for it, but kept forgetting to include it. I just do everything manually myself. I'll see if I can find the modified version.

does not help

Unfortunately it does not help

I wonder if my unit is faulty...

RE: does not help

It's possible that your unit is faulty, but unlikely since you are able to at least scan for ssid's. Try manually connecting. If your wireless is WPA, use the wpa_passphrase to add your ssid to the wpa_xupplicant config file like this:

wpa_passphrase "yourssid" yourpassphrase > /etc/wpa_supplicant.conf

Then I have a script that connects with wpa supplicant. Run "connect" as root.

If your router uses WEP try the iwconfig utility like this:

iwconfig wlan0 essid "youressid"
iwconfig wlan0 key yourwepkey
dhclient wlan0

 

Thanks for your reply. I

Thanks for your reply.

I flashed using flash29.sh and X starts now.

I still can't connect to wifi.

The wifi configurator, in the previous version, was showing me the SSIDs that were available.

know I have to enter it manually, the dhclient fails.

I tought thar the wireless drivers were binary blobs. Do I need to do anything else?

Thanks again,
Eric

iwlist scan

Just to add that "iwlist scan" shows my SSID

Panel

Hey mozz, have you tried matchbox-panel?

I haven't looked at the entrails, but I tried it and the matchbox launcher on the zipit about a year ago. it runs fine, but it was slower than I'd like, but I'm almost certain that was the fault of the matchbox launcher.

I remember lxpanel on the zipit from about a year ago. I had problems with slowness and have since been running my userlands x-less.

Hows the speed with z2sidx?

I'm playing with z2lite right now and I really like it so far, tiny and snappy, but buildroot doesn't like me and keeps failing.

RE: Panel

I tried matchbox panel a long time ago and didn't really like it. Recently I switched to openbox for window manager and use hotkeys for menu and window switching (recommended by iggykoopa on #zipit) and conky stats on the Desktop with margins set to always show the top few pixels of conky/desktop. It runs pretty well. I need to quit being lazy and do another release. :)

indeed looking forward for

indeed looking forward for the new release :)

new release

Yes Mozzwald a new release would rock! Thanks for all the hard work you have put into this.

Apologies if this is obvious,

Apologies if this is obvious, but how do you switch to a vt in v7? The last release I ran used the ctrl-dpad to switch. I've scoured the comments for each release but have missed any mention of what changed.
Thanks for maintaining this, The zipit is a neat tool.

Virtual Terminals

I have only one VT enabled by default. You can enable some by uncommenting the lines in /etc/inittab. You can switch VT's from the console with Shift+Home and Shift+End. I'm not sure how you map keys to switch vt's in an X keymap.

Just started testing the new

Just started testing the new release, working really great so far. Keep up the good work.

Z2SidX

This is my first experience with Linux, but it certainly is exciting! This release is working great for me, iwconfig, apt-get, pianobar. I haven't found anything that doesn't work right yet. I even installed Java, and jars and applets are working great. I'm now thinking about switching my desktop over to Debian, it's a nice easy going operating system.

One quick issue someone could help me with, can you give some detailed instructions on how to add the caret(^) to the keyboard? I don't even know where to begin solving that one.

Thanks a lot for this

Thanks a lot for this pointer, its all fixed, and now I know how to add any other keys in the future.

Console Keymap

Welcome to the world of Linux!

The caret symbol is currently mapped to ALT-SHIFT Semicolon for the console/command line. You can change this (or any console keymappings) by editing  /etc/keymap and rebooting or running "loadkeys /etc/keymap".

The X keymap is located at /etc/xkeymap.map and it appears that it's not mapped to anything. You can add "asciicircum" after colon for keycode 47 to use the same mapping as the console keymap. Then reload the keymap with "xmodmap /etc/xkeymap.map"

description of keys

Hello,

Could you post a list that we can reference for the x keymap? eg. CTRL+X = close window

Thanks!

PS. This latest build is awesome!

Hotkeys

All the hotkeys can be modified in the matchbox window manager keyboard config file located at ~/.matchbox/kbdconfig

Currently the following keys are mapped:
CTRL-T : rxvt terminal
CTRL-R : Run
CTRL-E : ewoc Wifi config
CTRL-D : Desktop
CTRL-F : Fullscreen
CTRL-N : Next Window
CTRL-P : Previous Window
CTRL-Q : Close
CTRL-M : Lxpanel Menu

The standard X keymap is at /etc/xkeymap.map

thanks! Exactly what I wanted

thanks! Exactly what I wanted to know.

mmcblk0 errors

hi there!
first of all: great stuff!
sadly i have quite some trouble running your images. i tested different memory cards, bit it comes down to ext2 mmcblk0 errors with the beta (it does actually boot into the gui, but many commands don't work like iwconfig etc.), if i run the last release i could start once, and the second start it always somehow blows up. i can send in some real error information, but does this ring a bell?

thanks a lot anyway, and best regards from switzerland

error message

ok i tried again, but still get the same problems during first run, and fails on second boot:
"mmcblk0: error -84 transferring data, sector (many), nr 8, card status 0xe00 (or 0xf00)
end request i/o error, dev mmcblk0, sector (many)
buffer i/o erroron device mmcblk0p1, logical block (many) lost page write due to i/o error on mmcblk0p1

sd card woes

It sounds like you are getting corruption on the sd card after booting up and causes it to not boot properly the next time. I have heard of this problem before, but don't know any specific way to fix it. What kind/size of card are you using? Have you tried any non-sdhc cards? those seems to be more reliable.

Also, you could try the instructions at the link below to format your card.
http://mendel.ugr.es/~ama/tmp/zipit/sd.html

what I've been using so far

what I've been using so far is transcend 2gb micro sd with adapter. i'm certainly going to read through the linked page. updates will follow.

great!

I look forward to testing it!