/srv/irclogs.ubuntu.com/2005/12/06/#ubuntu-boot.txt

Keybukinteresting12:02
Keybukdo you have a /proc/ide ?12:02
Nafalloyes, with "drivers ide0 hda ide1 hdc" in it12:02
Keybuk*blink*12:02
Nafalloagreed :-P12:03
Keybukso you have /proc/ide/hda but not /sys/block/hda ?12:04
Keybukhow about /sys/block/hdc ?12:04
Nafallo/sys/block has only ram[0-15] 12:04
Keybukright12:05
Keybukcd /sys/devices/*/*/ide012:05
Keybukpwd12:05
Keybukwhat does that say?12:05
Nafallocd: 10: can't cd to /sys/devices/*/*/ide012:07
Keybuksweet12:07
Keybukuh12:07
Keybukfind /sys -name ide012:07
KeybukI guess you don't have find though12:07
Nafalloindeed :-)12:08
Keybuklook for /sys/devices/*/ide0 */*/ide0 */*/*/ide0 etc.12:08
Nafallo(don't have it)12:08
Nafallo/sys/devices/ide012:08
Keybuktop-level like that?!12:09
Nafalloyepp :-)12:09
Keybukcd into that12:09
Keybukand do an ls for me12:09
Nafallouevent power 0.012:09
Keybukok ls -l 0.0/bus12:10
Nafallolrwxrwxrwx  1 0  0  0 0.0/bus -> ../../../bus/ide12:11
Keybukls 0.012:11
Nafallouevent power bus12:11
Keybukok, try echo "" > /sys/devices/ide0/uevent12:11
Kamion(why do you always echo "" rather than plain echo anyway? :-))12:12
Keybuk(or udevplug /sys/devices/ide0/uevent)12:12
KeybukKamion: dunno12:12
Keybukudevplug /sys/devices/ide0 I mean12:12
Keybukbut anyway12:12
KeybukWRITE TO THAT FILE12:12
Keybuk<g>12:12
NafalloI think /dev/ttya[0-2]  came out of that.12:13
Keybukksdgjs9gu828112:13
Nafalloor rather, they are the last ones ;-)12:13
Keybukheh12:13
Keybukyou still don't have /sys/block/hda ?12:14
Nafallonope12:14
Nafallo:-P12:14
Keybuktry udevplug /sys/bus/ide/0.012:14
Nafallono change12:14
Keybukmeh12:15
Keybukwell, you haven't got an IDE controller12:15
Keybukapparently12:15
NafalloI can prove I have it by modprobe ide-disk ;-)12:15
Nafalloand so can ogra on his beauty ;-)12:15
Keybukwhat kind of machine do you and ogra have in common?12:16
Nafalloogra: amd64, no?12:16
Nafalloamd64 laptop here12:16
KeybukSATA ?12:16
Nafallohttp://www.magicalforest.se/darkelf12:16
Nafallonope, PATA-10012:16
Keybukok12:16
Keybuktry udevplug -Bpci12:17
Keybuksee if that makes /sys/block/hda12:17
Nafallonope12:17
Keybukudevplug12:17
Keybuk(without any arguments) ?12:17
Nafalloudevd-event[17175] : run_program: exec of program `/sbin/grepmap` failed12:18
Nafallohence why I said that was missing :-P12:18
Keybukyeah, that's just an annoying bitch I'm going to get rid of at some point12:19
Nafallo:-)12:19
Keybukany /sys/block/hda though?12:19
Nafallonope :-P12:19
Keybukok12:19
Keybukwell that means you have nothing on your system that claims to be an IDE controller12:19
Keybukiz kernel bug12:19
Keybukis ide-generic loaded?12:20
Nafallowhere can I check? :-)12:20
Nafallolsmod not found :-P12:20
Keybukgrep generic /proc/modules12:20
Nafalloide-generic and ide-core is loaded, yes :-)12:21
Nafallofwiw: ACPI registers the ide-bus in init-premount.12:22
Nafalloide-disk then finds hda12:22
KeybukACPI?12:23
Nafalloyes12:23
Keybukwhy is that "registering" the disk?12:23
Keybukthat just loads fan and thermal12:23
Nafallo...]  ACPI: bus type ide registered12:23
Keybukyou have nothing that says you need to load ide-disk12:24
Keybukie. the kernel hasn't found any ide devices12:25
Keybukbut it claims to have, as there's things in /proc/ide12:25
Keybukwhich driver is it?12:25
Keybuk(it'll be one of the things hanging on to ide-core)12:26
Nafallovia82cxxx is memory provides12:26
Keybukis that loaded?12:26
Nafallonope12:27
Keybukah, interesting12:27
Keybukmodprobe -r ide-generic12:27
Keybukthen modprobe via82cxxx12:27
Keybukthen modprobe ide-generic again12:27
Nafalloyes? :-)12:28
Keybukdid that do anything?12:28
Nafallosaid averything IDE was brought up (the usual kernelmessages)12:29
Keybukdid you get a /dev/hda ?12:29
Nafallobut no /dev/hda* or anything :-P12:29
Keybuk/sys/block/hda ?12:29
Nafallonope12:29
Keybukhmm12:29
Keybukit could be buggered up by loading ide-generic first12:29
Keybukthat does evil things to the kernel12:30
Keybukbut you got a lot of the IDE things by loading the via82cxxx module?12:30
Nafallonot lots, that ACPI registered the bus..12:31
Nafalloif I load ide-generic I get lots12:31
Keybukright12:31
Keybukok12:31
Keybukgrep 1106 /sys/bus/pci/devices/*/vendor12:31
Nafallo12 lines :-)12:32
Keybukright12:32
Keybuklook at the /device files for each of them12:33
Keybukthey'll each have 4-digit numbers/letters12:33
Keybukcould you type them each here12:33
Nafalloshouldn't I be able to find out which one it is by grepping? :-)12:34
Keybukno, clearly you have one that isn't registered12:35
Keybukso I want the ids so I can google for them <g>12:35
Nafallohehe12:35
Nafallo317712:37
Nafallo057112:37
Nafallo305912:38
Nafallo306812:38
Nafalloany hit yet? :-)12:38
Keybukcarry on12:38
Nafallo306512:39
Nafallo304412:39
Nafallob18812:40
Nafallo318812:40
Nafallo303812:40
Nafallosame on all 00:10.*, so USB I guess12:42
Keybukok12:42
Keybukcould you note down the sysfs path to the one that's 057112:42
Keybukthen once done, reboot and put break=top onto the kernel command-line12:42
Keybukso you're given a shell in the initramfs, rather than it failing12:42
Nafallo/sys/bus/pci/devices/0000:00:11.1/device12:43
Keybukk12:43
Keybukso reboot, with break=top, so we're in a fresh shell with no modules loaded12:43
Nafalloey! you are reading my notes-to-self :-P12:44
Keybukhmm?12:44
Nafallooki, I'm there.12:44
Keybukright12:44
Nafalloyou told me to take a note ;-)12:44
Keybukif you're on a laptop ... modprobe fan and modprobe thermal now <g>12:45
Nafallohehe, done12:45
Keybukrun UDEV_LOG=info /sbin/udevd --daemon12:45
Nafallodone12:46
Keybukok, now can you verify a few things for me, if not true, can you say what you see12:46
Keybuk/sys/bus/ide/devices is either empty or non-existant12:46
Keybukgrep via82cxxx /proc/modules shows nothing12:46
Keybuk/sys/bus/pci/devices/0000:00:11.1/vendor is 110612:47
Keybuk/sys/bus/pci/devices/0000:00:11.1/device is 057112:47
Nafalloall true12:48
Keybuk/sys/bus/pci/devices/0000:00:11.1/class is 0x01000012:48
Nafallonot true12:48
Keybukwhat is it?12:48
Nafallo01018a12:48
Keybukwith or without an 0x on the front?12:48
Nafallo0x01018a :-)12:49
Keybukright, that's quite important :p12:49
Nafallohehe, oki :-). all of them has that if not said otherwise ,-)12:49
Keybuk/sys/bus/pci/devices/0000:00:11.1/modalias should begin pci:v00001106d00000571sd... yes?12:49
Keybukyeah, that's ok, just checking on that one in particular12:49
Keybukalso does it end bc01sc01i8a ?12:50
Nafallonot sd, sv12:50
Keybukright, sorry, typo12:51
Nafallosd00002032bc01sc01i8a12:51
Keybukcool12:51
Keybuknow, /sys/block/hda should not exist12:51
Keybukalso /sys/devices/ide0 should not exist12:51
Keybukand /proc/ide should not exist12:51
Keybukare all those true?12:51
Nafalloyes indeed12:52
Keybukright12:52
Keybukudevplug -Bpci -Iclass=0x010[01] *12:52
Keybukthat should do a bunch of stuff on your screen, any of it interesting?12:52
Nafalloit didn't :-P12:53
Keybukdid nothing?12:53
Nafallodid nothing...12:53
Keybuknot even a grepmap bitch?12:53
Nafallonot even the bitch :-)12:54
Keybukgrep via82cxxx /proc/modules still shows nothing ?12:54
Nafallocat /proc/modules: unix thermal processor fan12:54
Keybukright12:55
Keybukudevd is running?  (ps ax)12:55
Nafalloyepp12:55
Keybukudevplug /bus/pci/devices/0000:00:11.112:55
Keybukdoes that do anything?12:55
Nafalloyou forgot /sys, right?12:56
Keybukdoesn't matter, is optional12:56
Nafallodid nothing12:57
Keybukhow about just12:57
Keybukecho > /sys/bus/pci/devices/0000:00:11.1/uevent12:57
Nafalloudevd-event output :-)12:58
Keybukany of it interesting?12:58
infinityKeybuk ; Dude.  You updated linux-meta while powerpc was still fucked?12:58
Keybukinfinity: yes, mdz said to :)12:59
Nafallolol12:59
Nafallo/sbin/modprobe -Q pci:v....12:59
KeybukNafallo: see, now that is interesting12:59
Keybukdo you now have any of /sys/block/hda, /sys/devices/ide0, /proc/ide/hda/media, /dev/hda ?12:59
Nafallo/sbin/modprobe (stderr) and the usage note :-P01:00
Keybukhuh why usage note?01:00
Nafallois the line after that one...01:00
Nafalloso status 1 on modprobe...01:00
Keybukuh01:00
Keybuk/sbin/modprobe -Q fan01:00
Keybuk^ what does that do?01:00
infinityKeybuk : Ahh, yeah, just read backscroll.01:01
Nafallousage message..01:01
Nafallo-q maybe?01:01
Keybukno, definitely -Q01:01
Keybukso, could you do something for me01:01
Keybukmodprobe ide-disk01:01
Keybukmount /dev/hda1 (or whatever your root/var is) /root01:01
Nafallols /dev still shows console and null only01:02
Keybuk*giggle*01:03
KeybukOH I SEE THE PROBLEM01:03
Keybukmodule-init-tools FTBFS01:03
Nafalloeeh? :-P01:03
Keybukbloody patch systems01:04
=== Nafallo breathes in
Nafallo...and out01:05
Keybukok01:06
Keybuksoooo, here's how to boot your machine01:06
Keybukboot with break=premount01:06
Keybuk. conf/initramfs.conf01:07
Keybuk. scripts/functions01:07
Keybukscripts/init-premount/acpid01:07
Keybukudevd --daemon01:07
Keybukudevplug /class/mem /class/misc /class/tty /class/vc /block01:07
Keybukmodprobe via82cxxx01:08
Keybukmodprobe ide-disk01:08
Keybukmodprobe ide-generic01:08
Keybuk(this should get you /dev/hda*)01:08
Keybukudevplug -W01:08
Keybukmountroot01:08
Keybukrun_scripts scripts/init-bottom01:08
Keybukexec run-init /root $init "$@" </root/dev/console >/root/dev/console01:09
Keybuk--01:09
Nafallomountroot not found :-P01:09
Keybukdid you do the ". scripts/functions" bit?01:10
infinityKeybuk : Shall I fix module-init-tools while you're helping Nafallo get unfucked?01:10
Keybukoh01:10
Keybuksorry01:10
Keybuk. scripts/$BOOT01:11
Keybukmountroot01:11
Keybukinfinity: already uploaded01:11
infinityAhh, cool.01:11
Nafallo:-)01:13
Nafallothanx :-)01:13
Keybukbooted?01:13
Nafalloyepp01:13
Nafalloand had more fun than ever on the way :-)01:13
Keybukright01:13
KeybukNOW BEFORE YOU GO01:13
Keybukhttp://people.ubuntu.com/~scott/module-init-tools_3.2.1-0ubuntu3_i386.deb01:13
Keybukactually01:13
Keybukthat's the wrong arch for you isn't it <g>01:13
Keybukuh01:13
Nafallohehe, it is :-)01:13
Keybukhttp://people.ubuntu.com/~scott/module-init-tools_3.2.1-0ubuntu3.diff.gz01:14
Keybukhttp://people.ubuntu.com/~scott/module-init-tools_3.2.1-0ubuntu3.dsc01:14
Keybukhttp://people.ubuntu.com/~scott/module-init-tools_3.2.1.orig.tar.gz01:14
Keybukgrab those three down, dpkg-source -x, dpkg-buildpackage -rfakeroot -b -uc -us, install module-init-tools01:14
Keybukthen check that "/sbin/modprobe -Q fan" does NOT give you a usage error :p01:15
Nafallohmm, where is my network? ;-)01:15
Keybukifup01:15
Keybukthat's a known problem01:15
Keybukit's in the release notes01:15
NafalloI thought network-manager would take care of that ;-)01:17
Keybukmaybe01:17
Keybukeither way, it's on my list todo, just a few items down01:18
Nafallojust shout if you need testing :-)01:18
Keybuklet's first get you booting without error :p01:18
Keybukgot that built yet?01:19
Nafallojust wgeted and gave it to pbuilder :-)01:20
Nafallooki, rebooting :-)01:28
Nafallohmm, same error...01:30
NafalloI don't have to run update-initramfs manually or something?01:30
KeybukI actually just meant that you should run /sbin/modprobe before rebooting <g>01:31
Keybukbut yes, you would need to run update-initramfs01:31
NafalloI thought packages would do that these days ;-)01:35
Nafalloanyway, booted via the long command method again ;-)01:35
Nafallono usage error :-)01:36
Nafallosudo update-initramfs -u and then reboot again :-)01:37
Nafallowow! "Mounting root file system     ok"01:39
Nafallo:-)01:39
Nafallothanx Keybuk! I'll post fresh bootcharts shortly :-)01:39
Nafalloeven network works now ;-)01:40
Nafalloyay! my battery works :-)01:41
Nafallohttp://www.magicalforest.se/~nafallo/bootchart/dapper-20051201-3.png01:44
=== jbailey [n=jbailey@modemcable139.249-203-24.mc.videotron.ca] has joined #ubuntu-boot
=== jbailey [n=jbailey@modemcable139.249-203-24.mc.videotron.ca] has joined #ubuntu-boot
=== jbailey [n=jbailey@modemcable139.249-203-24.mc.videotron.ca] has joined #ubuntu-boot
=== jbailey [n=jbailey@modemcable139.249-203-24.mc.videotron.ca] has joined #ubuntu-boot
=== jbailey_ [n=jbailey@modemcable139.249-203-24.mc.videotron.ca] has joined #ubuntu-boot
=== fabbione [n=fabbione@cerberus.fabbione.net] has joined #ubuntu-boot
fabbioneguys can we have a FEW WORDS?07:36
fabbioneinfinity: this upgrade is the disaster07:37
fabbioneRAID and network are gone07:37
fabbioneinfinity: nvidia is broken on amd6407:38
fabbione+ we load some fb modules that conflicts heavily with nvidia07:38
fabbioneremoving the fb modules makes no good07:38
fabbionenvidia either crashes or it manages to start X but it kills console07:38
fabbionei think bootchart it's taking ages to release to console07:42
fabbionebut that's not a big deal07:43
fabbionegrepmap seems to be broken too07:44
=== fabbione [n=fabbione@port49.ds1-van.adsl.cybercity.dk] has joined #ubuntu-boot
infinityfabbione : Hrm.  nvidia works for me on amd64 (both legacy and current), but I tested it before the new udev and stuff when in.08:09
fabbioneyes, the problem seems to be either usplash or initramfs that are loading too many fb modules08:10
infinityfabbione : I'll have to test again after I upgrade evrything, but more concrete stuff than "it doesn't work" would be helpful, I think.08:10
infinity(And I'm using usplash with vga16fb on that machine, ie: a default setup)08:10
=== pitti [n=pitti@ubuntu/member/pitti] has joined #ubuntu-boot
fabbionefor what i can see other than the fb modules problems, nvidia kills switching to console08:10
fabbioneand it kills the machine if loading it directly without the fb modules08:11
fabbioneit's kind of a mess that will need more debugging08:11
infinityFun.  What kind of card do you have?08:11
infinityI've only been able to test on my 6800GT.08:11
fabbione0000:00:0e.0 VGA compatible controller: nVidia Corporation NV17GL [Quadro4 200/400 NVS]  (rev a3)08:11
fabbione0000:01:00.0 VGA compatible controller: nVidia Corporation NV25 [GeForce4 Ti 4600]  (rev a3)08:11
fabbioneit has 2 cards08:11
infinitySo, if you boot with "nosplash", everything's okay?...08:12
infinityOr it dies in different ways?08:13
infinity(And have you tried with -legacy?... While your cards don't technically need it, they are older, so are more likely to run afoul of bugs in the new drivers, which are being aimed at 6/7 series stuff)08:13
fabbioneif i boot with nosplash the machine freezes08:14
fabbioneno, i didn't try -legacy yet08:15
infinityEr,, not sure if it's "nosplash", or just removing "splash" from the command line.  Probably the latter, actually.08:15
fabbioneyeah i did try the recovery mode08:16
fabbioneand usplash was not loaded08:16
fabbioneit might as well be a problem with the sequence in which modules are loaded08:16
fabbionebecause unloading fb stuff and loading nvidia works08:16
fabbioneso it's kind of weird08:16
infinityVery fun.  I'll test again later tonight after a full upgrade.08:17
fabbioneok08:17
infinityI fear it may be specific to your setup, though.  So if I can't reproduce it at all, I'll whine at you to help.08:18
fabbioneyeah of course08:20
fabbionei would like at least to get RAID/network back first08:20
fabbionebecause they are truely annoying to start manually at each boot08:20
infinityYou did upgrade everything, right?08:20
fabbioneyeps08:21
infinityWell, damn. :)08:21
infinityBlame keybuk.08:21
fabbioneheheh08:22
fabbioneinfinity: do you plan a php5 upload soon?08:22
fabbionethere is the libsnmp5 -> 9 transition08:23
fabbioneit's the only pkg in main left08:23
fabbionei just did hplip08:23
infinityYeah, it's happening soon for other reasons.08:31
fabbioneok08:32
=== pitti [n=pitti@ubuntu/member/pitti] has joined #ubuntu-boot
infinityARGH.09:36
infinityfabbione : <poke>09:36
fabbione?09:42
infinityfabbione : Are you getting some nvidia-specific framebuffer module loaded?09:44
infinityfabbione : After upgrading everything and rebooting, I've noticed that something is now loading radeonfb magically for me, which is very clearly a bug.09:44
infinityIf that's happening for you (but with the nv equivalent), that's the real problem.  And I'm pretty sure it's the new udev's fault.09:44
fabbioneyes it is happening for me to09:46
fabbioneit loads radeon and nvidia fb09:47
infinityBoth?09:47
infinityYou have an ATI in there too?09:47
infinityOr is it doing something even more wrong than wrong?09:47
fabbionenope09:47
fabbioneno ati on this box09:47
fabbionesorry i meant riva09:47
infinityOh, phew.09:48
infinityKay.09:48
infinityStill very wrong, but at least that one makes sense. :)09:48
fabbione[  235.360791]  NVRM: The NVIDIA probe routine was not called for 2 device(s).09:48
fabbione[  235.360796]  NVRM: This can occur when a driver such as rivafb or rivatv was09:48
fabbione[  235.360798]  NVRM: loaded and obtained ownership of the NVIDIA device(s).09:48
fabbione[  235.360802]  NVRM: Try unloading the rivafb (and/or the rivatv) kernel module09:48
fabbione[  235.360804]  NVRM: (or reconfigure your kernel without rivafb support), then09:48
fabbione[  235.360805]  NVRM: try loading the NVIDIA kernel module again.09:48
fabbione[  235.362873]  NVRM: No NVIDIA graphics adapter probed!09:48
fabbionethis one repeated several times09:48
infinityYeahp.09:48
fabbioneit clearly goes away as soon as i rmmod riva09:48
infinityI'm getting the same here with conflicts between radeonfb and fglrx.  Which, of course, shouldn't be happening, because radeonfb and rivafb shouldn't be autoloaded.09:49
infinityI'll be sure to yell at keybuk when he returns.09:49
fabbioneehehehe09:49
infinityFor now, you could blacklist rivafb, but having framebuffers hot/coldplugged at all is just sick and wrong, given that most of them are biuggy as hell.09:50
fabbionei argee09:51
fabbioneagree09:51
fabbioneand i can wait for Keybuck to fix09:51
fabbionei am not going to reboot this machine anytime soon anyway09:51
MithrandirKamion: I'm going to waste a little time today trying to get our custom widget stuff upstream as well as our kbd-chooser changes.  Ok?09:54
=== jbailey__ [n=jbailey@modemcable139.249-203-24.mc.videotron.ca] has joined #ubuntu-boot
=== pitti [n=pitti@195.227.105.180] has joined #ubuntu-boot
fabbionehmmm11:12
fabbioneKamion: the pvremove -ffy solution doesn't solve all the problem :/11:13
fabbionei need to do a clean lvm removal11:13
fabbioneactually11:15
fabbioneno11:15
fabbionei can be WAYYYY more evil :)11:15
KamionMithrandir: cool, thanks11:20
Kamionfabbione: ok ...11:21
Kamionfabbione: I'm going to do a partman-auto-lvm upload to Debian in a moment; you'll need to merge that or your world will stop working11:23
Kamionfabbione: oh, uh, you've been doing lots of stuff too, hmm11:24
KamionI guess it's not safe to upload at the moment11:25
Kamionfabbione: if you want udev stuff to keep working with the new installer world order, merge r32609 from d-i svn; if you don't care, feel free to wait :)11:25
fabbioneKamion: all the changes are the same we have in ubuntu11:26
fabbioneand all tested11:26
fabbioneif you want to upload pal you need to upload partman-auto too11:26
fabbioneKamion: if you are talking about the udev bits, it's no problem... i can merge them easily11:27
fabbioneit's just 2 lines11:27
fabbionemy head is exploding11:28
=== fabbione takes a break
=== Keybuk [n=scott@descent.netsplit.com] has joined #ubuntu-boot
pittiHi Keybuk11:33
Keybukhappy mailman day11:33
pittiKeybuk: I have some juicy udev bugs to talk about, when you have a minute?11:33
Keybuksure, give me a few minutes to get my eyes open11:34
pittiand some coffee? :)11:34
Keybukyes that too11:37
Kamionfabbione: right, it's just to call update-dev11:38
Kamionthe old udevstart/udevsynthesize calls in p-a-l and elsewhere (apart from update-dev itself) will go away soon11:38
Kamionis anyone doing new linux-meta for the new ABI?11:55
makxudevsynthesize is nice for < 2.6.1511:55
Kamionmakx: yes that's why they'll stay in update-dev11:56
Kamionplease, I know what I'm doing :-)11:56
Kamionwell, sometimes11:56
makxnp was just a remark, not looked in an updeate-dev yet-11:56
fabbioneKamion: no, because we need new LRM for the new ABI11:57
fabbioneoh it's in..11:58
Kamionbinaries aren't in yt11:59
Kamionah, new11:59
Kamionok, I'll process the new binaries12:00
Kamionoh, god, no I won't, newing l-r-m gives me a vicious headache, I'll wait for elmo12:02
Kamionwhoa, rebooting just after installing new udev is indeed ultra-messy12:05
Keybukd-i reboot, or ordinary reboot?12:05
Kamionordinary reboot12:05
Kamionthe bazillion udevsend errors scrolling down the console12:05
fabbioneKeybuk: check today's log for this chan12:05
fabbionei also have several issues12:06
Kamionhmm, no /dev/sda1 here ...12:06
Keybukudevsend errors?12:06
Keybukthere's no such thing as udevsend12:06
Keybuk(it's not used)12:06
fabbioneraid/network and other stuff are clearly no go12:06
Kamionmy machine begs to differ12:06
KamionI probably have udevsend in /proc/sys/kernel/hotplug12:07
Kamions/have/had/12:07
Kamionhunger mentioned the same thing on #ubuntu-devel12:07
Keybukthat should get cleared in initramfs12:07
Keybukunless something else is putting it back, of course12:08
Kamionit's *before* reboot12:08
Kamionas in, just upgraded from breezy-ish udev to current, then went to reboot12:09
makxdid that update your initramfs?12:09
Kamionmakx: yes, and it's totally irrelevant because the errors were BEFORE REBOOT so the new initramfs hadn't been started yet12:10
Keybukoh12:10
Keybukyeah12:10
Keybukthat'd go boom12:10
Kamionok, anyone fancy walking me through figuring out why I'm not getting /dev/sda1 in the new initramfs? SATA12:10
Keybukcould be that no modules are being loaded12:11
Kamionudevplug puts it in12:11
Keybukthe easiest way to do it is to boot with break=mount12:11
Keybuksee if you have /dev/sda112:11
Keybukif not, try udevplug -Bpci12:11
Keybukthen see if you have /dev/sda112:11
makxbtw nice "break=foo" patch Keybuk. :)12:12
KamionKeybuk: I don't even get a shell - I get "Spawning shell within the initramfs" and then a blinking cursor12:13
Keybukhuh?  weird12:13
Keybukmaybe you have to wait for usplash to die or something12:15
Kamionoh, the shell is in tty812:16
Kamionthat's helpful, not12:16
Kamionno /dev/sda1 to start with, but udevplug -Bpci creates it12:17
Keybukok, excellent12:18
Keybukis there a /sys/block/sda1/device symlink?12:18
Keybukit might be /sys/block/sda/sda1/device12:18
Keybukor /sys/block/sda/device12:18
Kamion/sys/block/sda/device is there12:19
Keybukok12:19
Keybukreadlink/ls -l that and it should point to a pci device12:19
Keybukcd into that (you can just cd /sys/block/sda/device) and pwd to make sure it's the right device12:19
Keybukthen cat vendor device class12:19
Keybukand give me those three numbers :)12:20
Kamion/sys/devices/pci0000:00/0000:00:0f.0/host0/target0:0:0/0:0:0:012:20
Kamionvendor says ATA, device and class are missing12:20
Keybukoh, interesting12:21
Keybuktry in ../../..12:21
Kamion0x110612:21
Kamion0x314912:21
Kamion0x01040012:21
Keybukaha!12:22
KeybukPCI_CLASS_STORAGE_RAID :)12:22
Kamionle huh?12:22
Kamionnobody told me it was RAID :)12:22
Keybuknot PCI_CLASS_STORAGE_SCSI12:22
Keybukrightio12:22
Keybukcan you file a bug saying something like "load all storage controllers in initramfs, not just IDE/SCSI ones"12:23
Kamionok12:23
Keybukyou can boot that machine now with:12:23
Keybuk. conf/initramfs.conf12:23
Keybuk. scripts/functions12:23
Keybuk. scripts/$BOOT12:23
Keybukmountroot12:23
Keybukrun_scripts scripts/init-bottom12:23
Keybukexec run-init /root $init "$@" </root/dev/console >/root/dev/console12:24
Kamion#2033912:26
Kamionboots fine now, thanks12:26
=== pitti_ [n=pitti@195.227.105.180] has joined #ubuntu-boot
pittil12:38
fabbioneKamion: new p-a-l uploaded12:54
fabbionewith the udev crack changed12:54
Kamionta12:56
infinityKeybuk : Hey, has anyone yelled at you about framebuffers, yet?01:01
=== fabbione joins infinity on the crusade against fbs
infinityKeybuk : I can only assume this is the new udev at fault, but it appears to be hot/cold-plugging framebuffers, based on installed hardware, so all ATI users get radeonfb loaded, nv users get rivafb, etc.  THis is pretty horribly broken.01:02
infinityKeybuk : Since most of these framebuffers are buggy, break suspend/resume, and break their X driver counterparts.01:02
Keybukit's in the release notes :)01:04
Keybuk(which I've yet to send, but still)01:04
Keybukyes, I know framebuffer devices are loaded01:04
KeybukI also have a bug assigned to me saying we should load framebuffer devices01:04
KeybukI'm also aware that we might not want to01:04
Keybukbasically they need blacklisting01:05
fabbioneKeybuk: you are perfectly convinced you don't want to load them01:05
Keybukand I'm not sure the elegant way to do that01:05
fabbioneit breaks MY workstation01:05
fabbionebadly01:05
=== fabbione modprobes godfather.ko
fabbioneKeybuk: or i will have to make you an offer you can't refuse01:05
=== fabbione rmmods godfather
infinityKeybuk : Was the bug filed by anyone with clue, or just someone who wants whizbang features?01:06
infinityKeybuk : Bottom line is that most framebuffers break just about everything else we do.01:07
Keybuk*nods*01:07
Keybuksoo... how do we blacklist them?01:07
makxfabbione: hch needs a test for sbus sysfs debian -> #34152201:07
Keybukdo we maintain a byhand list of framebuffer drivers?01:07
infinityKeybuk : why were they not being loaded before, but are now?  That might be a good place to start.01:07
Keybukthere was a skip in the old hotplug shell code01:07
infinityAnd can we not replicate that behaviour on the new world order?01:08
KeybukI'd like to do it with a blacklist file now01:09
fabbionemakx: i don't run debian on my sparc.01:09
fabbionecan't test01:09
infinityBut we blacklist based on module name, not subsystem.  Much more of a pain in the ass to maintain.01:09
makxfabbione: he'll send you a kernel patch01:09
infinityOr can we blacklist in more clever ways?01:09
infinityKamion : I realise you don't want to touch lrm NEW cause LRM is icky and makes your head hurt, but can you NEW the ia64 kernel binaries, so LRM can build there? :)01:10
fabbionemakx: still.. can't test.. my sparc is buildd.. not a test machine01:10
Keybukrumout has it that we can do something like:01:11
fabbionemakx: plus he perfectly knows how to find me :)01:11
makxfabbione: ok hehe trave11er will do01:11
Keybukinstall pci:v*d*sv*sd*bc03*sc*i* /bin/true01:11
Kamioninfinity: (it's specifically icky because lisa can't handle l-r-m directly due to the d-i bits.)01:11
Keybukthat's pretty ugly though01:11
Keybukwe could also do that with SUBSYSTEM=="pci", SYSFS{class}=="0x03*", GOTO="modprobe_end"01:12
infinityKeybuk : I'd prefer to avoid line nois ein config files.01:12
infinityKeybuk : Though, something that ugly is unlikely to be touched by users, which may be a win..01:12
Kamioninfinity: doing now01:12
Keybukanother option is to generate /etc/modprobe.d/display_class automatically in kernel postinst01:12
fabbioneUH UH01:12
fabbionego udev!01:12
=== fabbione sighs
fabbioneno actually.. that would be initramfs too01:13
infinityKeybuk : Is there any reason to not just patch things to skip that particular class, other than the off chance that some user, somewhere, might really want to coldplug his framebuffers without using /etc/modules?01:14
Keybukinfinity: patch what? :)01:14
infinityWhatever enumerates incoming *plug events and decides to call modprobe?01:15
infinityI'm not the one who packaged this, I don't pretend to know the code. :)01:15
Keybukwell, the kernel generates uevents01:15
Keybukwe could patch the kernel to not generate events for display devices01:15
infinityRight, then?01:15
infinityWhat catches the events?... udev?01:15
Keybukbut it's slightly less intrusive to just not build the framebuffer devices in the first place01:16
infinityAnd then udev calls modprobe if it thinks it should?01:16
Keybukyes, udev catches the events, looks them up in sysfs and processes it01:16
Keybukwe could add a udev rule to skip modprobe for display devices01:16
infinityRight, so udev should be the one skipping the events, if it knows the device class.01:16
Keybukudev calls modprobe01:16
Keybukwith a device alias01:16
Keybukmodprobe can blacklist devices from matching a particular alias01:16
Keybuk(like we do for things like eepro100 and stuff)01:17
Kamioninfinity: Accepted 1 package set, 146 MB.01:17
infinityYeah, but that percludes someone calling modprobe manually.01:17
Keybukno, it doesn't01:17
infinityWe just don't want udev automagically doing it, we don't want to stop users from doing it.01:17
Keybukmodprobe only applies it's blacklists to alias expansion01:17
Keybukmodprobe eepro100  still works01:17
Kamion(unless you use -b, right?)01:17
Keybukmodprobe pci:blahblahforaneepro100 is what gets blacklisted01:17
Keybukright01:17
Keybukmodprobe -b eepro100 is "load eepro100 only if it's not blacklisted"01:18
Keybuk...01:18
Kamionincidentally, please document -b in the man page, kthxbye :)01:18
infinityWell, I leave it in your hand to implement where/how you think works best.01:18
KeybukI'd rather we did this at the modprobe level, because it's the least surprising way01:18
Keybukand it's consistent with other things where we've decided not to load modules01:18
infinityI just want it to work, and I don't want anything that requires maintaining manual lists.01:18
Keybukright01:18
infinity(Or something so user-obvious "Oh, look this blacklists framebuffers, I don't want that!" that users will delete it, not know how to get it back, and file tons of bugs cause X broke)01:19
Keybukdo you have anything against a list updated in a postinst?01:19
infinityYes, I'm evil.01:19
Keybukinfinity: if users shoot themselves in the foot, they will shoot themselves01:19
Keybukeither way this will be in a conffile01:19
infinityI don't think hotplugging framebuffers is ever "right", so I'd really just not allow it.01:19
infinityKamion : Thanks, BTW.01:20
Kamionnp01:20
Keybukof course, it's impossible to accurately identify framebuffer drivers *shrug*01:22
infinityThen how did hotplug manage?01:23
infinityRough guessing that was mostly true?01:23
Keybukhotplug did it by device01:24
infinityAll video devices?01:24
infinityThat would work for us, since the only other things that vaguely relate to video devices are slave drivers to X drivers, which load (or are supposed to) when X loads.01:25
Keybukright, that was always the drawback01:25
Keybukthere were various hotplug bugs where it didn't load some other driver01:25
Keybuklike capture cards, etc.01:25
Keybukall-in-one cards didn't work at all without manual driver loading01:25
KamionKeybuk: udev-udeb being hard to type> I feel your pain01:25
KamionI can only type "udev" accurately one time in three01:26
Keybukthe udeb was missing lots of files because they were in debian/udeb-udev and debian/udev-udev and friends01:27
Kamionheh01:29
=== ogra [n=ogra@ubuntu/member/ogra] has joined #ubuntu-boot
ograhi01:35
=== crimsun [i=crimsun@pdpc/supporter/silver/crimsun] has joined #ubuntu-boot
Keybukok01:36
Keybukso let's first get your system to a useful point to play01:36
Keybukyour problem is that "your root filesystem is on a network device, and no network driver is loaded", is that correct?01:36
ograi tried to replace the line that was there, as well as just ading your line01:36
ograyup01:36
Keybukok, good01:36
Keybukput that script back how it was, just the -Bpci -Iclass=0x01* line01:36
Keybukupdate-initramfs01:36
ograit loads the same set of modules in both cases01:36
=== lbm [n=lbm@cpe.atm4-0-1301006.0x50a0824e.vgnxx6.customer.tele.dk] has joined #ubuntu-boot
Keybukthen reboot, and add break=mount to the kernel command-line (remove splash for sanity)01:37
jbaileyKeybuk: Is this no-nic-at-startup troubleshooting, or a specific LTSP case?01:37
Kamionok, well, the installer boots with 2.6.15-6, sort of01:38
jbaileyI have to ifup at startup, but I think you said that's expected.01:38
Keybukjbailey: we forgot about initramfs probing network modulesentirely when we wrote udev-roadmap01:38
Kamionsomething's wrong with framebuffer bringup though01:38
ograjbailey, it is ltsp... but might also affect others01:38
KeybukKamion: "wrong with" ?  ...  you mean that framebuffer drivers are brought up?01:38
Keybukogra: are we at a "Spawning shell in the initramfs" prompt yet?01:38
KamionKeybuk: er no, the installer relies on a framebuffer ...01:39
jbaileyKeybuk: Mmm, yeah.  Althouhg it seems solvable in that the nfs initramfs class can have the nic probing and the klibc dhcp client call can be a udev rule at that point.01:39
KeybukKamion: oh, now that makes things more interesting wrt blacklists01:39
jbaileyKeybuk: So I don't think it's unsolvable.01:39
ograKeybuk, wait, takes a second ...01:39
KamionKeybuk: nope, the installer already modprobes them itself01:39
Keybukoh ok01:39
=== Nafallo [n=nafallo@ubuntu/member/nafallo] has joined #ubuntu-boot
KamionKeybuk: just leave it to do its job and it will be fine :)01:39
Kamion(well, ish)01:39
jbaileyKeybuk: Then we just do the same event wait for the root filesystem to appear.01:39
infinityKamion : Are you sure you're not getting fb conflicts?01:40
ograKeybuk, ok, there01:40
Keybukogra: good01:40
Keybuknow what network driver are you looking for?01:40
ogranote that i have to regenrate the tftpboot stuff afterwards01:40
Kamioninfinity: pretty sure, yes. symptoms are funny squares in localechooser rather than UTF-8 characters; I'm investigating01:40
infinityKamion : I get vga16fb/vesafb (whichever one usplash decides I wanted) loaded, then udev goes and loads a second later.01:40
ogra8139too01:40
Kamioninfinity: no usplash in the installer01:40
Keybukok, grep 8139 /proc/modules and check it's not in there01:40
ograbut in fact all pci drivers01:40
infinityKamion : Right, but similar idea, since the installer loads an FB, then you fire off udev... Right?01:41
infinityKamion : (Or perhaps vice versa, but either way, you may end up with two loaded)01:41
Kamioninfinity: well there's only one entry in /proc/fb afterwards, so I don't think it's that01:41
ogranope, not there01:41
Keybukogra: good01:41
Keybukogra: udevplug -Bpci -Iclass=0x02*01:41
infinityKamion : Right, then I'll shut up.01:41
Keybukogra: then look to see whether the module was loaded01:42
Kamionudev *might* not be helping here, but I can't say for sure yet01:42
ograyup, loads01:42
Keybuk"yup, loads" ?  loads of what?01:42
ograthe netcard module... 8139too01:42
Keybukright01:42
ogras/loads/it loads/01:42
ogra:)01:43
Keybuk. conf/initramfs.conf01:43
Keybuk. scripts/modules01:43
Keybuk. scripts/$BOOT01:43
Keybukmountroot01:43
Keybukrun_scripts scripts/init-bottom01:43
Keybukexec run-init /root $init "$@" </root/dev/console >/root/dev/console01:43
Keybuk--01:43
ograoh01:43
ogracant open scripts/modules01:43
Keybukuh01:44
Keybuksorry01:44
Keybukscripts/functions01:44
ograah01:44
Keybukalso, just for my sanity, could you cat /sys/class/net/eth0/device/class01:44
ograyup, booting01:45
ograoh, err ... in busybox ?01:46
Keybuknah, when the system is up is fine01:46
ogra0x02000001:47
Keybukokies01:47
Keybukthank you for your bug report.01:47
ograso the udevplug needs to run in a later script, right ?01:47
Keybukjust needs udevplug running over network controllers somewhere01:48
Keybukit was missed out01:48
ograah, fine01:48
Keybukbecause neither jbailey or I remembered it when we wrote udev-roadmap01:48
ograheh01:48
ograok01:48
ograthanks for the prompt help :)01:48
KamionKeybuk: the installer-startup script is basically horribly broken - working on it now01:49
KeybukKamion: ok.  I cargo-culted it from the main startup script, but wasn't sure how much of the "deal with initramfs" crap would be needed01:49
pittiKeybuk: can you please tell me when you have some minutes to discuss about my morning's udev failure?01:50
Kamioncan we just use cp -af or something rather than the find | cpio thing?01:50
Kamionwe don't have cpio in busybox-udeb at the moment01:50
KeybukKamion: heh, I tend to use cpio because I trust it ... I always assume that things like busybox don't have cp -a01:50
Keybukbut yes, if the result is the same, we can01:50
Kamionseems to be01:51
Keybukpitti: yup, give me three minutes, and you're up next01:51
Keybukpitti: right, tell me about your problems01:56
pittiKeybuk: ok, so this morning I wanted to update an udev rule for testing01:57
pittiso, naive as I am, I tried sudo /etc/init.d/udev restart01:57
pittiwhich didn't seem to reload the conffiles01:57
pittiforce-reload didn't either01:57
pittithen I did the more brutal way of calling stop, then start01:57
pittiafter which I found my /dev empty, my conffiles in /etc/udev purged, and /etc/udev filled with devices01:58
pittiand /etc/udev did not seem to be a mount point (that was still /tmp)01:58
Keybukok01:59
pittiI suspect that "mount -n -o bind /dev /etc/udev01:59
pitti" in the init script (and the following commands) caused that01:59
Keybuka) udevd keeps an inotify watch on /etc/udev/rules, so you don't need to reload it01:59
pittiI removed /etc/udev/* and purged/reinstalled the packages to get my conffiles back01:59
Keybuk2) reload/force-reload should send it a HUP01:59
Keybuk3) ooooooops :p01:59
pittiwell, all I can say it that I changed /etc/udev/hal.rules, and it was not reloaded01:59
Keybukyes01:59
Keybukwell01:59
Keybuksee also02:00
KeybukDON'T PUT SYMLINKS IN /etc/udev/rules.d02:00
KeybukI've been telling people this for a week now02:00
Keybukincluding yourself about a dozen times02:00
pittibbbut... that's the official Debian way02:00
Keybukyes, that might be what Debian do02:00
Keybukbut it's wrong02:00
Keybukwe don't share any common code with the Debian udev packaging02:00
Keybukput the file itself in /etc/udev/rules.d please02:00
Keybukseriously02:00
pittithese symlinks come from various other packages: hal, alsa-utils, etc.02:00
Keybukudevd cannot spot them changing02:00
Keybukand won't reload them02:00
Keybukyes02:00
Keybukwe will fix them all02:00
pittiok02:00
Keybukalsa-utils is on my list02:00
pittiTBH, I didn't notice/remember the no symlinks policy02:01
pittiI'll fix hal02:01
Keybukyeah02:01
pittiKeybuk: do you know the cause of the lost conffiles? or do you need more info?02:01
Keybukthe symlinks stuff in the first place is Marco being very odd02:01
pittibind-mount /dev to /etc/udev seems odd to me02:01
Keybukwe will just put the files themselves in /etc/udev/rules.d02:01
jbaileyKeybuk: Post that to u-d-a perhaps so that it's recorded?02:02
Keybukjbailey: yeah, I should do02:02
Keybukit applies to Kamion's pcmciautils packages too02:02
Keybukok02:03
Keybukso #1 is understood (you didn't put the file in the right directory)02:03
pittiyep02:03
Keybuk#2 is also understood (it uses lstat, and the symlink itself didn't change)02:03
pittithat means force-reload/restart is not necessary02:03
Keybukright, reload/force-reload just sends a HUP ... it should have zero effect02:04
KeybukI just put them in because I was being complete02:04
Keybukrestart does a refresh of /lib/udev/devices and udevplug02:04
Keybukuseful for a "I changed something/installed new modules/etc." hit02:04
Keybukstop does actually stop udevd and umount /dev02:05
pittithat even seemed to have worked02:05
pittisince then mountpoint -q /dev failed02:05
Keybukright02:05
pittiand I got my old /dev mounted to /etc/udev02:05
Keybukit's the start on a running system without a /dev that failed02:05
Keybukright?02:06
pittiyes02:06
Keybukthanks for testing that code-path :)  I hadn't yet02:06
Keybuk(there's a /dev in the ordinary start, as initramfs makes it)02:06
pittiI was a little surprised that /etc/udev was no tmpfs mount02:06
pittiit seemed to be real files02:06
pittior the kernel hides bind / -o move mounts really well02:06
Keybukit uses it as a temporary place to put the static /de02:07
Keybukthe theory goes:02:07
Keybuk1) move static /dev to /etc/udev02:07
Keybuk2) mount tmpfs on /dev02:07
Keybuk3) make /dev/.static/dev02:07
Keybuk4) move /etc/udev mount back to /dev/.static/dev02:07
pittiyes, I see the code02:07
pittiI don't see any obvious flaws02:07
pittioh, wait02:07
pittiI had to kill the start init script02:08
pittibecause it ran indefinitely02:08
Keybukaha!02:08
Keybukthere's a missing -p02:08
Keybukmkdir -m 0700 /dev/.static/dev will fail02:08
pittiaah02:08
pittiso that means it probably hanged at the last mount -o move command02:09
Keybukand the second move fails for some reason02:09
pittibut shouldn't it just fail?02:09
Keybukno, it meant it failed at the mkdir -- it's a -e script02:09
pittihmmm02:09
pittiit hanged, it didn't fail02:09
Keybukok, could you try it again with sh -x and see where it hangs?02:10
pittiKeybuk: maybe, just to be sure, you can temporarily mount it to /etc/udev/newdev/ or so?02:10
pittisure, I'll try02:10
pittistopped02:10
pittiwhoops02:10
Keybukthat'd involve a mkdir on a read-only filesystem <g>02:11
pitti$ ls /dev02:11
pittialsa-utils.rules  hal.rules  initctl  pcmcia.rules  rules.d  udev.conf02:11
pitti*ahem*02:11
Keybuklol02:11
Keybukyou may wish to reboot to get to a sane system02:11
Keybukfollow-the-lady with your filesystem02:12
pittiKeybuk: /dev was perfectly sane before /etc/init.d/udev stop02:12
pitti(I already rebooted after the previous mess and restaurationof my conffiles)02:12
pittiso WTH did stopping udev scribble /etc/udev* over my /dev directory? (it's not mounted any more, btw)02:14
Keybukdunno02:14
Keybukfixing that -p, and changing -o move to --move fixes it for me02:16
KeybukI can stop/start happily02:16
pittiok, I did that, will try after reboot02:16
pittilast thing: pcspkr is not loaded automatically any more02:17
Keybukoh, now that's kinda interesting02:17
pittiwill that get fixed kernel-wise, or should we put it into /etc/modules?02:17
pittiI did not get any IRC beeps any more :)02:17
Keybukmodinfo pcspkr02:17
pittivermagic:       2.6.15-5-amd64-generic gcc-4.002:18
pitti, if you need that02:18
Keybukany alias lines?02:18
pittino02:19
Keybukgrep pcspkr /lib/modules/$(uname -r)/*02:19
pitti/lib/modules/2.6.15-5-amd64-generic/modules.dep:/lib/modules/2.6.15-5-amd64-generic/kernel/drivers/input/misc/pcspkr.ko:02:19
Keybukok02:19
Keybukcheck that you have a "alias pnp:dPNP0800 pcspkr" line in /etc/modprobe.d/isapnp02:19
pittiI have02:20
Keybukgrep PNP0800 /sys/bus/pnp/devices/*/id02:20
pitti /sys/bus/pnp/devices/00:05/id:PNP080002:20
pitti(I loaded it manually, btw)02:20
Keybuk/lib/udev/pnp_modules /bus/pnp/devices/00:0502:20
pittiit will probably look different without the module loaded02:21
pittipnp:dPNP0800*02:21
Keybuk*giggle*02:21
KamionRAH02:21
Keybukwhat's that "*" doing there?02:21
Keybukthankyou for your bug report :)02:21
pittimy pleasure :)02:22
Keybukany more?02:22
Kamion#20342 is everything we need, plus a few rootskel changes02:22
Kamion(for the installer)02:22
pittiKeybuk: just a question02:22
pittiKeybuk: hunger got thousands of /usr/lib/hal/hal.hotplug not found errors during boot02:22
pittiKeybuk: because /usr was not mounted, so the udev rule failed02:22
pittiKeybuk: is it legitime to add a test -x check to the rule?02:22
Keybukpitti: yeah, we need to fix the hal stuff ... I think hal listens on a socket that can be passed uevents, is that right?02:22
pittiI think so, yes02:23
Keybukyeah, so we'll change that to do RUN+="socket:/org/freedesktop/hal/uevent" or whatever it calls the socket02:23
pittiunix  2      [ ]          DGRAM                    13585    6047/hald           @/var/run/hal/hotplug_socket202:23
Keybuktest -x won't help you ... udev isn't a shell, so doesn't have a test buildin :p02:23
pittithat one maybe?02:23
Keybukpitti: no, that's a filesystem socket, you want the unix namespace socket02:24
pittiKeybuk: oh, but with PROGRAM= / RESULT== it will ceratinly work?02:24
Keybukit'll look like @/org/... I think02:24
Keybukpitti: how do you mean?02:24
KeybukKamion: installer may have been bitten by same bug as pitti02:24
pittiKeybuk: the PROGRAM/RESULT check if /usr/lib/hal/hal.hotplug is available, and RUN is only called with RESULT==002:25
Keybukwhat would you put in PROGRAM?02:25
pittibah, why is test in /usr/bin?02:25
pittiok, let's forget that02:25
Keybukpitti: :D02:25
Keybuktest is also not in the initramfs at all02:25
pittiwell, we could abuse /bin/bash .. :)02:26
pittihrm02:26
Keybuk/bin/bash is not in the initramfs at all02:26
Keybukanyway02:26
pittithis is more complicated than I thought...02:26
Keybukthe socket is the right way02:26
pittiok, I'll read about this02:26
KamionKeybuk: hmm?02:26
pittiok, let's restore my static /dev first02:27
KeybukKamion: you don't want /dev/.static/dev in the installer?02:27
Kamionpitti: in any case you'd need to fail if hal.hotplug isn't there, so that the event can be replayed later02:27
KamionKeybuk: nope02:27
KeybukKamion: does nothing call MAKEDEV (package postinst?)02:27
KamionKeybuk: nope02:27
Keybukok02:27
Keybukeasy then02:27
KamionKeybuk: package postinst => chroot /target02:27
Kamion~ # type MAKEDEV02:28
KamionMAKEDEV: not found02:28
Keybukpitti: the real bug is probably that udevd does an OMG THE SKY IS FALLING! when it can't find a binary02:28
Keybukit should be a muted warning rather than an error02:28
pittiyes, you'll get thousands of error messages02:28
Keybukcf. grepmap in the initramfs02:28
KeybukKamion: will /dev ever be a mountpoint when the udev startup script is run?  ie. can I just assume it's not, and make it?02:29
pittiKeybuk: hm, is "sudo netstat -avpx|grep hal" really the right command to watch out for the unix socket?02:30
pittiKeybuk: there is just one listening socket02:30
pittiunix  2      [ ACC ]      STREAM     HRT         13584    6047/hald           @/tmp/hald-local/dbus-7awadoPF2s02:30
pittiHRT == LISTENING02:31
Keybukhmm, it might be a floating patch02:31
pittiand that DGRAM one02:31
KamionKeybuk: please leave that out, I've made init-udev-devices do it02:31
Kamionassume that it's already a correct mountpoint02:31
Kamionwe need to create some minimal stuff in /dev in order to bring busybox init up *anyway*, so this is correct02:31
Keybukright02:32
KamionKeybuk: the exact directions I gave in the bug work :-)02:32
Keybukso what should I do?  just copy over /lib/udev/devices and start udev/udeplug ?02:32
Kamionreplace lines 15-24 with 'cp -af /lib/udev/devices/* /dev/'02:32
Kamionyep02:32
Kamionthat's all the startup script needs to do02:32
KamionI've fixed the few lines of d-i that needed to be tweaked; uploads are either in or on their way02:33
Keybukoh, I remember why I used cpio02:35
Keybukcp bitches when special files already exist02:35
Keybuknot a problem in the installer02:35
Kamioncp -af doesn't02:35
KamionI ran into that, because /dev/console was already there02:35
Kamionbut if it doesn't work, force it :)02:36
Keybukcp -af does too here02:36
Kamionmust be a busybox thing02:36
Kamion'cos it really didn't :)02:36
=== pitti [n=pitti@ubuntu/member/pitti] has joined #ubuntu-boot
pittiKeybuk: confirmed, with the two init script fixes (-p and --move) it works fine02:38
Keybukwhoah02:48
Keybukisn't it great when you read code and find undocumented features that will rock02:48
Keybukudev appears to have ifrename built in02:48
KeybukAND correctly switches the name over for future events02:49
infinity\o/02:49
infinityMAKE IT WORK NOW.02:49
KeybukSUBSYSTEM=="net", SYSFS{address}=="....", NAME="eth1"02:49
KeybukSUBSYSTEM=="net", RUN+="ifup %k"02:49
Keybukthe %k in the second call will be eth1, not eth<whatever it was before>02:49
KamionKeybuk: #20340> heh, oops, I thought I had upgraded already02:51
MithrandirKamion: how insane am I if I want to run the installer in valgrind and fix the bugz?02:52
=== ..[topic/#ubuntu-boot:Keybuk] : known: fb drivers loaded, oss drivers loaded, no network plugging, pcmcia/hal/alsa rules not reloaded, mtab not updated, /dev/pts not mounted || pending: nfs root fails, sata root fails, pnp devices not loaded, init stop/start
=== ..[topic/#ubuntu-boot:Keybuk] : known: fb drivers loaded, oss drivers loaded, no network plugging, pcmcia/hal/alsa rules not reloaded, mtab not updated, /dev/pts not mounted || pending: nfs root fails, sata root fails, pnp devices not loaded, init stop/start || fixed: notify-reboot, vio_type segfault, no modules loaded
pittiKeybuk: ok, hal binds to the NETLINK_KOBJECT_UEVENT netlink socket02:57
Keybukwhat socket is that?02:57
pittiKeybuk: but I don't have the slightest idea how they work02:57
Keybukthat sounds rather like hal is listening to uevents itself02:57
Keybukif you give me a few minutes to get this release out of the door, I'll look with you02:57
pittioh, sure02:57
pittisorry to bother you with it02:58
Keybuklol, bother away02:58
=== ..[topic/#ubuntu-boot:Keybuk] : known: fb drivers loaded, oss drivers loaded, no network plugging, pcmcia/hal/alsa rules not reloaded, mtab not updated, /dev/pts not mounted || pending: nfs root fails, sata root fails, pnp devices not loaded, init stop/start, grepmap bitching || fixed: notify-reboot, vio_type segfault, no modules loaded
pittilol, bug tracking in /topic03:01
Keybukyup03:01
Keybukeasier than my head/whiteboard03:01
pittiKeybuk: ok, I still know the old-fashioned way of hal: hotplug calls /usr/lib/hal/hal.hotplug, which grabs the environment, and forms a mesage out of it and sends it to a unix socket03:03
pittiKeybuk: so what you want to do is to send the udev messages directly to that socket, right?03:04
Kamionfixing the pcmciautils issue now03:04
=== jbailey [n=jbailey@modemcable139.249-203-24.mc.videotron.ca] has joined #ubuntu-boot
Keybukpitti: right, there's in theory no reason udev itself can't send that socket03:10
Keybukexcept possibly for the hal magic thing03:10
Keybukthe udev release notes talk about this though:03:10
Keybuk  RUN+="socket:/org/freedesktop/hal/udev_event"03:10
Keybukthat *might* be still in a patch that's not applied upstream03:11
Keybukor in CVS HEAD or something03:11
pittiKeybuk: I just wonder why it listens to the KOBJECT socket itself03:11
pittiI think it didn't work without the rule, but I'll try again03:12
pittiok, no, it doesn't work03:13
pittiKeybuk: ok, that socket: thing doesn't work, that would just be too easy :)03:15
Keybukhttp://lists.freedesktop.org/archives/hal/2005-November/003943.html03:17
pittiKeybuk: ok, what hal.hotplug does, is: it opens the AF_LOCAL SOCK_DGRAM socket /var/run/hal/hotplug_socket203:17
Keybuk^ you'll be wanting that patch03:17
pittiah, great03:18
=== ..[topic/#ubuntu-boot:Kamion] : known: fb drivers loaded, oss drivers loaded, no network plugging, hal/alsa rules not reloaded, mtab not updated, /dev/pts not mounted || pending: nfs root fails, sata root fails, pnp devices not loaded, init stop/start, grepmap bitching || fixed: notify-reboot, vio_type segfault, no modules loaded, pcmcia rules not reloaded
Kamion(diff: pcmciautils fixed)03:18
pittiKeybuk: ok, I'll pull it from the upstream cvs03:18
pittiKeybuk: I'll also fix the rules.d thing; is 85-hal ok, priority-wise?03:19
Keybukwhat does the rule contain?  just that?03:19
pittiKeybuk: that, and the automatic unmounting03:19
pittiof ripped out devices03:19
pitti(which should be in the kernel, but oh well..)03:19
Keybuk85-hal.rules03:19
pittiok, great03:20
Keybuk005-11-15  Kay Sievers  <kay.sievers@vrfy.org>03:22
Keybuk* hald/linux2/osspec.c: (hald_udev_data), (hald_helper_data),03:22
Keybuk(osspec_init): Listen to socket: /org/freedesktop/hal/udev_event03:22
KeybukUdev will pass all data over this socket to HAL, if the following03:22
Keybukrule is given:03:22
Keybuk  RUN+="socket:/org/freedesktop/hal/udev_event"03:22
KeybukThe HAL hotplug helper /usr/sbin/hal.hotplug is no longer needed03:22
Keybukand should be replaced by the direct udev connection which will03:22
Keybukno longer fork a process for every event.03:22
KeybukThis is the preparation to reuse the persistent data udev collects03:22
Keybukfrom the hardware, instead of querying it a second time with HAL.03:22
KeybukIf we reach this, drive_id/* and the hotplug helper will be removed03:22
Keybukfrom HAL.03:22
Keybuk(from hal CVS changelog)03:22
Kamionany objection to me turning on command editing, history, and tab completion in the initramfs busybox shell?03:26
Kamionit would make life so much less painful03:26
jbaileyKamion: What the size cost?03:26
KamionI can find out03:26
=== pitti_ [n=pitti@195.227.105.180] has joined #ubuntu-boot
KeybukKamion: does newer pcmciautils add -Qb to its "modprobe pcmcia" call?03:44
Keybuk(in the udev rules)03:44
=== HiddenWolf [n=HiddenWo@136.229.dynamic.phpg.net] has joined #ubuntu-boot
Kamionno; should it?03:47
Keybukyeah03:47
Keybukotherwise "users can't blacklist pcmcia"03:47
Keybukand you want the -Q to suppress automated bitching03:47
pittiKeybuk: oh, right, that was another thing I wanted to ask you - is /etc/hotplug/blacklist.d still supported?03:48
KamionKeybuk: how about pcmcia_core?03:48
Kamionthat's currently -q03:48
KeybukKamion: change to -Qb ... I included all the behaviour of -q in -Q03:51
Keybukpitti: nothing in Ubuntu should place a file in there, therefore it's currently disabled, however before beta we will enable it for anything the users might have in there03:52
Kamionalright, I'll -Q the bridge module loads as well03:52
Kamionfixed in my tree03:52
pittiKamion: two or three packages drop stuff in it; most important is alsa03:52
Keybukpitti: libsane should provide an /etc/modprobe.d/libsane-blacklist which has "blacklist hpusbscsi" and "blacklist scanner" in it03:52
Keybukalsa is on my todo list03:53
Kamionpitti: s/Kamion/Keybuk/ :)03:53
pittiah, great03:53
KamionI can change my nick to Keybun if it would make things easier03:53
pittiKamion: oops, sorry :)03:53
KeybukKamibuk03:53
Kamion-rwxr-xr-x  1 cjwatson cjwatson 910672 2005-12-01 14:29 old/busybox03:54
Kamion-rwxr-xr-x  1 cjwatson cjwatson 918352 2005-12-01 14:33 new/busybox03:54
pittiwe get completion for 8 kB?03:54
Kamionjbailey: ^-- size cost (unstripped) of turning on editing/history/tab-completion03:54
pittisweet03:55
jbaileyKamion: No brainer. =)03:55
Kamionoh, no, I think that is stripped03:55
Kamionok, I'll enable it03:55
Keybukinfinity: linux-doc-2.6.15 conflict/overwrites linux-doc-2.6.1203:56
pittisweeet - conffiles were transitioned, hal responds to the socket events03:59
pittithanks Keybuk04:00
pittiKeybuk: I'll fix the rules.d symlink story for libgphoto2, too04:00
Keybukright, while the buildds are building new udev and m-u-t, I'm gonna grab lunch04:05
=== crimsun [i=crimsun@pdpc/supporter/silver/crimsun] has left #ubuntu-boot []
=== jbailey [n=jbailey@modemcable139.249-203-24.mc.videotron.ca] has joined #ubuntu-boot
makxinifinity: do you have latest ubuntu initramfs-tools in bzr archive?04:51
makxjbailey's latest pushed is 0.31.04:52
jbaileymakx: I think he's asleep atm.04:53
makxaah ok, will reask tomorrow, thanks jbailey. :)04:54
pittiKeybuk: libgphoto2 conffiles fixed05:02
=== ..[topic/#ubuntu-boot:pitti] : known: fb drivers loaded, oss drivers loaded, no network plugging, alsa rules not reloaded, mtab not updated, /dev/pts not mounted || pending: nfs root fails, sata root fails, Kepnp devices not loaded, init stop/start, grepmap bitching || fixed: notify-reboot, vio_type segfault, no modules loaded, hal/pcmcia rules not reloaded
pitti(diff: hal rules are reloaded now)05:03
=== ..[topic/#ubuntu-boot:Keybuk] : known: fb drivers loaded, oss drivers loaded, no network plugging, alsa rules not reloaded, mtab not updated, /dev/pts not mounted || fixed: notify-reboot, vio_type segfault, no modules loaded, hal/pcmcia rules not reloaded, nfs root fails, sata root fails, pnp devices not loaded, init stop/start, grepmap bitching
Keybuk(diff: pending -> fixed)05:12
HiddenWolfAll of it?05:13
HiddenWolfNice!05:14
Keybukyeah, all the pending stuff went into 0ubuntu505:14
makxKeybuk: in 0.40ubuntu1 you mention Copy across modprobe blacklist, as well aliases, is this the same file?05:26
Keybuk/etc/modprobe.d/aliases05:28
Keybuk/etc/modprobe.d/blacklist05:28
Keybukdifferent files05:28
makxohh overseen, yes thanks!05:29
makxdebian but #337318 wanted to have all /etc/modprobe.d05:30
makxs/but/bug/05:30
makxi've asked him for clarification.05:30
=== lbm [n=lbm@x1-6-00-13-10-7a-d1-e4.k233.webspeed.dk] has joined #ubuntu-boot
Keybukit makes some amount of sense to copy the entire directory05:30
=== pitti_ [n=pitti@195.227.105.180] has joined #ubuntu-boot
ograKeybuk, just to report back, my thin clients boot fine again06:00
ograthanks for the quick fix :)06:00
ograKeybuk, if you have an uploade of initramfs-tools pending, could you pretty please finally remove the sleep 3 from /usr/share/initramfs-tools/scripts/nfs ?06:09
KeybukI don't have an upload pending, it's infinity's job now :p06:10
ograok, i'll poke him....06:10
ograthin clients stilltake over a minute for booting :(06:11
Keybukyeah, lots of changes yet to come06:13
jbaileyogra: Still takes is fine.06:16
ograoh, i thought this was it already06:16
jbaileyogra: TAkes a minute longer would suck. =)06:16
ograi target 45 seconds .... but i am at 1:03~1:0906:16
jbaileyogra: Just upload it with the NFS fix.  There's no reason to wait on a BML.06:17
Keybukwhat were you before?06:17
ograat least i just could boot without usplash timing out06:17
ograwith all bootscripts it was ~1:4506:17
ograwith eliminating the bootscripts ~1:2006:17
Keybukso it's taking 40s less?06:17
Keybukok, still 10-15s less then06:18
ograso i won about 15sec06:18
Keybukgood06:18
Keybukthat's about my expected win06:18
Keybuknext we move several bits to udev rules06:18
Keybuksort out networking06:18
Keybukand reorder rcS to eliminate the bugs06:18
Keybukthat might give us up to 10-15s more06:18
ograthat'd be enough for me :)06:18
Keybukthen fix readahead, hopefully another 10-15s there06:19
ograi just had the impression you were already done06:19
Keybukhmm, no?  this was the FIRST upload :p06:19
ograforget about readahead ... i cant use it06:19
ogra(wont gain much with 32-64 MB)06:19
=== jbailey_ [n=jbailey@modemcable139.249-203-24.mc.videotron.ca] has joined #ubuntu-boot
=== pitti [n=pitti@ubuntu/member/pitti] has left #ubuntu-boot []
=== crimsun [i=crimsun@pdpc/supporter/silver/crimsun] has joined #ubuntu-boot
Keybuklikewise09:40
KeybukUDEV_LOG=info /sbin/udevd --daemon09:40
Keybuk:p09:40
crimsunok, got that09:41
Keybukright, did it output things?09:41
crimsunindeed, 3 lines (I'll have to by-hand)09:42
Keybukok09:42
Keybukjust that it output things09:42
Keybuknow following stuff will output various gubbins, you'll need to read the screens (use shift-pgup/dn) and look for anything suspicious09:42
Keybukhas_driver returning 1 isn't suspicious, that just means there's no driver loaded yet09:42
Keybukmodprobe returning 1 is suspicious09:42
Keybuketc.09:42
crimsunk09:42
Keybuknow, first let's just sanity check that you don't have a /dev/sda* , /sys/class/block/sda* and /sys/bus/scsi* ?09:43
crimsunnone of those09:43
Keybukgood, it's nice to make sure we're not in la-la land09:43
Keybuknow we'll run a few udevplug commands, these will dump a lot of udevd debugging information to the screen -- read it all and summarise for me anything suspicious09:44
crimsunk09:44
Keybukwe'll also write some output to a file, cat that file and say what you see (feel free to just replace long number strings with *)09:45
Keybukudevplug -Bide -Bscsi -Bi2o -Busb -Bieee1394 > 1.txt09:45
Keybukuh09:45
Keybukstick -v in there too :p09:45
Keybukudevplug -v -Bide -Bscsi -Bi2o -Busb -Bieee1394 > 1.txt09:45
crimsunno output (1.txt is a 0-byte)09:47
Keybukexxxxcellent09:47
Keybukok, this is an easy one, don't worry about this, it just makes a bunch of stuff you'll need09:48
Keybuk(ie ignore the output)09:48
Keybukudevplug -Cmem -Cmisc -Ctty -Cvc09:48
Keybukthen you may as well press enter lots so you can find your place09:48
Keybukthis one we care about09:48
Keybukudevplug -v -b > 2.txt09:48
Keybukin 2.txt you should only have /sys/block/ram* ... and nothing suspicious in the udevd dump09:49
crimsundoesn't appear to be anything suspicious, lots of /block/ram* and /dev/ram* with their associated has_driver returning 1, presumably innocuous according to above09:52
Keybukyeah09:52
Keybukhas_driver is just a "can we skip modprobe" thing09:52
Keybukright09:53
Keybukso we still have no /dev/sda*, /sys/block/sd*, /sys/bus/scsi* ?09:53
crimsuncorrect09:53
Keybukright09:54
Keybukso now, in theory, we're in a sane state to probe for scsi controllers09:54
Keybuknow, I'm assuming it's a real scsi controller that we're looking for, yes?09:54
crimsunSATA (IBM TP X41-2527)09:54
Keybukright, SATA controller09:54
Keybukok, that makes things more fun09:54
Keybukso let's try this:09:55
Keybukudevplug -v -Bpci -Iclass=0x0[12] * > 3.txt09:55
Keybukyou'll get a lot of output from that, read it all carefully09:55
KeybukI'm interested in anything modprobe does (you'll see module/* events)09:55
Keybukand also the 3.txt contents09:55
crimsunok, as far back as the buffer permits, SCSI device sda is attached, a lots of scsi_id output (ID_VENDOR, ID_MODEL, etc.), lots of use of kernel name because node name not being set, edd_id spits out "main: no kernel EDD support" (returns 2), has_driver /block/sda returns 1, /dev/sda is created, lots of symlinks set up, lots of vol_id output, /dev/sda4 created, more vol_id output, /dev/sda3 created, more vol_id output, /dev/sda1 created10:04
Keybukright10:05
Keybukls $ROOT finds something?10:05
crimsun3.txt has /sys/devices/pci0000:00/0000:00:1[cef] *10:05
crimsunyep, ''ls $ROOT'' returns "/dev/sda3"10:06
Keybukok...10:06
Keybukcan you do10:06
Keybukgrep udevplug scripts/init-premount/udev10:06
Keybukcheck that the calls are exactly as you've done above10:07
crimsunthe output contains three lines: "/sbin/udevplug -Bide -Bscsi"[...] , "/sbin/udevplug -Bpci -Iclass=0x0[12] *", and "/sbin/udevplug -W"10:09
Keybukok10:10
Keybukso what I think you have, is the "SCSI takes longer than udev" bug10:10
Keybukit's not a udev version issue, it's just how fast your machine feels like10:10
Keybukbasically if it fails, it means your machine reached the "mount root filesystem" bit faster then your SCSI/SATA controller got around to finding the devices on its bus10:10
Kamiontime: 0.5010:10
Kamionnice10:10
crimsunah, so the change in 5 to probe the additional devices is probably the issue10:11
Kamionnot sure what it was before though10:11
KeybukKamion: 1:20ish10:11
Kamionon *my* system, not yours10:11
KeybukKamion: they're surprisingly similar for broadly similar hardware10:11
Keybukall those sleep statements <g>10:12
crimsunwe pretty much walked through /etc/udev/rules.d/00*init (and maybe 20*names* ?), correct?10:12
Keybukcrimsun: actually, if anything, that makes it more likely to succeed10:12
Kamionhttp://people.ubuntu.com/~cjwatson/bootchart/dapper-20051201-2.png, anyway10:12
Keybukcrimsun: it was probably the fact that udevplug is faster in ubuntu510:12
Keybukwe're taking heavily about adding a generic "spin until -e $ROOT" to initramfs10:12
crimsunKeybuk: ah. In any case, thanks for taking time.10:13
Keybukare you on i386?10:14
crimsunyeah (2.6.15-6-686)10:14
Keybukok10:14
Keybukto boot10:14
Keybuk,pimtrppt10:14
Keybukuh10:14
Keybukmountroot10:14
Keybukrun_scripts scripts/init-bottom10:14
Keybukexec run-init /root $init "$@" </root/dev/console >/root/dev/console10:15
Keybuk--10:15
Keybukthat should get you booted10:15
crimsunKeybuk: indeed, thanks again. It's kinda scary how much of the syntax is becoming familiar (spent a few hours this morning poring over /etc/udev/rules.d/ and the udev man page to get the firmware loading correctly again)10:17
Keybukok... one moment, I have a package for you10:18
crimsunk10:19
Keybukhttp://people.ubuntu.com/~scott/initramfs-tools_0.40ubuntu5_all.deb10:23
Keybuk^ download and install that10:23
=== ogra_ [n=ogra@p5089DE32.dip.t-dialin.net] has joined #ubuntu-boot
Keybukthen update-initramfs -u10:24
Keybukthen reboot10:24
Keybuksee if that cures you10:24
KeybukKamion: neat ... should be able to take another 10s off you by the weekend too10:25
crimsunKeybuk: yep, boots fine10:27
Keybukcould yo do a few reboots, just to make sure10:27
Keybukone or two warm10:27
Keybukand one or two cold10:27
crimsunyup10:27
Keybuk(ie three-finger, reset button and power off/wait/power on)10:27
Keybukcrimsun: yeah, it's kinda kooky when you realise you can boot the system from kernel entirely from memory10:30
crimsunhmm, now it hangs after "Done.\nBegin: Mounting root file system ...\nBegin: Running /scripts/local-top ...\nDone."10:41
crimsunafter ~25 seconds I'm dropped to a busybox shell10:44
crimsunreproducible on both warm and cold boots10:44
=== BenC_ [n=bcollins@dpc674797249.direcpc.com] has joined #ubuntu-boot
=== BenC [n=bcollins@dpc674797249.direcpc.com] has joined #ubuntu-boot
Keybukcrimsun: hmm, we'll have to continue this in the morning11:28
Keybukis getting too late here, will be back in ~8 hours11:29
=== crimsun [i=crimsun@pdpc/supporter/silver/crimsun] has left #ubuntu-boot []
=== JanC [n=janc@lugwv/member/JanC] has joined #ubuntu-boot

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!