Topic: Kernel 2.6.30 for Ubuntu-Jaunty

These debs are built from this mornings kernel.org development head for C7-M processors.
Today we have 2.6.30-rc1-ce1200v (plus a lot of name mangling by the build system tongue )

Kernel and Header packages here (you have to either type or Copy&Paste this link):

http://www.hp-umpc.com/ce1200v

Use md5sum to test your downloads:

md5sum -c 2.6.30-rc1-ce1200v.md5

Use dpkg to install (the header package is optional - only if you are building things for this kernel):

sudo dpkg -i linux-image-2.6.30-rc1-ce1200v_2.6.30-rc1-ce1200v-10.00.Custom_i386.deb
sudo dpkg -i linux-headers-2.6.30-rc1-ce1200v_2.6.30-rc1-ce1200v-10.00.Custom_i386.deb

You will get two "ok to ignore" messages about symbolic links - that is alright.

The install will put this kernel into the first slot of the "automagic" section of the /boot/grub/menu.lst
file - and may or may not set the command line options as required.

I am using my own first two menu positions, outside of the "automagic" section - -
The bad: I have to maintain them myself
The good: I get to maintain them myself

They look like this today:

# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

title           Ubuntu jaunty - kernel 2.6.30-rc1-ce1200v
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.30-rc1-ce1200v root=/dev/sda1 ro quiet splash
initrd          /boot/initrd.img-2.6.30-rc1-ce1200v
quiet

title           Ubuntu jaunty (development branch), kernel 2.6.28-11-generic
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.28-11-generic root=/dev/sda1 irqpoll ro quiet splash
initrd          /boot/initrd.img-2.6.28-11-generic
quiet

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

At this time, with the 9.04-beta changing almost hourly - I recommend that you do the same -
otherwise your default kernel may be who-knows-what after the next update.  wink

01/01/10 >> End of an era, no more Jabber at cb-chat.com

Re: Kernel 2.6.30 for Ubuntu-Jaunty

A few quick checks tells me:
CX700-openchrome driver - still working;
webcam - works in cheese;
sound - works if you turn up the master volume control
suspend - (suspend to ram) works;
hibernate - (suspend to disk) not yet checked.
via-rng - loads and works
padlock-aes - loads and works
padlock-sha - loads and works

= = = =

Wifi - you got me - somebody who knows Wifi post what is happening here (it should "just work").

01/01/10 >> End of an era, no more Jabber at cb-chat.com

Re: Kernel 2.6.30 for Ubuntu-Jaunty

The AppArmor module is not included - oops.
But don't hold your breath - it is not in the mainstream kernel.

- - - -

Does anyone even use that feature on a tiny netbook???

- - - -

