/srv/irclogs.ubuntu.com/2009/03/31/#ubuntu-arm.txt

LiraNunahello! congratulations on ubuntu on N8xx!08:16
loolWell it wasn't really us08:17
LiraNunaI know - but still a step forward08:17
loolEh08:18
loolI wish we'd have some time to provide OMAP2 kernels08:18
Stskeepsmorning persia10:57
persiaStskeeps, Good morning.10:57
=== mcasadevall is now known as NCommander
loologra: So we need to fix this fis data17:00
loologra: You have to test everything yourself; fis or fconfig provide *no* safety net (which is another reason they are a bit suckish)17:00
loologra: Also, you should pick larger partitions; I can tell you which values I used17:01
lool         RedBoot: addr = 0x00000000, size = 0x00040000, entry = 0x00000000, length = 0x00000000, cksum = 0x0000000017:02
lool  RedBoot config: addr = 0x0005f000, size = 0x00001000, entry = 0x00000000, length = 0x00000000, cksum = 0x0000000017:02
lool   FIS directory: addr = 0x00040000, size = 0x0001f000, entry = 0x00000000, length = 0x00000000, cksum = 0x0000000017:02
lool          kernel: addr = 0x00060000, size = 0x00400000, entry = 0x00100000, length = 0x001dbdf0, cksum = 0x3defe9b217:02
lool          initrd: addr = 0x00460000, size = 0x00940000, entry = 0xffffffff, length = 0x00940000, cksum = 0xd256cea117:02
loologra: ^17:02
ografis -d $IMAGENAME -o 0x40000 -s 0x1F000 create "kernel" -f 0x60000 -l 0x500000 -r 0x100000 -e 0x100000 -c $KERNEL17:14
ografis -d $IMAGENAME -o 0x40000 -s 0x1F000 create "initramfs" -f 0x560000 -l 0x940000 -r 0x1000000 -e 0x1000000 -c $INITRAMFS17:14
lool-rw-r--r-- 1 root root 3913573 Mar 31 14:07 initrd.img-2.6.28-11-imx5117:14
lool-rw-r--r-- 1 root root 1949168 Mar 31 14:05 vmlinuz-2.6.28-11-imx5117:14
ograhttp://paste.ubuntu.com/141537/17:16
loologra: Actually you miss the load addresses from the above dump17:48
ogrado i?17:48
* ogra checks17:48
loologra: Yes, the same data which I miss for ramdisk load address in flash kernel ;)17:49
ograah, well, might be because i copied your code :)17:49
loologra: Do you know about the fis list -d switch?17:49
ograogra@osiris:/var/build/babbage/images$ sudo fis -d /dev/mmcblk0 -o 0x40000 list17:50
ogra[sudo] password for ogra:17:50
ogra         RedBoot: addr = 0x00000000, size = 0x00040000, entry = 0x00000000, length = 0x00029f2c, cksum = 0x2f2287ac17:50
ogra   FIS directory: addr = 0x00040000, size = 0x0001f000, entry = 0x00000000, length = 0x00000000, cksum = 0x0000000017:50
ogra  RedBoot config: addr = 0x0005f000, size = 0x00001000, entry = 0x00000000, length = 0x00000000, cksum = 0x0000000017:50
ogra          kernel: addr = 0x00060000, size = 0x00500000, entry = 0x00100000, length = 0x001dea50, cksum = 0xdb979b0017:50
ogra       initramfs: addr = 0x00560000, size = 0x002e0000, entry = 0x01000000, length = 0x00452133, cksum = 0x1d051f7317:50
ograthat one you mean ?17:50
ograsure i do17:50
loolhttp://paste.ubuntu.com/141560/17:50
loolWhat you miss is the "Mem addr" data17:51
ograaddr ??17:51
loolflash addr is addr, length is size, datalen is length, entry point is entry17:51
ograi dont see a difference between -d and without .d17:52
ogra*-d17:52
loologra: length versus data length17:52
loologra: length is the size of the partition, data length is the size of the used data within17:52
ograOOOH!!17:52
ograhmm17:52
loolWe're padding the initramfs which is why data length == length17:52
ograogra@osiris:/var/build/babbage/images$ sudo fis -d /dev/mmcblk0 -o 0x40000 list -d17:52
ograExtra arguments after 'list'17:52
lool== size17:52
loologra: It's only in redboot17:52
ograsad that it doesnt work here17:52
ograyeah17:53
loologra: That's why I was saying it needs patching17:53
ograright, but not critical atm17:53
loologra: dev="/dev/mmcblk0" => in theory you could get that from find_fs /, but not sure it's worth the risk17:55
ogranah17:56
ograif we support different bootmedia it will make sense17:56
loologra: To retrieve the config offset, you could copy my fis_info() from flash-kernel17:58
ografis -d /dev/mmcblk0 -o 0x40000 list| sed -n '/config:/s/^.*addr = \(.*\), size = \(.*\), entry.*$/\1 \2/p'17:59
ograits already in my code17:59
loolIt's not the same at all17:59
ograjust cut off the vals i dont need17:59
loolYou're using .* instead of 0x([0-9a-f]{8})17:59
ograbecause i'm fine with the hex values as they are returned18:00
loolI'm also matching the start of the line, I think you could as well "RedBoot config:18:00
loologra: if you want the 0x, move the parenthesis18:00
ograwhat do you fear ?18:00
loologra: But addr = \(.*\), entry.* will match e.g. addr = 0x00060000, size = 0x00400000, entry = 0x00100000,18:00
ograogra@osiris:/var/build/babbage/images$ sudo fis -d /dev/mmcblk0 -o 0x40000 list| sed -n '/RedBoot config:/s/^.*addr = \(.*\), size = \(.*\), entry.*$/\1 \2/p'18:01
ogra0x0005f000 0x0000100018:01
loologra: I fear that if I add ram = in the middle it will break18:01
ograit matches exactly what i need18:01
loologra: Currently, but if I add the RAM address in the middle of the values, it will break your script18:01
ograhow would you add ram in the middle without patching heavily18:01
loologra: I don't need to patch heavily?!  it currently spits addr, size, entry, length, and cksum18:02
loolJust changing the order of the values will break in ugly ways18:02
loolBecause .* can match a full new column, while [0-9a-f]{8} can not18:03
ograok, thats fine, but if you add ram in the middle your fis_info will break in the same way18:03
loolhttp://people.ubuntu.com/~lool/linux-image-2.6.28-11-imx51_2.6.28-11.38arm3_armel.deb18:03
loologra: Yes my fis_info will break cleanly :)18:04
ogralol18:04
loologra: Because it will return no output and that is tested18:04
ograok ok ...18:04
loologra: Also you could anchor the start of the expression, that will avoid matching "Backup of my RedBoot config:"   :-P18:04
loolYeah I'm pushing hard, but it's easy to do solidly, and we have a good example of what happens when you don't verify everything *cough*18:05
loolOn the fconfig line, you use "${script}" instead of just "$script"; you seem to use $ without {} the rest of the time so...18:20
loologra: ^18:26
ograhttp://paste.ubuntu.com/141583/18:28
ogralool, ^^18:28
ogralool, if that code looks ok to you i would upload it18:35
loologra: at the phone ATM18:37
ograok18:37
loolecho >> "fis_dev=${fis_dev}" >> /target/etc/flash-kernel.conf19:16
loolnever saw that syntax19:16
ograerr19:16
loolit doesn't work19:16
* ogra slaps forhead19:16
ograindeed19:16
loologra: Also, don't rely on >> to create the file, I don't think that's POSIX; touch it first or use cat >/etc/flash-kernel.conf <<EOF19:16
loologra: (parameter expansion works in here docs)19:17
ograwell, we can rely on it not being there, i'll just drop one >19:17
ograhere docs look horrible, i try to avoid them if its only some lines19:17
loologra: I fint a here doc more readable than 3 times ">> /target/etc/flash-kernel.conf19:18
ograhttp://paste.ubuntu.com/141605/19:18
loolbut your call19:18
loolok, that works19:18
loologra: You can drop the unused () pairs in the sed19:18
loolYou only use \119:18
loologra: I prefer tty0 than tty119:19
looltty0 is the active console19:19
loologra: Hmm what happens if we don't put anything?19:20
loolI think we developers will set it to ttymxc0 and users will rely on the default (tty0 or 1 I guess)19:20
loologra: I'd double quote $fis_dev in the two fis calls, just in case19:21
ograok, i'll drop console19:21
loologra: Otherwise that looks fine; thanks!19:21
ogralool, ok, i'll upload after i fixed the indendation19:28
ograsomehow my vi setup is messy19:28
ogralool, you dont use a patch system, right ?19:28
loologra: A patch system for what?19:29
ograflash-kernel19:29
loolNo19:29
ogragreat19:29
* ogra really prefers it that way19:29
loolThe archive has the various uploads I did, which map pretty well to new features19:29
ograright ... and debdiff is still the cleanest way19:30
ogradamned .. whats wrong with my vi setup19:30
ograogra@osiris:/var/build/babbage/images$ echo $TERM19:31
ogralinux19:31
ograhmm, might be related19:31
ograsilly minicom ... forcxes me to set it to linux19:31
cooloneylool, for the bug iop32x initrd, i think we need to build cramfs into kernel.20:08
cooloneylool, do you want me to provide a patch to merge and then you test the kernel20:08
NCommanderrwhitby, ! weclome20:22
looldebian/config/armel/config.iop32x:CONFIG_CRAMFS=m20:45
looldebian/config/armel/config.ixp4xx:CONFIG_CRAMFS=m20:45
loolcooloney: it's weird that it would work for NSLU220:45
loologra: Did you have a chance to test the netboot images for NSLU2?20:45
loologra: Oh wait, you can't remote load them, right?20:45
suihkulokkido you really want a initrd or initramfs?20:45
loolsuihkulokki: For the target device initramfs, for d-i I don't know20:46
cooloneylool, yes, it is weird20:46
cooloneybut for mounting cramfs as initrd, it should be built into the kernel, right?20:46
suihkulokkicramfs doesn't matter for initramfs20:47
loolWhat about CONFIG_ROMFS_FS?20:50
cooloneyis that romfs?20:50
looldebian/config/armel/config.iop32x:# CONFIG_ROMFS_FS is not set20:50
looldebian/config/armel/config.ixp4xx:# CONFIG_ROMFS_FS is not set20:50
looldebian/config/armel/config.versatile:CONFIG_ROMFS_FS=y20:50
cooloneyyes, that might be the problem20:50
loolIt could be either, it's possible the netboot images don't work on NSLU2 either as only the flashable image are used20:51
loolPlease don't turn any config in NSLU2 though, it's really tight on memory ATM20:51
cooloneythe initrd is romfs or cramfs20:51
cooloney?20:51
cooloneylool, need i turn on CRAMFS or ROMFS?20:51
loolCONFIG_ROMFS_FS is for fs/romfs and CONFIG_CRAMFS fs/cramfs; saw no mention in initrd20:52
loolcooloney: You're the kernel guy!20:52
cooloneylool, i just don't the file system type of the initrd, -:)020:53
cooloneycause the kernel panic said that it tried several file system type to mount that20:53
cooloneybut it failed20:53
cooloneyso it might be missing some file system support built in20:54
loolcooloney: I really don't know; perhaps you can check the netboot file?20:56
cooloneylool, ok, got it. thx20:56
loolIt seems it's a gnome-session with a different wm and different apps to load20:58
* lool &20:59

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