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

=== Guest74361 is now known as Martyn
joshzhaohi08:16
joshzhaodid ubuntu support s3c6410 ?08:17
Stskeepsthink it's armv5 capable08:19
joshzhaoyes08:39
NCommanderwhats the s3c641009:00
looljoshzhao: You need to build your own kernel and any integration bits, but the userland should work, it's ARM1109:13
loolNCommander: 10:11 < lool> NCommander: What are you looking into ATM?  Could you take that?09:19
lool10:12 < lool> NCommander: Also, kexec-tools was finally added to P-a-s, do you  think you could try it out?  it built on armel09:19
loolNCommander: "that" being d-i09:19
NCommanderBeen working on that already09:20
* NCommander learns how d-i goes together, but I'm making no headway on ARM09:20
NCommanderThe last kernel upload made my board completely unreliable, and with it getting files at the speed of dial up ....09:20
NCommanderSame thing goes for kexec (that being said, I used the 2.0.0 release of kexec-tools on Babbage, and got nothing, so unless we're carrying patches ...)09:21
loolNCommander: Please try the ubuntu kernels09:22
loolNCommander: If there are bugs, file them09:22
loolNCommander: Perhaps compare the exact same scenario in qemu/i386 and qemu/armel?09:23
NCommanderlool, it doesn't work in qemu/armel with our kernel as of the last time I tried it, I'm building a new qemu/armel image now so I can work on d-i, I'll test it once it finishes installing.09:24
loolNCommander: Where's the bug report?09:34
loolNCommander: the same test case passes on i386?09:34
NCommanderlool, I dunno if I filed a bug on this in Ubuntu, I did bring it upstream; no ping reply.09:35
joshzhaoi don't know what kind of Ubuntu Kernel tree  support 6410?09:37
joshzhaos3c6410 is based on arm1109:38
joshzhaosamsung09:38
loolNCommander: Are you waiting for me to ask you to file one or will you file one now?  :-)09:40
NCommanderlool, I'll file once I rerun the tests, filing bugs based on old data is a bad thing.09:40
joshzhaolool: do you know what kind of Ubuntu Kernel tree  support 6410?09:42
looljoshzhao: No09:43
looljoshzhao: The Ubuntu kernel tree is close to the upstream one09:43
joshzhaothanks lool09:56
mcasadevalllool, if you have a few minutes, would you like to process one of the outstanding MIRs on RedBoot or ecosconfig?10:01
=== Nicke_ is now known as Nicke
loolmcasadevall: I'm queueing it up, but don't consider it assigned to me yet; I'm afraid I have a bunch of urgent stuff which is landing on my plate these days10:28
mcasadevalllool, no problem.10:28
ograamitk, meh, FTBFS on imx5110:30
ogra  Building modules, stage 2.10:30
ogra  MODPOST 739 modules10:30
ograERROR: "cpufreq_gov_performance" [arch/arm/plat-mxc/cpufreq.ko] undefined!10:30
ograERROR: "get_cpu_wp" [arch/arm/plat-mxc/cpufreq.ko] undefined!10:30
ograERROR: "dvfs_core_is_active" [arch/arm/plat-mxc/cpufreq.ko] undefined!10:30
ograERROR: "cpu_wp_nr" [arch/arm/plat-mxc/cpufreq.ko] undefined!10:30
ogramake[3]: *** [__modpost] Error 110:30
ogramake[2]: *** [modules] Error 210:30
ogramake[1]: *** [sub-make] Error 210:30
ograamitk, throw cpufreq out, it has no use on the babbage anyway10:30
loolIt looks like you need to turn on these configs for the imx51 cpufreq backends10:30
loolHmm they are10:31
ograwaht for ?10:32
amitkogra: I know, working on it10:32
ograah, good10:32
ograintresting that it didnt fail in the PPA build10:33
amitkogra: could you test -11.35 (FINAL). It has AA and aufs, cpufreq solved. This might be our last chance before beta to fix this issue.11:03
ograamitk, after the meeting11:03
amitkogra: sure11:03
ogra(i'll try to do i aside the meeting if really urgent though)11:03
amitknaah.. I still have to work on the d-i bits. So anytime in the next 2-3hrs is good11:04
ograoh, wait, my inner clock is off one hour11:04
ograi can do it now11:04
amitkdid we change time?11:04
ograno, its 12 UTC11:04
* ogra smiles, a working NIC makes everything so much easier11:13
ograno more plugging around of USB keys to transfer kernels and initramfs11:14
amitkogra: make sure you get this http://people.ubuntu.com/~amitk/linux-image-FINAL-2.6.28-11-imx51_2.6.28-11.35_armel.deb11:14
ograyes, thats what i just installed and copied to my desktop11:15
ogranow i'm doing a dist-upgrade to get new procps etc ... then i'll reboot and xmodem the kernel and initramfs over11:15
loologra or amitk: I need /proc/cpuinfo on babbage with CONFIG_NEON=y (probably on the kernels you're running) and with the NEON hwacps merged in 2.6.28-10.3311:16
ograamitk, AA oops :(11:34
amitkogra: that is underinvestigation. just disable in on the cmdline11:35
ograsame11:36
ograapparmor.enable=0 ... still oopses11:36
ogragrmbl11:38
ograthat costed me my working setup11:39
* ogra needs to rebot after upgrade ... 11:40
ogra*reboot11:40
amitkogra: are you capturing the oops?11:46
loolWould really appreciate a /proc/cpuinfo11:46
* ogra cant give a /proc/cpuinfo without getting into the system11:46
ograamitk, one sec11:46
amitklool: I'll have to build a new kernel with NEON enabled again11:47
loolIs there a working babbage kernel I can run right now which has NEON support?11:47
loolis the ubuntu one working for instance?11:47
amitklool: try the original ubuntu one, or one from http://people.ubuntu.com/~amitk/11:48
ograamitk, http://paste.ubuntu.com/133579/11:48
loolWill either boot without initramfs?11:49
ogra__aa_find_profile it seems11:49
amitkogra: same oops11:49
ogralool, yes, but you need rootdelay11:49
ograand no uuid root= line11:49
amitkogra: I'm compiling another one with AA turned off by default11:56
ograthanks11:56
=== mcasadevall is now known as NCommander
amitkogra: same 'FINAL' .deb with AA compiled in but turned off by default12:14
amitkback from lunch12:14
* NCommander sighs12:15
NCommanderTHere is a max initrd size it seems on the Babbage12:15
NCommanderor something crazy ...12:15
ograhow big did you b'koat yours ?12:15
ogra*bloat12:15
ograup to 4.5M worked fine here12:15
NCommander2.5MB, I'm getting incomplete write, which suggests its too large12:16
ografunny12:16
ograi'm using a 4.2M one atm12:16
ograand had a 4.5 one before12:16
NCommanderogra, its I'm an idiot problem :-)12:25
=== rwhitby` is now known as rwhitby
ograamitk, hmm, lost all my input capabilities again with the latest build13:23
ograamitk, did you remover the compiled in usb host drivers again ?13:23
ogra*remove13:23
ograamitk, hrm, and i get compcache by default13:24
ograamitk, additionally the rest of the usb stack doesnt get loaded either13:26
ograamitk, and i dont see an indication of a kernel event happening13:26
ograaha, loading ehci-hcd helps13:27
amitkogra: I haven't touched anything else, you can check the config file13:27
ograweird13:27
ogramy rootfs doesnt mount, ehci-hcd should be compiled in13:28
ograthere is no trace of usb-storage in my initramfs13:29
amitkogra: it is13:29
ogra(initramfs) ls /lib/modules/2.6.28-11-imx51/kernel/drivers/usb/13:29
ograhost13:29
ogra(initramfs) ls /lib/modules/2.6.28-11-imx51/kernel/drivers/usb/host/13:29
ograehci-hcd.ko13:29
ograthats all i have13:29
ogra(initramfs) uname -a13:29
ograLinux (none) 2.6.28-11-imx51 #35 Thu Mar 19 12:38:40 EET 2009 armv7l unknown13:29
* amitk checks again13:30
amitkogra: shoot me, you are right. EHCI_HCD is a module13:31
ogra(initramfs) cat conf/initramfs.conf |grep MODULES13:31
ogra# MODULES: [ most | netboot | dep | list ]13:31
ograMODULES=most13:31
ograso usb-storage should be there actually13:32
ograhmm13:32
amitkogra: storage is compiled in, so is USB_HID (for keyboard), but i left EHCI as a module for some reason13:33
ograah13:33
ograthat expleins it13:33
ogra*explains13:33
amitkthat config file is swimming in front of me now13:33
ograok13:33
ograi dont get why it uses compcache though13:33
amitkogra: because it is a module13:34
amitkdo you want it removed?13:34
ograit should only be included if there are less than 256M ram13:34
ograno, keep it13:34
ograbut the script shouldnt fire13:34
ogra(initramfs) cat /proc/meminfo13:35
ograMemTotal:         482808 kB13:35
ograthere is definately more than 256M13:35
amitkIt is only a module13:35
ograargh13:36
ograTOTAL_RAM=$( grep MemTotal /proc/meminfo |tr -d ': [A-Z][a-z]')13:36
ogra# Do not use compcache on the liveCD if we have more than 512M13:36
ograif [ "${BOOT}" = "casper" ]; then13:36
ogra    if [ "${TOTAL_RAM}" -gt 524288 ]; then13:36
ogra        exit 013:36
ogra    fi13:36
ografi13:36
ograthats bad13:36
amitkhehe13:37
ograi mean it works, but its pointless to have on babbage13:39
loolThe distro kernel doesn't boot for me13:47
loolUncompressing Linux.............................................................13:47
loolAnd nothing more13:47
ograamitk, oh, does compcache get autoloaded if its there ? (it should never load alone)13:48
loolCan someone hand me a recent kernel build with the NEON hwcaps patch?13:48
ograhttp://people.ubuntu.com/~amitk/linux-image-NO-AA-AUFS-USB-COMPILED-2.6.28-10-imx51_2.6.28-10.32_armel.deb not sure about neon13:49
ograbut thats definately a working one13:49
loolThanks13:49
amitklool: grab the .deb from my p.u.c and grep the config.13:49
loolamitk: It's not a config13:49
amitklool: you want the patch AND the CONFIG_NEON configured in, right?13:50
loolamitk: Correct13:50
loolBut CONFIG_NEON has been set since forever13:50
* ogra wonders how long forever is for an unfinished kernel :)13:51
ograif [ "${BOOT}" = "casper" ]; then13:52
ogra    if [ "${TOTAL_RAM}" -gt 524288 ]; then13:52
ogra        exit 013:52
ogra    fi13:52
ografi13:52
ogramodprobe -q --ignore-install compcache compcache_size_kbytes="$(($(sed -nre 's/^MemTotal:\s*([0-9]+) kB$/\1/p' /proc/meminfo) * 25 / 100))"13:52
ograARGH13:52
ograso if i boot with boot=casper and the system has 512M it will exit ... if the system has no 512M *and* i dont boot with casper compcache will load in *any* case13:53
ograthats so wrong ...13:53
ograi guess that needs an else condition ...13:54
ograoh, my, what was i smoking when i wrote that code13:54
* ogra takes a break ... thats so embrassing13:55
amitkgood stuff? :)13:55
amitkogra: new 'FINAL' uploaded. Hopefully the real FINAL :-/13:56
loolThe above kernel doesn't work for me either14:02
loolDoes it need an initramfs to output anything?14:02
loolGRR14:07
loolscreen doesn't like too long commands14:07
loolOk, the kernel loaded over ymodem at least says "done, booting the kernel." but nothing more14:15
loologra: is there serial console in the kernel you mentionned as working?14:15
loologra: I definitely get zero output from the kernel with the .deb you pointed me at, only up to "done, booting the kernel.", even with console=ttymxc0,115200 console=tty0 on serial and VGA output14:23
loolAnd the same thing with the FINAL .deb above14:26
loolI'm booting with RedBoot> exec -c "console=ttymxc0,115200 console=tty0 root=/dev/mmcblk0p2 ro debug noinitrd rootdelay=2"14:29
loolI confirmed that the way I upload kernels works as if I reload zImage_DVI it works14:31
loolBTW I'm now updating the SD card directly14:32
loolWith dd and fis14:32
loolamitk: Can you confirm the above kernels will work *without* initrd?14:35
amitklool: dunno. I have an initramfs14:39
loolamitk: Could you show me fis list and/or a boot log so that I can use the proper fis create command here?14:40
FlimFlamManhello.  does anyone know when we might see usable Ubuntu netbooks on ARM?14:40
loolI also need the cmdline with initramfs, so far I only have without14:40
loolFlimFlamMan: No final date yet14:41
FlimFlamManlool: thanks.  what's the best place to keep track of how things are progressing, and what the shape of the final product will be?  will the "experience" basically be the same as on x86?14:42
loolFlimFlamMan: The images Ubuntu will release for arm devices match images which exist for i386 already14:43
loolFlimFlamMan: Following Ubuntu news channels should be enough to get the news14:44
FlimFlamManlool: Thanks for the information.  (I'm trying to judge whether i should hold off on a netbook purchase or buy an interim unit.)14:47
ogralool, yes, works fine for me14:47
loologra: without initrd?14:49
loologra: I'm using dpkg -x, replacing the kernel with the file in boot/vmlinuz-foo exactly in the same way as zImage_DVI, and it doesn't boot; while zImage_DVI works14:49
loolI'm really confused14:49
ograi use dpkg -x on my laptop, boot into redboot serial, do xmodem, load the kernel and run a similar exec line to yours14:51
loologra: what exact line are you currently running?14:51
ogramight it be the dd/fis combo you use ?14:51
loolit could be14:51
loolI'm not using the default sizes for the fis partitions14:51
ogracurrently i'm using the lates kernel *with* initramfs ...14:52
ogra(initramfs) cat /proc/cmdline14:52
ograconsole=ttymxc0,115200 root=UUID=ae90832f-ba0d-4164-b710-0402041ab8ed14:52
loologra: Ah *with* initramfs14:52
ograright14:52
loolI suspect that's the problem14:52
ograbut it works fine without initramfs using yours14:52
ograno14:52
amitkogra: I put the new kernel on p.u.c14:53
ograamitk, thanks, trying14:53
ogralool, drop the "noinitrd"14:53
ograand the debug14:53
loolamitk: http://people.ubuntu.com/~amitk/linux-image-FINAL-2.6.28-11-imx51_2.6.28-11.35_armel.deb ?14:53
amitkyes14:53
ograexec -c "console=ttymxc0,115200 console=tty0 root=/dev/mmcblk0p2 rootdelay=2" should work14:53
ogra(for me exec -c "console=ttymxc0,115200 console=tty0 root=/dev/sdb1 rootdelay=2" definately does if amitk doesnt play with USB modularization ;) )14:54
amitkogra: hopefully this time I don't have my head up you-know-where :)14:55
ograheh14:55
loologra: no difference, it stops after "done, booting the kernel."14:55
ograstrange14:55
ograworks fine here14:55
loologra: Can you show your fis commands?14:55
loolOr your xmodem load rather14:55
loolRedBoot says before booting:14:55
loolentry=0x90008000, target=0x9000800014:55
loolUsing base address 0x00100000 and length 0x002144c014:55
ograload -m xmodem -b 0x100000 -r14:56
ografis create kernel14:56
ograthats what o do14:56
ograRedBoot> e -r 0x1000000 -s 4020573 -c "console=ttymxc0,115200 console=tty1 root=UUID=ae90832f-ba0d-4164-b710-0402041ab8ed quiet"14:56
ograentry=0x90008000, target=0x9000800014:56
ograUsing base address 0x00100000 and length 0x0021020c14:56
loologra: Do you have fis list or boot output?14:56
ograRedBoot> fis list14:57
ogra... Read from 0x1fee0000-0x1feff000 at 0x00040000: .14:57
ograName              FLASH addr  Mem addr    Length      Entry point14:57
ograRedBoot           0x00000000  0x00000000  0x00040000  0x0000000014:57
ograFIS directory     0x00040000  0x00040000  0x0001F000  0x0000000014:57
ograRedBoot config    0x0005F000  0x0005F000  0x00001000  0x0000000014:57
ograinitramfs         0x00060000  0x01000000  0x00400000  0x0100000014:57
ograkernel            0x00460000  0x00100000  0x00220000  0x0010000014:57
ograRedBoot>14:57
loologra: and fis list -d?14:59
ograRedBoot> fis list -d14:59
ogra... Read from 0x1fee0000-0x1feff000 at 0x00040000: .14:59
ograName              FLASH addr  Mem addr    Datalen     Entry point14:59
ograRedBoot           0x00000000  0x00000000  0x00000000  0x0000000014:59
ograFIS directory     0x00040000  0x00040000  0x00000000  0x0000000014:59
ograRedBoot config    0x0005F000  0x0005F000  0x00000000  0x0000000014:59
ograinitramfs         0x00060000  0x01000000  0x003D595D  0x0100000014:59
ograkernel            0x00460000  0x00100000  0x0021020C  0x0010000014:59
loolMy datalen is 0x002144C015:00
ogralool, i'm about to xmodem again, if you need anything else, say it now :)15:00
loologra: I don't, unless you can be tempted to try my way of updating with fis15:01
ograi do, but only after i have a working initramfs again15:01
ograwhich takes a bit15:01
loologra: How do you create the initramfs?  by installing the package?15:01
ograright15:01
loologra: Hwo do you load it?15:01
ograinstalling the package and scp'ing to my laptop15:01
ograthen i reboot and xmodem it over serial15:01
loolload -m xmodem... wihch args15:02
ograload -m xmodem -b 0x1000000 -r15:02
ografis create initramfs15:02
ograload -m xmodem -b 0x100000 -r15:02
ografis create kernel15:02
ograexec -r 0x1000000 -s *size* -c *command line*15:02
ograwhere *size* is the output of ls -l15:03
ografor the initramfs file15:03
ograsillyness of the week, its not in hex15:03
ograwhile everything else is15:03
loolI really don't get why it doesn't work for me15:04
ogratry serial15:04
loologra: Can you show me the messages before loading linux on the next boot?15:04
loologra: I did15:04
ogracheck if that changes it15:04
ograi will15:04
loolWill try serial again15:04
ograxmodem running now ... takes a while15:04
ogralool, http://paste.ubuntu.com/133688/15:10
ograits intresting how noisy it is even though i use quiet15:11
amitkogra: no explosions yet?15:12
ogranot yet and i was even brave and just re-used the old initramfs from the former build15:12
ograrolling a fresh one now to make sure15:12
loologra: same thing with xmodem15:12
ograweird15:13
loolhttp://paste.ubuntu.com/133690/15:13
loolBut without initramfs15:13
loolIt's depressing15:13
ograhmm, i'm not sure the -b 0x100000 is right without initramfs15:13
ogralook on the wiki15:14
loolIt's the same I used in the past and that I use for zImage_DVI15:15
ograhmm15:15
loolwiki says    RedBoot> load -m ymodem -b 0x01000000 -r though15:16
ograshouldnt differ15:16
ograoh, wait15:16
lool0x01000000 != 0x10000015:16
ogra0x01000000 is the address used for the initramfs15:16
ograwhich needs to be loaded first15:17
loologra: Yes, but the wiki mentions that for "an image"15:17
loolI think it's wrong though15:17
ograso its likely that 0x01000000 gets copied into ram first15:17
loolAnyway, it works fine with other kernels with 0x100000 and you use 0x100000 for kernel as well15:17
loolOh I know15:17
ograyes15:18
* lool bangs head15:18
loolPFF15:18
loologra: RedBoot version15:18
lool*again*15:18
ograoh15:18
ograindeed i use NCommanders15:18
loolAll makes sense now15:18
loologra: You need 2.6.28 redboot for 2.6.28 kernel and I was running 2.6.26 with its redboot still15:18
ograindeed15:18
loolTwo times I kill almost a day because of redboot version15:18
ograyou said zImage_DVI15:18
* ogra killed a day because he didnt have lrzsz installed on the host 15:19
ogra*that* was silly15:19
ograhaving a wrong redboot version is rather in the middle of sillyness in taht light imho ... not on the edge15:20
amitkogra: you're not complaining yet. I am getting worried...15:20
ograamitk, xmodem*ing initramfs atm15:20
ogralet me reboot15:20
ograand then hammer the system a bit15:20
ograamitk, cross your fingers, booting now15:27
* amitk crosses fingers, hands, legs15:27
ograboot looks fine for a start15:27
ogragdm is up ...15:28
ograoh, usb errors in demsg15:29
ogra*dmesg15:29
ogra[42949494.010000] usb-storage: -- transfer complete15:29
ogra[42949494.010000] usb-storage: Bulk command transfer result=015:29
ogra[42949494.010000] usb-storage: usb_stor_bulk_transfer_sglist: xfer 4096 bytes, 1 entries15:29
ogra[42949494.010000] usb-storage: Status code 0; transferred 4096/409615:29
ogra[42949494.010000] usb-storage: -- transfer complete15:29
ogra[42949494.010000] usb-storage: Bulk data transfer result 0x015:29
ogra[42949494.010000] usb-storage: Attempting to get CSW...15:29
ogra[42949494.010000] usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes15:29
ogra[42949494.010000] usb-storage: Status code 0; transferred 13/1315:29
ogra[42949494.010000] usb-storage: -- transfer complete15:29
ogra[42949494.010000] usb-storage: Bulk status result = 015:29
ogra[42949494.010000] usb-storage: Bulk Status S 0x53425355 T 0x176e R 0 Stat 0x015:29
ogra[42949494.010000] usb-storage: scsi cmd done, result=0x015:29
ogra[42949494.010000] usb-storage: *** thread sleeping.15:29
ograover and over15:29
amitksounds like issues with their usb driver15:29
ograsounds like NCommanders issue15:30
amitkmcasadevall: could you file a bug regarding your usb errors and tag it arm?15:31
amitkogra: does it prevent us from going further?15:31
ogralet me see if it survives15:31
mcasadevallamitk, sure, I think its a issue with my network adapter, since the USB storage seems to be okish15:31
ograi seem to be able to run a dist-upgrade getting 30M15:32
ogratail -f /var/log/messages doesnt show any probs atm15:32
ograhmm, now i see a bunch of usb-storage related messages15:33
giedzhi...what is default window manager in ubuntu-arm port?15:33
ogragiedz, any WM you like ... the architecture has noting to do with the CPU15:33
ogras/architecture/desktop/15:33
giedzok but is there any prefered?15:34
ograamitk, i see a ton of messages, but the package installation seems to work regardless15:34
ograamitk, will capture it for you once the dist-upgrade finished15:34
Martynafternoon ogra15:34
ograhey Martyn15:34
MartynI'm going to have to wait for your drop :)  I have a usb network adapter, but no way to use it until there are some kernel modules to load.  *chuckle*15:35
ograMartyn, http://people.ubuntu.com/~amitk/linux-image-FINAL-2.6.28-11-imx51_2.6.28-11.35_armel.deb15:35
ograthat seems to be relatively good (just testing it here)15:36
ograARGH15:41
* ogra wasnt aware DPMS works on babbage ... 15:41
ograi just thought my X crashed15:41
ogra:P15:41
MartynHeh15:42
MartynDPMS works great in babbage15:43
MartynI've come to a blank console :)15:43
ograapparently15:43
MartynNow .. if we could only coax DVI to work :)15:44
ogranot without a public driver15:44
ogra * Starting AppArmor15:45
ogra * Loading AppArmor module...15:45
ogra   ...fail!15:45
ograpffft15:45
amitkgood15:45
ograthe exclamation mark is really overreaction15:45
* ogra grabs the source and adds ...fail! (omg, OMG !!!!) to make it look more scary :P15:46
ograamitk, still not died, but /var/log/messages looks really worrying15:49
ograamitk, http://paste.ubuntu.com/133715/15:51
ograamitk, and /var/log/messages grew from 10 to 408k since i started the dist-upgrade, its completely filled with these messages15:52
amitkogra: I'm not too worried. It seems to be restricted to their storage driver. Fixable at a later date.15:53
ograapart from the fact that we will try to do installs to a USB device with beta i tend to agree15:54
loologra: So yeah, it was definitely redboot and only that15:56
loolI'm booting into my system just fine now15:56
ogracool15:57
loolWith VGA and all15:57
ograi just had a reboot notification after dist-upgrade :)15:57
ograso that works as well :)15:57
ogrado you have a binary for fis ?15:57
ograso i can try to update my SD from the running system15:57
Martynogra : I've got errors loading the modules, I'm afraid15:59
Martynogra : 'invalid module format'15:59
loologra: Sure16:00
loologra: I'm mostly running it from my desktop though16:00
ograthen your initramfs isnt in sync with your kernel16:00
loologra: Let me write a flash-kernel alike script16:00
ogralool, oh, so no armel build ?16:00
Martynoh snap16:00
loologra: I have one as well, but am not using it much now16:00
Martynsure, that makes sense16:01
loologra: http://people.ubuntu.com/~lool/fis-armel16:01
loologra: I updated redboot and kernel with fis on my desktop to boot into 2.6.2816:01
loolWorks fine16:02
ograbut no initramfs yet, right ?16:02
loolNo16:02
loologra: Needed a working system first16:02
loologra: But that's *easy*  ;-)16:02
ograindeed, like me16:02
amitkogra: would making the various filesystems (ext2, 3, fat, vfat) as modules cause your problems?16:02
loologra: Will write a flash-kernel alike script now16:02
loolUnless you like to16:02
amitkogra: from perspective of updating an image16:03
ograamitk, once lool has the script ready he just talks about it wonmt16:03
ogralool, no, feel free16:03
* amitk will leave them compiled-in for a little more then16:03
ograi'll go on poking on my image creation tool16:03
loolamitk: Why make them modules?16:03
ograamitk, though arent ext2/3 in the normal ubuntu kernels as well now ?16:03
loolamitk: it's going ot be harder to boot without initramfs, and I don't think it's what we do on i38616:04
ograi thought Keybuk had pulled them in for boot speedup16:04
loolYes16:04
ograright, our kernel should be as close to the distro kernel as possible16:04
ograoh "system has a crash report detected" ...16:04
ograseems apport works too16:05
ogralool, do you also have the prob that the vga picture is slightly shifted to the top on the screen ?16:06
ograit swallows the upper third of the top panel here and i cant get it moved down16:06
loologra: My LCD autoadjust16:06
loologra: I'm running console ATM16:06
ogra(under X)16:06
ograah16:07
ograconsole is fine here16:07
Martynogra : Are you running from flash, or USB?16:07
MartynSD or USB I should say...16:07
ograits just the desktop ... about 5-6px shifted to the top16:07
ograMartyn, usb atm16:07
loolconsole is fine here too16:07
loolI'm using SD16:07
ograboth should work fine16:08
ogramcasadevall, so you just copied the iso to a USB key ?16:22
mcasadevallogra, pretty much. cdrom-detector didn't find it, but I manually mounted it16:23
ograwhat means "pretty much" ?16:23
mcasadevallBut its stuck ATM ... I dunno, I think the USB stack on my board leaves something to be desired w.r.t. to stability16:23
ogramount usb key, loop mount iso ... cp iso/* usb-key/ ??16:24
ograor what exactly did you do ?16:24
mcasadevallNo, I did that16:24
mcasadevallBut once in the installer environment16:24
mcasadevallmount /dev/sda1 /cdrom16:24
mcasadevall"Load Installer Compontents from CD"16:24
mcasadevall   │ This partitioner doesn't have information about the default type of   │16:24
mcasadevall  â”Œâ”‚ the partition tables on your architecture.  Please send an e-mail     │16:24
mcasadevall  â”‚│ message to debian-boot@lists.debian.org with information.             │16:24
mcasadevallheh :-)16:24
mcasadevallso far so good16:24
ograhow did you get *in the installer environment*16:24
ograwould be nice to have an alternate build you can just dd to SD16:25
ograi.e. with the right boot mechanism in place16:25
mcasadevallogra, oh, loaded the RAMdisk from RedBoot16:25
ograright16:25
ograthats what i mean, we should have an alternate image that has redboot, kernel and initramfs ready to dd it to SD16:26
mcasadevallThat's the idea16:26
mcasadevallIts easy to do extactly that.16:26
ograso you just need to grab the iso/img file16:26
mcasadevallBut I wanted to see if the damn thing would work :-)16:26
mcasadevallpartman is going to need some work16:27
ogratalk to cjwatson for that16:28
ograwe'll likely need that for ubiquity too16:29
mcasadevalldamn it16:29
mcasadevall"Failed to determine toe codename of the release"16:29
mcasadevallSo there are a few bugs to work out.16:29
mcasadevallActually16:30
mcasadevallWe got an anonyingly large issue16:30
mcasadevall"Unknown armel subarchitecture: unknown"16:30
mcasadevallObviously thats something in the filesystem MIA16:30
mcasadevallogra, so libdebian-installer requires re-education :-)16:36
ograright the subarch thing is somethng i talked with colin about before but didnt file a bug yet and didnt approach him further about16:40
amitkogra: btw, are you using aufs now or unionfs?16:40
ograamitk, heh, neither, i'll test that soon16:41
ogramy usb disk is ext316:41
Martynogra : Ah!  So you did a full install...16:41
ogra(sorry, i'm in a short 1:1 meeting atm)16:41
MartynI'm building a rootfs right now16:41
Martynogra : no worries.16:42
ograMartyn, right i built a rootfs using my script and untarred it to a usb HD16:42
Martynlool : Do you have a matching initrd to go with that kernel?16:42
ograand use an SD to boot that16:42
MartynI'm doing much the same, but using a usb enclosure with a 7200 rpm drive.16:43
ograme too16:44
ogra:)16:44
loolMartyn: will soon16:44
ograa kernel compile takes less than 1h with all modules :)16:44
ograon that fast disk16:44
Martyn*nod*16:46
MartynI tried a 10k RPM drive, but the enclosure was just too frigging loud16:46
MartynIt sounded like a small airplane about to take off16:46
ograheh16:46
MartynSo I switch it out for a WD eco-drive/green drive.   1Tb, 7200rpm, 32mb cache16:46
Martynmost of the time it sits idle, and that's perfect16:47
ograheh, i have the same setup, but a maxctor drive16:47
ogra*maxtor16:47
Martynogra : Hey, I just rebuilt the initrd, and still have the module format error.   *grump*16:47
ogradid you transfer it to the SD ?16:47
Martynyep16:47
ograweird16:48
MartynCan I borrow yours and compare?16:48
MartynI must be doing something wrong16:48
* ogra looks for an envelope to send his16:48
ogra:P16:48
Martyn*groan*16:48
ograoh, you mean the initramfs16:48
MartynNo, not the SD .. the initramfs16:48
ograi thought my SD16:48
Martynyep :)16:48
Martynand if I wanted to borrow your sd, all you'd have to do is dd of=myfile anyway :)16:49
mcasadevallogra, so I'm pushing my branch to LP now, and I'll have to start looking at libdebian-installer ;.;16:49
Martynmcasadevall : It doesn't fail gracefully eh?   unknown subarchitecture causes a crit fail?16:49
ogramcasadevall, make sure do coordinate with #ubuntu-installer16:50
mcasadevallogra, I am. I'm popping back and forth between the two channels.16:50
ograMartyn, http://people.ubuntu.com/~ogra/arm/babbage/initrd.img-2.6.28-11-imx51 and http://people.ubuntu.com/~ogra/arm/babbage/vmlinuz-2.6.28-11-imx5116:50
* ogra goes for a break16:51
Martynogra : Got 'em16:52
ograamitk, aufs looks ok so far, i need to wait for tomorrows build to actually test it since i need the updated procps in the squashfs17:49
amitkogra: ok. I've pushed the changes to git and build-tested. rtg has done the same. So we might have a good kernel tomorrow.17:50
ograyay17:51
ograand with the fixed procps even a live image that can be used17:51
amitkogra: is imx51 live image created automatically now?17:53
ogranot yet, no17:53
ograstill some missing bits and pieces, i have the skeleton work done to rolla partitioned image and copy the livefs in17:53
ogratomorrow evening i sould have a working script17:54
ogracreating one manually on top of my old image is easy though17:54
ograjust copy the latest livecd image content into the second partition, pull vmlinuz and initramfs from http://people.ubuntu.com/~ogra/arm/babbage/ and replace them via serial17:55
amitkogra: would be nice to have an installable image17:56
amitkeventually17:56
ograyeah, indeed17:56
ograthat might only happen post beta though17:56
ograwe dont know how ubiquity behaves yet17:57
ograand its a bit tricky since you will need an usb SD cardreader to install to, or we need to trash the install media17:57
Martyneven if we don't have an installer, the rootfs builder provides a system that is just about the same when finished18:15
MartynSo short term, you end up with a working desktop18:15
Martyn(well, working-ish)18:16
ograindeed, but release target is an installable image18:16
ograpreferably a live image18:16
Martynabolutely!18:16
MartynI'll take what I can get though.18:16
MartynThank you for the initrd + kernel .. that helped a lot18:16
ogragreat18:16
loolroot@babbage:~# flash-kernel18:35
loolFlashing kernel... done.18:35
loolFlashing initramfs... done.18:35
loolOk, system still boots without initramfs18:36
loolNow let's see with a proper boot script18:36
Martynlool : Did you just compile in all the drivers needed to get to console?18:38
loolMartyn: I used the .debs provided above18:38
Martynmm18:40
loologra: What do you put on your initrd aware command line?18:43
loolexec line18:43
loolI mean in the -c part18:43
loolAh wait, you mentionned cmdline18:43
lool15:52 < ogra> console=ttymxc0,115200  root=UUID=ae90832f-ba0d-4164-b710-0402041ab8ed18:43
loolnothing18:43
ograe -r 0x1000000 -s 3927720 -c "console=ttymxc0,115200 console=tty1 boot=casper LIVEMEDIA=/dev/mmcblk0p1"18:44
loolRedBoot> fis load initrd18:44
ografor the live image18:44
lool... Read from 0x1fee0000-0x1feff000 at 0x00040000: .18:44
loolNot a loadable image - try using -b ADDRESS option18:44
loolHmm18:44
Martynfis load initramfs18:44
loologra: did you manage to put it in fis?18:44
loolMartyn: it is called initrd18:44
loolin fis list18:44
Martynah18:44
loolMartyn: Probably I used wrong params, happy to hear what I should use18:44
loolRedBoot> fis list18:44
loolName              FLASH addr  Mem addr    Length      Entry point18:44
loolinitrd            0x00460000  0xFFFFFFFF  0x00940000  0x0010000018:45
loolRedBoot> fis list -d18:45
loolName              FLASH addr  Mem addr    Datalen     Entry point18:45
loolinitrd            0x00460000  0xFFFFFFFF  0x002A8EE7  0x0010000018:45
ogralool, do you use 0x1000000 as base address for it when dumping it into place ?18:46
loologra: Ah no, I see what's wrong now18:47
loolmem addr and entry point are reversed18:47
loolI should have entry point == 0xffffff and not mem addr18:47
ograyeah18:48
ograinitramfs         0x00060000  0x01000000  0x00400000  0x0100000018:48
ograthats what i have18:48
Martynwhat's the RedBoot command to load in something from serial, so you can flash it?18:50
ograload -m xmodem -b 0x1000000 -r18:51
ografis create initramfs18:51
loolUnfortunately, I can't get the ram address / load address from the fis command18:51
ograload -m xmodem -b 0x100000 -r18:51
loolI have hardcoded it for now18:51
loolNeed to extend the command18:51
ografis create kernel18:51
loolOk, fis load initrd works now18:51
Martynah! xmodem :)18:51
Martynthanks18:51
loolNow let's get the initrd to be picked up18:51
ograthats tricky18:52
ograsince you need the size in the exec cmd18:52
ograso with each initramfs update we have toi touch the cmdline18:52
loologra: Well I think we shouldn't need the size in the exec command18:52
loolI'd rather *not* touch the cmdline that'd be awful   :-/18:53
ograyou have to18:53
ograit wont boot without18:53
loologra: my thecus doesn't need that and uses redboot18:53
ograwe can use padding and fill up initrd with zeroes18:53
ogranopt the FSL redboot18:53
loolI can do that18:53
lool(padding)18:53
ograwith padding the size can always be the sanme and we can use a fixed parameter in exec18:54
loologra: even with padding, it doesn't set the address on the cmdline in the exec command18:54
loolexec -c "console=ttyS0,115200 root=/dev/ram0 initrd=0xa0f00000,42M mem"18:54
loolis all there is18:54
loolSorry, that's cut18:54
loolexec -c "console=ttyS0,115200 root=/dev/ram0 initrd=0xa0f00000,42M mem=128M@0xa0000000"18:54
loolThat's a full line from the boot_script_data18:54
ograright, but with debian kernel and initramfs18:55
loolWell with any18:55
* ogra tries to boot without -s parameter18:55
ogra[42949379.640000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)18:56
ogranope18:56
loologra: It worked better for me18:57
loologra: I can actually boot with exec -r 0x1000000 -c ... but it prints an error during boot and ignores initramfs18:57
ograheh18:57
loollet me switch console to serial to copy paste it18:57
loolRAMDISK: Compressed image found at block 018:58
loolRAMDISK: incomplete write (-28 != 32768) 419430418:58
ograright18:58
Martynoop18:59
Martynthat's bad18:59
ograthats what you get if exec doesnt get the size handed over18:59
loolYou think that's solved by padding?18:59
ograpadding to 500000018:59
ograand using exec -r 0x1000000 -s 500000018:59
ograi *assume* that fixes it18:59
Martynwell, at least then the boot script will be consistent18:59
MartynI'll try it.18:59
loologra: I'd liket to avoid the size part19:00
ograyu wont19:00
MartynI'm uploading a ramdisk now, so it's just a little extra work to overlay the initrd onto a blank file made with dd if=/dev/zero of=initrd.template bs=1k count=500019:00
ograelse we need to fix the redboot we have now19:00
loolAccording to the redboot manual, -s is mandatory19:01
MartynI wish the RedBoot supported zmodem.  (I switched to ymodem)19:01
loolToo bad, I wish redboot would be clever just like for fis create after a load19:02
Martynwhat happens if you lie to redboot?19:02
Martynjust tell it -s is 500000019:02
Martyneven if the ramdisk is smaller...19:02
ograright and pad19:02
Martynwithout padding19:02
Martynall it will do is load garbage bytes19:02
ograoh, that *might* work19:02
* ogra tries19:03
Martyn<-- lazy19:03
* Martyn so badly wants to try to bump the serial port up to 230k ... it takes forever to load things at 115k19:03
ogra[42949378.620000] RAMDISK: Compressed image found at block 019:04
ogra[42949378.900000] RAMDISK: incomplete write (-28 != 32768) 419430419:04
ogra:(19:04
ograi guess we need the padding19:04
ograblocksize seems to be 3276819:10
ograso 524288 should be a proper number for padding19:11
ogra(16 blocks)19:11
Martynis it really that bad to have to put in the length of the image when doing fis create?19:13
ografis create can take a lenght ?19:15
ograoh, right19:15
ogradoes that make -s not mandatory anymore ?19:15
Martyngood question19:16
MartynI haven't tried it19:16
Martynit take ~4-5m for me to load the initrd via ymodem19:17
MartynI really wish the onboard NIC was working :)19:17
ograyeah19:17
Martynthen I could load via network, and bim-boom-bam :)19:17
Martynalmost done with the upload19:18
Martynfis create is broken19:24
Martynit's not setting the length, I think19:24
* ogra tries something19:26
Martyn[42949379.550000] Please append a correct "root=" boot option; here are the available partitions:19:33
Martyn[42949379.570000] b300         1956352 mmcblk0 driver: mmcblk19:33
Martyn[42949379.580000]   b301          714892 mmcblk0p119:33
Martynheh, so much for mounting a root filesystem from the mmc19:33
ograRedBoot> fis create initramfs19:34
ogra... Read from 0x1fee0000-0x1feff000 at 0x00040000: .19:34
ogra... Read from 0x1fee0000-0x1feff000 at 0x00040000: .19:34
ograInvalid FLASH image size/length combination19:34
ograso much for padded initramfs19:34
* ogra tries a smaller one19:36
Martynbtw .. I booted just fine now19:36
Martyni'm stuck in the initramfs19:36
Martynbut I did get a boot :)19:36
ograwith the padded intiramfs ?19:37
Martynno padding19:37
ograbut ?19:37
ograwhat did you do ?19:37
Martynoh, nm19:39
MartynI forgot to write the fconfig19:39
loolSo I tried with padding and failed19:39
Martynit reverted to using your commandline19:39
ograme too19:39
loolBut hex addresses are support for -s just fine19:39
ograhow big did you make it ?19:39
loolI checked the source code and -s is required19:39
loologra: 0x0094000019:39
ogra4980736 bytes19:39
ograis what i'm trying atm19:39
Martynokay, so after the upload, every time, you have to check the size of the initrd then19:39
ograusing the pad script from d-i19:39
loologra: I used the same padding as for N210019:40
ograMartyn, right, and thats what we try to get around atm19:40
loolNow searching for kernel stuff19:40
ograi tried 5013504 before but seems redboot finds that to big19:41
Martyn[42949379.550000] Please append a correct "root=" boot option; here are the available partitions:19:42
Martyn[42949379.570000] b300         1956352 mmcblk0 driver: mmcblk19:42
Martyn[42949379.580000]   b301          714892 mmcblk0p119:42
loolOh perhaps my ramdisk is too big19:42
Martynoops, wrong one19:42
Martyn[42949378.130000] RAMDISK: Compressed image found at block 019:42
Martyn[42949378.180000] RAMDISK: ran out of compressed data19:42
Martyn[42949378.190000] invalid compressed format (err=1)19:42
ograMartyn, right, thats what you get if you give a to big size19:42
Martyncrap19:42
ogra(bigger than the actual initramfs)19:43
loolI'm trying to locate the ramdisk decompression code, the ATAG parsing one can't help us19:43
MartynThe size I gave was only 0x003e00019:43
loolinit/do_mounts_rd.c19:43
ograso we're attacking from two sides now :)19:43
loolSo >-------printk(KERN_ERR "RAMDISK: incomplete write (%d != %d) %ld\n",19:44
lool>-------       written, outcnt, bytes_out);19:44
lool    written = sys_write(crd_outfd, window, outcnt);19:45
lool=> -28 is an error19:45
ograyes19:45
loolENOSPC19:45
loolwindow = kmalloc(WSIZE, GFP_KERNEL);19:46
ograRedBoot> fis create initramfs19:47
ogra... Read from 0x1fee0000-0x1feff000 at 0x00040000: .19:47
ogra... Read from 0x1fee0000-0x1feff000 at 0x00040000: .19:47
ograInvalid FLASH image size/length combination19:47
ograGRRR !19:47
MartynI got the same19:47
loolWSIZE is 0x800019:47
loolout_fd = sys_open("/dev/ram", O_RDWR, 0);19:48
loolEh PPC and S390 have a spinner when loading the ramdisk19:48
Martynyep19:49
Martynit's just so unfair :)19:49
MartynI say we make a cooler, better progress loading bar, and show 'em19:49
Martyn-snicker-19:49
Martyn( We hacked the cobalt kernels, back in 2.4, to output to a parallel LCD panel, and show a graphical loading bar .. it was silly as all hell )19:50
ogralool, do we really want to get stuck on that now ?19:50
Martynogra : no :)19:50
ogralets just rewrite fconfig19:50
Martyn-laugh-19:50
ograi know you would like to get around it, but thats the way that waorks atm19:51
ogra*works19:51
Martynogra : It's not really worth it, is it?  We're not going to be using redboot forever, right?19:51
Martynjust until u-boot gets ported and mature.19:51
ograhopefully not ...19:51
Martynugh19:51
ograwe have to run fconfig anyway to get the UUID in19:52
MartynI can't get the initrd to load19:52
MartynI tried specifying the -precise- -s length19:52
Martynokay, something's funny19:52
ogramake sure to load it first19:52
MartynI did19:54
Martynloads fine19:54
Martynbut when the kernel boots, it's not there19:54
Martynor at least, I'm getting a vfs error19:55
ograwhats your current exec line ?19:55
Martyne -r 0x1000000 -s 4001525 -c "console=ttymxc0,115200 console=tty1 root=/dev/sda1 text"19:56
ogra4001525 ?19:56
ograright, thats proper19:57
ograroot=/dev/sda1 might be wrong though19:57
ogratry sdb119:57
Martynwhat would be taking up /dev/sda?  the media card is mmcblk0p119:57
ograand eventually use the UUID19:57
ogranothing, sdX are no guaranteed names anymore19:57
ogrause UUID19:58
ograroot=UUID=<your uuid>19:58
MartynWhich means I'll need to write a disklabel with the UUID  :)19:58
ograno19:58
ograyou have a uuid already19:58
ograits created if you format the partition19:58
ograat the initramfs prompt: ls -l /dev/disk/by-uuid/19:59
loologra: Updating the config is really painful20:00
ogralool, we have to do it anyway20:00
loologra: Why so?20:00
Martyngot it20:00
loolmxc_ipu mxc_ipu: VSyncPre occurred before DI1 disable20:00
ograto get the device uuid into the append string after install20:00
ogralool, thats your display being switched on and off20:01
loologra: indeed20:01
ograi would propose we concentrate on a better way to write fconfig20:01
loologra: Ok; it's enough for me for today though20:02
ograinstead of trying to hack the current working boot methor20:02
ogra*d20:02
ogralool, same here20:02
loologra: I don't think it's hack if we get it to work sanely20:02
loolI consider changing the size on each upgrade dangerous20:02
ograi doubt we can20:02
ograwe will only end up with a hardcoded size or something i suspect20:02
loolI don't think it's as bad as it could kill the flash, but it's risky20:02
ograwhich isnt better20:02
loologra: i don't mind a hardcoded size20:03
loolIt's not pretty, but it's not risky on upgrades20:03
ograi would neither if it was easy ... i.e. through padding20:03
ograbut that apparently doesnt work20:03
ograso we would have to dive deeply into redboot20:04
ograand hack it up20:04
ograi honestly prefer to rather find a sane way to update fconfig20:04
loologra: I dived into redboot *already*20:04
ograok20:04
loolWe can't do anything with stock redboot20:04
loolUnless we change it20:04
loolI'm looking at the kernel now20:04
loolMy hope is that I can find a magic byte which stops the decompression20:05
Martyn-s is very, very nonoptional20:05
loolAnother thing which would be worth trying is whether we can limit the initrd size at another level20:05
Martynbooted to console, went with busybox rather than ubuntu rootfs20:05
loolMartyn: I checked the redboot sources and it's not optional20:05
ograwe could fill up with zeros *before* compressing20:05
loolpackages/hal/arm/arch/current/src/redboot_linux_exec.c20:05
loolsearch for ramdisk_size20:05
Martynogra : They would be compressed away20:06
loolAnd that's why I can assure you it supports hex, and hex worked for me20:06
ogralool, nonoptional ==  not optional ;)20:06
Martynhex works for me just fine as well20:06
ograsure20:06
ograbut what does hex gain us here20:06
Martynnothing really20:06
ograright20:06
loologra: I know, I said it earlier as well; I'm just repeating it because you seem to be doing the same research20:06
ograno, i researched padding20:07
MartynI'm surprised, though, that it doesn't simply scan or set the length of the ramdisk image somewhere20:07
Martynrather than forcing the user to set it manually.  There must be a reason...20:07
loologra: hex> just replying to the fact that it was said to be broken, and it's not20:07
Martynfis has all the smarts to load it, and stuff the value somewhere...20:07
ograthe thing is, if we fill the cramfs with zeros before zipping it it might probably work20:07
loolMartyn: Yes, that's why I checked as well; but it has not20:07
ogranot sure, but possible20:07
loolWe could implement it, but I don't want to rely on our redboot to be present20:07
loologra: I did that already20:08
MartynWell, then we have to write the config each time, and there's no getting around it20:08
ogralool, padding during compression ?20:08
loologra: I created a 0x00940000 file with intiramfs contents + zeroes, checksummed that20:08
Martynevery time the initrd and kernels are updated, the fconfig boot script likewise has to be updated20:08
MartynUNLESS20:08
Martynyou want to do the two-kernel tango like they do in beowulf20:08
Martynload a kernel, that chainloads the new kernel and initrd from disk20:08
loologra: Ah no, I didn't understand what you meant; I don't see how you'll get exactly the good size though20:09
ogralool, right, but you likely padded zeros to the end of the already compressed file20:09
ogralots of math ...20:09
ograyou only need to know the two values ... before and after20:09
ograthen pad cramfs to a certain size ... after gzip you should have the right final size20:09
loolI think it might be enough to pass the initrd size to the kernel to stop decompression at EOG20:09
loolEOF20:09
ograin the -c command you mean ?20:10
loolYes20:10
ograbut that still means we need to run fconfig20:10
loolNo, I think it works with a zero padded initrd if we pass its size20:11
MartynI don't think you can get away from that one20:11
ograno matter where you have to add the exact size in exec ... you have to submit it20:11
loologra: it's just a cut size20:13
loolThat's my N2100 exec line:20:13
loolexec -c "root=/dev/ram0 rw rootfstype=ext2 initrd=0x01000000,10M noirqdebug mem=32M@0x00000000 console=ttyS0,115200n8" 0x01d0000020:13
loolThe 10M is just to stop the unzip I think20:13
ograright, but exec still doesnt know what to do20:17
lool?20:17
ograthe -s tells it to load initramfs, no ?20:18
loolYes20:19
ograso how do you tell exec what to do ?20:19
loolOh I still need the -s for bababge20:19
loolI was pointing at initrd=0x01000000,10M20:19
ograright20:20
Martynogra, lool's command line works!20:21
MartynI just did it20:21
Martynno -f, no -s20:21
Martynjust -c20:21
loolErr 0x01d00000 is in the initrd20:21
loolHow come20:21
loolMartyn: With the 0x01d00000?20:21
Martynno, without it20:21
loolOk20:21
Martynmy line was ->20:21
loolMartyn: For me it works, but the initrd isn't run20:22
Martyne -c "console=ttymxc0,115200 initrd=0x1000000,10M console=tty1 root=/dev/sdb1 text"20:22
Martynhmmm20:23
Martyn[    0.000000] Memory policy: ECC disabled, Data cache writeback20:23
Martyn[    0.000000] INITRD: 0x01000000+0x00a00000 extends beyond physical memory - disabling initrd20:23
MartynInteresting, I get the same message20:23
loolI think you need to pass mem20:23
Martynwhat's the appended 0x01d00000?20:23
loolIt's the kernel entry point for N210020:24
lool0x00a00000 us lel start20:24
loolis mem start20:25
Martynsetting the mem= parameter had no impact20:26
loolIt hangs for me if I set mem20:27
ograhere too20:27
ograit doesnt uncompress20:28
MartynI did mem=512M, and skipped the @20:28
ograthough i assume we overwrite something20:28
Martynis initrd=0x01000000 REALLY what we mean?20:28
Martynthat's where fis put it on the flash, but that's not where it got reloaded in ram, right?20:28
ograright20:29
loolIn the case of my thecus it matches20:29
ograanyway, i'm really exhausted20:30
Martynme too20:30
loolYou can't set mem alone without setting the start address20:30
lool        start = memparse(*p, p);20:30
lool        if (**p == ',') {20:30
lool                size = memparse((*p) + 1, p);20:30
lool                phys_initrd_start = start;20:30
lool                phys_initrd_size = size;20:30
Martynlool : Um, I do that all the time on the x86 platform...20:30
Martynheh20:30
ograbut not to define initrd size20:31
loolMartyn: that's arm specific though20:31
loollinux/arch/arm/mm/init.c20:32
Martynhttp://clug.open2space.com/node/1020:32
Martynoops, sorry20:33
* ogra calls it a day20:35
ogramy brain hurts and i dont see us getting anywhere by poking in the dark20:35
Martynnope.  I'll look at redboot tonight, now that I've unpacked the fsl-redboot source20:36
* ogra thinks its better to attack that after a relaxing night of sleep20:36
MartynI'm a few hours behind you, so I'm fresher20:36
Martynit's 15:30 here20:36
ogranote that we ise redboot-mxc from the archive20:36
ogra*use20:36
Martynoh!20:36
Martynis it downloadable?20:36
ogra(which actually is the same)20:37
ograindeed20:37
MartynURI?20:37
ograits in universe atm20:37
ograapt-get source redboot-mxc20:37
Martynports, universe?20:37
Martyngotcha20:37
ograerr20:37
ograredboot-imx20:37
ograsorry, to tired20:38
Martynno worries20:38
Martyndownloading, and I'll take a read in a bit20:38
ograyou need to build it on the babbage though20:38
MartynI have a working-ish boot now, I can probably do it20:38
Martynbut really, I should start poking through the source and understanding the exec code20:39
Martynand the load code20:39
* ogra wonders what packages/redboot/current/src/fs/e2fs.c is :P20:44
loologra: I told you rebdoot supported filesystems!  :)20:46
ogralets look at that tomorrow :)20:47
loologra: Well I don't think our version has it20:48
loolUnless it's a new drop, could be20:48
loolAh ours has e2fs but not fat20:48
ograright20:49
* lool &20:50
ograi just pulled michales packge and found packages/redboot/current/src/fs/e2fs.c20:50
ograsleep tight lool20:50
* ogra is off as well now ... finally20:50
loolhttp://people.ubuntu.com/~lool/flash-kernel20:51
loolhas the padding ATM20:51
ograbah, you break my naming scheme20:54
ograerror "Cannot find FIS partition 'initrd'"20:55
loologra: what did you use?22:15
loolWe could support multiple names easily in this place22:15
=== Guest74361 is now known as Martyn

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