/srv/irclogs.ubuntu.com/2009/02/11/#ubuntu-arm.txt

loologra: So this smells the overflow if 15 -> 16 blocks don't work07:54
loolIt's not, it's APEX being clobbered by the kernel!  :-)09:27
loologra: Quick, try Marc's suggestion!09:27
ogralool, if my eyes are open enough :)09:45
* ogra yawns and goes to look for coffee09:45
loologra: Dude why did you mail debian-arm@?09:45
loolI told you I would mail him and I Cc:ed you09:45
ograwhats wrong with asking in multiple places ...09:46
loolIt creates duplicate work?09:46
ograand brings more ideas in in case the solution isnt clear09:47
loolI absolutely hate IRC users coming to multiple channels I'm in and copy-pasting the same question09:47
loolSorry but it's resource abuse09:47
loolI value the high quality of the responses I get so far, I don't think Marc will give us much attention if we keep asking at multiple places09:48
loolIt's exactly like researching before asking09:48
ograwell, to me it wasnt clear it was apex09:48
ograapart from that the next guy having this prob will find it in the ML archive09:50
loolThat's an issue I created, but your fix is worse than the disease09:51
loolIt's like these cross-posts spanning multiple lists, but it's worse in that these are separate threads09:52
ograwell, sorry for that if you feel like that, but i still think it was okayish to have it on a public ML my questio was different and contained other information than yours, but i'll keep away from such things in the future now that i know you dont like it09:58
loolI basically don't want to take any chance to piss off valuable people we rely on (how would we move forward if we lose help from these folks?)09:59
loolAnd here Marc had to reply to both and said he did09:59
loolProbably he doesn't mind much, I'd hate if we'd do that again09:59
lools/doesn't/didn't09:59
ograright, i'll be more cautious about that in the future ...10:00
loolThanks, I appreciate your effort10:02
ogralool, hmm changing CONFIG_KERNEL_LMA=0x00008000 to 0x01000000 means that it will have the identical address CONFIG_RAMDISK_LMA has ...10:35
ograi suspect we need to do some more math with that ... but will test first10:37
* ogra goes to rebuild apex10:37
ogralool, well, it doesnt boot ...10:48
ogra... but it get kernel and ramdisk loaded10:48
ogralool, http://paste.ubuntu.com/116755/10:49
* ogra starts shuffling the ramdisk address around10:56
ograhmm, so moving the ramdisk to 0x011FFFE0 les it panic but the kernel unpacks ....11:09
ogra*lets11:09
ograbah and our kernel stops after uncompressing11:19
ogra(using it unswapped, else it doesnt work at all)11:19
ograhrm11:46
ogralool, any idea ? the kernel is 0x00200000 big, so i add that to CONFIG_RAMDISK_LMA (making it 0x01200000) that makes the kernel load but apparently it doesnt find the initramfs and panics now11:48
ograintrestingly it seems to find the start of the ramdisk ... "[42949378.630000] RAMDISK: Compressed image found at block 0"11:50
loologra: Sorry didn't follow; do you have an idea of the memory map since the board powers up down to apex calling into the kernel?12:00
loolI would start by writing that down12:00
ograwell, when i move the kernel from 8000 to 1000000 i need to move the ramdisk up by the size of the kernel12:01
ograsince the ramdisk used to live at 100000012:01
ograso the kernel occupies 1000000 to 1200000 (as its 200000 big)12:03
ograso naturally the ramdisk load address needs to be 120000012:03
ograHA ! lool !! got it :) indeed we also need to adjust the max size of the ramdisk, it boots with CONFIG_RAMDISK_SIZE=0x0040000012:15
ograi'll try to bump that up bock by block now to find the possible max limit, then we should be done ... only a fixed eb kernel is missig12:16
loolRight, kernel is being loaded at 0x00008000, ramdisk at 0x0100000012:17
ograright, now kernel is 0x01000000, ramdisk is at 0x01200000 and ramdisk size is 0x00400000 ... with these values it boots just fine12:18
loologra: That's only 2M for kernel12:18
loologra: Where is the kernel unpacked?12:19
* lool lunch &12:19
ograerm, its unpacked in ram, these values are flash12:20
ograits only about the flash partitions apex uses12:21
ograerr, strike that12:27
ograapex assigns 8M in ram it seems and then copies itself and the flash partitions to that area12:28
ograwhy would you want more than 2M for the kernel ?12:30
ograall former debian kernels are below 1.5M and i expect us to still drop some bload from the 1.9M we have now12:39
ogra*bloat12:39
loologra: ??13:14
loologra: isn't 0x00008000 the address where to copy to?13:14
loologra: The flash read address is fis://kernel, the RAM write address 0x0000800013:15
ograyeah, ignore me13:15
loologra: "why would you want more than 2M for the kernel" well we just hit the case where the preceeding assumptions were not enough13:15
ograi thought we had the 8M limit in ram as well, but that doesnt seem to be the case at all13:15
loolWhy not make sure we cover all cases and solve the problem once and for all?13:15
loolslugimage works no matter what sizes you pass to it for instance13:15
ograyes, i just booted with a ramdisk at 0x0140000013:16
loolSo if the contents are discarded, I'd recommend loading apex, kernel, and initrd at 0, 8M, and 16M13:16
loolthat way we shouldn't ever have to worry about them13:16
ograi'm just trying with 6M for the kernel13:16
loolThe flash is 8M right?13:16
ograi'll do 8 next13:16
ograyes13:16
ograso the bigger the kernel gets the more we limit ourselves on the ramdisk wrt flash ...13:17
ogralool, ok, seems the max limit for the ramdisk size is actually 5636080 bytes (our flash ramdisk partition size ...) if i go above it it corrupts the initrd ...13:22
ograand it seems it doesnt matter where i load it to so 0 and 8M wont be an issue, but 16M wont be possible due to the 8M flash constraint13:23
loologra: I want us to plan the apex script to accept any theoritical initrd or kernel sizes13:24
loolAnd apex' builtin defaults13:25
ogranot for jaunty though13:25
loolWhy not?13:25
ograthat really requires deep apex tinkering and a proper spec imho13:25
ografeature freeze is in 8 days13:25
loolSo you prefer learning it all, implementing a workaround, then having to learn it all again to fix it properly or simply not bother to fix it properly?13:26
ograno, i prefer to have sane defaults for now and to add additional features if we have time for that13:26
ograi havent touched the touchscreen issues at all yet, we dont even have a working kernel for the slug etc etc ...13:27
loolWhy would a ramdisk size larger than 5636080 corrupt the initrd?13:27
loolI hate leaving things half fixed when we can fix them properly13:28
loolThis is seriously not fun for me to invest so much time on an issue and then look back and think "I didn't really fix it"13:28
ograi guess thats a question for marc ... using any bigger size than the one we padded it to simply results in a panicking kernel13:28
loolI think I shouldn't have looked at this issue at all, it's too frustrating, we don't have the same goals13:29
ograright, so do you want me to drop all my specs for supporting an arch nobody uses ?13:29
loolI guess it depends how much time you think you need to fix it properly versus implementing a workaround13:30
ograthe only committment i have atm is to get a working d-i image for that thing13:30
ograwhich i have now module a decision on the proper default values for apex13:30
ograand a working kernel ... which isnt in my hands13:31
ogralool, moving the apex VMA adress to 3MiB seems to work as well as shuffling kernel and rmadisk adresses, given that we differ in only one value from debian here (and will likely be able to convince tham to accept that as default) i'll g with that ... the ramdisk size propblem persists though and i think its likely due to the fact that apex tries to assign a memory area but the ramdisk image itself doesnt fill that up with zeroes as soon as the apex va15:07
ogralue is bigger than the actual partition ... values between the actual initrd.gz size up to the padded partition size do work well, i'll ask on debian-arm to get a confirmation from marc about the theory15:07

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