Custom kernel

Discussion in 'Linux' started by Sarvatt, Apr 7, 2009.

  1. Sarvatt

    Sarvatt

    Joined:
    Oct 26, 2008
    Messages:
    77
    Likes Received:
    0
    WARNING: This is not for 110 models with CFA SSD's!

    Builds are on hold until karmic's kernels start to fall behind on updates or needs patches, I suggest using those for now.


    Hey guys, I've spent alot of time getting a kernel set up just the way I want it for my aspire one and figured I'd share it incase anyone else was interested.

    http://sarvatt.com/downloads/LATEST/

    Based on 2.6.30-rc3 (plus intel-drm-next, wireless, ext4, net-next, acpi, input and ALSA branches updated). I compiled with GCC 4.4 using the gcc-atom branch with intel atom CPU optimizations. KMS enabled by default (Don't forget to add nomodeset to the grub command line!). Changes vs stock 2.6.30-rc3 are available here http://www.sarvatt.com/git/cgit.cgi/linux/log/?h=AA1

    Some notes -
    If you want to test KMS you can grab my package here for jaunty - https://launchpad.net/~sarvatt/+archive/ppa. I recommend using pcie_aspm=force on your boot command line. acerhdf doesn't work with the changes to ACPI thermal stuff in these 2.6.30 kernels as of version 0.4.2, acerfand works fine though.


    Edit: Updated 4-10-09 5:00PM v2.6.30-rc1-atom2
    Edit: Updated 4-10-09 7:07PM v2.6.30-rc1-atom3 - EXT2 built in
    Edit: Updated 4-14-09 9:12PM v2.6.30-rc1-atom5 (AKA 2.6.30-rc2) New build.
    Edit: Updated 4-19-09 12:18AM EST v2.6.30-rc2-atom updated in LATEST. I built more modules into this one including usb modem support and uvcvideo that I stupidly forgot to include :D
    Edit: Updated 4-23-09 3:39PM EST v2.6.30-rc3-atom.
     
    Sarvatt, Apr 7, 2009
    #1
  2. Sarvatt

    dattaway

    Joined:
    Sep 2, 2008
    Messages:
    198
    Likes Received:
    0
    Location:
    Kansas Citeeeeeeeeee, MO
    Good work!

    In a perfect world, all of this would be on Acer's website...linked from the home page.
     
    dattaway, Apr 7, 2009
    #2
  3. Sarvatt

    Sarvatt

    Joined:
    Oct 26, 2008
    Messages:
    77
    Likes Received:
    0
    2.6.30-rc1 build incoming in a bit so you might want to hold off downloading if anyone is, some nice ext3 latency and io scheduler fixes since the last one, as well as ATA-TRIM support for SSD's.

    Edit: Up now
     
    Sarvatt, Apr 8, 2009
    #3
  4. Sarvatt

    radist_serg

    Joined:
    Apr 2, 2009
    Messages:
    6
    Likes Received:
    0
    Sarvatt

    What need I download and install for testing your custom kernel?
    I have AA1 with ssd. Because I have home wifi ad-hoc network with wep, I need install madwifi driver...
    Can I install madwifi driver on your kernel?

    Thank you!
     
    radist_serg, Apr 8, 2009
    #4
  5. Sarvatt

    Sarvatt

    Joined:
    Oct 26, 2008
    Messages:
    77
    Likes Received:
    0
    you have to consider this is using the absolute newest ath5k/mac80211 code base thats a good 4-5 months newer than 2.6.28's that you were using previously if you were using a jaunty or intrepid kernel with backports and there is no comparison to how much better it is now. I just tested it and WEP adhoc to my G1 phone works fine for me using ath5k. I haven't tried building madwifi against it so I'm not positive it will run, but looking at the requirements on the website and it should build fine with how i configured it.
     
    Sarvatt, Apr 8, 2009
    #5
  6. Sarvatt

    radist_serg

    Joined:
    Apr 2, 2009
    Messages:
    6
    Likes Received:
    0
    Sarvatt

    Thanks for your reply!
    I have tested ath5k driver on intrepid and jaunty (beta), but it didn't work good for me (in ad-hoc with wep)

    Well, I'll test newest ath5k driver. But what about my first question? What I need download from http://sarvatt.com/downloads/LATEST/ and install for testing your custom kernel? Only linux-headers and linux-image or something else? (linux-source, patchs etc...)

    Sorry, my english is very bad... and I'm beginner in Linux,,,

    Thank you!
     
    radist_serg, Apr 9, 2009
    #6
  7. Sarvatt

    Sarvatt

    Joined:
    Oct 26, 2008
    Messages:
    77
    Likes Received:
    0
    linux-image and linux-headers should be all you need, sorry I missed that part of your question.
     
    Sarvatt, Apr 9, 2009
    #7
  8. Sarvatt

    LinpusMad

    Joined:
    Dec 3, 2008
    Messages:
    20
    Likes Received:
    0
    Can you install this over Adam's Array Kernel in eeebuntu standard? And what configuring do I need to do?
     
    LinpusMad, Apr 10, 2009
    #8
  9. Sarvatt

    argee

    Joined:
    Sep 27, 2008
    Messages:
    31
    Likes Received:
    0
    I see rc1 is already up.

    My A110L is the early version with same manufacturer's card slots. I'll try your
    kernel in a day or two and let you know how it works.

    I also assume that the kernel works in A150's as well? I have two Ones here,
    a A150 with 160gb drive and 1 gig ram, and an early A110L with half gig
    ram and the 8 gb ssd.

    Of the two, the A110L is by far the most fun. And using Macles* backup
    system, I can play with it and always go back to when I took the snapshot,
    should I bolix something. Lots of fun!
     
    argee, Apr 10, 2009
    #9
  10. Sarvatt

    Sarvatt

    Joined:
    Oct 26, 2008
    Messages:
    77
    Likes Received:
    0
    no idea what adam's array kernel is, but it should work fine on all debian derivative distro's. and yeah it works on AOA150's I'm using a 120gb AOA150 with it :D

    New version about to go up though, all the git changes as of 4:22 PM EST and nls_iso8859-1 and nls_cp437 modules built in because some versions of ubuntu don't load them automatically for fat devices. If you're using an older version just add nls_cp437 and nls_iso8859-1 to /etc/modules if you have any problems.

    Edit: It's up, top post updated.
     
    Sarvatt, Apr 10, 2009
    #10
  11. Sarvatt

    argee

    Joined:
    Sep 27, 2008
    Messages:
    31
    Likes Received:
    0
    Didn't work. Here is what I got:

    Boot from (hd0,0) ext2 c0567cc2-5c92-4153-a5cc-00c14b596b0e
    Starting up ...
    Loading, please wait...
    Gave up waiting for root device. Common problems:
    - Boot args (cat /proc/cmdline)
    - Check rootdelay= (did the system wait long enough?)
    - Check root= (did the system wait for the fight device?)
    - Missing modules (cat /proc/modules ls /dev)
    ALERT! /dev/disk/by-uuid/c0567cc2-5c92-4153-a5cc-00c14b596b0e does not exist. Dropping to a shell!

    Busybox v1.10.2 (Ubuntu 1:1.10.2-2ubuntu7) built-in shell (ash)
    Enter 'help' for a list of built-in commands.

    (initramfs) _

    Couple things I can think of trying, maybe not booting from a
    uuid'd disk etc. Will report.

    argee
     
    argee, Apr 10, 2009
    #11
  12. Sarvatt

    Sarvatt

    Joined:
    Oct 26, 2008
    Messages:
    77
    Likes Received:
    0
    Ahh your rootfs is ext2, I made ext2 a module because I don't use it. add ext2 to /etc/initramfs-tools/modules and run a sudo update-initramfs to fix it for that kernel.

    I'm building a new copy with ext2 built in now, thinking about it alot of people might be using ext2 because of SSDs and I didn't realize ubuntu's makeinitramfs didn't automatically load it. no changes outside of that in the atom3 coming up though. Gotta love having the build system all set up and automated on a VPS so it's no problem :D

    Edit: LATEST updated to -atom3.
     
    Sarvatt, Apr 10, 2009
    #12
  13. Sarvatt

    argee

    Joined:
    Sep 27, 2008
    Messages:
    31
    Likes Received:
    0
    Yes, I am on ext2 ...

    I could not run the update-initramfs, it needs a parameter on option.

    But, I see you have atom-3, so I am going to try that next, and see,
    will report real_soon_now.
     
    argee, Apr 11, 2009
    #13
  14. Sarvatt

    Sarvatt

    Joined:
    Oct 26, 2008
    Messages:
    77
    Likes Received:
    0
    sudo update-initramfs -u would do it :D
     
    Sarvatt, Apr 11, 2009
    #14
  15. Sarvatt

    argee

    Joined:
    Sep 27, 2008
    Messages:
    31
    Likes Received:
    0
    It still does not boot up. Same messages as before.

    I have a question. Where is the module at? It certainly does not exist in the
    regular Ubuntu 9.04 system. I tried (when booted to the Sickboy kernel or one
    of the regular Ubuntu ones) to do a "sudo modprobe ext2" and it says
    FATAL: Module ext2 not found.

    OK, so if Ubuntu doesn't have it, then it has to be supplied by atom3. So I
    went to /lib/modules/2.6.30-rc1-atom3 and looked there and did not see it.

    I had no problem adding "ext2" to the /etc/initramfs-tools/modules file,
    had no problem in running "update-initramfs -u", which said it is doing it
    for the atom3 kernel, being that is the newest in my menu.lst file.

    I am sorry I did not get back on this. I had to go rescue a damsel in distress
    and managed to get my car stuck in deep snow and just got back home. I
    had to wipe the dish antenna feedhorn too to get the Internet up. All is
    good now, home for the evening.

    It occurs to me that if we can get this resolved here, I could *mail* you the
    darn AAO and let you play with it. Sounds like you don't have an A110L,
    particularly the early version with same-brand card slots.

    Or, I may be able to within Ubuntu get it from ext2 to ext3. I am vaguely
    familiar with the method, but perhaps you can enlighten me a little. This
    may do it.

    Running "mount" command says
    /dev/sda1 on / type ext2 (rw,relatime,errors=remount-ro)

    argee
     
    argee, Apr 11, 2009
    #15
  16. Sarvatt

    argee

    Joined:
    Sep 27, 2008
    Messages:
    31
    Likes Received:
    0
    Still no go.

    Here is what I did, so far.
    Tried the ext2 module, as per above, but no luck.

    I took my root file system and changed it to ext3:

    in /etc/fstab I changed the line for the / to be ext3 instead of ext2
    # tune2fs -j /dev/sda1
    in /boot, I renamed my current kernel's initrd.img file to something else.
    i doublechecked with uname -r and it says "2.6.28.9.20040404
    that is sickboy kernel, which works.
    # update-initramfs -c -k 2.6.28.9.20040404
    and verified that the new initrd.img is updated. It was.
    Rebooted into the sickboy kernel.
    System now runs, and verified that "mount" now says its on ext3.

    Then, back to the system, and ran
    #update-initramfs -u
    and verified the atom3 initrd.img is now updated.
    Rebooted, and still ... no luck. But, the error message now
    says
    Boot from (hd0,0) ext3 etc etc.
    Otherwise, same as before.

    argee
     
    argee, Apr 11, 2009
    #16
  17. Sarvatt

    Sarvatt

    Joined:
    Oct 26, 2008
    Messages:
    77
    Likes Received:
    0
    To be honest, I would just try this out if you want to use 2.6.30-rc1 and see if it works as it should first -

    http://kernel.ubuntu.com/~kernel-ppa/ma ... .6.30-rc1/

    -atom3 has no ext2 module because its built into the kernel, same as ubuntu's and most other kernels. you only needed to add ext2 to /etc/initramfs-tools/modules for the -atom and -atom2 ones I released. you may need to add rootfs=ext2 to the default options line in /boot/grub/menu.lst and run a sudo update-grub to update it for the earlier ones but that shouldn't be needed in -atom3. if you want to make update-initramfs update all kernels you can edit /etc/initramfs-tools/update-initramfs.conf and change update_initramfs=yes to update_initramfs=all for future reference.

    What type of device is your root partition out of curiosity? can you send me a dmesg log after booting the stock kernel? It could be a missing a driver needed for your SSD or something for all I know and I'm sorry for the frustration if so! I've been building these for the past 5 months for my own use so I've cut down on alot of stuff that I know I absolutely dont need and have not been trying to make it a general purpose kernel for everyone like the stock kernel is.
     
    Sarvatt, Apr 11, 2009
    #17
  18. Sarvatt

    argee

    Joined:
    Sep 27, 2008
    Messages:
    31
    Likes Received:
    0
    Two kernels boot fine; the stock Ubuntu 9.04 beta and the
    Sickboy 0404 kernel. The 2.6.30 rc1 kernel from the Ubuntu ppa
    boots ... but it totally broke the whole system. All I can say
    is it booted, but X, the desktop a lot of things broke with it.
    I believe is video driver related.

    I don't know if you want me to send the dmesg listings on this
    forum, it may clutter it up too much. If you wish, contact me
    by email. For spam reasons, I do not want to post my email
    address, but there is a way to contact me.

    Go to http://www.xalaska.com (my website) and somewhere on the
    page is a link "email the webmaster." Use that and I can fire
    you the information you want.

    I love the concept of your kernel, and I am determined to hang in
    there ...
     
    argee, Apr 11, 2009
    #18
  19. Sarvatt

    Sarvatt

    Joined:
    Oct 26, 2008
    Messages:
    77
    Likes Received:
    0
    Sure thing, I'm heading there now to send you an email :)

    I have decided to go back to 2.6.29.1 though, because the ec interrupt mode patch http://bugzilla.kernel.org/show_bug.cgi?id=12949 and phc http://www.linux-phc.org/viewtopic.php?f=13&t=2 make a HUGE difference in battery life and unfortunately neither apply to 2.6.30. Also acerhdf doesn't work in 2.6.30 but 0.4.2 of the acerhdf kernel patch works great on 2.6.29.1. PHC lets you undervolt the CPU so it uses less power and it works great on our aspire ones. I'm in the process of setting up the new kernel-package (what I use to build the kernels) that completely changes how things are done right now so it'll be awhile before I can post debs. I have them now but they don't make an initrd and you have to do it manually, gotta work that out before I post them :D
     
    Sarvatt, Apr 11, 2009
    #19
  20. Sarvatt

    asdfvg0000

    Joined:
    Apr 12, 2009
    Messages:
    2
    Likes Received:
    0
    Can't run on ubuntu 9.04 with ext4. :cry:
    On ext4 only show black screen.
     
    asdfvg0000, Apr 12, 2009
    #20
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.