The machine just completed a 133 package dist-upgrade -
Well, not sure about that - the foolish dist-upgrade scripting updated the initrd for 2.6.30 with
modules for 2.6.28 - luckly, they will not load (because the versions don't match).

Looks like I had better "pin" the initrd against such changes - or learn to run the distro kernel
when doing apt-get dist-upgrade.  tongue

01/01/10 >> End of an era, no more Jabber at cb-chat.com

Re: Kernel 2.6.30 for Ubuntu-Jaunty

Have had two reports now that the Broadcom driver in the mainstream kernel isn't working (yet).
So the HP-2133 machines are not yet supported for Wifi.

Will try to fix that RSN by building the Broadcom wl, closed source driver for 2.6.30-xx.
Thank goodness for small favors, Broadcom changed their license, the driver can now be re-distributed.

= = = =

Just for those who might not be able to find it:
http://www.broadcom.com/support/802.11/linux_sta.php

01/01/10 >> End of an era, no more Jabber at cb-chat.com

Re: Kernel 2.6.30 for Ubuntu-Jaunty

The AppArmor question - -
It is a Novell patch-in product - -
The newest in the novell public repository is for 2.6.26 -
The newest in the ubuntu-jaunty repository is for 2.6.28 -
- - - -
I don't use it myself and can't think of anything that would justify messing up the kernel with it, so -

update-rc.d -f apparmor remove

Now it will never be started, hence it doesn't generate a "missing module" message on kernel boot for 2.6.30
Note: the above only effects the runlevel initialization links - the apparmor package is still installed.

01/01/10 >> End of an era, no more Jabber at cb-chat.com

Re: Kernel 2.6.30 for Ubuntu-Jaunty

Confirmed:  The 2.6.30-rc1 kernel does not require the "irqpoll" on the kernel command line - that's fixed now.
= = = =
Or at least the way I built it - its fixed.

01/01/10 >> End of an era, no more Jabber at cb-chat.com

Re: Kernel 2.6.30 for Ubuntu-Jaunty

Cleaned up a few things - diddled with hibernate for awhile:

ACPI: Preparing to enter system sleep state S4
PM: Saving platform NVS memory
PM: Creating hibernation image:

- - - snip - - -

PM: Restoring platform NVS memory
ACPI: Waking up from system sleep state S4

- - - snip - - -

PM: Image restored successfully.
Restarting tasks ... done.

Mark that one off the to-check list, hibernation (A.K.A: suspend to disk) works.

Note:
Earlier kernels just used the first (or only) swap partition - this one, you have to tell it
which swap partition to use, even if you only have one.  wink

If your disk layout is the same as at the head of this thread, then make your kernel command line like:

kernel          /boot/vmlinuz-2.6.30-rc1-ce1200v root=/dev/sda1 resume=/dev/sda2 ro quiet splash
01/01/10 >> End of an era, no more Jabber at cb-chat.com

Re: Kernel 2.6.30 for Ubuntu-Jaunty

mikez wrote:

I am using my own first two menu positions, outside of the "automagic" section - -
The bad: I have to maintain them myself
The good: I get to maintain them myself

They look like this today:

# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

title           Ubuntu jaunty - kernel 2.6.30-rc1-ce1200v
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.30-rc1-ce1200v root=/dev/sda1 resume=/dev/sda2 ro quiet splash
initrd          /boot/initrd.img-2.6.30-rc1-ce1200v
quiet

title           Ubuntu jaunty (development branch), kernel 2.6.28-11-generic
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.28-11-generic root=/dev/sda1 irqpoll ro quiet splash
initrd          /boot/initrd.img-2.6.28-11-generic
quiet

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

At this time, with the 9.04-beta changing almost hourly - I recommend that you do the same -
otherwise your default kernel may be who-knows-what after the next update.  wink

There are a couple of gotchas in the Ubuntu update scripting - -
My workarounds for now:

If asked about changing /boot/grub/menu.lst -
Select: "Keep installed version"

If the update calls the initrd updater - it is going to get the *wrong* kernel initrd.img file -
(The scripting updates the image file shown by the package management as "most recently installed" ) -
You can get them **all** corrected by:

update-initramfs -k all -u

Might take awhile, but it is a certain to "get everything right" - -
This will work around the Ubuntu dist-upgrade's tendency to stuff updated modules for 2.6.28 into 2.6.30 wink

01/01/10 >> End of an era, no more Jabber at cb-chat.com

Re: Kernel 2.6.30 for Ubuntu-Jaunty

For 2.6.30-rc1-ce1200vd (yeah, there is a v, va ... vd now - in my build system, not posted):

Wake from Sleep (suspend to ram) to desktop restored: 7 seconds
Wake from Hibernate (suspend to disk) to desktop restored: 65 seconds (using stock "too slow" disk drive)
- - - -
Those numbers are for the stock Jaunty (slow boot) distribution - not any of the "instant on" specials.
I am sure those numbers will improve as I get things a bit more refined.

01/01/10 >> End of an era, no more Jabber at cb-chat.com

Re: Kernel 2.6.30 for Ubuntu-Jaunty

For 2.6.30-rc1-cd1200ve - -
Wake from Hibernate (suspend to Class-6 SDHC card): 107 seconds.
- - - -
EDIT:  For comparison: Cold boot from the "too slow" disk: 77 seconds.
- - - -
Ah, but the possibilities.  Stand aside Gdium.
This Ubuntu-Jaunty has a "laptop mode" set of scripting - it just needs a "netbook mode" set of scripts.  hmm

Last edited by mikez (2009-04-14 5:29:27 am)

01/01/10 >> End of an era, no more Jabber at cb-chat.com

Re: Kernel 2.6.30 for Ubuntu-Jaunty

After having a night's sleep on the Wifid problem - -
see: http://forum.netbookuser.com/viewtopic. … 6714#p6714 and the following posts - -

The kernel already supports platform-specific, function-key drivers -
I will try to "clone" one of those for the Cloudbook - it may only handle the Wifi key but better than "rolling my own" solution.

01/01/10 >> End of an era, no more Jabber at cb-chat.com

Re: Kernel 2.6.30 for Ubuntu-Jaunty

The kernel.org repository now has 2.6.30-rc2 tagged - -
Will post packages of it tomorrow if anything interesting has changed.

EDIT:
I will post 2.6.30-rc2 packages - not so much for changes made to the
kernel - more in the nature of "progress notes" - -
(No driver coded and built yet for the Wifi key.)

Last edited by mikez (2009-04-16 4:47:32 am)

01/01/10 >> End of an era, no more Jabber at cb-chat.com

Re: Kernel 2.6.30 for Ubuntu-Jaunty

The packages for the kernel.org development head of this morning is up as 2.6.30-rc2-ce1200v
The directions remain similar to those of the first post in this thread.

The major changes are in the configuration - it has become more Cloudbook specific - in general,
any hardware built into the machine has drivers built into the kernel (which makes it faster to boot, among other things).

Still no power on/off control to the Wifi card - I am still working on those bits (pun intended).

Your /boot/grub/menu.lst file might look like this after you edit for this kernel install:

# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

title           Ubuntu jaunty - kernel 2.6.30-rc2-ce1200v
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.30-rc2-ce1200v root=/dev/sda1 resume=/dev/sda2 ro quiet splash
initrd          /boot/initrd.img-2.6.30-rc2-ce1200v
quiet

title           Ubuntu jaunty (development branch), kernel 2.6.28-11-generic
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.28-11-generic root=/dev/sda1 resume=/dev/sda2 irqpoll ro quiet splash
initrd          /boot/initrd.img-2.6.28-11-generic
quiet

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

Of note with this kernel - the "initrd  . . ." line is not required to run the machine.
You can check that by using the GRUB menu editor at boot-time to just delete that line.

I don't intend that this kernel be used without that line (not yet) - but it just goes to show
that we can now replace the early user space image (and Ubuntu scripting) with something
more suited to our little machine.  I.E: the beginnings of a "Fast Boot" kernel.  wink

01/01/10 >> End of an era, no more Jabber at cb-chat.com

Re: Kernel 2.6.30 for Ubuntu-Jaunty

Using a slightly refined version of yesterday's 2.6.30-rc2-ce1200v (-1200v.a) - - -
Plus a custom early user-space initial ramFS image (that thing on the "initrd ..." line of the boot menu) - - -
= = = =
Cold boot time - from the "too slow" hard disk drive to usable command shell - all hardware initialized - -
* * 9 seconds * *  Who said this machine was *slow to boot*?
That is a cold boot from the hdd  **not** a resume from 'sleep' (resume from suspend to ram)!
= = = =
That is a usable command shell in a memory resident file system space (external media recognized, ready
to be mounted if required) - - using about 6Mbytes of RAM.
= = = =
Now - if only I could turn on the power to the Wifi card - time to get back to that part of the project.

01/01/10 >> End of an era, no more Jabber at cb-chat.com

Re: Kernel 2.6.30 for Ubuntu-Jaunty

The packages for 2.6.30-rc3 are now posted - - - Same old place:

http://hp-umpc.com/ce1200v/

  <<-- you have to cut&paste that link - it does not "click".
The directions remain the same as the first post in this thread, only the names have changed.

Of note: The folks at kernel.org found and fixed a bug in "hibernate" - -
I am seeing a 57 second "wake-up time" from a Class 6 SDHC card (slower than the "too slow" hard drive).
Wake-up from "sleep" (A.K.A: suspend to ram) is still running under 7 seconds.

Now, back to the wifid replacement.  wink

Last edited by mikez (2009-04-23 9:08:52 am)

01/01/10 >> End of an era, no more Jabber at cb-chat.com

Re: Kernel 2.6.30 for Ubuntu-Jaunty

Mikez, I installed your most recent kernel build on my Sylvania G.. any reason you can think of why I can't move the mouse cursor with the touchpad? This isn't a cpufreq lockup, since the keyboard works fine and I using the cpulock.sh script to reset my scaling values. I also updated my initrd as you recommended.

-Amin

Re: Kernel 2.6.30 for Ubuntu-Jaunty

Thanks for checking it for me.
Without people trying it, it can never be better than "works for me".  hmm

We know that the Sylvania G is *very similar* - but no idea if it is *exactly the same*.
Could you post your /var/log/dmesg file?
If you don't have a place to post it - PM me, I'll give you an e-mail address to use.

01/01/10 >> End of an era, no more Jabber at cb-chat.com

Re: Kernel 2.6.30 for Ubuntu-Jaunty

Here you go:
https://ryoka.aminastaneh.net/dmesg-2.6 … e1200v.txt
Thanks for taking a look at it.

-Amin

Re: Kernel 2.6.30 for Ubuntu-Jaunty

Noting jumps out and strikes me between the eyes - - I kept a copy for more careful reading.

You can enable "hibernate" (suspend to disk) if you want to:

Your current kernel command line:

Kernel command line: root=UUID=060c7171-f08e-4565-bb52-f6de288c0cb3 ro quiet splash 

The attempt to wake from hibernate:

PM: Starting manual resume from disk
PM: Resume from partition 8:5
PM: Checking hibernation image.
PM: Resume from disk failed.

Partition 8:5 is also known as your swap file:

Adding 1253028k swap on /dev/sda5.  Priority:-1 extents:1 across:1253028k 

So if you make your kernel command line look like:

Kernel command line: root=UUID=060c7171-f08e-4565-bb52-f6de288c0cb3 ro resume=/dev/sda5 quiet splash 

Then your Hibernate (suspend to disk) will work.
But that is optional, not part of your problem.

01/01/10 >> End of an era, no more Jabber at cb-chat.com

Re: Kernel 2.6.30 for Ubuntu-Jaunty

Ah, so - my touch pad does not work either!
I have been using an external mouse and never noticed the problem.  tongue

Here is how I came to that conclusion:

sudo dmesg -c
sudo modprobe evbug
sudo dmesg

If you don't touch anything (I am using an ssh connection to the machine, so I "don't touch anything"):

evbug.c: Connected device: input0 (Power Button (FF) at LNXPWRBN/button/input0)
evbug.c: Connected device: input1 (Power Button (CM) at PNP0C0C/button/input0)
evbug.c: Connected device: input2 (Lid Switch at PNP0C0D/button/input0)
evbug.c: Connected device: input3 (Video Bus at /video/input0)
evbug.c: Connected device: input4 (AT Translated Set 2 keyboard at isa0060/serio0/input0)
evbug.c: Connected device: input5 (USB2.0 Camera at usb-0000:00:10.4-5/button)
evbug.c: Connected device: input6 (HID 04d9:048e at usb-0000:00:10.0-2/input0)

The input-6 HID device is my external mouse -
The internal touch-pad does not show up (I probably left the touchpad driver out) -
I will check on that.

Note: You don't want to leave evbug loaded very long - it is very "chatty" and will fill you log file up.  wink

01/01/10 >> End of an era, no more Jabber at cb-chat.com

Re: Kernel 2.6.30 for Ubuntu-Jaunty

Found the problem, should have a corrected -rc3 package up in about an hour (1/2 hour for build, 1/2 hour for lazy).
_OR_ the kernel.org developers should have a -rc4 up in another day or two.
(I had to edit the kernel build files to get the synaptics driver to build, someone had marked it: "embedded only").  hmm

01/01/10 >> End of an era, no more Jabber at cb-chat.com

Re: Kernel 2.6.30 for Ubuntu-Jaunty

Mikez,

I would recommend running on that kernel for a while and see if you get an eventual hard lockup, because I do(observed this 3x+). I looked through the messages file and the last entry before a lockup is CPU scaling due to temp. Do you compile thermal as a module? If you don't, maybe you should, due to this clue here:
http://markmail.org/message/s4ud6mkupvb … te:results

Perhaps disabling the thermal scaling feature altogether could coax a better response. Thanks for building the kernels for us!

-Amin

Re: Kernel 2.6.30 for Ubuntu-Jaunty

That is a very, very, old post - on 2.6.27

You can find the tuning knobs for cpufreq/power here:

ls /sys/devices/system/cpu/cpu0/*

The "thermal" module is described here:
linux-<version>/Documentation/thermal/sysfs-api.txt

You can find the tuning knobs for thermal here:

ls /sys/class/thermal/*

That is on kernel:

Linux cb01 2.6.30-rc3-ce1200v-09119 #1 PREEMPT Wed Apr 29 17:01:10 UTC 2009 i686 GNU/Linux

So it got built this time (as did the touchpad driver) - now posted in the usual place.
(Also the joy stick driver - but I'll whack that turkey later.)

I am making the power control to the Wifi card my #1 priority at the moment - but if you discover anything
about the cpufreq/power/thermal controls, let us know.

01/01/10 >> End of an era, no more Jabber at cb-chat.com

Re: Kernel 2.6.30 for Ubuntu-Jaunty

Loaded the new kernel.. Here's what I've seen:

* Confirmed the touchpad operating as it should.
* Wifi reception.. are you sure this is rtl8187? (j/k) The reception is worlds better!
* No Cpufreq problems (with the lockcpu.sh script). No thermal lockup just yet, I attempted to disable it by:

echo -n "disabled" > /sys/class/thermal/thermal_zone0/mode

* Faster boot time (especially in comparison to Hardy Heron)

Wow.. is the cloudbook actually **usable** now with this kernel release? Mikez, from one open-source contributor to another, you rock!

Re: Kernel 2.6.30 for Ubuntu-Jaunty

Hmm.. I'm still getting occasional hard locks, sadly. My above attempts at the /sys filesystem to disable thermal scaling didn't work..

I read over the docs for thermal.. I can only set mode and I haven't seen any difference. I got cpufreq in the bag.

Any insights? I don't really see a way to disable it..