From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: <200210131246.g9DCkeZ07914@zamenhof.cs.utwente.nl> To: 9fans@cse.psu.edu From: Axel Belinfante MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <7908.1034513200.1@zamenhof.cs.utwente.nl> Subject: [9fans] ipaq dual pcmcia sleeve unsupported? (or so it seems) Date: Sun, 13 Oct 2002 14:46:40 +0200 Topicbox-Message-UUID: 049f43f4-eacb-11e9-9e20-41e7f4b1d025 I'm trying to use a 2-slot pcmcia sleeve to access wavelan cards. (Am I the first to try a dual pcmcia sleeve with Plan 9?) (browsing a bit on handhelds.org I noticed that linux support for dual-pcmcia sleeve was especially added) Tried orinoco and avaya silver cards. When I have the card in the slot closest to the ipaq (isn't that usuallay slot 1, and the one further away slot 0?) cat /dev/pcm0ctl returns: occupied cat /dev/pcm0attr returns nothing cat /dev/pcm1ctl triggers (consistently) a kernel panic (trace below). Additionally, the sleeve seems to have a bad effect on resuming: usually (always?) the screen is resumed, but touchscreen and buttons (e.g. the ``record'' button that hides/shows the keyboard window) don't work. I tried both the kernel I made from /sys/src/9/bitsy from sources, and the one from nemo's bitsysd.tgz code (slightly modified: commented out the calls to tod[gs]etoff in power.c, extended wavenames in wavelan.c) In case it matters, I'm using bootloader version 2.18.01 and it seems to have a tendency to add always a bootldr and a root partition by itself, at least when I'm using it from the ``serial bootloader console'' (i.e. the boot> prompt). The bootldr partition is the usual one, but the root partition overlaps with a number of partitions. However, the documentation says something about not reading the params partition in case of reset+cursor-button, and elswhere I read that the partition table is stored at the start of the params partition, so maybe that explains this. I also noticed that 2.18.01 is noted as ``the very stable version'', maybe some things have improved in the (many) newer versions. In particular, immediately after ``getting'' the ``boot>'' prompt I only see the bootldr and root partitions with ``partition show''. After suspend/resume I also see the other (plan9) partitions. Any help is very much appreciated, Axel. kernel trace with original (sources) kernel: [...] increfp full power decrefp 0 increfp power down increfp 1 increfp full power kernel fault: type 0x00000018 psr 0x80000013 pc 0xc0039194 r0 0xc0679b48 r1 0x00100000 r2 0x98100000 r3 0xc00e5084 r4 0xc0679b40 r5 0x38100000 r6 0x00000000 r7 0x98100000 r8 0x00000000 r9 0xc00e8000 r10 0xa0000000 r11 0x000fffff r12 0xc008e99c rpanic: fault: kernel accessing 0x98200000 panic: faktrace /kernel/path c000b028 c0679864 c06798aa ult: kec0679810=c000b024 rnel acc0679814=c00678c8 cessingc067981c=c002df90 0x9820c0679840=c002dfec 0000 c0679858=c002e1bc c067985c=c000b024 c0679860=c002e1c0 c0679868=c0009e54 c06798b4=c00871a0 c06798b8=c0086778 c06798c4=c0083c50 c06798d4=c00871a0 c0679948=c000b290 c067994c=c000b268 c0679954=c006f748 c0679958=c005fe58 c067996c=c0009e1c c0679970=c006f774 c0679988=c000a1f4 c0679994=c0062eec c0679998=c0063058 c06799a0=c0062f0c c06799a4=c0063078 c06799ac=c000b364 c06799d0=c0009fa4 c0679a0c=c000a2b0 c0679a24=c00082ac c0679a4c=c00082ac c0679a8c=c002cbf8 c0679a9c=c0082520 c0679aa0=c0083674 c0679aa4=c00827f4 c0679ab0=c00827b8 c0679ab8=c00840a8 c0679ad8=c005941c c0679b18=c00394f4 c0679b28=c002da08 c0679b5c=c002cc88 c0679b74=c006aeb0 c0679ba4=c0082590 c0679bac=c0082888 c0679bb8=c0083674 c0679bbc=c0082838 c0679bc4=c00829d8 c0679bc8=c00827b8 c0679bd0=c00840a8 c0679bdc=c0083fbc c0679bf0=c0084438 c0679c10=c00574c8 c0679c1c=c0059ad0 c0679c24=c0059ab8 c0679c4c=c006ae8c c0679c78=c0008244 it's a wonderful day to die trace with nemo's (slightly modified) sources: [...] decrefp 0 increfp power down increfp 1 increfp full power kernel fault: type 0x00000018 psr 0x80000013 pc 0xc0040df8 r0 0xc0681a30 r1 0x00100000 r2 0x98100000 r3 0xc00ecb20 r4 0xc0681a28 r5 0x38100000 r6 0x00000000 r7 0x98100000 r8 0x00000000 r9 0xc00f0000 r10 0xa0000000 r11 0x000fffff r12 0xc0096714 rpanic: fault: kernel accessing 0x98200000 panic: fktrace /kernel/path c000b038 c068174c c0681792 ault: kc06816f8=c000b034 ernel ac06816fc=c006f65c ccessinc0681704=c0035b9c g 0x982c0681728=c0035bf8 00000 c0681740=c0035dc8 c0681744=c000b034 c0681748=c0035dcc c0681750=c0009e64 c068179c=c008ef14 c06817a0=c008e4ec c06817ac=c008b9c4 c06817bc=c008ef14 c0681830=c000b384 c0681834=c000b35c c068183c=c00774c4 c0681840=c0067be4 c0681854=c0009e2c c0681858=c007759c c0681870=c000a204 c068187c=c006ac98 c0681880=c006ae04 c0681888=c006acb8 c068188c=c006ae24 c0681894=c000b458 c06818b8=c0009fb4 c06818f4=c000a2c0 c068190c=c00082ac c0681934=c00082ac c0681974=c00345a4 c0681984=c008a294 c0681988=c008b3e8 c068198c=c008a568 c0681998=c008a52c c06819a0=c008be1c c06819c0=c006116c c0681a00=c0041114 c0681a10=c0035610 c0681a44=c0034634 c0681a5c=c0072c44 c0681a8c=c008a304 c0681a90=c008a294 c0681a94=c008a5fc c0681a98=c008a67c c0681a9c=c008a294 c0681aa4=c008a568 c0681ab0=c008a52c c0681ab8=c008be1c c0681ac4=c008bd30 c0681ad8=c008c1ac c0681af8=c005f21c c0681b04=c0061850 c0681b0c=c0061838 c0681b34=c0072c20 c0681b60=c0008244 it's a wonderful day to die Bootloader related dumps: In particular, immediately after ``gettting'' the ``boot>'' prompt I only see the bootldr and root partitions with ``partition show''. After suspend/resum I also see the other (plan9) partitions: root is from (paq)[paq]: ....................... [interupted by pressing reset button] boot> boot> partition show argv[1]=show npartitions=00000002 bootldr base: 00000000 size: 00040000 end: 00040000 flags: 00000002 root base: 00040000 size: 01FC0000 end: 02000000 flags: 00000018 boot> Snoozing...Disabling LCD conboot> Snoozing...Disabling LCD conboot> boot> partition show argv[1]=show npartitions=00000008 bootldr base: 00000000 size: 00040000 end: 00040000 flags: 00000002 bootldr base: 00000000 size: 00040000 end: 00040000 flags: 00000002 root base: 00040000 size: 01FC0000 end: 02000000 flags: 00000018 params base: 00040000 size: 00040000 end: 00080000 flags: 00000000 kernel base: 00080000 size: 000C0000 end: 00140000 flags: 00000000 user base: 00140000 size: 000C0000 end: 00200000 flags: 00000000 ramdisk base: 00200000 size: 00600000 end: 00800000 flags: 00000000 fs base: 00800000 size: 00800000 end: 01000000 flags: 00000000 boot> Typical boot sequence when booting from the ``boot>'' prompt (several reboots after the excerpt above was taken, which probably explains the even larger number of bootldr partitions) Note that there is some garbage (I replaced unprintable by ?) in the line following 'setting boot parameters to', and in 'command line is'; this seems to be reproducable. boot> boot> boot flash booting flash... booting kernel from partition >kernel< kernel partition base 50080000 kernel_magic=E3300000 kernel_region_words[9]=016F2818 Linux ELF flash_imgstart=50080000 size=000C0000 dest=C0000000 offset=00008000 MMU Control=C19F4171 MMU PIDVAM=00000000 copying Linux kernel ... done C0008000: E3300000 C0008004: E3300000 C0008008: E3300000 C000800C: E3300000 C0008010: E59FC878 C0008014: E3A00001 C0008018: E3A11001 C000801C: E1510000 C0008020: 0A000002 C0008024: 016F2818 root_filesystem_name=ramdisk Grabbed linuxargs, argc = 00000002 Using mach_type 00000016 pre unparse setting boot parameters to noinitrd root=/dev/mtdblock1 init=/linuxrc console=ttySA0 setting boot parameters to noinitrd root=/dev/mtdblock1 init=/linuxrc console=ttySA0 ?4??? Makeing core tag at C0000100 Makeing cmdline tag at C0000114 Makeing mem32 tag at C0000248 Makeing ptable tag at C0000258 dram_size=02000000 nr_pages=54410001 command line is: mtdpart=bootldr@0x00000000:0x00040000,bootldr@0x00000000:0x00040000,root@0x00040000:0x01FC0000,params@0x00040000:0x00040000,kernel@0x00080000:0x000C0000,user@0x00140000:0x000C0000,ramdisk@0x00200000:0x00600000,fs@0x00800000:0x00800000 noinitrd root=/dev/mtdblock1 init=/linuxrc console=ttySA0 ?4???g Disabling LCD controller linuxEntryPoint=C0008000 Booting Linux image inflating kernel ...........................................206 MHZ ARM, ver 1/part b11/step 6 4771 free pages, 19084K bytes, 114520K swap root is from (paq)[paq]: paq....: Fri Oct 11 15:31:01 GMT 2002 fingerprint: 5c1713e4271dc7219a8e832dbe009d8336c98ccf version...time... paq....: Fri Oct 11 15:31:01 GMT 2002 fingerprint: 5c1713e4271dc7219a8e832dbe009d8336c98ccf version...time... aux/flashfs: check clock: delta = 1060 increfp 0 increfp full power [...] As said above, any help appreciated, very much! Axel.