Custom kernel

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

  1. Sarvatt

    Sarvatt

    Joined:
    Oct 26, 2008
    Messages:
    77
    Likes Received:
    0
    You have to boot with nomodeset on the grub command line unless you're using a KMS aware xserver-xorg-video-intel/libdrm or else you get a black screen because there are no framebuffer drivers outside of the DRM framebuffer. Including a framebuffer driver makes KMS stop working whereas you can just pass nomodeset on the boot options and have it run fine with the old userspace mode setting.

    New kernel added to the first post if anyone wants to use it.
     
    Sarvatt, Apr 12, 2009
    #21
  2. Sarvatt

    asdfvg0000

    Joined:
    Apr 12, 2009
    Messages:
    2
    Likes Received:
    0
    Code:
    Boot from (hd0,0) ext4 c13c8250-ff18-4fed-9edd-58f1bb01f6e8
    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/c13c8250-ff18-4fed-9edd-58f1bb01f6e8 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) _
    
    
    How to fix it :?:
     
    asdfvg0000, Apr 12, 2009
    #22
  3. Sarvatt

    Sarvatt

    Joined:
    Oct 26, 2008
    Messages:
    77
    Likes Received:
    0
    I don't know exactly what is wrong, what happens if you just type exit at the busybox prompt? Let me guess, you're on a SSD model too? :) It could be a side effect of the AHCI quirk not letting your secondary PATA CFA SSD initalize right. Was that on 2.6.30 or 2.6.29.1?
     
    Sarvatt, Apr 12, 2009
    #23
  4. Sarvatt

    argee

    Joined:
    Sep 27, 2008
    Messages:
    31
    Likes Received:
    0
    Are you using the solid state SSD version (A110L) or the hard disk version (A150L)?

    I am using the A110L and get the same results you do. Sarvatt and I are working to
    resolve it. Probably a trivial thing, but elusive.

    --argee
     
    argee, Apr 12, 2009
    #24
  5. Sarvatt

    Sarvatt

    Joined:
    Oct 26, 2008
    Messages:
    77
    Likes Received:
    0
    Has anyone else gotten any of these kernels working? What I'm thinking is it might be the fact that I have all the dev scripts installed so it makes the initrd fine for me (kernel-package uses mkinitramfs/mkinitramfs-kpkg instead of initramfs-tools' update-initramfs) but its having problems for other people. Also there have been alot of updates to grub/initramfs-tools to jaunty in the past few days and some people are having this problem even with the stock kernels

    http://ubuntu-virginia.ubuntuforums.org ... ?t=1120858

    Only thing I can think of that hasn't been tried is to try adding rootwait to the grub command line. If anything I can just start providing tarballs of the patched source and a script so people can build it themselves. kernel-package is really easy to use and nice for building deb's of kernels on faster machines to use on slower ones. I did a diff of my config vs sickboy's that works for people with SSD's but dont see what could be causing it outside of me having the AHCI patch and me using async scsi init instead of syncronous to speed up boot times. I tried using tuxonice but it completely screwed up my machine, even making my other kernels not boot properly until I pulled the battery. Anyway, sorry about the trouble!
     
    Sarvatt, Apr 12, 2009
    #25
  6. Sarvatt

    Sarvatt

    Joined:
    Oct 26, 2008
    Messages:
    77
    Likes Received:
    0
    Well, looking at the dmsg logs I'm pretty convinced its just the AHCI patch not working for the SSD's. I didn't realize the SSDs in the 110 modules were just ATA emulating compact flash modules and not really SATA drives in the first place. There might be a way to use enable the old IDE and have it use those over sata modules but I don't have a clue about that and don't have anything I could test it with. The AHCI patch is major to me and not something I'd be willing to drop to release it so I'll put a warning in the top post that this is not for 110 models.
     
    Sarvatt, Apr 13, 2009
    #26
  7. Sarvatt

    Sarvatt

    Joined:
    Oct 26, 2008
    Messages:
    77
    Likes Received:
    0
    Updated LATEST in the top post.
     
    Sarvatt, Apr 15, 2009
    #27
  8. Sarvatt

    jango

    Joined:
    Aug 2, 2008
    Messages:
    307
    Likes Received:
    0
    So..., this kernels dont work on 110L models? Is that correct?

    Thanks
     
    jango, Apr 15, 2009
    #28
  9. Sarvatt

    Sarvatt

    Joined:
    Oct 26, 2008
    Messages:
    77
    Likes Received:
    0
    Didn't work for 2 people so I put the warning, it doesn't hurt anything to try it though :)
     
    Sarvatt, Apr 15, 2009
    #29
  10. Sarvatt

    jango

    Joined:
    Aug 2, 2008
    Messages:
    307
    Likes Received:
    0
    ok thanks
     
    jango, Apr 15, 2009
    #30
  11. Sarvatt

    baldric_deleted

    Joined:
    Apr 13, 2009
    Messages:
    11
    Likes Received:
    0
    Hi

    Have you managed to get sony memory sticks working with your kernel (assuming that you load the appropriate modules of course)?
     
    baldric_deleted, Apr 15, 2009
    #31
  12. Sarvatt

    Sarvatt

    Joined:
    Oct 26, 2008
    Messages:
    77
    Likes Received:
    0
    yep, memory sticks are working fine, just threw in a 4GB to test. the modules should be autoloaded by udev when ya plug it in.

    Apr 15 17:50:50 ubuntu-9 kernel: [ 2774.620492] pci 0000:01:00.0: reg 10 32bit mmio: [0x000000-0x0000ff]
    Apr 15 17:50:50 ubuntu-9 kernel: [ 2774.620750] pci 0000:01:00.2: reg 10 32bit mmio: [0x000000-0x0000ff]
    Apr 15 17:50:50 ubuntu-9 kernel: [ 2774.620994] pci 0000:01:00.3: reg 10 32bit mmio: [0x000000-0x0000ff]
    Apr 15 17:50:50 ubuntu-9 kernel: [ 2774.621237] pci 0000:01:00.4: reg 10 32bit mmio: [0x000000-0x0000ff]
    Apr 15 17:50:50 ubuntu-9 kernel: [ 2774.641045] decode_hpp: Could not get hotplug parameters. Use defaults
    Apr 15 17:50:50 ubuntu-9 kernel: [ 2774.641272] sdhci-pci 0000:01:00.0: SDHCI controller found [197b:2382] (rev 0)
    Apr 15 17:50:50 ubuntu-9 kernel: [ 2774.641295] sdhci-pci 0000:01:00.0: enabling device (0000 -> 0002)
    Apr 15 17:50:50 ubuntu-9 kernel: [ 2774.641314] sdhci-pci 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
    Apr 15 17:50:50 ubuntu-9 kernel: [ 2774.641684] sdhci-pci 0000:01:00.0: setting latency timer to 64
    Apr 15 17:50:50 ubuntu-9 kernel: [ 2774.641793] Registered led device: mmc1::
    Apr 15 17:50:50 ubuntu-9 kernel: [ 2774.641869] mmc1: SDHCI controller on PCI [0000:01:00.0] using ADMA
    Apr 15 17:50:50 ubuntu-9 kernel: [ 2774.642145] sdhci-pci 0000:01:00.2: SDHCI controller found [197b:2381] (rev 0)
    Apr 15 17:50:50 ubuntu-9 kernel: [ 2774.642169] sdhci-pci 0000:01:00.2: enabling device (0000 -> 0002)
    Apr 15 17:50:50 ubuntu-9 kernel: [ 2774.642190] sdhci-pci 0000:01:00.2: PCI INT A -> GSI 16 (level, low) -> IRQ 16
    Apr 15 17:50:50 ubuntu-9 kernel: [ 2774.642212] sdhci-pci 0000:01:00.2: Refusing to bind to secondary interface.
    Apr 15 17:50:50 ubuntu-9 kernel: [ 2774.642225] sdhci-pci 0000:01:00.2: PCI INT A disabled
    Apr 15 17:50:50 ubuntu-9 kernel: [ 2774.642486] jmb38x_ms 0000:01:00.3: enabling device (0000 -> 0002)
    Apr 15 17:50:50 ubuntu-9 kernel: [ 2774.642504] jmb38x_ms 0000:01:00.3: PCI INT A -> GSI 16 (level, low) -> IRQ 16
    Apr 15 17:50:50 ubuntu-9 kernel: [ 2774.642561] jmb38x_ms 0000:01:00.3: setting latency timer to 64
    Apr 15 17:50:51 ubuntu-9 kernel: [ 2775.010254] memstick1: switching to 4-bit parallel mode
    Apr 15 17:50:51 ubuntu-9 kernel: [ 2775.010327] memstick1: switching to 8-bit parallel mode
    Apr 15 17:50:51 ubuntu-9 kernel: [ 2775.010443] memstick1: interface error, trying to fall back to serial
    Apr 15 17:50:51 ubuntu-9 kernel: [ 2775.210277] memstick1: switching to 4-bit parallel mode
    Apr 15 17:50:51 ubuntu-9 kernel: [ 2775.212259] mspblk0: p1
    Apr 15 17:51:01 ubuntu-9 hald: mounted /dev/mspblk0p1 on behalf of uid 1000

    robert@ubuntu-9:/media$ ls /media/PSP
    150.PBP cheat.db comics ISO MEMSTICK.IND MP_ROOT MSTK_PRO.IND MUSIC nand_updater_loaded.bin PICTURE PSP seplugins VIDEO
     
    Sarvatt, Apr 15, 2009
    #32
  13. Sarvatt

    Skumpic

    Joined:
    Dec 4, 2008
    Messages:
    7
    Likes Received:
    0
    Hi and thanks you for your great work.

    I would like to recompile my own kernel starting from your work (i need to build some differents modules), so can you been so kind to tell me if is sufficient to install a "standard" version of gcc 4.4 from ubuntu ppa's in order to get a version of the compiler optimized for atom cpus or if i have also to download and compile gcc from a "special" branch in order to get it?

    Thanks in advance
    Skumpic
     
    Skumpic, Apr 16, 2009
    #33
  14. Sarvatt

    Sarvatt

    Joined:
    Oct 26, 2008
    Messages:
    77
    Likes Received:
    0
    Sarvatt, Apr 16, 2009
    #34
  15. Sarvatt

    SlCKB0Y

    Joined:
    Sep 13, 2008
    Messages:
    165
    Likes Received:
    0
    Location:
    Sydney, Australia
    Really? now thats impressive.
    What sort of powersaving config stuff are you running? Just the stuff found in the Wiki?

    With my kernel, unr 9.04 and all the power saving stuff from the wiki i was hovering around 8.4W
    I have swapped my wifi card for a intel 3945abg and with power saving enabled on this i was getting around 7.7W!! Only problem is with any amount of usage it causes a system lockup and its driving me mad :(

    Now we have pretty much all the hardware working great, power consumption urgently need to be addressed and its good to see you focusing on this.

    I dont suppose your kernel has the iwl3945 module in it does it? I wanted to test your kernel but need my wifi!
     
    SlCKB0Y, Apr 16, 2009
    #35
  16. Sarvatt

    Skumpic

    Joined:
    Dec 4, 2008
    Messages:
    7
    Likes Received:
    0
    Thanks Sarvatt!!
    I will do it later this afternoon. How long it will take to compile gcc from source? I read somewhere it will take up to 7 hours!!!

    And then please can you clarify me another point: i saw that you compiled your kernel with acpiphp module built in (CONFIG_HOTPLUG_PCI=y).
    I have one of the first aspire 110L (the one with both reader from Jmicron) and i already tried to use acpiphp to enable hotplug in past without success (kernel 2.6.27-2.6.28). Is something changed in this months? Is there any special string that should be passed to grub in order to enable hotplug with acpiphp ? or i still use the "pciehp force" string ?

    Thanks in advance for your kindness
    Skumpic
     
    Skumpic, Apr 16, 2009
    #36
  17. Sarvatt

    Sarvatt

    Joined:
    Oct 26, 2008
    Messages:
    77
    Likes Received:
    0
    nothing special needed for acpihp, just an up to date bios possibly. they've pretty much merged acpihp and pciehp now and both do the same thing, pciehp doesn't even get loaded unless you force it. I think it took around 3 hours to compile GCC on a quad amd but it was on my VPS so it's shared. watch out though, compiling a new GCC without screwing up your system is a fun exercise :) you may want to do it in a virtual machine or something.

    I think the only wifi I left out on purpose was ralinks because they dont compile cleanly (STILL.. :lol: ) If you need an option changed on the iwl3945 module let me know and I'll change it for the next release. I dont have one and just used the default options for all the cards except my broadcom.


    nothing found in the wiki, its all outdated. I just remove most of the daemons running (even though that removes ubuntu-desktop metapackage) and lower the txpower on my wifi card to 5dBm. I also use the gateway 3103 bios, aka acer's 3309 without the backlight restrictions so yes I get backlight flickering at the lowest setting.

    my rc.local
    #lowers touchpad to 250 wakeups/second instead of 500
    for I in `ls /sys/devices/platform/i8042/*/rate` ; do
    echo -n 20 > $I
    done
    echo 1 > /sys/devices/system/cpu/sched_smt_power_savings
    #sata depends on the AHCI patch I use
    echo "min_power" > /sys/class/scsi_host/host0/link_power_management_policy
    echo "min_power" > /sys/class/scsi_host/host1/link_power_management_policy
    echo "min_power" > /sys/class/scsi_host/host2/link_power_management_policy
    echo "min_power" > /sys/class/scsi_host/host3/link_power_management_policy
    #for acerhdf 0.4.2 to switch to kernel mode
    echo "kernel" > /sys/class/thermal/thermal_zone0/mode
    echo 10 > /sys/block/sda/queue/iosched/read_batch_expire
    echo 10 > /sys/block/sda/queue/iosched/read_expire
    exit 0

    In PHCTray I have both processors undervolted to 22 18 15 15. on the kernel command line I boot with pcie_aspm=force and hda agressive powersavings is set to 5 second timeout in the kernel.

    my blacklist-local.conf
    blacklist wl
    blacklist ppdev
    blacklist lp
    blacklist pcspkr
    blacklist ohci1394
    blacklist ieee1394
    blacklist joydev
    blacklist serio_raw
    blacklist parport
    blacklist acer_wmi
    blacklist iTCO_wdt
    blacklist sg

    /etc/acpi/battery.d/60-network.sh
    #! /bin/sh
    iwconfig wlan0 power on
    iwconfig wlan0 txpower 5dBm

    /etc/acpi/ac.d/60-network.sh
    #! /bin/sh
    iwconfig wlan0 txpower 20
    iwconfig wlan0 power off


    my /etc/acpi/battery.d/40-modules.sh (i throw in lots of stuff incase I'm on other kernels)
    /sbin/modprobe -r ohci1394
    /sbin/modprobe -r ieee1394
    /sbin/modprobe -r uvcvideo
    /sbin/modprobe -r lp
    /sbin/modprobe -r ppdev
    /sbin/modprobe -r parport
    /sbin/modprobe -r r8169
    /sbin/modprobe -r v4l1_compat
    /sbin/modprobe -r iTCO_vendor_support
    /sbin/modprobe -r iTCO_wdt
    /sbin/modprobe -r serio_raw
    /sbin/modprobe -r snd_hwdep
    /sbin/modprobe -r snd_seq_midi
    /sbin/modprobe -r snd_seq_midi_event
    /sbin/modprobe -r snd_seq
    /sbin/modprobe -r jmb38x_ms
    /sbin/modprobe -r memstick

    my /etc/acpi/ac.d/40-modules.sh
    /sbin/modprobe uvcvideo
    /sbin/modprobe r8169
    /sbin/modprobe jmb38x_ms
    /sbin/modprobe memstick

    and I've done alot of things to the laptop-mode scripts that werent enabled by default. I'm probably forgetting something :D
     
    Sarvatt, Apr 16, 2009
    #37
  18. Sarvatt

    baldric_deleted

    Joined:
    Apr 13, 2009
    Messages:
    11
    Likes Received:
    0
    Hmmm. Sorry - but doesn't work for me.

    I've just upgraded my BIOS to 3309 and am using your kernel (with acpihp built in). RHS card reader doesn't work at all (and neither does the webcam, but then you aren't loading the video module as is used in the default ubuntu build). Using the earlier builds I get the RHS card reader working with the pciehp module (but no memory stick - bah!) . I'll play around more tomorrow to ensure I'm not doing something wrong.

    ------- some config

    uname -a
    Linux acer 2.6.30-rc1-atom3 #1 SMP Fri Apr 10 18:49:49 EDT 2009 i686 GNU/Linux
    me@acer:~$ lsmod

    Module Size Used by
    binfmt_misc 6816 1
    sco 8688 2
    bnep 10260 2
    l2cap 17856 3 bnep
    bluetooth 42272 5 sco,bnep,l2cap
    joydev 8336 0
    snd_hda_codec_realtek 176520 1
    snd_hda_intel 22584 3
    snd_hda_codec 53416 2 snd_hda_codec_realtek,snd_hda_intel
    snd_hwdep 5512 1 snd_hda_codec
    snd_pcm 54072 2 snd_hda_intel,snd_hda_codec
    snd_seq_midi 5472 0
    snd_rawmidi 15284 1 snd_seq_midi
    snd_seq_midi_event 5228 1 snd_seq_midi
    snd_seq 39956 2 snd_seq_midi,snd_seq_midi_event
    mspro_block 12712 0
    snd_timer 15864 2 snd_pcm,snd_seq
    snd_seq_device 5396 3 snd_seq_midi,snd_rawmidi,snd_seq
    psmouse 20360 0
    mousedev 10144 0
    ath5k 102148 0
    snd 37936 15 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
    iTCO_wdt 9720 0
    jmb38x_ms 7652 0
    memstick 7492 2 mspro_block,jmb38x_ms
    soundcore 1164 1 snd
    snd_page_alloc 7220 2 snd_hda_intel,snd_pcm
    sg 17316 0
    usbhid 30024 0
    r8169 26292 0
    thermal 12472 0

    ------- end
     
    baldric_deleted, Apr 17, 2009
    #38
  19. Sarvatt

    Sarvatt

    Joined:
    Oct 26, 2008
    Messages:
    77
    Likes Received:
    0
    Wait, you have it booting on an AOA110 or am I mistaken? Thank you for pointing out the thing about uvcvideo though, what a bonehead move! I disabled it by accident when I was removing some DVB interfaces. I've got another build building right now that fixes that based of pre -rc3 with updated i915 and wireless trees merged. I'm at a loss why memory sticks arent working for you though, maybe try adding

    options sdhci debug_quirks=1
    to /etc/modprobe.d/sdhci.conf to see if it helps.
     
    Sarvatt, Apr 18, 2009
    #39
  20. Sarvatt

    baldric_deleted

    Joined:
    Apr 13, 2009
    Messages:
    11
    Likes Received:
    0
    No - it's a 150 (model ZG5). I'll give your suggestion a go and get back to you later.

    Thanks
     
    baldric_deleted, Apr 18, 2009
    #40
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.