irclog2html for #openslug on 20070215

00:01.03rwhitbyI would put a couple of ~1GB rootfs partitions and small swap partitions on the disk (so you can easily swap between different rootfs's), and then use the rest as data storage
00:01.18rwhitbyno real need for the usb stick if you have a disk permanently attached
00:02.21CoreDump|homerwhitby: ok
00:02.36CoreDump|homehey upslug2 is in debian testing already
00:03.00rwhitbyyep, nslu2 is well supported in debian now
00:12.39CoreDump|homerwhitby: --rootfs=slugosle-4.3-beta-nslu2.bin" and _not_ the jffs2 file right?
00:13.20rwhitbynope, you want -i *.bin
00:13.38rwhitby(since you need to flash kernel, rootfs, and fis dir)
00:14.07CoreDump|homehmmm
00:15.39CoreDump|homeah I get it. *.bin has rootfs and fis dir, *rootfs* is the rootfs partition only
00:15.50rwhitbyyep
00:16.06CoreDump|homebut the kernel is still extra?
00:16.08rwhitby*.bin is actaully a full 8MB image, including redboot, sysconf, ...
00:16.21rwhitby*.bin has everything
00:16.30CoreDump|homeok
00:17.18CoreDump|home--image=blahh.bin it is then
00:17.19rwhitby(and some of the things in it, like redboot and sysconf, don't actually get written by default, unless you use the dangerous rewrite everything switch in upslug2, or the Linksys EraseAll tool (which is known to brick slugs)
00:17.22rwhitbyyes
00:17.48CoreDump|homerwhitby: yeah, rewriting redboot on each flash would suck bad =D
00:18.30rwhitbyoh, yeah.  we *never* overwrite the bootloader.
00:19.09rwhitbythe *only* $USER cases of bricks are when people used (against our strong public warnings) the Linksys EraseAll tool, and had a power failure (or cat incident) while flashing.
00:19.46CoreDump|home!praise JTAg
00:20.27rwhitbyyeah, I've only needed to use JTAG once in over two years, when I was playing around with Apex bootloader replacement.
00:20.47CoreDump|home=)
00:20.55CoreDump|homeslugos is booting
00:21.10rwhitbyand the only other developer brick I know of that needed Apex was when jacques used a very early prototype version of slugimage that had a bad bug in it.
00:21.14rwhitbys/Apex/JTAG/
00:21.26rwhitbyCoreDump|home: do you have serial on it?
00:21.44CoreDump|homerwhitby: not yet, had to order parts first
00:21.55CoreDump|homewhat's the root p/w?
00:22.01rwhitbyok, so you're getting the real $USER experience
00:22.09CoreDump|homerighto
00:22.13rwhitbyopeNSLUg
00:22.38CoreDump|homeexcellent
00:22.46rwhitbynow turnup init
00:22.47CoreDump|home"Free Your Slug"
00:24.55CoreDump|homeit sais I need to reboot. The settings are kept on flash right?
00:28.03rwhitbyyep
00:29.34*** join/#openslug hillct (n=H@client200-5.dsl.intrex.net)
00:30.30*** part/#openslug hillct (n=H@client200-5.dsl.intrex.net)
00:36.30rwhitbyCoreDump|home: ready for turnup disk?
00:38.23CoreDump|homenot yet
00:44.22rwhitbybbiab
00:53.28CoreDump|homerwhitby: I turnup disk -i a partition
00:56.38CoreDump|homeyay, that was easy
01:33.33rwhitbysweet
01:35.46CoreDump|homeI forgot how much I hated the .dev branch
01:36.12rwhitbyCoreDump|home: test out "turnup ram" and then scp up a new image into /tmp, then use 'reflash' to flash the new image from inside linux
01:36.56CoreDump|homewow, nice trick
01:37.36CoreDump|homeI'll try that another time =)
01:40.03rwhitbyof course when altboot supports kexec on nslu2, then we'll just boot into the new kernel from the external disk ...
01:41.48rwhitbyCoreDump|home: an altboot ram target would be useful for turnup :-)
01:41.59rwhitbys/turnup/reflash/
01:45.02CoreDump|homerwhitby: I found a problem with your namechange. MACHINE specific ipk's will be blahh_nslu2le.ipk, however, ipkg's arch.conf doesn't list nslu2* as valid ARCH
01:46.10rwhitbyHmm. I thought I added nslu2* as a PACKAGE_EXTRA_ARCH
01:47.22rwhitbyipkgarchs='all any noarch arm armv4 armv4t armv5e armv5te ixp4xxle nslu2le' in log.do_rootfs
01:47.35rwhitbyCoreDump|home: where are you experiencing the problem?
01:47.44CoreDump|homealtboot_0.0.0.bb ;)
01:47.58CoreDump|homeI pulled yesterday the last time tho
01:48.56rwhitbyhmm - you're right - the /etc/ipkg.conf doesn't have nslu2le in it.
01:49.49rwhitbyI thought that file would get PACKAGE_EXTRA_ARCHS and MACHINE added automatically
01:49.53CoreDump|homes/ipkg.conf/arch.conf
01:50.01rwhitbyright
01:50.19CoreDump|homeDEBUG: Couldn't read keyboard ints!
01:50.45CoreDump|homethis is altboot on the slug heh
01:50.56rwhitbyCoreDump|home: do you know where /etc/ipkg/arch.conf is generated?
01:51.09CoreDump|homenot off-hand, no
01:51.32rwhitbylooks like rootfs_ipk.bbclass
01:51.54CoreDump|homesomewhere along these lines, yes
01:51.58rwhitbyfrom PACKAGE_ARCHS
01:52.58rwhitbyPACKAGE_ARCHS = "all any noarch ${TARGET_ARCH} ${PACKAGE_EXTRA_ARCHS} ${MACHINE}" in bitbake.conf
01:53.14rwhitbyso it should get nslu2le from MACHINE
01:54.28rwhitbyDoh!  why is slugos-image removing it?
01:54.40CoreDump|homehe good question
01:55.20rwhitbyah. that was from when MACHINE was "nslu2", not "nslu2le".  Now it is correct it should not be removed.  Thanks for finding that!
01:56.05CoreDump|homenp
01:56.41CoreDump|homewhich bastardized version of "ps" is slugos using?
01:57.49rwhitbyprobably busybox
01:59.37CoreDump|homeoh well, an error message that nobody (expect folks w/ serial port) can see can probably ignored
02:00.36rwhitbyheh - if I see it I won't be ignoring it :-)
02:00.52CoreDump|home=D
02:01.08rwhitbyOK, arch.conf fixed and pushed.
02:01.52rwhitbyBTW, I always push directly to monotone.nslu2-linux.org using the Master Makefile, and that sync periodically to monotone.openembedded.org, so there is sometimes a delay before CIA reports it in #oe
02:43.23*** join/#openslug jacques (n=jacques@nslu2-linux/jacques)
02:57.08VoodooZI was reading your discussion w/ CoreDump|home: what does reflash -i update exactly? kernel, rootfs, fis?
03:00.14rwhitbykernel and rootfs at least
03:00.57rwhitbydoesn't change FIS
03:01.32VoodooZok, that's what I need now.. I guess I could also write the whole darn image to flash using apex but I'm afraid...
03:01.47VoodooZI'd rather do it from linux like you said...
03:02.40rwhitbyjust do hexdump compares like I said, and then write it from linux
03:03.43VoodooZhexdump
03:03.46VoodooZhexdump
03:03.50VoodooZoops.
03:04.10CoreDump|homerwhitby: can we make the buzzer beep at will?
03:05.14rwhitbysure
03:05.35CoreDump|homewhat's the trick from the shell?
03:05.56rwhitbyrun /bin/beep
03:06.23CoreDump|homeerr, I didn't even try "beep" *cry*
03:06.51rwhitbysomeone even got it to play jingle bells last christmas I think
03:07.12CoreDump|homeHEHEHE
03:07.25VoodooZrwhitby: ok, I've tried hexdump /dev/mtdblock5 and mtd5 but those are small compared to hexbump'ing FIS. yes I'm confused.
03:08.13rwhitbyVoodooZ: is the difference the new microcode added to FIS ?
03:09.38VoodooZsorry, I'm confused about what to diff.
03:10.11VoodooZcan't I just overwrite the darn thing instead?
03:12.07VoodooZkeep in mind that I don't know much about the whole mtd thing. Got any good tutorial?
03:16.04rwhitbyVoodooZ: /dev/mtdblock5 is your FIS directory partition
03:16.26rwhitbyit's current contents have the FIS directory entries, and the Trailer.
03:16.37rwhitbythe new contents have the microcode in the middle as well
03:16.57rwhitbyI want you to confirm that the start and the end of the block is unchanged, before you go writing it.
03:17.30rwhitbySince you don't have RedBoot, if you stuff up the FIS are you will need to reload via serial (very slowly).
03:18.10VoodooZyeah, It's real slow!
03:19.11VoodooZI guess most people going from 3.10 -> 4.3 didn't have this issue because they used upgrade mode right?
03:19.28VoodooZI used reflash which doesn't update everything right?
03:25.26CoreDump|homehow can I boot to the flash rootfs after turnup disk?
03:25.52VoodooZturnup flash
03:26.19CoreDump|homeVoodooZ: thanks!
03:26.36VoodooZtype turnup by itself for a full usage. I know because I keep forgetting! :)
03:26.51CoreDump|homeheh
03:27.23VoodooZnow if I could to the point you are at.. :(
03:27.27rwhitbyCoreDump|home: altboot will do "turnup nfs" as well, right?
03:27.39CoreDump|homeyeah
03:27.52rwhitbyVoodooZ: where are you blocked?
03:28.27VoodooZat the same place as before. The FIS.
03:28.41rwhitbyok, do you have the current contents in a file? what's the filename?
03:28.46VoodooZI want to start in a sane state as reflash doesn't flash everything
03:29.00VoodooZthe FIS part extracted from the full image? yes.
03:29.13VoodooZand it's around 128kbytes.
03:29.31VoodooZUnless i screwed up of course.
03:31.21rwhitbyok, good.
03:31.40rwhitbynow, hexdump -C /dev/mtdblock5 > orig.txt
03:31.54VoodooZdone.
03:31.57rwhitbyhexdump -C fis-file > new.txt
03:32.11rwhitbydiff orig.txt new.txt
03:32.15rwhitbypastebin the output
03:32.39VoodooZholy smoke! It's long!
03:32.48rwhitby(both files should be the same size, with similar starting contents and trailer, but with very different middles)
03:33.16VoodooZls -l *.txt
03:33.20VoodooZoop.
03:33.23rwhitbycan you recognise the FIS directory and the Trailer (which should be the same between both files) ?
03:33.45CoreDump|homerwhitby: altboot could replace /linuxrc as well
03:33.47VoodooZno, that's the problem. the file are not even close to being the same size
03:34.01rwhitbyCoreDump|home: yes, that's the plan
03:34.07VoodooZ-rw-r--r--    1 root     root        34485 Jan  1 00:37 new.txt
03:34.07VoodooZ-rw-r--r--    1 root     root         1763 Jan  1 00:37 orig.txt
03:34.27rwhitbyVoodooZ: that's expected
03:34.45rwhitbyorig.txt has a whole lot of FFs in the middle, wherease new.txt has the microcode
03:34.57VoodooZAh!
03:35.25VoodooZand the ff don't show up in hexdump?
03:35.36rwhitbyhexdump elides duplicate lines
03:37.01VoodooZI see.
03:37.08VoodooZHere's the pastebin: http://www.pastebin.ca/356542
03:38.49CoreDump|hometime for bed, n8!
03:39.13VoodooZnight
03:39.44VoodooZit's going to be my turn soon. But I'd love to understand this before though..
03:39.56rwhitbyVoodooZ: that looks fine.
03:40.14VoodooZIs that the f/w starting at 0001c000?
03:40.18rwhitbyyes
03:40.24rwhitbymicrocode
03:40.34VoodooZok. are those minor diffs at the top normal?
03:41.18rwhitbythat's the new skip regions
03:41.42VoodooZok. so does that mean I'm safe to flash it?
03:41.45rwhitbyyes
03:42.32VoodooZok, would i do cat FIS_file > /dev/mtdblock5 ?
03:43.42VoodooZI'm just curious why there's a microcode in the FIS dir partition? Shouldn't that be in a another partition?
03:43.58VoodooZthen again, I'm totally new to FIS so...
03:44.54rwhitbywe put it there so as not to waste space.
03:45.05rwhitbyyes you can cat that to /dev/mtdblock5
03:45.25rwhitbydo you really want to give up another 128Kb of flash space for the microcode?
03:45.39VoodooZnope. Good point!
03:45.40rwhitby(when there's 104Kb spare in the FIS directory block)
03:46.23VoodooZok. because of the 128k block size?
03:46.34rwhitbyyes
03:47.01VoodooZok. understood. at least I learned something out of all this.
03:47.06VoodooZhere goes....
03:47.37VoodooZoops. it says: cat: Write Error: Operation not permitted
03:48.02*** join/#openslug AwayNAiL (n=repvik@nslu2-linux/pdpc.active.NAiL)
03:48.11VoodooZunless i have to use mtd5?
03:48.37rwhitbyaha - FIS directory is write protected
03:48.51rwhitbyok, you need to go into Apex and write that file into the FIS directory partition
03:48.58VoodooZouch.
03:49.14VoodooZoh well, it's better than an 8meg file i guess.
03:49.41VoodooZmy apex is old and probably doesn't understand FIS right?
03:50.09VoodooZI have 1.3.13
03:50.26VoodooZwhich I wanted to upgrade but was too chicken to do. :(
03:50.48VoodooZok, all I need then is the starting memory address.
03:51.46rwhitbyI'm off to get some lunch - back in about 15 minutes
03:52.45VoodooZok. I might see you tommorow then as it's bed time.
03:52.50VoodooZThanks for your patience.
03:55.35VoodooZIf I want to update my apex, would the default apex package do or is it configured as a second bootloader?
04:00.47*** join/#openslug AwayNAiL_ (n=repvik@sql.kynisk.com)
04:14.09VoodooZtime for bed. night.
04:14.40VoodooZrwhitby: I'll be reading the logs again tommorow so let me know if you remember the exact address of the FIS dir partition.
04:14.59VoodooZmeanwhile I'll start looking into updating my apex to latest version with FIS driver.
04:15.03VoodooZthanks
04:15.08rwhitbyVoodooZ: exact address is in the wiki
04:15.34VoodooZok. I'll try to find it.
04:16.17rwhitbyhttp://www.nslu2-linux.org/wiki/Info/LastBlockMemoryMap
04:16.19VoodooZis there anything in the apex package config that would prevent me from running it from flash?
04:16.22VoodooZthanks
04:16.41rwhitby0x507E0000
04:16.48VoodooZsome stuff on the wiki is outdated so I'm never sure...
04:16.59rwhitbyVoodooZ: I know nothing about Apex as first stage.  You are on your *own* there.
04:17.05VoodooZno problem.
04:17.17VoodooZdo you know who set it up for second stage though?
04:17.55VoodooZthanks for the link. it's a good read...
04:21.37rwhitbyI set it up for second stage
04:22.17VoodooZok. no worries. that's for another day..
04:22.22VoodooZthanks and good night.
04:22.28rwhitbynight
05:04.36*** join/#openslug \Td (n=Sinclair@p54A0B8D0.dip0.t-ipconnect.de)
05:43.36*** join/#openslug DrZimmerman (n=theo@217-162-225-50.dclient.hispeed.ch)
05:59.50*** join/#openslug Th^ (n=Sinclair@p54A0A982.dip0.t-ipconnect.de)
08:20.20*** join/#openslug CieD (n=CieD@host86-136-171-177.range86-136.btcentralplus.com)
10:09.24*** join/#openslug kolla (n=kolla@drift1.uninett.no)
10:46.36*** join/#openslug rwhitby (n=rwhitby@nslu2-linux/rwhitby)
11:28.56CoreDump|afkrwhitby: do you have any thoughts how $USER should select the partition to be booted by altboot?
11:29.39CoreDump|afknm, I'll hack up something
11:47.47rwhitbyCoreDump|afk: just by /dev/sda1 type name, configuring it from the cmdline or a menu input
11:47.59rwhitby(and it takes effect on the next boot)
11:48.36rwhitbythere is no way for $USER to select the boot partition in real time - it's always the value they selected whilst configuring altboot during the previous session before they rebooted.
11:51.58CoreDump|afkyep
11:52.10CoreDump|afkI'll hack a menu
11:55.22rwhitbynote that we make sure we mount the partition by UUID, in case the usb hub reorders them randomly, or someone plugs another disk in ahead of the one your booting from in the USB order.
11:55.41rwhitby(see the slugos-init scripts for how we do the uuid boot selection.
11:57.13CoreDump|afkok
11:58.52rwhitbythe user selects by /dev/sda1 partition name, but the behind-the-scenes code turns this into a UUID and uses that in the boot process
12:13.14*** join/#openslug caplink811-log (n=caplink8@dslb-088-073-039-237.pools.arcor-ip.net)
12:27.48*** join/#openslug caplink811_log (n=caplink8@dslb-088-073-050-118.pools.arcor-ip.net)
13:47.06VoodooZwho replaced redboot with apex here?
13:48.09VoodooZNAiL: you did too? recently? which version?
13:48.41NAiLA long time ago
13:48.47NAiLvery long time ago
13:49.07NAiLI have no idea which version actually
13:49.54VoodooZok. I did too way back so I now need a newer version (w/ FIS support) but I'm afraid my old defconfig might not cut it anymore.
13:50.19VoodooZrwhitby: thanks for making the FIS writeable. I'll give that a try...
13:59.17VoodooZhow can I rebuild slugosbe-image with the latest pulls without deleting tmp. ?
14:05.09*** join/#openslug gerdi__ (n=gerdi@dslb-084-059-053-069.pools.arcor-ip.net)
15:30.16VoodooZWhat's the alias of the apex dude again?
17:02.09*** join/#openslug mwester (n=mwester@nslu2-linux/mwester)
17:22.18*** join/#openslug pleemans (n=peter@d51A5E76A.access.telenet.be)
17:47.09*** join/#openslug apt (i=ibot@pdpc/supporter/active/TimRiker/bot/apt)
17:47.09*** topic/#openslug is Developer (not end-user) discussion about the OpenSlug custom firmware for the Linksys NSLU2 device.
18:20.19*** join/#openslug caplink811-log (n=caplink8@dslb-088-073-012-216.pools.arcor-ip.net)
19:13.13*** join/#openslug mproctor (n=mproctor@netblock-66-245-237-56.dslextreme.com)
19:53.02*** join/#openslug caplink811-log (n=caplink8@dslb-088-073-034-022.pools.arcor-ip.net)
22:52.04*** join/#openslug rwhitby (n=rwhitby@nslu2-linux/rwhitby)
22:53.51CoreDump|homehi
22:56.17rwhitbyhey CoreDump|home
23:00.58*** part/#openslug CoreDump|home (n=mhentges@hentges.net)
23:11.15*** join/#openslug kapookee (n=kapookee@c-69-243-24-15.hsd1.va.comcast.net)
23:18.25VoodooZrwhitby: good. I rebuilt and flashed the latest slugos and was able to cat FIS to mtdblock5 thanks to your change
23:20.59rwhitbycool
23:28.31VoodooZcool! It picked up the firmware too!
23:29.22VoodooZIve got a fresh copy of apex ready to flas too which supports FIS.
23:30.16rwhitbysweet - is the configuration for first stage bootloader any different from the current slugos-nslu2-armeb_config in OE ?
23:48.56*** join/#openslug saladino (n=saladino@55.Red-80-35-102.staticIP.rima-tde.net)
23:49.04saladinohi
23:50.18rwhitbyhi saladino
23:50.35saladinohi rwhitby

Generated by irclog2html.pl by Jeff Waugh - find it at freshmeat.net! Modified by Tim Riker to work with blootbot logs, split per channel, etc.