08:17:18 | skanda | seletz:hi |
08:23:41 | skanda | seletz:hi |
08:24:59 | skanda | i compiled the kernel 2.4.12 for the Assabet which uses a blob 1.0.8. |
08:25:40 | skanda | but everytime I try to download the zImage of the kerenl, the kernel hangs, by printing" Could not load initial Console" |
08:25:53 | skanda | any idea why this is happening |
08:29:00 | Sammy | skanda: when you boot have you see Uncompressing Linux................... ? |
08:29:14 | Sammy | until done |
08:29:52 | skanda | yup |
08:29:54 | skanda | i see it |
08:30:10 | Sammy | ok |
08:30:20 | skanda | i see a whole lot of messages and then suddenly out of the blue i get the eroor |
08:30:38 | Sammy | that's maybe the console problem ... |
08:30:51 | skanda | i do not know. |
08:31:12 | skanda | but the same blob( 1.0.8) works perfect for the kernel 2.4.2 |
08:31:34 | skanda | i evem get a login prompt and the rest |
08:31:57 | Sammy | after you make oldconfig do you also make menuconfig again ? |
08:32:25 | skanda | yes, everything until I get zImage at the boot directory |
08:32:32 | Sammy | to change it's console ? |
08:32:48 | skanda | i do not understand please |
08:32:55 | Sammy | what's your console command ? |
08:33:05 | erikm | morning, * |
08:33:10 | skanda | i am soory, i do not understand |
08:33:21 | Sammy | morning erikm |
08:34:56 | Sammy | maybe you must add console=ttySA0,9600 root=/dev/mtdblock2 |
08:35:40 | skanda | where do i add this |
08:36:25 | skanda | sorry Sammy, I have just dwelt into the Assabet and I need a lot of help |
08:38:47 | Sammy | skanda: I just use assabet config try on my board _PUPPY_ whick board alike assabet , and I use kernel 2.4.9 it's can run... |
08:38:48 | erikm | skanda: please use at least blob-2.0.5-pre1 on assabet |
08:39:06 | Sammy | but I am not suer that's the blob problem or kernel problem ? |
08:39:14 | Sammy | erikm : you say ? |
08:39:15 | skanda | erikm: I am not able to get blob2.0.5 working |
08:39:52 | erikm | skanda: you need a small kernel patch for it |
08:40:04 | skanda | Sammy: could you please mail the .config file to my address at skan79@hotmail.com |
08:40:19 | Sammy | skanda: don't worry about that , I am sure blob 2.0.5 _can_ work on assabet |
08:40:27 | skanda | erik:oh!!, where can I access the patch |
08:40:48 | erikm | skanda: nowhere, cause I'm just writing it :) |
08:40:55 | skanda | ok I will wait then |
08:42:25 | Sammy | skanda: why you want .config file ? |
08:42:31 | skanda | the problem that I get when I try to run blob2.0.5 is it says that bitfield.h is not found |
08:42:31 | skanda | so is SA1100.h |
08:42:51 | skanda | just to know whether I have to take care of anything else |
08:43:46 | skanda | i copied the header files to the required location and then I compiled it. I get the blob at the prompt, but everything else just hangs |
08:45:11 | skanda | 8need help |
08:47:40 | Sammy | skanda: you say your kernel run stop at Could not load initial Console ? |
08:52:21 | erikm | skanda: you need to have a *configured* arm-linux tree |
08:53:41 | Russ | do you have something like "console=ttySA0,9600"? |
08:53:47 | Russ | and not ttyS0 |
08:54:16 | erikm | hey Russ |
08:54:20 | Russ | morning |
08:54:34 | Russ | got a nifty backlight interface |
08:54:41 | erikm | cool |
08:54:47 | skanda | i do not understand, exactly where do i need to incorporate all these |
08:55:06 | erikm | skanda: on the command line |
08:55:36 | Sammy | Russ: is that the ramdisk don't run ? |
08:55:52 | skanda | that is at the blob prompt |
08:55:53 | Russ | check out the drivers/video/sa1100fb.[ch] drivers/video/shannon_backlight.c hunks in: |
08:55:54 | Russ | http://russ.dhs.org/files/tuxpatches/patch-2.4.13-ac8-rmk1-tux1.gz |
08:55:54 | erikm | skanda: blob-1.0.8-pre2 doesn't support command line, blob-2.0.3 and higher does |
08:55:54 | Russ | ? |
08:56:06 | erikm | skanda: yes, but only with blob-2.0.3 and higher |
08:56:17 | erikm | skanda: you can set a default command line, though |
08:56:26 | erikm | skanda: (during kernel configuration) |
08:56:26 | skanda | but the problem is that blob 2.0.3 and the rest of the versions refuses to compile in my system |
08:56:42 | skanda | ok, how do i do that |
08:56:43 | erikm | skanda: I already told you that you need a CONFIGURED kernel tree to solve that |
08:57:14 | skanda | 8need help |
08:57:28 | skanda | on this regard |
08:57:40 | Russ | make assabet_config/make oldconfig |
08:58:21 | skanda | i did that |
08:58:40 | skanda | cp arch/arm/def-configs/assabet .config >>>>>right |
08:59:08 | Sammy | later ^_^ |
08:59:19 | erikm | skanda: that only copies the config file. now run make oldconfig |
08:59:39 | erikm | skanda: or better: "yes no | make oldconfig" |
08:59:43 | skanda | did that also |
08:59:51 | erikm | skanda: so what kernel are you using? |
08:59:56 | skanda | 2.4.12 |
09:00:04 | amrutha | erikm: hello!! |
09:00:27 | erikm | skanda: with what patches applied? |
09:00:42 | skanda | with ac3 and ac3-rmk4 |
09:01:13 | skanda | 2.4.12-ac3 and 2.4.12-ac3-rmk4 patches I mean |
09:01:20 | erikm | skanda: ok. clear |
09:01:46 | erikm | skanda: either use an older kernel tree, or pull the latest blob version from CVS |
09:01:56 | erikm | recommends doing the latter |
09:02:17 | skanda | ok i will give a try for that |
09:02:34 | erikm | skanda: seletz fixed it a week ago, the change is in CVS |
09:02:50 | skanda | alright |
09:03:05 | amrutha | erikm: finally i was able to put the assabet to sleep and wake it up...but this was by a program downloaded on to the kernel.. |
09:03:27 | erikm | amrutha: so suspend from the kernel works? |
09:03:34 | amrutha | but for this i used blob 1.0.8 (with some features os 2.0.5) |
09:05:45 | erikm | amrutha: please send the changes you made to blob-1.0.8-pre2 to me and seletz |
09:07:13 | amrutha | erikm: but as i told u..this was a program which i downloaded to the kernel at the blob prompt... |
09:07:39 | erikm | amrutha: ok, send the program as well so we can investigate the issue |
09:08:20 | amrutha | but now i am trying to downloadd the kernel itself to the assabet with the modified blob..but it hangs...at... starting kernel.. |
09:08:35 | amrutha | okie..i shall send it righty now.. |
09:11:35 | erikm | skanda: what's your email address? I do have the kernel patch ready |
09:11:46 | skanda | skan79@hotmail.com |
09:11:57 | skanda | erik:thanks a million |
09:12:08 | erikm | skanda: it's untested, but it should work :) |
09:13:52 | amrutha | erik:please accept this |
09:14:17 | erikm | amrutha: doesn't work, you're behind a firewall, remember :) |
09:14:37 | amrutha | oh!! sorry...forgot about that!! |
09:14:38 | erikm | amrutha: just send it by email, and CC to seletz |
09:15:28 | amrutha | yeah..i shall do that.. |
09:15:29 | erikm | amrutha: erikm@users.sourceforge.net and seletz@users.sourceforge.net |
09:22:01 | amrutha | erik:i just sent the file to u.. |
09:22:02 | amrutha | it is essentially the same as 1.0.8-pre2 |
09:22:07 | seletz | good morining .... |
09:22:09 | amrutha | but i just added the code |
09:22:10 | amrutha | #if 1 |
09:22:10 | amrutha | mov r1, #SA1110_DRAM_CONFIGURATION_BASE |
09:22:10 | amrutha | ldr r0, [r1, #SA1110_MDREFR] |
09:22:10 | amrutha | /* |
09:22:11 | amrutha | mask out all of the bits that are undefined after a reset |
09:22:11 | amrutha | */ |
09:22:12 | amrutha | ldr r2, mdrefr_valid_bits_after_reset |
09:22:13 | amrutha | and r0, r0, r2 |
09:22:14 | amrutha | /* Disable auto power down */ |
09:22:16 | amrutha | bic r0, r0, #MDREFR_EAPD | MDREFR_KAPD |
09:22:18 | amrutha | /* Set KnRUN (from Self-refresh and Clock-stop to Self-refresh) */ |
09:22:21 | amrutha | orr r0, r0, #MDREFR_K1RUN |
09:22:22 | amrutha | str r0, [r1, #SA1110_MDREFR] |
09:22:24 | amrutha | /* Clear SLFRSH (from Self-refresh to Power-down) */ |
09:22:26 | amrutha | bic r0, r0, #MDREFR_SLFRSH |
09:22:28 | amrutha | str r0, [r1, #SA1110_MDREFR] |
09:22:30 | amrutha | /* Set E1PIN (from Power-down to PWRDNX) */ |
09:22:39 | amrutha | orr r0, r0, #MDREFR_E1PIN |
09:22:39 | amrutha | str r0, [r1, #SA1110_MDREFR] |
09:22:39 | amrutha | mov r1, #0xC0000000 |
09:22:40 | amrutha | ldr r0, [r1], #4 |
09:22:45 | amrutha | ldr r0, [r1], #4 |
09:22:45 | amrutha | ldr r0, [r1], #4 |
09:22:53 | amrutha | ldr r0, [r1], #4 |
09:22:53 | amrutha | ldr r0, [r1], #4 |
09:22:54 | amrutha | ldr r0, [r1], #4 |
09:22:54 | Russ | erikm: if you ever get a change to look at those patches, let me know |
09:22:54 | amrutha | ldr r0, [r1], #4 |
09:22:54 | amrutha | ldr r0, [r1], #4 |
09:22:58 | amrutha | hello seletz!! |
09:23:08 | seletz | hi! |
09:23:42 | erikm | Russ: ehm, oh yeah |
09:23:42 | amrutha | assabet finally woke up ???? :-) |
09:23:55 | erikm | Russ: I'm awfully busy for a demo right now |
09:24:02 | seletz | amrutha: welll, it went to sleep .... |
09:24:17 | amrutha | and?? |
09:24:21 | erikm | Russ: but I have a boring project meeting this afternoon and tomorrow, so I'll see if I can kill my time with it :) |
09:24:38 | seletz | amrutha: what did you change to memsetup-sa1110.S? diffs? |
09:24:51 | amrutha | nothing at all.. |
09:25:57 | seletz | amrutha: i _was_ busy getting SMC9196 ethernet chip to work, but wohaaa! It works. Now i can get to the little assabet again and test my DH fix. |
09:25:57 | amrutha | it's all the same as 1.0.8-pre2 .. |
09:25:57 | amrutha | actually seletz.. |
09:26:17 | seletz | amrutha: hmm? |
09:26:45 | amrutha | as i was telling erik..this was a program which i downloaded on to the kernel at the blob prompt.. |
09:27:12 | amrutha | but with this modiffied blob... |
09:27:22 | amrutha | when i try to download the actual kernel it hangs.. |
09:27:48 | erikm | amrutha: I just got your message, thx |
09:28:19 | erikm | seletz: (you got a CC) |
09:28:20 | amrutha | but the assabet perfectly wakes up...with the modified blob and the following pr |
09:28:38 | amrutha | erikm: :-) |
09:28:51 | erikm | amrutha: could you send your test program as well? |
09:28:51 | seletz | looking |
09:29:01 | erikm | amrutha: (again with a CC to seletz) |
09:29:01 | amrutha | now..kindly tell me...how do i modify it further so hat the blob works well with downloading the kernel too.. ?? |
09:29:21 | amrutha | oh..u mean the program which puts it to sleep?? |
09:29:39 | erikm | amrutha: yes |
09:29:39 | amrutha | sure..right away... |
09:30:22 | erikm | amrutha: not that I have time right now, but it's nice during a boring project meeting :) |
09:30:27 | seletz | amrutha: yes, that's it. You clear DramHold, that's what i guessed was the problem. That is not done in 2.0.5 |
09:30:49 | seletz | amrutha: PSSR::DH |
09:30:56 | amrutha | i get it |
09:30:56 | seletz | erikm: see what i mean? |
09:31:29 | erikm | seletz: /me looks |
09:31:46 | seletz | erikm: DH bit brings SDRAM out of self-refresh when coming from Sleep Mode. |
09:32:14 | erikm | seletz: doh! of course! :) |
09:32:38 | seletz | erikm: its in section 9.5.7.5 pg 9-38 |
09:33:04 | seletz | erikm: i have the patch right here, but never got to test it properly .... |
09:33:08 | amrutha | your right seletz :-) |
09:33:17 | erikm | seletz: if you change it in the source, please document it like that |
09:33:21 | amrutha | seletz: why don't you send it acroos to me.. |
09:33:41 | seletz | erikm: of course. Will do right now ... |
09:34:40 | seletz | amrutha: when i'm done you can get a new source via cvs. Should now compile with newer kernels anyway :-/ |
09:34:45 | seletz | amrutha: ok? |
09:37:36 | amrutha | okie..but 1 request.. |
09:39:04 | amrutha | if you cud modify the blob that i have sent to support the download of the kernel without errors...i shall be very greatful |
09:39:55 | amrutha | once i remove the block #if 1....the kernel downloads properly..but without that block the assabet never wakes up!! :-( |
09:40:04 | erikm | amrutha: the download code didn't change between blob-1.0.8-pre2 and the current CVS version |
09:40:32 | erikm | amrutha: it might work a lot better if you disconnect the parallel port cable from your computer |
09:40:41 | erikm | amrutha: I've seen some interference with that |
09:42:20 | erikm | amrutha: and if that still doesn't work, select a lower download speed |
09:42:23 | amrutha | i shall try that too .. :-) |
09:43:10 | amrutha | erikm: but i'm not able to understand why that block added shud be a problem .... |
09:54:18 | skanda | erikm_lunch: you still there |
10:56:23 | amrutha | seletz: you there?? |
10:57:24 | seletz | yup |
11:00:27 | amrutha | seletz: i applied the patch you sent....but i'm getting the following:.. |
11:00:45 | amrutha | NET4: Linux TCP/IP 1.0 for NET4.0 IP Protocols: ICMP, UDP, TCP IP: routing cache hash table of 512 buckets, 4Kbytes TCP: Hash tables configured (established 2048 bind 2048) NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. |
11:00:46 | amrutha | NetWinder Floating Point Emulator V0.95 (c) 1998-1999 Rebel.com RAMDISK: Compressed image found at block 0 Freeing initrd memory: 3072K EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended VFS: Mounted root (ext2 filesystem). |
11:00:46 | amrutha | Freeing init memory: 68K Warning: unable to open an initial console. |
11:00:49 | amrutha | ] |
11:01:02 | skanda | seletz: kernel 2.4.12 on blob2.0.5 gives me a kernel panix |
11:01:05 | skanda | seletz: kernel 2.4.12 on blob2.0.5 gives me a kernel panic |
11:01:28 | seletz | amrutha: hmmm. I'll check |
11:01:33 | seletz | testing |
11:04:10 | seletz | amrutha: my 2.4.13-ac5-rmk2 boots rather nicely. |
11:04:46 | seletz | oh. |
11:05:28 | seletz | skanda: my 2.4.13-ac5-rmk2 boots with blob 2.0.5-cvs rather nicely |
11:05:43 | amrutha | well..seletz: i was trying to load the kernel with the blob that i modified.. |
11:05:45 | skanda | but i use 2.4.12--any info on that |
11:06:16 | amrutha | seletz: any idea why i get... "unable to open an initial console?? " |
11:06:37 | seletz | hmmm. assabet? neponset? |
11:06:47 | amrutha | assabet ONLY |
11:07:17 | seletz | ok, try adding a "console=/dev/ttySA0" as boot params |
11:07:39 | seletz | or "/dev/ttySA1" |
11:07:45 | seletz | or "/dev/ttySA2" |
11:07:55 | seletz | you'll have to try it. |
11:08:08 | amrutha | seletz: where shud i do that? |
11:08:26 | amrutha | at uuencode? |
11:08:28 | skanda | is that at the blob prompt????? |
11:08:30 | seletz | blob> boot console=blah_blah |
11:08:44 | amrutha | okie.. |
11:09:01 | amrutha | will try that |
11:09:44 | seletz | amrutha: remember, i have had big problems getting 2.4.13 to run. My problem was that i did _not_ do a "make dep" after a "make xconfig" |
11:09:50 | seletz | (doh.) |
11:10:02 | amrutha | :-) |
11:10:18 | seletz | amrutha: that day was very long ..... |
11:10:27 | amrutha | i did make oldconfig;make dep;make clean;make ZIMAGE |
11:10:45 | seletz | leave the make clean out. |
11:10:54 | seletz | just saves time :) |
11:10:56 | amrutha | well...okie.. |
11:11:12 | amrutha | seletz:what happened later...were you successful?? |
11:11:21 | seletz | make dep && make zImage ist better, stops when make dep fails. |
11:12:04 | amrutha | i still get the same error.. |
11:12:15 | seletz | amrutha: yes, of coursde. i now have 2.4.13-ac5-rmk2 running on my brand-new designed board. yesterday i got ethernet running. |
11:12:30 | seletz | hmmm. |
11:12:34 | amrutha | wow!! that's great... |
11:13:08 | seletz | amrutha: there must be something wrong with your kernel, IMHO. Try a fresh build. |
11:13:28 | amrutha | blob 2.0.5 running? tested for sleep-wakeup too?? |
11:13:30 | seletz | amrutha: make assabet_config && make oldconfig && make dep && make zImage |
11:13:44 | erikm | http://freespace.virgin.net/andrew.harrison4/ <-- LOL :) |
11:14:05 | seletz | checking out |
11:14:54 | seletz | :) man, those guys rule! |
11:15:30 | erikm | yup ;) |
11:15:47 | seletz | "spiderman routine" LOL !! |
11:18:50 | seletz | amrutha: yes, 2.0.5 running. But i cant test wakeup, because i dont have any wakeup source programmed as of now. My somewhat brain-damaged hw design guy "forgot" to route those GPIO pins to a test pad, so i now have to solder right at the SA1110's BGA package. ARGHH! |
11:19:27 | erikm | seletz: just do it. no risk, no fun :) |
11:20:00 | seletz | erikm: man, i already soldered a _very_ thin wire to GPIO 10 to get a simple LED. |
11:20:47 | amrutha | seletz: use either gpio1 or gpio1 pin..for wake up sequence.. |
11:20:57 | amrutha | sorry gpio0 or spio1.. |
11:21:04 | seletz | erikm: and that's _not_ fun, i tell you! |
11:21:23 | seletz | hmmm, gpio0 .... checking out schematics ... |
11:21:41 | amrutha | these pins already have connections.. :-) |
11:22:06 | amrutha | seletz: the program i mailed you shud come in handy.. |
11:22:10 | seletz | cool. gpio0 is CTS of my 1st rs232. |
11:22:34 | amrutha | i have programmed the PWER for the wake up sequence.. |
11:22:38 | amrutha | and moreso... |
11:23:21 | amrutha | erikm: thanx a lott...i had forgotten to configure my serial port after the wake up .. ;-) |
11:28:02 | seletz | :( |
11:48:40 | amrutha | |
12:51:00 | erikm | goes off to a meeting (which is 100km away) |
12:51:10 | erikm | see you next week |